/* styles.css — Highdive (redesign concept). Archetype E — full-bleed immersive.
 * Consumes tokens.css ONLY. No raw hex/timings outside :root definitions. */

/* ---------- Fonts (self-hosted, subset, font-display optional) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/bricolage-800.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: optional;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("assets/plex-sans-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: optional;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("assets/plex-sans-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: optional;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* clip horizontal overflow WITHOUT creating a scroll container (keeps position:sticky working) */
}
h1, h2, h3, p { margin: 0; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img, svg { max-width: 100%; }
::selection { background: var(--color-flare); color: var(--color-on-flare); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.flare { color: var(--color-flare); }
.flare-t { color: var(--color-flare-on-ink); }
:root[data-theme="light"] .flare-t { color: var(--color-flare-text); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--color-flare); color: var(--color-on-flare);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); font-weight: 600;
}
.skip:focus { left: var(--space-4); top: var(--space-4); }

:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

/* film grain overlay — reused per dark scene */
.grain {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: var(--grain);
  background-size: 140px 140px;
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-body); font-weight: 600; font-size: var(--fs-small);
  letter-spacing: 0.01em; line-height: 1;
  padding: 0.9em 1.4em; border-radius: var(--radius-md);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn--primary { background: var(--color-flare); color: var(--color-on-flare); }
.btn--primary svg { transition: transform var(--dur-fast) var(--ease-out); }
.btn--primary:hover { background: var(--color-flare-2); }
.btn--primary:hover svg { transform: translateY(3px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--color-flare); color: var(--color-flare-on-ink); }
:root[data-theme="light"] .btn--ghost:hover { color: var(--color-flare-text); }
.btn--lg { padding: 1.1em 1.9em; font-size: var(--fs-body); }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover, .btn--primary:hover svg { transform: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: var(--border-hair);
}
.nav { display: flex; align-items: center; gap: var(--space-5); min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--text); margin-right: auto; }
.brand__logo { display: inline-flex; flex: none; align-items: center; }
.brand__logo img { height: 28px; width: auto; display: block; }
:root[data-theme="light"] .brand__logo img { filter: invert(1); }
.brand__word { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; }
.nav__links { display: flex; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
.nav__links a {
  color: var(--text-soft); text-decoration: none; font-size: var(--fs-small); font-weight: 600;
  letter-spacing: 0.01em; transition: color var(--dur-fast) var(--ease-out);
}
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: var(--space-3); }
.btn--nav { padding: 0.7em 1.1em; }

.theme-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  color: var(--text); cursor: pointer; transition: border-color var(--dur-fast) var(--ease-out);
}
.theme-toggle:hover { border-color: var(--color-flare); }
.icon-sun { display: none; }
:root[data-theme="light"] .icon-sun { display: block; }
:root[data-theme="light"] .icon-moon { display: none; }

.hamburger {
  display: none; position: relative; width: 42px; height: 42px;
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  cursor: pointer;
}
.hamburger .bar {
  position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text);
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.hamburger .bar1 { top: 14px; } .hamburger .bar2 { top: 20px; } .hamburger .bar3 { top: 26px; }
.hamburger[aria-expanded="true"] .bar1 { top: 20px; transform: rotate(45deg); }
.hamburger[aria-expanded="true"] .bar2 { opacity: 0; }
.hamburger[aria-expanded="true"] .bar3 { top: 20px; transform: rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .hamburger .bar { transition: none; } }

.mobile-menu {
  display: none; border-bottom: var(--border-hair); background: var(--bg-raised);
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: var(--space-4) var(--gutter) var(--space-6); display: grid; gap: var(--space-2); }
.mobile-menu a { color: var(--text); text-decoration: none; font-size: 1.1rem; font-weight: 600; padding: var(--space-3) 0; display: block; }
.mobile-menu .btn { justify-content: center; margin-top: var(--space-3); }

