/* MACH TRIALS (machtrials.com). One black field, real footage, type on springs. No boxes. */
/* Fonts are hosted here, so a visit sends nothing to a font service. Both are SIL Open Font License: fonts/OFL.txt */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("../fonts/archivo-latin.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/geistmono-latin.woff2") format("woff2"); }
:root {
  --ink: #05080a;
  --paper: #f2f5f6;
  --mute: rgba(242, 245, 246, .64);
  --faint: rgba(242, 245, 246, .34);
  --hair: rgba(242, 245, 246, .14);
  --signal: #3de0ff;
  --best: #b46bff;
  --up: #6bff8e;
  --down: #ffd34d;
  --gut: clamp(18px, 3.4vw, 56px);
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  /* replaced at start-up by curves sampled from a real damped spring (js/main.js) */
  --spring: cubic-bezier(.2, .9, .3, 1.25);
  --spring-ms: 700ms;
  --soft: cubic-bezier(.2, .8, .2, 1);
  --soft-ms: 520ms;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); color: var(--paper); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; font-family: var(--display); font-size: 17px; line-height: 1.45; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
::selection { background: var(--signal); color: var(--ink); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; border-radius: 6px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

.mono { font-family: var(--mono); font-size: 11px; line-height: 1.6; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 14px var(--signal); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 40; display: flex; align-items: center; gap: clamp(20px, 4vw, 64px); padding: 22px var(--gut);
  transition: transform var(--soft-ms) var(--soft), opacity .5s; }
.nav::before { content: ""; position: absolute; inset: 0 0 -28px 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: linear-gradient(180deg, rgba(5, 8, 10, .94) 0%, rgba(5, 8, 10, .8) 55%, rgba(5, 8, 10, 0) 100%); }
.nav.over::before { opacity: 1; }                 /* past the hero: a soft ink scrim so the nav never tangles with the copy */
.nav.away:not(.held) { transform: translateY(-130%); }
.booting .nav { opacity: 0; transform: translateY(-24px); }
.game-brand { display: block; flex: none; }
.game-brand img { display: block; height: 44px; width: auto; transition: transform var(--spring-ms) var(--spring); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; letter-spacing: -.035em; font-variation-settings: "wdth" 112; }
.brand svg { width: 30px; height: 30px; flex: none; transition: transform var(--spring-ms) var(--spring); }
.brand:hover svg { transform: translate(5px, -5px) rotate(-14deg) scale(1.12); }
.brand b { font-weight: 800; }
.brand span { font-weight: 400; color: var(--mute); margin-left: -6px; }
.nav nav { display: flex; gap: clamp(16px, 2.2vw, 34px); font-size: 15px; font-weight: 550; letter-spacing: -.01em; }
.nav nav a { color: var(--mute); transition: color .2s; position: relative; padding: 6px 0; }
.nav nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--paper); transform: scaleX(0); transform-origin: left; transition: transform var(--soft-ms) var(--soft); }
.nav nav a:hover { color: var(--paper); }
.nav nav a:hover::after { transform: scaleX(1); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.toggle { font: inherit; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); background: none; border: 0; padding: 8px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 3px; transition: color .2s; }
.toggle:hover, .toggle[aria-pressed="true"] { color: var(--paper); }

/* ---------- buttons ---------- */
.btn { --mx: 0px; --my: 0px; --s: 1; font: inherit; font-size: 16px; font-weight: 650; letter-spacing: -.015em; line-height: 1; border: 0; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 12px; padding: 19px 28px; border-radius: 99px;
  transform: translate(var(--mx), var(--my)) scale(var(--s)); transition: scale var(--spring-ms) var(--spring), background-color .25s, color .25s, box-shadow .25s; will-change: transform; }
