:root {
  --board: #141414;
  --ink: #0d0d0d;
  --paper: #ece9e2;
  --paper-2: #f6f4ef;
  --signal: #ff4a1c;
  --muted: #8d8a84;
  --tape: rgba(236, 226, 196, .78);
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Inter Tight", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--board); }
body {
  margin: 0;
  background: var(--board);
  color: var(--paper);
  font: 400 17px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--paper); color: var(--ink); padding: 8px 12px; }
.skip:focus { left: 8px; }

/* The scroller only provides scroll length. Height is set by board.js. */
.scroller { height: 900vh; }

/* ---------- the board ---------- */
.stage {
  position: fixed; inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, #1d1d1d, var(--board) 70%);
}
.board {
  position: absolute; left: 0; top: 0;
  width: 8100px; height: 6600px;
  transform-origin: 0 0;
  /* no will-change here: it makes Chrome keep the board at its most zoomed-in size,
     which runs the graphics card out of memory and blanks the start screen */
  background-image: radial-gradient(rgba(236,233,226,.09) 1.6px, transparent 1.8px);
  background-size: 40px 40px;
}
.board > *, .zone > * { position: absolute; }
.zone { position: absolute; }
/* darkens the board behind the hero text on the first screen */
.stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(20deg, rgba(10,10,10,.96) 0%, rgba(10,10,10,.82) 40%, rgba(10,10,10,.55) 75%),
    rgba(10,10,10,.35);
  opacity: 0; transition: opacity .5s ease;
}
body.at-hero .stage::after { opacity: 1; }

/* paint: big type sprayed on the board */
.paint {
  font: 900 300px/.82 var(--display);
  letter-spacing: -.01em;
  color: var(--paper);
  text-transform: uppercase;
  display: flex; flex-direction: column;
  opacity: .96;
}
.paint .o { color: var(--signal); }
.paint.end { font-size: 250px; }
.paint.deco { font-size: 420px; opacity: .9; }

