/* ═══════════════════════════════════════════════════════════
   PRAHALAD RAVI — cinematic scroll portfolio
   ink black · emerald accent · cream type · bebas display
   ═══════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Bebas Neue';
  src: url('../fonts/bebas-neue-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --ink: #050706;
  --ink-2: #0a0d0c;
  --cream: #f2ede0;
  --cream-dim: rgba(242, 237, 224, 0.55);
  --cream-faint: rgba(242, 237, 224, 0.22);
  --emerald: #19e58f;
  --emerald-dim: rgba(25, 229, 143, 0.35);
  --display: 'Bebas Neue', 'Arial Narrow', Impact, sans-serif;
  --body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 64px);
  /* one measure for every scrolling content section, so section heads and the
     content under them start on the same line at any width. The pinned
     full-viewport panels (hero, pillars) stay deliberately full-bleed. */
  --shell: 1500px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--emerald); color: var(--ink); }

a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--emerald); }
img { max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; }

/* One consistent focus ring for every interactive element. Keyboard only, so
   it never fires on the pointer interactions the whole site is built around. */
:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 300;
  padding: 12px 20px; background: var(--emerald); color: #04120b;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500;
  transform: translateY(-160%);
  transition: transform 0.25s cubic-bezier(0.19, 1, 0.22, 1);
}
.skip:focus { transform: translateY(0); }

/* ── grain ─────────────────────────────────────────────── */
/* Plain alpha instead of mix-blend-mode: a full-viewport blend layer forces the
   whole page to re-composite on every scrubbed frame. Over an ink-black page the
   two are visually near-identical, and this costs a fraction as much. */
.grain {
  position: fixed; inset: -100px; z-index: 90; pointer-events: none;
  background: url('../img/grain.png') repeat; background-size: 160px;
  opacity: 0.13;
  will-change: transform;
  contain: strict;
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-40px, 30px); }
  40% { transform: translate(30px, -50px); } 60% { transform: translate(-50px, -20px); }
  80% { transform: translate(40px, 40px); } 100% { transform: translate(0, 0); }
}

/* ── loader ────────────────────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px;
  transition: clip-path 0.9s cubic-bezier(0.76, 0, 0.24, 1);
  clip-path: inset(0 0 0 0);
}
.loader.is-done { clip-path: inset(0 0 100% 0); }
.loader__mark {
  font-family: var(--display); font-size: 64px; letter-spacing: 0.06em;
  color: var(--cream);
  position: relative;
}
.loader__mark::after {
  content: ''; position: absolute; right: -14px; top: 8px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--emerald);
}
.loader__count {
  font-family: var(--display); font-size: clamp(90px, 18vw, 220px);
  line-height: 0.9; color: var(--cream);
  font-variant-numeric: tabular-nums;
}
.loader__bar {
  width: min(320px, 60vw); height: 2px; background: var(--cream-faint);
  overflow: hidden;
}
.loader__bar span { display: block; height: 100%; width: 0%; background: var(--emerald); }
.loader__hint { font-size: 11px; letter-spacing: 0.35em; color: var(--cream-dim); }

/* ── chrome ────────────────────────────────────────────── */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120;
  background: transparent;
}
.progress span {
  display: block; height: 100%; width: 100%;
  background: var(--emerald);
  transform: scaleX(0); transform-origin: left center;
}

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 110;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gutter);
}
/* a static scrim keeps the nav legible over the brighter orbit frames without
   the per-frame recomposite cost a backdrop-filter here would add */
.nav::before {
  content: ''; position: absolute; inset: -2px 0 auto 0; height: 190%;
  background: linear-gradient(180deg, rgba(5, 7, 6, 0.72), transparent);
  pointer-events: none; z-index: -1;
}
.nav__mark {
  font-family: var(--display); font-size: 20px; letter-spacing: 0.14em;
  color: var(--cream); white-space: nowrap;
  transition: color 0.3s ease;
}
.nav__mark:hover { color: var(--emerald); }
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cream); position: relative; padding-bottom: 3px;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--emerald); transform: scaleX(0); transform-origin: right center;
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}
.nav__links a:hover::after,
.nav__links a.is-current::after { transform: scaleX(1); transform-origin: left center; }
.nav__links a { transition: color 0.35s ease; }
.nav__links a.is-current { color: var(--emerald); }
.nav__status {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cream); display: flex; align-items: center; gap: 8px;
}
.nav__status .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--emerald);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.kicker {
  font-size: 12px; letter-spacing: 0.4em; color: var(--emerald);
  display: inline-flex; align-items: center; gap: 12px;
}
.kicker::before { content: ''; width: 36px; height: 1px; background: var(--emerald); display: inline-block; }

