/* Baller: one stylesheet for every page. Tokens mirror src/theme/tokens.ts in the app.
   No JavaScript anywhere: motion is CSS keyframes and, where the browser has them, scroll-driven animations.
   Everything that moves sits inside `prefers-reduced-motion: no-preference`; without it the page is complete and still. */

@font-face {
  font-family: "Unbounded";
  src: url("/fonts/unbounded-800-latin.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* The field, and what sits on it */
  --bg: #05070a;
  --bg-deep: #030405;
  --surface: #0c0f14;
  --surface-2: #12161c;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  /* Type colours (all AA on --bg; --muted is 6.5:1) */
  --chalk: #f4f2ec;
  --text: #c3c9d1;
  --muted: #8b94a1;

  /* Neon orange: the accent, its hot core, and the deeper tone buttons fall to */
  --orange: #ff620a;
  --orange-hot: #ff7a24;
  --orange-deep: #ec5200;
  --ember: #fff2e4;
  --glow: 255 98 10;

  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 5vw - 14px, 64px);
  --max: 1240px;
  --wrap: min(100% - 2 * var(--gutter), var(--max));
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Base ---------------------------------------------------------------------------------------------------------- */

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Film grain over everything, as on the store shots: the field reads as a print, not a flat fill. */
body::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background: url("/images/grain.svg") 0 0 / 160px 160px;
  opacity: 0.05;
}

main {
  flex: 1;
}

/* Wide decorations (glows, the trail's tail, tilted cards) may spill sideways; the page never scrolls sideways. */
html,
body {
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
p,
figure,
ul,
ol,
dl,
dd {
  margin: 0;
}

a {
  color: var(--chalk);
  text-decoration: underline;
  text-decoration-color: rgb(var(--glow) / 0.6);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: #ffb27e;
  text-decoration-color: var(--orange);
}

:focus-visible {
  outline: 2px solid var(--orange-hot);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--orange);
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--chalk);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.accent {
  color: var(--orange);
}

/* Header -------------------------------------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(5 7 10 / 0.72);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  backdrop-filter: saturate(150%) blur(18px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: var(--wrap);
  height: 60px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--chalk);
  text-decoration: none;
}

.brand:hover {
  color: var(--chalk);
}

.brand__ball {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 0 10px rgb(var(--glow) / 0.45));
}

.brand__word {
  font: 800 1.0625rem/1 var(--display);
  letter-spacing: 0.06em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav__link,
.site-nav a:not(.pill-link) {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:not(.pill-link):hover,
.site-nav a[aria-current="page"] {
  color: var(--chalk);
}

/* A quiet glass pill for the header CTA: chalk on dark is AA at any size, white on orange is not. */
.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px 9px 13px;
  border-radius: 999px;
  color: var(--chalk);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  background: rgb(var(--glow) / 0.1);
  box-shadow: inset 0 0 0 1px rgb(var(--glow) / 0.55), 0 0 18px -4px rgb(var(--glow) / 0.6);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.pill-link::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 2px rgb(var(--glow) / 0.25), 0 0 10px var(--orange);
}

.pill-link:hover {
  color: #fff;
  background: rgb(var(--glow) / 0.2);
  box-shadow: inset 0 0 0 1px var(--orange), 0 0 26px -4px rgb(var(--glow) / 0.85);
}

@media (max-width: 420px) {
  .site-nav__link {
    display: none;
  }
}

@media (min-width: 960px) {
  .site-header__inner {
    height: 72px;
  }

  .brand__ball {
    width: 28px;
    height: 28px;
  }
}

/* Buttons and the CTA block -------------------------------------------------------------------------------------- */

/* White on the brand orange is 3:1, so the label is large text (19px bold) on a fill a touch deeper than #FF620A:
   at least 3.2:1 wherever the letters sit. */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 26px 0 30px;
  border-radius: 999px;
  color: #fff;
  font: 700 1.1875rem/1 var(--body);
  letter-spacing: -0.005em;
  text-decoration: none;
  background: linear-gradient(180deg, #ff6510 0%, #f25600 42%, #de4a00 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.35),
    inset 0 -2px 0 rgb(0 0 0 / 0.12),
    0 0 0 1px rgb(255 140 70 / 0.35),
    0 12px 30px -8px rgb(var(--glow) / 0.75),
    0 0 60px -10px rgb(var(--glow) / 0.6);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, filter 0.25s ease;
}

.button:hover {
  color: #fff;
  filter: brightness(1.06) saturate(1.05);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.4),
    inset 0 -2px 0 rgb(0 0 0 / 0.12),
    0 0 0 1px rgb(255 160 90 / 0.5),
    0 18px 40px -8px rgb(var(--glow) / 0.85),
    0 0 80px -6px rgb(var(--glow) / 0.7);
}

.button:active {
  transform: translateY(0) scale(0.985);
}

.button:focus-visible {
  outline-color: var(--chalk);
  outline-offset: 4px;
  border-radius: 999px;
}

.button__arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.25s var(--ease-out);
}

.button:hover .button__arrow {
  transform: translateX(3px);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: clamp(28px, 3.4vw, 40px);
}

.cta--center {
  justify-content: center;
  flex-direction: column;
}

.cta__note {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.35;
}

/* The App Store badge, for launch day (README.md, "Launch day"). */
.store-badge {
  display: inline-block;
  border-radius: 12px;
}

.store-badge img {
  width: auto;
  height: 56px;
}

@media (max-width: 559px) {
  .hero .cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero .cta__note {
    text-align: center;
  }
}

