/* SwingStreak website, Ink & Chalk.
   Black canvas, white type, the tracer red as the only colour. One stylesheet, no inline styles anywhere.
   Order: tokens, base, type, buttons, nav, phone, hero, story, sections, footer, prose pages, motion. */

@font-face {
  font-family: "SwingStreak Display";
  src: url("/fonts/display.woff2") format("woff2");
  font-weight: 300 900;
  font-stretch: 100% 125%;
  font-display: swap;
}

:root {
  --canvas: #000;
  --surface: #1C1C1E;
  --raised: #2C2C2E;
  --raised-2: #3A3A3C;
  --line: #2C2C2E;
  --line-strong: #3A3A3C;
  --text: #fff;
  --text-2: #98989F;
  --text-3: #8E8E93;
  --value: #D1D1D6;
  --tracer: #FF3B30;
  --display: "SwingStreak Display", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(20px, 5.4vw, 56px);
  --max: 1240px;
  --nav: 56px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --phone-ratio: .4621;
  --gap: clamp(24px, 4vw, 72px);
  --cols: minmax(0, 1.12fr) minmax(0, .88fr);
}

/* Base */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--canvas);
  color-scheme: dark;
  scroll-padding-top: var(--nav);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 400 17px/1.47 var(--ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; }

:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: #fff;
  color: #000;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.sentinel { position: absolute; left: 0; top: 0; width: 1px; height: 8px; pointer-events: none; }

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: max(var(--pad), env(safe-area-inset-left)) max(var(--pad), env(safe-area-inset-right));
}

main { display: block; }
.chapter__text[id] { scroll-margin-top: 24px; }

/* Type */

.display {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 125%;
  line-height: 1.04;
  letter-spacing: -.012em;
  text-wrap: balance;
}
.h1 { font-size: clamp(2.15rem, 1.2rem + 3.2vw, 4.6rem); }
.h2 { font-size: clamp(1.8rem, 1.05rem + 3.4vw, 3.5rem); }
.h3 { font-size: clamp(1.55rem, 1.1rem + 2vw, 2.55rem); }
@media (min-width: 1700px) {
  :root { --max: 1400px; }
  .h1 { font-size: 5.25rem; }
  .h2 { font-size: 3.9rem; }
  .h3 { font-size: 2.9rem; }
}

.overline {
  font: 700 12px/1.2 var(--ui);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-2);
}

.lede {
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  line-height: 1.45;
  color: var(--text-2);
  max-width: 34em;
}

