/* ==========================================================================
   PBS Biotech — parallax version (side exploration, parallax.html)
   Brand colours come from the original tokens: navy, hero blue, tangerine.
   Scroll-driven values (--a, --p, --cover ...) are written by js/parallax.js.
   ========================================================================== */

:root {
  /* colour */
  --night: #030915;          /* page base, a deeper step of the brand navy */
  --navy-950: #000d1e;
  --navy-900: #001c42;
  --navy-800: #0a1b36;
  --navy-700: #0b2a57;
  --blue-600: #0649a4;
  --ice: #d6e0f0;            /* flow-field dot colour */
  --espresso: #171007;
  --tangerine: #ff6c2f;      /* the orange on pbsbiotech.com, same as the logo */
  --tangerine-hi: #f2541a;   /* their hover step */
  --tangerine-lo: #be3a0a;
  --paper: #f1f3f6;
  --white: #ffffff;
  --ink: #001c42;
  --ink-body: #4a5e78;
  --line-dark: rgba(214, 224, 240, 0.16);
  --line-light: rgba(0, 28, 66, 0.14);
  /* the page is white; dark panels re-point these two */
  --page: #ffffff;
  --line: var(--line-light);
  --text-dim: var(--ink-body);
  --danger: #d92c14;

  /* type */
  --font: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --fs-display: clamp(34px, 4.4vw, 68px);
  --fs-hero: clamp(38px, 5vw, 82px);
  --fs-title: clamp(26px, 2.6vw, 40px);
  --fs-lead: clamp(19px, 1.5vw, 23px);
  --fs-body: 17px;
  --fs-small: 14px;

  /* layout */
  --edge: 16px;
  --pad: clamp(20px, 5vw, 80px);
  --header-h: 72px;
  --r-panel: 24px;
  --r-card: 20px;
  --r-control: 10px;

  /* motion */
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-soft: cubic-bezier(0.45, 0, 0.25, 1);
  --fast: 200ms;
  --base: 360ms;
  --slow: 600ms;
}

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; overflow-x: clip;
  background: var(--page); color: var(--ink);
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.55;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, ul, ol, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
sub { font-size: 0.75em; line-height: 0; }

:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 3px; border-radius: 6px; }

/* dark panels on the white page */
.on-dark { --line: var(--line-dark); --text-dim: rgba(214, 224, 240, 0.76); color: var(--white); }
.on-dark :focus-visible { outline-color: var(--ice); }

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: 16px; z-index: 100; padding: 12px 20px; background: var(--ink); color: var(--white); border-radius: var(--r-control); font-weight: 500; transform: translateY(-300%); transition: transform var(--fast) var(--ease-soft); }
.skip-link:focus { transform: none; }

.wrap { width: min(1240px, 100% - 2 * var(--pad)); margin-inline: auto; position: relative; }

.display { font-size: var(--fs-display); font-weight: 300; line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance; }

/* scroll-scrubbed words (spans are added by JS) */
.w { opacity: 0.16; will-change: opacity; }
.flat .w { opacity: 1; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px;
  border: 1px solid transparent; border-radius: var(--r-control);
  font-size: 16px; font-weight: 500; line-height: 1.25; white-space: nowrap;
  transition: background-color var(--fast) var(--ease-soft), border-color var(--fast) var(--ease-soft), color var(--fast) var(--ease-soft), transform var(--fast) var(--ease-soft);
}
.btn:active { transform: scale(0.98); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn--primary { background: var(--tangerine); color: var(--white); }
.btn--primary:hover { background: var(--tangerine-hi); }
.btn--primary:active { background: var(--tangerine-lo); }
.btn--ghost { border-color: rgba(0, 28, 66, 0.26); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(0, 28, 66, 0.04); }
.on-dark .btn--ghost { border-color: rgba(214, 224, 240, 0.36); color: var(--white); }
.on-dark .btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }
.btn--line { border-color: var(--line-light); color: var(--ink); background: var(--white); }
.btn--line:hover { border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Header -------------------------------------------------------------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 40px;
  height: var(--header-h); padding-inline: calc(var(--edge) + 8px);
  transition: background-color var(--base) var(--ease-soft), backdrop-filter var(--base) var(--ease-soft);
}
.top.is-scrolled { background: rgba(255, 255, 255, 0.8); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); }
.top__logo { flex: none; }
.top__logo img { width: 190px; height: 22px; }
.top__nav { flex: 1; }
.top__nav ul { display: flex; gap: 28px; }
@media (min-width: 1024px) { .top__nav ul { justify-content: flex-end; } }
.top__nav a { display: block; padding-block: 8px; font-size: 15px; color: var(--text-dim); transition: color var(--fast) var(--ease-soft); }
.top__nav a:hover { color: var(--ink); }
.top__toggle { display: none; position: relative; width: 44px; height: 44px; margin-right: -10px; }
.top__toggle span[aria-hidden] { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform var(--base) var(--ease), top var(--base) var(--ease); }
.top__toggle span[aria-hidden]:nth-child(1) { top: 17px; }
.top__toggle span[aria-hidden]:nth-child(2) { top: 26px; }
.top__toggle[aria-expanded="true"] span[aria-hidden]:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.top__toggle[aria-expanded="true"] span[aria-hidden]:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

/* ---- Pinned scenes ------------------------------------------------------- */
.scene { position: relative; }
.scene__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.scene--hero { height: 300vh; --a: 0; --c: 0; --s: 0; --sub: 0; --w: 0; }
.scene--scale { height: 460vh; --p: 0; }

