/* ==========================================================================
   Limeroad — fashion for the next billion (2018)
   Loads after site.css (tokens, nav, section nav, footer, cursor). The story lives in main.lr.

   A white gallery that breathes: every chapter contracts into a phone, then expands back out into
   the room. Static by default; html.is-motion turns each [data-pin] scene into a tall section with a
   sticky 100svh stage driven by one scrubbed GSAP timeline.

   Typography follows the site system:
   · serif (Light 300) for the voice — the headline (its italic in Limeroad green), chapter titles,
     the problem statement, the insights and the closing lines
   · sans 400 to read and navigate, labels in the project-label pattern (a green dot)
   · sans 600 tracked tight to scan: step titles, the brief, 90, the figures, the project cards
   · the core user's inner voice runs Geist's weight axis, 300 → 650, as confidence grows
   Contrast holds at every moment: unlit words sit at 3:1 (they are display size), dimmed steps and
   nodes at 4.8:1 or more, small green text uses a deepened green (4.8:1), and nothing small is dimmed
   by opacity — the dark wardrobe room flips its text in one step instead of fading through grey.
   The two navs stack as on every case study: the section nav under the site nav (on phones it sits
   on the bottom edge), so every stage keeps --top-safe clear above and --nav-b below.
   ========================================================================== */

:root {
  /* the work owns the colour */
  --accent: #4E9A1B;           /* Limeroad green: dots, the italic words, progress */
  --tint: #E3F1D2;
  --accent-text: #3D7A12;      /* the same green, deepened for small text on white (5.2:1) */
  --band: #F6F5F1;             /* the research and precision bays */
  --ink-4: #96938A;            /* words before the scroll reaches them: faded, still 3:1 at display size */
  --ink-dim: #6E6C65;          /* steps and nodes not yet reached (5.3:1 on white, 4.8:1 on the bays) */
  --line-strong: rgba(15, 15, 13, 0.14);
  --app-lime: #8bce0f;         /* the app's own buttons, used to ring UI inside screens */
  --app-screen: #fefffb;       /* the app's screen ground */
  --night: #0f0f0d;            /* the wardrobe scene dims the room */
  --night-ink: #f6f5f1;
  --night-ink-2: #a9a69e;

  /* other projects (the closing cards), as on the homepage */
  --accent-google: #0b57d0;    --tint-google: #d3e3fd;
  --accent-coinbase: #0052ff;  --tint-coinbase: #dce5ff;
  --accent-upgrad: #e1323a;    --tint-upgrad: #ffe0de;
  --accent-tinyowl: #e8641c;   --tint-tinyowl: #ffe5d3;
  --accent-hdfc: #0a4d96;      --tint-hdfc: #dde8f6;

  /* type scale */
  --fs-display: clamp(44px, min(6.8vw, 11.5vh), 104px);
  --fs-h2: clamp(36px, 4.4vw, 64px);
  --fs-voice: clamp(27px, 3.4vw, 52px);
  --fs-h3: clamp(20px, 1.65vw, 26px);
  --fs-body: 17px;

  /* space: the site nav above, the section nav docked below */
  --pad-l: max(var(--gutter), env(safe-area-inset-left, 0px));
  --pad-r: max(var(--gutter), env(safe-area-inset-right, 0px));
  --top-nav: calc(var(--nav-top) + var(--nav-h) + env(safe-area-inset-top, 0px));   /* the site nav alone (the opening fold) */
  --top-safe: calc(var(--chrome) + env(safe-area-inset-top, 0px));                    /* site nav + section nav */
  --nav-b: calc(16px + env(safe-area-inset-bottom, 0px));
  --pw-fit: calc((100svh - var(--top-safe) - var(--nav-b) - 40px) * 0.4718);   /* the tallest phone a stage holds */
  --radius-card: 28px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-glass: 0 0 0 0.5px rgba(15, 15, 13, 0.1), 0 18px 40px -18px rgba(30, 26, 12, 0.38), 0 4px 12px -6px rgba(30, 26, 12, 0.16);
  --shadow-glass-rim: inset 0 1.5px 0.5px rgba(255, 255, 255, 1), inset 0 -1.5px 1px rgba(255, 255, 255, 0.75), inset 1.5px 0 1px rgba(255, 255, 255, 0.5), inset -1.5px 0 1px rgba(255, 255, 255, 0.5), inset 0 0 0 0.5px rgba(15, 15, 13, 0.08);
}

/* ---------- Base (site.css carries the reset and the chrome) ---------- */
.lr { font-size: var(--fs-body); line-height: 1.5; letter-spacing: -0.011em; }
:where(.lr) :where(h3, dl, dd) { margin: 0; }