/* Labels -------------------------------------------------------------------------------------------------------- */

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--chalk);
  font: 700 0.75rem/1 var(--body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow {
  gap: 10px;
  padding: 9px 14px 9px 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.04);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.eyebrow__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange);
}

.eyebrow__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgb(var(--glow) / 0.6);
  opacity: 0;
}

.kicker {
  margin-bottom: clamp(18px, 2vw, 24px);
  color: var(--orange-hot);
}

/* A short neon tube between the number and the name. */
.kicker__num {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.kicker__num::after {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
  box-shadow: 0 0 6px var(--orange), 0 0 14px rgb(var(--glow) / 0.6);
}

/* Bullets as neon dashes */
.ticks {
  display: grid;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 32px);
  padding: 0;
  list-style: none;
  color: var(--chalk);
  font-size: 1rem;
  line-height: 1.45;
}

.ticks li {
  position: relative;
  padding-left: 30px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgb(var(--glow) / 0.2), var(--orange) 40%, var(--ember));
  box-shadow: 0 0 8px rgb(var(--glow) / 0.9);
}

/* The phone: a CSS iPhone with a titanium band, a black bezel, the Dynamic Island and a glass reflection ---------- */

.phone {
  --phone-w: 300px;
  container-type: inline-size;
  position: relative;
  width: var(--phone-w);
}

.phone__body {
  position: relative;
  padding: 1.25cqw;
  border-radius: 16.4cqw;
  background:
    linear-gradient(155deg, #6c7078 0%, #2e3036 9%, #1a1b1f 30%, #0f1012 55%, #1d1f23 80%, #5b5f66 100%);
  box-shadow:
    inset 0 0 0 0.3cqw rgb(255 255 255 / 0.24),
    0 0 0 0.25cqw rgb(0 0 0 / 0.7),
    0 3cqw 6cqw -1cqw rgb(0 0 0 / 0.55),
    0 18cqw 36cqw -8cqw rgb(0 0 0 / 0.9);
}

/* Side buttons: volume up and down (one bar and its shadow copy) on the left, power on the right. */
.phone__body::before,
.phone__body::after {
  content: "";
  position: absolute;
  width: 0.9cqw;
  border-radius: 0.6cqw;
  background: #2d3036;
}

.phone__body::before {
  left: -0.75cqw;
  top: 30cqw;
  height: 13cqw;
  box-shadow: 0 17cqw 0 #2d3036, 0 -12cqw 0 -0.05cqw #2d3036;
}

.phone__body::after {
  right: -0.75cqw;
  top: 38cqw;
  height: 21cqw;
}

.phone__glass {
  padding: 2.4cqw;
  border-radius: 15.2cqw;
  background: #010102;
  box-shadow: inset 0 0 0 0.25cqw rgb(255 255 255 / 0.06);
}

.phone__screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1206 / 2622;
  border-radius: 12.8cqw;
  background: var(--bg);
  isolation: isolate;
}

.phone__screen img {
  width: 100%;
}

/* The Dynamic Island, where every capture had its own (painted out of the images). */
.phone__screen::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 3.25cqw;
  left: 50%;
  width: 27.7cqw;
  height: 8.45cqw;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
  box-shadow: inset 0 0 0 0.2cqw rgb(255 255 255 / 0.03);
}

/* Glass: a soft diagonal reflection and a hairline at the edge of the display. */
.phone__screen::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(118deg, rgb(255 255 255 / 0.11) 0%, rgb(255 255 255 / 0.035) 26%, rgb(255 255 255 / 0) 42%);
  box-shadow: inset 0 0 0 0.25cqw rgb(255 255 255 / 0.05);
}

/* Media cards: what the app exports (clip frames, the share card) -------------------------------------------------- */

.media {
  position: relative;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.1),
    0 40px 80px -24px rgb(0 0 0 / 0.95),
    0 12px 30px -12px rgb(0 0 0 / 0.7);
}

.media img {
  width: 100%;
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
  background: linear-gradient(125deg, rgb(255 255 255 / 0.08), rgb(255 255 255 / 0) 34%);
}

/* Hero -------------------------------------------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(28px, 5vw, 40px) 0 clamp(56px, 8vw, 72px);
}

/* Floodlights: light from above, and the warmth of the neon off to the side. */
.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -120px 0 0;
  background:
    radial-gradient(70% 55% at 50% 0%, rgb(255 255 255 / 0.07), rgb(255 255 255 / 0) 70%),
    radial-gradient(40% 40% at 85% 30%, rgb(var(--glow) / 0.1), rgb(var(--glow) / 0) 70%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  gap: clamp(40px, 8vw, 56px);
  width: var(--wrap);
  margin-inline: auto;
}

.hero__copy {
  container-type: inline-size;
  position: relative;
  z-index: 2;
}

.hero__title {
  margin-top: clamp(22px, 3vw, 30px);
  color: var(--chalk);
  font: 800 min(7.25rem, 19.6cqw) / 0.9 var(--display);
  letter-spacing: -0.042em;
}

.hero__title .line {
  display: block;
}

.hero__lede {
  max-width: 30rem;
  margin-top: clamp(20px, 2.6vw, 30px);
  color: var(--text);
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem);
  line-height: 1.5;
}

.hero__stage {
  position: relative;
  display: flex;
  justify-content: center;
}

/* The art is one box that scales as a whole: every position below is in its own widths (cqw). */
.hero__art {
  container-type: inline-size;
  position: relative;
  width: min(100%, 580px, (100svh - 120px) * 0.746);
  aspect-ratio: 100 / 134;
}