/* ---------- Concept disclaimer bar (recessive chrome) ---------- */
.concept-bar {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: var(--space-2);
  background: var(--bg-raised); color: var(--text-soft);
  font-size: var(--fs-label); letter-spacing: 0.04em; text-transform: uppercase;
  padding: var(--space-2) var(--gutter); border-bottom: 1px solid var(--color-flare);
  text-align: center;
}
.concept-bar strong { color: var(--text); font-weight: 600; }
.concept-bar a { color: var(--color-flare-on-ink); text-decoration: none; font-weight: 600; }
:root[data-theme="light"] .concept-bar a { color: var(--color-flare-text); }
.concept-bar__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-flare); flex: none; }

/* ---------- Section rhythm ---------- */
.section-title { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h2); line-height: var(--lh-head); letter-spacing: var(--tracking-display); text-wrap: balance; }
.section-title--center { text-align: center; }
.section-note { color: var(--text-dim); max-width: 44ch; margin-top: var(--space-3); text-wrap: pretty; }
.eyebrow {
  font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: var(--tracking-label);
  text-transform: uppercase; color: var(--text-dim);
}
.eyebrow--iv { color: var(--color-flare-on-ink); }
:root[data-theme="light"] .eyebrow--iv { color: var(--color-flare-text); }

/* ============ SCENE 1 — HERO ============ */
.hero {
  position: relative;
  background: var(--color-ink); color: var(--color-bone);
  padding-block: clamp(2.5rem, 6vh, 4.5rem) 0;
}
/* hero stays cinematic-dark in both themes — base .hero already sets ink + bone (theme-independent tokens) */
/* tall inner gives the sticky jumper scroll room to "hang" as you pass through the section */
.hero__inner { position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: 1.25fr 0.75fr; gap: var(--space-6); align-items: start; min-height: 108vh; }
.hero__copy { padding-top: clamp(1rem, 6vh, 4rem); }
.hero .eyebrow { color: var(--color-bone-dim); }
.hero__h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.75rem, 7.2vw, 8rem); line-height: var(--lh-tight); letter-spacing: -0.03em;
  text-wrap: balance; margin-top: var(--space-4);
}
.hero__foot { margin-top: var(--space-6); border-top: 1px solid var(--color-ink-4); padding-top: var(--space-5); max-width: 48ch; }
.hero .lede { color: var(--color-bone-soft); font-size: var(--fs-lead); line-height: 1.5; text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.hero .btn--ghost { color: var(--color-bone); border-color: var(--color-ink-4); }
.hero .btn--ghost:hover { border-color: var(--color-flare); color: var(--color-flare-on-ink); }

/* signature — their real base-jumper, freefalling + sticky through the section (decision 2).
 * top:96px clears the sticky header; padding-top drops the jumper toward center so it still reads centered. */
.hero__stage { position: sticky; top: 92px; align-self: start; padding-top: 2vh; display: flex; align-items: flex-start; justify-content: center; }
.hero__jumper { display: block; width: clamp(240px, 30vw, 440px); height: auto; }

@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes jumperIn { from { opacity: 0; transform: translateY(-48px) rotate(-9deg); } to { opacity: 1; transform: none; } }
@keyframes jumperFall { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(44px) rotate(3deg); } }
.hero .eyebrow, .hero__foot { animation: rise var(--dur-mid) var(--ease-out) both; }
.hero__foot { animation-delay: var(--dur-stagger); }
.hero__jumper { animation: jumperIn var(--dur-plunge) var(--ease-plunge) both; }
/* scroll-driven "fall" where supported */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__jumper { animation: jumperFall linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow, .hero__foot, .hero__jumper { animation: none; }
}

/* ============ SCENE 2 — THE REEL (real campaign stills) ============ */
.reel { background: var(--bg); padding-block: var(--section-pad); }
.reel__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-4); }
.reel__head .section-title { font-size: var(--fs-h2); }

.scene { margin: 0; position: relative; }
.scene__shot { position: relative; overflow: hidden; border-radius: var(--radius-md); background: var(--color-ink-2); }
.scene__shot img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; transition: transform var(--dur-mid) var(--ease-out); }
.scene:hover .scene__shot img { transform: scale(1.045); }

