/* ============================================================
   GRID+CLUB — phase 3
   Partner wall · world gateways · circuit round states
   ============================================================ */

/* ---------- Circuit states ------------------------------------
   A round that has already been raced is spent: it keeps its shape
   but loses its charge. The next round is the only one that glows.
   -------------------------------------------------------------- */
.circuit[data-round="raced"] .circuit__line {
  stroke: var(--muted);
  filter: none;
  opacity: 0.5;
}
.circuit[data-round="raced"] .circuit__ghost { opacity: 0.07; }
.circuit[data-round="raced"] .circuit__dot { fill: var(--muted); filter: none; }

.circuit[data-round="upcoming"] .circuit__line {
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 28%, transparent));
  opacity: 0.85;
}

.circuit[data-round="next"] .circuit__line {
  filter: drop-shadow(0 0 16px color-mix(in srgb, var(--accent) 75%, transparent));
}

/* The round card itself carries the same three states. */
.round[data-round="raced"] { opacity: 0.58; }
.round[data-round="raced"]:hover { opacity: 1; }
.round[data-round="raced"] .round__no { color: var(--muted); }

.round[data-round="next"] {
  background: var(--surface);
  outline: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: -1px;
}

.round__flag {
  justify-self: start;
  padding: 0.18em 0.5em;
  border: 1px solid currentColor;
  color: var(--muted);
  line-height: 1;
}
.round[data-round="next"] .round__flag { color: var(--accent); }

/* ---------- 14 · PARTNER WALL --------------------------------
   Marks rest as white knockouts at matched optical weight and
   come up in full colour on hover. Nothing is cropped, nothing
   sits on a coloured plate.
   -------------------------------------------------------------- */
.partners {
  padding-block: var(--space-section);
  border-top: 1px solid var(--line);
}
.partners__head { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.partners__lede { color: var(--muted); max-width: 52ch; }

.partners__tier {
  color: var(--muted);
  padding-bottom: 0.9rem;
  margin-top: clamp(2rem, 4vw, 3.2rem);
  border-bottom: 1px solid var(--line);
}
.partners__tier:first-of-type { margin-top: 0; }

.pwall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.pmark {
  position: relative;
  background: var(--ground);
  display: grid;
  gap: clamp(1.2rem, 2.5vw, 2rem);
  align-content: center;
  padding: clamp(2rem, 4vw, 3.4rem) clamp(1.4rem, 3vw, 2.6rem);
  min-height: clamp(210px, 26vh, 300px);
  overflow: hidden;
  transition: background var(--d2) var(--ease-out);
}
.pmark::before {
  /* accent sweeps up from the floor of the cell on hover */
  content: "";
  position: absolute; inset: auto 0 0 0; height: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--d3) var(--ease-out);
}
.pmark:hover { background: var(--surface); }
.pmark:hover::before, .pmark:focus-visible::before { transform: scaleX(1); }

.pmark__frame {
  position: relative;
  display: block;
  height: clamp(58px, 8vw, 92px);
}
.pmark__frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  transition: opacity var(--d3) var(--ease-out);
}
.pmark__w { opacity: 0.68; }
.pmark__c { opacity: 0; }
.pmark:hover .pmark__w, .pmark:focus-visible .pmark__w { opacity: 0; }
.pmark:hover .pmark__c, .pmark:focus-visible .pmark__c { opacity: 1; }

.pmark__meta { display: grid; gap: 0.35rem; }
.pmark__name {
  font-family: var(--display-face);
  font-weight: 600; text-transform: uppercase;
  font-size: clamp(0.95rem, 0.85rem + 0.35vw, 1.2rem);
  letter-spacing: 0.01em;
}

/* The venue is the title partner, so it gets the full width. */
.pwall--lead { grid-template-columns: 1fr; }
.pwall--lead .pmark { min-height: clamp(240px, 32vh, 380px); }
.pwall--lead .pmark__frame { height: clamp(82px, 11vw, 140px); }
.pwall--lead .pmark__name { font-size: clamp(1.2rem, 0.9rem + 1.2vw, 2rem); }

.partners__cta {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding-top: clamp(2rem, 4vw, 3.2rem);
}
.partners__cta p { color: var(--muted); max-width: 40ch; }

/* ---------- 11 · WORLD GATEWAYS ------------------------------ */
.worlds { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

.world {
  min-height: clamp(380px, 56vh, 620px);
  align-content: end;
  padding: clamp(1.6rem, 3vw, 2.8rem);
}
.world__idx { color: var(--muted); position: absolute; top: clamp(1.2rem, 2.4vw, 2rem); left: clamp(1.6rem, 3vw, 2.8rem); }

/* a hairline that draws across the card as it is approached */
.world__rule {
  position: absolute; z-index: 2;
  left: clamp(1.6rem, 3vw, 2.8rem); right: clamp(1.6rem, 3vw, 2.8rem);
  top: clamp(2.6rem, 4vw, 3.6rem);
  height: 1px; background: currentColor; opacity: 0.25;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--d4) var(--ease-out);
}
.world:hover .world__rule { transform: scaleX(1); }

.world__body { display: grid; gap: 1rem; justify-items: start; }

/* Real brand lockups, held to a common cap height so the three
   gateways read as one family rather than three pasted images. */
.world__lockup {
  width: min(100%, 300px);
  max-height: clamp(30px, 4.2vw, 52px);
  object-fit: contain; object-position: left center;
  filter: drop-shadow(0 2px 18px rgb(0 0 0 / 0.55));
}
.world__type {
  font-family: var(--display-face);
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.9rem, 1.1rem + 2.6vw, 3.4rem);
  line-height: 0.9; letter-spacing: -0.01em;
}
.world__type em { font-style: normal; color: var(--accent); }

.world__go {
  color: var(--accent);
  opacity: 0; transform: translateY(6px);
  transition: opacity var(--d2) var(--ease-out), transform var(--d2) var(--ease-out);
}
.world__go i { font-style: normal; display: inline-block; transition: transform var(--d2) var(--ease-out); }
.world:hover .world__go { opacity: 1; transform: none; }
.world:hover .world__go i { transform: translateX(5px); }