.hero__haze {
  position: absolute;
  z-index: -1;
  inset: -12cqw -30cqw -6cqw -40cqw;
  background:
    radial-gradient(closest-side at 64% 56%, rgb(var(--glow) / 0.3), rgb(var(--glow) / 0.08) 55%, rgb(var(--glow) / 0) 100%),
    radial-gradient(closest-side at 36% 22%, rgb(var(--glow) / 0.22), rgb(var(--glow) / 0) 100%);
  pointer-events: none;
}

.contrail {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.contrail__spark {
  stroke-dasharray: 0.07 2;
  stroke-dashoffset: 0.07;
  opacity: 0;
}

.hero__ball {
  position: absolute;
  z-index: 4;
  left: 3cqw;
  top: 2cqw;
  width: 40cqw;
  filter: drop-shadow(0 4cqw 5cqw rgb(0 0 0 / 0.55)) drop-shadow(0 0 7cqw rgb(var(--glow) / 0.35));
}

/* The ring the app pulses on the ball at every touch. */
.rings {
  position: absolute;
  z-index: 2;
  left: 3cqw;
  top: 2cqw;
  width: 40cqw;
  aspect-ratio: 1;
  pointer-events: none;
}

.rings span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 0.35cqw solid rgb(255 128 52 / 0.85);
  box-shadow: 0 0 2.4cqw rgb(var(--glow) / 0.6), inset 0 0 2.4cqw rgb(var(--glow) / 0.4);
  opacity: 0;
}

.rings span:first-child {
  opacity: 0.55;
  transform: scale(1.16);
}

.hero__phone {
  --phone-w: 57cqw;
  position: absolute;
  z-index: 1;
  left: 41cqw;
  top: 15cqw;
}

.hero__phone .phone__body {
  box-shadow:
    inset 0 0 0 0.3cqw rgb(255 255 255 / 0.24),
    0 0 0 0.25cqw rgb(0 0 0 / 0.7),
    0 3cqw 6cqw -1cqw rgb(0 0 0 / 0.55),
    0 18cqw 36cqw -8cqw rgb(0 0 0 / 0.9),
    0 0 30cqw -6cqw rgb(var(--glow) / 0.45);
}

/* A touch label in the app's own style: chalk pill, black caps. */
.touch-pill {
  position: absolute;
  z-index: 5;
  left: 3cqw;
  top: 117cqw;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.3em;
  border-radius: 999px;
  background: var(--chalk);
  color: #0b0d10;
  font: 700 clamp(0.6875rem, 2.3cqw, 0.875rem) / 1 var(--body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 10px 30px -8px rgb(0 0 0 / 0.8), 0 0 0 1px rgb(255 255 255 / 0.4);
}

.touch-pill b {
  font-weight: 800;
}

@media (min-width: 960px) {
  .hero {
    padding: 0 0 clamp(40px, 5vh, 64px);
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
    align-items: center;
    column-gap: clamp(32px, 4vw, 72px);
    min-height: calc(100svh - 72px);
  }

  .hero__copy {
    padding-block: 48px 72px;
  }
}

/* The touch log, as a stadium's perimeter board ------------------------------------------------------------------ */

.ticker {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background-color: #06080b;
  background-image: radial-gradient(rgb(255 255 255 / 0.07) 0.7px, transparent 1px);
  background-size: 5px 5px;
}

.ticker::before,
.ticker::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: clamp(40px, 12vw, 160px);
  pointer-events: none;
}

.ticker::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), rgb(5 7 10 / 0));
}

.ticker::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), rgb(5 7 10 / 0));
}

.ticker__track {
  display: flex;
  width: max-content;
}

.ticker__list {
  display: flex;
  align-items: center;
  padding: 0;
  list-style: none;
}

.ticker__list li {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 20px 0 20px 28px;
  color: rgb(244 242 236 / 0.52);
  font: 700 0.8125rem/1 var(--body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker__list li::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.16);
}

/* Every tenth touch lights up, as it does on the run screen. */
.ticker__list li.is-ten {
  color: var(--ember);
  font-size: 0.9375rem;
  text-shadow: 0 0 4px var(--orange), 0 0 14px rgb(var(--glow) / 0.95), 0 0 30px rgb(var(--glow) / 0.6);
}

/* Feature sections --------------------------------------------------------------------------------------------- */

.feature {
  position: relative;
  padding-top: clamp(96px, 13vw, 176px);
}

.feature__inner {
  display: grid;
  gap: clamp(44px, 7vw, 64px);
  width: var(--wrap);
  margin-inline: auto;
}

.feature__copy {
  container-type: inline-size;
  position: relative;
  z-index: 2;
}

.feature__title {
  color: var(--chalk);
  font: 800 min(4.5rem, 11.7cqw) / 0.98 var(--display);
  letter-spacing: -0.038em;
  text-wrap: balance;
}

.feature__title .line {
  display: block;
}

.feature__lede {
  max-width: 31rem;
  margin-top: clamp(18px, 2.2vw, 26px);
  color: var(--text);
  font-size: clamp(1.0625rem, 0.98rem + 0.36vw, 1.25rem);
  line-height: 1.55;
}

.feature__art {
  position: relative;
}

@media (min-width: 960px) {
  .feature__inner {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: center;
  }

  .feature__copy {
    grid-column: 1 / span 5;
  }

  .feature__art {
    grid-column: 7 / span 6;
  }

  /* Mirrored: art on the left. */
  .feature--crew .feature__copy {
    grid-column: 8 / span 5;
    grid-row: 1;
  }

  .feature--crew .feature__art {
    grid-column: 1 / span 6;
    grid-row: 1;
  }
}