/* featured — big, caption overlaid on an endorsed image-scrim */
.scene--feature { margin-top: var(--space-6); }
.scene--feature .scene__shot { border-radius: var(--radius-md); }
.scene--feature .scene__shot img { aspect-ratio: 21 / 9; }
.scene--feature .scene__shot::after { content: ""; position: absolute; inset: 0; background: var(--scrim-feature); pointer-events: none; } /* endorsed image scrim (4C exception b) */
.scene__over { position: absolute; left: 0; bottom: 0; z-index: 1; padding: clamp(1.25rem, 4vw, 3rem); max-width: 46rem; color: var(--color-bone); }
.scene__over .scene__meta { color: var(--color-bone-soft); }
.scene__over .scene__title { font-size: var(--fs-scene); }
.scene__over .scene__desc { color: var(--color-bone-soft); }

.reel__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-7) var(--space-6); margin-top: var(--space-8); }
.reel__grid figure figcaption { padding-top: var(--space-4); }
/* a lone trailing tile spans full width as a bold closer (balances the 2×2 above) */
.reel__grid > .scene:last-child:nth-child(odd) { grid-column: 1 / -1; }
.reel__grid > .scene:last-child:nth-child(odd) .scene__shot img { aspect-ratio: 2.4 / 1; }

.scene__idx { display: inline-block; font-family: var(--font-mono); font-size: 1.25rem; color: var(--color-flare-on-ink); font-weight: 400; transition: transform var(--dur-fast) var(--ease-out); }
.scene--feature .scene__idx { font-size: clamp(1.5rem, 3vw, 2.25rem); }
:root[data-theme="light"] .reel__grid .scene__idx { color: var(--color-flare-text); }
.scene__meta { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-top: var(--space-2); }
.scene__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; margin-top: var(--space-2); transition: color var(--dur-fast) var(--ease-out); }
.scene__desc { color: var(--text-soft); margin-top: var(--space-3); max-width: 54ch; text-wrap: pretty; }
.scene:hover .scene__idx { transform: translateY(-4px); }
.reel__grid .scene:hover .scene__title { color: var(--color-flare-on-ink); }
:root[data-theme="light"] .reel__grid .scene:hover .scene__title { color: var(--color-flare-text); }
@media (prefers-reduced-motion: reduce) {
  .scene:hover .scene__idx { transform: none; }
  .scene:hover .scene__shot img { transform: none; }
}

/* scroll reveal — guarded by .js so content is fully visible without JavaScript */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out); }
html.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; transition: none; } }

/* ============ SCENE 3 — CLIENT WALL (real logo marquee) ============ */
.clients { background: var(--bg-raised); padding-block: var(--section-pad-tight); overflow: hidden; }
.clients .section-title { font-size: var(--fs-h3); color: var(--text-dim); font-family: var(--font-mono); font-weight: 400; letter-spacing: var(--tracking-label); text-transform: uppercase; margin-bottom: var(--space-6); }
.logo-wall { display: flex; width: max-content; }
.logo-track { display: flex; align-items: center; gap: clamp(2rem, 3.5vw, 3.25rem); padding-right: clamp(2rem, 3.5vw, 3.25rem); animation: marquee var(--dur-marquee) linear infinite; will-change: transform; }
.logo-wall:hover .logo-track { animation-play-state: paused; }
.logo-track img { height: clamp(58px, 6vw, 88px); width: auto; flex: none; opacity: 1; }
:root[data-theme="light"] .logo-track img { filter: brightness(0.92); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .logo-wall { flex-wrap: wrap; width: 100%; justify-content: center; gap: var(--space-6); }
  .logo-track { animation: none; flex-wrap: wrap; justify-content: center; padding: 0; }
  .logo-track[aria-hidden="true"] { display: none; }
}