.btn.small { padding: 13px 20px; font-size: 14px; }
.btn.solid { background: var(--paper); color: var(--ink); }
.btn.solid:hover { background: var(--signal); }
.btn.line { background: rgba(5, 8, 10, .28); color: var(--paper); box-shadow: inset 0 0 0 1px var(--faint); backdrop-filter: blur(10px); }
.btn.line:hover { box-shadow: inset 0 0 0 1px var(--paper); }
.btn:hover { scale: 1.05; }
.btn:active { scale: .94; transition-duration: 110ms; }
.arrow { width: 9px; height: 9px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transition: transform var(--spring-ms) var(--spring); }
.arrow.up { transform: rotate(-45deg) translate(-1px, 1px); }
.btn:hover .arrow { transform: translate(3px, -3px); }
.btn:hover .arrow.up { transform: rotate(-45deg) translate(2px, -2px); }
.cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
/* brand icons: Valve's and Discord's own shapes, one colour, never altered */
.ico { width: 19px; height: 19px; flex: none; display: block; }
.ico.discord { width: 22px; height: 17px; }
.btn.small .ico { width: 16px; height: 16px; }
.icon-link { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--mute); transition: color .2s, scale var(--spring-ms) var(--spring); }
.icon-link:hover { color: var(--paper); scale: 1.14; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 600px; overflow: clip; background: var(--ink); }
.hero-video, .hero-gl { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video { opacity: 0; }                       /* the shader draws it; shown directly only without WebGL */
.no-gl .hero-video { opacity: 1; transition: opacity 1.2s; }
.no-gl.booting .hero-video { opacity: 0; }
.no-gl .hero-gl { display: none; }
.hero-shade { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(0deg, rgba(5, 8, 10, .96) 0%, rgba(5, 8, 10, .74) 22%, rgba(5, 8, 10, 0) 54%),
  linear-gradient(180deg, rgba(5, 8, 10, .66) 0%, rgba(5, 8, 10, .3) 10%, rgba(5, 8, 10, 0) 22%); }
.hero-cap { position: absolute; right: var(--gut); top: 92px; text-align: right; color: var(--paper); text-shadow: 0 0 10px rgba(5, 8, 10, .9), 0 0 2px rgba(5, 8, 10, .9); }
.hero-body { position: absolute; left: var(--gut); right: var(--gut); bottom: clamp(84px, 11.5svh, 128px); will-change: transform, opacity; }
.label { display: flex; align-items: center; gap: 12px; color: var(--paper); margin-bottom: 2.2svh; }
.label span { color: var(--mute); padding-left: 12px; border-left: 1px solid var(--faint); }
/* one line, set edge to edge: js fits the size to the column width */
h1 { display: flex; gap: .2em; font-size: 9.4vw; line-height: .8; letter-spacing: -.058em; font-weight: 800; font-variation-settings: "wdth" 104; margin-left: -.045em;
  transform: skewX(var(--lean, 0deg)) scaleX(var(--wide, 1)); transform-origin: 0 100%; will-change: transform; user-select: none; }
h1 .line { display: block; white-space: nowrap; }
h1 .ch { display: inline-block; will-change: transform; }
h1 .ch.sp { width: .24em; }
h1 .g { display: inline-block; }
h1 .line:last-child .ch:last-child .g { color: var(--signal); }
.booting h1 .g { opacity: 0; transform: translateY(.7em) rotate(7deg) scale(.86); }
h1 .g { transition: transform var(--spring-ms) var(--spring), opacity .35s; transition-delay: calc(var(--i) * 34ms + 520ms); transform-origin: 50% 100%; }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-top: 3svh; }
.hero-foot p { max-width: 36ch; font-size: clamp(15px, 1.22vw, 20px); color: var(--mute); text-wrap: pretty; }
.fade-in { transition: opacity .9s 1.25s, transform var(--soft-ms) var(--soft) 1.25s; }
.booting .fade-in { opacity: 0; transform: translateY(14px); }

/* ---------- section furniture ---------- */
.meta { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--hair); }
.meta span:nth-child(2) { text-align: center; color: var(--paper); }
.meta .split { text-align: right; font-variant-numeric: tabular-nums; }
.meta .split.set { color: var(--up); }
.meta .split.best { color: var(--best); }
.meta .split.slow { color: var(--down); }

