/* Film-room look: night-game dark, condensed headlines, mono numbers.
   Colour means something: red is the flag, yellow is the snap, and neither is used for anything else.
   Buttons, links, rules and numerals are white or grey. */
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-display: swap; src: url("../fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
/* Until the headline font arrives the headline is set in a common bold face squeezed to the same width (the
   headline font is 0.69 times as wide as Arial Bold), so the page does not jump when it does. */
@font-face { font-family: "Display Fallback"; font-weight: 500 700; size-adjust: 69%; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"), local("Helvetica Bold"), local("Helvetica-Bold"), local("Roboto Bold"), local("Roboto-Bold"), local("Liberation Sans Bold"), local("LiberationSans-Bold"); }

:root {
  --ink: #090c11; --panel: #10151d; --panel-2: #161d27; --rule: #263140; --rule-soft: #1a2230;
  --text: #e2e8ef; --soft: #b0bbc8; --dim: #909dad; --line: rgba(255, 255, 255, 0.42);
  --flag: #e2231a; --flag-soft: #ff6b5e; --snap: #ffd23f; --turf: #2f7d3a; --sky: #35e0ff;
  --display: "Barlow Condensed", "Display Fallback", "Arial Narrow", sans-serif; --body: "IBM Plex Sans", Arial, Helvetica, system-ui, sans-serif; --mono: "IBM Plex Mono", ui-monospace, monospace;
  --t-xs: 0.8rem; --t-s: 0.9rem; --t-l: 1.06rem;      /* labels; captions and notes; lead paragraphs (body is 1rem) */
  --gap: clamp(1rem, 0.6rem + 1.6vw, 2rem); --section: clamp(3.5rem, 2.2rem + 4.5vw, 7rem);
  --max: 1440px; --bar-h: 3.25rem; --tap: 2.6rem;
  --fast: 140ms; --out: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; }
html { background: var(--ink); color: var(--text); font: 400 clamp(1rem, 0.95rem + 0.2vw, 1.0625rem)/1.55 var(--body); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 1rem); }
body { margin: 0; overflow-x: hidden; overflow-x: clip; }
main, .mast, .foot-in { width: min(100% - 2 * var(--gap), var(--max)); margin-inline: auto; }
h1, h2, h3, .kicker, .chip, .trio .what, .btn, .brand, .bar .links a, .share, .lbl, .sum { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.2rem); font-weight: 700; line-height: 1; margin: 0; color: #fff; }
h3 { font-size: 1.3rem; font-weight: 600; margin: 0 0 0.4rem; color: #fff; letter-spacing: 0.04em; }
p { margin: 0 0 1em; } b { font-weight: 600; color: #fff; }
a { color: #fff; text-decoration-color: var(--line); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-color: #fff; }
section { padding-block: var(--section) 0; }
main { padding-bottom: var(--section); }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: 0.75rem; top: -4rem; z-index: 100; background: #fff; color: var(--ink); padding: 0.5rem 0.9rem; font: 600 0.95rem var(--body); text-decoration: none; }
.skip:focus { top: 0.5rem; }
.offscreen { position: fixed; left: -200vw; top: 0; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---- the bar ---- */
.bar { position: sticky; top: 0; z-index: 50; height: var(--bar-h); display: flex; align-items: center; gap: 1.5rem; padding-inline: max(var(--gap), calc((100% - var(--max)) / 2)); background: rgba(9, 12, 17, 0.84); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid var(--rule-soft); }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 1.12rem; letter-spacing: 0.09em; color: #fff; text-decoration: none; white-space: nowrap; }
.brand svg { fill: var(--flag); stroke: #fff; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.bar .links { display: flex; gap: clamp(0.9rem, 0.2rem + 1.4vw, 1.9rem); margin-left: auto; }
.bar .links a { font-weight: 600; font-size: 1rem; letter-spacing: 0.08em; color: var(--soft); text-decoration: none; padding: 0.35rem 0; border-bottom: 2px solid transparent; transition: color var(--fast), border-color var(--fast); white-space: nowrap; }
.bar .links a:hover { color: #fff; } .bar .links a[aria-current="true"] { color: #fff; border-color: #fff; }
.share { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; height: 2.2rem; padding: 0 0.85rem; border: 1px solid var(--rule); border-radius: 2px; background: transparent; color: #fff; font-weight: 600; font-size: 0.98rem; letter-spacing: 0.08em; cursor: pointer; white-space: nowrap; transition: border-color var(--fast), background var(--fast); }
.share svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.share:hover { border-color: var(--soft); background: var(--panel); }
[data-share].done { border-color: #fff; }

/* ---- buttons ---- */
.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.9rem; padding: 0 1.25rem; border: 1px solid var(--rule); border-radius: 2px; background: transparent; color: #fff; font-weight: 600; font-size: 1.12rem; letter-spacing: 0.08em; text-decoration: none; cursor: pointer; transition: background var(--fast), border-color var(--fast), transform var(--fast) var(--out); }
.btn:hover { border-color: var(--soft); background: var(--panel); } .btn:active { transform: translateY(1px); }
.btn.primary { background: #fff; border-color: #fff; color: var(--ink); } .btn.primary:hover { background: #d6dee7; border-color: #d6dee7; }
.btn.primary::before { content: ""; width: 0; height: 0; border-left: 0.62em solid currentColor; border-block: 0.4em solid transparent; }
.link { all: unset; cursor: pointer; color: #fff; text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.link:hover { text-decoration-color: #fff; } .link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---- hero ---- */
.hero { position: relative; isolation: isolate; border-bottom: 1px solid var(--rule-soft); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(90% 55% at 22% 100%, rgba(47, 125, 58, 0.17), transparent 72%),
    repeating-linear-gradient(90deg, transparent 0 calc(9.0909% - 1px), rgba(255, 255, 255, 0.028) calc(9.0909% - 1px) 9.0909%);
}
.mast { padding-block: clamp(1.4rem, 0.8rem + 2.4vw, 3rem) clamp(2rem, 1.2rem + 3vw, 3.75rem); }
.kicker { margin: 0 0 clamp(0.9rem, 0.6rem + 1vw, 1.5rem); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.09em; color: var(--soft); display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; }
.kicker span::before { content: ""; display: inline-block; width: 0.35rem; height: 0.35rem; background: var(--dim); margin-right: 1.1rem; vertical-align: middle; transform: rotate(45deg); }
.mast-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, 24rem); gap: var(--gap) calc(var(--gap) * 1.5); align-items: end; }
h1 { font-size: clamp(3.6rem, 1rem + 10.4vw, 9.4rem); font-weight: 700; line-height: 0.84; margin: 0; color: #fff; letter-spacing: -0.005em; }
.lede { font-size: clamp(1.12rem, 1rem + 0.5vw, 1.36rem); line-height: 1.4; margin: 0 0 0.3rem; color: var(--text); }
.mast-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, 24rem); gap: var(--gap) calc(var(--gap) * 1.5); align-items: stretch; margin-top: clamp(1.2rem, 0.8rem + 1.6vw, 2.4rem); }
.arc { position: relative; margin: 0; min-width: 0; container-type: inline-size; }
/* The picture's height follows from its width and the flight (the script sets it exactly); this is the same sum,
   so the space is already right before the script runs. */
#arc-canvas { display: block; width: 100%; aspect-ratio: 27.7 / 9; height: calc(24.5cqw + 72px); cursor: pointer; }
@container (max-width: 599.98px) { #arc-canvas { height: calc(25.77cqw + 46px); } }
.again { appearance: none; position: absolute; right: 0; top: 0; border: 1px solid var(--rule); background: rgba(9, 12, 17, 0.7); color: var(--soft); font: 600 0.86rem var(--display); letter-spacing: 0.09em; text-transform: uppercase; padding: 0.3rem 0.6rem; border-radius: 2px; cursor: pointer; transition: color var(--fast), border-color var(--fast); }
.again:hover { color: #fff; border-color: var(--soft); }
.arc figcaption { margin-top: 1.1rem; color: var(--soft); font-size: var(--t-s); line-height: 1.5; }
.key { display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; margin: 0 0.4rem 0 0.15rem; vertical-align: 0.02em; border: 1.5px solid rgba(255, 255, 255, 0.75); } .key.solid { background: #fff; border-color: #fff; }

.trio { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 8.6rem; }
.trio li { position: relative; padding-top: 1.05rem; color: var(--flag); min-width: 0; }
.trio li.snap { color: var(--snap); }
.trio li::before { content: ""; position: absolute; top: 0; width: 1px; height: 0.8rem; background: currentColor; opacity: 0.7; }
.trio li:nth-child(1) { padding-left: var(--x0, 3.6rem); } .trio li:nth-child(1)::before { left: var(--x0, 3.6rem); }
.trio li:nth-child(2) { position: absolute; left: var(--xs, 56%); top: 0; transform: translateX(-50%); text-align: center; } .trio li:nth-child(2)::before { left: 50%; }
.trio li:nth-child(3) { grid-column: 2; justify-self: end; text-align: right; padding-right: var(--pad-r, 1rem); } .trio li:nth-child(3)::before { right: var(--pad-r, 1rem); }
.trio button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 0.2rem; padding: 0.15rem 0.5rem 0.4rem; margin-inline: -0.5rem; border-radius: 2px; transition: background var(--fast); }
.trio li:nth-child(2) button { justify-items: center; } .trio li:nth-child(3) button { justify-items: end; }
.trio button:hover { background: rgba(255, 255, 255, 0.05); } .trio button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.trio .big { font: 500 clamp(2.5rem, 1.3rem + 3.1vw, 4.3rem)/1 var(--mono); letter-spacing: -0.04em; color: var(--flag-soft); white-space: nowrap; }
.trio .big { font-size: clamp(2.1rem, 7.2cqw, 4.3rem); }          /* sized to the picture above it, so the three never collide */
.trio .snap .big { color: var(--snap); }
.trio .big i { font: 600 0.34em var(--display); letter-spacing: 0.05em; margin-left: 0.25em; opacity: 0.8; }
.trio .what { font-weight: 600; font-size: clamp(1.02rem, 0.9rem + 0.45vw, 1.3rem); color: #fff; letter-spacing: 0.05em; white-space: nowrap; transition: color 400ms; }
.trio .what { font-size: clamp(0.98rem, 2.5cqw, 1.3rem); }
.trio .pm { font: 400 var(--t-xs)/1.4 var(--mono); color: var(--dim); max-width: 16em; text-wrap: balance; } .trio li:nth-child(2) .pm { max-width: 10.5em; } .trio li:nth-child(3) .pm { max-width: 12.5em; }
.trio li.lit .what { color: var(--flag-soft); } .trio li.snap.lit .what { color: var(--snap); }

.mast-side { display: grid; gap: 1.4rem; align-content: space-between; }
.story p { margin: 0; color: var(--text); font-size: 0.96rem; line-height: 1.55; } .story .lbl { margin-bottom: 0.5rem; color: var(--dim); }
.status { margin: 0; color: var(--soft); font-size: var(--t-s); line-height: 1.55; border-left: 2px solid var(--rule); padding-left: 1rem; }
.status b { color: #fff; font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; } .cta .btn { flex: 1 1 auto; }
.lost { min-height: calc(100vh - var(--bar-h)); min-height: calc(100svh - var(--bar-h)); display: grid; align-content: center; gap: 1.2rem; } .lost .lede { max-width: 30em; margin: 0; } .lost .cta .btn { flex: 0 0 auto; }

/* ---- section heads ---- */
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.2rem; margin-bottom: clamp(1.1rem, 0.8rem + 1vw, 1.8rem); }
.sec-head .idx { font: 500 0.85rem var(--mono); color: var(--dim); letter-spacing: 0.04em; position: relative; padding-right: 2.6rem; align-self: center; }
.sec-head .idx::after { content: ""; position: absolute; right: 0; top: 50%; width: 1.9rem; height: 1px; background: var(--rule); }
.sec-head h2 { flex: 0 1 auto; min-width: 0; max-width: calc(100% - 5.2rem); }
.sec-head p { margin: 0.2rem 0 0; color: var(--soft); font-size: 1rem; flex: 1 1 100%; max-width: 58em; }
.sec-head .all { margin-left: auto; padding-block: 0.3rem; font: 600 0.92rem var(--display); letter-spacing: 0.09em; text-transform: uppercase; color: var(--soft); }
.sec-head .all:hover { color: #fff; }
@media (hover: none), (max-width: 760px) { .keys { display: none; } }

/* ---- the replay ---- */
.bench { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; column-gap: var(--gap); grid-template-areas: "views evhead" "stage ev" "under ev" "extras ev"; }
.which { display: none; }
.views { grid-area: views; align-self: end; display: flex; align-items: baseline; gap: 0.8rem; margin-bottom: 0.6rem; min-width: 0; }
.ev-head { grid-area: evhead; align-self: end; min-width: 0; }
.ev-head h3 { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; color: var(--dim); margin: 0 0 0.55rem; line-height: 1.2; }
.ev-head .chips { margin-bottom: 0.6rem; }
#stage-wrap { grid-area: stage; }
.ev-body { grid-area: ev; align-self: start; min-width: 0; }
.under { grid-area: under; min-width: 0; } .extras { grid-area: extras; min-width: 0; }
.lbl { font-weight: 600; font-size: 0.82rem; letter-spacing: 0.14em; color: var(--dim); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chip { appearance: none; border: 1px solid var(--rule); background: transparent; color: var(--soft); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.07em; padding: 0.36rem 0.72rem 0.34rem; cursor: pointer; border-radius: 2px; white-space: nowrap; transition: color var(--fast), border-color var(--fast), background var(--fast), transform var(--fast) var(--out); }
.chip:hover { color: #fff; border-color: var(--soft); } .chip:active { transform: translateY(1px); }
.chip.on { background: #fff; border-color: #fff; color: var(--ink); }
#stage-wrap { position: relative; aspect-ratio: 16 / 9; background: #0b0f14; overflow: hidden; border: 1px solid var(--rule); border-bottom: 0; }
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
#stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; opacity: 0; transition: opacity 500ms; }
#stage-wrap.drawn #stage { opacity: 1; }
#ghost, #frame-guide { position: absolute; pointer-events: none; }
#ghost { object-fit: fill; mix-blend-mode: normal; }
#frame-guide { box-shadow: 0 0 0 200vmax rgba(5, 7, 10, 0.72); outline: 1px solid rgba(255, 255, 255, 0.35); }
#labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.tag { position: absolute; left: 0; top: 0; white-space: nowrap; font: 600 0.82rem/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; padding: 0.22rem 0.4rem 0.2rem; background: rgba(9, 12, 17, 0.82); color: #fff; border-left: 2px solid #fff; will-change: transform; }
.tag.flag { border-color: var(--flag); } .tag.snap { border-color: var(--snap); color: var(--snap); } .tag.warn { border-color: var(--sky); } .tag.who { background: rgba(9, 12, 17, 0.6); font-weight: 500; }
.tag.flip { border-left: 0; border-right: 2px solid #fff; } .tag.flag.flip { border-color: var(--flag); } .tag.snap.flip { border-color: var(--snap); } .tag.warn.flip { border-color: var(--sky); }
.locator { position: absolute; left: 0; top: 0; width: 26px; height: 26px; border: 2px solid var(--flag); border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(0, 0, 0, 0.6); will-change: transform; }
#gl-fallback { margin: 0 0 0.8rem; padding: 0.7rem 0.9rem; border: 1px solid var(--rule); background: var(--panel); color: var(--text); font-size: var(--t-s); grid-column: 1 / -1; }
.stage-cta { appearance: none; position: absolute; left: 50%; top: clamp(0.8rem, 9%, 2.6rem); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 0.6rem; min-height: 3rem; padding: 0 1.4rem 0 1.2rem; border: 0; border-radius: 2px; background: #fff; color: var(--ink); font: 600 1.18rem var(--display); letter-spacing: 0.09em; text-transform: uppercase; white-space: nowrap; cursor: pointer; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0, 0, 0, 0.55); transition: background var(--fast), transform var(--fast) var(--out); animation: cta-in 500ms var(--out) 200ms backwards; }
.stage-cta svg { fill: currentColor; } .stage-cta:hover { background: #d6dee7; } .stage-cta:active { transform: translateX(-50%) translateY(1px); }
@keyframes cta-in { from { opacity: 0; transform: translateX(-50%) translateY(-8px); } }
/* while the replay is still loading: the picture is a still, and it says so */
.bench.loading #stage-wrap::after { content: "Loading the replay"; position: absolute; left: 50%; top: clamp(0.8rem, 9%, 2.6rem); transform: translateX(-50%); padding: 0.5rem 0.9rem; background: rgba(9, 12, 17, 0.82); border: 1px solid var(--rule); color: var(--soft); font: 600 0.95rem var(--display); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.ev-body canvas { display: block; width: 100%; height: auto; background: #05070a; border: 1px solid var(--rule); image-rendering: auto; }
.meta { font: 500 var(--t-xs) var(--mono); color: var(--dim); margin: 0.5rem 0 0; text-transform: uppercase; letter-spacing: 0.05em; }
.note { color: var(--soft); font-size: var(--t-s); margin: 0.6rem 0 0; } .note:empty { display: none; }
.hud { margin: 0; display: grid; grid-template-columns: minmax(9.5rem, 0.8fr) 1.25fr 1.1fr; background: var(--panel); border: 1px solid var(--rule); }
.hud > div { padding: 0.55rem 0.9rem 0.6rem; min-width: 0; } .hud > div + div { border-left: 1px solid var(--rule); }
.hud dt { font: 600 0.76rem/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-bottom: 0.3rem; }
.hud dd { margin: 0; font: 500 1rem/1.15 var(--mono); color: #fff; } .hud dd.sub { font-size: 0.76rem; color: var(--dim); margin-top: 0.15rem; }
#r-time { font-size: 1.35rem; letter-spacing: -0.03em; }
#r-flag[data-phase="air"] { color: var(--flag-soft); } #r-ball[data-phase="post"] { color: var(--snap); }
/* the four moments, in order: the guided way through the replay */
.steps { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.35rem; }
.steps button { all: unset; box-sizing: border-box; width: 100%; height: 100%; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 0.6rem; align-content: center; min-height: 3.2rem; padding: 0.45rem 0.75rem 0.5rem; border: 1px solid var(--rule); border-top: 2px solid var(--soft); border-radius: 2px; background: var(--panel); transition: background var(--fast), border-color var(--fast); }
.steps li.flag button { border-top-color: var(--flag); } .steps li.snap button { border-top-color: var(--snap); }
.steps button:hover { background: var(--panel-2); } .steps button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.steps b { grid-row: span 2; align-self: center; font: 500 1.3rem/1 var(--mono); color: var(--dim); }
.steps span { font: 600 1.02rem/1.1 var(--display); letter-spacing: 0.07em; text-transform: uppercase; color: #fff; }
.steps i { grid-column: 2; font: 500 var(--t-xs)/1.2 var(--mono); font-style: normal; color: var(--soft); white-space: nowrap; }
.steps button[aria-current] { background: var(--panel-2); border-color: var(--soft); border-top-color: #fff; } .steps button[aria-current] b { color: #fff; }
.steps li.flag button[aria-current] { border-top-color: var(--flag); } .steps li.snap button[aria-current] { border-top-color: var(--snap); }
#timeline { display: block; width: 100%; height: 108px; margin-top: 0.6rem; background: var(--panel); border: 1px solid var(--rule); cursor: ew-resize; touch-action: none; }
.transport { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.6rem; }
.transport > button { appearance: none; border: 1px solid var(--rule); background: var(--panel); color: #fff; font: 600 1rem var(--display); letter-spacing: 0.08em; text-transform: uppercase; height: var(--tap); min-width: 2.9rem; padding: 0 0.8rem; cursor: pointer; border-radius: 2px; transition: background var(--fast), transform var(--fast) var(--out); }
.transport > button:hover { background: var(--panel-2); } .transport > button:active { transform: translateY(1px); }
.transport > .primary { background: #fff; border-color: #fff; color: var(--ink); min-width: 7.5rem; } .transport > .primary:hover { background: #d6dee7; }
.seg { display: inline-flex; gap: 0.3rem; margin-left: auto; }
.seg .chip { height: var(--tap); min-width: 3rem; padding-block: 0; text-align: center; }
.toggles { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; margin-top: 0.9rem; font-size: var(--t-s); color: var(--soft); align-items: center; }
.toggles label { cursor: pointer; display: inline-flex; align-items: center; gap: 0.45rem; } .toggles label:hover { color: #fff; }
.toggles .moment { margin-left: auto; padding-block: 0.25rem; color: var(--soft); } .toggles .moment:hover, .toggles .moment.done { color: #fff; }
input[type="checkbox"] { accent-color: #e2e8ef; width: 1.1rem; height: 1.1rem; } input[type="range"] { accent-color: #e2e8ef; width: 7.5rem; vertical-align: middle; }
#ghost-row { display: inline-flex; align-items: center; gap: 0.7rem; }

/* no 3D graphics: the footage, the steps and the time bar still work, in one column */
.bench.no-gl { display: flex; flex-direction: column; max-width: 46rem; margin-inline: auto; }
.bench.no-gl .which, .bench.no-gl .views, .bench.no-gl #stage-wrap, .bench.no-gl #cam-note, .bench.no-gl .toggles label, .bench.no-gl #ghost-row { display: none; }
.bench.no-gl .toggles .moment { margin-left: 0; }
.bench.no-gl .ev-body canvas { aspect-ratio: 540 / 430; object-fit: contain; }
/* the replay could not start at all: a still and a plain message, no dead controls */
.bench.failed { display: block; } .bench.failed > :not(#gl-fallback):not(#stage-wrap) { display: none; } .bench.failed #stage-wrap { border-bottom: 1px solid var(--rule); max-width: 46rem; }
.bench.failed .stage-cta { display: none; }

/* ---- verdict ---- */
.verdict .wide { margin-bottom: 1.8rem; color: var(--soft); }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.cols3 article { border-top: 3px solid #fff; padding-top: 1rem; }
.cols3 h3 { font-size: 0.95rem; letter-spacing: 0.14em; color: var(--dim); margin-bottom: 0.7rem; }
.cols3 p { color: var(--soft); margin: 0; }
.cols3 p > b:first-child { display: block; font: 700 1.3rem/1.1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.35rem; color: #fff; }
blockquote { margin: 0 0 1rem; font: 500 clamp(1.3rem, 1rem + 0.9vw, 1.75rem)/1.16 var(--display); color: #fff; letter-spacing: 0.01em; }

/* ---- report ---- */
.wide { max-width: 62em; color: var(--text); font-size: var(--t-l); }
.prose h3 { margin: 1.7rem 0 0.5rem; font-size: 1.22rem; } .prose h3:first-child { margin-top: 0; }
.prose .wide { color: var(--soft); font-size: 1.02rem; } .prose p:last-child { margin-bottom: 0; }
.close .two { align-items: start; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.stats { margin: 0; display: grid; gap: 0; position: sticky; top: calc(var(--bar-h) + 1.5rem); } .stats > div { border-top: 1px solid var(--rule); padding: 0.8rem 0 1rem; }
.stats dt { font: 500 clamp(2.4rem, 1.6rem + 2.6vw, 4rem)/1 var(--mono); letter-spacing: -0.04em; color: var(--flag-soft); }
.stats dt i { font: 600 0.32em var(--display); letter-spacing: 0.06em; text-transform: uppercase; margin-left: 0.3em; color: var(--soft); }
.stats dd { margin: 0.35rem 0 0; color: var(--soft); font-size: var(--t-s); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(var(--gap) * 1.6); }
.fig { margin: 0; } .fig img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); background: #05070a; }
.fig figcaption { color: var(--soft); font-size: var(--t-s); padding-top: 0.7rem; }
.wide-fig { margin-top: calc(var(--gap) * 1.4); }

/* folds: every long passage opens on a click and is in the page either way */
details > summary { list-style: none; cursor: pointer; position: relative; padding: 0.95rem 2.6rem 0.9rem 0; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: ""; position: absolute; right: 0.35rem; top: 50%; width: 0.62rem; height: 0.62rem; border-right: 2px solid var(--soft); border-bottom: 2px solid var(--soft); transform: translateY(-70%) rotate(45deg); transition: transform var(--fast) var(--out), border-color var(--fast); }
details[open] > summary::after { transform: translateY(-25%) rotate(-135deg); }
details > summary:hover::after { border-color: #fff; }
details > summary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.sum { font-weight: 600; letter-spacing: 0.04em; color: #fff; }
.proofs { list-style: none; counter-reset: p; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.proofs li { counter-increment: p; border-top: 1px solid var(--rule); }
.proofs summary { padding-left: 3rem; }
.proofs summary::before { content: counter(p, decimal-leading-zero); position: absolute; left: 0; top: 1.25rem; font: 500 var(--t-xs) var(--mono); color: var(--dim); }
.proofs .sum { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.55rem); }
.proof { padding: 0 0 1.5rem 3rem; }
.proof p { color: var(--soft); margin: 0; max-width: 46em; }
.proof.has-fig { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr); gap: calc(var(--gap) * 1.5); align-items: start; }
.fold { border-block: 1px solid var(--rule); margin-top: 1.4rem; }
.fold .sum { font-size: 1.15rem; color: var(--text); }
.fold[open] { padding-bottom: 0.4rem; }
.plain, .sources { margin: 0; padding: 0; list-style: none; } .plain li, .sources li { border-top: 1px solid var(--rule); color: var(--soft); }
.sources li { padding: 0.7rem 0; }
.folds { border-bottom: 1px solid var(--rule); }
.folds summary b { font-weight: 600; color: #fff; }
.folds p { margin: 0; padding: 0 0 1.1rem; color: var(--soft); }

.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.94rem; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.9rem 0.6rem 0; border-top: 1px solid var(--rule); }
tbody th { font: 600 1.02rem/1.25 var(--display); letter-spacing: 0.05em; text-transform: uppercase; color: #fff; width: 11em; }
thead th { font: 600 var(--t-xs) var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); border-top: 0; }
td:nth-child(2) { font-family: var(--mono); font-size: 0.88rem; color: #fff; width: 22em; } td:last-child { color: var(--soft); padding-right: 0; }
#tbl-sight td:nth-child(2) { width: auto; } #tbl-sight tr.far td:nth-child(2) { font-weight: 500; } #tbl-sight tr:not(.far) td:nth-child(2) { color: var(--soft); }
#tbl-throw tr:first-child th, #tbl-throw tr:first-child td { border-top: 3px solid #fff; }
.fold table tr:first-child th, .fold table tr:first-child td { border-top: 0; }
.basis { margin: 0; } .basis dt { font: 600 1.05rem var(--display); letter-spacing: 0.06em; text-transform: uppercase; color: #fff; border-top: 1px solid var(--rule); padding-top: 0.7rem; }
.basis dd { margin: 0.25rem 0 0.9rem; color: var(--soft); }
.ideas { margin: 0; padding: 0; list-style: none; counter-reset: i; columns: 2; column-gap: calc(var(--gap) * 1.6); }
.ideas li { counter-increment: i; break-inside: avoid; border-top: 1px solid var(--rule); padding: 0.8rem 0 0.9rem 2.6rem; position: relative; color: var(--soft); }
.ideas li::before { content: counter(i); position: absolute; left: 0; top: 0.55rem; font: 700 1.7rem/1 var(--display); color: #fff; }
.sources { columns: 2; column-gap: calc(var(--gap) * 1.6); } .sources li { break-inside: avoid; }
.cite { display: block; margin-top: 0.5rem; font: 400 var(--t-xs) var(--mono); color: var(--dim); }

/* ---- foot ---- */
.foot { border-top: 1px solid var(--rule-soft); background: #070a0e; }
.foot-in { padding-block: 2.2rem 2.6rem; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.2rem 2.5rem; align-items: start; }
.fine { color: var(--dim); font-size: var(--t-s); margin: 0; max-width: 60em; }
.foot-act { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; } .foot-act .btn { min-height: 2.75rem; font-size: 1rem; }
.btn.ghost { border-color: transparent; color: var(--soft); } .btn.ghost:hover { color: #fff; }

@media (max-width: 1180px) {
  .mast-head, .mast-body { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .lede { max-width: 36em; }
  .mast-side { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; align-content: start; gap: var(--gap); }
  .mast-side .cta { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 1100px) {
  .bar { gap: 0.75rem; } .bar .links a:not(:first-child) { display: none; } .bar .links { margin-left: auto; }
}
/* one column: there is room for one picture, so a switch chooses between the 3D replay and the real footage, and
   the readout, the steps and the time bar stay put under whichever is showing */
@media (max-width: 1080px) {
  .foot-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .bench { display: flex; flex-direction: column; }
  .which { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 0.8rem; order: 0; padding: 3px; border: 1px solid var(--rule); border-radius: 3px; background: var(--panel); }
  .which .chip { border: 0; border-radius: 2px; text-align: center; min-height: 2.75rem; font-size: 1.05rem; letter-spacing: 0.09em; color: var(--soft); } .which .chip.on { color: var(--ink); }
  .views, .ev-head { order: 1; align-self: stretch; }
  #stage-wrap, .ev-body > canvas { order: 2; }
  .ev-body { display: contents; }
  .under { order: 3; } .ev-cap { order: 4; } .extras { order: 5; }
  .ev-head { margin-bottom: 0.6rem; } .ev-head .chips { margin-bottom: 0; }
  .ev-head h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }      /* the switch above already says it */
  .bench[data-pic="3d"] .ev-head, .bench[data-pic="3d"] .ev-body > canvas, .bench[data-pic="3d"] .ev-cap { display: none; }
  .bench[data-pic="footage"] .views, .bench[data-pic="footage"] #stage-wrap, .bench[data-pic="footage"] #cam-note, .bench[data-pic="footage"] .toggles label, .bench[data-pic="footage"] #ghost-row { display: none; }
  .bench[data-pic="footage"] .toggles .moment { margin-left: 0; }
  .ev-body > canvas { border-bottom: 0; aspect-ratio: 540 / 430; object-fit: contain; }      /* every footage view sits in the same frame, whatever its own shape */
  #stage-wrap { aspect-ratio: 540 / 430; }          /* the same shape as the footage, so the switch does not move what is below */
}
@media (max-width: 900px) {
  .proof.has-fig { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  :root { --bar-h: 3rem; --tap: 2.75rem; }
  .cols3, .two, .close .two { grid-template-columns: minmax(0, 1fr); } .ideas, .sources { columns: 1; }
  .stats { position: static; grid-template-columns: minmax(0, 1fr); }
  .mast { display: flex; flex-direction: column; } .mast-body, .mast-side { display: contents; }
  .kicker { order: 0; } .mast-head { order: 1; } .mast .cta { order: 2; margin-top: 1.1rem; } .arc { order: 3; margin-top: 1.3rem; } .story { order: 4; margin-top: 1.5rem; } .status { order: 5; margin-top: 1.3rem; }
  .kicker { font-size: 0.95rem; gap: 0.15rem 0.8rem; } .kicker span::before { margin-right: 0.8rem; }
  .brand { font-size: 1.02rem; letter-spacing: 0.07em; }
  .share { height: 2.75rem; min-width: 2.75rem; }
  .trio { display: block; min-height: 0; margin-top: 0.4rem; border-top: 1px solid var(--rule); }
  .trio li, .trio li:nth-child(1), .trio li:nth-child(2), .trio li:nth-child(3) { position: static; transform: none; text-align: left; justify-self: auto; padding: 0; border-bottom: 1px solid var(--rule); }
  .trio li::before { display: none; }
  .trio button, .trio li:nth-child(2) button, .trio li:nth-child(3) button { display: grid; grid-template-columns: 6.1rem minmax(0, 1fr); justify-items: start; align-items: baseline; column-gap: 0.9rem; row-gap: 0.15rem; width: 100%; margin: 0; padding: 0.7rem 0 0.75rem; }
  .trio .big { font-size: 1.9rem; } .trio .big i { font-size: 0.42em; } .trio .what { white-space: normal; font-size: 1.05rem; }
  .trio .pm, .trio li:nth-child(2) .pm, .trio li:nth-child(3) .pm { grid-column: 1 / -1; max-width: none; text-wrap: wrap; }
  .arc figcaption { margin-top: 0.8rem; }
  .again { min-height: 2.75rem; padding-inline: 0.8rem; }
  .views { align-items: center; }
  .chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; min-width: 0; padding-block: 2px; margin-block: -2px; margin-right: calc(-1 * var(--gap)); padding-right: var(--gap); }
  .chips.scroll::-webkit-scrollbar { display: none; } .chips.scroll .chip { flex: none; }
  .chips.scroll.more-right { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 3.2rem), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 3.2rem), transparent); }
  .chips.scroll.more-left { -webkit-mask-image: linear-gradient(90deg, transparent, #000 2.4rem); mask-image: linear-gradient(90deg, transparent, #000 2.4rem); }
  .chips.scroll.more-left.more-right { -webkit-mask-image: linear-gradient(90deg, transparent, #000 2.4rem, #000 calc(100% - 3.2rem), transparent); mask-image: linear-gradient(90deg, transparent, #000 2.4rem, #000 calc(100% - 3.2rem), transparent); }
  .chip { min-height: 2.75rem; }
  .stage-cta { min-height: 2.75rem; font-size: 1.05rem; }
  .hud { grid-template-columns: 1fr 1fr; } .hud > div { padding: 0.5rem 0.7rem 0.55rem; } .hud dd { font-size: 0.86rem; }
  .hud > div:first-child { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.7rem; border-bottom: 1px solid var(--rule); white-space: nowrap; } .hud > div:first-child dt { margin: 0; letter-spacing: 0.08em; } .hud > div:first-child .sub { margin: 0 0 0 auto; }
  .hud > div:nth-child(2) { border-left: 0; } #r-time { font-size: 1.15rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps button { min-height: 3rem; padding: 0.4rem 0.7rem 0.45rem; } .steps b { font-size: 1.15rem; }
  .transport > .primary { flex: 1; min-width: 0; } .seg { margin-left: 0; }
  .toggles .moment, .sec-head .all { min-height: 2.75rem; display: inline-flex; align-items: center; } .toggles .moment { margin-left: 0; }
  .toggles label { min-height: 2.2rem; }

  .proofs summary { padding-left: 2.3rem; } .proof { padding-left: 0; }
  tbody th { width: 7em; } td:nth-child(2) { width: auto; }
  #tbl-throw tr, #tbl-env tr { display: grid; grid-template-columns: minmax(6.5em, 0.75fr) 1.4fr; column-gap: 0.9rem; padding: 0.7rem 0 0.75rem; border-top: 1px solid var(--rule); }
  #tbl-throw th, #tbl-throw td, #tbl-env th, #tbl-env td { border: 0; padding: 0; width: auto; } #tbl-throw td:last-child, #tbl-env td:last-child { grid-column: 1 / -1; margin-top: 0.35rem; }
  #tbl-throw tr:first-child { border-top: 3px solid #fff; } #tbl-throw tr:first-child th, #tbl-throw tr:first-child td { border-top: 0; } .fold table tr:first-child { border-top: 0; }
  #tbl-sight th:last-child, #tbl-sight td:last-child { display: none; }
  .pan { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); } .pan img { width: 1180px; max-width: none; border: 0; }
  .sec-head { gap: 0.35rem 1rem; } .sec-head .idx { flex-basis: 100%; padding-right: 0; } .sec-head .idx::after { left: 2.1rem; right: auto; width: 1.6rem; } .sec-head h2 { max-width: 100%; }
  .foot-act .btn { flex: 1; }
}
@media (max-width: 420px) {
  .share span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .share { padding: 0 0.65rem; }
  .bar .links a:first-child { font-size: 0.94rem; }
  .transport { flex-wrap: wrap; } .seg { flex: 1 1 100%; } .seg .chip { flex: 1; min-width: 2.75rem; padding-inline: 0.45rem; }
}
@media (max-width: 350px) {
  .steps button { column-gap: 0.45rem; padding-inline: 0.5rem; } .steps span { font-size: 0.94rem; letter-spacing: 0.04em; }
}
@media (prefers-reduced-motion: reduce) { * { transition-duration: 0ms !important; animation: none !important; scroll-behavior: auto !important; } }
