/* ═══════════════════════════════════════════════════════════════
   devpatel35.com — Keynote+
   One face, black and white. The only colour on the site is sampled
   from the work itself (--td on black, --tl on white).
   ═══════════════════════════════════════════════════════════════ */

/* ── 1 · tokens ─────────────────────────────────────────────── */

:root {
  --font: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --g: clamp(16px, 4.2vw, 56px);
  --maxw: 1120px;
  --nav: 52px;
  --ease: cubic-bezier(.22, .7, .1, 1);
  --spring: cubic-bezier(.22, 1, .3, 1);
  --r: 22px;
}
/* dark (default) */
:root, :root[data-theme="light"] .inv {
  --bg: #000; --bg2: #0b0b0c; --slab: #000; --card: #141416; --card2: #1d1d20; --cardhi: #26262a;
  --fg: #f5f5f7; --fg2: #d2d2d7; --mute: #86868b; --dim: #4a4a4f;
  --line: rgba(255,255,255,.13); --line2: rgba(255,255,255,.075);
  --frame: #0d0d0f; --ring: rgba(255,255,255,.09);
  --shadow: 0 40px 120px -30px rgba(0,0,0,.9), 0 18px 40px -20px rgba(0,0,0,.8);
  --nav-bg: rgba(10,10,12,.72);
  --name-a: #fff; --name-b: #b9b9c0;
  --sys-node: #161618; --sys-wire: rgba(255,255,255,.22);
  color-scheme: dark;
}
/* light */
:root[data-theme="light"], .inv {
  --bg: #fff; --bg2: #f5f5f7; --slab: #f5f5f7; --card: #f5f5f7; --card2: #ebebf0; --cardhi: #e3e3e8;
  --fg: #1d1d1f; --fg2: #424245; --mute: #6e6e73; --dim: #aeaeb2;
  --line: rgba(0,0,0,.12); --line2: rgba(0,0,0,.07);
  --frame: #fff; --ring: rgba(0,0,0,.08);
  --shadow: 0 40px 100px -40px rgba(0,0,0,.35), 0 14px 30px -18px rgba(0,0,0,.22);
  --nav-bg: rgba(250,250,252,.76);
  --name-a: #1d1d1f; --name-b: #55555c;
  --sys-node: #fff; --sys-wire: rgba(0,0,0,.2);
  color-scheme: light;
}
.inv { --card: #fff; --card2: #fff; --sys-node: #fff; }
:root[data-theme="light"] .inv { --card: #161618; --card2: #1d1d20; --sys-node: #161618; --slab: #000; }

/* the accent: lifted on black, deepened on white */
.tn { --tint: var(--td, var(--fg)); }
:root[data-theme="light"] .tn, .inv .tn, .inv.tn { --tint: var(--tl, var(--fg)); }
:root[data-theme="light"] .inv .tn, :root[data-theme="light"] .inv.tn { --tint: var(--td, var(--fg)); }

/* ── 2 · base ───────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav) + 56px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font);
  font-size: 17px; line-height: 1.47; letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;          /* never `hidden`: that makes body a scroll container and breaks sticky */
  font-feature-settings: "ss01", "cv11";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: calc(var(--maxw) + var(--g) * 2); margin: 0 auto; padding: 0 var(--g); }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 300; top: 10px; left: 10px; padding: 10px 16px; border-radius: 999px; background: var(--fg); color: var(--bg); }
.muted { color: var(--mute); font-size: 15px; }
.inv { background: var(--slab); color: var(--fg); }

/* ── 3 · type ───────────────────────────────────────────────── */

.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .005em; color: var(--mute); }
.eyebrow .n { color: var(--tint, var(--fg)); font-variant-numeric: tabular-nums; margin-right: .7em; }
.h-display { font-size: clamp(48px, 9vw, 128px); line-height: .95; letter-spacing: -.045em; font-weight: 700; }
.h-xl { font-size: clamp(36px, 5.6vw, 72px); line-height: 1.03; letter-spacing: -.034em; font-weight: 650; font-weight: 600; }
.h-l  { font-size: clamp(30px, 3.8vw, 52px); line-height: 1.06; letter-spacing: -.03em; font-weight: 600; }
.h-m  { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; letter-spacing: -.02em; font-weight: 600; }
.lede { font-size: clamp(19px, 1.9vw, 24px); line-height: 1.38; letter-spacing: -.016em; color: var(--mute); font-weight: 500; max-width: 46ch; }
.lede b { color: var(--fg); font-weight: 600; }
.chev { display: inline-flex; align-items: center; gap: .3em; font-size: 17px; font-weight: 500; color: var(--tint, var(--fg)); }
.chev::after { content: ''; width: .42em; height: .42em; border: solid currentColor; border-width: 1.6px 1.6px 0 0; transform: rotate(45deg); margin-left: .1em; transition: transform .3s var(--ease); }
.chev:hover::after { transform: translateX(3px) rotate(45deg); }
.chev:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  height: 46px; padding: 0 24px; border-radius: 999px; background: var(--fg); color: var(--bg);
  font-size: 17px; font-weight: 600; letter-spacing: -.012em; white-space: nowrap;
  transition: background .25s, transform .5s var(--spring), box-shadow .3s;
  transform: translate(var(--mx, 0), var(--my, 0));
}
.pill:hover { box-shadow: 0 0 0 5px color-mix(in srgb, var(--fg) 14%, transparent); }
.pill svg { width: 17px; height: 17px; }
.pill--ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.chip {
  display: inline-flex; align-items: center; gap: .5em; height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--card); color: var(--fg2); font-size: 15px; font-weight: 500; transition: background .2s, color .2s;
}
.chip:hover { background: var(--card2); color: var(--fg); }
.chip svg { width: 15px; height: 15px; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 6px 13px; border-radius: 99px; background: var(--card); color: var(--fg2); }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--tint, var(--fg)); box-shadow: 0 0 10px var(--tint, transparent); }
sup.fn { font-size: .36em; vertical-align: super; line-height: 0; margin-left: .12em; font-weight: 500; letter-spacing: 0; }
sup.fn a { color: var(--mute); padding: 0 .1em; }
sup.fn a:hover { color: var(--fg); }

/* ── 4 · nav ────────────────────────────────────────────────── */