/* ============ SCENE 4 — WHAT THE LEAP EARNED (the one flare band) ============ */
.earned { position: relative; overflow: hidden; background: var(--color-flare); color: var(--color-on-flare); padding-block: var(--section-pad); }
.earned .grain { mix-blend-mode: multiply; opacity: 0.12; }
.earned__title { text-align: center; font-size: var(--fs-h2); }
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6) var(--space-5); margin-top: var(--space-8); position: relative; z-index: 1; }
.stat { text-align: center; border-top: 2px solid var(--color-on-flare); padding-top: var(--space-4); }
.stat__num { display: block; font-family: var(--font-display); font-weight: 800; font-size: var(--fs-scene); line-height: 0.9; letter-spacing: -0.03em; }
.stat__label { display: block; font-size: var(--fs-small); line-height: 1.35; margin-top: var(--space-3); color: color-mix(in srgb, var(--color-on-flare) 82%, transparent); text-wrap: pretty; }
.laurels { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4) var(--space-6); position: relative; z-index: 1; }
.laurels li { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--fs-small); color: var(--color-on-flare); }
.laurels strong { font-weight: 600; }
.laurels svg { color: var(--color-on-flare); flex: none; }
.earned__src { text-align: center; margin-top: var(--space-7); font-size: var(--fs-label); letter-spacing: 0.02em; color: color-mix(in srgb, var(--color-on-flare) 68%, transparent); position: relative; z-index: 1; max-width: 60ch; margin-inline: auto; }

/* ============ SCENE 5 — ETHOS ============ */
.ethos { background: var(--bg); padding-block: var(--section-pad); }
.ethos__inner { max-width: var(--maxw-narrow); }
.ethos__h { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h1); line-height: var(--lh-head); letter-spacing: -0.02em; text-wrap: balance; margin-top: var(--space-4); }
.ethos__p { color: var(--text-soft); font-size: var(--fs-lead); line-height: 1.55; margin-top: var(--space-5); text-wrap: pretty; }
.pull { margin: var(--space-8) 0 0; padding-left: var(--space-5); border-left: 3px solid var(--color-flare); font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.01em; }
.pull cite { display: block; font-family: var(--font-mono); font-weight: 400; font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); font-style: normal; margin-top: var(--space-3); }

/* ============ SCENE 6 — ABOUT ============ */
.about { background: var(--bg-raised); padding-block: var(--section-pad); }
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); margin-top: var(--space-7); }
.person { border-top: 2px solid var(--line-strong); padding-top: var(--space-4); }
.person__role { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-flare-on-ink); }
:root[data-theme="light"] .person__role { color: var(--color-flare-text); }
.person__name { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h3); letter-spacing: -0.02em; margin-top: var(--space-3); text-wrap: balance; }
.person__note { color: var(--text-soft); font-size: var(--fs-small); margin-top: var(--space-2); text-wrap: pretty; }
.offices { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); margin-top: var(--space-8); }
.office { display: flex; gap: var(--space-4); align-items: flex-start; border: var(--border-hair); border-radius: var(--radius-md); padding: var(--space-5); background: var(--surface); }
.office__pin { color: var(--color-flare); flex: none; }
.office__city { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; }
.office__city span { color: var(--text-dim); font-size: var(--fs-small); font-family: var(--font-mono); font-weight: 400; }
.office__addr { color: var(--text-soft); font-size: var(--fs-small); margin-top: var(--space-2); }

/* ============ SCENE 7 — CASE (IV pitch) ============ */
.case { position: relative; overflow: hidden; background: var(--color-ink); color: var(--color-bone); padding-block: var(--section-pad); }
.case__inner { position: relative; z-index: 1; max-width: var(--maxw-narrow); }
.case .eyebrow--iv { color: var(--color-flare-on-ink); }
.case__h { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h1); line-height: var(--lh-head); letter-spacing: -0.02em; text-wrap: balance; margin-top: var(--space-4); }
.case__p { color: var(--color-bone-soft); font-size: var(--fs-lead); line-height: 1.55; margin-top: var(--space-5); text-wrap: pretty; }
.case__p em { color: var(--color-bone); font-style: italic; }
.case__points { list-style: none; margin: var(--space-7) 0 0; padding: 0; display: grid; gap: var(--space-5); }
.case__points li { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); align-items: start; border-top: 1px solid var(--color-ink-4); padding-top: var(--space-5); }
.case__points svg { color: var(--color-flare); flex: none; margin-top: 2px; }
.case__points strong { color: var(--color-bone); font-weight: 600; }
.case__points div { color: var(--color-bone-soft); }
.case__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-7); }
.case .btn--ghost { color: var(--color-bone); border-color: var(--color-ink-4); }
.case .btn--ghost:hover { border-color: var(--color-flare); color: var(--color-flare-on-ink); }
.case__by { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.04em; color: var(--color-bone-dim); margin-top: var(--space-6); }
.case__by a { color: var(--color-flare-on-ink); }