.outline-title {
  font-family: var(--display);
  font-size: clamp(64px, 11vw, 176px);
  line-height: 0.9; letter-spacing: 0.01em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--cream-dim);
  text-transform: uppercase;
}

/* ── hero ──────────────────────────────────────────────── */
.hero { height: 520vh; position: relative; }
.hero__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden;
}
#orbit { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 120% 90% at 50% 110%, rgba(5, 7, 6, 0.9), transparent 55%),
    linear-gradient(180deg, rgba(5, 7, 6, 0.55) 0%, transparent 25%, transparent 70%, rgba(5, 7, 6, 0.85) 100%);
  pointer-events: none;
}

.hero__content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--gutter) 15vh;
  pointer-events: none;
  transform: translateY(calc(var(--heroP, 0) * -6vh));
}
.hero__eyebrow {
  display: flex; align-items: center; gap: 16px;
  font-size: 11px; letter-spacing: 0.4em; color: var(--cream-dim);
  margin-bottom: 2.5vh;
}
.hero__eyebrow-rule { flex: 0 0 60px; height: 1px; background: var(--emerald-dim); }

.hero__title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(88px, 17.5vw, 300px);
  line-height: 0.84; letter-spacing: 0.005em;
  text-transform: uppercase;
  user-select: none;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line--accent { color: var(--emerald); }

/* split letters */
.char {
  display: inline-block;
  transform: translateY(115%) rotate(4deg);
  transition: transform 1.1s cubic-bezier(0.19, 1, 0.22, 1);
  transition-delay: calc(var(--ci) * 55ms + var(--li) * 220ms);
  will-change: transform;
}
.is-revealed .char { transform: translateY(0) rotate(0deg); }

/* scroll widens tracking + dissolves the title upward */
.hero__title .line {
  letter-spacing: calc(var(--heroP, 0) * 0.22em);
  opacity: calc(1 - var(--heroP, 0) * 1.15);
}

.hero__sub {
  margin-top: 3vh;
  font-size: clamp(15px, 1.5vw, 21px);
  letter-spacing: 0.02em; color: var(--cream-dim);
  max-width: 480px;
  opacity: calc(1 - var(--heroP, 0) * 1.4);
}
.hero__sub em { color: var(--emerald); }

[data-intro] { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease 0.4s, transform 0.9s ease 0.4s; }
.is-revealed [data-intro], [data-intro].is-revealed { opacity: 1; transform: none; }
.hero__sub[data-intro] { transition-delay: 1.4s; }
.hero__eyebrow[data-intro] { transition-delay: 1.2s; }
/* once the intro has played, hand opacity back to the scroll fade */
.intro-done [data-intro] { transition: none; }
.intro-done .hero__sub[data-intro],
.intro-done .hero__eyebrow[data-intro] { opacity: calc(1 - var(--heroP, 0) * 1.4); }

.hero__hud {
  position: absolute; right: var(--gutter); bottom: 4.5vh;
  display: flex; gap: 34px; align-items: flex-end;
  font-family: var(--body); font-size: 12px; letter-spacing: 0.14em;
  color: var(--cream-dim);
  font-variant-numeric: tabular-nums;
}
.hud__cell { display: flex; flex-direction: column; gap: 4px; }
.hud__label { font-size: 9px; letter-spacing: 0.3em; color: var(--emerald); }
.hud__cell--cue { flex-direction: row; align-items: center; gap: 10px; letter-spacing: 0.3em; font-size: 10px; }
.cue-line { width: 1px; height: 44px; background: var(--cream-faint); position: relative; overflow: hidden; }
.cue-line::after {
  content: ''; position: absolute; left: 0; top: -50%; width: 100%; height: 50%;
  background: var(--emerald); animation: cue 1.8s cubic-bezier(0.76, 0, 0.24, 1) infinite;
}
@keyframes cue { 0% { top: -50%; } 100% { top: 110%; } }

/* ── stats ─────────────────────────────────────────────── */
.stats { padding: 16vh 0 14vh; background: var(--ink); position: relative; }
.marquee { overflow: hidden; white-space: nowrap; border-top: 1px solid rgba(242,237,224,0.08); border-bottom: 1px solid rgba(242,237,224,0.08); padding: 18px 0; margin-bottom: 12vh; }
.marquee__track {
  display: inline-block; white-space: nowrap;
  font-family: var(--display); font-size: clamp(28px, 4vw, 56px);
  color: var(--cream-faint); letter-spacing: 0.06em;
  will-change: transform;
}
.marquee__track span { padding-right: 2vw; }