/* ---------- studio ---------- */
.studio { padding: 16svh var(--gut) 18svh; }
.statement { margin-top: 9svh; max-width: 19.5em; font-size: clamp(30px, 4.7vw, 90px); line-height: 1.02; letter-spacing: -.045em; font-weight: 700; font-variation-settings: "wdth" 102; text-wrap: balance; }
.maker { display: flex; align-items: center; gap: 12px; margin-top: 8svh; font-size: clamp(22px, 2vw, 32px); letter-spacing: -.035em; font-variation-settings: "wdth" 112; }
.maker svg { width: 1.6em; height: 1.6em; flex: none; }
.maker b { font-weight: 800; }
.maker span { color: var(--mute); margin-left: -.28em; }
.maker + .statement { margin-top: 4svh; }
.made-by { display: flex; align-items: center; gap: 14px; }
.statement .w { opacity: .14; transition: opacity .5s; }
.statement .w.lit { opacity: 1; }
.chip { display: inline-block; width: 1.5em; height: .8em; border-radius: .2em; overflow: hidden; vertical-align: -.06em; margin: 0 .04em; background: #111a1f;
  transform: scale(.4) rotate(-10deg); opacity: 0; transition: transform var(--spring-ms) var(--spring), opacity .3s; }
.chip.lit { transform: none; opacity: 1; }
.chip.lit:hover { transform: scale(1.5) rotate(-3deg); z-index: 2; position: relative; }
.chip video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- game ---------- */
.game { height: 240svh; position: relative; }
.game-stage { position: sticky; top: 0; height: 100svh; overflow: clip; }
.game-window { position: absolute; inset: 0; will-change: clip-path, transform;
  clip-path: inset(calc(var(--open-y, 16) * 1%) calc(var(--open-x, 20) * 1%) round calc(var(--round, 40) * 1px)); transform: scale(var(--zoom, 1.12)); }