.rail {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--nav);
  background: var(--nav-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line2);
  view-transition-name: rail;
}
.rail__in { height: 100%; display: flex; align-items: center; gap: 26px; max-width: calc(var(--maxw) + var(--g)*2); margin: 0 auto; padding: 0 var(--g); }
.rail__id { font-size: 17px; font-weight: 650; font-weight: 600; letter-spacing: -.025em; margin-right: auto; }
.rail__nav { display: flex; gap: 26px; }
.rail__nav a { font-size: 13px; color: var(--fg2); transition: color .2s; }
.rail__nav a:hover, .rail__nav a[aria-current] { color: var(--fg); }
.rail__tools { display: flex; align-items: center; gap: 6px; }
.ib { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 999px; color: var(--fg2); transition: background .2s, color .2s; }
.ib:hover { background: var(--card); color: var(--fg); }
.ib svg { width: 17px; height: 17px; }
.spacepill {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 13px 0 10px;
  border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--fg); margin-right: 6px; isolation: isolate;
  background: var(--bg);
}
.spacepill::before {   /* a hairline ring with a slow comet running round it */
  content: ''; position: absolute; inset: -1px; border-radius: inherit; z-index: -2;
  background: conic-gradient(from var(--sa, 0deg), #6c7bff, #a46bff 18%, rgba(255,255,255,.18) 30%, rgba(255,255,255,.18) 70%, #5fe0e0 88%, #6c7bff);
}
.spacepill::after { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; background: var(--bg); }
.spacepill svg { width: 16px; height: 16px; color: #a7b0ff; }
.spacepill:hover svg { animation: spin 3s linear infinite; }
@property --sa { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@media (prefers-reduced-motion: no-preference) { .spacepill::before { animation: orbit 6s linear infinite; } }
@keyframes orbit { to { --sa: 360deg; } }
@keyframes spin { to { transform: rotate(360deg); } }
.burger { display: none; width: 34px; height: 34px; position: relative; border-radius: 999px; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--fg); border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 13px; } .burger span:last-child { top: 20px; }
.rail[data-open] .burger span:first-child { top: 16.5px; transform: rotate(45deg); }
.rail[data-open] .burger span:last-child { top: 16.5px; transform: rotate(-45deg); }
.prog { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--fg); opacity: .5; transform: scaleX(0); transform-origin: left; }

@media (max-width: 820px) {
  .rail__nav {
    position: fixed; top: var(--nav); left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg); padding: 8px var(--g) 28px; border-bottom: 1px solid var(--line2);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .rail[data-open] .rail__nav { opacity: 1; visibility: visible; transform: none; }
  .rail__nav a { font-size: 26px; font-weight: 600; letter-spacing: -.03em; color: var(--fg); padding: 10px 0; border-bottom: 1px solid var(--line2); }
  .burger { display: block; }
  .kb { display: none; }
  .rail__in { gap: 12px; }
}
@media (max-width: 420px) { .spacepill__x { display: none; } .spacepill { margin-right: 2px; } }

/* ── 5 · hero ───────────────────────────────────────────────── */

.hero { position: relative; height: 100svh; min-height: 640px; max-height: 1100px; overflow: hidden; isolation: isolate; }
.hero__portrait {
  position: absolute; left: 50%; top: calc(var(--nav) + 1vh); height: min(62svh, 720px); aspect-ratio: 1400/1582; transform: translateX(-50%); z-index: 0;
  -webkit-mask-image: linear-gradient(#000 50%, rgba(0,0,0,.55) 70%, transparent 90%); mask-image: linear-gradient(#000 50%, rgba(0,0,0,.55) 70%, transparent 90%);
}
.hero__portrait::before { /* light the backdrop, not the subject (README: no silhouette below the chin on black) */
  content: ''; position: absolute; inset: 8% -18% 0; z-index: -1;
  background: radial-gradient(closest-side, rgba(120,128,160,.22), transparent 78%);
}
:root[data-theme="light"] .hero__portrait::before { display: none; }
.hero__portrait img { width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 40%; }
.hero__copy { position: absolute; inset: auto 0 0 0; z-index: 1; text-align: center; padding: 0 var(--g) clamp(22px, 4.6svh, 52px); }
.hero__kicker { font-size: 15px; font-weight: 600; color: var(--fg2); margin-bottom: 6px; }
.hero__name {
  font-size: clamp(76px, 15.6vw, 236px); line-height: .84; letter-spacing: -.055em; font-weight: 700; margin: 0 0 .16em -.03em;
  background: linear-gradient(180deg, var(--name-a) 30%, var(--name-b) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__line { font-size: clamp(20px, 2.1vw, 28px); line-height: 1.2; letter-spacing: -.025em; font-weight: 600; }
.hero__line span { color: var(--mute); }
.hero__ctas { display: flex; gap: 26px; justify-content: center; align-items: center; margin-top: clamp(16px, 2.4svh, 26px); }
.now { display: inline-flex; align-items: baseline; gap: 9px; margin-top: clamp(16px, 2.6svh, 28px); font-size: 13px; font-weight: 500; color: var(--mute); }
.now i { width: 7px; height: 7px; transform: translateY(-1px); border-radius: 50%; background: #34c759; box-shadow: 0 0 0 0 rgba(52,199,89,.5); flex: none; }
@media (prefers-reduced-motion: no-preference) { .now i { animation: ping 2.4s var(--ease) infinite; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(52,199,89,.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(52,199,89,0); } }
@media (max-width: 720px) {
  .hero { min-height: 600px; }
  .hero__portrait { height: 62svh; top: calc(var(--nav) + 1svh); }
  .hero__name { font-size: clamp(64px, 21.5vw, 120px); }
  .hero__line span { display: block; }
  .now { max-width: 30ch; text-align: left; }
}

/* ── 5b · space mode teaser ─────────────────────────────────── */

.stz { position: relative; overflow: hidden; isolation: isolate; color: #f5f5f7; background: radial-gradient(120% 140% at 80% 50%, #0b0d24 0%, #03030b 55%, #000 100%);
  border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); }
.stz__c { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.stz__in { min-height: clamp(300px, 40vh, 420px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px; padding-top: 48px; padding-bottom: 48px; }
.stz__k { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #a7b0ff; }
.stz__k svg { width: 18px; height: 18px; }
.stz__h { margin-top: 12px; font-size: clamp(26px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -.035em; font-weight: 600; max-width: 20ch; text-wrap: balance;
  background: linear-gradient(180deg, #fff 40%, #b9c0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pill--space { background: #fff; color: #000; flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 0 48px -6px rgba(124,140,255,.55); }
.pill--space:hover { box-shadow: 0 0 0 5px rgba(167,176,255,.25), 0 0 60px -4px rgba(124,140,255,.7); }


/* ── 6 · statement: words light up as it scrolls ────────────── */

.statement { padding: clamp(120px, 22vh, 240px) 0 clamp(80px, 14vh, 160px); }
.statement p { font-size: clamp(30px, 4.4vw, 60px); line-height: 1.14; letter-spacing: -.033em; font-weight: 600; max-width: 23ch; view-timeline: --stmt block; }
.jsd .statement .w { color: color-mix(in srgb, var(--fg) 22%, transparent); transition: color .35s; }
.jsd .statement .w.on { color: var(--fg); }

/* ── 7 · section heads ──────────────────────────────────────── */

.sechead { padding: clamp(110px, 18vh, 200px) 0 clamp(48px, 8vh, 88px); }
.sechead .h-display { margin-top: 14px; }
.sechead .lede { margin-top: 24px; }
.sechead--c { text-align: center; }
.sechead--c .lede { margin-inline: auto; max-width: 42ch; }
.chapters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 44px; }
.chapters a { font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 999px; background: var(--card); color: var(--fg2); transition: background .2s, color .2s; }
.chapters a:hover { background: var(--card2); color: var(--fg); }

/* ── 8 · shared bits + experience module ────────────────────── */

.logo { width: 44px; height: 44px; border-radius: 11px; background: #fff; flex: none; object-fit: contain; }
.logo--none { display: grid; place-items: center; font-weight: 700; color: #000; }
.specline { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 40px; font-size: 13px; color: var(--mute); }
.specline span:not(:last-child)::after { content: '·'; margin: 0 10px; opacity: .6; }
.ticks { list-style: none; display: grid; gap: 16px; }
.ticks li { position: relative; padding-left: 26px; font-size: 17px; line-height: 1.5; color: var(--fg2); }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .35; }
.prose { display: grid; gap: 1.1em; }
.prose p { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.55; color: var(--fg2); letter-spacing: -.012em; }
.prose p:first-child { color: var(--fg); }
.prose--sm p { font-size: 17px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.pill--sm { height: 38px; padding: 0 18px; font-size: 15px; }

.xp { padding: clamp(110px, 18vh, 200px) 0 clamp(80px, 12vh, 140px); overflow-x: clip; }   /* clip, not hidden: no scroll container */
.xp--top { padding-bottom: clamp(56px, 9vh, 96px); }
.xp--before { padding-top: clamp(96px, 15vh, 170px); }
.xp--before .lede { margin-top: 18px; }

/* the current role, on its own */
.leadrole { padding: clamp(88px, 13vh, 150px) 0; }
.leadrole__head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.leadrole__head .logo { width: 40px; height: 40px; border-radius: 10px; }
.leadrole__top { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
.leadrole h3 { max-width: 15ch; }
.leadrole .lede { margin-top: 22px; max-width: 40ch; }
.leadrole__go { margin-top: 30px; }
.leadrole__plate { margin: 0; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.leadrole__plate img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.leadrole__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 96px); margin-top: clamp(56px, 8vh, 96px); align-items: start; }
.leadrole .sys { margin-top: clamp(56px, 8vh, 96px); }
@media (max-width: 820px) { .leadrole__top, .leadrole__grid { grid-template-columns: 1fr; } }
.xp__head .h-display { margin-top: 14px; }
.xp__head .lede { margin-top: 22px; }

/* the career chart: lanes on one axis */
.tl {
  --kw: 104px; --kg: 18px; --lh: 30px; --dh: 11px;
  position: relative; margin-top: clamp(40px, 6vh, 64px); padding: 22px 24px 14px; border-radius: 24px;
  background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line2);
  view-timeline-name: --tl; view-timeline-axis: block;
}
.tl__lane, .tl__axis { display: grid; grid-template-columns: var(--kw) minmax(0, 1fr); gap: var(--kg); align-items: end; }
.tl__lane + .tl__lane { margin-top: 10px; }
.tl__k { font-size: 12px; font-weight: 600; color: var(--mute); padding-bottom: 6px; white-space: nowrap; }
.tl__k b { color: var(--fg); font-weight: 600; margin-left: 4px; font-variant-numeric: tabular-nums; }
.tl__track { position: relative; }
.tl__lane--proj .tl__track { height: calc(var(--nd) * var(--dh) + 4px); }
.tl__lane--role .tl__track { height: calc(var(--nr) * var(--lh)); }
.tl__lane--edu .tl__track { height: var(--lh); }
.tl__bar {
  position: absolute; height: calc(var(--lh) - 6px); display: flex; align-items: center; min-width: 6px;
  border-radius: 8px; background: var(--card2); box-shadow: inset 0 0 0 1px var(--line); color: var(--fg2);
  font-size: 11.5px; font-weight: 600; text-align: left; overflow: hidden; transform-origin: left center;
  transition: background .25s, color .25s, box-shadow .25s;
}
.tl__bar span { padding: 0 8px 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl__bar img { width: 16px; height: 16px; border-radius: 4px; margin-left: 4px; flex: none; background: #fff; }
.tl__bar--role { cursor: pointer; }
.tl__bar--role:hover { background: var(--cardhi); color: var(--fg); }
.tl__bar--role.is-on { background: var(--fg); color: var(--bg); box-shadow: 0 0 0 4px color-mix(in srgb, var(--fg) 14%, transparent); }
.tl__bar--lead { background: color-mix(in srgb, #34c759 24%, var(--card2)); color: var(--fg); box-shadow: inset 0 0 0 1px rgba(52,199,89,.55); }
.tl__bar--lead:hover { background: color-mix(in srgb, #34c759 34%, var(--card2)); }
.tl__bar--edu { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--mute); }
.tl__bar--open { -webkit-mask-image: linear-gradient(90deg, #000 70%, rgba(0,0,0,.45)); mask-image: linear-gradient(90deg, #000 70%, rgba(0,0,0,.45)); }
.tl__dot { position: absolute; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #7b9bff; box-shadow: 0 0 0 2px var(--bg2); transition: transform .25s var(--spring); }
:root[data-theme="light"] .tl__dot { background: #3d5bd9; }
.tl__dot:hover, .tl__dot:focus-visible { transform: scale(1.7); }
.tl__axis { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line2); }
.tl__axis .tl__track { height: 16px; }
.tl__axis i { position: absolute; top: 0; translate: -50% 0; font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--mute); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tl__axis i:first-child { translate: 0 0; }
.tl__axis i:last-child { translate: -100% 0; color: var(--fg); }
.tl__head { position: absolute; top: 14px; bottom: 34px; left: calc(24px + var(--kw) + var(--kg)); right: 24px; pointer-events: none; overflow: clip; overflow-clip-margin: 2px; }
.tl__head i { position: absolute; inset: 0; width: 100%; opacity: 0; }
.tl__head i::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, transparent, var(--fg) 12%, var(--fg) 88%, transparent); }
.tl__head i::after {
  /* the wake stretches with scroll speed: max(v, -v) is abs() in CSS */
  content: ""; position: absolute; top: 0; bottom: 0;
  width: calc(34px + max(var(--vel, 0) * 90px, var(--vel, 0) * -90px));
  left: calc(-34px - max(var(--vel, 0) * 90px, var(--vel, 0) * -90px));
  background: linear-gradient(to right, transparent, color-mix(in srgb, var(--fg) 12%, transparent));
}
@media (max-width: 720px) {
  .tl { --kw: 0px; --kg: 0px; --lh: 26px; --dh: 9px; padding: 16px 14px 10px; }
  .tl__lane, .tl__axis { grid-template-columns: minmax(0, 1fr); }
  .tl__axis i:first-child { display: none; }
  .tl__k { display: none; }
  .tl__head { left: 14px; right: 14px; top: 10px; bottom: 30px; }
  .tl__bar span { padding: 0 5px; font-size: 10.5px; }
}

/* tabs: a role rail and one panel */
.xp__ui { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: clamp(28px, 4vh, 40px); align-items: start; }
.xp__rail { position: relative; display: grid; gap: 2px; padding-left: 10px; }
.xp__rail::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.xp__ind { position: absolute; left: -1px; top: 0; width: 3px; height: var(--ih, 0); border-radius: 3px; background: var(--fg); transform: translateY(var(--iy, 0)); transition: transform .45s var(--spring), height .45s var(--spring); }
.xp__tab { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; text-align: left; transition: background .25s; }
.xp__tab .logo { width: 36px; height: 36px; border-radius: 9px; filter: grayscale(1); opacity: .65; transition: filter .3s, opacity .3s; }
.xp__tt b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; color: var(--fg2); transition: color .25s; }
.xp__tt span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--mute); }
.xp__tab:hover { background: color-mix(in srgb, var(--card) 60%, transparent); }
.xp__tab:hover .logo, .xp__tab[aria-selected="true"] .logo { filter: none; opacity: 1; }
.xp__tab[aria-selected="true"] { background: var(--card); }
.xp__tab[aria-selected="true"] b { color: var(--fg); }
.xp__panels { display: grid; min-width: 0; }
.xp__p { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 3.5vw, 48px); align-items: start; min-width: 0; border-radius: 20px; }
.xp__p + .xp__p { margin-top: 64px; }   /* no-JS: every panel, stacked */
.xp--js .xp__p { grid-area: 1 / 1; margin: 0; }
.xp--js .xp__p:not([data-on]) { visibility: hidden; opacity: 0; transform: translateX(calc(var(--dir, 1) * 24px)); pointer-events: none; }
.xp--js .xp__p { transition: opacity .35s var(--ease), transform .5s var(--spring), visibility 0s linear .35s; }
.xp--js .xp__p[data-on] { transition: opacity .45s var(--ease) .05s, transform .55s var(--spring), visibility 0s; }
.xp__p:focus-visible { outline-offset: 8px; }
.xp__h { font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -.035em; font-weight: 600; margin-top: 8px; }
.xp__when { margin-top: 10px; font-size: 14px; color: var(--mute); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.xp__now { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: rgba(52,199,89,.14); color: #34c759; }
.xp__th { margin-top: 16px; font-size: 18px; line-height: 1.45; color: var(--fg); letter-spacing: -.015em; max-width: 46ch; }
.stats--sm { margin-top: 26px; }
.stats--sm .stat { padding-top: 12px; padding-bottom: 6px; }
.stats--sm .stat b { font-size: clamp(26px, 2.6vw, 36px); }
.stats--sm .stat--long b { font-size: clamp(20px, 2vw, 28px); }
.stats--sm .stat span { font-size: 13px; margin-top: 6px; }
.xp__p .ticks { margin-top: 22px; gap: 10px; }
.xp__p .ticks li { font-size: 15px; }
.xp__go { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 26px; }
.xp__go .specline { margin-top: 0; font-size: 12.5px; }
.xp__vis { position: relative; isolation: isolate; }
.xp__vis .glow { opacity: .38; }
.xp__frame { margin: 0; aspect-ratio: 4/3; border-radius: 18px; overflow: hidden; background: var(--frame); box-shadow: 0 0 0 1px var(--ring), var(--shadow); }
.xp__frame img { width: 100%; height: 100%; object-fit: cover; }
.xp__vis--sys .sys__c { padding: 22px; }
.xp__vis--sys figcaption { font-size: 13px; }
@media (max-width: 980px) { .xp__p { grid-template-columns: 1fr; } .xp__vis { order: -1; max-width: 560px; } }
@media (max-width: 820px) {
  .xp__ui { grid-template-columns: 1fr; }
  .xp__rail { display: flex; gap: 8px; padding: 2px 0 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin: 0 calc(var(--g) * -1); padding-inline: var(--g); }
  .xp__rail::-webkit-scrollbar { display: none; }
  .xp__rail::before, .xp__ind { display: none; }
  .xp__tab { flex: none; grid-template-columns: 26px auto; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; background: var(--card); scroll-snap-align: start; }
  .xp__tab .logo { width: 26px; height: 26px; border-radius: 7px; }
  .xp__tt b { display: none; }
  .xp__tt span { margin: 0; font-size: 13px; font-weight: 600; color: var(--fg2); white-space: nowrap; }
  .xp__tab[aria-selected="true"] { background: var(--fg); }
  .xp__tab[aria-selected="true"] .xp__tt span { color: var(--bg); }
  .xp__vis { max-width: none; }
}

/* ── 9 · stats (sampled colour) ─────────────────────────────── */

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(16px, 3vw, 40px); margin-top: clamp(48px, 7vh, 80px); }
.stat { border-top: 1px solid var(--line); padding-top: 18px; padding-bottom: 22px; min-width: 0; }
.stat b { display: block; white-space: nowrap; font-size: clamp(34px, 4.6vw, 64px); line-height: 1; letter-spacing: -.04em; font-weight: 600; color: var(--tint); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat--long b { font-size: clamp(28px, 3.4vw, 48px); }
.stat span { display: block; margin-top: 10px; font-size: clamp(14px, 1.2vw, 17px); line-height: 1.35; color: var(--mute); font-weight: 500; max-width: 24ch; }
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr; gap: 0; }
  .stat { display: grid; grid-template-columns: minmax(0, 44%) 1fr; gap: 14px; align-items: baseline; padding-bottom: 16px; }
  .stat b { font-size: clamp(28px, 8.4vw, 40px); }
  .stat--long b { font-size: clamp(22px, 6.4vw, 30px); }
  .stat span { margin-top: 0; }
}

/* ── 12 · scenes: pinned product reveals ────────────────────── */

.scene { position: relative; }
.pin { position: relative; height: 230vh; view-timeline: --pin block; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; align-items: center; overflow: hidden; padding: calc(var(--nav) + 5.5svh) var(--g) 4svh; }
.stage__copy { text-align: center; position: relative; z-index: 2; }
.claim { font-size: clamp(34px, 5.4vw, 76px); line-height: 1.04; letter-spacing: -.038em; font-weight: 600; margin-top: 12px; text-wrap: balance; }
.stage__shot { position: relative; flex: 1; width: 100%; display: grid; place-items: center; margin-top: 3.5svh; min-height: 0; }
.shotbox { --ar: 1.3333; position: relative; width: min(86vw, 1080px, calc(58svh * var(--ar))); aspect-ratio: var(--ar); }
.glow {
  position: absolute; inset: -16% -12%; width: 124%; height: 132%; max-width: none; object-fit: fill; opacity: .55; z-index: -1; pointer-events: none;
  filter: blur(28px) saturate(1.3);
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent 100%); mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
}
.glow--css { background: radial-gradient(closest-side, var(--tint), transparent); filter: none; opacity: .3; }
:root[data-theme="light"] .glow { opacity: .4; }
.frame {
  position: absolute; inset: 0; margin: 0; border-radius: clamp(12px, 1.4vw, 20px); overflow: hidden; background: var(--frame);
  box-shadow: 0 0 0 1px var(--ring), var(--shadow);
}
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.frame--plan { display: grid; place-items: center; padding: 8%; background: var(--card); }
.frame--plan svg { position: static; width: 100%; height: auto; }
.side { position: absolute; z-index: 3; margin: 0; border-radius: 14px; overflow: hidden; background: var(--frame); box-shadow: 0 0 0 1px var(--ring), 0 30px 80px -20px rgba(0,0,0,.9); }
.side img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.side--card { width: 36%; aspect-ratio: 4/3; right: -6%; bottom: -9%; }
.side--phone { width: 17%; aspect-ratio: 780/1688; right: -5%; bottom: -12%; border-radius: 22px; }
@media (max-width: 720px) {
  .pin { height: 190vh; }
  .stage { padding-top: calc(var(--nav) + 4svh); padding-bottom: calc(var(--nav) + 2svh); justify-content: center; }
  .stage__shot { flex: none; margin-top: 6svh; }
  .shotbox { width: min(90vw, calc(46svh * var(--ar))); }
  .side--card { width: 44%; right: -2%; bottom: -14%; }
}
.after { padding-top: clamp(48px, 8vh, 100px); padding-bottom: clamp(100px, 15vh, 170px); }
.sub { font-size: clamp(19px, 1.9vw, 24px); line-height: 1.4; letter-spacing: -.016em; color: var(--mute); font-weight: 500; max-width: 46ch; }
.sub b { color: var(--fg); font-weight: 600; }
.after .stats { margin-top: clamp(40px, 6vh, 64px); }
.specstrip { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 10px clamp(24px, 4vw, 56px); margin-top: clamp(28px, 4vh, 44px); font-size: 13px; line-height: 1.45; color: var(--mute); }
.specstrip b { display: block; font-weight: 600; color: var(--fg2); font-size: 12px; margin-bottom: 2px; }
.links { display: flex; gap: 28px; align-items: center; margin-top: 36px; flex-wrap: wrap; }
.links--c { justify-content: center; }
@media (max-width: 720px) { .specstrip { grid-template-columns: 1fr; } }

/* Ken Burns, paused off-screen */
.kenb { animation: kenb 26s ease-in-out infinite alternate; }
@keyframes kenb { from { transform: scale(1.001); } to { transform: scale(1.06) translate(-1%, -.8%); } }
.idle .kenb, .idle .float { animation-play-state: paused; }

/* ── 13 · the project index ─────────────────────────────────── */

.pidx { padding: clamp(40px, 6vh, 80px) 0 clamp(96px, 14vh, 160px); overflow-x: clip; }
.pidx__head { margin-bottom: clamp(28px, 4vh, 44px); }
.pidx__head .lede { margin-top: 16px; }
.pidx__bar {
  position: sticky; top: var(--nav); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px;
  padding: 12px 0; margin: 0 calc(var(--g) * -1); padding-inline: var(--g);
  background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
}
.pidx__f { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { height: 34px; padding: 0 14px; border-radius: 999px; background: var(--card); color: var(--fg2); font-size: 14px; font-weight: 600; transition: background .2s, color .2s, transform .3s var(--spring); }
.fchip b { margin-left: 4px; font-weight: 500; color: var(--mute); font-variant-numeric: tabular-nums; }
.fchip:hover { background: var(--card2); color: var(--fg); }
.fchip:active { transform: scale(.96); }
.fchip[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.fchip[aria-pressed="true"] b { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.pidx__s { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--card); }
.sort { height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--mute); transition: background .2s, color .2s; }
.sort[aria-pressed="true"] { background: var(--cardhi); color: var(--fg); }
.pidx__l { list-style: none; counter-reset: pr; border-top: 1px solid var(--line); margin-top: 6px; }
.pr { counter-increment: pr; border-bottom: 1px solid var(--line); }
.pr[hidden] { display: none; }
.pr__h { font: inherit; }
.pr__b {
  width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1.6fr) 150px 74px 16px; gap: 18px; align-items: center;
  padding: 18px 4px; text-align: left; transition: padding .45s var(--spring), opacity .3s;
}
.pr__n::before { content: counter(pr, decimal-leading-zero); font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; }
.pr__t { font-size: clamp(19px, 1.7vw, 23px); font-weight: 600; letter-spacing: -.025em; line-height: 1.2; transition: color .25s; }
.pr__th { font-size: 14.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr__tag { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; color: var(--fg2); white-space: nowrap; }
.pr__tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--tint); flex: none; }
.pr__y { font-size: 13px; color: var(--mute); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr__x { position: relative; width: 14px; height: 14px; }
.pr__x::before, .pr__x::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: var(--fg); border-radius: 2px; transition: transform .4s var(--spring), opacity .3s; }
.pr__x::after { transform: rotate(90deg); }
.pr[data-open] .pr__x::after, .pidx:not(.pidx--js) .pr__x::after { transform: rotate(0deg); }
.pr[data-open] .pr__t { color: var(--tint); }
@media (hover: hover) and (pointer: fine) {
  .pr__b:hover { padding-left: 14px; }
  .pidx__l:hover .pr:not(:hover):not([data-open]) .pr__b { opacity: .45; }
}
.pr__d { display: grid; grid-template-rows: 1fr; }
.pidx--js .pr__d { grid-template-rows: 0fr; transition: grid-template-rows .5s var(--spring); }
.pidx--js .pr[data-open] .pr__d { grid-template-rows: 1fr; }
.pr__clip { overflow: hidden; min-height: 0; }
.pr__in { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); padding: 4px 4px 32px 62px; align-items: start; }
.pidx--js .pr__in { opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .45s var(--spring); }
.pidx--js .pr[data-open] .pr__in { opacity: 1; transform: none; transition-delay: .08s; }
.pr__img { margin: 0; aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; background: var(--frame); box-shadow: 0 0 0 1px var(--ring), 0 24px 60px -30px rgba(0,0,0,.7); }
.pr__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.pr__img--plan { display: grid; place-items: center; padding: 10%; background: var(--card); }
.pr__lede { font-size: 17px; line-height: 1.5; color: var(--fg); max-width: 52ch; }
.pr__body .stats--sm { margin-top: 20px; }
.pr__body .specline { margin-top: 16px; }
.pr__go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 22px; }
.pidx__empty { padding: 40px 0; color: var(--mute); }
@media (max-width: 980px) { .pr__b { grid-template-columns: 34px minmax(0, 1fr) 150px 64px 16px; } .pr__th { display: none; } }
@media (max-width: 720px) {
  .pidx__bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .pidx__bar::-webkit-scrollbar { display: none; }
  .pidx__f { flex-wrap: nowrap; }
  .fchip { flex: none; }
  .pr__b { grid-template-columns: 28px minmax(0, 1fr) 16px; grid-template-rows: auto auto; gap: 4px 12px; padding: 16px 0; }
  .pr__n { grid-row: 1 / span 2; align-self: start; padding-top: 4px; }
  .pr__t { grid-column: 2; grid-row: 1; }
  .pr__tag { grid-column: 2; grid-row: 2; justify-self: start; }
  .pr__y { grid-column: 2; grid-row: 2; justify-self: end; }
  .pr__x { grid-column: 3; grid-row: 1 / span 2; }
  .pr__in { grid-template-columns: 1fr; padding: 4px 0 26px 40px; }
}

/* the floating preview that follows the cursor through the index */
.peek {
  position: fixed; left: 0; top: 0; z-index: 40; width: clamp(220px, 24vw, 320px); aspect-ratio: 4/3; margin: 0; border-radius: 14px; overflow: hidden; pointer-events: none;
  opacity: 0; transform: translate3d(var(--px, -999px), var(--py, -999px), 0) scale(.92) rotate(var(--pr, 0deg)); transform-origin: 50% 50%;
  transition: opacity .2s, scale .25s; background: var(--frame); will-change: transform;
  box-shadow: 0 0 0 1px var(--ring), 0 30px 80px -20px rgba(0,0,0,.75), 0 0 80px -10px var(--ptint, transparent);
}
.peek.on { opacity: 1; transform: translate3d(var(--px, 0), var(--py, 0), 0) scale(1) rotate(var(--pr, 0deg)); }
.peek img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }

/* ── 14 · materials ─────────────────────────────────────────── */

.materials { padding: clamp(40px, 6vh, 80px) 0 clamp(110px, 16vh, 180px); }
.materials .lede { margin-top: 16px; }
.mat { margin-top: clamp(32px, 5vh, 48px); display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 clamp(24px, 5vw, 64px); }
.mrow { display: grid; grid-template-columns: 9.5rem minmax(0,1fr) 2rem; gap: 14px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line2); }
.mrow__t { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow__b { height: 6px; border-radius: 9px; background: var(--card); overflow: hidden; }
.mrow__b i { display: block; height: 100%; border-radius: inherit; background: var(--fg); opacity: .7; transform-origin: left; }
.mrow__n { font-size: 13px; color: var(--mute); text-align: right; font-variant-numeric: tabular-nums; }
.matgroups { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px clamp(24px, 4vw, 48px); margin-top: clamp(40px, 6vh, 64px); }
.matgroup h4 { font-size: 13px; font-weight: 600; color: var(--fg); }
.matgroup p { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--mute); }
@media (max-width: 820px) { .mat { grid-template-columns: 1fr; } .matgroups { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .matgroups { grid-template-columns: 1fr; } .mrow { grid-template-columns: 8rem minmax(0,1fr) 1.6rem; } }

/* ── 15 · one more thing ────────────────────────────────────── */

.omt { padding: clamp(130px, 22vh, 240px) 0 clamp(100px, 15vh, 170px); text-align: center; background: #000; color: #f5f5f7; overflow: hidden; border-top: 1px solid var(--line2);
  --fg: #f5f5f7; --fg2: #d2d2d7; --mute: #86868b; --card: #141416; --line: rgba(255,255,255,.13); --line2: rgba(255,255,255,.075); --tint: var(--td); }
.omt .whisper { font-size: clamp(20px, 2vw, 26px); font-weight: 500; color: var(--mute); letter-spacing: -.015em; }
.omt h2 { margin-top: clamp(40px, 8vh, 96px); background: linear-gradient(180deg, #fff 30%, var(--td) 140%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .05em; }
.omt__badge { margin-top: 22px; }
.omt__claim { margin-top: 18px; font-size: clamp(24px, 3vw, 40px); line-height: 1.1; letter-spacing: -.03em; font-weight: 600; color: var(--td); }
.omt .lede { margin: 18px auto 0; max-width: 44ch; }
.omt .stats { max-width: 880px; margin-inline: auto; text-align: left; }
.omt__shot { display: grid; place-items: center; margin-top: clamp(48px, 7vh, 80px); }
.bot { position: relative; width: min(760px, 96vw); margin: clamp(40px, 6vh, 72px) auto 0; isolation: isolate; }
.bot img { width: 100%; height: auto; }
.bot::after { content: ''; position: absolute; left: 6%; right: 6%; bottom: -8%; height: 46%; background: radial-gradient(closest-side, color-mix(in srgb, var(--td, #ff7a3d) 30%, transparent), transparent); z-index: -1; }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ── 16 · contact ───────────────────────────────────────────── */

.contact { padding: clamp(120px, 20vh, 220px) 0; text-align: center; background: var(--bg2); }
.contact .lede { margin: 22px auto 0; max-width: 40ch; }
.mail { display: inline-block; margin-top: clamp(32px, 5vh, 52px); font-size: clamp(22px, 3.4vw, 44px); letter-spacing: -.035em; font-weight: 600; border-bottom: 1px solid var(--dim); padding-bottom: 6px; transition: border-color .3s; overflow-wrap: anywhere; }
.mail:hover { border-color: var(--fg); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 28px; }
.cform { max-width: 760px; margin: clamp(48px, 8vh, 80px) auto 0; text-align: left; display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  background: var(--card); border-radius: 28px; padding: clamp(22px, 3.5vw, 40px); }
.cform__f { display: grid; gap: 7px; }
.cform__f--wide { grid-column: 1 / -1; }
.cform label { font-size: 13px; font-weight: 600; color: var(--fg2); }
.cform label i { font-style: normal; font-weight: 500; color: var(--mute); }
.cform input, .cform textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px;
  transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--fg2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--fg) 10%, transparent); }
.cform__go { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 6px; }
.cform__go button {
  display: inline-flex; align-items: center; gap: .5em; height: 48px; padding: 0 26px; border-radius: 999px; background: var(--fg); color: var(--bg); font-weight: 600; font-size: 17px;
  transform: translate(var(--mx, 0), var(--my, 0)); transition: transform .5s var(--spring), box-shadow .3s;
}
.cform__go button:hover { box-shadow: 0 0 0 5px color-mix(in srgb, var(--fg) 14%, transparent); }
.cform__go button svg { width: 17px; height: 17px; }
.cform__go p { font-size: 13px; color: var(--mute); flex: 1 1 16rem; }
.cform__go a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 560px) { .cform { grid-template-columns: 1fr; } }

/* ── 17 · space band + footer ───────────────────────────────── */

.spaceband { position: relative; overflow: hidden; background: #03030a; color: #e8e8f2; border-top: 1px solid rgba(255,255,255,.07);
  background-image: radial-gradient(1px 1px at 12% 30%, #fff8, transparent), radial-gradient(1px 1px at 34% 70%, #fff6, transparent),
    radial-gradient(1.4px 1.4px at 58% 22%, #fffa, transparent), radial-gradient(1px 1px at 81% 64%, #fff7, transparent),
    radial-gradient(1px 1px at 92% 18%, #fff5, transparent), radial-gradient(1px 1px at 4% 82%, #fff5, transparent),
    radial-gradient(600px 160px at 70% 120%, rgba(108,123,255,.18), transparent); }
.spaceband__in { display: flex; align-items: center; gap: 20px; padding-top: 26px; padding-bottom: 26px; }
.spaceband p { font-size: 15px; color: #a1a1b0; flex: 1; }
.spaceband p b { color: #fff; font-weight: 600; }
.spaceband .chev { color: #b8beff; white-space: nowrap; }
.spaceband__orb { position: relative; width: 40px; height: 40px; flex: none; }
.spaceband__orb i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(167,176,255,.35); }
.spaceband__orb i:nth-child(1) { inset: 15px; background: radial-gradient(circle at 35% 35%, #fff, #ffcf7a 40%, #ff8a3d); border: 0; box-shadow: 0 0 14px #ffb15f; }
.spaceband__orb i:nth-child(2) { inset: 6px; }
.spaceband__orb i:nth-child(3)::after { content: ''; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #9fb0ff; box-shadow: 0 0 8px #9fb0ff; }
@media (prefers-reduced-motion: no-preference) { .spaceband__orb i:nth-child(3) { animation: spin 9s linear infinite; } }
@media (max-width: 560px) { .spaceband__in { flex-wrap: wrap; } .spaceband p { flex-basis: calc(100% - 60px); } .spaceband .chev { margin-left: 60px; } }

.foot { background: var(--bg2); border-top: 1px solid var(--line2); padding: 34px 0 48px; font-size: 12px; line-height: 1.55; color: var(--mute); }
.fns { margin: 0 0 26px; padding: 0 0 22px 18px; display: grid; gap: 8px; max-width: 980px; border-bottom: 1px solid var(--line2); }
.fns li { padding-left: 4px; }
.fns li:target { color: var(--fg); }
.foot__top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.foot__id { font-size: 15px; font-weight: 600; color: var(--fg); margin-right: auto; letter-spacing: -.02em; }
.foot__l { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot__l a, .foot__btn { font-size: 12.5px; color: var(--fg2); transition: color .2s; }
.foot__l a:hover, .foot__btn:hover { color: var(--fg); }
.foot__fine { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line2); display: flex; flex-wrap: wrap; gap: 6px 24px; }
.foot__fine span:last-child { max-width: 72ch; }

/* ── 18 · system diagram ────────────────────────────────────── */

.sys { margin: 0; }
.sys__c { padding: clamp(24px, 4vw, 48px); border-radius: 28px; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line2); overflow-x: auto; scrollbar-width: thin; }
.inv .sys__c { background: var(--card2); }
.sys__svg { width: 100%; height: auto; margin: 0 auto; overflow: visible; }
.sys__svg text { font-family: var(--font); }
.sys__n { fill: var(--sys-node); stroke: var(--line); stroke-width: 1; }
.sys__n--in { stroke: var(--tint, var(--fg2)); stroke-width: 1.4; }
.sys__n--out { stroke: var(--fg2); stroke-width: 1.2; }
.sys__l { fill: var(--fg); font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.sys__l--mini { font-size: 18px; }
.sys__s { fill: var(--mute); font-size: 10.5px; font-weight: 500; }
.sys__w { fill: none; stroke: var(--sys-wire); stroke-width: 1; }
.sys__p { fill: none; stroke: var(--tint, var(--fg)); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 0 100; opacity: 0; }
.sys__port { fill: var(--bg2); stroke: var(--fg2); stroke-width: 1.2; }
.frame--plan .sys__n, .card__frame--plan .sys__n, .rrow__media .sys__n { stroke-width: 1.6; }
@media (prefers-reduced-motion: no-preference) {
  .sys__p { animation: pulse 3.2s var(--ease) infinite; animation-delay: calc(var(--i) * .55s); }
}
@keyframes pulse { 0% { stroke-dasharray: 0 100; stroke-dashoffset: 0; opacity: 0; } 8% { opacity: .9; }
  60% { stroke-dasharray: 14 100; stroke-dashoffset: -86; opacity: .9; } 70%, 100% { stroke-dasharray: 0 100; stroke-dashoffset: -100; opacity: 0; } }
.sys__steps { display: none; list-style: none; }
.sys figcaption { margin-top: 14px; font-size: 14px; color: var(--mute); max-width: 70ch; }
.sys__steps li { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding-bottom: 18px; }
.sys__steps li:not(:last-child)::before { content: ''; position: absolute; left: 16px; top: 30px; bottom: 4px; width: 1px; background: linear-gradient(var(--tint, var(--fg2)), var(--line)); }
.sys__k { width: 33px; height: 26px; display: grid; place-items: center; border-radius: 99px; background: var(--card); font-size: 12px; font-weight: 600; color: var(--tint, var(--fg)); font-variant-numeric: tabular-nums; }
.sys__steps li > div { display: grid; gap: 8px; }
.sys__steps p { background: var(--card); border-radius: 14px; padding: 11px 14px; box-shadow: inset 0 0 0 1px var(--line2); }
.sys__steps b { display: block; font-size: 15px; font-weight: 600; }
.sys__steps span { display: block; margin-top: 2px; font-size: 13px; color: var(--mute); }
@media (max-width: 720px) { .sys__c { display: none; } .sys__steps { display: grid; gap: 0; } }
.xp__vis--sys .sys__c { display: none; }
.xp__vis--sys .sys__steps { display: grid; gap: 0; }

/* ── 19 · detail: Apple feature page ────────────────────────── */

.lnav { position: sticky; top: var(--nav); z-index: 50; height: 52px; background: var(--nav-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line2); margin-top: var(--nav); }
.lnav__in { height: 100%; display: flex; align-items: center; gap: 24px; max-width: calc(var(--maxw) + var(--g)*2); margin: 0 auto; padding: 0 var(--g); }
.lnav__t { font-size: 19px; font-weight: 600; letter-spacing: -.025em; white-space: nowrap; margin-right: auto; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.lnav__l { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; flex: 0 1 auto; }
.lnav__l::-webkit-scrollbar { display: none; }
.lnav__l a { font-size: 12.5px; color: var(--fg2); white-space: nowrap; transition: color .2s; }
.lnav__l a:hover, .lnav__l a[aria-current] { color: var(--fg); }
.lnav__l a[aria-current] { box-shadow: 0 1px 0 var(--fg); }
@media (max-width: 720px) { .lnav__t { font-size: 15px; } .lnav__l { max-width: 58vw; gap: 16px; padding-right: 16px; mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); } }

.ph { padding: clamp(56px, 10vh, 110px) 0 0; text-align: center; overflow: hidden; }
.ph--doc, .ph--thanks { padding-top: calc(var(--nav) + clamp(64px, 12vh, 130px)); padding-bottom: clamp(56px, 9vh, 100px); }
.ph--thanks { min-height: 80svh; display: grid; align-items: center; }
.crumb { display: flex; justify-content: center; gap: .5em; font-size: 13px; font-weight: 500; color: var(--mute); margin-bottom: 26px; }
.crumb a:hover { color: var(--fg); }
.ph__badge { margin-bottom: 22px; }
.ph__name {
  font-size: clamp(52px, 10vw, 148px); line-height: .92; letter-spacing: -.05em; font-weight: 700; text-wrap: balance;
  background: linear-gradient(180deg, var(--name-a) 35%, var(--name-b)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em;
}
.ph__name--long { font-size: clamp(44px, 7.4vw, 108px); }
.ph__org { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 17px; font-weight: 500; color: var(--fg2); }
.ph__org .logo { width: 28px; height: 28px; border-radius: 7px; }
.ph__claim { margin-top: 14px; font-size: clamp(24px, 3.2vw, 44px); line-height: 1.1; letter-spacing: -.03em; font-weight: 600; color: var(--tint); text-wrap: balance; }
.ph .lede { margin: 22px auto 0; max-width: 44ch; }
.ph__ctas { display: flex; gap: 22px; justify-content: center; align-items: center; margin-top: 32px; flex-wrap: wrap; }
.ph__shot { display: grid; place-items: center; padding: clamp(56px, 9vh, 100px) var(--g) clamp(80px, 12vh, 140px); }
.shotbox--hero { width: min(92vw, 1180px, calc(70svh * var(--ar))); }
.shotbox--plan { width: min(92vw, 900px); }
.dochero--bot { margin: 0; width: min(820px, 94vw); position: relative; isolation: isolate; }
.dochero--bot img { width: 100%; height: auto; }
.dochero--bot::after { content: ''; position: absolute; left: 8%; right: 8%; bottom: -8%; height: 40%; background: radial-gradient(closest-side, color-mix(in srgb, var(--tint) 28%, transparent), transparent); z-index: -1; }
.tick { display: block; width: 64px; height: 64px; margin: 0 auto 28px; }
.tick svg { width: 100%; height: 100%; fill: none; stroke: #34c759; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tick circle { stroke-dasharray: 151; stroke-dashoffset: 0; opacity: .5; }
.tick path { stroke-dasharray: 40; }
@media (prefers-reduced-motion: no-preference) {
  .tick circle { animation: draw 1s var(--ease) both; } .tick path { animation: draw2 .6s .5s var(--ease) both; }
}
@keyframes draw { from { stroke-dashoffset: 151; } } @keyframes draw2 { from { stroke-dashoffset: 40; } }

.blk { padding: clamp(80px, 12vh, 140px) 0; border-top: 1px solid var(--line2); }
.blk--hl { border-top: 0; padding-top: 0; }
.blk--hl .stats { margin-top: 20px; }
.blk--doc { padding: clamp(48px, 7vh, 80px) 0; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(24px, 6vw, 96px); align-items: start; }
.blk--sys { background: var(--bg); }
.blk--sys .h-l { margin: 10px 0 clamp(36px, 5vh, 56px); }
.blk--honest { background: var(--bg2); }
.honest { margin-top: 22px; font-size: clamp(24px, 2.9vw, 40px); line-height: 1.25; letter-spacing: -.025em; font-weight: 500; max-width: 32ch; }
.res { list-style: none; display: grid; gap: 22px; }
.res li { position: relative; padding-left: 32px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--fg2); }
.res li::before { content: ''; position: absolute; left: 1px; top: .42em; width: 12px; height: 7px; border: solid var(--tint); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.dec { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: clamp(36px, 5vh, 56px); }
.dec__c { background: var(--card); border-radius: 24px; padding: 28px 28px 32px; }
.dec__tag { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.dec__c h3 { font-size: 21px; line-height: 1.25; letter-spacing: -.02em; margin-top: 12px; }
.dec__c p:last-child { margin-top: 12px; font-size: 15px; line-height: 1.55; color: var(--fg2); }
.dec__c--pick { box-shadow: inset 0 0 0 1.5px var(--tint); }
.dec__c--pick .dec__tag { color: var(--tint); }
.gal { padding: clamp(80px, 12vh, 140px) 0; border-top: 1px solid var(--line2); }
.gal__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 36px var(--g) 8px; scroll-padding: 0 var(--g); scrollbar-width: thin; scrollbar-color: var(--dim) transparent; }
@media (min-width: 1240px) { .gal__track { padding-left: calc((100vw - var(--maxw)) / 2); scroll-padding-left: calc((100vw - var(--maxw)) / 2); } }
.gal__i { margin: 0; flex: 0 0 auto; width: min(84vw, 760px); scroll-snap-align: start; }
.gal__img { aspect-ratio: 4/3; border-radius: 18px; overflow: hidden; background: var(--frame); box-shadow: 0 0 0 1px var(--ring); }
.gal__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.gal__i figcaption { margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--mute); max-width: 60ch; }
.specs { padding: clamp(80px, 12vh, 140px) 0; }
.facts { margin: clamp(36px, 5vh, 56px) 0 0; border-top: 1px solid var(--line); }
.fact { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.fact dt { font-weight: 600; font-size: 17px; }
.fact dd { margin: 0; font-size: 17px; line-height: 1.5; color: var(--mute); }
.fact .chev { color: var(--fg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: 14px; padding: 5px 12px; border-radius: 99px; background: var(--card); color: var(--fg); box-shadow: 0 0 0 1px var(--line2); }
.pager { border-top: 1px solid var(--line2); }
.pager__in { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-top: clamp(56px, 9vh, 100px); padding-bottom: clamp(56px, 9vh, 100px); }
.pager__a { position: relative; display: grid; grid-template-columns: 1fr; align-content: start; padding: 26px 28px 0; border-radius: 26px; background: var(--card); overflow: hidden; min-height: 300px; transition: background .3s; }
.pager__a:hover { background: var(--card2); }
.pager__a--n { text-align: right; }
.pager__a strong { margin-top: 6px; font-size: clamp(24px, 2.8vw, 36px); line-height: 1.06; letter-spacing: -.03em; font-weight: 600; }
.pager__org { margin-top: 6px; font-size: 14px; color: var(--mute); }
.pager__img { display: block; margin-top: 24px; width: 100%; aspect-ratio: 16/7; border-radius: 12px 12px 0 0; overflow: hidden; box-shadow: 0 0 0 1px var(--ring); transition: transform .6s var(--spring); transform-origin: 50% 100%; }
.pager__img img { width: 100%; height: auto; object-fit: cover; object-position: 50% 0; }
.pager__img--bot { box-shadow: none; aspect-ratio: auto; }
.pager__a:hover .pager__img { transform: translateY(-5px); }
@media (max-width: 820px) {
  .two, .dec { grid-template-columns: 1fr; }
  .fact { grid-template-columns: 1fr; gap: 6px; }
  .pager__in { grid-template-columns: 1fr; }
  .pager__a { min-height: 0; }
  .pager__a--n { text-align: left; }
}

/* ── 20 · résumé ────────────────────────────────────────────── */

.rzwrap { padding-bottom: clamp(80px, 12vh, 140px); }
.rz { display: grid; grid-template-columns: 200px minmax(0,1fr); gap: clamp(20px, 5vw, 64px); padding: clamp(40px, 6vh, 64px) 0; border-top: 1px solid var(--line); }
.rz__h { font-size: 21px; letter-spacing: -.02em; font-weight: 600; }
.rz__b { display: grid; gap: 34px; min-width: 0; }
.rz__t { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 18px; }
.rz__t h3 { font-size: 19px; letter-spacing: -.02em; }
.rz__t h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rz__d { font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rz__o { margin-top: 3px; font-size: 14px; color: var(--mute); }
.rz__i ul { margin-top: 12px; padding-left: 18px; display: grid; gap: 7px; }
.rz__i li { font-size: 15px; line-height: 1.55; color: var(--fg2); }
.rz__i--sk h3 { font-size: 15px; }
.rz .cform { margin: 0; max-width: none; }
@media (max-width: 720px) { .rz { grid-template-columns: 1fr; } }

/* ── 21 · palette, toast, consent ───────────────────────────── */

.cmdk[hidden] { display: none; }
.cmdk { position: fixed; inset: 0; z-index: 200; display: grid; place-items: start center; padding: clamp(3rem,12vh,8rem) 1rem 1rem;
  background: rgba(0,0,0,.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: fade .18s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.cmdk__box { width: 100%; max-width: 560px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 40px 100px -20px rgba(0,0,0,.6); overflow: hidden; animation: drop .26s var(--spring); }
@keyframes drop { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
.cmdk__f { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.15rem; border-bottom: 1px solid var(--line2); }
.cmdk__f svg { width: 17px; height: 17px; color: var(--mute); flex: none; }
.cmdk__f input { flex: 1; background: none; border: 0; outline: none; color: var(--fg); font: 500 17px/1.2 var(--font); }
.cmdk__f input::placeholder { color: var(--mute); }
.cmdk__l { max-height: min(52vh, 24rem); overflow-y: auto; padding: .4rem; list-style: none; }
.cmdk__g { padding: .7rem .75rem .3rem; font-size: 12px; font-weight: 600; color: var(--mute); }
.cmdk__o { display: flex; align-items: center; gap: .7rem; padding: .6rem .75rem; border-radius: 10px; cursor: pointer; color: var(--fg2); font-size: 15px; }
.cmdk__o svg { width: 15px; height: 15px; flex: none; opacity: .6; }
.cmdk__o .h { margin-left: auto; font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.cmdk__o[aria-selected="true"] { background: var(--card2); color: var(--fg); }
.cmdk__e { padding: 1.4rem .75rem; color: var(--mute); text-align: center; font-size: 14px; }
.cmdk__ft { display: flex; gap: 1.2rem; padding: .65rem 1.15rem; border-top: 1px solid var(--line2); font-size: 12px; color: var(--mute); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 210; translate: -50% 20px; opacity: 0; pointer-events: none;
  padding: 10px 18px; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: 14px; font-weight: 600; transition: opacity .25s, translate .35s var(--spring); }
.toast[data-show] { opacity: 1; translate: -50% 0; }
.foot__btn { font: inherit; }
.consent { position: fixed; z-index: 90; left: 1rem; right: 1rem; bottom: 1rem; margin-inline: auto; max-width: 40rem;
  display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; background: var(--card); color: var(--fg2); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); font-size: 14px; }
.consent p { margin: 0; flex: 1 1 18rem; }
.consent a { color: var(--fg); text-decoration: underline; text-underline-offset: 2px; }
.consent__b { display: flex; gap: .5rem; }
.consent button { font: inherit; font-weight: 600; padding: .55rem 1.1rem; border-radius: 999px; cursor: pointer; background: transparent; color: var(--fg); border: 1px solid var(--line); }
.consent button.is-primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.consent button:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }

/* ── 22 · view transitions ──────────────────────────────────── */

/* the card's image morphs into the detail page's hero and back; site.js names
   exactly one element per document, just before the navigation */
::view-transition-group(heromedia) { animation-duration: .62s; animation-timing-function: cubic-bezier(.22, 1, .30, 1); }
::view-transition-old(heromedia), ::view-transition-new(heromedia) {
  height: 100%; width: 100%; object-fit: cover; animation-duration: .62s; animation-timing-function: cubic-bezier(.22, 1, .30, 1);
}
::view-transition-old(root) { animation: vt-out .3s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .42s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
::view-transition-group(rail) { animation: none; }
::view-transition-old(rail) { display: none; }
::view-transition-new(rail) { animation: none; }

/* ── 23 · scroll-driven motion: native ──────────────────────── */

@keyframes rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pop { from { transform: scale(0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sweep { from { transform: translateX(0); opacity: 0; } 6% { opacity: .9; } 94% { opacity: .9; } to { transform: translateX(100%); opacity: 0; } }
@keyframes copyLift { from { transform: translateY(24svh) scale(1.06); } to { transform: none; } }
@keyframes shotRise { from { transform: translateY(46svh) scale(.74); filter: brightness(.5); } to { transform: none; filter: none; } }
@keyframes glowIn { from { opacity: 0; } }
@keyframes sideRise { 0% { transform: translateY(42svh); } 50% { transform: translateY(0); } 100% { transform: translateY(-7svh); } }
@keyframes heroOut { to { transform: scale(1.1) translateY(4%); opacity: .2; } }
@keyframes heroCopy { to { transform: translateY(-14svh); opacity: 0; } }
@keyframes wordOn { from { color: color-mix(in srgb, var(--fg) 22%, transparent); } to { color: var(--fg); } }
@keyframes phGrow { from { transform: scale(.9); } to { transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    [data-rise] { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
    .statement .w { animation: wordOn linear both; animation-timeline: --stmt; animation-range: cover var(--a) cover var(--b); }
    .tl__bar { animation: grow linear both; animation-timeline: --tl; animation-range: cover var(--from, 5%) cover var(--to, 55%); }
    .tl__dot { animation: pop linear both; animation-timeline: --tl; animation-range: cover var(--from, 5%) cover calc(var(--from, 5%) + 3%); }
    .tl__head i { animation: sweep linear both; animation-timeline: --tl; animation-range: cover 5% cover 55%; }
    .mrow__b i { animation: grow linear both; animation-timeline: view(); animation-range: entry 20% cover 46%; }
    /* the pinned stage never changes visibility, so it reads its parent's named timeline */
    .stage__copy { animation: copyLift linear both; animation-timeline: --pin; animation-range: cover 20% cover 46%; }
    .stage .shotbox { animation: shotRise linear both; animation-timeline: --pin; animation-range: cover 14% cover 52%; }
    .stage .glow { animation: glowIn linear both; animation-timeline: --pin; animation-range: cover 30% cover 60%; }
    .stage .side { animation: sideRise linear both; animation-timeline: --pin; animation-range: cover 24% cover 84%; }
    .hero__portrait img { animation: heroOut linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .hero__copy { animation: heroCopy linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    .ph__shot .shotbox, .ph__shot .dochero--bot { animation: phGrow linear both; animation-timeline: view(); animation-range: entry 30% cover 45%; }
  }
}

/* ── 24 · scroll-driven motion: JS fallback (site.js sets --t, --h, data-in) ── */

@media (prefers-reduced-motion: no-preference) {
  .jsd [data-rise] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
  .jsd [data-rise][data-in] { opacity: 1; transform: none; }
  .jsd .tl__bar, .jsd .mrow__b i { transform: scaleX(0); }
  .jsd .tl__dot { transform: scale(0); }
  .jsd .tl__dot[data-in] { transform: none; transition: transform .6s var(--spring); transition-delay: var(--d, 0ms); }
  .jsd .tl__bar[data-in], .jsd .mrow__b i[data-in] { transform: scaleX(1); transition: transform .9s var(--ease); transition-delay: var(--d, 0ms); }
  .jsd .pin { --k1: clamp(0, (var(--t, 1) - .20) / .26, 1); --k2: clamp(0, (var(--t, 1) - .14) / .38, 1); --k3: clamp(0, (var(--t, 1) - .30) / .30, 1); --k4: clamp(0, (var(--t, 1) - .24) / .60, 1); }
  .jsd .stage__copy { transform: translateY(calc((1 - var(--k1)) * 24svh)) scale(calc(1 + (1 - var(--k1)) * .06)); }
  .jsd .stage .shotbox { transform: translateY(calc((1 - var(--k2)) * 46svh)) scale(calc(.74 + var(--k2) * .26)); filter: brightness(calc(.5 + var(--k2) * .5)); }
  .jsd .stage .glow { opacity: calc(var(--k3) * .55); }
  .jsd .stage .side { transform: translateY(calc(42svh - min(var(--k4) * 2, 1) * 42svh - max(var(--k4) * 2 - 1, 0) * 7svh)); }
  .jsd .hero__portrait img { transform: scale(calc(1 + var(--h, 0) * .1)) translateY(calc(var(--h, 0) * 4%)); opacity: calc(1 - var(--h, 0) * .8); }
  .jsd .hero__copy { transform: translateY(calc(var(--h, 0) * -14svh)); opacity: calc(1 - var(--h, 0) * 1.1); }
}

/* ── 25 · reduced motion: still, complete ───────────────────── */

@media (prefers-reduced-motion: reduce) {
  .pin { height: auto; }
  .stage { position: relative; height: auto; min-height: 0; padding-bottom: 0; }
  .stage__shot { flex: none; padding: 48px 0 64px; }
  .kenb, .float { animation: none !important; }
  .pr__b:hover { padding-left: 4px; }
  .xp--js .xp__p { transform: none !important; }
  .pill, .cform__go button { transform: none !important; }
}

/* ── 26 · print ─────────────────────────────────────────────── */

@media print {
  .rail, .lnav, .spaceband, .cmdk, .toast, .consent, .cform, .pager { display: none !important; }
  body { background: #fff; color: #000; }
  .ph--doc { padding-top: 0; }
}