.stats__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 40px; padding: 0 var(--gutter);
  max-width: var(--shell); margin: 0 auto;
}
.stat { border-left: 1px solid rgba(242,237,224,0.14); padding-left: 28px; }
.stat__num {
  font-family: var(--display);
  font-size: clamp(80px, 10vw, 170px);
  line-height: 0.9; color: var(--cream);
  font-variant-numeric: tabular-nums;
}
.stat__num sup { font-size: 0.45em; color: var(--emerald); top: -0.6em; position: relative; }
.stat__label { margin-top: 14px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream-dim); line-height: 1.7; }

/* ── pillars ───────────────────────────────────────────── */
.pillars { height: 440vh; position: relative; }
.pillars__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column;
}
/* Defocus + desaturation are baked into the plates at encode time — running
   filter: blur() on a playing video every frame is far more expensive. */
.bgvid {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: brightness(0.82);
}
.pillars__shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5,7,6,0.92) 0%, rgba(5,7,6,0.55) 55%, rgba(5,7,6,0.35) 100%);
}
.pillars__head { position: relative; z-index: 2; padding: 14vh var(--gutter) 0; }
.pillars__head .outline-title { margin-top: 12px; }

.pillars__stage {
  position: relative; z-index: 2; flex: 1;
  display: flex; align-items: center; gap: 5vw;
  padding: 0 var(--gutter) 10vh;
}
.pillars__index { display: flex; align-items: baseline; min-width: 22vw; }
.pillars__digit {
  font-family: var(--display); font-size: clamp(120px, 16vw, 280px);
  line-height: 0.9; color: var(--emerald);
}
.pillars__total { font-family: var(--display); font-size: clamp(24px, 2.6vw, 44px); color: var(--cream-dim); margin-left: 10px; }

.pillars__items { position: relative; flex: 1; min-height: 240px; }
.pillar {
  position: absolute; inset: 0;
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.19, 1, 0.22, 1);
  pointer-events: none;
}
.pillar.is-active { opacity: 1; transform: none; pointer-events: auto; }
.pillar h3 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(44px, 6vw, 104px);
  line-height: 0.94; letter-spacing: 0.01em; color: var(--cream);
}
.pillar p {
  margin-top: 20px; max-width: 520px;
  font-size: clamp(15px, 1.4vw, 19px); color: var(--cream-dim); line-height: 1.7;
}

.pillars__rail { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; }
.rail__seg { width: 2px; height: 54px; background: var(--cream-faint); position: relative; overflow: hidden; }
.rail__seg::after {
  content: ''; position: absolute; inset: 0; background: var(--emerald);
  transform: scaleY(var(--fill, 0)); transform-origin: top center;
}

/* ── work ──────────────────────────────────────────────── */
.work { position: relative; padding: 0 0 16vh; }
.work__bg { position: absolute; inset: 0; overflow: clip; }
.work__bg .bgvid { position: sticky; top: 0; height: 100vh; filter: brightness(0.6); }
.work__shade { position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink) 0%, rgba(5,7,6,0.72) 18%, rgba(5,7,6,0.72) 82%, var(--ink) 100%); }

.work__inner { position: relative; z-index: 2; padding-top: 18vh; }
.work__head { padding: 0 var(--gutter); max-width: var(--shell); margin: 0 auto 9vh; }
.work__head .outline-title { margin-top: 12px; }