/* Buttons and links */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 22px;
  font: 600 16px/1 var(--ui);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, transform .2s var(--ease);
}
.btn--solid { background: #fff; color: #000; }
.btn--solid:hover { background: #E5E5EA; }
.btn:active { transform: scale(.98); }
.btn--lg { min-height: 56px; padding: 0 28px; border-radius: 16px; font-size: 17px; }
.btn--nav { min-height: 44px; padding: 0 18px; border-radius: 22px; font-size: 14px; }
/* One white button per view: while the hero or closing button is on screen (main.js sets .is-quiet), the nav one is quiet. */
.nav.is-quiet .btn--nav { background: var(--surface); color: #fff; }
/* The colour swap is instant: an animated background on the fixed nav repainted it every frame of the 0.2s (a dropped
   frame at the moment the hero button went under the nav, measured with perf.py). */
.btn--nav { transition: transform .2s var(--ease); }
.nav.is-quiet .btn--nav:hover { background: var(--raised); }

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}
.link::after {
  content: "\203A";
  font-size: 1.3em;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform .2s var(--ease);
}
.link:hover::after { transform: translate(3px, -1px); }

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 11px;
  border-radius: 13px;
  background: #fff;
  color: #000;
  font: 700 11px/1 var(--ui);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.chip--dashed { background: #000; color: #fff; border: 1.5px dashed rgba(255, 255, 255, .55); }

/* Nav */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav);
  background: #000;
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
  max-width: calc(var(--max) + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: max(var(--pad), env(safe-area-inset-left)) max(var(--pad), env(safe-area-inset-right));
}
.brand { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.brand img { height: clamp(17px, 5.2vw, 22px); width: auto; }
.nav__links { display: none; }
.nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s;
}
.nav__links a:hover { color: #fff; }
@media (min-width: 900px) {
  .nav__links { display: flex; gap: 34px; }
}

/* Phone: the screens are pictures of the app. Everything about the frame scales from --phone-w. */

.phone {
  position: relative;
  width: var(--phone-w);
  aspect-ratio: 390 / 844;
  border-radius: calc(var(--phone-w) * .1436);
  background: #000;
  box-shadow: 0 0 0 calc(var(--phone-w) * .0256) #1C1C1E, 0 0 0 calc(var(--phone-w) * .0256 + 1px) #3A3A3C;
}
.phone picture, .phone img { display: block; width: 100%; height: 100%; border-radius: inherit; }
.phone img { background: #000; color: transparent; font-size: 0; }
.shot { padding: calc(var(--phone-w) * .03); width: fit-content; }

/* Hero */

.hero { position: relative; overflow: hidden; overflow: clip; padding-top: var(--nav); }
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  padding-top: clamp(28px, 7vw, 56px);
}
.hero__kicker { margin-bottom: 18px; }
.hero__title { margin-bottom: 20px; }
.hero__lede { margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.hero__note { margin-top: 18px; font-size: 14px; color: var(--text-3); }

.hero__copy { position: relative; z-index: 2; }
/* The phone is cropped just under the carry, height and hang time figures of the Finish screen (a fraction of its own
   width, so it scales). */
.hero__shot { --phone-w: min(70vw, 300px); position: relative; isolation: isolate; justify-self: center; margin-bottom: calc(var(--phone-w) * -.37); }

/* The tracer: a solid flight that goes behind the phone and a dashed estimated end with a dashed landing ring, drawn in
   the phone's own units (the phone is 100 wide). It sits behind the phone. A black panel slides off it once, from the
   ball to the end. The phone layout is one SVG; the wide layout is built from pieces so that its reach follows the room
   there is beside the phone (see "Wide hero"). */
.hero__arc { position: absolute; z-index: -1; pointer-events: none; }
.hero__arc--m { left: calc(var(--phone-w) * -.15); top: calc(var(--phone-w) * -.3); width: calc(var(--phone-w) * 1.3); height: calc(var(--phone-w) * 2.2); }
.hero__arc--m svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hero__arc--d { display: none; }
.arc__line { fill: none; stroke: var(--tracer); stroke-linecap: round; }
.arc__core { stroke-width: 1.3; }
.arc__glow-a { stroke-width: 3.4; opacity: .13; }
.arc__glow-b { stroke-width: 6.4; opacity: .06; }
.arc__dash { stroke-width: 1.3; stroke-dasharray: 1.5 2.5; }
.arc__ring { fill: none; stroke: #fff; stroke-width: .9; stroke-dasharray: 2.2 2; }
.arc__ball { fill: #fff; }
.hero__wipe { display: none; }

@media (min-width: 640px) and (max-width: 899.98px) {
  .hero__shot { --phone-w: min(52vw, 340px); }
}

/* Wide hero: from 900px, and on landscape phones (short and wide). Copy left, phone in the second column. */
@media (min-width: 900px), (min-width: 560px) and (orientation: landscape) and (max-height: 520px) {
  .hero__inner {
    grid-template-columns: var(--cols);
    align-items: center;
    column-gap: var(--gap);
    min-height: calc(100svh - var(--nav));
    padding-block: clamp(28px, 4vw, 56px);
  }
  .hero__shot {
    /* The room beside the phone, measured from the container: the phone sits in the middle of the second column, and
       the tracer may go as far as the window edge less a 20px margin. The solid start and the dashed end both give way
       when the room is small, so the ring always lands inside the window. In a tall narrow window the phone itself is
       held to the width that still leaves the shortest dashed end (.12 of its width) and its ring inside (--cap-w). */
    --wc: min(100vw - 2 * var(--pad), var(--max));
    --cap-w: calc((.22 * (var(--wc) - var(--gap)) + (100vw - var(--wc)) / 2 - 20px) / .695);
    --phone-h: min(76svh, 720px, calc(var(--cap-w) / var(--phone-ratio)));
    --phone-w: calc(var(--phone-h) * var(--phone-ratio));
    --u: var(--phone-w);
    --slack: calc((.44 * (var(--wc) - var(--gap)) - var(--u)) / 2);
    --room-r: calc(var(--slack) + (100vw - var(--wc)) / 2 - 20px);
    --room-l: calc(var(--slack) + var(--gap) - 12px);
    --reach: clamp(var(--u) * .12, var(--room-r) - var(--u) * .075, var(--u) * .5);
    --lead: clamp(var(--u) * .1, var(--room-l), var(--u) * .36);
    margin-bottom: 0;
  }
  .hero__arc--m { display: none; }
  .hero__arc--d {
    display: block;
    left: calc(var(--lead) * -1);
    top: calc(var(--u) * -.3);
    width: calc(var(--lead) + var(--u) * 1.1 + var(--reach));
    height: calc(var(--u) * 2.4);
  }
  .hero__arc--d svg { position: absolute; display: block; overflow: visible; }
  .arc__solid { left: 0; top: calc(var(--u) * .14); width: calc(var(--lead) + var(--u) * .44); height: calc(var(--u) * 2.12); }
  .arc__tail { left: calc(var(--lead) + var(--u) * .44); top: calc(var(--u) * .14); width: calc(var(--u) * .56 + var(--reach)); height: calc(var(--u) * 1.48); }
  .arc__ringbox { left: calc(var(--lead) + var(--u) * .9 + var(--reach)); top: calc(var(--u) * 1.7); width: calc(var(--u) * .2); height: calc(var(--u) * .2); }
  .arc__ballbox { left: calc(var(--u) * -.03); top: calc(var(--u) * 2.23); width: calc(var(--u) * .06); height: calc(var(--u) * .06); }
  .hero__arc--d .arc__line { vector-effect: non-scaling-stroke; }
  .hero__arc--d .arc__core { stroke-width: calc(var(--u) * .013); }
  .hero__arc--d .arc__glow-a { stroke-width: calc(var(--u) * .034); }
  .hero__arc--d .arc__glow-b { stroke-width: calc(var(--u) * .064); }
  .hero__arc--d .arc__dash { stroke-width: calc(var(--u) * .013); stroke-dasharray: calc(var(--u) * .015) calc(var(--u) * .025); }
}

/* Small portrait phones: tighten the hero copy so the top of the phone shows in the first screen. */
@media (max-width: 899.98px) and (max-height: 700px) and (orientation: portrait) {
  .hero__inner { gap: 24px; padding-top: 20px; }
  .hero__kicker { margin-bottom: 12px; }
  .hero__title { margin-bottom: 14px; }
  .hero__lede { margin-bottom: 22px; }
  .hero__note { margin-top: 12px; }
}

/* Landscape phones are short: tighten the hero so the button is in the first screen. */
@media (orientation: landscape) and (max-height: 520px) {
  .hero__inner { padding-block: 14px 18px; }
  .hero .h1 { font-size: clamp(1.5rem, 8.4svh, 2.4rem); }
  .hero__kicker { margin-bottom: 10px; }
  .hero__title { margin-bottom: 12px; }
  .hero__lede { margin-bottom: 18px; font-size: .9375rem; }
  .hero__note { margin-top: 10px; }
}

/* Story: the screens tell it. Each chapter is its text and its phone. Below 700px they stack; from 700px (and on
   landscape phones) the text and the phone sit side by side; from 900px with script enabled the phones share one sticky
   stage and each chapter's screen fades in over the one before it. Hero, chapters and the split sections share one
   two-column grid (--cols, --gap), so the text always starts at the container edge and every phone is centred in the
   second column. */

.story__head { padding-block: clamp(80px, 12vw, 168px) clamp(8px, 3vw, 40px); }
.story__title { margin-top: 16px; max-width: 14em; }
.story__lede { margin-top: 18px; }

.chapter { padding-block: clamp(36px, 7vw, 64px); }
.chapter__text { max-width: 31rem; }
.chapter__kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.chapter__kicker::after { content: ""; flex: 0 1 56px; height: 1px; background: var(--line-strong); }
.chapter__no { font: 800 13px/1 var(--display); font-stretch: 125%; letter-spacing: .04em; color: #fff; }
.chapter__title { margin-bottom: 16px; }
.chapter__text p + p { margin-top: .8em; }
.chapter__text p { color: var(--text-2); font-size: 1.0625rem; }
.chapter__text .chapter__fact { margin-top: 1.1em; color: var(--value); }
.chapter__shot { --phone-w: min(72vw, 300px); margin: clamp(28px, 6vw, 44px) auto 0; }

.split { display: grid; gap: clamp(36px, 7vw, 96px); align-items: center; }
.split__media { --phone-w: min(72vw, 300px); justify-self: center; }

/* Side by side: from 700px, and on landscape phones. The phone is as tall as the window allows. */
@media (min-width: 700px), (min-width: 560px) and (orientation: landscape) and (max-height: 520px) {
  .chapter {
    display: grid;
    grid-template-columns: var(--cols);
    column-gap: var(--gap);
    align-items: center;
    padding-block: clamp(28px, 5vw, 56px);
  }
  .chapter__shot, .split__media {
    --phone-w: min(calc(min(100svh - var(--nav) - 40px, 560px) * var(--phone-ratio)), 34vw);
    margin: 0;
    justify-self: center;
  }
  .split { grid-template-columns: var(--cols); column-gap: var(--gap); row-gap: 0; }
}

@media (orientation: landscape) and (max-height: 520px) {
  .chapter { min-height: calc(100svh - var(--nav)); padding-block: 16px; }
}

@media (min-width: 900px) {
  .chapter { min-height: 86svh; padding-block: 0; }
  .chapter__shot {
    --phone-h: min(74svh, 720px);
    --phone-w: calc(var(--phone-h) * var(--phone-ratio));
  }
}

@media (min-width: 900px) and (scripting: enabled) {
  .story__grid {
    display: grid;
    grid-template-columns: var(--cols);
    grid-template-rows: repeat(9, minmax(86svh, auto));
    column-gap: var(--gap);
  }
  .chapter { display: contents; }
  .chapter__text { grid-column: 1; align-self: center; }
  .chapter__shot {
    --fig-h: calc(var(--phone-h) + var(--phone-w) * .06);
    grid-column: 2;
    grid-row: 1 / -1;
    position: sticky;
    top: calc(var(--nav) + (100svh - var(--nav) - var(--fig-h)) / 2);
    align-self: start;
    justify-self: center;
  }
  .chapter:not(:first-child) .chapter__shot { opacity: 0; }
  .chapter:not(:first-child) .chapter__shot.is-on { opacity: 1; }
  .chapter__shot { transition: opacity .5s var(--ease); }
}

@media (min-width: 900px) and (scripting: enabled) and (prefers-reduced-motion: reduce) {
  .chapter__shot { transition: none; }
}

/* Sections */

.section { padding-block: clamp(80px, 12vw, 168px); }
.section--tight { padding-block: clamp(56px, 8vw, 112px); }
.section__head { max-width: 40rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head .h2 { margin-top: 16px; }
.section__head .lede { margin-top: 18px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

.split__copy { max-width: 33rem; }
.split__copy .h2 { margin: 16px 0 18px; }
.split__copy p + p { margin-top: .9em; }
.split__copy p { color: var(--text-2); }
@media (min-width: 900px) {
  .split__media {
    --phone-h: min(74svh, 700px);
    --phone-w: calc(var(--phone-h) * var(--phone-ratio));
  }
}

/* Estimates */

.figure { margin: 28px 0 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.figure__eg { flex: 0 0 100%; font: 700 12px/1.2 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.figure__num {
  font-size: clamp(2.5rem, 1rem + 6.4vw, 5.4rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.figure__to { font-weight: 300; font-size: .6em; letter-spacing: 0; margin-inline: .18em; }
.figure__unit { font: 700 12px/1.3 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }

.legend { display: grid; gap: 14px; margin-top: 28px; padding: 22px 20px; border-radius: 20px; background: var(--surface); }
.legend__row { display: flex; align-items: center; gap: 16px; color: var(--value); font-size: 15px; line-height: 1.35; }
.legend__row svg { flex: none; width: 56px; height: 14px; }
.legend__row b { color: #fff; font-weight: 600; }

.provenance { display: grid; gap: 10px; margin: 20px 0 28px; }
.provenance li { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: 15px; }
.provenance .chip { min-width: 96px; justify-content: center; }

/* Privacy cards, platforms, FAQ */

.cards { display: grid; gap: 12px; }
.card { padding: 28px 24px 30px; border-radius: 24px; background: var(--surface); }
.card svg { width: 30px; height: 30px; margin-bottom: 22px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font: 800 1.25rem/1.15 var(--display); font-stretch: 125%; letter-spacing: -.005em; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 1rem; }
.privacy__note { margin-top: 28px; max-width: 40em; color: var(--text-2); }
.privacy__link { margin-top: 6px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.platforms { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.platform { padding: 22px 20px 24px; border: 1px solid var(--line-strong); border-radius: 20px; }
.platform h3 { font: 800 1.125rem/1.15 var(--display); font-stretch: 125%; margin-bottom: 8px; }
.platform p { font-size: .9375rem; color: var(--text-2); }
.platform--live { padding: 21px 19px 23px; border: 2px solid #fff; background: var(--surface); }
@media (min-width: 760px) { .platforms { grid-template-columns: repeat(4, 1fr); } }

.faq { border-top: 1px solid var(--line-strong); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 18px 0;
  font: 600 1.125rem/1.3 var(--ui);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; flex: none; width: 18px; height: 18px; transition: transform .25s var(--ease); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; border-radius: 1px; background: #fff; }
.faq__icon::after { transform: rotate(90deg); }
.faq details[open] .faq__icon { transform: rotate(45deg); }
.faq p { margin: 0 0 24px; max-width: 40em; color: var(--text-2); }

/* Closing call to action */

.final { padding-block: clamp(80px, 12vw, 160px); border-top: 1px solid var(--line); }
.final__actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.final__note { margin-top: 18px; font-size: 14px; color: var(--text-3); }

/* Landscape phones are short: less air between sections. */
@media (orientation: landscape) and (max-height: 520px) {
  .story__head, .section, .section--tight, .final { padding-block: 48px; }
}

/* Footer */

.footer { border-top: 1px solid var(--line); padding-block: 44px 56px; }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.footer__brand { display: inline-flex; align-items: center; min-height: 44px; }
.footer__brand img { height: 20px; width: auto; }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); font-size: 14px; text-decoration: none; }
.footer__links a:hover, .footer__links a[aria-current="page"] { color: #fff; }
.footer__legal { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--text-3); max-width: 46em; }

/* Prose pages: privacy, support, 404 */

.page-head { padding: calc(var(--nav) + clamp(48px, 9vw, 120px)) 0 clamp(28px, 5vw, 56px); }
.page-head__inner { max-width: 46rem; }
.page-head .h1 { margin: 16px 0 20px; }
.page-head:not(.page-head--lost) .container { max-width: calc(46rem + 2 * var(--pad)); }
.page-head--lost .page-head__inner { max-width: none; }
.page-head__actions { margin-top: 30px; }

/* The 404 page fills the window (footer at the bottom, no scroll when it fits) and, from 900px, puts the art beside the text. */
.is-lost { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.is-lost main { flex: 1 0 auto; display: flex; }
.page-head--lost { flex: 1 1 auto; display: flex; align-items: center; }
.page-head--lost .container { align-self: center; }
@media (min-width: 900px) {
  .page-head--lost .container { display: grid; grid-template-columns: var(--cols); column-gap: var(--gap); align-items: center; }
  .page-head--lost .lost { margin-top: 0; max-width: none; justify-self: center; }
}

.lost { margin-top: clamp(32px, 6vw, 64px); width: 100%; max-width: 640px; height: auto; }
.lost__solid { fill: none; stroke: var(--tracer); stroke-width: 5; stroke-linecap: round; }
.lost__dash { fill: none; stroke: var(--tracer); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 4 12; }
.lost__ring { fill: none; stroke: #fff; stroke-width: 3; stroke-dasharray: 6 7; }
.lost__ball { fill: #fff; }

.prose { padding-bottom: clamp(64px, 10vw, 120px); }
.prose__inner {
  max-width: calc(46rem + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: max(var(--pad), env(safe-area-inset-left)) max(var(--pad), env(safe-area-inset-right));
}
.prose__meta { margin: 0 0 32px; color: var(--text-3); font-size: .9375rem; }
.prose__section { padding-top: 32px; border-top: 1px solid var(--line); margin-top: 32px; }
.prose__section h2 { font: 800 1.375rem/1.2 var(--display); font-stretch: 125%; letter-spacing: -.005em; margin-bottom: 14px; }
.prose__section p { color: var(--value); }
.prose__section p + p { margin-top: 1em; }
.prose a { font-weight: 600; text-underline-offset: 3px; }
.prose-card { margin-bottom: 28px; padding: 26px 24px 28px; border-radius: 24px; background: var(--surface); }
.prose-card__label { font: 600 .9375rem/1.2 var(--ui); color: var(--text-2); }
.prose-card__mail { margin: 10px 0 14px; font: 700 clamp(1.05rem, .6rem + 2.4vw, 1.75rem)/1.25 var(--ui); overflow-wrap: anywhere; }
.prose-card__mail a { text-decoration: none; }
.prose-card__mail a:hover { text-decoration: underline; text-underline-offset: 5px; }
.prose-card__note { color: var(--value); font-size: .9375rem; }
.prose__end { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--text-3); font-size: .9375rem; }

/* Motion. Only opacity and transform, only on layers that move, nothing blurs over moving content.
   Everything here is an enhancement: with it removed the page reads the same. */

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes wipe { from { transform: translateX(-72px); visibility: visible; } to { transform: translateX(104%); visibility: hidden; } }
@keyframes screen-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes dim {
  0% { opacity: .6; transform: translateY(20px); }
  28%, 72% { opacity: 1; transform: none; }
  100% { opacity: .6; transform: translateY(-20px); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: up .85s var(--ease) both; }
  .hero__copy > :nth-child(1) { animation-delay: .04s; }
  .hero__copy > :nth-child(2) { animation-delay: .10s; }
  .hero__copy > :nth-child(3) { animation-delay: .18s; }
  .hero__copy > :nth-child(4) { animation-delay: .26s; }
  .hero__copy > :nth-child(5) { animation-delay: .32s; }
  .hero__shot { animation: up 1.1s .3s var(--ease) both; }

  .hero__wipe {
    display: block;
    position: absolute;
    inset: -2px -2px -2px 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0), #000 72px);
    animation: wipe 1.5s .45s cubic-bezier(.45, .05, .25, 1) both;
    will-change: transform;
  }
}

/* Scroll-driven entrances are for windows of 900px and up. Below that nothing is scroll-driven: a phone gets static
   content (the hero entrance and the tracer panel are the only motion). Every scroll-driven element is its own
   composited layer, and with the whole story animated a fast flick on a phone dropped single frames. */
@supports (animation-timeline: view()) {
  @media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
    .split__copy, .split__media, .cards, .platforms, .faq, .final__copy, .final__media {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
  /* The chapters rise in without script; in the sticky stage the rules after this block take over. */
  @media (min-width: 900px) and (scripting: none) and (prefers-reduced-motion: no-preference) {
    .chapter__text, .chapter__shot {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}

@supports (animation-timeline: view()) and (timeline-scope: --a) {
  @media (min-width: 900px) and (scripting: enabled) and (prefers-reduced-motion: no-preference) {
    .story__grid { timeline-scope: --c2, --c3, --c4, --c5, --c6, --c7, --c8, --c9; }
    .chapter__text {
      animation: dim linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
    .chapter__shot { animation: none; transition: none; }
    .chapter:nth-child(2) .chapter__text { view-timeline: --c2 block; }
    .chapter:nth-child(3) .chapter__text { view-timeline: --c3 block; }
    .chapter:nth-child(4) .chapter__text { view-timeline: --c4 block; }
    .chapter:nth-child(5) .chapter__text { view-timeline: --c5 block; }
    .chapter:nth-child(6) .chapter__text { view-timeline: --c6 block; }
    .chapter:nth-child(7) .chapter__text { view-timeline: --c7 block; }
    .chapter:nth-child(8) .chapter__text { view-timeline: --c8 block; }
    .chapter:nth-child(9) .chapter__text { view-timeline: --c9 block; }
    .chapter:nth-child(2) .chapter__shot { animation: screen-in linear both; animation-timeline: --c2; animation-range: cover 38% cover 48%; }
    .chapter:nth-child(3) .chapter__shot { animation: screen-in linear both; animation-timeline: --c3; animation-range: cover 38% cover 48%; }
    .chapter:nth-child(4) .chapter__shot { animation: screen-in linear both; animation-timeline: --c4; animation-range: cover 38% cover 48%; }
    .chapter:nth-child(5) .chapter__shot { animation: screen-in linear both; animation-timeline: --c5; animation-range: cover 38% cover 48%; }
    .chapter:nth-child(6) .chapter__shot { animation: screen-in linear both; animation-timeline: --c6; animation-range: cover 38% cover 48%; }
    .chapter:nth-child(7) .chapter__shot { animation: screen-in linear both; animation-timeline: --c7; animation-range: cover 38% cover 48%; }
    .chapter:nth-child(8) .chapter__shot { animation: screen-in linear both; animation-timeline: --c8; animation-range: cover 38% cover 48%; }
    .chapter:nth-child(9) .chapter__shot { animation: screen-in linear both; animation-timeline: --c9; animation-range: cover 38% cover 48%; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .link::after, .nav, .nav__links a, .faq__icon { transition: none; }
  .btn:active { transform: none; }
}