/* ---- Hero ---------------------------------------------------------------- */
.hero-panel {
  position: absolute; inset: 0;
  background: #05070b;
  clip-path: inset(
    calc(var(--header-h) * (1 - var(--a)))
    calc(var(--edge) * (1 - var(--a)))
    calc(var(--edge) * (1 - var(--a)))
    round calc(var(--r-panel) * (1 - var(--a))));
}
.hero-film { position: absolute; inset: 0; }
.hero-film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-film::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(3, 9, 21, 0.88) 0%, rgba(3, 9, 21, 0.5) 36%, rgba(3, 9, 21, 0) 66%), linear-gradient(to right, rgba(3, 9, 21, 0.5) 0%, rgba(3, 9, 21, 0) 55%); }
.hero-panel::after { content: "" ; position: absolute; inset: 0; background: var(--page); opacity: var(--a); pointer-events: none; }
/* the wheel drawing sits above the white fade and only shows once the film has gone */
.hero-iris { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.flat .hero-iris { display: none; }

.hero-art {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none;
  --art-scale: 1;
  transform: scale(calc(var(--art-scale) * (1.25 + 0.35 * var(--a))));
  opacity: calc(0.07 * var(--a));
  filter: invert(1);
}
.hero-art__box { position: absolute; left: -700px; top: -500px; width: 1400px; height: 1000px; }
.hero-art__flow { position: absolute; inset: 0; width: 1400px; height: 1000px; max-width: none; }
.hero-art__wheel { position: absolute; left: 447.35px; top: 246.66px; width: 505.304px; height: 506.681px; max-width: none; }
.motion .hero-art__wheel { animation: spin 16s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
@keyframes art-in { from { opacity: 0; transform: scale(0.92) rotate(-14deg); } to { opacity: 1; transform: none; } }

.hero-copy {
  position: absolute; z-index: 2; left: calc(var(--edge) + var(--pad) - 16px); bottom: calc(var(--edge) + clamp(32px, 8vh, 88px));
  width: min(52vw, 860px);
  transform: translate3d(0, calc(var(--a) * -110px), 0);
  opacity: calc(1 - var(--c));
}
.hero-copy__kicker { font-size: var(--fs-lead); color: var(--text-dim); margin-bottom: 20px; }
.hero-copy__title { font-size: var(--fs-hero); font-weight: 300; line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 36px; text-wrap: balance; }
.motion .hero-copy > * { animation: rise 900ms var(--ease) both; }
.motion .hero-copy > :nth-child(2) { animation-delay: 110ms; }
.motion .hero-copy > :nth-child(3) { animation-delay: 220ms; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

.statement {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px;
  padding: var(--header-h) var(--pad) 40px; text-align: center;
  opacity: var(--s); pointer-events: none;
}
.statement__lead { position: relative; max-width: 17em; color: var(--ink); font-size: clamp(30px, 4.5vw, 74px); font-weight: 500; line-height: 1.06; letter-spacing: -0.035em; text-wrap: balance; }
/* a soft white wash under the copy so the wheel drawing never runs through the letters */
.statement::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: min(118vw, 1900px); height: min(96vh, 900px); transform: translate(-50%, -50%); background: radial-gradient(closest-side, #fff 0%, rgba(255, 255, 255, 0.96) 52%, rgba(255, 255, 255, 0) 100%); pointer-events: none; }
.flat .statement::before { display: none; }
.statement__sub { max-width: 40em; font-size: var(--fs-lead); color: var(--ink-body); line-height: 1.5; color: var(--text-dim); opacity: var(--sub); transform: translateY(calc((1 - var(--sub)) * 16px)); }

/* ---- Product line: four sizes on one pinned stage ------------------------ */
.scale { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: calc(var(--header-h) + 20px) var(--pad) 0; background: var(--page); }
.scale__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.scale__title { font-size: var(--fs-title); font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; }
.scale__sub { font-size: var(--fs-lead); color: var(--text-dim); }

.scale__body { position: relative; min-height: 0; }
.scale__ring {
  position: absolute; left: 75%; top: 50%; width: min(64vh, 44vw); aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(calc(0.36 + 0.64 * var(--p))) rotate(calc(var(--p) * 300deg));
  opacity: 0.2; filter: invert(1); pointer-events: none;
}
.scale__ring img { width: 100%; height: 100%; }
.scale .scale__ring, .scale__body .scale__ring { display: none; }   /* removed: it competed with the product */

.scale__steps { position: absolute; inset: 0; }
.step {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto 1fr; column-gap: 40px;
  opacity: 0; visibility: hidden;
  transition: opacity var(--base) var(--ease-soft), visibility 0s linear var(--base);
}
.step.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.step__figure {
  grid-column: 1; grid-row: 2;
  display: flex; align-items: baseline; gap: 0.06em;
  font-size: min(15vw, 27vh); font-weight: 200; line-height: 0.86; letter-spacing: -0.055em;
  font-variant-numeric: lining-nums tabular-nums;
  transform: translate3d(0, 40px, 0); transition: transform var(--slow) var(--ease);
}
.step__figure small { font-size: 0.3em; font-weight: 300; letter-spacing: 0; color: var(--tangerine); }
.step__text { grid-column: 1; grid-row: 3; max-width: 30em; padding-top: 28px; transform: translate3d(0, 24px, 0); transition: transform var(--slow) var(--ease); }
.step__name { font-size: var(--fs-title); font-weight: 400; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 12px; }
.step__desc { color: var(--text-dim); margin-bottom: 24px; }
.step__media { grid-column: 2; grid-row: 1 / -1; display: flex; align-items: center; justify-content: center; transform: scale(0.82); transition: transform var(--slow) var(--ease); }
.step__media img { height: calc(min(66vh, 46vw) * var(--h)); width: auto; max-width: 92%; object-fit: contain; filter: drop-shadow(0 20px 26px rgba(0, 28, 66, 0.12)); }
.step.is-past .step__figure { transform: translate3d(0, -40px, 0); }
.step.is-past .step__text { transform: translate3d(0, -24px, 0); }
.step.is-past .step__media { transform: scale(1.08); }
.step.is-active .step__figure, .step.is-active .step__text, .step.is-active .step__media { transform: none; }

.rail { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); }
.rail__fill { position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--tangerine); transform: scaleX(var(--p)); transform-origin: left center; }
.rail__item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 18px 0 22px; text-align: left; color: rgba(0, 28, 66, 0.42); transition: color var(--base) var(--ease-soft); }
.rail__item span { font-size: 18px; font-weight: 500; }
.rail__item small { font-size: var(--fs-small); font-variant-numeric: lining-nums tabular-nums; }
.rail__item:hover { color: var(--ink-body); }
.rail__item.is-active { color: var(--ink); }

/* ---- Benefits: cards that stack as you scroll ---------------------------- */
.benefits { padding-top: clamp(96px, 16vh, 180px); }
.benefits__title { max-width: 12em; margin-bottom: clamp(40px, 7vh, 80px); }
.stack { padding-inline: var(--edge); }
.stack__card {
  --cover: 0;
  position: sticky; top: calc(var(--header-h) + 8px + var(--i) * 18px);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto 1fr; grid-template-areas: "title media" "body media"; gap: 32px 56px;
  min-height: min(66vh, 600px); margin-bottom: 20px; padding: clamp(28px, 4.4vw, 64px);
  border-radius: var(--r-panel);
  transform: scale(calc(1 - 0.045 * var(--cover))); transform-origin: center top;
}
.stack__card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--navy-950); opacity: calc(var(--cover) * 0.45); pointer-events: none; }
.stack__card:nth-child(1) { background: var(--navy-800); }
.stack__card:nth-child(2) { background: var(--navy-700); }
.stack__card:nth-child(3) { background: var(--blue-600); }
.stack__title { grid-area: title; }
.stack__body { grid-area: body; }
.stack__media { grid-area: media; position: relative; overflow: hidden; min-height: 260px; border-radius: var(--r-card); background: #060f22; }
.stack__media img { position: absolute; left: 0; top: -7%; width: 100%; height: 114%; max-width: none; object-fit: cover; will-change: transform; }
.stack__media canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* animated tiles: no box, the cells live on the card itself and run to its edges */
.stack__media--live { background: none; border-radius: 0; overflow: visible; }
@media (min-width: 1024px) {
  .stack__card { overflow: hidden; }
  .stack__media--live { grid-area: auto; position: absolute; top: 0; right: 0; bottom: 0; width: 56%; min-height: 0; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%); mask-image: linear-gradient(to right, transparent 0, #000 22%); }
}
.stack__media--photo { align-self: center; min-height: 0; aspect-ratio: 2 / 1; background: var(--white); }
.stack__media--photo img { top: 0; height: 100%; object-fit: contain; padding: 3% 4%; }
.flat .stack__media img { top: 0; height: 100%; }
.stack__title { font-size: clamp(28px, 3.3vw, 52px); font-weight: 300; line-height: 1.06; letter-spacing: -0.03em; max-width: 9.5em; text-wrap: balance; }
.stack__body { display: flex; flex-direction: column; gap: 18px; align-self: end; max-width: 34em; font-size: 18px; color: rgba(255, 255, 255, 0.86); }

/* ---- Applications -------------------------------------------------------- */
.apps { padding-block: clamp(72px, 12vh, 140px); overflow-x: clip; }
.apps__grid { display: grid; gap: clamp(40px, 7vh, 80px); text-align: center; }
.apps__title { font-size: var(--fs-display); font-weight: 300; line-height: 1.05; letter-spacing: -0.03em; color: var(--ink); }
.apps__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.apps__list li { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.apps__tile { display: grid; place-items: center; width: 100%; }
.apps__icon { width: clamp(150px, 16vw, 230px); height: auto; overflow: visible; fill: none; stroke: var(--tangerine); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.apps__icon .flake { stroke-width: 1.5; }
.apps__icon .nucleus { stroke-width: 1.8; }
.apps__icon .flake, .apps__icon .cell { transform-box: fill-box; transform-origin: center; }
/* the outer two slide in from the sides and the middle one rises, once, when the row scrolls in */
.motion .apps__list li { opacity: 0; transform: translateY(40px); }
.motion .apps__list li:first-child { transform: translateX(-22vw); }
.motion .apps__list li:last-child { transform: translateX(22vw); }
.motion .apps__list.is-in li { opacity: 1; transform: none; transition: transform 1.2s var(--ease), opacity 0.9s var(--ease-soft); }
/* then each icon builds: outlines draw, the three hexagons close up, the tick is drawn last */
.motion .apps__icon .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.motion .apps__icon .flake, .motion .apps__icon .nucleus { opacity: 0; }
.motion .apps__icon .hex { transform: translate(var(--hx), var(--hy)); }
.motion .is-in .apps__icon .draw { stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s var(--ease) calc(0.5s + var(--d, 0s)); }
.motion .is-in .apps__icon .hex { transform: none; transition: transform 1.3s var(--ease) calc(1.5s + var(--k) * 0.12s); }
.motion .is-in .apps__icon .flake, .motion .is-in .apps__icon .nucleus { opacity: 1; transition: opacity 0.8s var(--ease-soft) 1.5s; }
.motion .is-in .apps__icon .tick { transition: stroke-dashoffset 0.9s var(--ease) 2.2s; }
.motion .is-live .apps__icon .flake { animation: apps-turn 16s ease-in-out calc(var(--k) * -3s) infinite alternate; }
.motion .is-live .apps__icon .cell { animation: apps-float calc(3.6s + var(--k) * 0.7s) ease-in-out calc(var(--k) * -1.3s) infinite alternate; }
@keyframes apps-turn { from { transform: rotate(-40deg); } to { transform: rotate(80deg); } }
@keyframes apps-float { from { transform: translate(-3.6px, 3px) scale(0.95); } to { transform: translate(3.8px, -3.4px) scale(1.06); } }
.apps__list p { font-size: clamp(20px, 2vw, 30px); font-weight: 400; line-height: 1.15; letter-spacing: -0.02em; max-width: 11em; text-wrap: balance; }

/* ---- Competition spotlight ----------------------------------------------- */
.spotlight { margin-inline: var(--edge); padding: clamp(72px, 14vh, 160px) calc(var(--pad) - var(--edge)); border-radius: var(--r-panel); background: var(--navy-950); }
.spotlight__grid { width: min(1240px, 100%); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.spotlight__kicker { font-size: var(--fs-lead); color: var(--text-dim); margin-bottom: 12px; }
.spotlight__body { display: flex; flex-direction: column; gap: 20px; max-width: 36em; margin-top: 32px; color: rgba(255, 255, 255, 0.84); }
.spotlight__figure { display: flex; flex-direction: column; align-items: center; gap: 14px; will-change: transform; }
.spotlight__art { position: relative; width: 100%; max-width: 600px; aspect-ratio: 1000 / 1200; }
.spotlight__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: lighten; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 92%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 92%, transparent 100%); }
.spotlight__art canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.spotlight__render { display: block; width: 100%; height: auto; }
.spotlight__frame { padding: 10px; border-radius: 30px; background: rgba(214, 224, 240, 0.22); }
.spotlight__img { position: relative; border-radius: 21px; overflow: hidden; background: var(--white); }
.spotlight__img img { filter: grayscale(1) contrast(1.08); }
.spotlight__img::after { content: ""; position: absolute; inset: 0; background: url("../assets/noise-texture.png") left top / 165px 165px repeat; opacity: 0.2; }
.spotlight__figure figcaption { font-size: var(--fs-small); color: var(--text-dim); }

/* ---- Light band ---------------------------------------------------------- */
.light { margin: var(--edge) var(--edge) 0; background: var(--paper); color: var(--ink); border-radius: var(--r-panel); }

.tech { padding-top: clamp(88px, 15vh, 170px); }
.tech__row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 64px); align-items: center; margin-top: 20px; padding: clamp(24px, 3.4vw, 52px); background: var(--white); border-radius: var(--r-card); }
.tech .display + .tech__row { margin-top: clamp(40px, 7vh, 80px); }
.tech__copy { display: flex; flex-direction: column; gap: 16px; max-width: 30em; }
.tech__title { font-size: clamp(24px, 2.5vw, 38px); font-weight: 400; line-height: 1.08; letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; margin-bottom: 4px; }
.tech__text { font-size: 17px; line-height: 1.55; color: var(--ink-body); }
.tech__media { border-radius: 16px; overflow: hidden; }
.tech__media--pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; overflow: visible; }
.tech__clip { border-radius: 16px; overflow: hidden; background: var(--white); border: 1px solid var(--line-light); }
.tech__clip video { display: block; width: 100%; height: auto; }
.tech__media--pair video { aspect-ratio: 2 / 3; object-fit: cover; }
.tech__media--dark { background: #000; padding: 12px 12px 16px; }
.tech__media--dark .tech__clip { border: 0; border-radius: 8px; background: #000; }
.tech__media--chart { padding: clamp(12px, 2vw, 28px); background: var(--white); border: 1px solid var(--line-light); }
.tech__media--chart img { width: 100%; max-width: 479px; margin-inline: auto; }
.tech__label { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 15px; font-weight: 500; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.tech__label span { font-weight: 400; color: var(--ink-body); }
.tech__label--split { margin-top: 10px; padding-inline: 4%; justify-content: space-around; color: var(--white); }
.tech__label--split span { color: rgba(255, 255, 255, 0.82); }
/* every CFD clip sits on the navy tile itself: the white-background ones are flipped to dark (hues kept), then black drops out */
.tech__row .tech__clip, .tech__row .tech__media--dark .tech__clip { background: none; border: 0; border-radius: 0; }
.tech__row .tech__media--dark { background: none; border: 0; padding: 0; }
.tech__row .tech__clip video { mix-blend-mode: screen; }
.tech__row .tech__media--pair video { filter: invert(1) hue-rotate(180deg) contrast(1.15) brightness(1.25); }
.tech__row .tech__media--dark video { filter: brightness(1.25) contrast(1.05); }
/* --- the data section as an instrument panel: navy tiles, orange for Vertical-Wheel --- */
.tech__row, .tech__tile {
  position: relative; color: var(--white); border: 1px solid rgba(214, 224, 240, 0.12);
  background:
    linear-gradient(rgba(214, 224, 240, 0.045) 1px, transparent 1px) 0 0 / 100% 36px,
    linear-gradient(90deg, rgba(214, 224, 240, 0.045) 1px, transparent 1px) 0 0 / 36px 100%,
    linear-gradient(155deg, #0b2247 0%, #071530 55%, #030b1c 100%);
}
.tech__row { align-items: start; }
.tech__row .tech__copy { text-align: left; align-items: flex-start; }
.tech__duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.tech__tile { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 44px); border-radius: var(--r-card); }
.tech__row .tech__title, .tech__tile .tech__title { color: var(--white); }
.tech__row .tech__text, .tech__tile .tech__text { color: rgba(255, 255, 255, 0.76); }
.tech__row .tech__label { color: var(--white); }
.tech__row .tech__label span { color: rgba(255, 255, 255, 0.7); }
.dash-tag { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: rgba(214, 224, 240, 0.8); }
.dash-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tangerine); box-shadow: 0 0 0 0 rgba(255, 108, 47, 0.6); }
.motion .dash-tag::before { animation: dash-pulse 2.4s var(--ease) infinite; }
@keyframes dash-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 108, 47, 0.55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(255, 108, 47, 0); } }