.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
  padding: 0 var(--gutter);
  max-width: var(--shell); margin: 0 auto;
  perspective: 1200px;
}
.card {
  position: relative; display: flex; flex-direction: column;
  min-height: 380px; padding: 30px 28px;
  background: rgba(10, 13, 12, 0.72);
  border: 1px solid rgba(242, 237, 224, 0.1);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.4s ease, transform 0.18s ease-out, background 0.4s ease;
  will-change: transform;
  opacity: 0; translate: 0 40px;
}
.card.in-view { animation: cardin 0.9s cubic-bezier(0.19, 1, 0.22, 1) forwards; animation-delay: calc(var(--k) * 130ms); }
@keyframes cardin { to { opacity: 1; translate: 0 0; } }
.card:hover { border-color: var(--emerald-dim); background: rgba(12, 17, 15, 0.85); }
.card__glare {
  position: absolute; inset: -40%;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(25, 229, 143, 0.16), transparent 45%);
  opacity: 0; transition: opacity 0.35s ease; pointer-events: none;
}
.card:hover .card__glare { opacity: 1; }
.card__tag { font-size: 10px; letter-spacing: 0.3em; color: var(--emerald); margin-bottom: auto; }
.card__title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(34px, 3vw, 52px); line-height: 0.96;
  margin: 26px 0 14px; color: var(--cream);
}
.card__pitch { font-size: 14.5px; color: var(--cream-dim); line-height: 1.65; }
.card__meta { margin-top: 26px; font-size: 10px; letter-spacing: 0.24em; color: var(--cream-faint); }
.card__arrow {
  position: absolute; right: 24px; bottom: 18px;
  font-size: 26px; color: var(--emerald);
  transform: translateX(-8px); opacity: 0;
  transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.35s ease;
}
.card:hover .card__arrow { transform: translateX(0); opacity: 1; }

/* ── case study ────────────────────────────────────────── */
.card--open .card__arrow { content: ''; }
.card__cue {
  position: absolute; left: 28px; bottom: 20px;
  font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--emerald);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.19, 1, 0.22, 1);
}
.card--open:hover .card__cue { opacity: 1; transform: translateY(0); }
.card--open:hover .card__meta { opacity: 0; }
.card__meta { transition: opacity 0.3s ease; }

.case {
  width: min(1100px, 100%);
  max-width: 100%;
  height: 100svh;
  max-height: 100svh;
  margin: 0 0 0 auto;            /* slides in from the right edge */
  padding: 0;
  border: none;
  background: var(--ink-2);
  color: var(--cream);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.case::backdrop { background: rgba(3, 5, 4, 0.72); backdrop-filter: blur(4px); }

/* Hard scroll lock while a panel is open. Stopping Lenis is not enough: the
   panels opt out of Lenis via data-lenis-prevent so they can scroll natively,
   which means a wheel event over a panel too short to overflow would fall
   through and scroll the page behind it. */
html.case-open, html.case-open body { overflow: hidden; }

/* entrance / exit */
.case, .case::backdrop { opacity: 0; }
.case { transform: translateX(40px); }
.case[open] { animation: caseIn 0.5s cubic-bezier(0.19, 1, 0.22, 1) forwards; }
.case[open]::backdrop { animation: fadeIn 0.4s ease forwards; }
.case.is-closing { animation: caseOut 0.3s cubic-bezier(0.76, 0, 0.24, 1) forwards; }
.case.is-closing::backdrop { animation: fadeOut 0.3s ease forwards; }
@keyframes caseIn { to { opacity: 1; transform: translateX(0); } }
@keyframes caseOut { to { opacity: 0; transform: translateX(40px); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

.case__close {
  position: sticky; top: 0; float: right;
  z-index: 3; margin: 18px 18px 0 0;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(5, 7, 6, 0.7);
  border: 1px solid rgba(242, 237, 224, 0.18);
  color: var(--cream); font-size: 15px; cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
}
.case__close:hover { background: var(--emerald); border-color: var(--emerald); color: #04120b; transform: rotate(90deg); }

.case__inner { padding: clamp(28px, 5vw, 72px); padding-top: clamp(20px, 3vw, 40px); }

.case__head { border-bottom: 1px solid rgba(242, 237, 224, 0.12); padding-bottom: clamp(26px, 3vw, 40px); }
.case__title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(48px, 7vw, 104px); line-height: 0.9;
  text-transform: uppercase; margin: 16px 0 22px;
}
.case__standfirst {
  max-width: 620px; font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.7; color: var(--cream-dim);
}

.paper {
  display: flex; align-items: center; gap: 20px;
  margin-top: clamp(26px, 3vw, 38px);
  padding: 22px 24px;
  border: 1px solid var(--emerald-dim);
  background: linear-gradient(100deg, rgba(25, 229, 143, 0.09), rgba(25, 229, 143, 0.02) 60%);
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.35s cubic-bezier(0.19, 1, 0.22, 1);
}
.paper:hover { border-color: var(--emerald); background: linear-gradient(100deg, rgba(25, 229, 143, 0.16), rgba(25, 229, 143, 0.04) 60%); transform: translateY(-2px); }
.paper__icon { flex: 0 0 auto; width: 34px; height: 34px; color: var(--emerald); }
.paper__icon svg { width: 100%; height: 100%; }
.paper__body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.paper__label { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--emerald); }
.paper__title { font-family: var(--display); font-size: clamp(22px, 2.2vw, 30px); line-height: 1; color: var(--cream); }
.paper__meta { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream-faint); }
.paper__cta {
  margin-left: auto; flex: 0 0 auto;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream);
  transition: color 0.3s ease, transform 0.3s ease;
}
.paper:hover .paper__cta { color: var(--emerald); transform: translateX(3px); }
@media (max-width: 640px) {
  .paper { flex-wrap: wrap; gap: 14px; }
  .paper__cta { margin-left: 0; width: 100%; }
}