/* ---------- Type roles ---------- */
/* eyebrow: a project label — sentence case, ink-2, led by the green dot */
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font: 400 15px/1.3 var(--font-sans); letter-spacing: 0; color: var(--ink-2);
}
.label::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--dot, var(--accent));
}
.h2, .voice, .hero__title, .problem__lead, .core__insight-t, .ward__outcome-t {
  font-family: var(--font-serif); font-weight: 300;
  font-optical-sizing: auto; font-variation-settings: "SOFT" 0, "WONK" 0;
  text-wrap: balance;
}
/* chapter titles: the voice, a step down from the headline */
.h2 { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -0.03em; }
.voice { font-size: var(--fs-voice); line-height: 1.14; letter-spacing: -0.025em; }
:is(.voice, .h2, .hero__title, .problem__lead) em { font-style: italic; color: var(--accent); }
/* steps you scan: Geist 600, tracked tight */
.h3 { font-size: var(--fs-h3); line-height: 1.15; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
.body { font-size: var(--fs-body); line-height: 1.5; color: var(--ink-2); max-width: 44ch; text-wrap: pretty; }
.body b { color: var(--ink); font-weight: 700; }
.cue { font-size: 11px; line-height: 1; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- Phone (CSS device; screens are 1000 x 2159) ---------- */
.phone {
  --pw: 300px;
  position: relative; flex: none;
  width: var(--pw); aspect-ratio: 0.4718;
  container-type: inline-size;
}
.phone__body {
  position: absolute; inset: 0;
  padding: 3.1cqi; border-radius: 15.4cqi;
  background: #171716;
  box-shadow:
    inset 0 0 0 0.42cqi #3d3d3a,
    inset 0 0 0 0.95cqi #0b0b0a,
    0 4cqi 9cqi -4cqi rgba(30, 26, 12, 0.42),
    0 1cqi 2.4cqi -0.6cqi rgba(30, 26, 12, 0.22);
}
.phone__body::after {           /* camera island */
  content: ""; position: absolute; z-index: 9;
  top: 4.6cqi; left: 50%; width: 26cqi; height: 7.6cqi; margin-left: -13cqi;
  border-radius: 99px; background: #060606;
}
.phone__screen {
  position: relative; height: 100%;
  border-radius: 12.3cqi; overflow: hidden; isolation: isolate;
  background: var(--app-screen);
  container-type: size;
}
.phone__screen > img, .layer > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.layer { position: absolute; inset: 0; isolation: isolate; }

/* A spotlight that dims everything in the screen except one element */
.spot {
  position: absolute; z-index: 6; pointer-events: none;
  left: 50%; top: 50%; width: 0; height: 0;
  border-radius: 2.6cqw;
  box-shadow: 0 0 0 0.55cqw var(--app-lime), 0 0 0 400cqh rgba(12, 12, 10, 0.6);
  opacity: 0;
}
/* A tap ripple */
.tap {
  position: absolute; z-index: 7; pointer-events: none;
  width: 16cqw; height: 16cqw; margin: -8cqw 0 0 -8cqw;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 0.6cqw rgba(255, 255, 255, 0.9), 0 1cqw 4cqw rgba(0, 0, 0, 0.25);
  opacity: 0; transform: scale(0.4);
}

/* ---------- Scenes ---------- */
.prec__col, .prec__head, .feed__head, .ward__head, .core__head, .trust__head, .research__head, .impact__head, .finale__head, .steps, .step { align-content: start; }
.scene { position: relative; }
.stage {
  position: relative;
  padding-block: clamp(88px, 13svh, 150px);
  padding-left: var(--pad-l); padding-right: var(--pad-r);
}
.is-motion [data-pin] { height: calc(var(--len, 300) * 1svh); }
.is-motion [data-pin] > .stage {
  position: sticky; top: 0;
  height: 100svh; padding-block: 0;
  overflow: hidden;
}
.band, .band > .stage { background: var(--band); }
.chapter-cue { display: block; margin-bottom: 18px; }

/* ===== 1. Hero ===== */
.hero > .stage {
  padding-top: calc(var(--top-nav) + clamp(36px, 8svh, 92px));
  padding-bottom: 0;
  text-align: center; overflow: hidden;
}
.hero__copy { position: relative; z-index: 2; display: grid; justify-items: center; gap: 22px; }

.hero__lede { font-size: clamp(13.5px, 1.08vw, 16px); line-height: 1.5; color: var(--ink-2); max-width: 34ch; text-wrap: balance; }
.hero__phones {
  --hp: clamp(170px, min(25vw, 37svh), 380px);
  position: relative; z-index: 3;
  display: flex; justify-content: center; align-items: flex-start;
  margin-top: clamp(40px, 7svh, 84px);
  padding-bottom: clamp(56px, 9svh, 110px);
}
.hero__phone { --pw: var(--hp); z-index: 2; }
@media (max-width: 899.98px) { .hero__phones { --hp: clamp(160px, 50vw, 250px); } }
.hero__phone--side { --pw: calc(var(--hp) * 0.84); margin-top: calc(var(--hp) * 0.16); z-index: 1; }
.hero__phone--l { margin-right: calc(var(--hp) * -0.14); }
.hero__phone--r { margin-left: calc(var(--hp) * -0.14); }
.hero__phone--c .phone__screen { background: var(--sheet); }
.hero__glow {
  position: absolute; z-index: 0; left: 50%; top: 58%;
  width: 130vmax; height: 130vmax; margin: -65vmax 0 0 -65vmax;
  background: radial-gradient(closest-side, rgba(227, 241, 210, 0.95), rgba(227, 241, 210, 0.35) 45%, rgba(227, 241, 210, 0) 72%);
  pointer-events: none;
}
.hero__cue {
  position: absolute; z-index: 4; left: var(--pad-l);
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  display: none;
}
.is-motion .hero > .stage { padding-top: calc(var(--top-nav) + clamp(36px, 8svh, 92px)); }
.is-motion .hero__cue { display: block; }
.is-motion .hero__phones { padding-bottom: 0; }
@media (max-width: 899.98px) { .is-motion .hero__cue { display: none; } }

/* ===== 2. Problem ===== */
.problem > .stage { display: grid; place-items: center; text-align: center; }
.problem__inner { display: grid; justify-items: center; gap: clamp(22px, 4svh, 40px); width: min(100%, 1040px); }
.problem .voice { font-size: clamp(27px, 3.6vw, 56px); max-width: 25ch; }
.problem__note { font-size: clamp(16px, 1.25vw, 19px); color: var(--ink-2); max-width: 40ch; }
.is-motion .problem > .stage { padding-top: var(--top-safe); }

/* ===== 3. Core user (inflection curve) ===== */
.core > .stage { display: grid; align-content: start; gap: clamp(28px, 5svh, 56px); }
.core__head { display: grid; gap: 16px; max-width: 30ch; }
.core__chart { position: relative; width: 100%; max-width: 1240px; margin-inline: auto; height: clamp(110px, 24svh, 250px); }
.core__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.core__path { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; vector-effect: non-scaling-stroke; }
.core__ghost { fill: none; stroke: var(--line-strong); stroke-width: 2.2; stroke-dasharray: 2 6; vector-effect: non-scaling-stroke; }
.core__pt { position: absolute; z-index: 1; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 7px var(--tint); }
.core__moments {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  max-width: 1240px; margin-inline: auto; width: 100%;
}
.core__moment { display: grid; gap: 8px; justify-items: center; text-align: center; }
.core__moment .idx { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.core__moment .h3 { max-width: 14ch; }
.core__close { max-width: 30ch; }
.core__close.voice { font-size: clamp(24px, 2.6vw, 40px); }
@media (max-width: 899.98px) {
  .core__moments { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .core__moment { justify-items: start; text-align: left; }
}
.is-motion .core > .stage {
  padding-top: calc(var(--top-safe) + clamp(16px, 4svh, 48px));
  gap: clamp(18px, 3.4svh, 40px);
  grid-template-rows: auto auto auto 1fr;
}
.is-motion .core__close { align-self: end; padding-bottom: clamp(24px, 6svh, 64px); }

/* ===== 4. Research highlights ===== */
.research > .stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 5svh, 48px); }
.research__viewport { min-width: 0; }
.research__head { display: grid; gap: 16px; }
.research__head .body { max-width: 52ch; }
.track { display: grid; gap: 28px; }
.hl {
  display: grid; grid-template-rows: 1fr auto; gap: 22px;
  padding: clamp(18px, 2vw, 28px);
  border-radius: var(--radius-card); background: var(--sheet);
  width: 100%; max-width: 1040px;
}
.hl__media {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 3%;
  aspect-ratio: 16 / 8.6; max-width: 100%;
  border-radius: 16px; overflow: hidden; background: #f3f2ee;
}
.hl__media img { border-radius: 10px; }
.hl__caption { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.hl__caption .h3 { max-width: 30ch; }
.hl__idx { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hl--notes .hl__media { background: #ffffff; }
.hl--notes img { height: 86%; width: auto; border-radius: 0; }
.hl--pair img { height: 88%; width: auto; max-width: 56%; object-fit: cover; }
.hl--quad .hl__media { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; padding: 10px; }
.hl--quad img { width: 100%; height: 100%; object-fit: cover; }
.hl--single img { height: 92%; width: auto; max-width: 96%; object-fit: contain; }
.dots {
  display: none; justify-self: center; gap: 8px; padding: 9px 12px; border-radius: 36px;
  background: rgba(210, 210, 215, 0.5);
}
.dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(15, 15, 13, 0.28); transition: background-color 0.3s var(--ease), width 0.45s var(--ease); }
.dots i.on { width: 22px; border-radius: 99px; background: var(--ink); }
.is-motion .research > .stage {
  padding-top: calc(var(--top-safe) + clamp(14px, 3.5svh, 40px));
  grid-template-rows: auto minmax(0, 1fr) auto; gap: clamp(14px, 2.6svh, 28px);
  padding-bottom: clamp(16px, 3.4svh, 36px);
}
.is-motion .research__viewport { min-height: 0; height: 100%; }
.is-motion .research .track {
  display: flex; gap: clamp(16px, 2vw, 28px); align-items: stretch;
  width: max-content; height: 100%; will-change: transform;
}
.is-motion .research .hl {
  flex: none; height: 100%; width: auto; aspect-ratio: 1.5;
  max-width: calc(100vw - var(--pad-l) - var(--pad-r) - 40px);
  grid-template-rows: minmax(0, 1fr) auto; gap: clamp(12px, 2svh, 22px);
}
.is-motion .research .hl__media { aspect-ratio: auto; height: 100%; }
.is-motion .research .dots { display: flex; }
@media (max-width: 899.98px) {
  .is-motion .research .hl { aspect-ratio: 0.8; max-width: calc(100vw - var(--pad-l) - var(--pad-r) - 28px); }
  .hl__media { aspect-ratio: 4 / 3.3; }
  .hl--quad .hl__media { grid-template-columns: 1fr; grid-template-rows: repeat(3, 1fr); }
  .hl--quad img:nth-child(4) { display: none; }
  .hl--pair .hl__media { flex-direction: column; gap: 8px; padding: 8px; }
  .hl--pair img { width: 100%; max-width: 100%; height: auto; flex: 1 1 0; min-height: 0; }
}

/* ===== 5. Feed: 90 prototypes, then the feed element by element ===== */
.feed > .stage { display: grid; gap: clamp(32px, 6svh, 64px); }
.feed__head { display: grid; gap: 16px; max-width: 34ch; }
.feed__head .voice { font-size: clamp(25px, 2.7vw, 44px); }
.feed__count { display: flex; align-items: baseline; gap: 14px; }
.feed__num { font-size: clamp(72px, 9vw, 148px); line-height: 0.85; font-weight: 600; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.feed__unit { font-size: clamp(16px, 1.3vw, 20px); color: var(--ink-2); }
.feed__grid {
  --cols: 18;
  display: grid; grid-template-columns: repeat(var(--cols), 1fr);
  gap: clamp(4px, 0.6vw, 9px);
  width: min(100%, 980px);
}
.tile { aspect-ratio: 0.48; position: relative; }
.tile svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tile .fr { fill: var(--sheet); stroke: var(--ink-3); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.tile .sk { fill: #e6e4dd; }
.tile .sk2 { fill: #d3d0c7; }
.tile--pick .fr { stroke: var(--accent); stroke-width: 2; }
.tile--pick .sk2 { fill: var(--accent); opacity: 0.5; }
.feed__captions { display: grid; gap: 10px; max-width: 40ch; }
.feed__captions p { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.4; color: var(--ink); }
.feed__captions p + p { color: var(--ink-2); }
.feed__anatomy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 96px); align-items: center; }
.feed__phone { --pw: clamp(200px, min(24vw, var(--pw-fit)), 360px); }
.steps { display: grid; gap: 26px; }
.step { display: grid; gap: 8px; }
.step .label { margin-bottom: 4px; }
@media (max-width: 899.98px) {
  .feed__grid { --cols: 15; }
  .feed__anatomy { grid-template-columns: 1fr; justify-items: center; }
  .feed__anatomy .steps { order: 2; }
}

.is-motion .feed > .stage { display: block; }
.is-motion .feed__head { position: absolute; left: var(--pad-l); top: calc(var(--top-safe) + clamp(16px, 4svh, 44px)); max-width: min(34ch, 52vw); }
.is-motion .feed__count { position: absolute; right: var(--pad-r); top: calc(var(--top-safe) + clamp(12px, 3svh, 36px)); flex-direction: column; align-items: flex-end; gap: 4px; }
.is-motion .feed__grid {
  position: absolute; left: 50%; top: 54%;
  width: min(calc(100vw - var(--pad-l) - var(--pad-r)), 980px, calc((100svh - var(--top-safe) - var(--nav-b) - 300px) * 1.85));
  translate: -50% -50%;
}
.is-motion .feed__captions { position: absolute; left: var(--pad-l); bottom: calc(var(--nav-b) + clamp(8px, 2svh, 24px)); max-width: min(42ch, 70vw); display: block; }
.is-motion .feed__captions p { position: absolute; left: 0; bottom: 0; width: max-content; max-width: min(42ch, 80vw); color: var(--ink); }
.is-motion .feed__anatomy { position: absolute; inset: var(--top-safe) var(--pad-r) var(--nav-b) var(--pad-l); display: block; }
.is-motion .feed__phone { position: absolute; left: 66%; top: 50%; margin: calc(var(--pw) / -0.4718 / 2) 0 0 calc(var(--pw) / -2); }
.is-motion .feed__anatomy .steps { position: absolute; left: 0; top: 50%; width: min(34vw, 420px); translate: 0 -50%; display: block; }
.is-motion .feed__anatomy .step { position: absolute; left: 0; top: 0; translate: 0 -50%; width: 100%; }
@media (max-width: 899.98px) {
  .is-motion .feed__head { max-width: calc(100vw - var(--pad-l) - var(--pad-r)); }
  .is-motion .feed__count { left: var(--pad-l); right: auto; top: auto; bottom: calc(var(--nav-b) + clamp(76px, 12svh, 120px)); align-items: flex-start; flex-direction: row; align-items: baseline; }
  .is-motion .feed__grid { top: 52%; }
  .is-motion .feed__phone { --pw: min(52vw, calc((100svh - var(--top-safe) - var(--nav-b) - 190px) * 0.4718)); left: 50%; top: 40%; }
  .is-motion .feed__anatomy .steps { left: 0; right: 0; top: auto; bottom: clamp(6px, 1.5svh, 16px); width: auto; translate: none; }
  .is-motion .feed__anatomy .step { top: auto; bottom: 0; translate: none; }
}

/* ===== 6. Wardrobes (the room dims, then a wardrobe unfolds) ===== */
.ward { --fg: var(--ink); --fg-2: var(--ink-2); --room: var(--sheet); }
.ward > .stage { background: var(--room); color: var(--fg); display: grid; gap: clamp(32px, 6svh, 64px); }
.ward .label, .ward .body { color: var(--fg-2); }
.ward__head { display: grid; gap: 16px; max-width: 30ch; }
.ward__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 96px); align-items: center; }
.ward__device { --pw: clamp(200px, min(24vw, var(--pw-fit)), 360px); position: relative; width: var(--pw); aspect-ratio: 0.4718; }
.ward__device > .phone, .ward__doors { position: absolute; inset: 0; }
.ward__device .phone { --pw: 100%; }
.ward__front { z-index: 2; }
.ward__inside { z-index: 1; }
.ward__doors { z-index: 3; perspective: 1700px; visibility: hidden; }
.door { position: absolute; inset: 0; transform-style: preserve-3d; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.door .phone { position: absolute; inset: 0; }
.door--l { clip-path: inset(0 50% 0 0); transform-origin: 0% 50%; }
.door--r { clip-path: inset(0 0 0 50%); transform-origin: 100% 50%; }
.door__shade { position: absolute; inset: 0; z-index: 10; border-radius: 15.4cqi; background: #000; opacity: 0; pointer-events: none; }
.ward__card { position: absolute; left: 9.8%; top: 27.1%; width: 80%; height: 45.85%; overflow: hidden; z-index: 2; }
.ward__card img { position: absolute; inset: auto; left: -12.25%; top: -59.1%; width: 125%; height: auto; max-width: none; }
.ward__cover { position: absolute; left: 9.8%; top: 27.1%; width: 80%; height: 45.85%; background: #000; z-index: 1; }
.ward__heart { position: absolute; z-index: 4; left: 50%; top: 49%; width: 30cqw; margin: -15cqw 0 0 -15cqw; opacity: 0; transform: scale(0.3); filter: drop-shadow(0 1.5cqw 4cqw rgba(0,0,0,0.35)); }
.ward__finger { position: absolute; z-index: 5; left: 50%; top: 36%; width: 13cqw; height: 13cqw; margin: -6.5cqw 0 0 -6.5cqw; border-radius: 50%; background: rgba(255,255,255,0.5); box-shadow: 0 0 0 0.6cqw rgba(255,255,255,0.85); opacity: 0; }
.ward__sheet { clip-path: inset(63.46% 2.6% 0 2.4% round 3.2cqw 3.2cqw 0 0); }
/* the dimmed screen frames the sheet: its own sheet is covered by the scrim's flat grey, so the rising
   white card has the same surround all the way round, curved corners included */
.ward__hole { position: absolute; left: 2.4%; right: 2.6%; top: 63.46%; bottom: 0; background: linear-gradient(180deg, rgb(86, 80, 72), #656565 22%); }
.ward__outcome { max-width: 30ch; }
.ward__outcome.voice { font-size: clamp(24px, 2.6vw, 40px); }
@media (max-width: 899.98px) {
  .ward__body { grid-template-columns: 1fr; justify-items: center; }
  .ward__body .steps { order: 2; }
}
/* static: show the three key states side by side instead of stacked layers */
html:not(.is-motion) .ward__device { display: none; }
.ward__static { display: flex; gap: clamp(12px, 2vw, 24px); justify-content: center; flex-wrap: wrap; }
.ward__static .phone { --pw: clamp(150px, 18vw, 250px); }
.is-motion .ward__static { display: none; }

.is-motion .ward > .stage { display: block; }
.is-motion .ward__head { position: absolute; left: var(--pad-l); top: calc(var(--top-safe) + clamp(16px, 4svh, 44px)); max-width: min(30ch, 44vw); }
.is-motion .ward__body { position: absolute; inset: var(--top-safe) var(--pad-r) var(--nav-b) var(--pad-l); display: block; }
.is-motion .ward__device { position: absolute; left: 66%; top: 50%; margin: calc(var(--pw) / -0.4718 / 2) 0 0 calc(var(--pw) / -2); }
.is-motion .ward__body .steps { position: absolute; left: 0; top: 58%; width: min(34vw, 420px); display: block; }
.is-motion .ward__body .step { position: absolute; left: 0; top: 0; translate: 0 -50%; width: 100%; }
.is-motion .ward__outcome { position: absolute; left: var(--pad-l); bottom: clamp(24px, 7svh, 72px); max-width: min(26ch, 42vw); }
@media (max-width: 899.98px) {
  .is-motion .ward__head { max-width: calc(100vw - var(--pad-l) - var(--pad-r)); }
  .is-motion .ward__head .h2 { font-size: clamp(28px, 7.6vw, 40px); }
  .is-motion .ward__device { --pw: min(48vw, calc((100svh - var(--top-safe) - var(--nav-b) - 240px) * 0.4718)); left: 50%; top: 46%; }
  .is-motion .ward__body .steps { left: 0; right: 0; top: auto; bottom: clamp(6px, 1.5svh, 16px); width: auto; }
  .is-motion .ward__body .step { top: auto; bottom: 0; translate: none; }
  .is-motion .ward__outcome { left: var(--pad-l); right: var(--pad-r); max-width: none; bottom: clamp(18px, 4svh, 40px); }
}

/* ===== 7. Trust (three phones fan out) ===== */
.trust > .stage { display: grid; gap: clamp(28px, 5svh, 56px); text-align: center; justify-items: center; }
.trust__head { display: grid; gap: 16px; justify-items: center; max-width: min(760px, 100%); }
.trust__head .body { max-width: 52ch; }
.trust__row { display: flex; gap: clamp(20px, 4vw, 64px); justify-content: center; align-items: flex-start; flex-wrap: wrap; }
.trust__item { display: grid; gap: 16px; justify-items: center; width: var(--tw); --tw: clamp(180px, min(19vw, 31svh), 300px); }
.trust__item .phone { --pw: var(--tw); }
.trust__cap { display: grid; gap: 6px; max-width: 26ch; }
.trust__cap .body { font-size: 15px; }
.trust__close.voice { font-size: clamp(22px, 2.4vw, 38px); max-width: 32ch; }
.is-motion .trust > .stage {
  display: grid; grid-template-rows: auto minmax(0, 1fr); justify-items: center; align-items: start;
  padding-top: calc(var(--top-safe) + clamp(12px, 3svh, 36px)); padding-bottom: calc(var(--nav-b) + 8px);
  gap: clamp(16px, 3.2svh, 40px);
}
.is-motion .trust__head, .is-motion .trust__close { grid-row: 1; grid-column: 1; }
.is-motion .trust__close { align-self: center; }
.is-motion .trust__row { grid-row: 2; grid-column: 1; align-self: center; flex-wrap: nowrap; }
@media (max-width: 899.98px) {
  .trust__row { flex-direction: column; align-items: center; }
  .is-motion .trust__row { position: relative; width: 100%; height: 100%; flex-direction: row; gap: 0; align-self: stretch; }
  .is-motion .trust__item { --tw: min(54vw, 34svh); position: absolute; left: 50%; top: 0; margin-left: calc(var(--tw) / -2); }
  .is-motion .trust__head .body { display: none; }
}

/* ===== 8. Speed & precision ===== */
.prec > .stage { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 96px); align-items: start; }
.prec__head { display: grid; gap: 16px; max-width: 30ch; }
.prec__col { display: grid; gap: clamp(28px, 5svh, 48px); }
.prec__steps { display: grid; gap: 4px; border-top: 1px solid var(--line); max-width: 460px; }
.pstep { border-bottom: 1px solid var(--line); padding: 16px 0; display: grid; gap: 8px; }
.pstep__t { display: flex; align-items: center; gap: 12px; font-size: clamp(18px, 1.4vw, 21px); font-weight: 600; letter-spacing: -0.02em; }
.pstep__t .n { font-size: 13px; font-weight: 400; color: var(--ink-2); font-variant-numeric: tabular-nums; width: 20px; }
.pstep__b { padding-left: 32px; }
.prec__phone { --pw: clamp(200px, min(24vw, var(--pw-fit)), 360px); position: sticky; top: calc(var(--top-safe) + 24px); }
.prec__type {                       /* typed letters over the search field */
  position: absolute; z-index: 4; left: 18.6%; top: 7.6%; height: 3.6%;
  display: flex; align-items: center;
  font: 400 3.45cqw/1 var(--font-sans); color: #2b2b2b; letter-spacing: 0;
}
.prec__type i { display: inline-block; width: 0.42cqw; height: 4.6cqw; background: #2d8cf0; margin-left: 0.3cqw; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.prec__type-cover { position: absolute; z-index: 3; left: 17.5%; top: 7.9%; width: 12%; height: 3.4%; background: #ffffff; }
.prec__sugg-cover { position: absolute; z-index: 3; left: 0; right: 0; top: 13.9%; height: 41%; background: var(--app-screen); transform-origin: 50% 100%; }
.prec__ghost { position: absolute; z-index: 6; left: 34.7%; top: 25.06%; width: 16.3%; height: 9.91%; overflow: hidden; border-radius: 0.6cqw; opacity: 0; box-shadow: 0 1.5cqw 4cqw rgba(0,0,0,0.25); }
.prec__ghost img { width: 100%; height: 100%; object-fit: cover; }
.prec__sheet { clip-path: inset(54% 0 0 0); }
.prec__dim { clip-path: inset(0 0 46% 0); }
.prec__static { display: none; }
@media (max-width: 899.98px) {
  .prec > .stage { grid-template-columns: 1fr; }
  .prec__phone { position: relative; top: 0; justify-self: center; }
}
/* Static mode: show the five moments as a grid of phones */
html:not(.is-motion) .prec__phone { display: none; }
html:not(.is-motion) .prec__static { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px 20px; }
.prec__static .phone { --pw: 100%; }
.prec__static figure { display: grid; gap: 12px; }
.prec__static figcaption { font-size: 15px; color: var(--ink-2); }

.is-motion .prec > .stage { display: block; }
.is-motion .prec__col { position: absolute; left: var(--pad-l); top: calc(var(--top-safe) + clamp(16px, 4svh, 44px)); width: min(40vw, 470px); gap: clamp(18px, 3.4svh, 36px); }
.is-motion .pstep { padding: clamp(10px, 1.8svh, 16px) 0; }
.is-motion .pstep .pstep__t { color: var(--ink-dim); transition: color 0.45s var(--ease); }
.is-motion .pstep.on .pstep__t { color: var(--ink); }
.is-motion .pstep__b { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.6s var(--ease), opacity 0.45s var(--ease); }
.is-motion .pstep__b > p { overflow: hidden; }
.is-motion .pstep.on .pstep__b { grid-template-rows: 1fr; opacity: 1; }
.is-motion .prec__phone { position: absolute; left: 70%; top: 50%; margin: calc(var(--pw) / -0.4718 / 2) 0 0 calc(var(--pw) / -2); }
@media (max-width: 899.98px) {
  .is-motion .prec__col { left: var(--pad-l); right: var(--pad-r); bottom: 0; width: auto; }
  .is-motion .prec__head .h2 { font-size: clamp(28px, 7.6vw, 40px); }
  .is-motion .prec__steps { position: absolute; left: 0; right: 0; bottom: calc(var(--nav-b) + clamp(4px, 1svh, 12px)); border-top: 0; max-width: none; }
  .is-motion .pstep { border: 0; padding: 0; position: absolute; left: 0; right: 0; bottom: 0; opacity: 0; transition: opacity 0.45s var(--ease); }
  .is-motion .pstep.on { opacity: 1; }
  .is-motion .prec__phone { --pw: min(48vw, calc((100svh - var(--top-safe) - var(--nav-b) - 250px) * 0.4718)); left: 50%; top: 47%; }
  .is-motion .prec__head .body { display: none; }
}

/* ===== 9. Impact ===== */
.impact > .stage { display: grid; gap: clamp(40px, 8svh, 88px); }
.impact__head { display: grid; gap: 18px; max-width: 34ch; }
.impact__head .body { max-width: 60ch; }
.numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); border-top: 1px solid var(--line); padding-top: clamp(24px, 4svh, 40px); }
.num { display: grid; gap: 14px; align-content: start; }
.num__v { font-size: clamp(64px, 9.6vw, 168px); line-height: 0.85; font-weight: 600; letter-spacing: -0.065em; font-variant-numeric: tabular-nums; transform-origin: 0% 100%; }
.num__v small { font-size: 0.5em; letter-spacing: -0.04em; }
.num .body { max-width: 30ch; }
@media (max-width: 899.98px) { .numbers { grid-template-columns: 1fr; } }

.credits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; border-top: 1px solid var(--line); padding-top: 28px; }
.credits dt { font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.credits dd { margin: 0; font-size: 15px; line-height: 1.5; }
.credits dd span { color: var(--ink-2); }
@media (max-width: 899.98px) { .credits { grid-template-columns: 1fr 1fr; } }

/* ===== 10. Finale: the whole story contracts into the gallery of the other work, then gives way to it ===== */
.finale > .stage { display: grid; gap: clamp(24px, 4svh, 40px); }
.finale__head { display: grid; gap: 14px; }
.finale .wk-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.finale .wk-card { min-height: clamp(240px, 36svh, 380px); }
.wall-window { display: none; }
@media (max-width: 899.98px) {
  .finale .wk-cards { grid-template-columns: 1fr 1fr; }
  .finale .wk-card { min-height: 0; }
  .finale .wk-card .wk-t { font-size: 15px; }
}
.is-motion .finale > .stage {
  padding-top: calc(var(--top-safe) + clamp(14px, 3.5svh, 40px));
  padding-bottom: calc(var(--nav-b) + clamp(4px, 1svh, 16px));
  grid-template-rows: auto 1fr; align-content: stretch;
}
.is-motion .wk-cards { align-self: center; }
.is-motion .wall-window {
  --ct: 0px; --cr: 0px; --cb: 0px; --cl: 0px; --crad: 0px;
  display: block; position: absolute; inset: 0; z-index: 5; overflow: hidden;
  background: var(--band); pointer-events: none;
  clip-path: inset(var(--ct) var(--cr) var(--cb) var(--cl) round var(--crad));
}
.wall {
  position: absolute; left: 50%; top: 50%;
  display: flex; gap: var(--wg); align-items: flex-start;
  --wp: clamp(150px, 19vw, 300px); --wg: clamp(14px, 1.8vw, 28px);
  /* centred and tilted by the script (xPercent/yPercent/rotation), so its closing offset never fights them */
}
.wall__col { display: grid; gap: var(--wg); }
.wall__col:nth-child(even) { margin-top: calc(var(--wp) * 0.9); }
.wall .phone { --pw: var(--wp); }

/* =====================================================================
   v2 — refinements: liquid glass, a quieter device, new chapter layouts
   ===================================================================== */
/* A thin, quiet device frame everywhere */
.phone__body {
  padding: 1.7cqi; border-radius: 14.2cqi;
  background: #e8e6e0;
  box-shadow:
    inset 0 0 0 0.3cqi rgba(255, 255, 255, 0.85),
    0 0 0 0.28cqi rgba(15, 15, 13, 0.12),
    0 5cqi 12cqi -6cqi rgba(30, 26, 12, 0.24);
}
.phone__body::after { top: 3.3cqi; width: 23cqi; height: 6.6cqi; margin-left: -11.5cqi; background: #0d0d0c; }
.phone__screen { border-radius: 12.6cqi; }

/* Hero: clean, no glow */
.hero__glow { display: none; }

/* Problem: sans, from faded to full contrast, then the brief */
.problem__inner { gap: clamp(36px, 7svh, 72px); }
/* the problem: the voice, each word going from faded to full contrast as you read */
.problem__lead { font-size: clamp(30px, 3.8vw, 58px); line-height: 1.12; letter-spacing: -0.03em; max-width: 23ch; }
.problem__brief { display: grid; gap: 14px; justify-items: center; }
.problem__brief::before { content: ""; width: 44px; height: 1px; background: var(--line-strong); margin-bottom: 6px; }
/* the brief it leads to: scanned, not spoken — Geist 600, tight */
.problem__answer { font: 600 clamp(26px, 3vw, 46px)/1.14 var(--font-sans); letter-spacing: -0.04em; max-width: 22ch; text-wrap: balance; }
.problem__answer b { font-weight: 600; color: var(--accent); }

/* Core user: a rail of inflection points, the inner voice maturing beside it */
.core > .stage { display: grid; gap: clamp(32px, 6svh, 64px); }
.core__head { max-width: 40ch; }
.core__head .body { max-width: 48ch; }
.core__arc { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(32px, 6vw, 104px); align-items: center; width: 100%; max-width: 1200px; }
.core__rail { position: relative; display: grid; gap: clamp(18px, 3.6svh, 34px); padding-left: 34px; }
.core__rail::before, .core__fill { content: ""; position: absolute; left: 7px; top: 9px; bottom: var(--rail-end, 9px); width: 2px; border-radius: 2px; }   /* ends on the last circle's centre (--rail-end, set by the script) */
.core__rail::before { background: var(--line-strong); }
.core__fill { background: var(--accent); transform-origin: 50% 0; }
.core__node { position: relative; display: grid; gap: 3px; }
.core__node::before {
  content: ""; position: absolute; left: -34px; top: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--sheet); box-shadow: inset 0 0 0 2px var(--accent);
  transition: background-color 0.45s var(--ease), transform 0.45s var(--ease);
}
.core__node .n { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.core__node .m { font-size: clamp(16px, 1.3vw, 19px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; color: var(--ink); transition: color 0.45s var(--ease); }
.core__stages { display: grid; gap: 44px; }
.core__stage { display: grid; gap: 16px; }
.core__stage .k { font-size: 15px; color: var(--ink-2); }
.core__quote { font-size: clamp(38px, 5.6vw, 92px); line-height: 1; letter-spacing: -0.055em; text-wrap: balance; }
.core__stage:nth-child(1) .core__quote { font-weight: 300; }
.core__stage:nth-child(2) .core__quote { font-weight: 400; }
.core__stage:nth-child(3) .core__quote { font-weight: 500; }
.core__stage:nth-child(4) .core__quote { font-weight: 650; }   /* the inner voice grows more certain: Geist's weight axis, 300 → 650 */
.core__means { font-size: clamp(16px, 1.3vw, 19px); color: var(--ink-2); }
.core__means b { color: var(--ink); font-weight: 600; }
.core__insight { display: grid; gap: 18px; }
.core__insight-t { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -0.03em; max-width: 17ch; }
.core__insight-t b { font-weight: 300; font-style: italic; color: var(--accent); }
html:not(.is-motion) .core__rail { display: none; }
html:not(.is-motion) .core__arc { grid-template-columns: 1fr; }
.is-motion .core > .stage { padding-top: calc(var(--top-safe) + clamp(16px, 4svh, 48px)); grid-template-rows: auto 1fr; gap: 0; }
.is-motion .core__arc { align-self: center; }
.is-motion .core__stages { position: relative; display: block; height: clamp(230px, 34svh, 380px); }
.is-motion .core__stage { position: absolute; left: 0; right: 0; top: 50%; translate: 0 -50%; }
.is-motion .core__node.on::before { background: var(--accent); transform: scale(1.18); }
.is-motion .core__node.past::before { background: var(--accent); }
.is-motion .core__node:not(.on):not(.past) .m { color: var(--ink-dim); }
.is-motion .core__insight { position: absolute; inset: var(--top-safe) var(--pad-r) var(--nav-b) var(--pad-l); place-content: center; justify-items: center; text-align: center; }
@media (max-width: 899.98px) {
  .core__arc { grid-template-columns: 1fr; gap: 28px; }
  .is-motion .core__rail { grid-template-columns: repeat(4, 1fr); padding: 30px 0 0; gap: 8px; }
  .is-motion .core__rail::before, .is-motion .core__fill { left: 8px; right: var(--rail-end, 8px); top: 7px; bottom: auto; width: auto; height: 2px; }
  .is-motion .core__fill { transform-origin: 0 50%; }
  .is-motion .core__node::before { left: 0; top: -30px; }
  .is-motion .core__node .m { display: none; }
  .is-motion .core__stages { height: clamp(220px, 38svh, 330px); }
  .core__quote { font-size: clamp(34px, 10.5vw, 54px); }
}

/* Research: glass stack on the left, one steady window on the right */
.rs { display: grid; grid-template-columns: minmax(0, 430px) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; width: 100%; max-width: 1240px; margin-inline: auto; }
.rs__col { display: grid; gap: clamp(20px, 3.4svh, 32px); }
.rs__glass {
  position: relative; isolation: isolate; display: grid; padding: 6px 22px;
  border-radius: 26px; background: rgba(255, 255, 255, 0.52);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: var(--shadow-glass), var(--shadow-glass-rim);
}
.rs__glass::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 40%);
}
.rs__item { display: grid; grid-template-rows: 1fr; border-top: 1px solid var(--line); }
.rs__item:first-child { border-top-color: transparent; }
.rs__in { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; min-height: 0; overflow: hidden; }
.rs__in > * { padding-block: 15px; }
.rs__item .n { font-size: 13px; color: var(--accent-text); font-variant-numeric: tabular-nums; padding-top: 3px; }
.rs__t { font-size: clamp(17px, 1.35vw, 20px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; text-wrap: balance; }
.rs__bw { display: grid; grid-template-rows: 1fr; }
.rs__bw > p { min-height: 0; overflow: hidden; }
.rs__b { font-size: 15px; line-height: 1.45; color: var(--ink-2); padding-top: 6px; }
.rs__window { position: relative; margin: 0; aspect-ratio: 4 / 3.2; max-width: 100%; border-radius: var(--radius-card); overflow: hidden; background: #ebeae5; container-type: size; }
.rs__img { position: absolute; inset: 0; display: grid; place-items: center; }
.rs__frame { position: relative; width: min(100cqw, calc(100cqh * var(--r))); aspect-ratio: var(--r); }
.rs__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rs__hl {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; border-radius: 12px; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 1.5px rgba(78, 154, 27, 0.7), 0 0 0 200vmax rgba(246, 245, 241, 0.58);
}
html:not(.is-motion) .rs__window { aspect-ratio: auto; container-type: normal; display: grid; gap: 12px; background: none; overflow: visible; }
html:not(.is-motion) .rs__img { position: relative; }
html:not(.is-motion) .rs__frame { width: 100%; border-radius: 16px; overflow: hidden; }
.is-motion .research > .stage { padding-top: calc(var(--top-safe) + clamp(12px, 3svh, 36px)); padding-bottom: calc(var(--nav-b) + clamp(4px, 1svh, 16px)); display: grid; align-content: center; }
.is-motion .rs__window { height: min(calc(100svh - var(--top-safe) - var(--nav-b) - 120px), 600px); aspect-ratio: auto; width: 100%; }
.is-motion .rs__item { grid-template-rows: 0fr; opacity: 0; border-top-color: transparent; transition: grid-template-rows 0.75s var(--ease), opacity 0.5s var(--ease), border-color 0.5s var(--ease); }
.is-motion .rs__item.past, .is-motion .rs__item.on { grid-template-rows: 1fr; opacity: 1; }
.is-motion .rs__item.past:not(:first-child), .is-motion .rs__item.on:not(:first-child) { border-top-color: var(--line); }
.is-motion .rs__item.past { opacity: 1; }
.is-motion .rs__item.past .rs__t { color: var(--ink-dim); }
.is-motion .rs__bw { grid-template-rows: 0fr; transition: grid-template-rows 0.75s var(--ease); }
.is-motion .rs__item.on .rs__bw { grid-template-rows: 1fr; }
@media (max-width: 899.98px) {
  .rs { grid-template-columns: 1fr; gap: 16px; }
  .rs__col { display: contents; }
  .research__head { order: 0; } .rs__window { order: 1; } .rs__glass { order: 2; }
  .is-motion .research__head .body { display: none; }
  .is-motion .rs__window { height: 34svh; }
  .is-motion .rs__item.past { grid-template-rows: 0fr; opacity: 0; }
}

/* Wardrobes: the tapped wardrobe tile grows into the wardrobe itself */
.ward__open { clip-path: inset(var(--ot, 72.9%) var(--or, 67.8%) var(--ob, 12.6%) var(--ol, 6.5%) round var(--orad, 4%)); }
.ward__open img { transform-origin: 19.4% 80.2%; }
.ward__outcome { display: grid; gap: 18px; }
.ward__outcome-t { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -0.03em; max-width: 19ch; }
.is-motion .ward__outcome { position: absolute; inset: var(--top-safe) var(--pad-r) var(--nav-b) var(--pad-l); max-width: none; place-content: center; justify-items: center; text-align: center; }

/* Trust: more air between words and phones */
.trust > .stage { gap: clamp(40px, 7svh, 88px); }
.trust__item { --tw: clamp(170px, min(18vw, 28svh), 280px); }
.is-motion .trust > .stage { gap: clamp(36px, 7svh, 84px); }
.trust__cap .label { justify-self: center; font-size: 13px; }

/* Wide screens: words sit right beside the phone, read in one view */
@media (min-width: 900px) {
  .is-motion .feed__anatomy { display: flex; align-items: center; justify-content: center; gap: clamp(56px, 6vw, 104px); }
  .is-motion .feed__anatomy .steps { position: relative; left: auto; top: auto; translate: none; width: min(30vw, 380px); height: 260px; flex: none; }
  .is-motion .feed__anatomy .step { top: 50%; }
  .is-motion .feed__phone { position: relative; left: auto; top: auto; margin: 0; }

  .is-motion .ward > .stage {
    display: grid; grid-template-columns: minmax(0, 400px) auto; grid-template-rows: auto auto;
    column-gap: clamp(56px, 7vw, 112px); row-gap: clamp(20px, 4svh, 40px);
    justify-content: center; align-content: center; padding-top: var(--top-safe); padding-bottom: var(--nav-b);
  }
  .is-motion .ward__head { position: relative; left: auto; top: auto; grid-column: 1; grid-row: 1; align-self: end; max-width: none; }
  .is-motion .ward__body { display: contents; }
  .is-motion .ward__body .steps { position: relative; left: auto; top: auto; grid-column: 1; grid-row: 2; width: auto; height: 220px; }
  .is-motion .ward__body .step { top: 0; translate: none; }
  .is-motion .ward__device { position: relative; left: auto; top: auto; margin: 0; grid-column: 2; grid-row: 1 / span 2; align-self: center; }

  .is-motion .prec > .stage { display: flex; align-items: center; justify-content: center; gap: clamp(56px, 6vw, 104px); padding-top: var(--top-safe); padding-bottom: var(--nav-b); }
  .is-motion .prec__col { position: relative; left: auto; top: auto; width: min(38vw, 440px); flex: none; }
  .is-motion .prec__phone { position: relative; left: auto; top: auto; margin: 0; flex: none; }
}
@media (min-width: 900px) {
  .is-motion .trust__item { --tw: clamp(150px, min(18vw, calc((100svh - 470px) * 0.42)), 280px); }
  .is-motion .trust__cap .body { font-size: 14px; }
  .is-motion .trust > .stage { gap: clamp(28px, 5svh, 64px); }
}
@media (max-width: 899.98px) {
  .is-motion .trust > .stage { gap: clamp(18px, 3svh, 32px); }
  .is-motion .trust__item { --tw: min(48vw, 29svh); }
  .is-motion .trust__cap .body { font-size: 14px; }
}

/* =====================================================================
   v3 — serif opener, liquid transitions, a sheet that becomes the wardrobe
   ===================================================================== */
.hero__title { font-size: var(--fs-display); line-height: 1; letter-spacing: -0.035em; max-width: 11em; }

/* Screens arrive like liquid: a soft circular bloom from where the finger was */
.liquid { clip-path: circle(var(--lr, 150%) at var(--lx, 50%) var(--ly, 50%)); }

/* Spotlights morph between targets; keep the ring soft */
.spot { transition: none; }

/* Address sheet: rounded top corners, dark scrim behind it (60% black, as in the original flow) */
.prec__scrim { background: rgba(0, 0, 0, 0.6); }
.prec__dim { clip-path: none; }
.prec__sheet { clip-path: inset(54% 0 0 0 round 4.2cqw 4.2cqw 0 0); }

/* Wardrobes: the save-to sheet rises and becomes the wardrobe */
.ward__open { clip-path: inset(var(--ot, 63.46%) var(--or, 2.6%) 0 var(--ol, 2.4%) round var(--orad, 3.2cqw) var(--orad, 3.2cqw) 0 0); }
.ward__open img { transform-origin: 50% 100%; }

/* Trust: room between the words and the phones on smaller screens */
@media (max-width: 899.98px) {
  .is-motion .trust > .stage { gap: clamp(30px, 5.5svh, 52px); }
  .is-motion .trust__item { --tw: min(44vw, 26svh); }
}
@media (min-width: 900px) and (max-height: 820px) {
  .is-motion .trust__head .body { display: none; }
}

/* =====================================================================
   Fitted to the site's type: the serif lines run wider than the source's sans,
   so a few stages re-balance around them (and around the docked section nav)
   ===================================================================== */
@media (min-width: 900px) {
  /* the opening line takes three lines, and the ninety prototypes sit between it and the captions */
  .is-motion .feed__head { max-width: min(620px, 46vw); }
  .is-motion .feed__grid { top: 58%; width: min(calc(100vw - var(--pad-l) - var(--pad-r)), 980px, calc((100svh - var(--top-safe) - var(--nav-b) - 330px) * 1.95)); }
  /* precision: the title holds to two lines beside the phone */
  .is-motion .prec__col { width: min(42vw, 500px); }
  .is-motion .prec__head .h2 { font-size: clamp(32px, 3.2vw, 50px); }
}
@media (max-width: 899.98px) {
  /* the phones sit just below the chapter title, clear of the steps and the section nav */
  .is-motion .ward__device { --pw: min(44vw, calc((100svh - var(--top-safe) - var(--nav-b) - 300px) * 0.4718)); top: calc(176px + var(--pw) / 0.4718 / 2); }
  .is-motion .prec__phone { --pw: min(44vw, calc((100svh - var(--top-safe) - var(--nav-b) - 300px) * 0.4718)); top: calc(var(--top-safe) + 176px + var(--pw) / 0.4718 / 2); }
  /* the closing cards: name and headline only (each card is the link), so all four fit the stage */
  .wk-meta { display: none; }
  .finale .wk-card .wk-go { display: none; }
  .finale .wk-card { grid-template-rows: auto auto 1fr; gap: 8px; padding: 14px 14px 16px; }
  .finale .wk-card .wk-t { font-size: 14px; letter-spacing: -0.02em; }
  .finale .wk-cards { gap: 8px; }
  .finale .h2 { font-size: clamp(28px, 8vw, 36px); }
  .is-motion .finale > .stage { gap: 16px; padding-top: calc(var(--top-safe) + 8px); }
}
@media (max-width: 899.98px) and (max-height: 720px) {
  /* short phones: each card is its project's name (still the whole link) */
  .finale .wk-card .wk-t { display: none; }
  .finale .wk-card { padding: 14px; }
}
@media (max-width: 899.98px) {
  /* the ninety prototypes fit between the opening line and the counter at any height */
  .is-motion .feed__grid { top: 50%; width: min(calc(100vw - var(--pad-l) - var(--pad-r)), 980px, calc((100svh - var(--top-safe) - var(--nav-b) - 380px) * 1.15)); }
}

/* =====================================================================
   Gregarious and simple, in proportion: on wide screens the whole feed stage is composed at 1440 x 900 and
   scales from one unit (--u, set by the script from the window's size), so resizing a big monitor's window
   shrinks and grows the type, the ninety prototypes and the phone together instead of leaving them behind
   ===================================================================== */
@media (min-width: 900px) {
  .is-motion .feed__head { max-width: calc(600px * var(--u, 1)); }
  .is-motion .feed__head .label { font-size: max(12px, calc(15px * var(--u, 1))); }
  .is-motion .feed__head .voice { font-size: max(22px, calc(39px * var(--u, 1))); }
  .is-motion .feed__num { font-size: max(56px, calc(130px * var(--u, 1))); }
  .is-motion .feed__unit { font-size: max(13px, calc(19px * var(--u, 1))); }
  .is-motion .feed__grid { width: min(calc(100vw - var(--pad-l) - var(--pad-r)), calc(980px * var(--u, 1)), calc((100svh - var(--top-safe) - var(--nav-b) - 300px * var(--u, 1)) * 1.95)); }
  .is-motion .feed__captions { max-width: calc(560px * var(--u, 1)); }
  .is-motion .feed__captions p { font-size: max(14px, calc(20px * var(--u, 1))); max-width: calc(560px * var(--u, 1)); }
  .is-motion .feed__anatomy { gap: calc(96px * var(--u, 1)); }
  .is-motion .feed__anatomy .steps { width: calc(380px * var(--u, 1)); height: calc(260px * var(--u, 1)); }
  .is-motion .feed__anatomy .h3 { font-size: max(17px, calc(25px * var(--u, 1))); }
  .is-motion .feed__anatomy .body { font-size: max(13px, calc(17px * var(--u, 1))); }
  .is-motion .feed__anatomy .step .label { font-size: max(12px, calc(14px * var(--u, 1))); }
  .is-motion .feed__phone { --pw: min(calc(310px * var(--u, 1)), var(--pw-fit)); }
}

/* =====================================================================
   The problem, as Google's statement: it rises inside the opening scene while the phone opens into the
   room, each word brightening as you read, then the brief. (Without motion it stays its own section.)
   ===================================================================== */
.is-motion .problem { display: none; }
.is-motion .hero .problem__inner {
  position: absolute; z-index: 5; left: 50%; top: calc(50% + var(--top-safe) / 2);
  width: min(1040px, calc(100% - var(--pad-l) - var(--pad-r))); translate: -50% -50%;
  display: grid; justify-items: center; gap: clamp(36px, 7svh, 72px); text-align: center;
  opacity: 0; pointer-events: none;
}
.is-motion .hero .problem__lead .w { opacity: 0.14; }
.is-motion .hero .problem__brief { visibility: hidden; }
