/* Home: pinned hero under a white cover, the launch fly-by, stacked products, the wipe chapter. */

/* ---------- hero ---------- */
.hero { position: relative; height: 200vh; height: 200svh; background: var(--ink-900); }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; background: #2a0606; }
.hero-poster img, .hero-film { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transform: scale(1.05); }
.hero-film { opacity: 0; transition: opacity .6s ease-out; }
.hero-film.on { opacity: 1; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(17,24,33,.92) 0%, rgba(17,24,33,.45) 35%, rgba(17,24,33,.35) 70%, rgba(17,24,33,.7) 100%); }
.hero-mid { position: absolute; left: var(--pad-m); right: var(--pad-m); top: 40%; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
/* the title: condensed caps that run as wide as the space beside the buttons allows and wrap only when they must,
   then one product line in the pixel face that changes every few seconds (home.js settles it out of pixel noise) */
.hero-head { flex: 1 1 auto; min-width: 0; max-width: 1240px; }
.hero-h { --ink: #fff; position: relative; margin: 0; font: 700 clamp(36px, 4.4vw, 78px)/.86 var(--f-head); font-stretch: 75%; text-transform: uppercase; letter-spacing: -.01em; color: var(--ink); text-wrap: initial; transition: color .35s ease-out; }
/* each title line rises out of a mask; on a change the lines leave upwards and the next title rises in */
.hero-h .hl { display: inline-block; vertical-align: top; overflow: hidden; padding: .1em 0 .06em; margin: -.1em 0 -.06em; }
.hero-h .hl-i { display: inline-block; transition: transform .8s var(--e-out) calc(var(--l, 0) * .09s); }
.hero-h.pre .hl-i { transform: translateY(115%); transition: none; }
.hero-h.out .hl-i { transform: translateY(-115%); transition: transform .42s cubic-bezier(.7,0,.84,0) calc(var(--l, 0) * .05s); }
/* the h1 and the product titles share one grid cell; only one shows at a time */
.hero-stack { display: grid; }
.hero-stack > .hero-h { grid-area: 1 / 1; }
.hero-alt { visibility: hidden; }
.hero-alt.on { visibility: visible; }
h1.hero-h.off { opacity: 0; }
.hero-rot { --ink: var(--accent); display: flex; align-items: center; gap: .7em; min-height: 1.3em; margin: clamp(16px, 1.8vw, 26px) 0 0; font: 400 clamp(13px, 1.3vw, 21px)/1.3 var(--f-pixel); text-transform: uppercase; color: var(--ink); }
.rot-k { color: #fff; }
.rot-t { position: relative; white-space: nowrap; color: var(--ink); transition: color .3s ease-out; }
.px-fx { position: absolute; left: 0; top: 0; pointer-events: none; image-rendering: pixelated; transition: opacity .35s ease-out; }
.px-fx.out { opacity: 0; }
.rot-t.fx-on { color: transparent; transition: none; }
.mega { position: absolute; left: var(--pad-m); right: var(--pad-m); bottom: clamp(18px, 3vh, 36px); margin: 0; font-size: 100px; font-weight: 400; line-height: 1.08; letter-spacing: -.01em; }
.mega-line { display: flex; align-items: flex-end; justify-content: space-between; gap: .05em; white-space: nowrap; }
.mega .w { display: block; flex: none; line-height: .78; }
.mega .caps { font: 700 1em/.78 var(--f-head); font-stretch: 75%; text-transform: uppercase; letter-spacing: -.01em; transform: translateY(.02em); }
.mega .px { height: calc(var(--ph) * .0415em); width: auto; color: #fff; overflow: visible; }
html.js .mega .w { opacity: 0; transform: translateY(40px); }
html.js .mega .caps { transform: translateY(calc(40px + .02em)); }
html.ready .mega .w { opacity: 1; transform: none; transition: transform .65s var(--e-hero), opacity .1s linear; }
html.ready .mega .caps { transform: translateY(.02em); }
html.ready .mega .w2 { transition-delay: .1s; } html.ready .mega .w3 { transition-delay: .2s; } html.ready .mega .w4 { transition-delay: .3s; }
html.js .hero-mid > * { opacity: 0; transform: translateY(20px); }
html.ready .hero-mid > * { opacity: 1; transform: none; transition: opacity .5s ease-out .35s, transform .5s ease-out .35s; }
/* phones: the film fills the screen and everything else gathers at the foot, as on desktop:
   the title and its product line, two small buttons, then the giant line on two lines */
@media (max-width: 767px) {
  .hero-stage { display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--pad-m) max(40px, 7svh); }
  .hero-media::after { background: linear-gradient(to top, rgba(17,24,33,.95) 0%, rgba(17,24,33,.86) 34%, rgba(17,24,33,.64) 56%, rgba(17,24,33,.2) 76%, rgba(17,24,33,.6) 100%); }
  .hero-mid { position: relative; inset: auto; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 26px; }
  .hero-head { max-width: none; }
  .hero-h { font-size: clamp(30px, 9.4vw, 44px); line-height: .88; }
  .hero-rot { margin-top: 12px; font-size: 13px; }
  .mega { position: relative; inset: auto; font-size: calc((100vw - 2 * var(--pad-m)) * .1746); }
  .mega-line { flex-wrap: wrap; justify-content: flex-start; column-gap: .1em; row-gap: .1em; }
  .mega .w1 { order: 1; } .mega .w2 { order: 2; } .mega .w3 { order: 4; } .mega .w4 { order: 5; }
  .mega-line::after { content: ""; order: 3; flex: 0 0 100%; height: 0; }
  /* two small buttons side by side, the second a quiet outline, so the film stays the picture */
  .hero-mid .btn-pair { flex-wrap: nowrap; gap: 6px; }
  .hero-mid .btn-pair .btn { flex: none; min-width: 0; min-height: 40px; padding: 8px 14px; font-size: 13px; }
  .hero-mid .btn-pair .btn + .btn { background: rgba(17,24,33,.35); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); }
  .hero-mid .btn-pair .btn-sec.cta-fx { --tx: #fff; }
  .hero-mid .btn-pair .btn-sec.cta-fx:hover { --tx: var(--ink-900); }
  .hero-mid .btn-pair .btn + .btn:hover { background: #fff; color: var(--ink-900); }
}
@media (max-width: 359px) { .hero-mid .btn-pair .btn { padding: 8px 10px; font-size: 12px; } }

/* ---------- light chapter that covers the hero ---------- */
.who { position: relative; z-index: 2; margin-top: -100vh; margin-top: -100svh; min-height: 100vh; min-height: 100svh; overflow: hidden; padding: var(--pad-xl) var(--pad-m); display: flex; align-items: center; }
.who-heat { position: absolute; top: 0; right: 0; width: min(62%, 900px); height: 82%; -webkit-mask-image: radial-gradient(90% 90% at 100% 0%, #000 45%, transparent 100%); mask-image: radial-gradient(90% 90% at 100% 0%, #000 45%, transparent 100%); }
.who-heat .heat canvas { filter: blur(22px); }
.who-in { position: relative; width: 100%; display: grid; gap: 40px; }
.who .stmt { max-width: 19ch; }
.who-side { max-width: 380px; color: var(--sub); margin: 0; }
.who { padding-bottom: calc(var(--pad-xl) + 60px); }
.who-aside { display: grid; gap: clamp(28px, 3.6vw, 56px); justify-items: start; }

/* the Arkstone mark, built from its own pixels: they drop into place from the bottom row up, then a few
   flicker now and then and the yellow crown glows */
.who-mark { width: clamp(120px, 12vw, 210px); height: auto; overflow: visible; }
.who-mark .sh rect { fill: rgba(17,24,33,.14); }
.who-mark .o { fill: var(--accent); }
.who-mark .y { fill: var(--heat-yellow); }
@media (prefers-reduced-motion: no-preference) {
  html.js .who-mark .px rect { opacity: 0; transform: translate(var(--dx), var(--dy)); }
  html.js .who-mark .sh { opacity: 0; }
  html.js .who-mark.in .px rect { opacity: 1; transform: none; transition: transform .9s var(--e-out) var(--d), opacity .2s linear var(--d); animation: px-flick 9s linear calc(1.4s + var(--b)) infinite; }
  html.js .who-mark.in .px .y { animation: px-flick 9s linear calc(1.4s + var(--b)) infinite, crown 2.6s ease-in-out 1.6s infinite; }
  html.js .who-mark.in .sh { opacity: 1; transition: opacity .6s ease-out 1s; }
}
@keyframes px-flick { 0%, 100% { opacity: 1; } 1% { opacity: .15; } 2.5% { opacity: 1; } }
@keyframes crown { 0%, 100% { fill: var(--heat-yellow); } 50% { fill: #ffa51f; } }

/* a ticker of platform figures along the foot of the light chapter */
.kpi-band { position: absolute; left: 0; right: 0; bottom: 0; display: flex; overflow: hidden; border-top: 1px solid rgba(17,24,33,.1); background: rgba(255,255,255,.75); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.kpi-track { flex: none; display: flex; margin: 0; padding: 0; list-style: none; animation: kpi 30s linear infinite; }
.kpi-track li { display: flex; align-items: center; gap: .8em; padding: 21px 0; white-space: nowrap; font: 400 clamp(12px, .95vw, 15px)/1 var(--f-pixel); text-transform: uppercase; color: rgba(17,24,33,.62); }
.kpi-track li b { font-weight: 400; color: var(--ink-900); }
.kpi-track li::after { content: ""; flex: none; width: 6px; height: 6px; margin: 0 clamp(26px, 3vw, 56px); background: var(--accent); }
.kpi-band:hover .kpi-track { animation-play-state: paused; }
@keyframes kpi { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .kpi-band { justify-content: center; }
  .kpi-track { animation: none; flex-wrap: wrap; justify-content: center; }
  .kpi-track[aria-hidden] { display: none; }
}
@media (min-width: 1000px) { .who-in { grid-template-columns: 1.6fr 1fr; align-items: end; } .who-side { margin-bottom: .4em; } }
@media (max-width: 767px) {
  .who-heat { width: 100%; height: 55%; opacity: .9; } .who { align-items: flex-start; padding-top: 36vh; padding-top: 36svh; }
  /* on phones the mark sits up in the warm field, above the words */
  .who-mark { position: absolute; right: 0; top: calc(var(--hdr) + 24px - 36svh); width: 92px; }
  .kpi-track li { padding: 17px 0; }
}

/* ---------- launch fly-through ---------- */
/* A pinned stage: the camera flies toward the giant word while photos and the five launch steps come at the viewer.
   home.js places each .fc from its data-t (the scroll point where it reaches full size) and data-o (its offset from the vanishing point). */
.fly { position: relative; z-index: 2; height: 440vh; }
.fly-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; }
.fly-word { position: absolute; left: var(--pad-m); right: var(--pad-m); bottom: 7vh; color: var(--paper-200); transform: translate3d(0, calc((1 - var(--enter, 1)) * 12vh), 0) scale(var(--zoom, 1)); transform-origin: 62% 40%; }
.fly-word .echo { display: block; }
.fly-word .echo:not(.main) { position: absolute; inset: auto 0 0 0; opacity: calc(.6 - var(--enter, 1) * .6); }
.fly-word .echo:nth-child(1) { transform: translateY(calc(-65px * 4 * (1 - var(--enter, 1)))); }
.fly-word .echo:nth-child(2) { transform: translateY(calc(-65px * 3 * (1 - var(--enter, 1)))); }
.fly-word .echo:nth-child(3) { transform: translateY(calc(-65px * 2 * (1 - var(--enter, 1)))); }
.fly-word .echo:nth-child(4) { transform: translateY(calc(-65px * 1 * (1 - var(--enter, 1)))); }
.fly-word .px { width: 100%; height: auto; }
.fly-head { position: absolute; z-index: 30; top: calc(var(--hdr) + 32px); left: var(--pad-m); max-width: max(34vw, 440px); }
.fly-head .stmt { font-size: clamp(30px, 3.2vw, 84px); }
.fly-head p { color: var(--sub); max-width: 30em; margin-top: 18px; font-size: clamp(15px, 1vw, 22px); }

/* the five steps, lit in turn as their card reaches the viewer */
.fly-steps { list-style: none; margin: clamp(16px, 3.5vh, 44px) 0 0; padding: 0; max-width: 26em; font-size: clamp(15px, 1vw, 22px); }
.fly-steps li { display: flex; align-items: center; gap: 16px; padding: .6em 0; color: var(--sub); background: repeating-linear-gradient(to right, var(--dash) 0 1px, transparent 1px 4px) bottom / 100% 1px no-repeat; transition: color .3s var(--e-ui); }
.fly-steps b { flex: none; min-width: 2.4em; font: 400 .68em/1 var(--f-pixel); color: inherit; transition: color .3s var(--e-ui); }
.fly-steps li::after { content: ""; flex: none; width: 8px; height: 8px; margin-left: auto; background: var(--ghost); transition: background-color .3s var(--e-ui); }
.fly-steps li.on, .fly-steps li.done { color: var(--on); }
.fly-steps li.on b { color: #b84d00; }
.fly-steps li.on::after { background: var(--accent); }
.fly-steps li.done::after { background: var(--on); }

/* cards: placed at the top left, then moved by transform only */
.fly-cards { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.fc { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; gap: .8em; padding: 1.3em; width: clamp(300px, min(23vw, 46vh), 560px); border-radius: var(--r); background: var(--ink-900); color: #fff; font-size: clamp(14px, min(1.2vw, 2.3vh), 24px); line-height: 1.3; opacity: 0; visibility: hidden; will-change: transform, opacity; }
.fc.in { visibility: visible; }
.fly:not(.run) .fc-field i, .fly:not(.run) .live::before { animation-play-state: paused; }
.fc-k { display: flex; align-items: center; gap: .9em; font: 400 .72em/1 var(--f-pixel); text-transform: uppercase; color: rgba(255,255,255,.6); }
.fc-k em { font-style: normal; padding: .35em .5em; border-radius: 2px; background: var(--accent); color: var(--on-accent); }
.fc b { font-weight: 500; font-size: 1.2em; }
.fc-s { color: rgba(255,255,255,.6); }
.fc-ok { display: flex; align-items: center; gap: .5em; color: #ffcd3d; }
.fc-ok::before { content: ""; width: .6em; height: .6em; background: currentColor; }
.fc-field { display: flex; align-items: center; justify-content: space-between; padding: .7em .8em; border: 1px solid rgba(255,255,255,.22); border-radius: 2px; font-size: 1.2em; }
.fc-field i { width: 2px; height: 1.1em; background: var(--accent); animation: blink 1s steps(2) infinite; }
.fc-logo { display: flex; align-items: center; gap: .7em; color: rgba(255,255,255,.6); }
.fc-logo i { width: 2.2em; height: 2.2em; border-radius: 2px; background:
  linear-gradient(var(--accent), var(--accent)) 50% 50% / 33% 33% no-repeat,
  linear-gradient(#ffcd3d, #ffcd3d) 50% 0 / 33% 100% no-repeat,
  linear-gradient(#ffcd3d, #ffcd3d) 0 50% / 100% 33% no-repeat, var(--ink-800); background-origin: content-box; padding: .35em; }
.fc .swatches { gap: .35em; } .fc .swatches i { width: 2.1em; height: 2.1em; }
.fc-tog { display: flex; align-items: center; gap: .7em; font-size: 1.1em; }
.fc-tog i { position: relative; width: 2.2em; height: 1.2em; border-radius: 2px; background: rgba(255,255,255,.2); }
.fc-tog i::after { content: ""; position: absolute; top: .18em; left: .18em; width: .84em; height: .84em; background: #fff; }
.fc-tog i.on { background: var(--accent); } .fc-tog i.on::after { left: auto; right: .18em; background: var(--ink-900); }
.fc-match { display: flex; align-items: center; justify-content: space-between; gap: .6em; font-size: 1.1em; }
.fc .live { font-size: .62em; }
.fc .odds b { flex: 1; min-width: 0; padding: .45em .3em; font-size: 1.3em; }
.fc.shot { padding: 0; width: clamp(200px, min(23vw, 42vh), 640px); aspect-ratio: 3 / 4; overflow: hidden; background: #210815; }
.fc.shot.wide { width: clamp(260px, min(30vw, 54vh), 840px); aspect-ratio: 4 / 3; }
.fc.shot img { width: 100%; height: 100%; object-fit: cover; }
/* phones: a compact heading and step bar on top; below it a window where the photos fly in whole and sharp,
   each step card arriving in the middle, in front, and the giant word read whole along the foot */
@media (max-width: 767px) {
  .fly { height: 420vh; }
  .fly-head { right: var(--pad-m); max-width: none; top: calc(var(--hdr) + 16px); }
  .fly-head .eyebrow { margin-bottom: 10px; }
  .fly-head .stmt { font-size: 26px; line-height: 1.1; max-width: none; }
  .fly-head p { margin-top: 10px; font-size: 14px; line-height: 1.45; }
  .fly-word { left: var(--pad-m); right: var(--pad-m); bottom: 3vh; transform-origin: 50% 100%; }
  .fly-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; max-width: none; margin-top: 14px; padding-bottom: 22px; font-size: 13px; }
  .fly-steps li { position: relative; flex-direction: column; align-items: flex-start; gap: 0; padding: 7px 0 0; background: none; border-top: 3px solid var(--ghost); transition: color .3s var(--e-ui), border-color .3s var(--e-ui); }
  .fly-steps b { min-width: 0; font-size: 9px; }
  .fly-steps li::after { display: none; }
  .fly-steps li.done { border-color: var(--on); } .fly-steps li.on { border-color: var(--accent); }
  /* only the active step is named, right under its own segment */
  .fly-steps li span { position: absolute; top: calc(100% + 5px); left: 0; white-space: nowrap; opacity: 0; transition: opacity .25s var(--e-ui); }
  .fly-steps li:nth-child(n+4) span { left: auto; right: 0; }
  .fly-steps li.on span { opacity: 1; }
  .fly-cards { -webkit-mask-image: linear-gradient(transparent var(--cut, 0px), #000 calc(var(--cut, 0px) + 28px)); mask-image: linear-gradient(transparent var(--cut, 0px), #000 calc(var(--cut, 0px) + 28px)); }
  .fc { width: 74vw; font-size: 14px; }
  .fc.step { box-shadow: 0 18px 40px -12px rgba(17,24,33,.45); }
  .fc.shot { width: 90vw; box-shadow: 0 14px 30px -14px rgba(17,24,33,.35); } .fc.shot.wide { width: 112vw; }
}

/* ---------- product stack ---------- */
.prods { position: relative; z-index: 2; padding: var(--pad-l) var(--pad-m) var(--pad-xl); }
.prods-head { margin-bottom: 8px; }
.pcard { display: grid; gap: 24px; padding: 20px 0 28px; background: var(--ink-900); border-top: 1px solid var(--ghost); }
.pc-a h3 { font: 700 clamp(30px, 3vw, 48px)/.9 var(--f-head); font-stretch: 75%; text-transform: uppercase; letter-spacing: -.01em; margin-bottom: 14px; }
.pc-a h3 a { text-decoration: none; }
.pc-a h3 a:hover { color: var(--accent); }
.pc-a p { color: var(--sub); max-width: 320px; }
.pc-tile { display: grid; place-items: center; width: 112px; height: 56px; margin-top: 8px; border-radius: var(--r); background: var(--ink-800); color: var(--accent); }
.pc-tile .ic { width: 28px; height: 28px; }
.pc-cat { font: 700 12px/1.2 var(--f-text); text-transform: uppercase; letter-spacing: .04em; color: var(--sub); margin-bottom: 20px; }
.pc-stats { margin: 0 0 22px; }
.pc-stats div { display: flex; gap: 14px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--ghost); }
.pc-stats dt { min-width: 92px; font-weight: 500; color: #fff; }
.pc-stats dd { margin: 0; font-size: 14px; color: var(--sub); }
.pc-m { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-800); }
/* a portrait loop (transparent phone) sits whole inside the frame instead of being cropped */
.pc-m.fit { background: var(--ink-900); }
.pc-m.fit img, .pc-m.fit video { object-fit: contain; }
@media (min-width: 900px) {
  .pcard { grid-template-columns: 1fr 1fr 1.2fr; column-gap: var(--gap-l); align-items: start; }
}
/* phones and small tablets: name, then the film, then the figures; the icon tile repeats the film, so it goes */
@media (max-width: 899px) {
  .pcard { gap: 18px; padding: 22px 0 40px; }
  .pc-m { order: 1; border-radius: var(--r); }
  .pc-b { order: 2; }
  .pc-a p { margin: 0; }
  .pc-tile { display: none; }
  .pc-cat { margin-bottom: 10px; }
  .pc-stats { margin-bottom: 18px; }
}
/* phones: the desktop stack as a deck. Each card is short enough to sit whole on screen and pins under the
   header; the next slides up over it while home.js eases the covered one back (smaller, dimmer). */
@media (max-width: 767px) {
  .prods { padding-bottom: var(--pad-l); }
  .prods-head { margin-bottom: 16px; }
  .stack { padding-bottom: 6vh; }
  .pcard { position: sticky; top: calc(var(--hdr) + 12px + var(--i) * 8px); gap: 12px; margin-bottom: 14px; padding: 16px 16px 18px; border: 1px solid rgba(255,255,255,.1); border-radius: 6px; background: var(--ink-800); transform-origin: 50% 0; box-shadow: 0 -12px 28px -14px rgba(0,0,0,.7); }
  .pcard:last-child { margin-bottom: 0; }
  .pcard { overflow: hidden; }
  /* where the next card's edge crosses this one, its words fade into the card instead of being cut mid-line;
     home.js moves the band with --fold (transform only) */
  .pcard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: 1; height: calc(100% + 72px); background: linear-gradient(transparent, var(--ink-800) 72px); transform: translateY(var(--fold, 100%)); pointer-events: none; }
  .pcard::after { content: ""; position: absolute; inset: -1px; z-index: 2; border-radius: inherit; background: var(--ink-900); opacity: var(--dim, 0); pointer-events: none; }
  .pcard:focus-within { z-index: 5; }
  .pcard:focus-within::after { opacity: 0; }
  .pc-b { display: contents; }
  .pc-cat { order: -1; margin: 0; font-size: 11px; color: var(--accent); }
  .pc-a h3 { font-size: 28px; margin-bottom: 8px; }
  .pc-a p { font-size: 14px; line-height: 1.45; max-width: none; }
  .pc-m { order: 1; margin-top: 4px; }
  .pc-stats { order: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
  .pc-stats div { flex-direction: column; gap: 2px; padding: 10px 0 0; }
  .pc-stats dt { min-width: 0; font-size: 14px; line-height: 1.25; }
  .pc-stats dd { font-size: 12px; line-height: 1.3; }
  .pcard .btn { order: 3; justify-self: start; min-height: 40px; margin-top: 2px; }
}
@media (min-width: 1000px) and (min-height: 760px) {
  /* The space between cards is a flex gap, not a margin: a sticky card's margin counts against its container,
     so margins made the middle cards let go early and slide over the title strips above them.
     The ::after adds a shorter gap after the last card, so the full stack holds still for a moment before it
     leaves; the logo strip follows straight after, so no extra padding sits below it. */
  .stack { display: flex; flex-direction: column; gap: 18vh; padding-bottom: 0; }
  .stack::after { content: ""; height: 1px; margin-top: -10vh; }
  .prods { padding-bottom: var(--pad-l); }
  .pcard { position: sticky; top: calc(var(--hdr) + 32px + var(--i) * 68px); min-height: 440px; }
}

/* ---------- wipe chapter with stat cards ---------- */
.wipe { position: relative; z-index: 2; height: 240vh; }
.wipe-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--hdr) + 40px) var(--pad-m) clamp(20px, 4vh, 40px); }
.wipe-layers { position: absolute; inset: 0; z-index: -1; }
.wl { position: absolute; inset: 0; overflow: hidden; background: #210815; }
.wl img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.wl-2 { clip-path: inset(calc((1 - var(--p2, 0)) * 100%) 0 0); }
.wl-3 { clip-path: inset(calc((1 - var(--p3, 0)) * 100%) 0 0); }
.wipe-layers::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(17,24,33,.9), rgba(17,24,33,.72) 32%, transparent 58%); }
.wipe-head { max-width: 700px; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; grid-template-columns: repeat(4, 1fr); }
.stats li { display: flex; flex-direction: column; min-height: clamp(150px, 22vh, 220px); padding: 16px; border-radius: var(--r); background: #fff; color: var(--ink-900); }
.stats b { font: 400 clamp(44px, 5.4vw, 96px)/1 var(--f-text); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.stats span { margin-top: auto; padding-top: 14px; font-size: 14px; background: repeating-linear-gradient(to right, rgba(17,24,33,.4) 0 1px, transparent 1px 4px) top / 100% 1px no-repeat; }
html.js .stats { clip-path: inset(calc(50% - 1px) 50%); }
html.js .stats.on { animation: crt .7s forwards; }
@keyframes crt {
  0% { clip-path: inset(calc(50% - 1px) 50%); animation-timing-function: cubic-bezier(.625,.05,0,1); }
  45% { clip-path: inset(calc(50% - 1px) 0); animation-timing-function: cubic-bezier(.625,.05,0,1); }
  100% { clip-path: inset(0 0); }
}
@media (max-width: 899px) { .stats { grid-template-columns: 1fr 1fr; } .stats li { min-height: 130px; } .stats b { font-size: clamp(34px, 10.5vw, 44px); } .stats span { font-size: 13px; } }

/* ---------- values and contact ---------- */
.one-app { z-index: 2; }
.vals { z-index: 2; }
.home-contact { z-index: 2; border-top: 1px solid var(--ghost); }

/* ---------- reduced motion: no pinning, final states ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; } .hero-stage { position: relative; height: 100vh; height: 100svh; }
  .who { margin-top: 0; }
  html.js .mega .w, html.js .hero-mid > * { opacity: 1; transform: none; }
  .fly { height: auto; }
  .fly-stage { position: relative; height: auto; overflow: clip; padding: calc(var(--hdr) + 32px) var(--pad-m) var(--pad-xl); display: grid; gap: var(--gap-l); align-items: center; }
  .fly-head, .fly-cards { position: relative; inset: auto; top: auto; left: auto; }
  .fly-word { bottom: 4vh; transform: none; }
  .fly-word .echo:not(.main) { display: none; }
  .fly-steps li { color: var(--on); } .fly-steps li b { color: #b84d00; } .fly-steps li::after { background: var(--accent); }
  .fly-cards { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); column-gap: 10px; align-items: start; }
  .fc { position: relative; width: auto; opacity: 1; visibility: visible; transform: none; will-change: auto; }
  .fc.dup, .fc.wide { display: none; }
  .fc.shot { grid-row: 1; grid-column: span 5; width: auto; }
  .fc.shot:nth-child(even of .fc.shot:not(.dup):not(.wide)) { margin-top: 14%; }
  .fc.step { grid-row: 2; grid-column: span 4; width: auto; margin-top: -40%; font-size: clamp(12px, .8vw, 18px); box-shadow: 0 0 0 6px #fff; }
  .fc.step:nth-child(even of .fc.step) { margin-top: -22%; }
  @media (min-width: 1000px) { .fly-stage { grid-template-columns: minmax(0, 32fr) minmax(0, 68fr); min-height: 100vh; } .fly-head { max-width: none; } }
  @media (max-width: 767px) {
    .fly-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .fc.shot { grid-row: auto; grid-column: auto; }
    .fc.step, .fc.step:nth-child(even of .fc.step) { order: 1; grid-row: auto; grid-column: 1 / -1; width: 82%; margin-top: 0; font-size: 14px; }
    .fc.step:nth-child(even of .fc.step) { justify-self: end; }
    .fc.step[data-step="1"] { margin-top: -22%; }
    .fly-steps { display: block; padding-bottom: 0; }
    .fly-steps li, .fly-steps li.on, .fly-steps li.done { flex-direction: row; align-items: center; gap: 16px; padding: .5em 0; border: 0; background: repeating-linear-gradient(to right, var(--dash) 0 1px, transparent 1px 4px) bottom / 100% 1px no-repeat; }
    .fly-steps li span, .fly-steps li.on span { display: block; position: static; opacity: 1; }
  }
  .wipe { height: auto; } .wipe-stage { position: relative; min-height: 100vh; gap: 40px; }
  .wl-2, .wl-3 { display: none; }
  html.js .stats { clip-path: none; }
  .fly-head { order: -1; }
  .pcard { position: relative; top: auto; margin-bottom: 0; }
}