/* auto-fit so a case study with two metrics reads as deliberately as one
   with four, instead of leaving empty columns */
.case__metrics {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 22px 32px; padding: clamp(28px, 3.5vw, 44px) 0;
  border-bottom: 1px solid rgba(242, 237, 224, 0.12);
}
.metric { display: flex; flex-direction: column; gap: 10px; }
.metric__n {
  font-family: var(--display); font-size: clamp(38px, 4.4vw, 66px);
  line-height: 0.9; color: var(--emerald); font-variant-numeric: tabular-nums;
}
.metric__n sup { font-size: 0.45em; top: -0.55em; position: relative; }
.metric__l { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream-dim); line-height: 1.65; }

.role { padding: clamp(30px, 3.5vw, 48px) 0; border-bottom: 1px solid rgba(242, 237, 224, 0.12); }
.role__head { display: flex; gap: 22px; align-items: baseline; }
.role__num { font-family: var(--display); font-size: clamp(30px, 3vw, 46px); color: var(--emerald); line-height: 1; }
.role__title { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.2vw, 48px); line-height: 1; text-transform: uppercase; }
.role__meta { margin-top: 8px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream-faint); }
.role--solo .role__points { padding-left: 0; }
.role__points { list-style: none; margin-top: 26px; padding-left: clamp(0px, 4vw, 68px); display: grid; gap: 18px; }
.role__points li {
  position: relative; padding-left: 26px;
  font-size: clamp(14.5px, 1.25vw, 16.5px); line-height: 1.75; color: var(--cream-dim);
  max-width: 78ch;
}
.role__points li::before {
  content: ''; position: absolute; left: 0; top: 0.72em;
  width: 11px; height: 1px; background: var(--emerald);
}

.case__foot { display: flex; gap: 16px; flex-wrap: wrap; padding-top: clamp(30px, 3.5vw, 46px); }

@media (max-width: 900px) {
  .role__head { flex-direction: column; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .case[open] { animation: none; opacity: 1; transform: none; }
  .case[open]::backdrop { animation: none; opacity: 1; }
  .case.is-closing { animation: none; }
  .case__close:hover { transform: none; }
}

/* ── scroll reveal (shared) ────────────────────────────── */
[data-reveal] {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.85s ease, transform 0.85s cubic-bezier(0.19, 1, 0.22, 1);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* ── film ──────────────────────────────────────────────── */
.film {
  position: relative;
  padding: 16vh 0 15vh;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(25, 229, 143, 0.07), transparent 68%),
    var(--ink);
}
.film__head { padding: 0 var(--gutter); max-width: var(--shell); margin: 0 auto 8vh; }
.film__head .outline-title { margin-top: 12px; }
/* same measure as the work and field-note card grids, so the player sits on
   exactly the same left and right edges as every other section */
.film__stage { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }

.film__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink-2);
  border: 1px solid rgba(242, 237, 224, 0.12);
  overflow: hidden;
  transition: border-color 0.45s ease;
}
.film__frame:hover { border-color: var(--emerald-dim); }
/* the iframe is absolutely filled rather than sized, so the 16:9 box drives the
   player at every width instead of YouTube's own intrinsic dimensions */
.film__frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; display: block;
  background: var(--ink-2); color-scheme: dark;
}

.film__note {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-top: 22px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cream-faint);
}
.film__out { color: var(--cream-dim); transition: color 0.3s ease; }
.film__out:hover { color: var(--emerald); }

/* ── field notes ───────────────────────────────────────── */
/* the entries reuse the .card grid from the work section so the two indexes
   read as one system; .card--soon is the unpublished state */
.notes { padding: 15vh 0 16vh; background: var(--ink); }
.notes__head { padding: 0 var(--gutter); max-width: var(--shell); margin: 0 auto 7vh; }
.notes__head .outline-title { margin-top: 12px; }
.notes__intro {
  margin-top: 26px; max-width: 560px;
  font-size: clamp(15px, 1.4vw, 18px); line-height: 1.75; color: var(--cream-dim);
}