/* ============ SCENE 8 — CONTACT (mockup) ============ */
.contact { background: var(--bg); padding-block: var(--section-pad); text-align: center; }
.contact__h { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-scene); line-height: 0.98; letter-spacing: -0.03em; }
.contact__p { color: var(--text-soft); font-size: var(--fs-lead); margin-top: var(--space-4); }
.contact__actions { display: flex; flex-direction: column; align-items: center; gap: var(--space-5); margin-top: var(--space-7); }
.contact__where { display: inline-flex; align-items: center; gap: var(--space-4); font-family: var(--font-mono); font-size: var(--fs-small); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.contact__where .sep { color: var(--color-flare); }

/* ============ FOOTER ============ */
.site-footer { position: relative; overflow: hidden; background: var(--color-ink); color: var(--color-bone); padding-block: var(--section-pad) var(--space-6); }
.footer__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-7) var(--space-5); }
.footer__word { font-family: var(--font-display); font-weight: 800; font-size: 2rem; letter-spacing: -0.03em; }
.footer__tag { color: var(--color-flare-on-ink); font-family: var(--font-mono); font-size: var(--fs-small); letter-spacing: 0.04em; margin-top: var(--space-2); }
.footer__mark img { width: 40px; height: auto; margin-top: var(--space-5); display: block; }
.footer__col .footer__h { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-bone-dim); margin-bottom: var(--space-4); }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.footer__col li { color: var(--color-bone-soft); font-size: var(--fs-small); }
.footer__col a { color: var(--color-bone-soft); text-decoration: none; }
.footer__col a:hover { color: var(--color-flare-on-ink); }
.footer__base { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid var(--color-ink-4); }
.footer__base p { color: var(--color-bone-dim); font-size: var(--fs-label); letter-spacing: 0.02em; }
.footer__iv a { color: var(--color-flare-on-ink); }

/* ---------- Sub-page shared bits ---------- */
.page-hero { background: var(--color-ink); color: var(--color-bone); position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 6rem); }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--color-bone-dim); }
.page-hero__h { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h1); line-height: var(--lh-head); letter-spacing: -0.03em; text-wrap: balance; margin-top: var(--space-3); }
.page-hero__p { color: var(--color-bone-soft); font-size: var(--fs-lead); max-width: 56ch; margin-top: var(--space-4); text-wrap: pretty; }
.back-link { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-bone-dim); text-decoration: none; }
.back-link:hover { color: var(--color-flare-on-ink); }
.page-section { padding-block: var(--section-pad); background: var(--bg); }
.page-section--alt { background: var(--bg-raised); }
.lede-measure { max-width: var(--maxw-narrow); margin-inline: 0; }

/* ---------- Sub-page components ---------- */
.prose { color: var(--text-soft); font-size: var(--fs-lead); line-height: 1.55; margin-top: var(--space-4); text-wrap: pretty; }
.prose em { color: var(--text); font-style: italic; }
.prose + .prose { margin-top: var(--space-4); }

/* scope cards */
.scope { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); margin-top: var(--space-7); }
.scope__card { border-top: 2px solid var(--line-strong); padding-top: var(--space-4); background: transparent; }
.scope__card svg { color: var(--color-flare); }
.scope__card h3 { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h3); letter-spacing: -0.02em; margin-top: var(--space-3); text-wrap: balance; }
.scope__card p { color: var(--text-soft); font-size: var(--fs-small); margin-top: var(--space-2); text-wrap: pretty; }

/* growth roadmap */
.grow { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; gap: 0; }
.grow li { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); align-items: start; padding-block: var(--space-4); border-top: var(--border-hair); }
.grow__n { font-family: var(--font-mono); color: var(--color-flare-on-ink); font-size: 1.2rem; }
:root[data-theme="light"] .grow__n { color: var(--color-flare-text); }
.grow strong { color: var(--text); font-weight: 600; }
.grow div { color: var(--text-soft); }