.game-window video { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-shade { position: absolute; inset: 0; opacity: var(--shade, 0); background:
  linear-gradient(90deg, rgba(5, 8, 10, .9) 0%, rgba(5, 8, 10, .6) 30%, rgba(5, 8, 10, 0) 62%),
  linear-gradient(0deg, rgba(5, 8, 10, .85) 0%, rgba(5, 8, 10, 0) 36%); }
.game-meta { position: absolute; left: var(--gut); right: var(--gut); top: 96px; opacity: var(--shade, 0); }
.game-copy { position: absolute; left: var(--gut); bottom: clamp(150px, 22svh, 230px); max-width: 66vw; }
.game-logo { width: clamp(210px, 23vw, 400px); height: auto; margin: 0 0 3.2svh -1.2%; display: block; }
.game-copy h2 { white-space: nowrap; font-size: clamp(28px, 4.1vw, 78px); line-height: .96; letter-spacing: -.045em; font-weight: 800; font-variation-settings: "wdth" 102; }
.game-copy p { margin: 2.4svh 0 3svh; max-width: 44ch; font-size: clamp(15px, 1.22vw, 20px); color: var(--mute); }
.game-facts { position: absolute; left: var(--gut); right: var(--gut); bottom: 84px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; border-top: 1px solid var(--hair); padding-top: 16px; }
.game-facts b { display: block; font-size: clamp(18px, 1.7vw, 28px); line-height: 1.05; letter-spacing: -.03em; font-weight: 750; margin-bottom: 5px; }
.game-facts span { color: var(--mute); font-size: 15px; }

/* ---------- courses: the one light room on the page. It takes the colour of the course in front of you ---------- */
.courses { position: relative; background: var(--tint, #f4ddbf); color: var(--ink); transition: background-color .7s; }
.courses-stage { position: sticky; top: 0; height: 100svh; overflow: clip; display: flex; flex-direction: column; padding: 96px 0 84px; }
.courses .meta { margin: 0 var(--gut); border-color: rgba(5, 8, 10, .18); color: rgba(5, 8, 10, .62); }
.courses .meta span:nth-child(2), .courses .meta .split { color: var(--ink); }
.courses .mono { color: rgba(5, 8, 10, .62); }
.courses-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; padding: 3.4svh var(--gut) 0; }
.courses-head h2 { font-size: clamp(34px, min(5vw, 9svh), 96px); line-height: .9; letter-spacing: -.05em; font-weight: 800; font-variation-settings: "wdth" 104; }
.courses-count { display: flex; align-items: baseline; gap: 10px; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.courses-count b { font-size: clamp(34px, min(5vw, 9svh), 96px); line-height: .9; font-weight: 500; letter-spacing: -.06em; }
.courses-count span { font-size: 13px; letter-spacing: .1em; color: rgba(5, 8, 10, .62); }
.strip { display: flex; gap: clamp(16px, 2vw, 30px); padding: 0 var(--gut); margin-top: auto; width: max-content; will-change: transform; }
.course { width: clamp(270px, min(31vw, 52svh), 520px); flex: none; }
.course-pic { aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background: rgba(5, 8, 10, .12); transition: border-radius var(--spring-ms) var(--spring), transform var(--spring-ms) var(--spring); }
.course-pic img { width: 114%; max-width: none; height: 100%; object-fit: cover; display: block; margin-left: -7%; transform: translate3d(var(--px, 0px), 0, 0); will-change: transform; }
.course:hover .course-pic { border-radius: 34px; transform: scale(1.025) rotate(-.6deg); }
.course-top { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.course h3 { margin-top: 8px; font-size: clamp(24px, 2.5vw, 42px); line-height: .98; letter-spacing: -.04em; font-weight: 800; font-variation-settings: "wdth" 104; }
.course p { margin-top: 8px; font-size: 15px; line-height: 1.4; color: rgba(5, 8, 10, .72); max-width: 40ch; text-wrap: pretty; min-height: 4.2em; }
.diff { display: flex; gap: 3px; }
.diff i { width: 14px; height: 5px; border-radius: 3px; background: rgba(5, 8, 10, .16); }
.diff i.on { background: var(--ink); }

/* ---------- jets ---------- */
.jets { padding: 11svh var(--gut) 12svh; }
.lineup { --ppm: 14px; display: flex; align-items: flex-end; justify-content: space-between; margin-top: 5svh; }
.jet { font: inherit; color: inherit; background: none; border: 0; padding: 0 0 4px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.jet img { display: block; width: calc(var(--span) * var(--ppm)); height: auto; opacity: .26; transform: translateY(0); transition: opacity .35s, transform var(--spring-ms) var(--spring); filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .6)); }
.jet:hover img { opacity: .6; transform: translateY(-8px); }
.jet[aria-selected="true"] img { opacity: 1; transform: translateY(-20px) scale(1.03); }
.jet span { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); transition: color .3s; }
.jet[aria-selected="true"] span { color: var(--paper); }
.jet span::before { content: ""; display: block; width: 0; height: 2px; margin: 0 auto 9px; background: var(--signal); transition: width var(--spring-ms) var(--spring); }
.jet[aria-selected="true"] span::before { width: 26px; }
.jet-panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 6vw, 110px); align-items: end; margin-top: 4svh; border-top: 1px solid var(--hair); padding-top: 22px; }
.jet-id .mono { color: var(--signal); }
.jet-id .jet-name { font-size: clamp(56px, min(8.4vw, 16svh), 170px); line-height: .84; letter-spacing: -.06em; font-weight: 800; font-variation-settings: "wdth" 104; margin: 10px 0 18px -.04em; white-space: nowrap; }
.jet-id > p:last-child { max-width: 38ch; font-size: clamp(15px, 1.22vw, 20px); color: var(--mute); min-height: 2.9em; }
.jet-id.pop p { animation: pop var(--spring-ms) var(--spring) both; }
.jet-id.pop p:last-child { animation-delay: 60ms; }
@keyframes pop { 0% { opacity: 0; transform: translateY(26px); } 30% { opacity: 1; } 100% { opacity: 1; transform: none; } }
.jet-stats { margin: 0; display: grid; gap: 0; }
.jet-stats div { display: grid; grid-template-columns: 9.5em 1fr; align-items: center; gap: 18px; padding: 10px 0; border-top: 1px solid var(--hair); }
.jet-stats div:first-child { border-top: 0; }
.jet-stats dt { font-size: 15px; color: var(--mute); }
.jet-stats dd { display: grid; grid-template-columns: 1fr 10.5ch; align-items: center; gap: 18px; }
.jet-stats .bar { height: 3px; border-radius: 2px; background: rgba(242, 245, 246, .14); position: relative; }
.jet-stats .bar i { position: absolute; inset: 0 auto 0 0; width: calc(var(--v, 0) * 100%); border-radius: 2px; background: var(--paper); transition: width var(--spring-ms) var(--spring), background-color .3s; }
.jet-stats .best .bar i { background: var(--signal); }
.jet-stats dd { margin: 0; }
.jet-stats .val { font-family: var(--mono); font-size: 15px; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.jet-stats .val b { font-weight: 500; }
.jet-stats .val small { font-size: 11px; color: var(--faint); margin-left: 6px; letter-spacing: .06em; }
.jets-note { margin-top: 5svh; }

.leans { transform: skewX(calc(var(--lean, 0deg) * .55)); transform-origin: 0 100%; will-change: transform; }
.rise, .rise-group > * { transition: transform var(--spring-ms) var(--spring), opacity .45s; transition-delay: calc(var(--i, 0) * 70ms); }
.game-copy:not(.in) .rise, .rise-group:not(.in) > * { opacity: 0; transform: translateY(54px); }

/* ---------- finish ---------- */
.finish { padding: 16svh var(--gut) 12svh; min-height: 100svh; display: flex; flex-direction: column; }
.result { margin: auto 0; padding: 8svh 0; }
.result-time { font-family: var(--mono); font-weight: 500; font-size: min(19.5vw, 34svh); line-height: .9; letter-spacing: -.07em; font-variant-numeric: tabular-nums; margin-left: -.04em;
  transition: color .4s; }
.result-time.best { color: var(--best); }
.result-time.up { color: var(--up); }
.result-time.down { color: var(--down); }
.result-note { margin-top: 3svh; }
.finish-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; border-top: 1px solid var(--hair); padding-top: 26px; }
.finish-row h2 { font-size: clamp(34px, 5vw, 92px); line-height: .9; letter-spacing: -.05em; font-weight: 800; font-variation-settings: "wdth" 104; }