.tech__meters { display: grid; gap: 22px; width: 100%; margin-top: 10px; font-variant-numeric: lining-nums tabular-nums; }
.meter { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid rgba(214, 224, 240, 0.16); }
.meter__name { font-size: 14px; color: rgba(214, 224, 240, 0.8); }
.meter__row { display: grid; grid-template-columns: 7.2em minmax(0, 1fr) 4.6em; align-items: center; gap: 14px; }
.meter__who { font-size: 14px; color: rgba(255, 255, 255, 0.86); }
.meter__bar { height: 10px; border-radius: 5px; background: rgba(214, 224, 240, 0.1); overflow: hidden; }
.meter__bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: #7f9cc6; transform-origin: left center; }
.meter__row--vw .meter__bar i { background: linear-gradient(90deg, var(--tangerine-hi), var(--tangerine)); box-shadow: 0 0 14px rgba(255, 108, 47, 0.7); }
.meter__val { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; text-align: right; color: var(--white); }
.meter__row--vw .meter__val { color: #ff8c5a; }
.motion [data-dash] .meter__bar i { transform: scaleX(0); transition: transform 1400ms var(--ease) 200ms; }
.motion [data-dash].is-in .meter__bar i { transform: none; }
.dash-note { margin-top: 6px; font-size: 16px; color: rgba(255, 255, 255, 0.86); }
.dash-note strong { margin-right: 6px; font-size: 30px; font-weight: 500; letter-spacing: -0.02em; color: var(--tangerine); font-variant-numeric: lining-nums tabular-nums; }

.dash-chart { display: block; width: 100%; height: auto; margin-top: 6px; overflow: visible; }
.dash-chart__grid line { stroke: rgba(214, 224, 240, 0.1); stroke-width: 1; stroke-dasharray: 3 6; }
.dash-chart__axis { fill: none; stroke: rgba(214, 224, 240, 0.4); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dash-chart__lab { fill: rgba(214, 224, 240, 0.72); font-size: 13px; font-family: var(--font); }
.dash-chart__line { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.dash-chart__line--vw { stroke: var(--tangerine); filter: drop-shadow(0 0 8px rgba(255, 108, 47, 0.75)); }
.dash-chart__line--str { stroke: #8fa9cf; }
.dash-chart__area--vw { fill: rgba(255, 108, 47, 0.2); }
.dash-chart__area--str { fill: rgba(143, 169, 207, 0.12); }
.dash-chart__dot { fill: var(--white); stroke: var(--tangerine); stroke-width: 3; }
.dash-chart__ghost { fill: none; stroke: rgba(214, 224, 240, 0.28); stroke-width: 2; stroke-dasharray: 4 6; }
.dash-chart__drop { stroke: rgba(255, 140, 90, 0.6); stroke-width: 1.5; stroke-dasharray: 3 5; }
.motion [data-dash] .dash-chart__line[pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1500ms var(--ease) 500ms; }
.motion [data-dash] .dash-chart__line--str[pathLength] { transition-delay: 100ms; }
.motion [data-dash].is-in .dash-chart__line[pathLength] { stroke-dashoffset: 0; }
.motion [data-dash] .dash-chart__area, .motion [data-dash] .dash-chart__dot { opacity: 0; transition: opacity 900ms var(--ease) 1500ms; }
.motion [data-dash].is-in .dash-chart__area, .motion [data-dash].is-in .dash-chart__dot { opacity: 1; }
.motion .is-in .dash-chart__dot { animation: dash-beat 2.4s var(--ease) 2.4s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes dash-beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.5); } }
/* the peak slides between high and low RPM, and the slider under it moves with it */
.motion .dash-chart__glide { animation: dash-glide 7s var(--ease) infinite alternate; }
@keyframes dash-glide { 0%, 12% { transform: translateX(-120px); } 88%, 100% { transform: translateX(120px); } }
.dash-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: rgba(255, 255, 255, 0.86); }
.dash-key { display: inline-flex; align-items: center; gap: 8px; }
.dash-key::before { content: ""; width: 18px; height: 4px; border-radius: 2px; background: #8fa9cf; }
.dash-key--vw::before { background: var(--tangerine); box-shadow: 0 0 8px rgba(255, 108, 47, 0.8); }
.dash-slider { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.86); }
.dash-slider__track { position: relative; height: 4px; border-radius: 2px; background: rgba(214, 224, 240, 0.18); }
.dash-slider__track i { position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--tangerine); box-shadow: 0 0 0 5px rgba(255, 108, 47, 0.22), 0 0 14px rgba(255, 108, 47, 0.8); }
.motion .dash-slider__track { container-type: inline-size; }
.motion .dash-slider__track i { animation: dash-knob 7s var(--ease) infinite alternate; }
@keyframes dash-knob { 0%, 12% { left: 4%; } 88%, 100% { left: 96%; } }