/* 01 The clip: two frames of the exported clip, tilted like cards in a hand. */
.clip-art {
  container-type: inline-size;
  position: relative;
  isolation: isolate;
  width: min(100%, 560px);
  aspect-ratio: 100 / 114;
  margin-inline: auto;
}

.clip-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 -10cqw;
  background: radial-gradient(closest-side at 50% 50%, rgb(var(--glow) / 0.2), rgb(var(--glow) / 0) 100%);
}

.clip-art__touch {
  position: absolute;
  left: 4cqw;
  top: 2cqw;
  width: 58cqw;
  border-radius: 6cqw;
  rotate: -4deg;
}

.clip-art__end {
  position: absolute;
  z-index: 2;
  left: 50cqw;
  top: 29cqw;
  width: 46cqw;
  border-radius: 5cqw;
  rotate: 5deg;
}

.player-bar {
  position: absolute;
  z-index: 2;
  left: 4cqw;
  bottom: 4cqw;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.7em 1.1em 0.7em 0.9em;
  border-radius: 999px;
  color: var(--chalk);
  background: rgb(10 12 15 / 0.6);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18), inset 0 0 0 1px rgb(255 255 255 / 0.06);
  font: 700 clamp(0.6875rem, 2.4cqw, 0.9375rem) / 1 var(--body);
  font-variant-numeric: tabular-nums;
}

.player-bar svg {
  width: 1.15em;
  height: 1.15em;
}

.player-bar .player-bar__sound {
  width: 1.35em;
  height: 1.35em;
  margin-left: 0.2em;
  opacity: 0.8;
}

/* 02 The card: the share card, and its numbers spelled out. */
.card-art {
  display: grid;
  gap: clamp(36px, 6vw, 56px);
  justify-items: center;
}

.share-card {
  width: min(78%, 340px);
  border-radius: clamp(17px, 4.6vw, 23px);
  rotate: 2deg;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.1),
    0 40px 80px -24px rgb(0 0 0 / 0.95),
    0 0 90px -20px rgb(var(--glow) / 0.45);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  width: 100%;
}

.stat {
  padding: 18px 0 20px;
  border-top: 1px solid var(--line-strong);
}

