/* ============================================================
   Allion — studio portfolio
   Design tokens follow apple.com: SF Pro stack, #1d1d1f on
   #fff / #f5f5f7, 980px container, 980px-radius pill buttons.
   ============================================================ */

:root {
  --ink:        #1d1d1f;
  --ink-2:      #6e6e73;
  --ink-3:      #86868b;
  --bg:         #ffffff;
  --bg-alt:     #f5f5f7;
  --bg-dark:    #000000;
  --blue:       #0071e3;
  --blue-link:  #0066cc;
  --hairline:   rgba(0,0,0,.12);

  --nav-h:      60px;   /* single sticky header */
  --localnav-h: 0px;

  --container:  980px;
  --gutter:     22px;

  --ease:       cubic-bezier(.28,.11,.32,1);

  --font: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont,
          "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ── reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47059;
  letter-spacing: -.022em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
sup { font-size: .7em; vertical-align: super; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ── layout ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 700px; text-align: center; }

.section { padding: 120px 0; }
.section--alt  { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #f5f5f7; }

/* the header is sticky, so an anchor jump must stop short of it or the
   section heading lands underneath and is clipped */
[id] { scroll-margin-top: calc(var(--nav-h) + var(--localnav-h) + 16px); }

.section__title {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -.015em;
  margin-bottom: 24px;
}
.section__lede {
  max-width: 640px;
  font-size: 21px;
  line-height: 1.42;
  color: var(--ink-2);
  margin-bottom: 20px;
}

.eyebrow {
  font-size: 21px;
  line-height: 1.19;
  font-weight: 600;
  letter-spacing: .011em;
  color: var(--ink-2);
  margin-bottom: 10px;
}
.eyebrow--onDark { color: var(--ink-3); }

/* ── buttons + links ────────────────────────────────────── */
.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 980px;
  padding: 12px 22px;
  font-size: 17px;
  line-height: 1.18;
  letter-spacing: -.022em;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: #0077ed; }
.btn--ghost { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--ghost:hover { background: var(--blue); color: #fff; }
.btn--pill { background: var(--blue); color: #fff; padding: 8px 16px; font-size: 14px; }
.btn--pill:hover { background: #0077ed; }
.btn--lg { padding: 15px 30px; font-size: 19px; }
.btn:active { transform: scale(.97); }

.link {
  color: var(--blue-link);
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.link:hover { text-decoration: underline; }
.chev {
  width: 6px; height: 6px;
  border-right: 1.6px solid currentColor;
  border-top: 1.6px solid currentColor;
  transform: rotate(45deg);
  margin-left: 4px;
  transition: transform .2s var(--ease);
}
.link:hover .chev { transform: rotate(45deg) translate(2px, -2px); }

/* ── chips ──────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: 12px;
  line-height: 1;
  color: var(--ink-2);
  background: rgba(0,0,0,.05);
  border-radius: 980px;
  padding: 7px 12px;
  white-space: nowrap;
}
.chips--sm li { font-size: 11px; padding: 6px 10px; }
.chips--onDark li { color: #f5f5f7; background: rgba(255,255,255,.11); font-size: 15px; padding: 10px 18px; }

/* ── site header (one bar, not two) ─────────────────────── */
/* Previously a dark globalnav sat above a light localnav and three links
   plus the contact CTA appeared in both. Collapsed to a single bar. */
.siteheader {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  background: rgba(250,250,252,.86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.siteheader.is-stuck { border-bottom-color: var(--hairline); }
.siteheader__in {
  max-width: 1024px;
  margin-inline: auto;
  height: 100%;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand .logo { width: 62px; height: auto; }
.brand__word { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.brand__word b { color: #044797; font-weight: inherit; }

.mainnav { display: flex; gap: 26px; margin-left: auto; font-size: 14px; color: var(--ink-2); }
.mainnav a { padding: 4px 0; border-bottom: 2px solid transparent; }
.mainnav a:hover { color: var(--ink); border-bottom-color: var(--blue); }

/* ── hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 76px 0 0;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 60%, #ffffff 100%);
}
.hero__copy { position: relative; z-index: 2; padding-inline: var(--gutter); }
.hero__headline {
  font-size: clamp(52px, 9vw, 104px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.035em;
  margin-bottom: 22px;
}
.hero__sub {
  max-width: 580px;
  margin: 0 auto 30px;
  font-size: 21px;
  line-height: 1.4;
  color: var(--ink-2);
}
.hero__actions { display: flex; justify-content: center; align-items: center; gap: 28px; flex-wrap: wrap; }

.hero__stage {
  position: relative;
  margin-top: 70px;
  padding-bottom: 110px;
  transform-origin: center top;
}

/* floating wall of the four real app icons */
.iconwall {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  padding-inline: var(--gutter);
}
/* resting arc, so the four icons don't sit on a flat line */
.iconwall li:nth-child(1) { --rest: -12px; }
.iconwall li:nth-child(2) { --rest:   8px; }
.iconwall li:nth-child(3) { --rest: -18px; }
.iconwall li:nth-child(4) { --rest:   2px; }

.iconwall img {
  width: clamp(74px, 15vw, 148px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 23%;
  box-shadow:
    0 1px 2px rgba(0,0,0,.12),
    0 22px 44px -14px rgba(0,0,0,.34);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.iconwall img:hover {
  transform: scale(1.07);
  box-shadow:
    0 1px 2px rgba(0,0,0,.14),
    0 30px 56px -14px rgba(0,0,0,.42);
}
/* --bob is registered so it can be interpolated as a length; the idle
   bob then animates a *variable* rather than transform, leaving the
   transform property free for the scroll-driven fan-out. */
@property --bob {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
@keyframes bob {
  0%, 100% { --bob: 0px; }
  50%      { --bob: -13px; }
}

/* ── app rows ───────────────────────────────────────────── */
.apps { display: grid; gap: 20px; }
.app {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  background: #fff;
  border-radius: 24px;
  padding: 32px;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.app::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--a1), var(--a2));
}
.app:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(0,0,0,.28); }

.app__icon {
  width: 104px; height: 104px;
  flex: 0 0 auto;
  border-radius: 23%;
  box-shadow: 0 1px 2px rgba(0,0,0,.1), 0 10px 22px -10px rgba(0,0,0,.3);
}
.app__kicker {
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 5px;
}
.app__name { font-size: 28px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 6px; }
.app__store {
  font-size: 13px;
  color: var(--ink-3);
  margin: -2px 0 8px;
}
.app__tag  { color: var(--ink-2); margin-bottom: 16px; max-width: 52ch; }
.app__id {
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-3);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0;
}

.app__priv { color: var(--blue-link); }
.app__priv:hover { text-decoration: underline; }

/* unreleased app: same layout, visibly not shipped yet */
.app--wip { border: 1px dashed rgba(0,0,0,.16); }
.app__icon--draw {
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--a1), var(--a2));
  color: #f5f3ee;
}
.wip {
  display: inline-block;
  margin-left: 8px;
  padding: 4px 9px;
  border-radius: 980px;
  background: rgba(40,95,75,.12);
  color: #285f4b;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: none;
  vertical-align: 1px;
}

/* store buttons — one per store the app is actually listed on */
.app__get { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 14px;
  line-height: 1;
  /* 44px is the minimum comfortable touch target; these are the page's
     primary call to action, so they get it on every viewport */
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 980px;
  background: var(--ink);
  color: #fff;
  white-space: nowrap;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.store:hover { background: #000; transform: translateY(-1px); }
.store:active { transform: scale(.97); }
.store svg { flex: 0 0 auto; }

/* not a link — the listing does not exist yet, so there is nowhere to go */
.store--soon {
  background: transparent;
  color: var(--ink-3);
  border: 1px dashed rgba(0,0,0,.22);
  cursor: default;
}
.store--soon:hover { background: transparent; transform: none; }

/* ── dark story sections ────────────────────────────────── */
.story__headline {
  font-size: clamp(38px, 6.2vw, 68px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -.02em;
  margin-bottom: 28px;
}
.grad {
  background: linear-gradient(92deg, #f2683f, #f0a02a 55%, #ffd43b);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.story__lede {
  max-width: 640px;
  font-size: 21px;
  line-height: 1.42;
  color: var(--ink-3);
}
.story__lede em { font-style: normal; color: #f5f5f7; }

.story__panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 60px;
}
.panel { background: #1c1c1e; border-radius: 22px; padding: 34px 30px; }
.panel h3 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 10px; }
.panel p  { color: var(--ink-3); font-size: 17px; }

/* ── pricing ────────────────────────────────────────────── */
.pricing { margin-top: 52px; }
.pricing__intro { color: var(--ink-3); margin-bottom: 18px; }
.pricing__row { display: flex; flex-wrap: wrap; gap: 14px; }
.pricing__row li {
  flex: 1 1 180px;
  background: #1c1c1e;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  padding: 24px 26px;
}
.pricing__row .is-best { border-color: #f0a02a; }
.pricing__amt { display: block; font-size: 30px; font-weight: 600; letter-spacing: -.02em; }
.pricing__per { display: block; font-size: 14px; color: var(--ink-3); margin-top: 4px; }

/* ── carousel ───────────────────────────────────────────── */
.carousel { position: relative; margin-top: 40px; }
.carousel__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 6px max(var(--gutter), calc((100vw - var(--container)) / 2)) 30px;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: center; flex: 0 0 auto; }

.carousel__controls {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.carousel__btn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,.06);
  color: var(--ink-2);
  cursor: pointer;
  transition: background .2s var(--ease), opacity .2s var(--ease);
}
.carousel__btn:hover { background: rgba(0,0,0,.12); }
.carousel__btn[disabled] { opacity: .32; cursor: default; }

/* game cards */
.gcard {
  width: 320px;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
  display: flex;
  flex-direction: column;
}
.gcard__art {
  height: 230px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--g1), var(--g2));
}
.gcard__art img {
  width: 116px; height: 116px;
  border-radius: 23%;
  box-shadow: 0 2px 6px rgba(0,0,0,.2), 0 18px 34px -12px rgba(0,0,0,.45);
}
.gcard__meta { padding: 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.gcard__meta h3 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.gcard__meta p  { color: var(--ink-2); font-size: 15px; flex: 1; }

/* ── stats + stack ──────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 44px 28px;
  margin-top: 64px;
}
.stat__num {
  display: block;
  font-size: clamp(46px, 6vw, 64px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(92deg, #f2683f, #f0a02a);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}
.stat__label { color: var(--ink-3); font-size: 17px; line-height: 1.4; }

.stack { margin-top: 76px; }
.stack__title { font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 20px; }
.stack__note { margin-top: 24px; max-width: 640px; color: var(--ink-3); }

/* ── made in America ────────────────────────────────────── */
.made { overflow: hidden; }
.made__lede { font-size: 21px; color: var(--ink-2); }

.made__map {
  max-width: 860px;
  margin: 56px auto 0;
  padding-inline: var(--gutter);
}
.made__map svg {
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 22px 40px rgba(0,0,0,.18));
}
.made__outline {
  fill: none;
  stroke: rgba(0,0,0,.42);
  stroke-width: 2.5;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

/* ── final CTA ──────────────────────────────────────────── */
.cta__lede { font-size: 21px; color: var(--ink-2); margin-bottom: 34px; }
.cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── footnotes + footer ─────────────────────────────────── */
.footnotes { background: var(--bg-alt); padding: 34px 0; }
.footnotes ol { counter-reset: fn; display: grid; gap: 8px; }
.footnotes li {
  counter-increment: fn;
  font-size: 12px;
  line-height: 1.33;
  color: var(--ink-3);
  padding-left: 16px;
  text-indent: -16px;
}
.footnotes li::before { content: counter(fn) ". "; }

.footer { background: var(--bg-alt); padding: 0 0 44px; font-size: 12px; color: var(--ink-2); }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 30px;
  padding: 34px 0;
  border-top: 1px solid var(--hairline);
}
.footer__col h4 { font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.footer__col ul { display: grid; gap: 9px; }
.footer__col a:hover { text-decoration: underline; }

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer__legal a:hover { text-decoration: underline; }

/* ════════════════════════════════════════════════════════════
   MOTION
   anim.js writes progress values into custom properties; every
   rule below decides what those values actually look like.
   Nothing here may hide content unless .anim-ready is set —
   that way a failed script leaves a readable page.
   ════════════════════════════════════════════════════════════ */

/* ── generic reveal ─────────────────────────────────────── */
.anim-ready .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity .85s var(--ease) var(--delay, 0ms),
    transform .85s var(--ease) var(--delay, 0ms);
}
.anim-ready .reveal.is-in { opacity: 1; transform: none; }

/* ── word-by-word headline reveal ───────────────────────── */
/* Each word sits in a clipped box and slides up out of it, so the
   text wipes into place instead of just fading — the effect Apple
   uses on its product headlines. */
[data-split] .line { display: block; }
[data-split] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .12em;
  margin-bottom: -.12em;
}
[data-split] .w > i { display: inline-block; font-style: inherit; }

.anim-ready [data-split] .w > i {
  transform: translateY(105%) rotate(2deg);
  opacity: 0;
  transition:
    transform .9s cubic-bezier(.16,.84,.34,1) calc(var(--wi) * 55ms),
    opacity .7s var(--ease) calc(var(--wi) * 55ms);
}
.anim-ready [data-split].is-in .w > i { transform: none; opacity: 1; }

/* gradient sweep driven by scroll position */
.grad {
  background: linear-gradient(92deg, #f2683f, #f0a02a 55%, #ffd43b);
  background-size: 220% 100%;
  background-position: var(--sweep, 0%) 0;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

/* ── hero motion ────────────────────────────────────────── */
.hero__copy {
  transform: translateY(var(--lift, 0px));
  opacity: var(--dim, 1);
  will-change: transform, opacity;
}

.hero__stage {
  /* the icons push toward the viewer as you scroll, then fade */
  transform: scale(var(--zoom, 1));
  transform-origin: 50% 38%;
  opacity: var(--dim, 1);
  filter: blur(var(--blur, 0px));
  will-change: transform, opacity, filter;
}

/* icons fan outward from the centre as --spread goes 0 → 1.
   --i is each icon's signed distance from centre (-1.5 … 1.5). */
.iconwall li {
  transform:
    translateX(calc(var(--i) * var(--spread, 0) * 58px))
    translateY(calc(var(--rest, 0px) + var(--sink, 0px) + var(--bob, 0px)))
    rotate(calc(var(--i) * var(--spread, 0) * 5deg));
  will-change: transform;
}

/* entrance overshoot, then a slow idle bob — two animations on two
   different properties, so neither clobbers the other */
.anim-ready .iconwall li {
  animation-name: iconIn, bob;
  animation-duration: .95s, 6s;
  animation-timing-function: cubic-bezier(.2,.9,.3,1.2), ease-in-out;
  animation-delay: calc(.15s + var(--n) * .09s), calc(1.1s + var(--n) * .8s);
  animation-iteration-count: 1, infinite;
  animation-fill-mode: backwards, none;
}
.iconwall li:nth-child(1) { --n: 0; }
.iconwall li:nth-child(2) { --n: 1; }
.iconwall li:nth-child(3) { --n: 2; }
.iconwall li:nth-child(4) { --n: 3; }

@keyframes iconIn {
  from { opacity: 0; transform: translateY(60px) scale(.86); filter: blur(10px); }
  to   { opacity: 1; }
}

/* ── app rows ───────────────────────────────────────────── */
.app {
  transform: translateY(var(--rise, 0px)) scale(var(--scale, 1));
  opacity: var(--dim, 1);
  will-change: transform, opacity;
}
/* the hover lift has to compose with the scrub transform */
.app:hover { transform: translateY(calc(var(--rise, 0px) - 3px)) scale(var(--scale, 1)); }

/* ── pinned chapters ────────────────────────────────────── */
.chapters { position: relative; background: var(--bg-dark); color: #f5f5f7; }
.chapters__track { height: 340vh; }          /* ≈3 viewports of scroll */
.chapters__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  /* both navs float over the pinned stage, so centre the content in the
     space below them rather than in the whole viewport — otherwise the
     phone's top edge tucks under the nav bar */
  padding-top: calc(var(--nav-h) + var(--localnav-h));
  display: grid;
  align-items: center;
  overflow: hidden;
}
.chapters__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
}

/* captions stack on top of each other and cross-fade */
.chapters__captions { position: relative; min-height: 340px; }
.chapter {
  position: absolute;
  inset: 0;
  opacity: var(--dim, 0);
  transform: translateY(var(--slide, 0px));
  pointer-events: none;
}
.chapter.is-active { pointer-events: auto; }
.chapter h2 {
  font-size: clamp(32px, 3.9vw, 50px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -.02em;
  margin-bottom: 20px;
  text-wrap: balance;
}
.chapter p { max-width: 30rem; font-size: 19px; line-height: 1.45; color: var(--ink-3); }

/* the pinned device */
.chapters__stage {
  display: grid;
  justify-items: center;
  gap: 26px;
  transform: translateY(var(--float, 0px));
  will-change: transform;
  /* trailing devices drift left as the fan advances and would otherwise
     sit on top of the caption column — fade them out before they get there */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 100%);
}

/* the fanned line-up: phones stack in one place and are pushed apart by
   anim.js, so the front device rotates forward as the chapters advance */
.fan {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1400px;
  width: min(300px, 66vw);
  aspect-ratio: 9 / 19;
}
.fan > .phone {
  grid-area: 1 / 1;
  z-index: var(--z, 1);
  opacity: var(--dim, 1);
  transform:
    translateX(var(--x, 0px))
    translateY(var(--lift, 0px))
    rotateY(var(--rot, 0deg))
    scale(var(--sc, 1));
  transform-origin: 50% 60%;
  will-change: transform, opacity;
}

.phone {
  position: relative;
  width: min(268px, 62vw);
  aspect-ratio: 9 / 19;
  border-radius: 42px;
  padding: 9px;
  background: linear-gradient(160deg, #3a3a3c, #1c1c1e 42%, #48484a);
  box-shadow: 0 2px 5px rgba(0,0,0,.5), 0 40px 80px -22px rgba(0,0,0,.9);
}
.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #0b0b0d;
}
.phone__notch {
  position: absolute;
  top: 19px; left: 50%;
  translate: -50% 0;
  width: 86px; height: 22px;
  border-radius: 999px;
  background: #000;
}

/* the three screens, cross-faded by scroll */
.screen {
  position: absolute;
  inset: 0;
  padding: 58px 20px 22px;
  background: linear-gradient(180deg, #131316, #0b0b0d);
}
.screen__title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #f0a02a;
  margin-bottom: 16px;
}
.screen__list { display: grid; gap: 12px; }
.screen__list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; line-height: 1.3; color: #e6e6ea;
}
.dot {
  width: 15px; height: 15px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1.6px solid #55555c;
}
.dot--done {
  border-color: #f0a02a;
  background:
    linear-gradient(#f0a02a, #f0a02a) center/7px 7px no-repeat content-box,
    transparent;
  box-shadow: inset 0 0 0 3px #0b0b0d, inset 0 0 0 20px #f0a02a;
}
.screen__menu { display: grid; gap: 9px; }
.screen__menu li {
  font-size: 13px;
  color: #e6e6ea;
  background: rgba(240,160,42,.13);
  border: 1px solid rgba(240,160,42,.3);
  border-radius: 12px;
  padding: 10px 12px;
}
.screen__privacy { display: grid; justify-items: center; gap: 8px; padding-top: 26px; text-align: center; }
.privacy__badge { color: #f0a02a; margin-bottom: 6px; }
.privacy__line { font-size: 13px; color: var(--ink-3); }
.privacy__line strong { display: block; font-size: 25px; color: #fff; letter-spacing: -.02em; }

/* progress dots */
.chapters__dots { display: flex; gap: 7px; }
.chapters__dots li {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.24);
  transition: background .35s var(--ease), width .35s var(--ease);
}
.chapters:has(.chapter:nth-child(1).is-active) .chapters__dots li:nth-child(1),
.chapters:has(.chapter:nth-child(2).is-active) .chapters__dots li:nth-child(2),
.chapters:has(.chapter:nth-child(3).is-active) .chapters__dots li:nth-child(3) {
  background: #f0a02a;
  width: 18px;
  border-radius: 999px;
}

.pricing-wrap { padding-bottom: 120px; }

/* ── carousel centre focus ──────────────────────────────── */
.gcard {
  transform: scale(calc(.93 + var(--near, 1) * .07));
  opacity: calc(.55 + var(--near, 1) * .45);
  transition: transform .45s var(--ease), opacity .45s var(--ease);
}

/* ── responsive ─────────────────────────────────────────── */
@media (max-width: 833px) {
  .section { padding: 84px 0; }
  .mainnav a:nth-child(n+3) { display: none; }
  .story__panels, .stats { margin-top: 44px; }
  .stack { margin-top: 56px; }

  /* stack the pinned section: device above, captions below */
  .chapters__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    justify-items: center;
    text-align: center;
  }
  .chapters__text { order: 2; width: 100%; }
  .chapters__stage { order: 1; }
  .chapters__captions { min-height: 232px; }
  .chapter p { margin-inline: auto; }
  /* the fan drives the pinned section's height, so it has to come down
     with the viewport or the pin clips its own content */
  .fan { width: min(178px, 44vw); }
  .phone { width: min(178px, 44vw); }
  .chapters__stage { gap: 18px; }
  .pricing-wrap { padding-bottom: 84px; }
}
@media (max-width: 640px) {
  .app { flex-direction: column; align-items: flex-start; gap: 20px; padding: 26px 24px; }
  .app__icon { width: 84px; height: 84px; }
  .gcard { width: 280px; }
  .cta__actions .btn { width: 100%; }
}

/* short viewports can't fit a 100vh pin plus its content — let it flow */
@media (max-height: 620px) {
  .chapters__pin { position: static; height: auto; padding: 70px 0; }
  .chapters__track { height: auto; }
  .chapters__captions { min-height: 300px; }
}

/* ── motion preferences ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim-ready .reveal,
  .anim-ready [data-split] .w > i { opacity: 1; transform: none; transition: none; }
  .iconwall li { animation: none; transform: translateY(var(--rest, 0px)); }
  .hero__copy, .hero__stage { transform: none; opacity: 1; filter: none; }
  .app { transform: none; opacity: 1; }
  .gcard { transform: none; opacity: 1; }
  .carousel__track { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}

/* Reduced motion also unpins the chapters — three cross-fading panels
   stacked in the same box are unreadable without the scroll that
   drives them, so they become a plain vertical list instead. */
.anim-off .chapters__track { height: auto; }
.anim-off .chapters__pin { position: static; height: auto; padding: 80px 0; overflow: visible; }
.anim-off .chapters__captions { min-height: 0; display: grid; gap: 48px; }
.anim-off .chapter { position: static; opacity: 1; transform: none; }
.anim-off .chapters__stage { transform: none; }
/* without the scroll driving it, the fan would be three phones stacked in
   one cell — lay them side by side instead */
.anim-off .fan {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  width: auto;
  aspect-ratio: auto;
  perspective: none;
}
.anim-off .fan > .phone {
  grid-area: auto;
  width: 168px;
  transform: none;
  opacity: 1;
}