.resources { padding-top: clamp(104px, 18vh, 200px); }
.resource-list { margin-top: clamp(32px, 6vh, 64px); border-top: 1px solid var(--line-light); }
.resource { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding-block: 28px; border-bottom: 1px solid var(--line-light); }
.resource__title { max-width: 38em; font-size: clamp(18px, 1.55vw, 22px); font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.resource .btn { flex: none; }

.features { padding-top: clamp(104px, 18vh, 200px); }
.features__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-bottom: clamp(28px, 5vh, 48px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line-light); background: transparent; font-size: 15px; font-weight: 500; color: var(--ink-body); white-space: nowrap; transition: background-color var(--base) var(--ease-soft), color var(--base) var(--ease-soft), border-color var(--base) var(--ease-soft); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }

.feature-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--edge); }
.feature-panel[hidden] { display: none; }
.feature-panel__text { display: flex; flex-direction: column; gap: 40px; padding: clamp(28px, 4.4vw, 64px); background: var(--white); border-radius: var(--r-card); }
.feature-group h3 { font-size: 22px; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; max-width: 17em; margin-bottom: 16px; }
.bullets { display: flex; flex-direction: column; }
.bullets li { padding-block: 10px; border-top: 1px solid var(--line-light); font-size: 16px; line-height: 1.45; color: var(--ink-body); }
.feature-panel__media { position: relative; min-height: 420px; border-radius: var(--r-card); overflow: hidden; background: #c8ccd8; }
.feature-panel__media img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; max-width: none; object-fit: cover; will-change: transform; }
.feature-panel.is-entering .feature-panel__text { animation: panel-in var(--slow) var(--ease-soft) both; }
.feature-panel.is-entering .feature-panel__media { animation: fade-in var(--slow) var(--ease-soft) both; }
/* --- system features as a control console: navy panels, orange signal colour --- */
.features .chips { gap: 4px; padding: 5px; border-radius: 999px; background: #071530; border: 1px solid rgba(214, 224, 240, 0.14); }
.features .chip { border-color: transparent; color: rgba(214, 224, 240, 0.78); }
.features .chip:hover { border-color: transparent; color: var(--white); background: rgba(214, 224, 240, 0.08); }
.features .chip.is-active { background: var(--tangerine); border-color: var(--tangerine); color: var(--white); box-shadow: 0 0 18px rgba(255, 108, 47, 0.45); }
.feature-panel__text {
  position: relative; color: var(--white); border: 1px solid rgba(214, 224, 240, 0.12);
  background:
    linear-gradient(rgba(214, 224, 240, 0.045) 1px, transparent 1px) 0 0 / 100% 36px,
    linear-gradient(90deg, rgba(214, 224, 240, 0.045) 1px, transparent 1px) 0 0 / 36px 100%,
    linear-gradient(155deg, #0b2247 0%, #071530 55%, #030b1c 100%);
}
.feature-group h3 { display: flex; align-items: baseline; gap: 12px; color: var(--white); }
.feature-group h3::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--tangerine); box-shadow: 0 0 10px rgba(255, 108, 47, 0.9); transform: translateY(-3px); }
.features .bullets:has(li:nth-child(6)) { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.features .bullets li { position: relative; padding-left: 22px; border-top-color: rgba(214, 224, 240, 0.14); color: rgba(255, 255, 255, 0.8); transition: color var(--fast) var(--ease-soft); }
.features .bullets li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 7px; height: 7px; border: 1.5px solid var(--tangerine); transform: rotate(45deg); transition: background-color var(--fast) var(--ease-soft), box-shadow var(--fast) var(--ease-soft); }
.features .bullets li:hover { color: var(--white); }
.features .bullets li:hover::before { background: var(--tangerine); box-shadow: 0 0 10px rgba(255, 108, 47, 0.9); }
.motion .feature-panel.is-entering .bullets li { animation: spec-in 520ms var(--ease-soft) both; animation-delay: calc(120ms + var(--n, 0) * 45ms); }
.bullets li:nth-child(2) { --n: 1; } .bullets li:nth-child(3) { --n: 2; } .bullets li:nth-child(4) { --n: 3; } .bullets li:nth-child(5) { --n: 4; }
.bullets li:nth-child(6) { --n: 5; } .bullets li:nth-child(7) { --n: 6; } .bullets li:nth-child(8) { --n: 7; } .bullets li:nth-child(9) { --n: 8; }
@keyframes spec-in { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
/* the photo reads as a live inspection view: corner brackets and a slow scan line */
.feature-panel__media { background: #030b1c; border: 1px solid rgba(214, 224, 240, 0.12); }
.feature-panel__media::before {
  content: ""; position: absolute; inset: 18px; z-index: 1; border: 2px solid var(--tangerine); border-radius: 6px; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) top left / 26px 26px no-repeat, linear-gradient(#000 0 0) top right / 26px 26px no-repeat, linear-gradient(#000 0 0) bottom left / 26px 26px no-repeat, linear-gradient(#000 0 0) bottom right / 26px 26px no-repeat;
  mask: linear-gradient(#000 0 0) top left / 26px 26px no-repeat, linear-gradient(#000 0 0) top right / 26px 26px no-repeat, linear-gradient(#000 0 0) bottom left / 26px 26px no-repeat, linear-gradient(#000 0 0) bottom right / 26px 26px no-repeat;
}
.feature-panel__media::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 120px; z-index: 1; pointer-events: none; opacity: 0;
  background: linear-gradient(to bottom, rgba(255, 108, 47, 0) 0%, rgba(255, 108, 47, 0.14) 92%, rgba(255, 140, 90, 0.95) 100%);
}
.motion .feature-panel__media::after { opacity: 1; animation: scan 6s var(--ease) infinite alternate; }
@keyframes scan { from { transform: translateY(-120px); } to { transform: translateY(calc(var(--scan-h, 620px))); } }
@media (max-width: 767px) { .features .bullets:has(li:nth-child(6)) { grid-template-columns: 1fr; } }
@keyframes panel-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.faq { padding-block: clamp(104px, 18vh, 200px) clamp(88px, 14vh, 160px); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; align-items: start; }
.faq__title { position: sticky; top: calc(var(--header-h) + 32px); }
.accordion { border-top: 1px solid var(--line-light); }
.accordion__item { border-bottom: 1px solid var(--line-light); }
.accordion__trigger { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; padding-block: 22px; text-align: left; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.35; color: var(--ink); }
.accordion__trigger i { position: relative; flex: none; width: 16px; height: 16px; }
.accordion__trigger i::before, .accordion__trigger i::after { content: ""; position: absolute; left: 0; right: 0; top: 7.25px; height: 1.5px; background: currentColor; transition: transform var(--base) var(--ease); }
.accordion__trigger i::after { transform: rotate(90deg); }
.accordion__trigger[aria-expanded="true"] i::after { transform: rotate(0deg); }
.accordion__trigger:hover { color: var(--blue-600); }
.accordion__panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows var(--slow) var(--ease-soft), visibility 0s linear var(--slow); }
.accordion__panel.is-open { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.accordion__inner { overflow: hidden; }
.accordion__inner p { max-width: 40em; padding-bottom: 24px; color: var(--ink-body); }

/* ---- Closing: the PBS Mini film as a background ------------------------- */
.closing { padding: var(--edge); }
.closing__panel {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; border-radius: var(--r-panel); background: linear-gradient(72deg, var(--navy-950) 28.8%, var(--blue-600) 94.3%);
  transform: scale(calc(0.9 + 0.1 * var(--g, 1))); transform-origin: center top;
}
.closing__art { position: relative; flex: none; width: 100%; height: clamp(320px, 62vh, 620px); }
.closing .hero-art { transform: scale(calc(var(--art-scale) * 0.8)); opacity: 1; filter: none; display: block; }
.closing__inner { position: relative; z-index: 1; width: 100%; padding: 0 clamp(28px, 5vw, 80px) clamp(48px, 9vh, 96px); }
.closing__inner .btn-row { justify-content: center; }
.closing__title { max-width: 12em; margin: 0 auto 32px; }
@media (min-width: 1024px) {   /* side by side: words on the left, the wheel on the right */
  .closing__panel { flex-direction: row-reverse; align-items: center; text-align: left; min-height: min(72vh, 660px); }
  .closing__art { flex: 1 1 55%; width: auto; height: min(72vh, 660px); }
  .closing__inner { flex: 1 1 45%; width: auto; padding: clamp(40px, 5vw, 80px); padding-right: 0; }
  .closing__inner .btn-row { justify-content: flex-start; }
  .closing__title { margin: 0 0 32px; }
}

/* ---- Footer -------------------------------------------------------------- */
.foot { margin: 0 var(--edge) var(--edge); border-radius: var(--r-panel); background: var(--navy-950); padding-block: 56px 64px; color: var(--text-dim); font-size: var(--fs-small); }
.foot__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; }
.foot__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.foot__brand img { width: 203px; height: 24px; }
.foot__social { display: flex; gap: 12px; }
.foot__social a { display: block; padding: 6px; margin: -6px; transition: opacity var(--fast) var(--ease-soft); }
.foot__social a:hover { opacity: 0.6; }
.foot__social img { width: 16px; height: 16px; }
.foot__menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot__menu h2 { font-size: 15px; font-weight: 500; color: var(--white); margin-bottom: 14px; }
.foot__menu ul { display: flex; flex-direction: column; gap: 8px; }
.foot__menu a { transition: color var(--fast) var(--ease-soft); }
.foot__menu a:hover { color: var(--white); }

.version-pill { position: fixed; right: 16px; bottom: 16px; z-index: 60; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--ink-body); border: 1px solid var(--line-light); font-size: 12px; font-weight: 500; transition: color var(--fast) var(--ease-soft); }
.version-pill:hover { color: var(--ink); }