.card--soon { cursor: default; }
.card--soon .card__title { margin-bottom: 18px; }
.card__soon {
  align-self: flex-start; margin-top: 26px;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--emerald-dim);
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--emerald); white-space: nowrap;
}
.card__soon::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--emerald);
  animation: pulse 2.4s ease-in-out infinite;
}

/* ── finale ────────────────────────────────────────────── */
.finale {
  min-height: 92vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 14vh var(--gutter) 10vh;
  background:
    radial-gradient(ellipse 60% 45% at 50% 62%, rgba(25, 229, 143, 0.08), transparent 70%),
    var(--ink);
}
.finale__kicker { font-size: 12px; letter-spacing: 0.5em; color: var(--emerald); margin-bottom: 4vh; }
.finale__title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(76px, 14vw, 240px); line-height: 0.86;
  text-transform: uppercase;
}
/* the overflow mask that drives the letter reveal clips at the padding box, so
   without this the acute on RÉSUMÉ is shaved off the top */
.finale__title .line { display: block; overflow: hidden; padding-top: 0.2em; margin-top: -0.08em; }
.finale__title .line--accent { color: var(--emerald); }

.finale__actions { display: flex; gap: 18px; margin-top: 7vh; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--body); font-weight: 500;
  font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 20px 38px; border-radius: 999px;
  transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1), background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn__ico { transition: transform 0.3s ease; }
.btn:hover { transform: translateY(-3px); }
.btn:hover .btn__ico { transform: translate(2px, -2px); }
.btn--solid { background: var(--emerald); color: #04120b; }
.btn--solid:hover { background: #2bf39e; }
.btn--ghost { border: 1px solid rgba(242, 237, 224, 0.25); color: var(--cream); }
.btn--ghost:hover { border-color: var(--emerald); color: var(--emerald); }

/* ── footer ────────────────────────────────────────────── */
.footer { border-top: 1px solid rgba(242, 237, 224, 0.1); padding: 40px var(--gutter) 34px; background: var(--ink); }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__mark { font-family: var(--display); font-size: 22px; letter-spacing: 0.12em; }
.footer__links { display: flex; gap: 26px; }
.footer__links a { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream-dim); transition: color 0.3s ease; }
.footer__links a:hover { color: var(--emerald); }
.footer__row--sub { margin-top: 22px; font-size: 11px; letter-spacing: 0.14em; color: var(--cream-faint); text-transform: uppercase; }
.footer__top { color: var(--cream-faint); transition: color 0.3s ease; }
.footer__top:hover { color: var(--emerald); }

/* ── responsive ────────────────────────────────────────── */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  /* the nav stays — it drops to a second row rather than disappearing, which
     used to leave phones with no way to jump between sections */
  .nav { padding: 15px var(--gutter) 11px; gap: 10px; flex-wrap: wrap; }
  .nav__status { display: none; }
  .nav__links {
    flex: 1 0 100%; order: 2;
    gap: clamp(14px, 4vw, 24px); overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nav__links::-webkit-scrollbar { display: none; }
  .nav__links a { font-size: 10px; letter-spacing: 0.14em; white-space: nowrap; }
  .stats__grid { grid-template-columns: 1fr; gap: 48px; }
  .pillars__stage { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 3vh; }
  .pillars__index { min-width: 0; }
  .pillars__digit { font-size: 96px; }
  .cards { grid-template-columns: 1fr; }
  .hero__hud { left: var(--gutter); right: auto; }
  .hero__hud .hud__cell--cue { display: none; }
}
@media (max-width: 560px) {
  .nav__mark { font-size: 16px; letter-spacing: 0.1em; }
  /* keep the eyebrow on one line rather than letting it break around the rule */
  .hero__eyebrow { font-size: 10px; letter-spacing: 0.24em; gap: 12px; }
  .hero__eyebrow-rule { flex-basis: 32px; }
  .card { min-height: 320px; }
  .footer__row { flex-direction: column; align-items: flex-start; }
  .footer__links { flex-wrap: wrap; gap: 18px; }
}

/* ── reduced motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .char { transition: none; transform: none; }
  [data-intro] { transition: none; opacity: 1; transform: none; }
  [data-reveal] { transition: none; opacity: 1; transform: none; }
  .cue-line::after { animation: none; }
  .marquee__track { transform: none !important; }
  .card__soon::before, .nav__status .dot { animation: none; }
  .card, .card.in-view { animation: none; opacity: 1; translate: 0 0; }
}
