/* ==========================================================================
   HOME — index.html (+ contact, shared by every page)
   ========================================================================== */
.section { padding-block: var(--section); }

/* ---------- hero: headline in the centre, real campaign work around it ---------- */
.hero { overflow: clip; }
.stage {
  position: relative;
  min-height: clamp(700px, 100svh, 980px);
  display: grid; place-items: center;
  padding-top: 84px; padding-bottom: 32px;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 1.3px);
  background-size: 24px 24px;
}
.stage-center {
  position: relative; z-index: 3;
  display: grid; justify-items: center; gap: 22px;
  max-width: 760px;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  text-align: center;
}
.hero-id { display: grid; gap: 6px; justify-items: center; }
.hero-id b { font-size: 1.125rem; letter-spacing: -.01em; }
.hero-id span { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.hero-h1 { font-size: clamp(2.8rem, 6.4vw, 6rem); line-height: .96; letter-spacing: -.05em; max-width: 13ch; }
.hero-h1 em { font-size: 1.05em; }
.hero-sub { font-size: clamp(1.0625rem, 1.35vw, 1.25rem); color: var(--ink-2); max-width: 52ch; line-height: 1.55; }
.stage-center .tag-row { justify-content: center; max-width: 620px; }
.stage-center .cta-row { justify-content: center; margin-top: 6px; }

.floats { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.cl { position: absolute; pointer-events: auto; will-change: translate; }
.cl > * { rotate: var(--rot, 0deg); }
.cl .ev-bar { height: 22px; font-size: .5625rem; }
.fl-tl { top: 15%; left: 3%; width: clamp(180px, 15vw, 240px); --rot: -4deg; }
.fl-bl { bottom: 9%; left: 8%; width: clamp(130px, 10vw, 170px); --rot: 3deg; }
.fl-tr { top: 16%; right: 4%; --rot: 3deg; }
.fl-br { bottom: 7%; right: 6%; width: clamp(160px, 13vw, 210px); --rot: -2.5deg; }
.hero-metric { display: grid; gap: 4px; padding: 18px 20px; border-radius: var(--r-md); background: var(--ink); color: var(--bg); box-shadow: 0 30px 60px -36px rgba(18, 18, 20, .55); width: clamp(190px, 15vw, 240px); }
.hm-v { font-size: clamp(2.2rem, 3vw, 2.8rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.hm-l { font-weight: 600; font-size: .9375rem; }
.hm-n { font-family: var(--f-mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .05em; color: var(--hi); }

.hero-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px;
  padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--line);
  font-size: var(--t-small); color: var(--muted);
}
.hf-note { font-family: var(--f-mono); font-size: var(--t-label); }
.hf-note::before { content: "◆ "; color: var(--hi); }

/* ---------- selected impact ---------- */
.impact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.impact a {
  height: 100%; display: grid; align-content: end; gap: 8px;
  min-height: 210px; padding: 30px;
  border-radius: var(--r-xl); background: var(--bg-2); text-decoration: none;
  transition: transform .6s var(--ease);
}
.impact a:hover { transform: translateY(-4px); }
.impact.is-feature { grid-column: span 2; grid-row: span 2; }
.impact.is-feature a { background: var(--ink); color: var(--bg); }
.impact-v { font-size: clamp(2.8rem, 4.4vw, 4rem); font-weight: 800; letter-spacing: -.05em; line-height: .9; font-variant-numeric: tabular-nums; }
.impact.is-feature .impact-v { font-size: clamp(4.2rem, 10vw, 9.5rem); }
.impact-l { font-weight: 600; font-size: 1.0625rem; max-width: 30ch; }
.impact.is-feature .impact-l { font-size: 1.375rem; }
.impact-type { color: var(--muted); text-transform: none; letter-spacing: 0; margin-top: 6px; }
.impact.is-feature .impact-type { color: var(--hi); }

/* ---------- featured work ---------- */
.work-list { display: grid; gap: clamp(20px, 3vw, 32px); }
.work-card a {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 64px); align-items: center;
  padding: clamp(18px, 2vw, 24px);
  border-radius: var(--r-xl); background: var(--bg-2); text-decoration: none;
  transition: background-color .4s var(--ease);
}
.work-card a:hover { background: color-mix(in srgb, var(--bg-2) 70%, var(--hi) 12%); }
.work-card:nth-child(even) a { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.work-card:nth-child(even) .wc-visual { order: 2; }
.wc-visual { position: relative; display: block; aspect-ratio: 16 / 10; max-width: 100%; overflow: hidden; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.wc-img { position: absolute; inset: 0; display: block; }
.wc-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.2s var(--ease); }
.work-card a:hover .wc-img img { transform: scale(1.03); }
.wc-jio-ipo { background: #fdf6ea; }
.wc-jio-ipo img { object-fit: contain; object-position: center; padding: 18px 0 0; }
.wc-type { position: absolute; inset: 0; display: grid; align-content: center; gap: 6px; padding: clamp(24px, 4vw, 48px); background: var(--ink); color: var(--bg); }
.wc-type b { font-size: clamp(3rem, 6vw, 5.4rem); line-height: .9; letter-spacing: -.05em; }
.wc-type small { font-size: 1rem; color: color-mix(in srgb, var(--bg) 70%, transparent); margin-bottom: 14px; }
.wc-text { display: grid; gap: 16px; padding: clamp(4px, 1vw, 12px); min-width: 0; }
.wc-kicker { display: flex; align-items: baseline; gap: 12px; font-family: var(--f-mono); font-size: var(--t-label); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.wc-kicker b { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 2rem; letter-spacing: 0; text-transform: none; color: var(--ink); line-height: 1; }
.wc-title { font-size: clamp(1.7rem, 2.8vw, 2.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.04; text-wrap: balance; }
.wc-desc { color: var(--ink-2); max-width: 46ch; }
.wc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.wc-tags span { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: .8125rem; font-weight: 500; }
.wc-cta { justify-self: start; font-weight: 700; padding-bottom: 3px; border-bottom: 2px solid var(--ink); }

/* ---------- capabilities ---------- */
.skill-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.skill-col h3 { font-family: var(--f-mono); font-size: var(--t-label); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding-bottom: 16px; border-bottom: 1.5px solid var(--ink); }
.skill-col li { padding-block: 13px; border-bottom: 1px solid var(--line); font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; }

/* ---------- approach (a real sequence, so it is numbered) ---------- */
.approach { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--ink); }
.approach li { position: relative; display: grid; align-content: start; gap: 10px; padding: 24px 18px 8px 0; }
.approach li::before { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink); }
.approach li:last-child::before { background: var(--hi); border-color: var(--hi); }
.ap-n { font-family: var(--f-mono); font-size: var(--t-label); color: var(--muted); }
.approach b { font-size: 1.125rem; letter-spacing: -.02em; line-height: 1.15; }
.approach span:last-child { color: var(--muted); font-size: var(--t-small); line-height: 1.5; }

/* ---------- professional journey ---------- */
.path { display: grid; }
.path-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) minmax(0, 1fr); align-items: baseline; gap: 24px; padding-block: 22px; border-top: 1px solid var(--line); }
.path-row:last-child { border-bottom: 1px solid var(--line); }
.p-when { font-family: var(--f-mono); font-size: var(--t-small); color: var(--muted); }
.p-what { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 700; letter-spacing: -.025em; }
.p-where { color: var(--muted); }
.path-row.is-current .p-when::before { content: "● "; color: var(--hi); }
.path-row.is-edu .p-what { font-weight: 500; }

/* ---------- about teaser ---------- */
.about-teaser { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.about-teaser h2 { margin-top: 18px; font-size: var(--t-h2); letter-spacing: -.045em; line-height: .98; }
.at-body { display: grid; gap: 24px; }
.at-body p { font-size: var(--t-lead); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.at-body .arrow-link { justify-self: start; }

/* ---------- 404 ---------- */
.nf-inner { min-height: 100svh; display: grid; align-content: center; justify-items: start; gap: 24px; padding-block: 140px 80px; }
.nf-h { font-size: clamp(2.6rem, 7vw, 6rem); letter-spacing: -.05em; line-height: .98; max-width: 14ch; }
.nf-sub { font-size: var(--t-lead); color: var(--muted); max-width: 44ch; }

/* ---------- contact (dark band on every page) ---------- */
.contact { background: var(--bg); color: var(--ink); padding-block: clamp(96px, 16vh, 180px); }
.contact-inner { display: grid; gap: 28px; justify-items: start; }
.contact-h { font-size: clamp(2.4rem, 6vw, 5.6rem); letter-spacing: -.05em; line-height: .98; max-width: 16ch; }
.contact-sub { font-size: var(--t-lead); color: var(--muted); max-width: 48ch; }
.contact-email { color: var(--muted); }
.contact-email a { color: var(--ink); font-weight: 600; }
.contact .btn-solid { background: var(--hi); border-color: var(--hi); color: var(--hi-ink); }
.contact .btn-ghost { border-color: var(--dim); }
.contact .link-btn { color: var(--ink); }
.referral { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--muted); font-size: var(--t-small); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .approach { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 28px; }
  .skill-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
  .fl-bl, .fl-br { display: none; }
}

@media (max-width: 960px) {
  .stage { min-height: 0; display: block; place-items: normal; padding-top: 120px; }
  .stage-center { margin-inline: auto; }
  .floats {
    position: static; width: 100%;
    display: flex; gap: 14px; align-items: flex-start;
    overflow-x: auto; scroll-snap-type: x mandatory;
    padding-top: 48px; padding-bottom: 16px;
    padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
    scroll-padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px));
    scrollbar-width: none;
  }
  .floats::-webkit-scrollbar { display: none; }
  .cl, .fl-bl, .fl-br { display: block; position: static; flex: 0 0 auto; width: min(220px, 62vw); translate: none !important; scroll-snap-align: start; }
  .cl > * { rotate: 0deg; }
  .hero-metric { width: min(220px, 62vw); }
  .impact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-card a, .work-card:nth-child(even) a { grid-template-columns: 1fr; }
  .work-card:nth-child(even) .wc-visual { order: 0; }
  .path-row { grid-template-columns: 1fr; gap: 4px; }
  .about-teaser { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .approach { grid-template-columns: 1fr; border-top: 0; border-left: 1.5px solid var(--ink); margin-left: 5px; }
  .approach li { padding: 0 0 24px 24px; }
  .approach li::before { top: 4px; left: -6px; }
}

@media (max-width: 560px) {
  .hero-h1 { font-size: clamp(2.5rem, 12vw, 3.4rem); }
  .impact-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .impact a { min-height: 160px; padding: 22px; }
  .impact.is-feature { grid-column: 1 / -1; grid-row: auto; }
  .impact-v { font-size: 2.3rem; }
  .impact-l { font-size: .9375rem; }
  .skill-cols { grid-template-columns: 1fr; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
}
.work-card:nth-child(3) .wc-type { background: var(--hi); color: var(--hi-ink); }
.work-card:nth-child(3) .wc-type small { color: color-mix(in srgb, var(--hi-ink) 70%, transparent); }