/* ---- Dialog -------------------------------------------------------------- */
.dialog { width: min(520px, 100% - 32px); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--r-card); background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); overflow: auto; }
.dialog::backdrop { background: rgba(3, 9, 21, 0.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dialog[open] { animation: dialog-in var(--base) var(--ease-soft) both; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.dialog__form { position: relative; padding: 40px; }
.dialog__title { font-size: 28px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 8px; padding-right: 40px; }
.dialog__intro { color: var(--ink-body); margin-bottom: 24px; }
.dialog__close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink-body); transition: background-color var(--fast) var(--ease-soft); }
.dialog__close:hover { background: rgba(0, 28, 66, 0.08); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-size: var(--fs-small); font-weight: 500; }
.field__req, .field__error { color: var(--danger); }
.field__error { font-size: var(--fs-small); }
.input { width: 100%; min-height: 48px; padding: 12px 14px; background: var(--white); color: var(--ink); border: 1px solid var(--line-light); border-radius: var(--r-control); font: inherit; font-size: 16px; transition: border-color var(--fast) var(--ease-soft), box-shadow var(--fast) var(--ease-soft); }
.input:hover { border-color: rgba(0, 28, 66, 0.4); }
.input:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 2px var(--blue-600); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.input--area { min-height: 120px; resize: vertical; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1023px) {
  .top__nav ul { gap: 20px; }
  .top { gap: 24px; }
  .hero-copy { width: min(78vw, 720px); }
  .stack__card { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: "title" "media" "body"; gap: 28px; min-height: 0; }
  .stack__media { min-height: 0; aspect-ratio: 3 / 2; }
  .stack__media--photo { aspect-ratio: 5 / 2; }
  .stack__body { align-self: start; }
  .spotlight__grid { grid-template-columns: 1fr; }
  .spotlight__figure { max-width: 478px; }
  .tech__row, .tech__duo { grid-template-columns: 1fr; }
  .tech__row .tech__media { order: -1; }
  .feature-panel { grid-template-columns: 1fr; }
  .feature-panel__media { min-height: 0; height: 380px; order: -1; }
  .faq__grid { grid-template-columns: 1fr; }
  .faq__title { position: static; }
}

@media (max-width: 767px) {
  :root { --edge: 10px; --header-h: 64px; --r-panel: 20px; }
  .top { padding-inline: 20px; gap: 12px; }
  .top__logo { margin-right: auto; }
  .top__logo img { width: 152px; height: 18px; }
  .top__cta { display: none; }
  .top__toggle { display: block; }
  .top__nav {
    position: absolute; left: 0; right: 0; top: 100%; flex: none;
    background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--line);
    display: grid; grid-template-rows: 0fr; visibility: hidden;
    transition: grid-template-rows var(--base) var(--ease-soft), visibility 0s linear var(--base);
  }
  .top__nav.is-open { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
  .top__nav ul { flex-direction: column; gap: 0; overflow: hidden; padding-inline: 20px; }
  .top__nav li:last-child { padding-bottom: 16px; }
  .top__nav a { padding-block: 12px; font-size: 18px; color: var(--ink); }

  .hero-copy { left: 24px; right: 24px; width: auto; bottom: 40px; }
  .hero-copy__title { margin-bottom: 28px; }
  .statement { gap: 24px; }

  .scale { padding-top: calc(var(--header-h) + 8px); }
  .scale__sub { display: none; }
  .scale__ring { left: 50%; top: 27%; width: min(40vh, 78vw); }
  .step { grid-template-columns: 1fr; grid-template-rows: 44% auto auto 1fr; }
  .step__media { grid-column: 1; grid-row: 1; }
  .step__media img { height: calc(min(36vh, 78vw) * var(--h)); }
  .step__figure { grid-row: 2; font-size: min(26vw, 13vh); }
  .step__text { grid-row: 3; padding-top: 12px; }
  .step__desc { font-size: 15px; margin-bottom: 16px; }
  .step .btn { min-height: 44px; padding: 10px 16px; font-size: 15px; }
  .rail__item { padding: 12px 0 16px; }
  .rail__item span { font-size: 15px; }
  .rail__item small { display: none; }

  .apps__list { grid-template-columns: 1fr; }
  .tech__media--pair .tech__label { flex-direction: column; gap: 0; }
  .resource { flex-direction: column; align-items: flex-start; gap: 16px; }
  .feature-panel__media { height: 280px; }
  .closing__art { height: clamp(280px, 46vh, 420px); }
  .foot__inner { grid-template-columns: 1fr; }
  .foot__menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dialog__form { padding: 32px 24px; }
  .version-pill { position: static; display: block; width: max-content; margin: 0 auto 24px; }
}

/* short screens: cards would be taller than the space they pin in */
@media (max-height: 640px) {
  .stack__card { position: relative; top: auto; }
}

/* ==========================================================================
   Flat mode: reduced motion, or ?static=1 for screenshots.
   Nothing is pinned and nothing depends on scroll position.
   ========================================================================== */
.flat { scroll-behavior: auto; }
.flat .scene--hero, .flat .scene--scale { height: auto; }
.flat .scene__stage { position: relative; height: auto; overflow: visible; }
.flat .hero-panel { position: relative; inset: auto; margin: var(--header-h) var(--edge) 0; min-height: calc(100svh - var(--header-h) - var(--edge)); border-radius: var(--r-panel); clip-path: none; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.flat .hero-panel::after { display: none; }
.flat .hero-copy { position: relative; left: auto; bottom: auto; display: flex; flex-direction: column; justify-content: flex-end; min-height: calc(100svh - var(--header-h) - var(--edge)); margin: 0 calc(var(--pad) - 16px); padding-bottom: clamp(32px, 8vh, 88px); }
.flat .hero-film { bottom: auto; height: calc(100svh - var(--header-h) - var(--edge)); }
.flat .statement { position: relative; inset: auto; opacity: 1; padding: clamp(72px, 12vh, 140px) var(--pad); background: var(--page); pointer-events: auto; }
.flat .statement__sub { opacity: 1; transform: none; }
.flat .scale { display: block; padding-bottom: 40px; }
.flat .scale__ring, .flat .rail { display: none; }
.flat .scale__steps { position: static; display: grid; gap: 72px; margin-top: 56px; }
.flat .step { position: relative; inset: auto; opacity: 1; visibility: visible; grid-template-rows: auto auto; }
.flat .step__figure, .flat .step__text, .flat .step__media { transform: none; }
.flat .step__figure { grid-row: 1; font-size: clamp(72px, 11vw, 150px); }
.flat .step__text { grid-row: 2; }
.flat .step__media img { height: calc(360px * var(--h)); }
.flat .stack__card { position: relative; top: auto; }
.flat .hero-art { filter: none; }
.flat .top { position: absolute; }
.flat *, .flat *::before, .flat *::after { animation: none !important; transition-duration: 1ms !important; }
@media (max-width: 767px) {
  .flat .step { grid-template-rows: auto auto auto; }
  .flat .step__media { grid-row: 1; padding-bottom: 16px; }
  .flat .step__figure { grid-row: 2; }
  .flat .step__text { grid-row: 3; }
}