/* ---------- footer ---------- */
.foot { padding: 30px var(--gut) 96px; border-top: 1px solid var(--hair); }
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.foot-links { display: flex; gap: 28px; font-size: 15px; font-weight: 600; }
.foot-links a { display: inline-flex; align-items: center; gap: 9px; color: var(--mute); transition: color .2s; }
.foot-links a:hover { color: var(--paper); }
.foot-legal { margin-top: 26px; max-width: 110ch; font-size: 10px; color: var(--faint); text-transform: none; letter-spacing: .02em; }

/* ---------- the run pill ---------- */
.pill { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 50; white-space: nowrap; display: flex; align-items: center; gap: 14px; padding: 9px 16px 9px 13px; border-radius: 99px;
  transform: translateX(-50%) translateY(var(--pill-y, 0px)) scale(var(--pill-s, 1)); will-change: transform;
  background: rgba(5, 8, 10, .62); backdrop-filter: blur(18px) saturate(1.5); box-shadow: inset 0 0 0 1px var(--hair), 0 14px 44px rgba(0, 0, 0, .5);
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); transition: opacity .8s 1.5s; }
.booting .pill { opacity: 0; }
.pill .clock { font-size: 14px; font-weight: 500; letter-spacing: -.01em; color: var(--paper); font-variant-numeric: tabular-nums; min-width: 8.2ch; }
.pill .mach { min-width: 9.5ch; }
.pill .mach b { font-weight: 600; color: var(--paper); font-variant-numeric: tabular-nums; }
.pill.super .mach b { color: var(--signal); }
.pill .led { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); transition: background-color .3s, box-shadow .3s; }
.pill.live .led { background: var(--signal); box-shadow: 0 0 12px var(--signal); }
.pill.done .led { background: var(--up); box-shadow: 0 0 12px var(--up); }
.sectors { display: flex; gap: 3px; }
.sectors i { width: 15px; height: 4px; border-radius: 2px; background: rgba(242, 245, 246, .18); transition: background-color .3s, transform var(--spring-ms) var(--spring); }
.sectors i.now { background: var(--paper); transform: scaleY(1.7); }
.sectors i.up { background: var(--up); }
.sectors i.best { background: var(--best); }
.sectors i.down { background: var(--down); }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  .nav nav { display: none; }
  #motion { font-size: 10px; letter-spacing: .1em; }   /* stays reachable on a phone: motion is on by default, so the off switch must be too */
  .nav-right { gap: 12px; }
  .hero-cap { display: none; }
  h1 { flex-direction: column; gap: 0; font-size: 20vw; line-height: .84; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 22px; }
  .hero-body { bottom: 84px; }
  .btn { padding: 17px 22px; font-size: 15px; }
  .meta { grid-template-columns: auto 1fr auto; gap: 14px; }
  .icon-link { display: none; }
  /* courses: no pinning on a phone, the strip is swiped sideways */
  .courses-stage { position: static; height: auto; padding: 14svh 0 10svh; }
  .courses-head { padding-bottom: 5svh; }
  .strip { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; transform: none !important; }
  .strip::-webkit-scrollbar { display: none; }
  .course { width: 78vw; scroll-snap-align: center; }
  /* jets: swipe the row; whichever jet is in the middle is the picked one. The side padding lets the first and last reach the middle */
  .lineup { --ppm: 11px; overflow-x: auto; gap: 22px; justify-content: flex-start; scrollbar-width: none; scroll-snap-type: x proximity; margin: 6svh calc(var(--gut) * -1) 0; padding: 30px calc(50vw - 92px) 0 calc(50vw - 107px); }
  .lineup::-webkit-scrollbar { display: none; }
  .jet { flex: none; scroll-snap-align: center; }
  .nav { padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gut) 14px; }
  .game-brand img { height: 30px; }
  .pill { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .pill .mach { min-width: 0; }
  .foot { padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
  .foot-links a { padding: 10px 0; }
  .made-by { flex-direction: column; align-items: flex-start; gap: 8px; }
  .jet-panel { grid-template-columns: 1fr; align-items: start; }
  .jet-id .jet-name { font-size: 22vw; }
  .jet-stats div { grid-template-columns: 7.5em 1fr; gap: 12px; }
  .jet-stats dd { gap: 12px; }
  .foot-top { flex-direction: column; align-items: flex-start; }
  .game-copy { max-width: none; right: var(--gut); bottom: 276px; }
  .game-logo { width: 190px; margin-bottom: 2svh; }
  .game-copy p { margin: 1.6svh 0 2.2svh; }
  .game-copy h2 { white-space: normal; font-size: 10.4vw; }
  .game-copy h2 span { display: block; }
  .game-copy h2 br { display: none; }
  .game-shade { background: linear-gradient(0deg, rgba(5, 8, 10, .96) 0%, rgba(5, 8, 10, .86) 46%, rgba(5, 8, 10, .3) 74%, rgba(5, 8, 10, .45) 100%); }
  .hero-shade { background: linear-gradient(0deg, rgba(5, 8, 10, .97) 0%, rgba(5, 8, 10, .82) 34%, rgba(5, 8, 10, .25) 62%, rgba(5, 8, 10, 0) 78%), linear-gradient(180deg, rgba(5, 8, 10, .6) 0%, rgba(5, 8, 10, 0) 18%); }
  .game-facts { grid-template-columns: repeat(2, 1fr); gap: 14px 20px; bottom: 76px; }
  .game-facts b { font-size: 17px; margin-bottom: 2px; }
  .game-facts span { font-size: 13px; }
  .finish-row { flex-direction: column; align-items: flex-start; }
  .pill { gap: 10px; }
}
/* short phones: the game screen keeps only what fits between the top bar and the clock */
@media (max-width: 820px) and (max-height: 720px) {
  .game-copy { bottom: 150px; }
  .game-logo { width: 150px; }
  .game-copy p { font-size: 14px; }
  .game-facts { gap: 8px 20px; }
  .game-facts span { display: none; }
}
/* touch screens: a tap must not leave a "hover" look stuck on */
html { -webkit-tap-highlight-color: transparent; }
@media (hover: none) {
  .btn:hover { scale: 1; }
  .btn.solid:hover { background: var(--paper); }
  .btn:active { scale: .94; }
  .chip.lit:hover { transform: none; }
  .course:hover .course-pic { border-radius: 22px; transform: none; }
  .jet:hover img { opacity: .26; transform: none; }
  .jet[aria-selected="true"]:hover img { opacity: 1; transform: translateY(-20px) scale(1.03); }
  .brand:hover svg { transform: none; }
}
/* motion off: the system setting by default, or the Motion switch (js sets .reduce) */
.reduce *, .reduce *::before, .reduce *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; }