/* FAQ */
.faq { margin-top: var(--space-6); }
.faq details { border-top: var(--border-hair); padding: var(--space-4) 0; }
.faq details:last-child { border-bottom: var(--border-hair); }
.faq summary { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h3); letter-spacing: -0.01em; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--color-flare); font-size: 1.6rem; line-height: 1; transition: transform var(--dur-fast) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-soft); margin-top: var(--space-3); max-width: 62ch; text-wrap: pretty; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* about IV */
.about-iv__logo { display: block; border-radius: var(--radius-md); }

/* timeline phases */
.phases { list-style: none; margin: 0; padding: 0; counter-reset: phase; }
.phase { display: grid; grid-template-columns: auto 1fr; gap: var(--space-5); padding-block: var(--space-6); border-top: var(--border-hair); position: relative; }
.phase:first-child { border-top: none; padding-top: 0; }
.phase__n { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1; color: var(--color-flare); letter-spacing: -0.03em; }
.phase--launch .phase__n { color: var(--color-flare); }
.phase__h { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h3); letter-spacing: -0.02em; text-wrap: balance; }
.phase__p { color: var(--text-soft); margin-top: var(--space-2); max-width: 62ch; text-wrap: pretty; }
.phase__dep { display: block; font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.04em; color: var(--text-dim); margin-top: var(--space-3); text-transform: uppercase; }

/* design: swatches */
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin-top: var(--space-6); }
.swatch { aspect-ratio: 3 / 2; border-radius: var(--radius-md); border: 1px solid var(--line); display: flex; align-items: flex-end; padding: var(--space-3); }
.swatch--flare { border-color: transparent; }
.swatch__on { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.04em; }
.usage { margin-top: var(--space-5); color: var(--text-dim); font-size: var(--fs-small); max-width: 64ch; text-wrap: pretty; }

/* design: type scale */
.type-scale { margin-top: var(--space-6); display: grid; gap: var(--space-3); }
.type-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); border-top: var(--border-hair); padding-top: var(--space-3); margin-top: var(--space-4); }
.type-row:first-child { margin-top: 0; }
.type-tag { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); }
.type-spec { font-family: var(--font-mono); font-size: var(--fs-label); color: var(--text-dim); }
.type-sample { color: var(--text); text-wrap: balance; }

/* design: motif */
.motif-demo { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-top: var(--space-6); }
.motif-card { background: var(--color-ink); border-radius: var(--radius-md); border: 1px solid var(--color-ink-3); min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-4); padding: var(--space-5); color: var(--color-bone); }
.motif-svg { height: 130px; width: auto; color: var(--color-bone); }
.motif-jumper { height: 130px; width: auto; }
.motif-mark svg { width: 46px; height: auto; color: var(--color-bone); }
.motif-rule { width: 80%; height: 3px; background: var(--color-bone); position: relative; }
.motif-rule::after { content: ""; position: absolute; left: 50%; top: 3px; width: 2px; height: 40px; background: var(--color-flare); }
.motif-label { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-bone-dim); }

/* design: components */
.components { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin-top: var(--space-6); }
.comp { border: var(--border-hair); border-radius: var(--radius-md); padding: var(--space-5); background: var(--surface); }
.comp__tag { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.comp__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-4); }

/* design: voice */
.voice { margin-top: var(--space-6); display: grid; gap: var(--space-4); }
.voice p { font-size: var(--fs-lead); line-height: 1.5; padding-left: var(--space-5); border-left: 3px solid var(--color-flare); text-wrap: pretty; }
.voice__out { border-left-color: var(--line-strong); color: var(--text-dim); }
.voice__k { display: block; font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-flare-on-ink); margin-bottom: var(--space-2); }
:root[data-theme="light"] .voice__k { color: var(--color-flare-text); }
.voice__k--no { color: var(--text-dim); }