/* photos */
.photo {
  margin: 0;
  background: var(--paper-2);
  padding: 14px 14px 0;
  rotate: var(--r, 0deg);
  box-shadow: 0 30px 60px rgba(0,0,0,.55), 0 4px 10px rgba(0,0,0,.4);
}
.photo img { display: block; width: 100%; height: auto; background: #2a2a2a; }
.photo figcaption {
  font: 600 26px/1.1 var(--body);
  color: var(--ink);
  padding: 14px 2px 18px;
}
.photo:not(:has(figcaption)) { padding-bottom: 14px; }
.photo.big { padding: 18px 18px 18px; }

.tape {
  width: 150px; height: 44px;
  background: var(--tape);
  rotate: var(--r, 0deg);
  z-index: 3;
  box-shadow: 0 2px 4px rgba(0,0,0,.15);
}

/* paper notes, typed */
.note {
  background: var(--paper);
  color: var(--ink);
  padding: 26px 30px 30px;
  font: 400 24px/1.5 var(--mono);
  rotate: var(--r, 0deg);
  box-shadow: 0 20px 40px rgba(0,0,0,.5);
}
.note b { display: block; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; color: var(--signal); }
.note.wide { font-size: 30px; }

/* race bib */
.bib {
  width: 330px; height: 300px;
  background: var(--paper-2); color: var(--ink);
  border: 6px solid var(--ink);
  outline: 4px solid var(--paper-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  rotate: var(--r, 0deg);
  box-shadow: 0 20px 40px rgba(0,0,0,.5);
}
.bib b { font: 900 190px/.8 var(--display); color: var(--ink); }
.bib small { font: 700 22px/1 var(--mono); letter-spacing: .12em; margin: 10px 0; }

/* camera frame */
.frame {
  background: #000;
  border: 2px solid #333;
  box-shadow: 0 30px 70px rgba(0,0,0,.6);
}
.frame video { display: block; width: 100%; height: auto; background: #222; object-fit: cover; aspect-ratio: 16 / 9; }
.frame-bar {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 12px 18px;
  font: 400 20px/1 var(--mono); color: var(--paper); text-transform: uppercase;
}
.frame-bar span:first-child { color: var(--signal); }
.frame-bar span:first-child::before { content: "● "; }
.frame.small .frame-bar { font-size: 18px; }
/* vertical clips, in phone-like bezels */
.vstrip { display: flex; gap: 20px; }
.vstrip video, .vclip video {
  display: block; width: 190px; height: auto; aspect-ratio: 9 / 16; object-fit: cover;
  background: #222; border: 8px solid #1f1f1f; border-radius: 22px;
  box-shadow: 0 24px 50px rgba(0,0,0,.55);
}
.vclip { rotate: var(--r, 0deg); }
.vclip video { width: 100%; }

/* globe */
.globe-wrap canvas { width: 100%; height: 100%; display: block; }
.stamp {
  font: 900 64px/.9 var(--display);
  color: var(--signal);
  text-transform: uppercase;
  border: 6px solid var(--signal);
  padding: 14px 20px;
  rotate: var(--r, 0deg);
}

/* client tags */
.tags {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 22px 20px;
}
.tags li {
  font: 800 50px/1 var(--display);
  text-transform: uppercase;
  padding: 18px 26px 16px;
  background: var(--ink); color: var(--paper);
  border: 3px solid var(--paper);
}
.tags li:nth-child(odd) { rotate: -1.5deg; }
.tags li:nth-child(3n) { rotate: 2deg; }
.tags li.o { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.tags li.w { background: var(--paper); color: var(--ink); }

/* season ticket */
.ticket {
  background: var(--paper); color: var(--ink);
  box-shadow: 0 30px 60px rgba(0,0,0,.55);
  font-family: var(--mono);
  rotate: -1deg;
}
.ticket header {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 30px 40px 24px;
  border-bottom: 4px dashed var(--ink);
}
.ticket header b { font: 900 96px/.85 var(--display); }
.ticket header span { font-size: 18px; letter-spacing: .08em; }
.ticket ol { list-style: none; margin: 0; padding: 14px 40px; }
.ticket li {
  display: grid; grid-template-columns: 170px 1fr; column-gap: 24px;
  padding: 14px 0;
  border-bottom: 2px solid rgba(13,13,13,.15);
}
.ticket li time { grid-row: span 2; font: 700 34px/1 var(--display); color: var(--signal); padding-top: 4px; }
.ticket li b { font: 800 42px/1 var(--display); text-transform: uppercase; }
.ticket li span { font: 400 22px/1.3 var(--body); color: #555; margin-top: 4px; }
.ticket li.o { background: var(--signal); margin: 0 -40px; padding: 14px 40px; }
.ticket li.o time, .ticket li.o span { color: var(--ink); }
.ticket footer { padding: 16px 40px 26px; font: 400 20px/1.3 var(--body); color: #555; }

/* offer list */
.offer {
  background: var(--signal); color: var(--ink);
  padding: 50px 54px 54px;
  rotate: -1.5deg;
  box-shadow: 0 30px 60px rgba(0,0,0,.55);
}
.offer h3 { font: 900 96px/.86 var(--display); text-transform: uppercase; margin: 0 0 30px; }
.offer ol { margin: 0; padding: 0; list-style: none; }
.offer li {
  font: 600 34px/1.2 var(--body);
  padding: 16px 0;
  border-top: 3px solid var(--ink);
}

/* phone */
.phone {
  width: 470px;
  background: #000;
  border: 14px solid #1f1f1f;
  border-radius: 56px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,.65);
  rotate: -2deg;
  font-family: var(--body);
}
.phone-top { display: flex; justify-content: space-between; padding: 26px 26px 14px; font-size: 24px; }
.phone-media video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: #222; }
.phone-acts { display: flex; gap: 24px; padding: 16px 24px; font-size: 32px; }
.phone-acts span:first-child { color: var(--signal); }
.phone-comments { list-style: none; margin: 0; padding: 0 24px 30px; font-size: 22px; }
.phone-comments li { display: flex; align-items: center; gap: 14px; padding: 7px 0; }
.phone-comments i { width: 30px; height: 30px; border-radius: 50%; background: #333; flex: none; }
.phone-comments li:nth-child(2) i { background: #555; }
.phone-comments li:nth-child(3) i { background: var(--signal); }

.sticker {
  width: 250px; height: 250px; border-radius: 50%;
  background: var(--paper); color: var(--ink);
  display: grid; place-items: center; text-align: center;
  font: 700 26px/1.2 var(--mono);
  rotate: var(--r, 0deg);
  box-shadow: 0 20px 40px rgba(0,0,0,.5);
}

/* ---------- the copy (fixed panels) ---------- */
.copy { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
.panel {
  position: absolute;
  left: clamp(20px, 4vw, 64px);
  bottom: clamp(24px, 6vh, 72px);
  width: min(30vw, 470px);
  padding: 28px 30px 30px;
  background: rgba(13,13,13,.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  translate: 0 24px;
  transition: opacity .45s ease, translate .45s ease;
}
.panel.on { opacity: 1; translate: 0 0; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) {
  .panel { transition: opacity .2s linear; translate: none; }
}
.kicker {
  font: 400 13px/1.4 var(--mono);
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--signal);
  margin: 0 0 14px;
}
.panel h1, .panel h2 {
  font: 900 clamp(48px, 5.4vw, 84px)/.88 var(--display);
  text-transform: uppercase;
  margin: 0 0 16px;
}
.panel h2 { font-size: clamp(40px, 4.2vw, 64px); }
.panel h1 span { color: var(--signal); }
.panel p { margin: 0; color: #d9d6cf; }
.panel .hint {
  margin-top: 18px; font: 500 15px/1 var(--body); color: var(--muted);
}
.panel .hint::after { content: " ↓"; }
.panel.hero {
  width: min(44vw, 620px);
  background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
  border-left: 0; padding: 0;
  bottom: clamp(32px, 8vh, 96px);
}
.panel.hero h1 { font-size: clamp(64px, 8.4vw, 150px); text-shadow: 0 6px 40px rgba(0,0,0,.6); }
.panel.hero p:not(.kicker):not(.hint) { font-size: 19px; max-width: 30em; text-shadow: 0 2px 16px rgba(0,0,0,.9); }
.links { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.links a {
  display: inline-block; padding: 12px 18px;
  font: 700 14px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink); background: var(--paper); text-decoration: none;
}
.links a:hover, .links a:focus-visible { background: var(--signal); }
a:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }

/* section rail */
.rail { position: fixed; right: clamp(12px, 2vw, 32px); top: 50%; translate: 0 -50%; z-index: 11; }
.rail ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rail button {
  display: block; width: 12px; height: 12px; padding: 0;
  border: 2px solid var(--paper); background: transparent; border-radius: 50%;
  cursor: pointer;
}
.rail button[aria-current="true"] { background: var(--signal); border-color: var(--signal); }
.rail button:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }

/* phones: board on top, copy at the bottom */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .panel {
    left: 12px; right: 12px; bottom: 12px; width: auto;
    padding: 20px 20px 22px;
  }
  .panel.hero { left: 16px; right: 16px; bottom: 24px; width: auto; }
  .panel.hero h1 { font-size: clamp(54px, 16vw, 84px); }
  .panel.hero p:not(.kicker):not(.hint) { font-size: 16px; }
  .panel h2 { font-size: 38px; }
  .stage::after { background: linear-gradient(0deg, rgba(10,10,10,.97) 0%, rgba(10,10,10,.88) 45%, rgba(10,10,10,.55) 80%), rgba(10,10,10,.3); }
  .rail { right: 6px; top: 16px; translate: none; }
  .rail ol { flex-direction: row; gap: 6px; }
  .rail button { width: 9px; height: 9px; }
}


/* ---------- v2: race file ---------- */
.racefile {
  background: var(--paper); color: var(--ink);
  rotate: 1.5deg;
  box-shadow: 0 30px 60px rgba(0,0,0,.55);
  border-top: 14px solid var(--signal);
}
.racefile header { display: flex; justify-content: space-between; align-items: baseline; padding: 22px 34px 10px; }
.racefile header b { font: 900 84px/.9 var(--display); text-transform: uppercase; }
.racefile header span { font: 700 22px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--signal); }
.racefile dl { display: grid; grid-template-columns: 150px 1fr; margin: 0; padding: 4px 34px 30px; }
.racefile dt, .racefile dd { border-top: 2px solid rgba(13,13,13,.14); padding: 12px 0 10px; margin: 0; }
.racefile dt { font: 700 20px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: #6b6964; }
.racefile dd { font: 800 40px/1.05 var(--display); text-transform: uppercase; }
.racefile dd i { font-style: normal; color: var(--signal); }
.racefile .o { background: var(--ink); color: var(--paper); }
.racefile dt.o { color: var(--signal); padding-left: 14px; margin-left: -14px; }
.racefile dd.o { margin-right: -34px; padding-right: 34px; color: var(--signal); }
.stamp.small { position: absolute; right: -40px; top: -60px; font-size: 44px; rotate: 12deg; background: var(--board); }

/* ---------- v2: camera, clip picker, edit notes ---------- */
.frame-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.frame-media video { position: relative; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.frame-bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(30px) brightness(.45) saturate(1.2); opacity: 0; transition: opacity .3s; }
.frame.tall .frame-bg { opacity: 1; }
.frame.tall .frame-media video { object-fit: contain; background: transparent; }
.vstrip { display: flex; gap: 20px; }
.clip {
  position: relative; display: block; width: 190px; padding: 0; cursor: pointer;
  border: 8px solid #1f1f1f; border-radius: 22px; overflow: hidden; background: #222;
  box-shadow: 0 24px 50px rgba(0,0,0,.55);
  transition: translate .2s ease, border-color .2s;
}
.clip img, .clip video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border: 0; border-radius: 0; box-shadow: none; }
.clip span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  font: 600 19px/1.1 var(--body); color: var(--paper); text-align: left;
}
.clip:hover { translate: 0 -8px; }
.clip.on { border-color: var(--signal); }
.clip.on span::before { content: "▶ "; color: var(--signal); }
.clip:focus-visible { outline: 4px solid var(--signal); outline-offset: 4px; }
.tap { margin: 0; font: 600 28px/1 var(--body); color: var(--signal); rotate: -4deg; }

.editnotes {
  background: var(--paper); color: var(--ink);
  padding: 30px 34px 34px;
  rotate: 2deg;
  box-shadow: 0 24px 50px rgba(0,0,0,.55);
}
.editnotes h4 { margin: 0 0 18px; font: 900 62px/.9 var(--display); text-transform: uppercase; }
.editnotes h4 i { display: block; font: 600 26px/1.3 var(--body); text-transform: none; font-style: normal; color: #55534f; margin-top: 6px; }
.editnotes dl { margin: 0; }
.editnotes dt { font: 700 26px/1.2 var(--body); color: var(--ink); margin-top: 18px; }
.editnotes dd { margin: 4px 0 0; font: 400 26px/1.35 var(--body); color: #3d3b37; border-bottom: 2px solid rgba(13,13,13,.12); padding-bottom: 14px; }
.editnotes.in { animation: notes-in .35s steps(4) both; }
@keyframes notes-in {
  0% { clip-path: inset(0 0 85% 0); translate: -10px 0; }
  50% { clip-path: inset(0 0 30% 0); translate: 8px 0; }
  100% { clip-path: inset(0 0 0 0); translate: 0 0; }
}

/* ---------- v2: taped photos that fall and get slapped back on ---------- */
.photo.taped::before {
  content: ""; position: absolute; left: 50%; top: -22px; translate: -50% 0;
  width: 150px; height: 44px; background: var(--tape); rotate: -4deg; z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,.15);
}
.photo.slap { animation: slap .32s cubic-bezier(.2,1.5,.45,1) both; }
@keyframes slap {
  0% { transform: scale(1.35) rotate(-6deg); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: none; opacity: 1; }
}
.photo.wide img { aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 35%; }

/* ---------- v2: decks of cards (globe and end) ---------- */
.deck { pointer-events: none; }
.pcard, .dcard {
  position: absolute; left: 50%; top: 50%; margin: 0;
  translate: calc(-50% + var(--dx, 0px)) calc(-50% + var(--dy, 0px));
  rotate: var(--r, 0deg);
  box-shadow: 0 26px 50px rgba(0,0,0,.6);
}
.pcard { animation: slap .34s cubic-bezier(.2,1.5,.45,1) both; }
.pcard.photo { width: 380px; padding: 14px 14px 0; background: var(--paper-2); }
.pcard.photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pcard.photo figcaption { font: 600 28px/1.1 var(--body); color: var(--ink); padding: 14px 2px 18px; }
.pcard.tix {
  width: 420px; box-sizing: border-box; padding: 30px 34px; background: var(--paper); color: var(--ink);
  border-left: 14px solid var(--signal); font-family: var(--mono);
}
.pcard.tix small { display: block; font-size: 18px; letter-spacing: .14em; text-transform: uppercase; color: var(--signal); }
.pcard.tix b { display: block; font: 900 58px/.95 var(--display); text-transform: uppercase; margin: 8px 0 12px; overflow-wrap: break-word; }
.pcard.tix span { font: 400 24px/1.3 var(--body); }

.dcard {
  width: 460px; padding: 14px; background: var(--paper-2);
  opacity: 0; scale: 1.4; transition: opacity .18s ease, scale .28s cubic-bezier(.2,1.5,.45,1);
}
.dcard img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; background: #2a2a2a; }
.dcard.in { opacity: 1; scale: 1; }
@media (prefers-reduced-motion: reduce) { .dcard { transition: opacity .2s linear; scale: 1; } }
.deck-count {
  position: absolute; left: 0; bottom: -10px; margin: 0; z-index: 99;
  font: 700 26px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--signal);
  background: var(--ink); padding: 10px 14px;
}

/* ---------- v2: contact card with links ---------- */
.contact { background: var(--paper); color: var(--ink); padding: 28px 30px 20px; rotate: -1deg; box-shadow: 0 24px 50px rgba(0,0,0,.55); }
.contact > b { display: block; font: 700 20px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--signal); margin-bottom: 8px; }
.contact a {
  display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; align-items: center;
  padding: 16px 0; border-top: 2px solid rgba(13,13,13,.14);
  color: var(--ink); text-decoration: none;
}
.contact a svg { grid-row: span 2; width: 56px; height: 56px; }
.contact a span { font: 900 46px/.95 var(--display); text-transform: uppercase; }
.contact a em { font: 400 22px/1.2 var(--mono); font-style: normal; color: #55534f; }
.contact a:hover span, .contact a:focus-visible span { color: var(--signal); }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg .fill { fill: currentColor; stroke: none; }
svg .fill.dim { opacity: .55; }
svg .dot { fill: currentColor; stroke: none; }
.links a { display: inline-flex; align-items: center; gap: 10px; }
.links svg { width: 18px; height: 18px; }

/* ---------- v2: Jakob's edit effects ---------- */


/* the small label in full-frame mode */
.panel.mini { width: auto; padding: 14px 18px; border-left-width: 4px; }
.panel.mini .kicker { margin: 0; }
.panel.mini .kicker::before { content: "▶ "; }

/* clickable client tags */
.tags button {
  all: unset; display: block; cursor: pointer;
  font: 800 50px/1 var(--display); text-transform: uppercase;
  padding: 18px 26px 16px; margin: -18px -26px -16px;
}
.tags li:has(button) { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.tags li:has(button)::after { content: " ↗"; }
.tags li:has(button.on) { background: var(--signal); border-color: var(--signal); }
.tags li:has(button:focus-visible) { outline: 4px solid var(--signal); outline-offset: 4px; }
.tags li:has(button) { display: flex; align-items: center; gap: 8px; }
.tags li:has(button)::after { font: 800 40px/1 var(--display); }
.collab-notes { rotate: 1.5deg; }

/* the deal: season package and first 90 days */
.pack, .ninety { color: var(--ink); box-shadow: 0 30px 60px rgba(0,0,0,.55); }
.pack { background: var(--paper); padding: 44px 50px 40px; rotate: -1deg; }
.ninety { background: var(--signal); padding: 40px 46px 36px; rotate: 1.5deg; }
.pack h3, .ninety h3 { font: 900 92px/.88 var(--display); text-transform: uppercase; margin: 0 0 24px; }
.pack ol, .ninety ol { list-style: none; margin: 0; padding: 0; }
.pack li, .ninety li { border-top: 3px solid var(--ink); padding: 18px 0 16px; display: grid; grid-template-columns: 300px 1fr; column-gap: 24px; }
.ninety li { grid-template-columns: 230px 1fr; }
.pack b, .ninety b { font: 800 44px/1 var(--display); text-transform: uppercase; }
.pack b { color: var(--signal); }
.pack span, .ninety span { font: 500 30px/1.3 var(--body); }

/* intro photo deck: a new photo is tossed onto the pile every few seconds */
.hero-deck {
  --w: min(27vw, 400px, calc((100vh - 200px) * .64));
  position: fixed; z-index: 9; pointer-events: none;
  right: clamp(48px, 9vw, 160px); top: 50%; translate: 0 -50%;
  width: var(--w); height: calc(var(--w) * 1.5 + 24px);
  opacity: 0; transition: opacity .5s ease;
}
body.at-hero .hero-deck { opacity: 1; }
.hero-deck figure {
  /* each card takes its photo's own shape, centred on the pile */
  position: absolute; left: 50%; top: 50%; width: 100%; margin: 0;
  background: var(--paper-2); padding: 12px;
  box-shadow: 0 24px 50px rgba(0,0,0,.55);
  transform: translate(-50%, -50%) translate(var(--dx, 0), var(--dy, 0)) rotate(var(--r, 0deg));
}
.hero-deck img { display: block; width: 100%; height: auto; background: #2a2a2a; }
.hero-deck figure.wide { width: 118%; }
@media (prefers-reduced-motion: no-preference) {
  .hero-deck figure.new { animation: toss .95s cubic-bezier(.16, 1, .3, 1) both; will-change: transform; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-deck figure.new { animation: fade-in .4s ease both; }
}
/* slides in from off-screen right, already rotated, slows down and lands; the shadow tightens as it lands */
@keyframes toss {
  from { transform: translate(-50%, -50%) translate(var(--fx), var(--fy)) rotate(var(--fr)); }
  to { transform: translate(-50%, -50%) translate(var(--dx, 0), var(--dy, 0)) rotate(var(--r, 0deg)); }
}
@keyframes fade-in { from { opacity: 0; } }
@media (max-width: 760px) {
  .hero-deck { --w: min(46vw, calc((100vh - 420px) * .64)); right: auto; left: 50%; top: 20px; translate: -50% 0; }
}

/* opening: black until everything is ready, then fade */
.intro { position: fixed; inset: 0; z-index: 30; background: #0a0a0a; pointer-events: none; transition: opacity .7s ease; }
body:not(.loading) .intro { opacity: 0; }

/* gentle snap: scrolling settles on a stop instead of sliding past it */
html { scroll-snap-type: y proximity; }
.scroller { position: relative; pointer-events: none; } /* only gives scroll length; must never block clicks on the board */
.snap { position: absolute; left: 0; width: 1px; height: 1px; scroll-snap-align: start; }

/* intro backdrop: a picture of the board, blurred, until the real board has loaded */
.stage::before {
  content: ""; position: absolute; inset: 0; /* same box as the stage, so the picture lines up with the board exactly */
  background: url("media/board-snap.webp?v=37") center / cover no-repeat;
  filter: blur(5px);
  transition: opacity .6s ease .7s;
}
.board { opacity: 0; transition: opacity .8s ease; }
body.board-ready .board { opacity: 1; }
body.board-ready .stage::before, body:not(.at-hero) .stage::before { opacity: 0; }
/* snapshot mode: only the board, used to make board-snap.webp */
body.snapshot .copy, body.snapshot .hero-deck, body.snapshot .rail, body.snapshot .intro,
body.snapshot .stage::after, body.snapshot .stage::before { display: none !important; }
body.snapshot .board { transition: none; }

/* zones far from the camera are not drawn at all */
.zone.off { visibility: hidden; }

/* season package: the line being shown, and the example edit next to it */
.pack li { transition: background .35s ease, color .35s ease; cursor: pointer; }
.pack li.on { background: var(--ink); color: var(--paper); margin: 0 -22px; padding-left: 22px; padding-right: 22px; }
.sample { rotate: 2deg; }
.sample-media { position: relative; aspect-ratio: 9 / 16; border: 8px solid #1f1f1f; border-radius: 22px; overflow: hidden; background: #222; box-shadow: 0 24px 50px rgba(0,0,0,.55); }
.sample-media video, .sample-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sample-media img { opacity: 0; transition: opacity .3s; }
.sample.still .sample-media img { opacity: 1; }
.sample-bar { position: absolute; left: 14px; right: 14px; top: 18px; z-index: 2; height: 4px; background: rgba(255,255,255,.3); border-radius: 2px; overflow: hidden; }
.sample-bar::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
.sample.tick .sample-bar::after { animation: sample-bar 5s linear forwards; }
@keyframes sample-bar { to { transform: scaleX(1); } }
.sample-cap { margin: 14px 4px 0; font: 600 22px/1.25 var(--body); color: var(--paper); }

/* "UCI Worlds Qualifier" tag on a race */
.tag-q {
  display: inline-block; vertical-align: middle; margin-left: 10px; padding: 5px 9px 4px;
  font: 700 19px/1 var(--body); font-style: normal; letter-spacing: .04em; text-transform: uppercase;
  background: var(--signal); color: var(--ink); white-space: nowrap;
}
.ticket li.o .tag-q { background: var(--ink); color: var(--paper); }