/* ---------- legal pages (privacy.html, terms.html, legal.html): plain reading pages, no motion ---------- */
.doc-page .nav::before { opacity: 1; }
.doc { max-width: 780px; margin: 0 auto; padding: 150px var(--gut) 90px; }
.doc h1 { font-size: clamp(40px, 6.4vw, 88px); line-height: .9; letter-spacing: -.05em; font-weight: 800; font-variation-settings: "wdth" 104; margin: 14px 0 18px -.03em; }
.doc .lead { font-size: 19px; color: var(--paper); max-width: 60ch; }
.doc h2 { font-size: 25px; line-height: 1.1; letter-spacing: -.03em; font-weight: 750; margin: 56px 0 12px; padding-top: 22px; border-top: 1px solid var(--hair); }
.doc h3 { font-size: 18px; letter-spacing: -.015em; font-weight: 700; margin: 26px 0 6px; }
.doc p, .doc li { color: var(--mute); font-size: 17px; line-height: 1.6; }
.doc p + p { margin-top: 12px; }
.doc ul { list-style: disc; padding-left: 1.25em; margin-top: 10px; display: grid; gap: 6px; }
.doc a { color: var(--paper); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: var(--signal); }
.doc strong { color: var(--paper); font-weight: 600; }
.doc dl { display: grid; grid-template-columns: 11em 1fr; gap: 10px 20px; margin-top: 14px; }
.doc dt { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding-top: 5px; }
.doc dd { margin: 0; color: var(--paper); font-size: 17px; }
.foot-legal-links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 22px; font-size: 14px; font-weight: 600; }
.foot-legal-links a { color: var(--mute); transition: color .2s; }
.foot-legal-links a:hover, .foot-legal-links a[aria-current] { color: var(--paper); }
@media (max-width: 820px) {
  .doc { padding-top: 120px; }
  .doc dl { grid-template-columns: 1fr; gap: 2px; }
  .doc dd { margin-bottom: 12px; }
}