/* design: brief form — one shared field rule (select-parity fix) */
.brief { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-top: var(--space-6); }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
.brief input, .brief select, .brief textarea {
  box-sizing: border-box; width: 100%; min-height: 48px;
  font: inherit; line-height: 1.4; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  padding: 0.7em 0.9em;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.brief textarea { min-height: 96px; resize: vertical; padding-top: 0.7em; }
.brief select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  padding-right: 2.4em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23FF5A1F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9em center;
}
.brief input:focus, .brief select:focus, .brief textarea:focus { border-color: var(--color-flare); outline: 2px solid var(--color-focus); outline-offset: 1px; }
.brief input::placeholder, .brief textarea::placeholder { color: var(--text-dim); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.brief__submit { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.brief__confirm { display: none; color: var(--color-flare-on-ink); font-size: var(--fs-small); }
:root[data-theme="light"] .brief__confirm { color: var(--color-flare-text); }
.brief__confirm.show { display: block; }

/* ---------- Award-tier delight (tasteful, cohesive, reduced-motion-gated) ---------- */

/* Heading wipe-in — a left→right reveal, like a title card being drawn. JS adds .reveal-up + .is-in. */
html.js .reveal-up { clip-path: inset(0 100% -0.18em 0); opacity: 0; transition: clip-path 0.9s var(--ease-out), opacity 0.5s var(--ease-out); }
html.js .reveal-up.is-in { clip-path: inset(0 0 -0.18em 0); opacity: 1; }
@media (prefers-reduced-motion: reduce) { html.js .reveal-up { clip-path: none; opacity: 1; transition: none; } }

/* Reel cinematic hover — flare-ringed play badge + brighten + zoom; feels like scrubbing a reel. */
.scene__shot { --pl: 0; }
.scene__play { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity var(--dur-mid) var(--ease-out); pointer-events: none; z-index: 2; }
.scene__play svg { width: clamp(48px, 5vw, 68px); height: auto; transform: scale(0.85); transition: transform var(--dur-mid) var(--ease-out); }
.scene:hover .scene__play { opacity: 1; }
.scene:hover .scene__play svg { transform: scale(1); }
.scene:hover .scene__shot img { transform: scale(1.05); filter: brightness(1.06) saturate(1.03); }
.scene--feature:hover .scene__shot img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
  .scene__play { display: none; }
  .scene:hover .scene__shot img { transform: none; filter: none; }
}

/* Subtle Ken-Burns on the featured film as it passes through view (scroll-driven; no-JS/no-support = static). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .scene--feature .scene__shot img { animation: kenburns linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    .scene--feature:hover .scene__shot img { animation-play-state: paused; }
  }
}
@keyframes kenburns { from { transform: scale(1.12) translateY(-1.2%); } to { transform: scale(1.02) translateY(1.2%); } }

/* design page: 2-up motif + favicon tile */
.motif-demo--2 { grid-template-columns: repeat(2, 1fr); }
.motif-favicon svg { display: block; width: 96px; height: 96px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding-bottom: clamp(2rem, 6vh, 3.5rem); }
  .hero__inner { grid-template-columns: 1fr; gap: var(--space-5); min-height: 0; align-items: center; }
  .hero__copy { padding-top: 0; }
  .hero__stage { position: static; order: -1; height: auto; top: auto; align-self: auto; padding-top: 0; }
  .hero__jumper { width: clamp(180px, 44vw, 300px); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .nav__links { display: none; }
  .btn--nav { display: none; }
  .hamburger { display: inline-grid; place-items: center; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .people { grid-template-columns: repeat(2, 1fr); }
  .scope { grid-template-columns: 1fr; }
  .motif-demo { grid-template-columns: 1fr; }
  .components { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .reel__grid { grid-template-columns: 1fr; }
  .scene--feature .scene__shot img { aspect-ratio: 16 / 9; }
  .scene__over { position: static; padding: var(--space-4) 0 0; max-width: 100%; color: var(--text); }
  .scene--feature .scene__shot::after { display: none; }
  .scene__over .scene__meta, .scene__over .scene__desc { color: var(--text-soft); }
  .offices { grid-template-columns: 1fr; }
  .hero__h1 { max-width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__base { flex-direction: column; }
  .swatches { grid-template-columns: repeat(2, 1fr); }
  .brief { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .stat-band { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr; }
  .contact__where { flex-wrap: wrap; justify-content: center; }
}