/* Each gateway is lit in the palette of the world it opens. */
.world--girl:hover { --accent: #ff1568; }
.world--tgc:hover  { --accent: #ff4d00; }
.world--off:hover  { --accent: #d4ff00; }

/* ---------- 12 · CREW footer --------------------------------- */
.crew__foot {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 1.4rem 2rem;
  margin-top: clamp(2.2rem, 4vw, 3.4rem);
}
.crew__vol { color: var(--muted); transition: color var(--d2) var(--ease-out); }
.crew__vol:hover { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .world__rule { transform: scaleX(1); }
  .world__go { opacity: 1; transform: none; }
  .pmark::before { transition: none; }
}

/* ---------- 05 · THE MACHINE: the car, big, under the x-ray -----
   Headline on top, the car across the full width of the page, the
   spec sheet as one row beneath it. The car is the point, so it gets
   the whole stage and nothing sits on top of it. */
.machine { padding-block: var(--space-section); border-top: 1px solid var(--line); overflow: hidden; }
.machine__head {
  display: grid; gap: 1.2rem 3rem; align-items: end;
  margin-bottom: clamp(0.5rem, 2vw, 1.5rem);
}
@media (min-width: 900px) { .machine__head { grid-template-columns: 1.4fr 1fr; } }
.machine__title { font-size: var(--text-section); max-width: 14ch; margin-top: 0.6rem; }
.machine__lede { color: var(--muted); max-width: 40ch; }

.machine__stage {
  position: relative;
  width: 100%;
  height: clamp(24rem, 50vw + 4rem, 52rem);
}
.machine__canvas {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; display: block;
  opacity: 0; transition: opacity var(--d4) var(--ease-out);
  cursor: grab;
  touch-action: pan-y;
}
.is-live .machine__canvas { opacity: 1; }

/* The x-ray lens ring (scripts/model.js). Positioned by transform from
   the stage's top-left, then centred on the pointer by its margins. */
.xray-ring {
  position: absolute; left: 0; top: 0; z-index: 2;
  width: calc(var(--r) * 2); height: calc(var(--r) * 2);
  margin: calc(var(--r) * -1) 0 0 calc(var(--r) * -1);
  border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 18%, transparent) inset;
  pointer-events: none;
  opacity: 0;
  scale: var(--s, 0);
}
.xray-ring .mono {
  position: absolute; left: 50%; top: -1.6em; translate: -50% 0;
  font-size: 0.5625rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); white-space: nowrap;
}
.machine__canvas.is-held { cursor: grabbing; }

/* A hint that the thing is holdable, gone the moment it is held. */
.machine__stage::after {
  content: "Drag to turn";
  position: absolute; z-index: 2;
  left: 50%; bottom: 2%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.5625rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
  opacity: 0; transition: opacity var(--d3) var(--ease-out);
}
.machine__stage.is-live::after { opacity: 0.7; }
@media (hover: hover) {
  .machine__stage::after { content: "Drag to turn \00b7  Hover for x-ray"; }
}
.machine__stage:has(.is-held)::after { opacity: 0; }

.spec { display: grid; gap: 0; margin-top: 0.6rem; border-top: 1px solid var(--line); }
.spec__row {
  display: grid; gap: 0.3rem 1.5rem;
  grid-template-columns: 1fr;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 560px) { .spec__row { grid-template-columns: 7.5rem 1fr; align-items: baseline; } }
/* Under the car the sheet runs as one row of five. */
.spec--row { margin-top: clamp(0.5rem, 2vw, 1.5rem); border-top: 0; }
@media (min-width: 900px) {
  .spec--row { grid-template-columns: repeat(5, 1fr); gap: 0 clamp(1rem, 2vw, 2rem); }
  .spec--row .spec__row { grid-template-columns: 1fr; border-top: 1px solid var(--line); border-bottom: 0; align-content: start; }
}
.spec dt { color: var(--accent); }
.spec dd { margin: 0; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  /* No car without motion, so no empty stage either. */
  .machine__canvas, .machine__stage { display: none; }
}

/* ---------- 07 · WHAT RACE DAY LOOKS LIKE ------------------
   Was six text tiles floating in black. Now every claim is made
   over the photograph that proves it.
   -------------------------------------------------------------- */
.whatgrid {
  display: grid; gap: 2px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 900px) { .whatgrid { grid-template-columns: repeat(3, 1fr); } }

.what {
  position: relative; margin: 0; overflow: hidden;
  background: var(--surface);
  min-height: clamp(260px, 34vh, 420px);
}
.what > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.55) contrast(1.1) brightness(0.72);
  transition: filter var(--d3) var(--ease-out), transform var(--d4) var(--ease-out);
}
.what:hover > img { filter: grayscale(0) contrast(1.05) brightness(0.82); transform: scale(1.04); }
.what::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(transparent 28%, rgb(0 0 0 / 0.88) 100%);
}
.what figcaption {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  display: grid; gap: 0.45rem;
  padding: clamp(1.1rem, 2.4vw, 1.8rem);
}
.what figcaption strong {
  font-family: var(--display-face); font-weight: 700;
  text-transform: uppercase; line-height: 1.02;
  font-size: clamp(1.05rem, 0.9rem + 0.75vw, 1.7rem);
  max-width: 20ch;
}
.what figcaption span:not(.mono) { color: #b9bbb0; font-size: 0.9rem; max-width: 42ch; }
/* Five tiles on three columns only tile without holes in one
   arrangement: a 2x2 hero, three singles, and a 2-wide closer.
   4 + 1 + 1 + 1 + 2 = 9 cells = exactly 3x3. */
.what--hero { grid-column: span 2; grid-row: span 2; }
.what--wide { grid-column: span 2; }

@media (max-width: 899px) {
  /* Two columns: the hero stays 2-wide but gives up its second row,
     and the closer spans the pair. */
  .what--hero { grid-column: span 2; grid-row: span 1; }
  .what--wide { grid-column: span 2; }
}

/* ---------- Helmet mask ---------- */
/* The custom cursor stands in for the native one, so a card that is
   ONLY a reveal hides it. A card that also opens the FAQ keeps the
   pointer: it is role="button", and hiding the one affordance that
   says "this is clickable" to protect an effect is the wrong trade.
   Scoped rather than left to source order, which is what previously
   decided this by accident. */
.what--helmet:not(.what--open) { cursor: none; }
.helmet__base, .helmet__reveal {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.helmet__reveal {
  z-index: 1;
  /* The window starts closed; the pointer opens it. */
  clip-path: circle(0% at 50% 50%);
  filter: contrast(1.1) saturate(1.05);
}
.what--helmet::after { z-index: 1; }
/* Without a pointer the window simply sits open in the middle. */
.helmet--static .helmet__reveal { clip-path: circle(38% at 50% 45%); }

/* ---------- The burger ---------- */
.burger {
  position: fixed; z-index: 920;
  /* The nav is a flex bar with 0.9rem of padding; matching that padding
     and letting both size to their content puts the button on the same
     baseline as the world links instead of floating near them. */
  top: 0.9rem;
  right: var(--gutter);
  display: inline-flex; align-items: center; gap: 0.7rem;
  /* Same vertical padding as .nav__world, so both boxes resolve to the
     same height and sit on one optical line. */
  padding: 0.4rem 0.9rem;
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  border: 1px solid var(--line);
  color: var(--ink);
  backdrop-filter: blur(8px);
  transition: border-color var(--d2) var(--ease-out), background var(--d2) var(--ease-out);
}
.burger:hover, .burger:focus-visible { border-color: var(--accent); }
.burger__box { display: grid; gap: 4px; width: 20px; }
.burger__box i {
  display: block; height: 2px; width: 100%;
  background: currentColor;
  transition: transform var(--d2) var(--ease-io), opacity var(--d1) linear, width var(--d2) var(--ease-out);
}
/* The bars are staggered at rest and travel into a cross when open. */
.burger__box i:nth-child(2) { width: 68%; }
.burger:hover .burger__box i:nth-child(2) { width: 100%; }
.burger[aria-expanded="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.burger[aria-expanded="true"] .burger__box i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__box i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__box i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.burger__label { letter-spacing: var(--track-mono); }
/* The word would sit under the cross once the bars have crossed. */
.burger[aria-expanded="true"] .burger__label { display: none; }
@media (max-width: 560px) { .burger__label { display: none; } }

/* ---------- The menu ---------- */
.menu { position: fixed; inset: 0; z-index: 910; pointer-events: none; }
.menu.on { pointer-events: auto; }
.menu::before {
  content: ""; position: absolute; inset: 0;
  background: rgb(0 0 0 / 0.6);
  opacity: 0; transition: opacity var(--d3) var(--ease-out);
}
.menu.on::before { opacity: 1; }

.menu__sheet {
  position: absolute; inset: 0 0 0 auto;
  /* Wider than a plain link list, because it now carries a video reel. */
  width: min(100%, 780px);
  background: var(--ground);
  border-left: 1px solid var(--line);
  display: grid; grid-template-rows: 1fr auto;
  padding: clamp(5.5rem, 12vh, 8rem) clamp(1.6rem, 5vw, 3.5rem) clamp(1.6rem, 4vw, 2.6rem);
  overflow-y: auto;
}
.menu__nav { display: grid; align-content: start; gap: 0.2rem; }
.menu__eyebrow { padding-bottom: 0.8rem; }
.menu__eyebrow--2 { margin-top: clamp(1.6rem, 4vw, 2.6rem); border-top: 1px solid var(--line); padding-top: 1.4rem; }

.menu__link {
  display: grid; grid-template-columns: 2.6rem 1fr; align-items: baseline;
  gap: 0.8rem;
  padding-block: clamp(0.5rem, 1.4vw, 0.9rem);
  font-family: var(--display-face); font-weight: 700;
  text-transform: uppercase; line-height: 1;
  font-size: clamp(1.8rem, 1.1rem + 2.4vw, 3.2rem);
  border-bottom: 1px solid var(--line);
  transition: color var(--d2) var(--ease-out), padding-left var(--d2) var(--ease-out);
}
.menu__link:hover, .menu__link:focus-visible { color: var(--accent); padding-left: 0.5rem; }
.menu__no { color: var(--muted); }

.menu__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem 1.5rem; padding-top: 0.4rem; }
.menu__sub { color: var(--muted); transition: color var(--d2) var(--ease-out); }
.menu__sub:hover, .menu__sub:focus-visible { color: var(--accent); }

.menu__foot {
  display: grid; gap: 0.4rem;
  padding-top: clamp(1.4rem, 3vw, 2.2rem);
  border-top: 1px solid var(--line);
}

/* Lock the page behind the panel. */
.menu-open body { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .menu.on .menu__sheet { transform: none; }
  .what > img { transition: none; }
}

/* ---------- 13 · THE HANDSET ------------------------------
   An iPhone 15 Pro running WhatsApp.

   The device geometry is the real thing, ported from the 21st.dev
   iPhone mockup: 393 x 852 logical points, 56pt outer radius, a
   12pt bezel, a 126 x 37pt Dynamic Island and 59/34pt safe areas.
   Everything below is expressed as a ratio of those numbers, so
   the handset stays correct at any size.

   The chat is WhatsApp's own dark theme, not an approximation of
   it: #0B141A ground, #202C33 incoming, #005C4B outgoing, #53BDEB
   read ticks. It reads as the app because it IS the app's palette.
   -------------------------------------------------------------- */
.phonerig {
  perspective: 1600px;
  perspective-origin: 50% 40%;
  justify-self: center;
  width: min(84vw, 356px);
}

.phone {
  position: relative;
  width: 100%;
  /* 393 x 852 — iPhone 15 Pro */
  aspect-ratio: 393 / 852;
  /* 56 / 393 of the width */
  border-radius: 14.25%;
  transform-style: preserve-3d;
  will-change: transform;
  /* Brushed titanium: bright top-left edge falling to a dark
     bottom-right one. A flat grey stroke reads as a drawing. */
  background: linear-gradient(135deg, #8d8477 0%, #5f574d 18%, #2b2823 46%, #6e665b 76%, #201e1a 100%);
  /* 12 / 393 */
  padding: 3.05%;
  box-shadow:
    0 12px 30px rgb(0 0 0 / 0.35),
    0 2px 6px rgb(0 0 0 / 0.22),
    0 60px 110px -45px rgb(0 0 0 / 0.95);
}

/* ---- edge buttons ---- */
.phone__btn {
  position: absolute; z-index: 0;
  width: 2.5px; border-radius: 3px;
  background: linear-gradient(90deg, #9a9184, #4a443c);
}
.phone__btn--silent { left: -2px; top: 16.5%; height: 3.2%; }
.phone__btn--up     { left: -2px; top: 23.5%; height: 6.4%; }
.phone__btn--down   { left: -2px; top: 32%;   height: 6.4%; }
.phone__btn--power  { right: -2px; top: 26%;  height: 8.6%;
  background: linear-gradient(270deg, #9a9184, #4a443c); }

/* ---- screen ---- */
.phone__screen {
  position: relative; z-index: 2;
  height: 100%;
  border-radius: 11.7%;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  background: #0B141A;                 /* WhatsApp dark ground */
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.03),
    inset 0 10px 20px rgb(0 0 0 / 0.35),
    inset 0 -8px 16px rgb(0 0 0 / 0.28);
  isolation: isolate;
}

/* 126 x 37pt, floating over the status bar */
.phone__island {
  position: absolute; z-index: 9;
  top: 1.4%; left: 50%; translate: -50% 0;
  width: 32%; aspect-ratio: 126 / 37;
  border-radius: 999px;
  background: #000;
}

.phone__glare {
  position: absolute; inset: 0; z-index: 10;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(104deg, transparent 28%, rgb(255 255 255 / 0.05) 41%,
      rgb(255 255 255 / 0.10) 46%, rgb(255 255 255 / 0.02) 53%, transparent 62%),
    radial-gradient(130% 90% at 50% 0%, transparent 55%, rgb(0 0 0 / 0.35) 100%);
}

.phone__home {
  position: absolute; z-index: 9;
  bottom: 0.9%; left: 50%; translate: -50% 0;
  width: 34%; height: 4px; border-radius: 999px;
  background: rgb(255 255 255 / 0.55);
}

/* ---- iOS status bar (59pt safe area) ---- */
.ios {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 5.5% 7% 0.6%;
  font-family: -apple-system, "SF Pro Text", system-ui, sans-serif;
  font-size: 0.72rem; font-weight: 600;
  color: #fff;
}
.ios__right { display: flex; align-items: center; gap: 4px; }
.ios__sig, .ios__wifi, .ios__bat { display: block; background: #fff; }
.ios__sig  { width: 15px; height: 9px;
  clip-path: polygon(0 66%,18% 66%,18% 100%,0 100%, 27% 44%,45% 44%,45% 100%,27% 100%,
                     54% 22%,72% 22%,72% 100%,54% 100%, 81% 0,99% 0,99% 100%,81% 100%); }
.ios__wifi { width: 14px; height: 10px;
  clip-path: polygon(50% 100%,28% 66%,72% 66%, 50% 52%,14% 34%,86% 34%, 50% 20%,0 8%,100% 8%); }
.ios__bat  { width: 22px; height: 11px; border-radius: 3px; position: relative; opacity: 0.95; }

/* ---- WhatsApp chat header ---- */
.wa__bar {
  display: grid; grid-template-columns: auto auto 1fr auto;
  align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  background: #1F2C33;
  border-bottom: 1px solid #0d1418;
}
.wa__back {
  width: 8px; height: 8px;
  border-left: 1.8px solid #E9EDEF; border-bottom: 1.8px solid #E9EDEF;
  rotate: 45deg;
}
.wa__avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.05em;
}
.wa__who { display: grid; gap: 0.02rem; line-height: 1.15; min-width: 0;
  font-family: -apple-system, "SF Pro Text", system-ui, sans-serif; }
.wa__who strong { font-size: 0.82rem; font-weight: 600; color: #E9EDEF; }
.wa__who span { font-size: 0.62rem; color: #8696A0; }

.wa__acts { display: flex; gap: 0.85rem; align-items: center; }
.wa__vid {
  width: 15px; height: 10px; border-radius: 2px;
  border: 1.6px solid #AEBAC1; position: relative;
}
.wa__vid::after { content: ""; position: absolute; left: 100%; top: 50%; translate: 0 -50%;
  border: 4px solid transparent; border-right-color: #AEBAC1; border-left: 0; }
.wa__call { width: 13px; height: 13px; border: 1.6px solid #AEBAC1;
  border-radius: 50% 50% 50% 2px; rotate: -8deg; }
.wa__dots { width: 3px; height: 3px; border-radius: 50%; background: #AEBAC1;
  box-shadow: 0 -5px 0 #AEBAC1, 0 5px 0 #AEBAC1; }

/* ---- the thread ----
   WhatsApp's wallpaper is a faint doodle tile. This is the same idea in
   pure CSS, on the app's real #0B141A ground. */
.wa__thread {
  display: grid; gap: 0.3rem; align-content: end;
  padding: 0.6rem 0.55rem;
  overflow: hidden;
  background-color: #0B141A;
  background-image:
    radial-gradient(circle at 12% 14%, rgb(255 255 255 / 0.03) 0 6px, transparent 7px),
    radial-gradient(circle at 74% 28%, rgb(255 255 255 / 0.024) 0 4px, transparent 5px),
    radial-gradient(circle at 38% 61%, rgb(255 255 255 / 0.028) 0 5px, transparent 6px),
    radial-gradient(circle at 88% 78%, rgb(255 255 255 / 0.022) 0 7px, transparent 8px),
    radial-gradient(circle at 22% 88%, rgb(255 255 255 / 0.026) 0 4px, transparent 5px);
  background-size: 150px 150px;
  font-family: -apple-system, "SF Pro Text", system-ui, sans-serif;
}
.wa__enc, .wa__day {
  justify-self: center;
  padding: 0.22rem 0.6rem;
  border-radius: 6px;
  background: #182229;
  color: #8696A0;
  font-size: 0.55rem;
  text-align: center;
  max-width: 88%;
}
.wa__enc { background: #182b1f; color: #a5b3a9; margin-bottom: 0.2rem; }
.wa__day { margin-bottom: 0.25rem; letter-spacing: 0.04em; }

/* ---- bubbles: WhatsApp's own colours ---- */
.msg {
  position: relative;
  max-width: 82%;
  padding: 0.38rem 0.5rem 0.3rem;
  border-radius: 7.5px;
  font-size: 0.74rem;
  line-height: 1.34;
  color: #E9EDEF;
  opacity: 0;
  transform: translate3d(0, 8px, 0) scale(0.98);
  transition: opacity var(--d2) var(--ease-out), transform var(--d2) var(--ease-out);
  box-shadow: 0 1px 0.5px rgb(0 0 0 / 0.13);
}
.msg.is-in { opacity: 1; transform: none; }
.msg--in  { background: #202C33; justify-self: start; border-top-left-radius: 0; }
.msg--out { background: #005C4B; justify-self: end; border-top-right-radius: 0; }

/* WhatsApp's tails point UP from the first bubble's top corner. */
.msg--in::after, .msg--out::after {
  content: ""; position: absolute; top: 0;
  border: 6px solid transparent;
}
.msg--in::after  { left: -6px;  border-right-color: #202C33; border-top-color: #202C33; }
.msg--out::after { right: -6px; border-left-color: #005C4B;  border-top-color: #005C4B; }

.msg__meta {
  display: block; text-align: right;
  margin-top: 0.1rem;
  font-size: 0.52rem;
  color: #8696A0;
}
.msg--out .msg__meta { color: #a3c4b5; }
.msg__ticks { font-weight: 400; transition: color var(--d2) var(--ease-out); }
.msg__ticks[data-state="sent"] { color: #8696A0; }
.msg__ticks[data-state="read"] { color: #53BDEB; }   /* WhatsApp blue */

/* ---- typing ---- */
.msg--typing { display: flex; gap: 3px; align-items: center; padding: 0.5rem 0.6rem; }
.msg--typing i {
  width: 5px; height: 5px; border-radius: 50%;
  background: #8696A0;
  animation: phoneDot 1.25s ease-in-out infinite;
}
.msg--typing i:nth-child(2) { animation-delay: 0.16s; }
.msg--typing i:nth-child(3) { animation-delay: 0.32s; }
@keyframes phoneDot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30%           { opacity: 1;   transform: translateY(-3px); }
}

/* ---- composer ---- */
.wa__input {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.5rem 1.1rem;
  background: #0B141A;
}
.wa__field {
  flex: 1;
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  background: #202C33;
  color: #8696A0;
}
.wa__ph { flex: 1; font-size: 0.68rem;
  font-family: -apple-system, "SF Pro Text", system-ui, sans-serif; }
.wa__emoji { width: 13px; height: 13px; border: 1.5px solid #8696A0; border-radius: 50%; flex: none; }
.wa__clip  { width: 11px; height: 13px; border: 1.5px solid #8696A0;
  border-radius: 6px 6px 3px 3px; rotate: 35deg; flex: none; }
.wa__cam   { width: 14px; height: 11px; border: 1.5px solid #8696A0; border-radius: 3px; flex: none; }
.wa__send {
  width: 30px; height: 30px; border-radius: 50%;
  background: #00A884;                  /* WhatsApp send green */
  flex: none; display: grid; place-items: center;
}
.wa__send i {
  width: 0; height: 0;
  border: 5px solid transparent; border-left-color: #0B141A;
  translate: 2px 0;
}

@media (prefers-reduced-motion: reduce) {
  .phone { transform: none !important; }
  .msg { opacity: 1; transform: none; }
  .msg--typing i { animation: none; }
}


/* ---------- 08 · RUN OF SHOW -------------------------------
   Five beats of a race day, stacked and dealt on scroll.

   Each card is one full-bleed frame of the room with an editorial
   panel sitting in it, not a box with a thumbnail beside it. The
   step numeral is cut as an outline and allowed to bleed off the
   corner, which is what stops the set reading as five identical
   tiles. A spine along the foot says where you are in the day.
   -------------------------------------------------------------- */
.stack {
  position: relative;
  height: 100svh;
  display: grid; place-items: center;
  padding-inline: var(--gutter);
}

.stack__card {
  position: absolute;
  width: min(94vw, 1180px);
  aspect-ratio: 16 / 8.4;
  max-height: 74svh;
  display: grid;
  overflow: hidden;
  background: #070707;
  border: 1px solid var(--line);
  box-shadow: 0 50px 90px -50px rgb(0 0 0 / 0.95);
  /* Kept: all five cards are tweened continuously for the whole
     pinned scrub, which is exactly what the hint is for. Five
     standing layers is cheap; the sixty-six that were here before
     were not. */
  will-change: transform, opacity;
}
.stack__card > * { grid-area: 1 / 1; }

/* ---- the frame ---- */
.stack__media { position: relative; overflow: hidden; }
.stack__media video,
.stack__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.12);
  /* A still frame drifts toward the viewer for as long as the card is
     dealt, so even a card whose clip has not started is never static. */
  transform: scale(1.06);
  transition: transform 6s linear;
}
.stack__card.is-live .stack__media video,
.stack__card.is-live .stack__media img { transform: scale(1.14); }

/* Readability plate: dense at the left where the copy sits, clear on
   the right where the frame should be seen. */
.stack__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgb(4 4 4 / 0.94) 0%, rgb(4 4 4 / 0.82) 34%, rgb(4 4 4 / 0.25) 62%, rgb(4 4 4 / 0.55) 100%),
    linear-gradient(to top, rgb(4 4 4 / 0.8), transparent 42%);
}

/* The circuit turns slowly in the open right-hand side of the frame. */
.stack__track {
  position: absolute; z-index: 2;
  right: 4%; top: 50%; translate: 0 -50%;
  width: clamp(120px, 17vw, 260px); aspect-ratio: 1;
  color: var(--accent);
  opacity: 0.85;
  filter: drop-shadow(0 0 14px rgb(0 0 0 / 0.9));
}
.stack__track .circuit { width: 100%; height: 100%; overflow: visible; }
/* Here the circuit is scenery, not a season readout — a round that has
   already been raced should still draw in the house colour. */
.stack__track .circuit__line { stroke: var(--accent) !important; opacity: 1 !important; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 55%, transparent)) !important; }
.stack__track .circuit__ghost { opacity: 0.18 !important; }
.stack__track .circuit__dot { fill: var(--accent) !important; filter: drop-shadow(0 0 8px var(--accent)) !important; }

/* ---- the panel ---- */
.stack__panel {
  position: relative; z-index: 3;
  align-self: center;
  display: grid; gap: clamp(0.7rem, 1.4vw, 1.1rem);
  justify-items: start;
  width: min(100%, 46ch);
  padding: clamp(1.6rem, 4vw, 3.6rem);
}

/* Outlined, oversized, and deliberately clipped by the card edge. */
.stack__num {
  position: absolute;
  left: clamp(-0.4rem, -0.5vw, 0rem);
  top: clamp(-4.6rem, -7vw, -2.6rem);
  z-index: -1;
  font-family: var(--display-face);
  font-weight: 700;
  font-size: clamp(7rem, 4rem + 14vw, 17rem);
  line-height: 0.78;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 42%, transparent);
  pointer-events: none;
}

.stack__title {
  font-family: var(--display-face);
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.9rem, 1rem + 3.4vw, 4.2rem);
  line-height: 0.9; letter-spacing: -0.015em;
}
.stack__body {
  color: var(--muted);
  max-width: 40ch;
  font-size: clamp(0.92rem, 0.86rem + 0.3vw, 1.06rem);
}
.stack__meta {
  display: flex; align-items: center; gap: 0.7rem;
  margin-top: clamp(0.2rem, 1vw, 0.6rem);
}
.stack__t {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.stack__badge {
  padding: 0.3rem 0.7rem;
  background: var(--accent); color: var(--accent-ink);
}

/* ---- the spine ---- */
.stack__spine {
  position: absolute; z-index: 6;
  /* Clear of the fixed HUD strip along the very bottom of the viewport,
     which was cutting the first two steps in half. */
  inset: auto 0 clamp(5rem, 9vh, 7rem) 0;
  justify-self: center;
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: clamp(0.6rem, 2vw, 1.8rem);
  list-style: none; margin: 0; padding: 0;
  pointer-events: none;
}
.stack__tick {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--muted);
  opacity: 0.4;
  transition: opacity var(--d2) var(--ease-out), color var(--d2) var(--ease-out);
}
.stack__tick i {
  display: block; width: clamp(14px, 3vw, 34px); height: 1px;
  background: currentColor;
}
.stack__tick b {
  font: inherit; font-weight: 400;
  font-family: var(--mono-face, monospace);
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.stack__tick[aria-current="true"] { opacity: 1; color: var(--accent); }

@media (max-width: 899px) {
  .stack__card { aspect-ratio: 3 / 4; max-height: 78svh; }
  .stack__panel { align-self: end; width: 100%; }
  .stack__scrim {
    background: linear-gradient(to top, rgb(4 4 4 / 0.95) 12%, rgb(4 4 4 / 0.55) 55%, rgb(4 4 4 / 0.3));
  }
  .stack__track { right: 50%; top: 22%; translate: 50% 0; }
  .stack__tick b { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .stack__media video, .stack__media img { transition: none; transform: none; }
}

/* ---------- 14 · PARTNER BAND -------------------------------
   Was a full page of its own. It is a credit line, so it gets a
   band: the owner at full weight, the three partners beside it.
   -------------------------------------------------------------- */
.pband {
  padding-block: clamp(3rem, 7vw, 6rem);
  border-block: 1px solid var(--line);
}
.pband__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .pband__grid { grid-template-columns: 0.9fr 1.1fr; } }

.pband__lead { display: grid; gap: 1rem; justify-items: start; }
.pband__owner { display: block; width: min(100%, 320px); }
.pband__owner img {
  width: 100%; height: auto; object-fit: contain;
  opacity: 0.92; transition: opacity var(--d2) var(--ease-out);
}
.pband__owner:hover img { opacity: 1; }
.pband__note { color: var(--muted); max-width: 34ch; font-size: 0.92rem; }

.pband__with { display: grid; gap: 1.2rem; }
.pband__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.pband__label { color: var(--accent); letter-spacing: 0.18em; }
.pchip {
  background: var(--ground);
  display: grid; place-items: center;
  padding: clamp(1.2rem, 2.4vw, 2rem);
  min-height: clamp(120px, 16vh, 190px);
  transition: background var(--d2) var(--ease-out);
}
/* Two stacked marks: the white knockout at rest, the real brand colours
   on hover. Raising the opacity of a white knockout only ever gets you a
   brighter white knockout — the partners asked to be seen in their own
   colours, so the colour artwork is what comes up. */
.pchip { position: relative; }
.pchip img {
  grid-area: 1 / 1;
  width: 100%; max-width: 210px; height: auto; object-fit: contain;
  transition: opacity var(--d3) var(--ease-out);
}
.pchip__w { opacity: 0.85; }
.pchip__c { opacity: 0; }
.pchip:hover { background: var(--surface); }
.pchip:hover .pchip__w, .pchip:focus-visible .pchip__w { opacity: 0; }
.pchip:hover .pchip__c, .pchip:focus-visible .pchip__c { opacity: 1; }

/* ---------- Culture Cartel — the owner's mark ----------------
   It owns and operates the club, so it does not sit flat next to
   three partner logos. The wordmark masks a slow holographic
   sweep, so the light travels through the lettering itself.
   -------------------------------------------------------------- */
.cclogo { position: relative; display: block; isolation: isolate; }
.cclogo img { position: relative; z-index: 1; opacity: 0.16; }
.cclogo__ink {
  position: absolute; inset: 0; z-index: 2;
  -webkit-mask: url("../assets/partners/cclive-w.png") center / contain no-repeat;
  mask: url("../assets/partners/cclive-w.png") center / contain no-repeat;
  background:
    linear-gradient(100deg,
      var(--ink) 0%, var(--ink) 34%,
      var(--accent) 46%, #ffffff 52%, var(--accent) 58%,
      var(--ink) 70%, var(--ink) 100%);
  background-size: 260% 100%;
  background-position: 130% 0;
  animation: ccSweep 6.5s var(--ease-io) infinite;
  pointer-events: none;
}
.cclogo:hover .cclogo__ink { animation-duration: 2.4s; }

@keyframes ccSweep {
  0%, 12%   { background-position: 130% 0; }
  58%, 100% { background-position: -30% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cclogo__ink { animation: none; background-position: 50% 0; }
}
.pband__cta { color: var(--accent); justify-self: start; }

/* The pitch: the one place on the page that earns money, so it reads
   as an offer, not a footnote. */
.pband__pitch {
  margin-top: clamp(0.6rem, 2vw, 1.4rem);
  padding: clamp(1.2rem, 2.6vw, 2rem);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background:
    radial-gradient(70% 120% at 100% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%),
    var(--surface);
  display: grid; gap: 0.9rem;
}
.pband__ask {
  font-family: var(--display-face); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.5rem, 1rem + 2vw, 2.6rem); line-height: 0.95;
}
.pband__why { color: var(--muted); max-width: 52ch; }
.pband__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; }
.pband__ctas > * { block-size: 3rem; white-space: nowrap; margin: 0; }   /* .cta carries a 1.5rem top margin elsewhere */
/* The second door matches the first: same height, same line, outlined. */
.pband__ctas .pband__cta {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0 1.3rem; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  letter-spacing: 0.16em; text-transform: uppercase;
  transition: background var(--d2) var(--ease-out), border-color var(--d2) var(--ease-out);
}
.pband__ctas .pband__cta:hover, .pband__ctas .pband__cta:focus-visible { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* ---------- The owner's mark, and a car going past ----------
   The wordmark stays put and readable. Behind it, on a "road" wider
   than the mark, the x-ray car drives through; --glow (0 to 1, set as
   the car crosses the middle) lights the lettering. */
.ccmorph {
  --glow: 0;
  position: relative; display: block;
  width: min(100%, 420px); aspect-ratio: 820 / 420;
}
.ccmorph__road {
  position: absolute; inset: -10% -45%; overflow: hidden; pointer-events: none;
  -webkit-mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
          mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.ccmorph__car {
  position: absolute; top: 0; left: 0; height: 100%; width: 60%;
  opacity: 1;
}
.ccmorph__logo { position: absolute; inset: 0; z-index: 2; }
.ccmorph__logo img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 0 calc(var(--glow) * 18px) color-mix(in srgb, var(--accent) calc(var(--glow) * 90%), transparent));
}
@media (prefers-reduced-motion: reduce) { .ccmorph__road { display: none; } }

/* ---------- Hero helmet ------------------------------------- */
.hero__helmet {
  position: absolute; z-index: 2;
  /* Sits in the right margin beside the centred wordmark. It must clear
     the headline, so it is pinned to the upper right rather than centred
     vertically where the type lives. */
  right: clamp(1rem, 3vw, 5rem);
  top: clamp(5rem, 14vh, 11rem);
  width: clamp(200px, 21vw, 380px);
  aspect-ratio: 1;
  pointer-events: none;
  opacity: 0; transition: opacity var(--d4) var(--ease-out);
}
.hero__helmet.is-live { opacity: 1; }
.hero__helmet canvas { width: 100%; height: 100%; display: block; }
/* Below the fold-width where the wordmark fills the screen, the helmet
   would sit on top of the type rather than beside it. */
@media (max-width: 1180px) { .hero__helmet { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero__helmet { display: none; } }


/* ---------- Menu reel ---------------------------------------
   The panel is a set of doors: each world row raises its own clip
   behind the list. Only the hovered clip decodes.
   -------------------------------------------------------------- */


.menu__reel { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.menu__clip {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity var(--d3) var(--ease-out), transform var(--d4) var(--ease-out);
}
.menu__clip.on { opacity: 0.34; transform: scale(1); }
.menu__reelWash {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--ground) 8%, transparent 70%),
    linear-gradient(180deg, var(--ground) 0%, transparent 22%, transparent 74%, var(--ground) 100%);
}

.menu__nav, .menu__foot { position: relative; z-index: 1; }

.menu__link {
  grid-template-columns: 2.6rem 1fr auto;
  grid-template-areas:
    "no label go"
    "no note  go";
  align-items: baseline;
  row-gap: 0.15rem;
}
.menu__no    { grid-area: no; }
.menu__label { grid-area: label; }
.menu__note  {
  grid-area: note;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  opacity: 0; max-height: 0; overflow: hidden;
  transition: opacity var(--d2) var(--ease-out), max-height var(--d3) var(--ease-out);
}
.menu__link:hover .menu__note,
.menu__link:focus-visible .menu__note { opacity: 1; max-height: 2rem; }

.menu__go {
  grid-area: go;
  align-self: center;
  color: var(--accent);
  opacity: 0; transform: translateX(-8px);
  transition: opacity var(--d2) var(--ease-out), transform var(--d2) var(--ease-out);
}
.menu__link:hover .menu__go,
.menu__link:focus-visible .menu__go { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .menu__clip { display: none; }
  .menu__note { opacity: 1; max-height: none; }
}

/* ---------- Liquid wordmark --------------------------------- */
.liquid {
  position: relative;
  width: min(100%, 1300px);
  aspect-ratio: 7171 / 919;
  opacity: 0; transition: opacity var(--d4) var(--ease-out);
}
.liquid.is-live { opacity: 1; }
.liquid__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---------- Statement + helmet ------------------------------ */
.statement__grid { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
/* The helmet takes the bigger half — it is the object of the section,
   not a decoration beside the headline. */
@media (min-width: 1000px) { .statement__grid { grid-template-columns: 0.92fr 1.08fr; } }
.statement__type { font-size: calc(var(--text-display) * 0.8); }   /* 0.8: "Watch parties built by fans." is a longer first line */

.statement__helmet {
  position: relative;
  width: 100%;
  /* Bleeds out of its column and off the right edge of the shell. */
  width: calc(100% + clamp(1rem, 7vw, 10rem));
  margin-inline-end: clamp(-10rem, -7vw, -1rem);
  /* NOT opacity:0 here. This used to be revealed by the `.is-live`
     class that the native model stage added on load; the helmet is a
     Sketchfab embed now, nothing adds that class, and the block stayed
     invisible forever. The embed fades itself in on `is-ready`. */
}
@media (min-width: 1280px) {
  .statement__helmet { width: calc(100% + 13vw); margin-inline-end: -13vw; }
}
.statement__helmet {
  aspect-ratio: 1;
}
.statement__helmet canvas {
  width: 100%; height: 100%; display: block;
  cursor: grab; touch-action: pan-y;
}
.statement__helmet canvas.is-held { cursor: grabbing; }
@media (max-width: 999px) { .statement__helmet { display: none; } }

/* ---------- 03 · COUNTDOWN ----------------------------------
   The page's heartbeat: a spinning circuit above, the clock in
   tabular figures, and the script word cutting across it.
   -------------------------------------------------------------- */
.cd {
  position: relative;
  /* The hero's fixed GL canvas sits behind the whole page, so every
     section after it needs its own ground or the video shows through. */
  background: var(--ground);
  z-index: 1;
  display: grid; justify-items: center; gap: clamp(0.6rem, 1.6vw, 1.2rem);
  padding: clamp(3rem, 8vw, 7rem) var(--gutter) clamp(2.5rem, 6vw, 5rem);
  text-align: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
/* A faint bar of how much of the season has run. */
.cd::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 2px;
  background: var(--accent);
  transform: scaleX(var(--cd-progress, 0)); transform-origin: left;
  opacity: 0.55;
}

/* A square box whatever the circuit's own proportions, so a long street
   track like Baku can turn a full revolution without clipping. */
.cd__track { width: clamp(84px, 9vw, 148px); aspect-ratio: 1; display: grid; place-items: center; }
.cd__track .circuit { width: 100%; height: 100%; overflow: visible; }
/* The start/finish tick is a solid white block. At this size it does not
   read as a start line, it reads as a speck of dirt on the render, so it
   is hidden wherever the trace is decorative rather than a diagram. */
.cd__track .circuit__tick,
.nextup__dial .circuit__tick { display: none; }
.cd__eyebrow { color: var(--muted); margin-bottom: clamp(3.2rem, 7vw, 6.2rem); }   /* room for the RACE DAY tag between it and the digits */

.cd__clock { position: relative; display: grid; place-items: center; width: 100%; }

.cd__digits {
  position: relative;
  z-index: 1;
  font-family: var(--display-face);
  font-weight: 700;
  font-size: clamp(2.6rem, 1rem + 9vw, 10rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  /* Tabular figures stop the whole line shuffling every second. */
  color: var(--ink);
  white-space: nowrap;
}
.cd__digits em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.56em;
  padding-inline: 0.12em 0.34em;
}
.cd__live { color: var(--accent); }

/* Sprayed ABOVE the digits, at their left edge, at full strength
   (6 Nov 2026). It first sat across the figures at 85% and the paint
   fought the numbers; then in the corner of the section, which Jarryd
   did not mean. The wrapper is exactly as wide as the digits, so the tag
   starts where "01" starts and sits on the line above them. */
.cd__clockwrap { position: relative; width: max-content; max-width: 100%; }
.cd__script {
  position: absolute;
  z-index: 2;
  left: 50%;
  translate: -50% 0;   /* centred over the digits, over the 18 H 53 M (6 Nov 2026) */
  bottom: 100%;
  margin-bottom: -0.3em;
  font-family: "Spray", "Brush Script MT", "Segoe Script", cursive;
  /* Sister Spray is an all-caps face: its lowercase slots exist in the
     cmap but carry EMPTY outlines, so "Race Day" rendered as "R  D".
     Forced uppercase here as well as in the markup, so a copy edit
     cannot reintroduce the hole. */
  text-transform: uppercase;
  font-size: clamp(1.35rem, 0.45rem + 2.88vw, 3.42rem);   /* 10% smaller than before */
  line-height: 1;
  color: var(--accent);
  opacity: 1;
  rotate: -5deg;
  transform-origin: 50% 100%;
  pointer-events: none;
  white-space: nowrap;
}

.cd__meta {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.6rem clamp(1rem, 3vw, 2.4rem);
  color: var(--muted);
  margin-top: clamp(0.4rem, 1.5vw, 1rem);
}
.cd__where { color: var(--ink); }

/* A sprint weekend is worth flagging — it changes the run of show. */
.cd[data-sprint="true"] .cd__when::after {
  content: " · Sprint";
  color: var(--accent);
}
/* Once the weekend is live the block changes register. */
.cd[data-state="live"] .cd__eyebrow { color: var(--accent); }

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

@media (prefers-reduced-motion: reduce) {
  .cd__track .circuit { animation: none; }
}

/* ---------- Sketchfab embed ---------------------------------
   Used where a model cannot be brought in-house. It gets the same
   footprint as a native stage so the composition does not change
   depending on where the geometry came from.
   -------------------------------------------------------------- */
/* Sketchfab renders its own studio ground and will not go transparent
   on a free embed, so the panel is framed on purpose rather than left
   looking like a grey rectangle dropped on the volt: a dark plate with
   a hairline, which reads as a viewer inset into the page. */
.skfab {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #0c0c0c;
  border: 1px solid color-mix(in srgb, var(--accent-ink) 30%, transparent);
  box-shadow: 0 40px 80px -46px rgb(0 0 0 / 0.8);
  opacity: 0;
  transition: opacity var(--d4) var(--ease-out);
}
.skfab.is-ready { opacity: 1; }
.skfab__holder, .skfab iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
/* Sits under the panel and inside it, so a bleeding stage cannot push
   the credit off the right edge of the viewport. */
.skfab__credit {
  margin-top: 0.7rem;
  padding-inline-end: clamp(1rem, 7vw, 10rem);
  text-align: right;
  color: color-mix(in srgb, var(--accent-ink) 55%, transparent);
  font-size: 0.5625rem;
}
.skfab__credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.skfab__credit a:hover { color: var(--accent-ink); }

@media (prefers-reduced-motion: reduce) {
  .skfab { transition: none; opacity: 1; }
}


/* A round Grid Club is not in the room for. It stays on the calendar —
   the calendar is about the sport — but it must never be mistaken for
   a night you can buy a seat at. */
.round[data-round="away"] { opacity: 0.44; }
.round[data-round="away"]:hover { opacity: 0.8; }
.round[data-round="away"] .round__no { color: var(--muted); }
.round[data-round="away"] .round__flag { border-style: dashed; }
.round[data-round="away"] .round__date { color: var(--muted); }
.circuit[data-round="away"] .circuit__line {
  stroke: var(--muted);
  filter: none;
  opacity: 0.45;
  stroke-dasharray: 10 14;
}
.circuit[data-round="away"] .circuit__ghost { opacity: 0.06; }

.t3d__card[data-round="away"] .t3d__art { filter: saturate(0.12); opacity: 0.5; }
.t3d__card[data-round="away"]:hover .t3d__art { filter: saturate(0.4); opacity: 0.85; }
.t3d__card[data-round="away"] .t3d__no::after { content: " · not in"; color: var(--muted); }

/* ---------- What You Get — cards that open ------------------
   Each card is a headline with a real answer behind it, shown in
   a <dialog> so the browser owns modality, focus and Escape.
   -------------------------------------------------------------- */
.what--open { cursor: pointer; position: relative; }
.what--open:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.what__more {
  position: absolute; z-index: 3;
  right: clamp(0.8rem, 2vw, 1.4rem); bottom: clamp(0.8rem, 2vw, 1.4rem);
  padding: 0.3rem 0.6rem;
  background: var(--accent); color: var(--accent-ink);
  opacity: 0; transform: translateY(5px);
  transition: opacity var(--d2) var(--ease-out), transform var(--d2) var(--ease-out);
  pointer-events: none;
}
.what--open:hover .what__more,
.what--open:focus-visible .what__more { opacity: 1; transform: none; }

/* Scroll behind a modal belongs to the modal. */
.has-dialog { overflow: hidden; }

.faq {
  border: 0; padding: 0;
  max-width: min(94vw, 720px);
  width: 100%;
  background: transparent;
  color: var(--ink);
}
.faq::backdrop {
  background: color-mix(in srgb, #050505 84%, transparent);
  backdrop-filter: blur(6px);
}
.faq__panel {
  background: var(--ground);
  border: 1px solid var(--line);
  padding: clamp(1.4rem, 4vw, 2.8rem);
  display: grid; gap: clamp(0.9rem, 2vw, 1.4rem);
  max-height: 86svh; overflow-y: auto;
}
.faq__head { display: flex; justify-content: space-between; align-items: center; }
.faq__close {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color var(--d2) var(--ease-out), border-color var(--d2) var(--ease-out);
}
.faq__close:hover { color: var(--accent); border-color: var(--accent); }

.faq__title {
  font-family: var(--display-face); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.6rem, 1rem + 2.4vw, 2.8rem); line-height: 0.95;
  max-width: 22ch;
}
.faq__body { display: grid; gap: 0.9rem; color: var(--muted); max-width: 60ch; }

.faq__facts {
  display: grid; gap: 1px;
  margin: 0.4rem 0 0;
  background: var(--line);
  border: 1px solid var(--line);
}
.faq__facts div {
  background: var(--ground);
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 0.9rem;
}
.faq__facts dt { color: var(--muted); }
.faq__facts dd { margin: 0; color: var(--ink); }

.faq__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: 0.6rem;
}
/* Only the plain text link, never the CTA — this rule is more
   specific than .cta and was painting the button's label volt on a
   volt background, so it read as an empty block. */
.faq__foot a:not(.cta) { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .what__more { transition: none; }
}


/* The machine runs straight into the room: one short beat between them,
   not two full section paddings (they stacked to ~370px of black). */
.machine:has(+ .room) { padding-bottom: clamp(1.5rem, 3vw, 3rem); }
.machine + .room { padding-top: clamp(1.5rem, 3vw, 3rem); }

/* Culture Cartel, in its own block at the foot of the menu (6 Nov 2026). */
.menu__owner { display: flex; align-items: center; gap: 1.2rem; padding-block: 0.4rem; color: var(--muted); }
.menu__owner img { width: clamp(8.5rem, 24vw, 12rem); height: auto; opacity: 0.9; transition: opacity var(--d2, 0.2s); }
.menu__owner .menu__go { opacity: 1; transform: none; position: static; }
.menu__owner:hover, .menu__owner:focus-visible { color: var(--accent); }
.menu__owner:hover img, .menu__owner:focus-visible img { opacity: 1; }

/* The wall: a way into the full gallery (6 Nov 2026). */
.lwall__side { display: grid; justify-items: end; align-content: space-between; gap: 1.4rem; }
@media (max-width: 700px) { .lwall__side { justify-items: start; } }

/* "Tell me when they drop" inside the countdown's not-on-sale line. */
.cd__notify { font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 0.25em; }