/* ---------- text for screen readers and crawlers only ---------- */
.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.jet span.sr::before { display: none; }

/* ---------- questions ---------- */
.faq { display: grid; grid-template-columns: minmax(200px, 1fr) 2.2fr; gap: clamp(24px, 6vw, 110px); padding: 6svh var(--gut) 16svh; }
/* the heading holds still (no lean with scroll speed: its box was as tall as the whole list, so the lean swung it sideways) and stays beside the answers */
.faq h2 { align-self: start; position: sticky; top: 110px; font-size: clamp(34px, 5vw, 92px); line-height: .9; letter-spacing: -.05em; font-weight: 800; font-variation-settings: "wdth" 104; }
.faq-list { margin: 0; }
.qa { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(16px, 3vw, 48px); padding: 20px 0; border-top: 1px solid var(--hair); }
.qa:last-child { border-bottom: 1px solid var(--hair); }
.qa dt { font-size: clamp(18px, 1.5vw, 24px); line-height: 1.15; letter-spacing: -.025em; font-weight: 700; }
.qa dd { margin: 0; color: var(--mute); font-size: 17px; line-height: 1.5; max-width: 52ch; }
@media (max-width: 820px) {
  .faq { grid-template-columns: 1fr; padding: 2svh var(--gut) 12svh; }
  .faq h2 { position: static; }
  .qa { grid-template-columns: 1fr; gap: 8px; }
}