.stat dt {
  color: var(--muted);
  font: 700 0.6875rem/1 var(--body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.stat dd {
  margin-top: 12px;
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.stat__value {
  display: block;
  margin-bottom: 8px;
  color: var(--chalk);
  font: 800 clamp(1.75rem, 1.2rem + 2vw, 2.5rem) / 1 var(--display);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat__value small {
  margin-left: 0.18em;
  color: var(--orange);
  font-size: 0.42em;
  letter-spacing: 0;
}

@media (min-width: 960px) {
  .feature--card .feature__copy {
    grid-column: 1 / span 5;
  }

  .card-art {
    grid-column: 6 / span 7;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    justify-items: stretch;
  }

  .share-card {
    width: min(100%, 340px);
    justify-self: center;
  }

  .stats {
    grid-template-columns: 1fr;
  }
}

/* 03 The crew: the Feed, sinking into the dark, and a player's page lifted out of it. */
.crew-art {
  container-type: inline-size;
  position: relative;
  isolation: isolate;
  width: min(100%, 540px);
  aspect-ratio: 100 / 104;
  margin-inline: auto;
}

.crew-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 -12cqw;
  background:
    radial-gradient(closest-side at 50% 40%, rgb(var(--glow) / 0.16), rgb(var(--glow) / 0) 100%),
    repeating-radial-gradient(circle at 42% 34%, rgb(255 255 255 / 0) 0 11cqw, rgb(255 255 255 / 0.045) 11cqw calc(11cqw + 1px));
  -webkit-mask-image: radial-gradient(closest-side at 42% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(closest-side at 42% 40%, #000 30%, transparent 100%);
}

.crew-art__phone {
  --phone-w: 62cqw;
  position: absolute;
  left: 6cqw;
  top: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 46%, rgb(0 0 0 / 0) 69%);
  mask-image: linear-gradient(180deg, #000 46%, rgb(0 0 0 / 0) 69%);
}

.player-card {
  position: absolute;
  z-index: 2;
  left: 40cqw;
  top: 58cqw;
  width: 56cqw;
  border-radius: 4.8cqw;
  background: transparent;
  rotate: -2deg;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.12),
    0 30px 70px -20px rgb(0 0 0 / 0.95),
    0 0 70px -24px rgb(var(--glow) / 0.5);
}

/* 04 The ranks: the seven badges on a rising contrail, and the weekly board. */
.ranks-art {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: center;
}

.ranks-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 10% -20%;
  background: radial-gradient(closest-side, rgb(var(--glow) / 0.16), rgb(var(--glow) / 0));
  pointer-events: none;
}

.ranks-art__phone {
  --phone-w: min(68vw, 300px);
}

.ladder {
  position: relative;
  z-index: 1;
}

.ladder__label {
  color: var(--muted);
  font: 700 0.6875rem/1 var(--body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ladder__scroll {
  margin: 18px calc(var(--gutter) * -1) 0;
  padding: 8px var(--gutter) 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.ladder__scroll::-webkit-scrollbar {
  display: none;
}

.ladder__track {
  container-type: inline-size;
  position: relative;
  width: max(100%, 760px);
  aspect-ratio: 1000 / 460;
}

.ladder__trail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Behind Top Baller: the spotlight the trail runs into. */
.ladder__track::before {
  content: "";
  position: absolute;
  right: -6cqw;
  top: -12cqw;
  width: 36cqw;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgb(var(--glow) / 0.3), rgb(var(--glow) / 0) 100%);
  pointer-events: none;
}

.ladder__steps {
  position: absolute;
  inset: 0;
  padding: 0;
  list-style: none;
}

.rank {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 16cqw;
  transform: translateX(-50%);
  text-align: center;
}

.rank img {
  width: auto;
  max-width: none;
  filter: drop-shadow(0 1.2cqw 1.6cqw rgb(0 0 0 / 0.6));
}

.rank__name {
  margin-top: 1.1cqw;
  color: var(--chalk);
  font: 700 max(0.75rem, 1.55cqw) / 1.2 var(--body);
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.rank__aura {
  margin-top: 0.35em;
  color: var(--muted);
  font: 600 max(0.6875rem, 1.25cqw) / 1.2 var(--body);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Each badge's centre sits on the trail's path (both are in the track's 1000 x 460 units). */
.rank--1 { left: 7%; top: 63.7%; }
.rank--2 { left: 21.4%; top: 55.76%; }
.rank--3 { left: 35.7%; top: 47.39%; }
.rank--4 { left: 50%; top: 38.59%; }
.rank--5 { left: 64.3%; top: 28.48%; }
.rank--6 { left: 78.6%; top: 17.5%; }
.rank--7 { left: 93%; top: 4.57%; }

.rank--1 img { height: 10.6cqw; }
.rank--2 img { height: 11.5cqw; }
.rank--3 img { height: 12.4cqw; }
.rank--4 img { height: 12.9cqw; }
.rank--5 img { height: 13.8cqw; }
.rank--6 img { height: 14.7cqw; }
.rank--7 img { height: 17cqw; }

.rank--7 .rank__name {
  color: #ffd9b8;
  text-shadow: 0 0 14px rgb(var(--glow) / 0.8);
}

.ladder__note {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (min-width: 960px) {
  .feature--ranks .feature__inner {
    row-gap: 40px;
  }

  .feature--ranks .feature__copy {
    grid-column: 1 / span 8;
    grid-row: 1;
  }

  .feature--ranks .feature__title {
    font-size: min(4.5rem, 8.6cqw);
  }

  .ladder {
    grid-column: 1 / span 8;
    grid-row: 2;
  }

  .ladder__scroll {
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }

  .ranks-art {
    grid-column: 9 / span 4;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .ranks-art__phone {
    --phone-w: min(100%, 300px);
  }
}

.title-arrow {
  display: inline-block;
  width: 0.78em;
  height: 0.6em;
  margin: 0 0.04em 0 0.06em;
  vertical-align: 0.02em;
  overflow: visible;
  stroke: var(--orange);
  filter: drop-shadow(0 0 0.08em rgb(var(--glow) / 0.8));
}

/* 05 The path: the Train tab in front, the Me tab behind, and the streak and daily emblems. */
.path-art {
  container-type: inline-size;
  position: relative;
  isolation: isolate;
  width: min(100%, 560px);
  aspect-ratio: 100 / 124;
  margin-inline: auto;
}

.path-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 -8cqw;
  background: radial-gradient(closest-side at 60% 50%, rgb(var(--glow) / 0.18), rgb(var(--glow) / 0) 100%);
}

.path-art__train {
  --phone-w: 56cqw;
  position: absolute;
  z-index: 2;
  left: 38cqw;
  top: 5cqw;
}

.path-art__me {
  --phone-w: 44cqw;
  position: absolute;
  z-index: 1;
  left: 3cqw;
  top: 24cqw;
  rotate: -6deg;
}

.path-art__me .phone__screen img {
  opacity: 0.82;
}

.path-art__flame {
  position: absolute;
  z-index: 3;
  left: 80cqw;
  top: 80cqw;
  width: 19cqw;
  rotate: 12deg;
  filter: drop-shadow(0 3cqw 4cqw rgb(0 0 0 / 0.6)) drop-shadow(0 0 6cqw rgb(var(--glow) / 0.45));
}

.path-art__sun {
  position: absolute;
  z-index: 3;
  left: 26cqw;
  top: 0;
  width: 18cqw;
  rotate: -10deg;
  filter: drop-shadow(0 3cqw 4cqw rgb(0 0 0 / 0.6)) drop-shadow(0 0 6cqw rgb(255 190 40 / 0.35));
}

/* After every session: the celebration cards, in a row. */
.celebrate {
  width: var(--wrap);
  margin: clamp(80px, 10vw, 128px) auto 0;
}

.celebrate__head {
  display: grid;
  gap: 14px;
  max-width: 40rem;
}

.celebrate__title {
  color: var(--chalk);
  font: 800 clamp(1.5rem, 1rem + 2vw, 2.25rem) / 1.1 var(--display);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.celebrate__lede {
  color: var(--text);
}

.celebrate__row {
  display: flex;
  gap: 14px;
  margin: 36px calc(var(--gutter) * -1) 0;
  padding: 12px var(--gutter) 28px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.celebrate__row::-webkit-scrollbar {
  display: none;
}

.celebrate__item {
  flex: 0 0 min(40vw, 200px);
  scroll-snap-align: start;
}

.celebrate__cap {
  margin-top: 16px;
  color: var(--muted);
  font: 700 0.6875rem/1.2 var(--body);
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.celebrate__item .phone {
  --phone-w: 100%;
}

@media (min-width: 960px) {
  .celebrate__row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 28px);
    align-items: start;
    margin-inline: 0;
    padding: 24px 0 0;
    overflow: visible;
  }

  /* An arch across the row, the middle card highest. */
  .celebrate__item:nth-child(1),
  .celebrate__item:nth-child(5) {
    margin-top: 88px;
  }

  .celebrate__item:nth-child(2),
  .celebrate__item:nth-child(4) {
    margin-top: 36px;
  }
}

/* Hands-free -------------------------------------------------------------------------------------------------- */

.handsfree {
  padding-top: clamp(96px, 13vw, 168px);
}

.handsfree__inner {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 28px;
  width: var(--wrap);
  margin-inline: auto;
  padding: clamp(28px, 5vw, 64px);
  border-radius: clamp(24px, 3vw, 36px);
  background:
    radial-gradient(60% 90% at 0% 50%, rgb(var(--glow) / 0.16), rgb(var(--glow) / 0) 70%),
    linear-gradient(180deg, rgb(255 255 255 / 0.035), rgb(255 255 255 / 0.01)),
    var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgb(255 255 255 / 0.06);
}

.handsfree__icon svg {
  width: clamp(112px, 16vw, 168px);
  overflow: visible;
  filter: drop-shadow(0 0 6px rgb(var(--glow) / 0.75)) drop-shadow(0 0 22px rgb(var(--glow) / 0.4));
}

.handsfree__track {
  fill: none;
  stroke: rgb(255 255 255 / 0.1);
  stroke-width: 5;
}

.handsfree__ring {
  fill: none;
  stroke: var(--orange);
  stroke-width: 5;
  stroke-linecap: round;
}

.neon-tube {
  stroke: var(--orange);
  stroke-width: 4.6;
}

.neon-core {
  stroke: var(--ember);
  stroke-width: 1.5;
}

.handsfree__copy .kicker {
  margin-bottom: 16px;
}

.handsfree__title {
  color: var(--chalk);
  font: 800 clamp(1.75rem, 1.1rem + 2.6vw, 2.875rem) / 1.04 var(--display);
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.handsfree__copy p:not(.kicker) {
  max-width: 34rem;
  margin-top: 16px;
}

.handsfree__copy .handsfree__small {
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (min-width: 760px) {
  .handsfree__inner {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(40px, 6vw, 72px);
  }
}

/* Privacy ---------------------------------------------------------------------------------------------------- */

.private {
  padding-top: clamp(96px, 13vw, 168px);
}

.private__inner {
  width: var(--wrap);
  margin-inline: auto;
}

.private__title {
  color: var(--chalk);
  font: 800 clamp(1.875rem, 1.2rem + 3vw, 3.25rem) / 1 var(--display);
  letter-spacing: -0.035em;
}

.private__list {
  display: grid;
  gap: 14px;
  margin-top: clamp(28px, 4vw, 44px);
  padding: 0;
  list-style: none;
}

.private__list li {
  padding: clamp(24px, 3vw, 32px);
  border-radius: 24px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.035), rgb(255 255 255 / 0.012));
  box-shadow: inset 0 0 0 1px var(--line);
}

.private__list svg {
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  overflow: visible;
  filter: drop-shadow(0 0 3px rgb(var(--glow) / 0.85)) drop-shadow(0 0 12px rgb(var(--glow) / 0.45));
}

.private__list .neon-tube {
  stroke-width: 3.2;
}

.private__list .neon-core {
  stroke-width: 1.1;
}

.private__list h3 {
  color: var(--chalk);
  font: 800 1.125rem/1.2 var(--display);
  letter-spacing: -0.02em;
}

.private__list p {
  margin-top: 8px;
}

.private__link {
  margin-top: 24px;
  font-weight: 600;
}

@media (min-width: 760px) {
  .private__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* The final call ------------------------------------------------------------------------------------------------ */

.finale {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(120px, 16vw, 200px) 0 clamp(96px, 12vw, 160px);
  text-align: center;
}

.finale::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 8%;
  width: min(1400px, 200vw);
  height: 100%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side at 50% 52%, rgb(var(--glow) / 0.24), rgb(var(--glow) / 0.06) 55%, rgb(var(--glow) / 0) 100%);
  pointer-events: none;
}

.finale__inner {
  width: var(--wrap);
  margin-inline: auto;
}

.finale__icon {
  width: clamp(84px, 9vw, 104px);
  margin: 0 auto clamp(28px, 4vw, 40px);
  border-radius: 23%;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.14), 0 24px 60px -14px rgb(var(--glow) / 0.65), 0 0 80px -20px rgb(var(--glow) / 0.6);
}

.finale__title {
  color: var(--chalk);
  font: 800 clamp(3rem, 12.4vw, 8.75rem) / 0.95 var(--display);
  letter-spacing: -0.045em;
}

/* The slammed number from the run screen: chalk in front, a big orange ghost behind. */
.slam {
  position: relative;
  z-index: 0;
  display: inline-block;
}

.slam::before {
  content: attr(data-n);
  content: attr(data-n) / "";
  position: absolute;
  z-index: -1;
  inset: 0;
  color: var(--orange);
  opacity: 0.5;
  transform: scale(1.4);
  filter: blur(1.5px);
  text-shadow: 0 0 0.12em rgb(var(--glow) / 0.8);
}

.finale__lede {
  max-width: 30rem;
  margin: clamp(20px, 2.6vw, 28px) auto 0;
  font-size: clamp(1.0625rem, 0.98rem + 0.36vw, 1.25rem);
}

/* Footer ----------------------------------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}

/* The wordmark, huge and outlined, running off the bottom of the page. */
.site-footer::after {
  content: "BALLER";
  content: "BALLER" / "";
  position: absolute;
  left: 50%;
  bottom: -0.3em;
  z-index: 0;
  color: transparent;
  font: 800 clamp(5rem, 19vw, 20rem) / 1 var(--display);
  letter-spacing: 0.02em;
  white-space: nowrap;
  transform: translateX(-50%);
  -webkit-text-stroke: 1px rgb(255 255 255 / 0.07);
  pointer-events: none;
}

.site-footer__inner {
  position: relative;
  z-index: 1;
}

.site-footer__inner {
  display: grid;
  gap: 22px;
  width: var(--wrap);
  margin-inline: auto;
  padding-block: 36px clamp(72px, 15vw, 210px);
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer__brand {
  display: grid;
  gap: 10px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin-left: -10px;
}

.footer-nav a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  color: var(--chalk);
}

@media (min-width: 760px) {
  .site-footer__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .site-footer__legal {
    grid-column: 1 / -1;
    padding-top: 22px;
    border-top: 1px solid var(--line);
  }
}

/* Documents: support, privacy, 404 ----------------------------------------------------------------------------- */

.doc {
  position: relative;
  isolation: isolate;
  width: min(100% - 2 * var(--gutter), 46rem);
  margin-inline: auto;
  padding: clamp(40px, 8vw, 88px) 0 clamp(72px, 10vw, 120px);
}

.doc::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -160px;
  width: min(1100px, 100vw);
  height: 640px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 50% 25%, rgb(255 255 255 / 0.06), rgb(255 255 255 / 0)),
    radial-gradient(closest-side at 72% 30%, rgb(var(--glow) / 0.12), rgb(var(--glow) / 0));
  pointer-events: none;
}

.doc h1 {
  color: var(--chalk);
  font: 800 clamp(2.5rem, 1.6rem + 4.4vw, 4.25rem) / 1 var(--display);
  letter-spacing: -0.04em;
}

/* A neon tube under the page title. */
.doc h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: clamp(20px, 3vw, 28px);
  border-radius: 3px;
  background: linear-gradient(90deg, var(--orange), var(--ember));
  box-shadow: 0 0 10px var(--orange), 0 0 26px rgb(var(--glow) / 0.6);
}

.doc .meta {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.doc .lede {
  margin-top: 22px;
  color: var(--chalk);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.5;
}

.doc h2 {
  margin: 0 0 14px;
  color: var(--chalk);
  font: 800 clamp(1.125rem, 1rem + 0.5vw, 1.3125rem) / 1.3 var(--display);
  letter-spacing: -0.02em;
}

.doc p,
.doc ul {
  margin: 0 0 14px;
}

.doc ul {
  padding: 0;
  list-style: none;
}

.doc li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 26px;
}

.doc li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
  box-shadow: 0 0 6px rgb(var(--glow) / 0.9);
}

.doc strong {
  color: var(--chalk);
  font-weight: 650;
}

.doc section {
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.doc section > :last-child,
.doc li > :last-child {
  margin-bottom: 0;
}

.label {
  margin: 0 0 12px;
  color: var(--muted);
  font: 700 0.75rem/1 var(--body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.panel {
  position: relative;
  overflow: hidden;
  margin-top: 40px;
  padding: clamp(24px, 4vw, 36px);
  border-radius: 28px;
  background:
    radial-gradient(80% 120% at 100% 0%, rgb(var(--glow) / 0.12), rgb(var(--glow) / 0) 60%),
    linear-gradient(180deg, rgb(255 255 255 / 0.04), rgb(255 255 255 / 0.015)),
    var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 30px 60px -30px rgb(0 0 0 / 0.8);
}

/* Support: the address is the hero of the page. */
.contact .email {
  display: inline-block;
  color: var(--chalk);
  font: 800 clamp(1.125rem, 0.8rem + 2.6vw, 1.75rem) / 1.25 var(--display);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.24em;
}

.contact .email:hover {
  color: #ffb27e;
}

.contact p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Privacy: the short version, as a spec sheet. */
.summary .verdict {
  margin: 0;
  color: var(--chalk);
  font: 800 clamp(1.375rem, 1.1rem + 1.4vw, 1.875rem) / 1.15 var(--display);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.summary .verdict + p {
  margin: 12px 0 0;
}

.doc .facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 24px 0 0;
  border-top: 1px solid var(--line);
}

.doc .facts li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  padding: 13px 8px 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--chalk);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}

.doc .facts li::before {
  position: static;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateY(-1px);
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
}

@media (min-width: 640px) {
  .doc .facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.doc .home-link {
  margin-top: 32px;
}

/* The 404 */
.lost {
  text-align: left;
}

.lost__ball {
  width: clamp(120px, 24vw, 180px);
  margin-bottom: 28px;
  filter: drop-shadow(0 20px 30px rgb(0 0 0 / 0.6)) drop-shadow(0 0 40px rgb(var(--glow) / 0.35));
}

/* Motion --------------------------------------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  /* Page load: the copy rises in, line by line. */
  .hero__copy .eyebrow,
  .hero__title .line,
  .hero__lede,
  .hero .cta {
    animation: rise 1s var(--ease-out) both;
  }

  .hero__title .line:nth-child(1) { animation-delay: 0.08s; }
  .hero__title .line:nth-child(2) { animation-delay: 0.16s; }
  .hero__title .line:nth-child(3) { animation-delay: 0.24s; }
  .hero__lede { animation-delay: 0.34s; }
  .hero .cta { animation-delay: 0.42s; }

  .eyebrow__dot::after {
    animation: ping 2.4s var(--ease-out) 1.2s infinite;
  }

  /* The ball arrives on its trail, then floats. */
  .hero__ball {
    animation:
      ball-in 1.25s var(--ease-out) 0.35s both,
      float 6.5s var(--ease-in-out) 1.6s infinite;
  }

  .contrail__reveal {
    stroke-dasharray: 1 1;
    stroke-dashoffset: 1;
    animation: draw 1.5s var(--ease-out) 0.2s forwards;
  }

  .contrail__spark {
    animation: spark 4.2s linear 2.2s infinite;
  }

  .rings span,
  .rings span:first-child {
    opacity: 0;
    transform: none;
    animation: ring 3.6s var(--ease-out) infinite;
  }

  .rings span:nth-child(1) { animation-delay: 1.5s; }
  .rings span:nth-child(2) { animation-delay: 2.7s; }
  .rings span:nth-child(3) { animation-delay: 3.9s; }

  .hero__phone {
    animation: phone-in 1.3s var(--ease-out) 0.15s both;
  }

  .touch-pill {
    animation: pill-in 0.8s var(--ease-out) 1.25s both;
  }

  /* The perimeter board runs. */
  .ticker__track {
    animation: ticker 70s linear infinite;
  }

  .ticker:hover .ticker__track {
    animation-play-state: paused;
  }

  /* Hands-free: the ring on Again fills while the hand is up. */
  .handsfree__ring {
    stroke-dasharray: 1 1;
    stroke-dashoffset: 1;
    animation: hold 3.6s var(--ease-in-out) infinite;
  }

  .handsfree__hand {
    transform-origin: 60px 90px;
    animation: hand 3.6s var(--ease-in-out) infinite;
  }

  .path-art__flame {
    animation: bob 5.5s var(--ease-in-out) infinite;
  }

  .path-art__sun {
    animation: bob 6.5s var(--ease-in-out) 0.8s infinite;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
}

@keyframes ping {
  0% {
    opacity: 0.9;
    transform: scale(0.6);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.8);
  }
}

@keyframes ball-in {
  from {
    opacity: 0;
    translate: -14cqw 38cqw;
    scale: 0.55;
  }
  60% {
    opacity: 1;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-2.2cqw) rotate(-6deg);
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes spark {
  0% {
    stroke-dashoffset: 0.07;
    opacity: 0;
  }
  8% {
    opacity: 0.9;
  }
  30% {
    opacity: 1;
  }
  38% {
    stroke-dashoffset: -0.97;
    opacity: 0;
  }
  100% {
    stroke-dashoffset: -0.97;
    opacity: 0;
  }
}

@keyframes ring {
  0% {
    opacity: 0;
    transform: scale(0.94);
  }
  12% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: scale(1.8);
  }
}

@keyframes phone-in {
  from {
    opacity: 0;
    transform: translateY(8cqw) rotate(2deg);
  }
}

@keyframes pill-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.92);
  }
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

@keyframes hold {
  0%,
  12% {
    stroke-dashoffset: 1;
    opacity: 1;
  }
  62% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  80% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
  100% {
    stroke-dashoffset: 1;
    opacity: 0;
  }
}

@keyframes hand {
  0%,
  100% {
    transform: translateY(6px);
    opacity: 0.55;
  }
  12%,
  70% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2.4cqw);
  }
}

/* Scroll-driven, where the browser has it: sections settle in as they enter, the ladder's trail climbs with the page
   and the 67 slams down. Without support (or with reduced motion), all of it is simply there. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: settle linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 34%;
    }

    .feature__copy > * {
      animation: lift linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 26%;
    }

    .celebrate__item {
      animation: settle linear both;
      animation-timeline: view(inline);
      animation-range: entry 0% cover 30%;
    }

    .slam::before {
      animation: slam linear both;
      animation-timeline: view();
      animation-range: entry 40% cover 45%;
    }
  }
}

@media (min-width: 960px) {
  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      /* One timeline for the whole ladder, so the badges come in left to right as the trail climbs to them. */
      .ladder__track {
        view-timeline-name: --ladder;
      }

      .ladder__draw path {
        stroke-dasharray: 1 1;
        stroke-dashoffset: 1;
        animation: draw linear both;
        animation-timeline: --ladder;
        animation-range: cover 2% cover 36%;
      }

      .rank {
        animation: badge linear both;
        animation-timeline: --ladder;
      }

      .rank--1 { animation-range: cover 4% cover 16%; }
      .rank--2 { animation-range: cover 7.5% cover 19.5%; }
      .rank--3 { animation-range: cover 11% cover 23%; }
      .rank--4 { animation-range: cover 14.5% cover 26.5%; }
      .rank--5 { animation-range: cover 18% cover 30%; }
      .rank--6 { animation-range: cover 21.5% cover 33.5%; }
      .rank--7 { animation-range: cover 25% cover 37%; }

      /* The celebration cards, one after another, done by the time the row is in view. */
      .celebrate__row {
        view-timeline-name: --row;
      }

      .celebrate__item {
        animation-timeline: --row;
        animation-range: entry 5% entry 55%;
      }

      .celebrate__item:nth-child(2) { animation-range: entry 15% entry 65%; }
      .celebrate__item:nth-child(3) { animation-range: entry 25% entry 75%; }
      .celebrate__item:nth-child(4) { animation-range: entry 35% entry 85%; }
      .celebrate__item:nth-child(5) { animation-range: entry 45% entry 95%; }
    }
  }
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(64px) scale(0.97);
  }
}

@keyframes lift {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
}

@keyframes badge {
  from {
    opacity: 0;
    transform: translate(-50%, 40px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes slam {
  from {
    opacity: 0;
    transform: scale(2.2);
  }
  to {
    opacity: 0.5;
    transform: scale(1.4);
  }
}
