/* ==========================================================================
   Superkart Club of NSW
   One stylesheet for the whole site: the base design first (navy and paper sections with 12°
   slants, slanted plates for buttons and labels, full-colour photos, the club blue and yellow
   for the one highlight in each title), then the homepage opening, the pages and the admin-fed
   parts on top of it.
   ========================================================================== */
:root {
  /* Surfaces: one navy family, plus paper for the light sections */
  --night: #02040f;
  --ink: #030817;
  --ink-2: #061131;
  --ink-3: #0e1b3d;
  --steel: #22346b;
  --paper: #f2f4f8;
  --paper-2: #dde3ee;
  --paper-ink: #0a0f1f;
  --paper-muted: #525f78;

  /* Brand */
  --blue: #3366ff; /* the club blue: every button, plate and blue title; white labels on it pass WCAG AA */
  --glow: rgb(61 109 255 / .18); /* the hero's soft blue light, carried into the navy sections */
  --ice: #b8ccff;
  --yellow: #ffd20a;
  --yellow-ink: #0a0a0a;
  --chrome: linear-gradient(180deg, #ffffff 0%, #e7eeff 26%, #a7bcff 46%, #3a64f2 50%, #2147cf 66%, #6e8fff 86%, #cddaff 100%);
  --sheen: linear-gradient(180deg, #ffffff 38%, #aec1ff 100%);

  /* Text on navy (light sections switch these) */
  --text: #eef3ff;
  --text-2: #b8c5e8;
  --muted: #8494c4;
  --line: rgb(150 180 255 / .14);
  --line-strong: rgb(184 204 255 / .34);
  --link: var(--yellow);
  --link-hover: #fff;
  --focus: var(--ice);

  /* Type: condensed italic headlines over wide, tracked labels */
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --fw-display: 800;
  --fst-display: normal;
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ui: "Archivo", system-ui, sans-serif;
  --fst-ui: 112%;
  --font-logo: "Archivo", "Arial Black", sans-serif; /* the club wordmark doesn't change with the font panel */
  --dz: 1;

  /* Layout */
  --gutter: clamp(16px, 4.5vw, 56px);
  --max: 1280px;
  --nav-h: 68px;
  --slant: 12deg;
  --slant-h: clamp(26px, 4vw, 60px); /* how far a section's slanted top rises into the one above */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
  --section-pad: clamp(4rem, 2.75rem + 5vw, 7.5rem);
}
@media (min-width: 1080px) { :root { --nav-h: 76px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; font-synthesis: style; scroll-padding-top: calc(var(--nav-h) + 1rem); }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 1rem/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
@media (min-width: 768px) { body { font-size: 1.0625rem; } }
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; }
h1, h2, h3, p { overflow-wrap: break-word; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--blue); color: #fff; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .75rem 1rem; background: var(--yellow); color: var(--yellow-ink); font-weight: 700; }
.skip:focus { top: 1rem; }
.icon { width: 1em; height: 1em; flex: none; }

/* ---------- Type ---------- */
.kicker {
  display: flex; align-items: center; gap: .85em; margin: 0 0 1.1rem;
  font: 700 .72rem/1.2 var(--font-ui); font-stretch: var(--fst-ui);
  letter-spacing: .22em; text-transform: uppercase; color: var(--ice);
}
.kicker::before { /* the slanted bar */
  content: ""; flex: none; width: 2.2em; height: .34em;
  background: var(--yellow);
  transform: skewX(calc(var(--slant) * -1.6));
}
@media (max-width: 479.98px) { .kicker { gap: .75em; font-size: .66rem; letter-spacing: .18em; } }

.title {
  margin: 0;
  font: italic var(--fw-display) calc(var(--dz) * clamp(2.5rem, 1.35rem + 4.6vw, 5.25rem))/.9 var(--font-display); font-stretch: var(--fst-display);
  text-transform: uppercase; letter-spacing: -.005em; color: #fff;
}
.hl { color: var(--yellow); } /* one highlight per title */
.title .hl { white-space: nowrap; }
.head { margin-bottom: clamp(2rem, 1.4rem + 2.4vw, 3.5rem); }
.head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem 3rem; }
.head__intro { max-width: 46ch; margin: 1.1rem 0 0; color: var(--text-2); font-size: 1.04rem; }

.more {
  display: inline-flex; align-items: center; gap: .6em;
  font: 700 .78rem/1.2 var(--font-ui); font-stretch: var(--fst-ui); letter-spacing: .14em; text-transform: uppercase;
  color: var(--link); text-decoration: none; transition: color .2s;
}
.more:hover, a:hover .more { color: var(--link-hover); }
.arrow { position: relative; width: 1.6em; height: 1px; background: currentColor; transition: width .3s var(--ease); }
.arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
a:hover .arrow, .more:hover .arrow { width: 2.3em; }

/* ---------- Buttons: slanted plates ---------- */
.btn {
  --bg: transparent; --fg: #fff; --bd: transparent;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  min-height: 50px; padding: 0 1.6em;
  font: 700 .8rem/1 var(--font-ui); font-stretch: var(--fst-ui); letter-spacing: .12em; text-transform: uppercase;
  color: var(--fg); text-decoration: none; white-space: nowrap;
  background: none; border: 0; cursor: pointer;
  transition: color .2s, transform .3s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--bg); border: 1px solid var(--bd);
  transform: skewX(calc(var(--slant) * -1));
  transition: background .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { width: 1.2em; height: 1.2em; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--blue { --bg: var(--blue); }
.btn--blue:hover { --bg: #fff; --fg: #0b1b52; }
.btn--ghost { --bd: var(--line-strong); }
.btn--ghost:hover { --bd: #fff; --bg: rgb(255 255 255 / .06); }
.btn--yellow { --bg: var(--yellow); --fg: var(--yellow-ink); }
.btn--yellow:hover { --bg: #fff; --fg: #0b1b52; }
.btn--dark { --bg: var(--paper-ink); }
.btn--dark:hover { --bg: var(--blue); }
.btn--lg { min-height: 56px; padding: 0 1.9em; font-size: .86rem; }
.btn--sm { min-height: 42px; padding: 0 1.2em; font-size: .72rem; }
.btn--xs { min-height: 36px; padding: 0 1.05em; font-size: .66rem; letter-spacing: .14em; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem 1.1rem; }

/* ---------- Shared pieces ---------- */
.glass { /* the frosted panel, squared off */
  position: relative;
  background: linear-gradient(180deg, rgb(120 150 255 / .12), rgb(120 150 255 / .03));
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
          backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 40px 80px -40px rgb(0 0 0 / .9);
}
.tag {
  display: inline-flex; align-items: center; padding: .4em .8em .36em;
  font: 700 .64rem/1 var(--font-ui); font-stretch: var(--fst-ui); letter-spacing: .16em; text-transform: uppercase;
  background: var(--yellow); color: var(--yellow-ink);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.live-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 0 rgb(255 210 10 / .6); animation: v3-pulse 1.8s infinite; }
@keyframes v3-pulse { 70% { box-shadow: 0 0 0 9px rgb(255 210 10 / 0); } 100% { box-shadow: 0 0 0 0 rgb(255 210 10 / 0); } }

/* Background footage fades in once it's actually playing */
.bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }

/* Section hand-over: a slant, filled with the colour of the section below */
.slant { position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: var(--slant-h); pointer-events: none; }
.slant svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.slant polygon { fill: var(--sec-bg, var(--ink)); }

/* ==========================================================================
   Header: the club's badge and chrome lockup, on a blue plate to start
   ========================================================================== */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; }
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(3 8 23 / .92), rgb(3 8 23 / .72));
  -webkit-backdrop-filter: blur(14px) saturate(140%);
          backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: min(100% - 2 * var(--gutter), var(--max)); height: var(--nav-h); margin-inline: auto; }
.nav__brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.nav__badge { position: relative; display: block; width: 46px; flex: none; filter: drop-shadow(0 3px 8px rgb(61 109 255 / .45)); }
.nav__badge img { width: 100%; height: auto; }
.nav__badge::after { /* a glint across the badge during the intro */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .9) 50%, transparent 65%) -150% 0 / 250% 100% no-repeat;
  -webkit-mask: url("/assets/brand/sk-badge.png") center / contain no-repeat;
          mask: url("/assets/brand/sk-badge.png") center / contain no-repeat;
}
.nav__name { display: grid; justify-items: start; row-gap: .3rem; }
.nav__word {
  font: italic 900 1.22rem/.84 var(--font-logo); font-stretch: 125%; text-transform: uppercase; letter-spacing: .01em;
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: .06em .14em .06em 0; margin: -.06em -.14em -.06em 0;
}
/* SUPERKART and the badge as big as the bar allows: up a size wherever there's room, back down
   at 1080–1199px where the full menu arrives and the bar is at its fullest */
@media (min-width: 420px) { .nav__word { font-size: 1.5rem; } .nav__badge { width: 52px; } }
@media (min-width: 600px) { .nav__word { font-size: 1.65rem; } }
@media (min-width: 1080px) and (max-width: 1199.98px) { .nav__word { font-size: 1.22rem; } .nav__badge { width: 46px; } }
@media (min-width: 1200px) and (max-width: 1359.98px) { .nav__word { font-size: 1.5rem; } }
.nav__name small { display: block; font: 700 .66rem/1 var(--font-logo); font-stretch: 125%; letter-spacing: .3em; margin-right: -.3em; text-transform: uppercase; color: var(--ice); white-space: nowrap; }
.nav__toggle { display: inline-flex; align-items: center; gap: .7rem; min-height: 44px; padding: 0 .2rem; background: none; border: 0; color: #fff; font: 700 .76rem/1 var(--font-ui); font-stretch: var(--fst-ui); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }
.nav__bars, .nav__bars::before { display: block; width: 22px; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.nav__bars { position: relative; }
.nav__bars::before { content: ""; position: absolute; top: 6px; width: 14px; }
[aria-expanded="true"] .nav__bars { transform: translateY(3px) rotate(45deg); }
[aria-expanded="true"] .nav__bars::before { top: 0; width: 22px; transform: rotate(-90deg); }
/* Phones: just the icon (the word stays for screen readers), so the wordmark has room */
@media (max-width: 767.98px) { .nav__toggle { min-width: 44px; justify-content: center; } .nav__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.nav__menu ul { list-style: none; margin: 0; padding: 0; }
@media (max-width: 1079.98px) {
  .js .nav__menu { display: none; }
  .nav__menu { position: fixed; inset: var(--nav-h) 0 0; padding: 2rem var(--gutter) 6rem; background: var(--night); flex-direction: column; gap: 2rem; overflow-y: auto; }
  .menu-open .nav__menu { display: flex; animation: v3-fade .35s var(--out); }
  .menu-open { overflow: hidden; }
  .nav__menu a:not(.btn) { display: block; padding: .5rem 0; font: italic var(--fw-display) calc(var(--dz) * clamp(2.1rem, 1.5rem + 3vw, 3rem))/1 var(--font-display); font-stretch: var(--fst-display); text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--line); }
  .nav__menu .btn { align-self: flex-start; min-height: 56px; padding: 0 1.9em; font-size: .86rem; }
}
@media (min-width: 1080px) {
  .nav__toggle { display: none; }
  .nav__menu { display: flex; align-items: center; gap: 1.75rem; }
  .nav__menu ul { display: flex; gap: clamp(1rem, -.6rem + 2vw, 1.6rem); }
  .nav__menu a:not(.btn) { position: relative; display: block; padding: .4rem 0; font: 700 .72rem/1 var(--font-ui); font-stretch: var(--fst-ui); letter-spacing: .15em; text-transform: uppercase; text-decoration: none; color: var(--text-2); transition: color .2s; }
  .nav__menu a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
  .nav__menu a:not(.btn) span { display: inline-block; transition: transform .25s var(--ease); }
  .nav__menu a:not(.btn):hover { color: #fff; }
  .nav__menu a:not(.btn):hover span { transform: translateY(-3px); } /* the label lifts; the underline stays put */
  .nav__menu a:not(.btn):hover::after { transform: scaleX(1); }
}
@keyframes v3-fade { from { opacity: 0; } }

/* ==========================================================================
   Hero: shared base for the banner's photo, glass and light
   ========================================================================== */
.hero { position: relative; isolation: isolate; overflow: clip; }
.hero__photo { position: relative; height: max(320px, min(112vw, 60svh)); }
/* The light along the edge of the photo (and of the glass panel on desktop) */
.hero__edge { position: absolute; inset: 0; pointer-events: none; filter: drop-shadow(0 0 6px rgb(61 109 255 / .95)); }
.hero__edge i {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgb(61 109 255 / 0), #3d6dff 25%, #e6edff 60%, #3d6dff 85%, rgb(61 109 255 / .2));
  clip-path: polygon(0 calc(84% - 1px), 100% calc(100% - 1px), 100% calc(100% + 1px), 0 calc(84% + 1px));
}
.hero__title {
  margin: 0 0 1.25rem;
  font: italic var(--fw-display) calc(var(--dz) * clamp(3.4rem, 1.4rem + 7.6vw, 8.25rem))/.84 var(--font-display); font-stretch: var(--fst-display);
  text-transform: uppercase; letter-spacing: -.01em;
}

@media (min-width: 600px) and (max-width: 1023.98px) {
  .hero__photo { height: max(380px, min(70vw, 62svh)); }
}

@media (min-width: 1024px) {
  /* Photo full-bleed behind a slanted glass panel; the light runs down the panel's edge */
  .hero {
    --gt: 66%; --gb: 49%; /* where the glass edge meets the top and bottom of the hero */
    display: grid; grid-template-rows: 1fr auto;
    min-height: clamp(700px, 100svh, 980px); padding-top: var(--nav-h);
  }
  .hero__photo { position: absolute; inset: 0; z-index: -1; height: auto; }
  .hero__edge i {
    background: linear-gradient(180deg, rgb(61 109 255 / 0) 0%, #3d6dff 18%, #e6edff 42%, #3d6dff 70%, rgb(61 109 255 / 0) 96%);
    clip-path: polygon(calc(var(--gt) - 1px) 0, calc(var(--gt) + 1px) 0, calc(var(--gb) + 1px) 100%, calc(var(--gb) - 1px) 100%);
  }
}
@media (min-width: 1280px) {
  .hero { --gt: 62%; --gb: 46%; }
}
@media (min-width: 1600px) { .hero { --gt: 58%; --gb: 43%; } }

/* Next round: a timing-screen bar (chequered flag, yellow clock) on a glass panel */
.race { display: grid; gap: 1.1rem; padding: 1.85rem 1.25rem 1.35rem 2.1rem; }
.race__flag {
  position: absolute; left: 0; top: 0; bottom: 0; width: 12px;
  background: repeating-conic-gradient(#f4f5f7 0 25%, #000 0 50%) 0 0 / 12px 12px;
}
.race__label {
  position: absolute; top: 0; left: 2rem; z-index: 1; transform: translateY(-50%);
  isolation: isolate; display: inline-flex; align-items: center; gap: .6rem;
  margin: 0; padding: .48rem 1rem;
  font: 700 .62rem/1 var(--font-ui); font-stretch: var(--fst-ui); letter-spacing: .2em; text-transform: uppercase; color: #fff; white-space: nowrap;
}
.race__label::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--blue); transform: skewX(calc(var(--slant) * -1)); }
.race__round { margin: 0 0 .35rem; font: 700 .7rem/1.2 var(--font-ui); font-stretch: var(--fst-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--ice); }
.race__name { margin: 0 0 .3rem; font: italic var(--fw-display) calc(var(--dz) * clamp(1.75rem, 1.3rem + 1.6vw, 2.4rem))/.95 var(--font-display); font-stretch: var(--fst-display); text-transform: uppercase; }
.race__meta { margin: 0; color: var(--text-2); font-size: .95rem; line-height: 1.45; }
.race__meta .sep { margin-inline: .3em; color: var(--yellow); font-weight: 700; }
.race__clock { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
html:not(.js) .race__clock { display: none; }
.race__unit { display: grid; justify-items: center; padding: .62rem .45rem .5rem; background: rgb(2 4 15 / .62); border: 1px solid var(--line); }
.race__unit b { font: italic var(--fw-display) calc(var(--dz) * clamp(2rem, 1.6rem + 1.4vw, 2.6rem))/1 var(--font-display); font-stretch: var(--fst-display); font-variant-numeric: tabular-nums; color: var(--yellow); }
.race__unit small { margin-top: .3rem; font: 700 .56rem/1 var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.race__status { margin: 0; font: italic var(--fw-display) calc(var(--dz) * 1.5rem)/1.1 var(--font-display); font-stretch: var(--fst-display); text-transform: uppercase; color: var(--yellow); }
.race__actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; }
.race--off .race__meta { max-width: 56ch; }
/* One row on laptops and up, a touch tighter until there's room.
   Days widens to fit three digits (100 days out and more); the other boxes keep their size. */
@media (min-width: 600px) { .race__clock { grid-template-columns: minmax(4.4rem, max-content) repeat(3, 4.4rem); } }
@media (min-width: 720px) {
  .race { padding: 1.85rem 1.75rem 1.5rem 3.25rem; }
  .race__flag { width: 24px; background-size: 12px 12px; }
  .race__label { left: 3.25rem; }
}
@media (min-width: 900px) {
  .race { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 2rem; }
  .race__main { grid-column: 1 / -1; }
  .race--off .race__main { grid-column: auto; }
}
@media (min-width: 1180px) {
  .race { grid-template-columns: minmax(0, 1fr) auto auto; }
  .race__main { grid-column: auto; }
}
@media (min-width: 1180px) and (max-width: 1365.98px) {
  .race { column-gap: 1.75rem; }
  .race__meta { font-size: .9rem; }
  .race__clock { grid-template-columns: minmax(4rem, max-content) repeat(3, 4rem); }
  .race__actions .btn { padding: 0 1.3em; }
}
/* keep the name on one line as the panel narrows */
@media (min-width: 1180px) and (max-width: 1279.98px) { .race__name { font-size: calc(var(--dz) * 2.2rem); } }
@media (min-width: 1180px) and (max-width: 1239.98px) { .race__name { font-size: calc(var(--dz) * 2rem); } }
/* below 1220px the date and the venue take a line each, rather than "Circuit" wrapping on its own */
@media (min-width: 1180px) and (max-width: 1219.98px) {
  .race__meta time { display: block; }
  .race__meta .sep { display: none; }
}

/* ==========================================================================
   Ticker: the tape between the hero and the photo cards
   ========================================================================== */
.ticker-wrap { position: relative; z-index: 5; overflow: hidden; padding-block: 1.5rem; margin-block: -2.25rem -1.5rem; pointer-events: none; }
.ticker {
  pointer-events: auto; margin: 0 -3vw; overflow: hidden;
  background: var(--yellow); color: var(--yellow-ink);
  transform: rotate(-1.4deg);
  box-shadow: 0 18px 40px -22px rgb(0 0 0 / .7);
}
.ticker__track { display: flex; width: max-content; animation: v3-marquee 45s linear infinite; }
.ticker__list { display: flex; margin: 0; padding: 0; list-style: none; }
.ticker__list li {
  display: flex; align-items: center; gap: 1.6rem; padding: .9rem 0 .85rem 1.6rem;
  font: italic var(--fw-display) calc(var(--dz) * clamp(1.15rem, .95rem + .9vw, 1.7rem))/1 var(--font-display); font-stretch: var(--fst-display);
  text-transform: uppercase; white-space: nowrap;
}
.ticker__list li::after { content: ""; width: .85em; height: .55em; background: var(--yellow-ink); transform: skewX(-24deg); }
@keyframes v3-marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Sections: navy, with a paper block in the middle (season, then classes)
   ========================================================================== */
.section { position: relative; padding-block: var(--section-pad); }
.section--light + .section--light { padding-top: 0; } /* two paper sections in a row share one gap */
/* The slant eats into the section above, so that section gets half of it back and the
   slanted one gives half up: the edge sits midway between the cards above and the title below */
.section:has(+ .section > .slant) { padding-bottom: calc(var(--section-pad) + var(--slant-h) / 2); }
.section:has(> .slant) { padding-top: calc(var(--section-pad) - var(--slant-h) / 2); }
.section--dark { --sec-bg: var(--ink); }
/* The hero's glow in each navy section, beside the title on alternating sides; it fades out
   before the section's edges, so it never meets a slant or the next section */
.section--dark, .strip { background: radial-gradient(60% 44% at var(--glow-at, 100% 32%), var(--glow), transparent 70%), var(--ink); }
.section--light {
  --sec-bg: var(--paper); --link: var(--blue); --link-hover: var(--paper-ink); --focus: var(--blue);
  background: var(--paper); color: var(--paper-ink);
}
.section--light .kicker { color: var(--paper-muted); }
.section--light .kicker::before { background: var(--blue); } /* yellow would vanish on paper */
.section--light .title { color: var(--paper-ink); }
.section--light .hl { color: var(--blue); }
.section--light .head__intro { color: var(--paper-muted); }
.section--light .btn--ghost { --fg: var(--paper-ink); --bd: rgb(10 15 31 / .3); }
.section--light .btn--ghost:hover { --bd: var(--paper-ink); --bg: rgb(10 15 31 / .05); }

/* ---------- Classes (paper): a ladder of five white cards, each with its tachometer ---------- */
.classes .head__intro { /* two long lines under the title on desktop */
  max-width: 62rem; font-size: clamp(1.04rem, .9rem + .4vw, 1.2rem); text-wrap: balance;
}
.kcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin: 0; padding: 0; list-style: none; }
.kcard__link {
  position: relative; display: grid; align-content: start; gap: .6rem; height: 100%;
  padding: 1rem 1rem 1.1rem; background: #fff; text-decoration: none;
  box-shadow: 0 1px 0 rgb(10 15 31 / .06), 0 14px 30px -24px rgb(10 15 31 / .45);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.kcard__link::before { /* yellow edge on hover */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.kcard__link:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgb(10 15 31 / .06), 0 22px 40px -24px rgb(10 15 31 / .55); }
.kcard__link:hover::before, .kcard__link:focus-visible::before { transform: scaleX(1); }
.kcard__top { display: flex; align-items: center; gap: .7rem; }
.kcard__plate { /* race-number plate; the 250 International's is yellow */
  display: grid; place-items: center; flex: none; width: 2.3rem; height: 1.95rem;
  font: italic var(--fw-display) calc(var(--dz) * 1.3rem)/1 var(--font-display); font-stretch: var(--fst-display);
  background: var(--paper-ink); color: #fff; transform: skewX(calc(var(--slant) * -1));
}
.kcard--premier .kcard__plate { background: var(--yellow); color: var(--yellow-ink); }
.kcard__level { font: 700 .62rem/1.25 var(--font-ui); font-stretch: var(--fst-ui); letter-spacing: .15em; text-transform: uppercase; color: var(--blue); }
.kcard__name { min-height: 2em; font: italic var(--fw-display) calc(var(--dz) * clamp(1.15rem, 1rem + .5vw, 1.45rem))/1 var(--font-display); font-stretch: var(--fst-display); text-transform: uppercase; }
.kcard__kmh { font: italic var(--fw-display) calc(var(--dz) * .95rem)/1 var(--font-display); font-stretch: var(--fst-display); text-transform: uppercase; color: var(--paper-muted); }
.kcard__kmh b { font-size: 2.4em; color: var(--paper-ink); font-variant-numeric: tabular-nums; }
.kcard__lap { padding-top: .6rem; border-top: 1px solid var(--paper-2); font: 700 .95rem/1.15 var(--font-ui); font-stretch: var(--fst-ui); font-variant-numeric: tabular-nums; }
.kcard__lap small { display: block; margin-bottom: .25rem; font: 700 .58rem/1.2 var(--font-ui); font-stretch: var(--fst-ui); letter-spacing: .15em; text-transform: uppercase; color: var(--paper-muted); }
@media (max-width: 719.98px) { .kcard--premier { grid-column: 1 / -1; } }
@media (min-width: 720px) and (max-width: 1023.98px) {
  .kcards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kcard--premier { grid-column: span 2; }
}
@media (min-width: 1024px) { .kcards { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .85rem; } .kcard__link { padding: 1.15rem 1.15rem 1.25rem; } }

.classes__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2rem; }
.classes__foot p { margin: 0; max-width: 62ch; color: var(--paper-muted); font-size: .95rem; }
.classes__foot p a { color: var(--paper-ink); font-weight: 600; text-underline-offset: 3px; }

/* ---------- Ways in (navy): photo cards, the big one first, with a yellow edge ---------- */
.ways { --glow-at: 100% 30%; padding-top: calc(var(--section-pad) + 1.5rem); } /* clear of the ticker */
.ways__grid { display: grid; gap: 1rem; }
.way {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--ink-3); text-decoration: none;
  transition: background .3s;
}
.way::after { /* yellow edge on hover */
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 4px;
  background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.way:hover { background: #14244f; }
.way:hover::after, .way:focus-visible::after { transform: scaleX(1); }
.way__media { aspect-ratio: 16 / 9; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%); }
.way__media picture, .way__media img { width: 100%; height: 100%; }
.way__media img { object-fit: cover; transition: transform .7s var(--ease); }
.way:hover .way__media img { transform: scale(1.05); }
.way__body { position: relative; padding: .5rem 1.4rem 1.75rem; }
.way__title { margin: 0 0 .6rem; font: italic var(--fw-display) calc(var(--dz) * clamp(1.85rem, 1.45rem + 1.3vw, 2.5rem))/.95 var(--font-display); font-stretch: var(--fst-display); text-transform: uppercase; transition: color .2s; }
.way:hover .way__title { color: var(--yellow); }
.way__text { margin: 0 0 1.25rem; max-width: 46ch; color: var(--text-2); }
@media (min-width: 720px) {
  .ways__grid { grid-template-columns: 1fr 1fr; }
  .way--primary { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .ways__grid { grid-template-columns: 1.3fr 1fr; gap: 1.25rem; }
  .way--primary { grid-column: 1; grid-row: 1 / span 2; }
  .way--primary .way__media { flex: 1; min-height: 360px; aspect-ratio: auto; }
  .way--primary .way__body { padding: 0 2.25rem 2.25rem; }
  .way--primary .way__title { font-size: calc(var(--dz) * clamp(2.5rem, 1.6rem + 1.8vw, 3.4rem)); }
  .way:not(.way--primary) { display: grid; grid-template-columns: 44% 1fr; }
  .way:not(.way--primary) .way__media { aspect-ratio: auto; clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%); }
  .way:not(.way--primary) .way__body { padding: 1.75rem 1.75rem 1.75rem .75rem; align-self: center; }
}

/* ---------- Season (paper): the championship line, one stop per round ---------- */
.season { padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); } /* the classes follow on the same paper, so a shorter gap */
.season__list { position: relative; display: grid; margin: 0; padding: 0; list-style: none; }
.season__list::before { /* the championship line */
  content: ""; position: absolute; left: 6px; top: .5rem; bottom: .5rem; width: 2px; background: #c9d1df;
}
.stop {
  position: relative;
  display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: .2rem 1rem;
  padding: 1.35rem 0 1.35rem 2rem;
  border-bottom: 1px solid var(--paper-2);
}
.stop__node {
  position: absolute; left: 0; top: 1.65rem;
  width: 14px; height: 14px;
  background: var(--paper); border: 2px solid #a9b4c8;
  transform: skewX(calc(var(--slant) * -1));
}
.stop--done .stop__node { background: var(--blue); border-color: var(--blue); }
.stop--next .stop__node { background: var(--yellow); border-color: var(--paper-ink); }
.stop__date { margin: 0; padding-top: .1rem; }
.stop__day { display: block; font: italic var(--fw-display) calc(var(--dz) * 1.6rem)/.95 var(--font-display); font-stretch: var(--fst-display); text-transform: uppercase; }
.stop__weekday { font: 700 .62rem/1 var(--font-ui); font-stretch: var(--fst-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--paper-muted); }
.stop__round { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .65rem; margin: 0 0 .5rem; font: 700 .62rem/1 var(--font-ui); font-stretch: var(--fst-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--paper-muted); }
.stop__label { /* the round's plate */
  display: inline-grid; place-items: center; min-width: 2.5rem; height: 1.6rem; padding: 0 .5rem;
  font: italic var(--fw-display) calc(var(--dz) * 1rem)/1 var(--font-display); font-stretch: var(--fst-display); letter-spacing: .02em;
  background: var(--paper-ink); color: #fff;
  transform: skewX(calc(var(--slant) * -1));
}
.stop--next .stop__label { background: var(--yellow); color: var(--yellow-ink); }
.stop__title { margin: 0 0 .3rem; font: italic var(--fw-display) calc(var(--dz) * 1.4rem)/1 var(--font-display); font-stretch: var(--fst-display); text-transform: uppercase; }
.stop__venue { margin: 0; font-size: .94rem; line-height: 1.4; color: var(--paper-muted); }
.stop__status { grid-column: 2; margin-top: .85rem; }
.stop__tag { display: inline-flex; align-items: center; min-height: 36px; font: 700 .64rem/1 var(--font-ui); font-stretch: var(--fst-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--paper-muted); }
.stop--done :is(.stop__day, .stop__title) { color: var(--paper-muted); }
.stop--next { /* the round coming up gets a white card, like the class ladder */
  margin-inline: -.75rem; padding-inline: 2.75rem .75rem; border-bottom-color: transparent;
  background: #fff; box-shadow: 0 1px 0 rgb(10 15 31 / .06), 0 18px 36px -24px rgb(10 15 31 / .5);
}
.stop--next .stop__node { left: .75rem; }
@media (max-width: 1023.98px) {
  .stop--done .stop__venue { display: none; }
}
@media (min-width: 1024px) {
  .season__list { grid-template-columns: repeat(var(--stops, 5), minmax(0, 1fr)); gap: 1.25rem; }
  .season__list::before { left: 0; right: 0; top: 6px; bottom: auto; width: auto; height: 2px; }
  .stop { grid-template-columns: 1fr; align-content: start; padding: 2.4rem 1.25rem 1.5rem 0; border: 0; }
  .stop__node { top: 0; }
  .stop__date { margin-bottom: .85rem; }
  .stop__day { font-size: calc(var(--dz) * 2.2rem); }
  .stop__status { grid-column: 1; margin-top: 1.1rem; }
  .stop--next { margin: 0 0 0 -1.1rem; padding: 2.4rem 1.25rem 1.5rem 1.1rem; }
  .stop--next .stop__node { left: 1.1rem; }
}

/* ---------- News (navy): poster cards, the story set over the photo ---------- */
.news { --glow-at: 0% 32%; padding-bottom: clamp(3rem, 2rem + 3vw, 4.5rem); }
.posters { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 82%); gap: 1rem; padding: 0 var(--gutter) .5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.posters::-webkit-scrollbar { display: none; }
.poster {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end;
  min-height: 460px; scroll-snap-align: start; background: var(--ink-3);
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%); /* the race-plate corner */
}
.poster picture, .poster > img, .poster picture img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.poster img { object-fit: cover; transition: transform 1s var(--ease); }
.poster::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(3 8 23 / .08) 22%, rgb(3 8 23 / .72) 58%, rgb(3 8 23 / .96)); }
.poster:hover img { transform: scale(1.05); }
.poster__body { position: relative; display: grid; gap: .7rem; padding: 1.5rem 1.4rem 1.6rem; }
.poster__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin: 0; font: 700 .68rem/1 var(--font-ui); font-stretch: var(--fst-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.poster__title { margin: 0; font: italic var(--fw-display) calc(var(--dz) * clamp(1.6rem, 1.3rem + 1vw, 2.15rem))/.98 var(--font-display); font-stretch: var(--fst-display); text-transform: uppercase; transition: color .3s; }
.poster__title a { text-decoration: none; }
.poster__title a::after { content: ""; position: absolute; inset: 0; }
.poster__excerpt { margin: 0; color: var(--text-2); font-size: .95rem; }
.poster .more { margin-top: .2rem; }
.poster:hover .poster__title { color: var(--yellow); }
.poster:has(a:focus-visible)::before { content: ""; position: absolute; inset: 4px; z-index: 2; border: 2px solid var(--focus); pointer-events: none; } /* clip-path would hide an outline */
.poster__title a:focus-visible { outline: none; }
@media (min-width: 1024px) {
  .posters { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; padding: 0; overflow: visible; gap: 1.25rem; }
  .poster { min-height: 520px; }
}

/* ---------- Gallery (navy, run on from the news): a title and the way in, then a photo strip ---------- */
.strip { --glow-at: 100% 34%; position: relative; padding-bottom: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); }
.strip__track { --cut: 44px; display: flex; gap: 10px; padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.strip__track::-webkit-scrollbar { display: none; }
.strip__item { flex: 0 0 68vw; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%); scroll-snap-align: center; }
.strip__item + .strip__item { margin-left: calc(var(--cut) * -1 + 4px); }
.strip__item picture, .strip__item img { width: 100%; height: 100%; }
.strip__item img { object-fit: cover; transition: transform .7s var(--ease); }
.strip__item:hover img { transform: scale(1.05); }
.strip .btn .icon { width: 1.2em; height: 1.2em; }
@media (min-width: 720px) and (max-width: 1023.98px) { .strip__item { flex-basis: 44vw; } }
@media (min-width: 1024px) {
  .strip__track { --cut: 70px; overflow: visible; padding-inline: 0; }
  /* A fixed height (what 3:4 gives at equal widths) so a photo can widen on hover without the row growing */
  .strip__item { flex: 1 1 0; height: calc((25vw + 42px) * 4 / 3); }
  .motion .strip__item { transition: flex-grow .55s var(--ease); }
  .strip__item:first-child { clip-path: polygon(0 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%); }
  .strip__item:last-child { clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%); }
}
/* Hovering a photo widens it a touch (about 29% of the row instead of 25%); the others give way */
@media (min-width: 1024px) and (hover: hover) { .strip__item:hover { flex-grow: 1.2; } }

/* ---------- CTA: club photo (or footage) under the club blue, livery stripes on the right ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(4.5rem, 3rem + 5vw, 8rem); background: var(--ink); }
.cta__media { position: absolute; inset: 0; z-index: -2; background: linear-gradient(115deg, #061a63 0%, #1638c9 60%, #2b59ff 100%); }
.cta__media picture, .cta__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta__media img { object-fit: cover; object-position: 50% 40%; mix-blend-mode: luminosity; opacity: .55; }
.cta__media .bg-video { mix-blend-mode: luminosity; }
.cta__media .bg-video.is-playing { opacity: .6; }
.cta__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(3 8 23 / .9) 0%, rgb(3 8 23 / .62) 48%, rgb(3 8 23 / .38) 100%); }
.cta::after { /* yellow and white livery stripes */
  content: ""; position: absolute; z-index: -1; top: -10%; bottom: -10%; right: 2.5%; width: 26px;
  background: linear-gradient(90deg, var(--yellow) 0 62%, transparent 62% 78%, #fff 78%);
  transform: skewX(calc(var(--slant) * -1.6));
}
.cta__inner { display: grid; gap: 2rem; }
.cta__title { max-width: 15ch; font-size: calc(var(--dz) * clamp(2.6rem, 1.4rem + 4.4vw, 5rem)); line-height: .88; }
.cta__text { margin: 1.1rem 0 0; max-width: 50ch; font-size: 1.06rem; color: #dbe3ff; }
.cta__contact { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.cta__contact li { display: grid; gap: .35rem; }
.cta__contact small { font: 700 .6rem/1 var(--font-ui); font-stretch: var(--fst-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--ice); }
.cta__contact a { justify-self: start; font-weight: 600; font-size: 1.08rem; color: #fff; text-decoration: none; border-bottom: 1px solid rgb(184 204 255 / .45); }
.cta__contact a:hover { border-color: #fff; }
@media (min-width: 1024px) { .cta__inner { grid-template-columns: 1fr auto; align-items: end; padding-right: 7rem; } }

/* ==========================================================================
   Footer: the chequered flag, then the club's wordmark at billboard size
   ========================================================================== */
.foot {
  --mark-pb: clamp(2.25rem, 1.5rem + 2vw, 3.25rem); /* space under the club line */
  --grid-pt: 2.75rem;                               /* space above the footer text */
  position: relative; overflow-x: clip; background: var(--night); color: var(--muted); font-size: .96rem;
}
.checker { height: 18px; background: repeating-conic-gradient(#e9ecf2 0 25%, var(--night) 0 50%) 0 0 / 18px 18px; opacity: .9; }
.foot__mark { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; /* a fixed column, so the club line tracking in wide can't shove the badge and word sideways */ padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) var(--mark-pb); text-align: center; }
.foot__badge { width: clamp(120px, 10vw + 60px, 240px); height: auto; margin-bottom: clamp(1.25rem, .75rem + 1.5vw, 2.25rem); filter: drop-shadow(0 14px 40px rgb(61 109 255 / .6)); }
.foot__word {
  display: inline-flex;
  font: italic 900 calc(var(--dz-logo, 1) * clamp(2.2rem, 11vw, 11rem))/.9 var(--font-logo); font-stretch: 125%;
  letter-spacing: -.015em; text-transform: uppercase; white-space: nowrap;
  filter: drop-shadow(0 .06em .1em rgb(0 0 0 / .55));
}
.foot__ch {
  display: inline-block; padding: .08em .14em; margin: -.08em -.14em; /* italic overhang would be clipped by background-clip */
  background: linear-gradient(105deg, transparent 40%, rgb(255 255 255 / .95) 50%, transparent 60%) 220% 0 / 300% 100% no-repeat, var(--chrome);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.foot__sub { display: block; margin-top: clamp(.8rem, .5rem + 1vw, 1.4rem); font: 700 clamp(.6rem, .3rem + 1.5vw, 1.7rem)/1 var(--font-logo); font-stretch: 125%; text-transform: uppercase; white-space: nowrap; color: #fff; text-shadow: 0 0 18px rgb(61 109 255 / .9); }
.foot__beam { /* the logo's light streak: edge to edge, halfway between the club line and the footer text */
  position: absolute; left: calc(50% - 50vw); right: calc(50% - 50vw); height: 3px;
  top: calc(100% + (var(--grid-pt) - var(--mark-pb)) / 2 - 1.5px); /* from the bottom of the wordmark block */
  background: linear-gradient(90deg, rgb(61 109 255 / .15), rgb(61 109 255 / .9) 22%, #dfe8ff 50%, rgb(61 109 255 / .9) 78%, rgb(61 109 255 / .15));
  box-shadow: 0 0 16px 2px rgb(61 109 255 / .7);
  border-radius: 99px; transform-origin: left;
}
.foot__grid { display: grid; gap: 2.25rem; padding-block: var(--grid-pt) 2.5rem; } /* the streak above is its divider */
.foot__about p { max-width: 42ch; margin: 0 0 1.25rem; }
.foot__h { margin: 0 0 .9rem; font: 700 .64rem/1 var(--font-ui); font-stretch: var(--fst-ui); letter-spacing: .22em; text-transform: uppercase; color: var(--yellow); }
.foot ul { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.foot a { color: var(--text-2); text-decoration: none; transition: color .2s; }
.foot a:hover { color: #fff; }
.foot__muted { color: var(--muted); }
.social { display: inline-flex; align-items: center; gap: .7rem; font-weight: 600; }
.social .icon { width: 2rem; height: 2rem; padding: .3rem; background: var(--blue); color: #fff; transform: skewX(calc(var(--slant) * -1)); }
.foot__affiliates { display: flex; flex-wrap: wrap; align-items: baseline; gap: .75rem 1.5rem; padding-block: 1.5rem; border-top: 1px solid var(--line); }
.foot__affiliates .foot__h { margin: 0; }
.foot__affiliates ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-block: 0; padding-block: 1.5rem 2rem; border-top: 1px solid var(--line); font-size: .82rem; }
@media (min-width: 720px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .foot__grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; } }

/* ==========================================================================
   Motion. Gated on html.motion (set before paint; off for reduced motion).
   Shared pieces: the reveal on scroll, the ticker and the live dot.
   ========================================================================== */
html:not(.motion) :is(.live-dot, .ticker__track) { animation: none; }

@keyframes v3-drop    { from { opacity: 0; transform: translateY(-100%); } }
@keyframes v3-up      { from { opacity: 0; transform: translateY(28px); filter: blur(6px); } }
@keyframes v3-slide   { from { opacity: 0; transform: translateX(-34px); } }
@keyframes v3-launch {
  0%   { opacity: 0; transform: translateX(-90px) skewX(-22deg); filter: blur(8px); }
  55%  { opacity: 1; transform: translateX(8px) skewX(5deg); filter: blur(0); }
  100% { opacity: 1; transform: none; }
}
@keyframes v3-photo   { from { opacity: 0; transform: scale(1.14); filter: blur(14px); } }
@keyframes v3-glass   { from { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); } }
@keyframes v3-edge    { from { opacity: 0; transform: translateY(-30%); } }
@keyframes v3-beam    { 0% { opacity: 0; transform: scaleX(0); } 30% { opacity: 1; } 100% { opacity: 1; transform: scaleX(1); } }
@keyframes v3-flash   { 0% { opacity: 0; transform: translateX(-60vw) scaleX(.3); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateX(60vw) scaleX(1.6); } }
@keyframes v3-panel   { from { opacity: 0; transform: translateY(46px) scale(.97); filter: blur(10px); } }
@keyframes v3-flip    { from { opacity: 0; transform: perspective(300px) rotateX(-80deg); } }
@keyframes v3-flag    { from { background-position: 0 -132px; } }
@keyframes v3-ticker  { from { opacity: 0; transform: rotate(-1.4deg) translateX(45%); } to { transform: rotate(-1.4deg); } }
@keyframes v3-glint   { 0% { background-position: -150% 0; } 12%, 100% { background-position: 150% 0; } } /* a 1.1s sweep, then rest */

/* ---- Intro: hidden until html.intro, then choreographed ---- */
.motion :is(.nav, .hero__media, .hero__glass, .hero__edge, .hero__copy .kicker, .hero__line, .hero__lead, .hero__copy .btn-row, .race, .race__unit, .ticker) { opacity: 0; }
.hero::after { /* a white flash runs across as the karts launch */
  content: ""; position: absolute; z-index: 1; left: 50%; top: 52%; width: 50vw; height: 2px; margin-left: -25vw;
  opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, #fff, transparent); box-shadow: 0 0 30px 6px rgb(61 109 255 / .9);
}
.motion.intro .hero::after { animation: v3-flash 1s cubic-bezier(.6, 0, .2, 1) .05s backwards; }
.motion.intro .nav { opacity: 1; animation: v3-drop .7s var(--ease) .1s backwards; }
/* The glint crosses the badge in the intro, then again every 9s */
.motion.intro .nav__badge::after { animation: v3-glint 9s ease-in-out 1.3s infinite backwards; }
.motion.intro .hero__edge { opacity: 1; animation: v3-edge 1s var(--out) .95s backwards; }
.motion.intro .race { opacity: 1; animation: v3-panel 1s var(--out) 1.15s backwards; }
.motion.intro .race__flag { animation: v3-flag 1.1s var(--ease) 1.25s backwards; }
.motion.intro .race__unit { opacity: 1; animation: v3-flip .7s var(--out) backwards; animation-delay: calc(1.5s + var(--u, 0) * .08s); }
.motion.intro .ticker { opacity: 1; animation: v3-ticker 1.1s var(--ease) 1.3s backwards; }

/* ---- Scroll reveals ---- */
.motion [data-reveal]:not([data-reveal="none"]):not(.is-in) { opacity: 0; }
.motion [data-reveal].is-in { animation: v3-up .9s var(--out) backwards; animation-delay: calc(var(--i, 0) * 100ms); }
.motion [data-reveal="none"].is-in { animation: none; }
/* Section titles launch like the hero */
.motion .head[data-reveal].is-in { animation: none; }
.motion .head:not(.is-in) :is(.kicker, .title, .head__intro, .more, .btn-row) { opacity: 0; }
.motion .head.is-in .kicker { animation: v3-slide .7s var(--ease) backwards; }
.motion .head.is-in .title { animation: v3-launch 1s var(--ease) .08s backwards; }
.motion .head.is-in :is(.head__intro, .more, .btn-row) { animation: v3-up .8s var(--ease) .25s backwards; }
/* Ways: the card rises and its photo wipes in behind the slanted edge */
@keyframes v3-media { from { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); } }
.motion .way.is-in .way__media { animation: v3-media 1s cubic-bezier(.7, 0, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 100ms + .15s); }
@media (min-width: 1024px) {
  /* Side by side, the three arrive together: the first card in brings the lower one with it */
  .motion .ways__grid:has(.way.is-in) .way:not(.is-in) { opacity: 1; animation: v3-up .9s var(--out) backwards; animation-delay: calc(var(--i, 0) * 100ms); }
  .motion .ways__grid:has(.way.is-in) .way:not(.is-in) .way__media { animation: v3-media 1s cubic-bezier(.7, 0, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 100ms + .15s); }
}
/* Season: the championship line draws through, then each round's node pops */
@keyframes v3-draw-x { from { transform: scaleX(0); } }
@keyframes v3-draw-y { from { transform: scaleY(0); } }
@keyframes v3-node   { 0% { transform: skewX(-12deg) scale(0); } 70% { transform: skewX(-12deg) scale(1.5); } 100% { transform: skewX(-12deg) scale(1); } }
.motion .season__list::before { transform-origin: top; }
.motion .season__list.is-in::before { animation: v3-draw-y 1.2s var(--ease) backwards; }
.motion .stop.is-in .stop__node { animation: v3-node .5s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 120ms + .2s); }
@media (min-width: 1024px) {
  .motion .season__list::before { transform-origin: left; }
  .motion .season__list.is-in::before { animation-name: v3-draw-x; }
}
/* News: each poster's photo settles into place */
@keyframes v3-zoom-out { from { transform: scale(1.18); } }
.motion .poster.is-in img { animation: v3-zoom-out 1.6s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 90ms); }
/* Photo strip slides in from the right; the CTA's livery stripes are drawn in along their
   slant, from the top right down to the bottom left (the clip runs before the skew) */
@keyframes v3-strip  { from { opacity: 0; transform: translateX(70px); } }
@keyframes v3-stripe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
.motion .strip__item.is-in { animation-name: v3-strip; animation-duration: 1s; }
.motion .cta:not(.is-in)::after { clip-path: inset(0 0 100% 0); }
.motion .cta.is-in::after { animation: v3-stripe 1.1s cubic-bezier(.65, 0, .25, 1) .2s backwards; }
/* Footer: a title sequence, one line at a time and only once each is fully on screen (v3.js
   adds .is-in): the badge rises, SUPERKART lights up letter by letter, then the club line
   tracks in and the streak runs out underneath it */
@keyframes v3-letter { from { opacity: 0; transform: translateX(-.5em) skewX(-16deg); filter: blur(8px); } }
@keyframes v3-chrome { from { background-position: 220% 0, 0 0; } to { background-position: -120% 0, 0 0; } }
@keyframes v3-badge  { from { opacity: 0; transform: translateY(24px) scale(.85); filter: blur(6px); } }
@keyframes v3-track  { from { opacity: 0; letter-spacing: 1.4em; } }
.motion .foot__mark [data-seq]:not(.is-in) { opacity: 0; }
.motion .foot__badge.is-in { animation: v3-badge 1s var(--out) backwards; }
.motion .foot__word.is-in .foot__ch { animation: v3-letter .8s var(--out) backwards, v3-chrome 1.4s ease-in-out backwards; animation-delay: calc(var(--c) * .06s), calc(.7s + var(--c) * .07s); }
.motion .foot__sub.is-in { animation: v3-track 1.3s var(--out) backwards; }
.motion .foot__sub:not(.is-in) + .foot__beam { opacity: 0; }
.motion .foot__sub.is-in + .foot__beam { animation: v3-beam 1.3s var(--out) .7s backwards; }

/* ==========================================================================
   On top of the base: the opening, the pages and their details
   ========================================================================== */
:root {
  --navy-950: #030818;
  --navy-800: #0b1b52;
  --electric: #3d6dff;
  --strong: #fff;              /* names, figures and bold text */
  --accent: var(--yellow);     /* the signal on navy; paper swaps it for the club blue */
  --card: var(--ink-3);        /* a solid card on navy */
  --card-hover: #14244f;
}

/* Paper sections: their text, lines, cards and signal follow the paper */
.section--light {
  --text: var(--paper-ink);
  --text-2: #3a465e;
  --muted: var(--paper-muted);
  --line: rgb(10 15 31 / .12);
  --line-strong: rgb(10 15 31 / .28);
  --strong: var(--paper-ink);
  --accent: var(--blue);
  --ice: var(--blue);
  --card: #fff;
  --card-hover: #fff;
}
.section--light .glass { /* glass turns into a white card on paper */
  background: #fff; border-color: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: 0 1px 0 rgb(10 15 31 / .06), 0 18px 36px -26px rgb(10 15 31 / .5);
}
.section--light :is(.btn--blue, .btn--white):hover { --bg: var(--paper-ink); --fg: #fff; }

/* ==========================================================================
   1 · The opening: the club's wordmark (the homepage's loading screen)
   ========================================================================== */
.opener {
  position: relative; isolation: isolate; overflow: hidden; display: grid;
  min-height: clamp(470px, 74svh, 680px); padding: calc(var(--nav-h) + 2.5rem) 0 4.5rem;
  background: var(--ink);
}
@media (min-width: 768px) { .opener { min-height: clamp(560px, 84svh, 860px); padding-bottom: 5.5rem; } }
.opener__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.opener__photo { position: absolute; inset: 0; }
.opener__photo::after { /* vignette, then down into the banner's navy */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(70% 55% at 50% 45%, rgb(3 8 23 / .45) 0%, rgb(3 8 23 / .85) 100%),
    linear-gradient(180deg, rgb(3 8 23 / .7) 0%, transparent 30%, rgb(3 8 23 / .4) 65%, var(--ink) 100%);
}
/* Blue duotone: the photo's light and shade, in the club's blue */
.duo { position: relative; isolation: isolate; overflow: hidden; }
.duo picture, .duo img { width: 100%; height: 100%; }
.duo img { object-fit: cover; }
.opener .duo { background: linear-gradient(160deg, var(--electric), var(--navy-800) 55%, var(--navy-950)); }
.opener .duo img { object-position: 50% 40%; opacity: .42; mix-blend-mode: luminosity; filter: contrast(1.12) brightness(.95); }
/* Light streaks drifting across */
.streak {
  position: absolute; left: -20%; right: -20%; top: var(--y); height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgb(184 204 255 / .9) 45%, #fff 50%, rgb(184 204 255 / .9) 55%, transparent 95%);
  box-shadow: 0 0 14px 1px rgb(61 109 255 / .8);
  opacity: var(--o);
  animation: v5-drift var(--d) linear infinite alternate;
}
@keyframes v5-drift { from { transform: translateX(-12%); } to { transform: translateX(12%); } }

.opener__inner { position: relative; display: grid; justify-items: center; align-content: center; width: min(100% - 2 * var(--gutter), 1080px); margin-inline: auto; text-align: center; }
.opener__badge { position: relative; display: block; width: clamp(74px, 6vw + 40px, 116px); margin-bottom: clamp(1rem, .5rem + 1.5vw, 1.75rem); filter: drop-shadow(0 10px 30px rgb(61 109 255 / .55)); }
.opener__badge img { width: 100%; height: auto; }
.opener__badge::after { /* shine, masked to the badge shape */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .85) 50%, transparent 65%) -150% 0 / 250% 100% no-repeat;
  -webkit-mask: url("/assets/brand/sk-badge.png") center / contain no-repeat;
          mask: url("/assets/brand/sk-badge.png") center / contain no-repeat;
}
.opener__title { margin: 0; display: grid; justify-items: center; }
.wordmark {
  position: relative; display: inline-flex; isolation: isolate;
  font: italic 900 calc(var(--dz-logo, 1) * clamp(2.2rem, 9.4vw, 11rem))/.9 var(--font-logo); font-stretch: 125%;
  letter-spacing: -.015em; text-transform: uppercase; white-space: nowrap;
  filter: drop-shadow(0 .06em .1em rgb(0 0 0 / .55));
}
.wordmark__ch {
  display: inline-block;
  padding: .08em .14em; margin: -.08em -.14em; /* italic overhang would be clipped by background-clip */
  background: linear-gradient(105deg, transparent 40%, rgb(255 255 255 / .95) 50%, transparent 60%) 220% 0 / 300% 100% no-repeat, var(--chrome);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wordmark__beam { /* the logo's light streak, running out under the word */
  position: absolute; z-index: -1; left: 38%; right: -40vw; top: 70%; height: .09em;
  background: linear-gradient(90deg, transparent, rgb(61 109 255 / .9) 18%, #dfe8ff 40%, rgb(61 109 255 / .7) 70%, transparent);
  box-shadow: 0 0 .25em .04em rgb(61 109 255 / .7);
  border-radius: 99px; transform-origin: left;
}
.opener__sub {
  display: block; margin-top: clamp(.8rem, .5rem + 1vw, 1.5rem);
  font: 700 clamp(.6rem, .3rem + 1.6vw, 1.9rem)/1 var(--font-logo); font-stretch: 125%;
  letter-spacing: .5em; margin-right: -.5em; text-transform: uppercase; color: var(--yellow);
  text-shadow: 0 0 18px rgb(255 210 10 / .4);
}
/* The header's "Club of NSW" matches the opening's yellow */
.nav__name small { color: var(--yellow); }
/* ...and so does the footer's */
.foot__sub { color: var(--yellow); text-shadow: 0 0 18px rgb(255 210 10 / .4); }
.opener__cue {
  position: absolute; left: 50%; bottom: 1.25rem; z-index: 2; transform: translateX(-50%);
  display: grid; justify-items: center; gap: .65rem;
  font: 700 .6rem/1 var(--font-ui); font-stretch: var(--fst-ui); letter-spacing: .32em; margin-right: -.32em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
}
.opener__cue:hover { color: #fff; }
.opener__cue i { position: relative; width: 1px; height: 38px; overflow: hidden; background: linear-gradient(rgb(184 204 255 / .35), transparent); }
.opener__cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; box-shadow: 0 0 8px var(--electric); animation: v5-cue 2.2s var(--ease) infinite; }
@keyframes v5-cue { to { top: 100%; } }

/* ==========================================================================
   2 · The photo behind slanted glass, for the banner and page heads
   Phones and tablets: the photo on top, cut on the slant, with the light along the cut.
   From 1024px: the photo fills the right of the block and the light runs down the
   glass panel's edge. --ml is where the photo starts; the glass meets the top of the
   block a fifth of the way into the photo, and its bottom right where the photo starts.
   ========================================================================== */
.shot { position: relative; aspect-ratio: 4 / 3; }
.shot__media { position: absolute; inset: 0; overflow: hidden; background: var(--ink-2); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 84%); }
.shot__media picture, .shot__media img { width: 100%; height: 100%; }
.shot__media img { object-fit: cover; object-position: var(--focus, 50% 50%); }
.shot__media::after { /* readable under the nav, and dark where the title starts */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgb(3 8 23 / .55) 0%, transparent 24%, transparent 62%, rgb(3 8 23 / .45) 100%);
}
.shot__glass { display: none; }
.shot__edge { position: absolute; inset: 0; pointer-events: none; filter: drop-shadow(0 0 6px rgb(61 109 255 / .95)); }
.shot__edge i {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgb(61 109 255 / 0), #3d6dff 25%, #e6edff 60%, #3d6dff 85%, rgb(61 109 255 / .2));
  clip-path: polygon(0 calc(84% - 1px), 100% calc(100% - 1px), 100% calc(100% + 1px), 0 calc(84% + 1px));
}
@media (min-width: 600px) and (max-width: 1023.98px) { .shot { aspect-ratio: 16 / 9; } }
@media (min-width: 1024px) {
  .shot {
    --ml: 43%;
    --gt: calc(var(--ml) + (100% - var(--ml)) * .22);
    position: absolute; inset: 0; z-index: -1; aspect-ratio: auto;
  }
  .shot__media { left: var(--ml); clip-path: none; }
  .shot__media::after { background: linear-gradient(180deg, rgb(3 8 23 / .5) 0%, transparent 22%, transparent 62%, rgb(3 8 23 / .72) 88%, var(--ink) 100%); }
  .shot__glass {
    display: block; position: absolute; inset: 0; overflow: hidden;
    clip-path: polygon(0 0, var(--gt) 0, var(--ml) 100%, 0 100%);
    background:
      radial-gradient(60% 45% at 0% 85%, rgb(61 109 255 / .22), transparent 70%),
      linear-gradient(100deg, rgb(3 8 23 / .96) 0%, rgb(3 8 23 / .92) 45%, rgb(7 20 62 / .76) 100%);
    /* frosted and cooled, so the photo shows through as navy rather than its own colours */
    -webkit-backdrop-filter: blur(20px) saturate(.45) brightness(.85);
            backdrop-filter: blur(20px) saturate(.45) brightness(.85);
  }
  .shot__edge i {
    background: linear-gradient(180deg, rgb(61 109 255 / 0) 0%, #3d6dff 18%, #e6edff 42%, #3d6dff 70%, rgb(61 109 255 / 0) 96%);
    clip-path: polygon(calc(var(--gt) - 1px) 0, calc(var(--gt) + 1px) 0, calc(var(--ml) + 1px) 100%, calc(var(--ml) - 1px) 100%);
  }
}

/* ==========================================================================
   3 · "The fastest karts on earth", with the next round under it
   On desktop the photo takes the same share of the screen as the page heads' photos,
   so the homepage photo's "Keep in view" setting frames them the same way.
   ========================================================================== */
.fast { position: relative; isolation: isolate; overflow: clip; background: var(--ink); }
.fast__stage { position: relative; }
.fast .shot__media::after { background: linear-gradient(180deg, var(--ink) 0%, transparent 20%, transparent 62%, rgb(3 8 23 / .45) 100%); } /* the opening's navy runs on into the photo */
.fast__copy { position: relative; z-index: 2; margin-top: -.75rem; padding-bottom: 1.5rem; }
.fast__title {
  margin: 0 0 1.25rem;
  font: italic var(--fw-display) calc(var(--dz) * clamp(3.4rem, 1.4rem + 7.6vw, 8.25rem))/.84 var(--font-display); font-stretch: var(--fst-display);
  text-transform: uppercase; letter-spacing: -.01em;
}
.fast__line { display: block; width: fit-content; white-space: nowrap; }
/* Stacked layouts (phones and tablets): "karts on earth." shares a line whenever it fits */
@media (max-width: 1023.98px) { .fast__line + .fast__line { display: inline-block; } }
.fast__sheen { /* chrome-white, on the words around the highlight */
  background: var(--sheen); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: .04em .16em .05em 0; margin: -.04em -.16em -.05em 0; /* italic overhang would be clipped by background-clip */
}
.fast__hl { color: var(--yellow); } /* "fastest karts" */
.fast__lead { margin: 0 0 1.75rem; max-width: 36ch; text-wrap: pretty; font-size: clamp(1.08rem, .98rem + .45vw, 1.3rem); line-height: 1.5; color: var(--text-2); }
.fast__race { position: relative; z-index: 3; padding-block: 1.25rem clamp(2.75rem, 2rem + 2vw, 3.5rem); }
@media (min-width: 600px) and (max-width: 1023.98px) { .fast__lead { max-width: 44ch; } }
@media (min-width: 1024px) {
  .fast__stage { display: grid; min-height: clamp(620px, 88svh, 860px); }
  .fast .shot__media::after { background: linear-gradient(180deg, var(--ink) 0%, transparent 16%, transparent 60%, rgb(3 8 23 / .78) 86%, var(--ink) 100%); }
  .fast__copy { align-self: center; margin: 0 auto; padding-block: 4.5rem 7.5rem; }
  .fast__copy .kicker { font-size: .8rem; letter-spacing: .2em; }
  .fast__copy > :not(.fast__title) { max-width: 46%; }
  .fast__lead { font-size: clamp(1.1rem, .25rem + 1.3vw, 1.3rem); }
  /* the sentence under the headline stays a short, readable block on wide screens */
  .fast__copy > .fast__lead { max-width: min(46%, 34ch); }
  .fast__race { margin-top: -5.5rem; padding-top: 0; }
}
/* Smaller laptops: more room for the sentence, a little less photo */
@media (min-width: 1024px) and (max-width: 1365.98px) {
  .fast .shot { --ml: 48%; }
  .fast__copy > .fast__lead { max-width: min(54%, 34ch); }
}
/* ...except just above tablet size, where the photo needs the room to fit a whole kart: it
   takes more of the width and starts a little lower, so less is cropped off its sides */
@media (min-width: 1024px) and (max-width: 1199.98px) {
  .fast .shot { --ml: 44%; }
  .fast .shot__media { top: 12%; }
  .fast__copy > .fast__lead { max-width: min(50%, 34ch); }
}

/* The next round's timing-screen bar */
.race__note { margin: .45rem 0 0; max-width: 52ch; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.race .btn.is-muted { cursor: default; color: var(--text-2); }
.race .btn.is-muted:hover { transform: none; --bd: var(--line-strong); --bg: transparent; }
.race--off { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .race--off { grid-template-columns: minmax(0, 1fr) auto; } }

/* ==========================================================================
   Inner pages · page head: the page's photo in full colour behind the glass
   ========================================================================== */
.phead { position: relative; isolation: isolate; overflow: clip; padding-top: var(--nav-h); background: var(--ink); }
.phead .shot { aspect-ratio: 16 / 9; }
.phead__copy { position: relative; z-index: 2; margin-top: -.5rem; padding-bottom: clamp(2.25rem, 1.75rem + 2vw, 3.25rem); }
.phead__title { font-size: calc(var(--dz) * clamp(2.75rem, 1.5rem + 5vw, 5.75rem)); line-height: .88; text-wrap: balance; }
.phead__intro { max-width: 56ch; margin: 1.25rem 0 0; color: var(--text-2); font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem); line-height: 1.55; text-wrap: pretty; }
.phead__actions { margin-top: 1.75rem; }
@media (min-width: 600px) and (max-width: 1023.98px) { .phead .shot { aspect-ratio: 21 / 9; } }
@media (min-width: 1024px) {
  .phead { display: grid; min-height: clamp(460px, 66svh, 640px); padding-top: 0; }
  .phead .shot { --ml: 52%; }
  .phead__copy { align-self: center; margin: 0 auto; padding-block: calc(var(--nav-h) + 3rem) 3.5rem; }
  /* the words stay on the glass: up to the photo, less a little air */
  .phead__copy > * { max-width: calc(52vw - max((100vw - var(--max)) / 2, var(--gutter)) - 3rem); }
}

/* Jump links (seasons, years): slanted plates */
.jump { display: flex; flex-wrap: wrap; gap: .5rem .6rem; margin: 0; padding: 0; list-style: none; }
.jump a {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; min-height: 40px; padding: 0 1.05rem;
  font: 700 .72rem/1 var(--font-ui); font-stretch: var(--fst-ui); letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-2); text-decoration: none; transition: color .2s;
}
.jump a::before { content: ""; position: absolute; inset: 0; z-index: -1; border: 1px solid var(--line-strong); transform: skewX(calc(var(--slant) * -1)); transition: background .2s, border-color .2s; }
.jump a:hover { color: #fff; }
.jump a:hover::before { border-color: #fff; background: rgb(255 255 255 / .06); }
.jump a.is-key { color: var(--yellow-ink); }
.jump a.is-key::before { background: var(--yellow); border-color: var(--yellow); }

/* ==========================================================================
   4 · Inner pages
   ========================================================================== */
/* Buttons: .btn--white is the blue plate; the glass button is the outline plate */
.btn--white { --bg: var(--blue); }
.btn--white:hover { --bg: #fff; --fg: #0b1b52; }
.btn--glass { --bd: var(--line-strong); }
.btn--glass:hover { --bd: #fff; --bg: rgb(255 255 255 / .06); }
.section--light .btn--glass { --fg: var(--paper-ink); --bd: rgb(10 15 31 / .3); }
.section--light .btn--glass:hover { --bd: var(--paper-ink); --bg: rgb(10 15 31 / .05); }
.btn.is-muted { cursor: default; color: var(--text-2); }
.btn.is-muted:hover { transform: none; }
.btn .ext, .more .ext { font-size: 1.1em; }
.cta .btn--white { --bg: var(--yellow); --fg: var(--yellow-ink); }
.cta .btn--white:hover { --bg: #fff; --fg: #0b1b52; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem .9rem; }
/* A long label ("Add every round to your calendar") never runs off a phone: the button stops at
   the column's edge and its words wrap. Buttons don't squeeze up to share a line; they wrap below. */
.btn { flex-shrink: 0; max-width: 100%; }
@media (max-width: 599.98px) { .btn { white-space: normal; text-align: center; line-height: 1.3; padding-block: .7em; } }
.muted { color: var(--muted); }

.section--tight { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section--dark:nth-of-type(even) { --glow-at: 0% 30%; } /* the glow swaps sides, section by section */
.card { padding: clamp(1.25rem, 1rem + 1.2vw, 2.1rem); }
.split { display: grid; gap: 2.25rem; }
@media (min-width: 1000px) {
  .split { grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: 4.5rem; align-items: start; }
  .split > .sticky { position: sticky; top: calc(var(--nav-h) + 2.5rem); margin-bottom: 0; }
}

/* Chips: small slanted plates, outlined; filled yellow for the signal */
.chip {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; min-height: 24px; padding: 0 .8em;
  font: 700 .6rem/1 var(--font-ui); font-stretch: var(--fst-ui); letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-2); white-space: nowrap;
}
.chip::before { content: ""; position: absolute; inset: 0; z-index: -1; border: 1px solid var(--line-strong); transform: skewX(calc(var(--slant) * -1)); }
.chip:is(.chip--pop, .chip--white) { color: var(--yellow-ink); }
.chip:is(.chip--pop, .chip--white)::before { background: var(--yellow); border-color: var(--yellow); }
/* Round labels ("R1"): the championship line's plate */
.badge {
  display: inline-grid; place-items: center; min-width: 2.6rem; height: 1.7rem; padding: 0 .55rem;
  font: italic var(--fw-display) calc(var(--dz) * 1.05rem)/1 var(--font-display); font-stretch: var(--fst-display);
  background: var(--blue); color: #fff; transform: skewX(calc(var(--slant) * -1));
}
.note { margin: 0; padding: 1rem 1.2rem; border-left: 4px solid var(--accent); background: rgb(120 150 255 / .07); color: var(--text-2); font-size: .95rem; }
.section--light .note { background: #fff; }
.empty { margin: 0; padding: 2rem; border: 1px dashed var(--line-strong); text-align: center; color: var(--text-2); }

/* Long-form text (race reports, class write-ups) */
.prose { max-width: 68ch; color: var(--text-2); font-size: 1.06rem; line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose :is(p, ul, ol, blockquote, figure) { margin: 0 0 1.15em; }
.prose :is(h2, h3) { margin: 1.8em 0 .55em; font: italic var(--fw-display) calc(var(--dz) * 2rem)/1 var(--font-display); font-stretch: var(--fst-display); text-transform: uppercase; color: var(--strong); }
.prose h3 { font-size: calc(var(--dz) * 1.6rem); }
.prose strong { color: var(--strong); }
.prose a { color: var(--strong); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }
.prose :is(ul, ol) { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--accent); }
.prose blockquote { padding-left: 1.2rem; border-left: 4px solid var(--accent); color: var(--strong); font-style: italic; }

/* Tables: a timing screen (phones: each row becomes a card) */
.table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.table th, .table td { padding: .95rem 1.1rem; text-align: left; vertical-align: top; }
.table thead th { font: 700 .62rem/1.2 var(--font-ui); font-stretch: var(--fst-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--strong); }
.table tbody tr { border-bottom: 1px solid var(--line); }
.table tbody tr:last-child { border-bottom: 0; }
.table td:first-child { color: var(--strong); font-weight: 600; }
.table td a { color: var(--strong); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.table .num { font: italic var(--fw-display) calc(var(--dz) * 1.4rem)/1.1 var(--font-display); font-stretch: var(--fst-display); font-variant-numeric: tabular-nums; color: var(--strong); white-space: nowrap; }
.table td.muted { color: var(--muted); }
@media (max-width: 759.98px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; }
  .table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1rem; padding: 1rem 0; }
  .table td { padding: 0; }
  .table td:first-child { grid-column: 1 / -1; font-weight: 700; }
  .table td[data-label]:not(:first-child)::before { content: attr(data-label) " "; font: 700 .58rem/1 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
}

/* Documents and links: solid rows, a plate for the file type, the yellow edge on hover */
.docs, .links { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
:is(.doc, .links li) a {
  position: relative; display: grid; align-items: center; gap: .4rem 1rem;
  padding: .85rem 1.15rem; background: var(--card); text-decoration: none;
  transition: background .25s, transform .3s var(--out);
}
.doc a { grid-template-columns: auto minmax(0, 1fr) auto; padding-left: .9rem; }
.links a { grid-template-columns: minmax(0, 1fr) auto; }
:is(.doc, .links li) a::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); transform: scaleY(0); transform-origin: bottom; transition: transform .3s var(--ease); }
:is(.doc, .links li) a:hover { background: var(--card-hover); transform: translateX(4px); }
:is(.doc, .links li) a:hover::after { transform: scaleY(1); }
.section--light :is(.doc, .links li) a { box-shadow: 0 1px 0 rgb(10 15 31 / .06), 0 12px 26px -22px rgb(10 15 31 / .5); }
.doc__type { display: grid; place-items: center; width: 3.1rem; height: 2.2rem; font: italic var(--fw-display) calc(var(--dz) * 1rem)/1 var(--font-display); font-stretch: var(--fst-display); letter-spacing: .02em; text-transform: uppercase; background: var(--blue); color: #fff; transform: skewX(calc(var(--slant) * -1)); }
.doc__text { display: grid; gap: .15rem; min-width: 0; }
.doc__label, .links b { display: block; font-weight: 700; color: var(--strong); line-height: 1.3; }
.doc__detail, .links a > span > span { color: var(--muted); font-size: .9rem; line-height: 1.35; }
.doc__meta { display: inline-flex; align-items: center; gap: .55rem; font: 700 .64rem/1 var(--font-ui); font-stretch: var(--fst-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.doc__meta .arrow { width: 1.2em; color: var(--accent); }
.links .ext { color: var(--accent); }
.doc--key a { background: linear-gradient(90deg, rgb(51 102 255 / .4), var(--card) 70%); }
.doc--key .doc__type { background: var(--yellow); color: var(--yellow-ink); }
@media (max-width: 559.98px) { .doc__meta span:not(.arrow) { display: none; } }

/* Questions: labels with a plus on a blue plate */
.faq { border-top: 2px solid var(--strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.3rem 0; cursor: pointer; list-style: none;
  font: italic var(--fw-display) calc(var(--dz) * clamp(1.35rem, 1.15rem + .6vw, 1.7rem))/1.05 var(--font-display); font-stretch: var(--fst-display);
  text-transform: uppercase; color: var(--strong); transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 2.3rem; height: 1.9rem; transform: skewX(calc(var(--slant) * -1));
  background: linear-gradient(#fff, #fff) center / 12px 2px no-repeat, linear-gradient(#fff, #fff) center / 2px 12px no-repeat, var(--blue);
  transition: background-size .3s var(--ease), background-color .25s;
}
.faq details[open] summary::after { background-size: 12px 2px, 2px 0, auto; }
.faq summary:hover { color: var(--accent); }
.faq__a { max-width: 66ch; padding: 0 0 1.5rem; color: var(--text-2); }
.faq__a p { margin: 0 0 .8em; }
.faq__a a { color: var(--strong); font-weight: 600; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* The call to action at the foot of each page, a little shorter than the homepage's */
.cta--band { padding-block: clamp(3.75rem, 2.75rem + 4vw, 6.5rem); }
.cta--band .cta__title { max-width: 18ch; font-size: calc(var(--dz) * clamp(2.4rem, 1.4rem + 3.6vw, 4.4rem)); }

/* ---------- Get started ---------- */
.path { position: relative; display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.path::before { /* the championship line joining the steps */
  content: ""; position: absolute; left: calc(1.4rem + 1.6rem - 1px); top: 2rem; bottom: 2rem; width: 2px; background: var(--line-strong);
}
.step { position: relative; display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 1.1rem; padding: 1.4rem 1.4rem 1.5rem; }
.step__num { display: grid; place-items: center; width: 3.2rem; height: 2.6rem; font: italic var(--fw-display) calc(var(--dz) * 1.75rem)/1 var(--font-display); font-stretch: var(--fst-display); background: var(--blue); color: #fff; transform: skewX(calc(var(--slant) * -1)); }
.step__title { margin: .15rem 0 .5rem; font: italic var(--fw-display) calc(var(--dz) * clamp(1.5rem, 1.3rem + .6vw, 1.9rem))/1 var(--font-display); font-stretch: var(--fst-display); text-transform: uppercase; color: var(--strong); }
.step__text { margin: 0 0 1rem; color: var(--text-2); }
.step__text:last-child { margin-bottom: 0; }
.step__text a { color: var(--strong); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.step .more .muted { letter-spacing: .06em; }

.kit { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.kit li { display: grid; grid-template-columns: auto 1fr; gap: .95rem; align-items: start; padding: 1rem 1.15rem; background: var(--card); }
.kit li::before {
  content: ""; width: 1.55rem; height: 1.2rem; margin-top: .15rem; transform: skewX(calc(var(--slant) * -1));
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.5 3 3 6-7' fill='none' stroke='%230a0a0a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.kit b { display: block; color: var(--strong); }
.kit span { color: var(--text-2); font-size: .95rem; }
@media (min-width: 760px) { .kit { grid-template-columns: 1fr 1fr; } }

/* ---------- Classes page: the five tachometers, then each class ---------- */
.dials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin: 0; padding: 0; list-style: none; }
.dial { --bar: linear-gradient(90deg, #0b1b52, var(--blue)); }
.dial--premier { --bar: linear-gradient(90deg, var(--blue), #7f5cff 70%, #ff3d6e); }
.dial a {
  position: relative; display: grid; align-content: start; gap: .55rem; height: 100%;
  padding: 1.05rem 1.05rem 1.2rem; background: var(--card); text-decoration: none;
  transition: transform .3s var(--ease), background .3s;
}
.dial a::before { /* yellow edge on hover */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.dial a:hover { transform: translateY(-4px); background: var(--card-hover); }
.dial a:hover::before, .dial a:focus-visible::before { transform: scaleX(1); }
.dial__svg { display: none; }
.dial__level { order: 1; font: 700 .6rem/1.25 var(--font-ui); font-stretch: var(--fst-ui); letter-spacing: .15em; text-transform: uppercase; color: var(--ice); }
.dial__name { order: 2; min-height: 2em; font: italic var(--fw-display) calc(var(--dz) * clamp(1.2rem, 1rem + .5vw, 1.45rem))/1 var(--font-display); font-stretch: var(--fst-display); text-transform: uppercase; color: var(--strong); }
.dial__num { order: 3; display: flex; align-items: baseline; gap: .35rem; margin: 0; }
.dial__num b { font: italic var(--fw-display) calc(var(--dz) * 2.4rem)/.9 var(--font-display); font-stretch: var(--fst-display); font-variant-numeric: tabular-nums; color: var(--strong); }
.dial__num small { font: italic var(--fw-display) calc(var(--dz) * .95rem)/1 var(--font-display); text-transform: uppercase; color: var(--muted); }
.dial--premier .dial__num b { color: var(--yellow); }
.dial a::after, .klass__dial::after { /* the speed bar, from 100 km/h to 260 */
  content: ""; order: 4; height: 8px; transform: skewX(-24deg);
  background: var(--bar) 0 0 / calc(var(--pct) * 1%) 100% no-repeat, rgb(184 204 255 / .14);
  transition: background-size 1.2s var(--ease) .15s;
}
@media (max-width: 719.98px) { .dial--premier { grid-column: 1 / -1; } }
@media (min-width: 720px) and (max-width: 1023.98px) {
  .dials { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dial--premier { grid-column: span 2; }
}
@media (min-width: 1024px) { .dials { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .85rem; } .dial a { padding: 1.15rem 1.15rem 1.3rem; } }

.klass { scroll-margin-top: calc(var(--nav-h) + 1rem); display: grid; gap: 2rem; padding-block: clamp(3rem, 2rem + 3vw, 5rem); border-top: 1px solid var(--line); }
.klass__name { margin: 0; font: italic var(--fw-display) calc(var(--dz) * clamp(2.8rem, 1.7rem + 4vw, 5rem))/.88 var(--font-display); font-stretch: var(--fst-display); text-transform: uppercase; color: #fff; }
.klass__tag {
  display: inline-flex; margin: 1rem 0 0; padding: .45em .85em .4em;
  font: 700 .66rem/1 var(--font-ui); font-stretch: var(--fst-ui); letter-spacing: .14em; text-transform: uppercase;
  background: var(--yellow); color: var(--yellow-ink); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.klass__pitch { margin: 1.3rem 0 0; max-width: 46ch; color: #fff; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.45; }
.klass__body { margin-top: 1.4rem; }
.klass__spec { display: grid; gap: 1.2rem; padding: 1.5rem; }
.klass__dial { display: grid; gap: .8rem; }
.klass__dial .dial__num b { font-size: calc(var(--dz) * 4rem); color: var(--yellow); }
.klass__dial::after { height: 10px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); }
.specs > div { display: grid; gap: .3rem; align-content: start; padding: .85rem 1rem; background: var(--ink); }
.specs .wide { grid-column: 1 / -1; }
.specs dt { font: 700 .58rem/1.2 var(--font-ui); font-stretch: var(--fst-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 0; color: #fff; font-weight: 600; line-height: 1.35; }
.specs dd.num { font: italic var(--fw-display) calc(var(--dz) * 1.45rem)/1.05 var(--font-display); font-stretch: var(--fst-display); }
@media (min-width: 960px) {
  .klass { grid-template-columns: minmax(0, 1.3fr) minmax(0, .85fr); gap: 4.5rem; align-items: start; }
  .klass__spec { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
}

/* ---------- Calendar: rounds as timing-screen rows; venues as photo cards ---------- */
.events { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.event {
  scroll-margin-top: calc(var(--nav-h) + 1rem); position: relative;
  display: grid; grid-template-columns: 4.4rem minmax(0, 1fr); gap: 1rem 1.2rem; align-items: start;
  padding: 1.1rem 1.1rem 1.2rem; background: var(--card);
}
.event__date { display: grid; justify-items: center; gap: .3rem; padding: .65rem 0 .55rem; background: var(--ink); text-align: center; }
.event__date small { font: 700 .56rem/1 var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.event__date b { font: italic var(--fw-display) calc(var(--dz) * 2.35rem)/.85 var(--font-display); font-stretch: var(--fst-display); font-variant-numeric: tabular-nums; color: #fff; }
.event__date span { font: 700 .64rem/1 var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--ice); }
.event__main { display: grid; gap: .45rem; min-width: 0; }
.event__tags { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .6rem; }
.event__title { margin: .1rem 0 0; font: italic var(--fw-display) calc(var(--dz) * clamp(1.45rem, 1.2rem + .9vw, 1.95rem))/1 var(--font-display); font-stretch: var(--fst-display); text-transform: uppercase; color: var(--strong); }
.event__meta { margin: 0; color: var(--text-2); font-size: .95rem; }
.event__meta span { color: var(--muted); }
.event__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem .7rem; }
.event--next { background: linear-gradient(90deg, rgb(51 102 255 / .42), var(--card) 75%); }
.event--next::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--yellow); }
.event--next .event__date b { color: var(--yellow); }
.event--next .badge { background: var(--yellow); color: var(--yellow-ink); }
.event--done { opacity: .7; }
@media (min-width: 860px) {
  .event { grid-template-columns: 5.2rem minmax(0, 1fr) auto; align-items: center; padding: 1.1rem 1.4rem; gap: 1.6rem; }
  .event__actions { grid-column: auto; justify-content: flex-end; max-width: 25rem; }
}
.cal-sub { margin-top: 1.5rem; color: var(--muted); font-size: .92rem; }

.venues { display: grid; gap: 1.25rem; }
.venue { display: grid; align-content: start; overflow: hidden; }
.venue__photo { aspect-ratio: 16 / 9; clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%); }
.venue__photo img { transition: transform .8s var(--ease); }
.venue:hover .venue__photo img { transform: scale(1.04); }
.venue__body { display: grid; gap: .85rem; align-content: start; padding: .4rem clamp(1.3rem, 1rem + 1vw, 1.9rem) clamp(1.4rem, 1rem + 1vw, 1.9rem); }
.venue__body .kicker { margin: 0; }
.venue__name { margin: 0; font: italic var(--fw-display) calc(var(--dz) * clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem))/.95 var(--font-display); font-stretch: var(--fst-display); text-transform: uppercase; color: var(--strong); }
.venue__about { margin: 0; color: var(--text-2); }
.venue__circuits { display: flex; flex-wrap: wrap; gap: .45rem .6rem; margin: 0; padding: 0 0 0 .2rem; list-style: none; }
@media (min-width: 900px) { .venues { grid-template-columns: 1fr 1fr; } }

/* ---------- Results & records ---------- */
.seasons { display: grid; gap: clamp(2.75rem, 2rem + 2.5vw, 4.5rem); }
.rseason { scroll-margin-top: calc(var(--nav-h) + 1rem); display: grid; gap: 1.2rem; }
.rseason__year { margin: 0; justify-self: start; font: italic var(--fw-display) calc(var(--dz) * clamp(3.4rem, 2.5rem + 3.4vw, 6rem))/.82 var(--font-display); font-stretch: var(--fst-display); color: #fff; }
.rseason__year small {
  display: table; margin-top: .7rem; padding: .45em .8em .4em;
  font: 700 .62rem/1 var(--font-ui); font-stretch: var(--fst-ui); font-style: normal; letter-spacing: .16em; text-transform: uppercase;
  background: var(--yellow); color: var(--yellow-ink); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.rseason__body { display: grid; gap: 1rem; }
.champs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: .5rem; margin: 0; padding: 0; list-style: none; }
.champs li { position: relative; display: grid; gap: .3rem; padding: 1rem 1.1rem; background: var(--card); }
.champs small { font: 700 .6rem/1.2 var(--font-ui); letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.champs b { font: italic var(--fw-display) calc(var(--dz) * 1.35rem)/1.05 var(--font-display); font-stretch: var(--fst-display); text-transform: uppercase; color: #fff; }
.champs .is-top { background: linear-gradient(90deg, rgb(255 210 10 / .16), var(--card) 80%); }
.champs .is-top::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--yellow); }
.champs .is-top small { color: var(--yellow); }
@media (min-width: 900px) {
  .rseason { grid-template-columns: 12rem minmax(0, 1fr); gap: 3rem; }
  .rseason__year { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
}
.records { display: grid; gap: 1.25rem; }
.circuit { scroll-margin-top: calc(var(--nav-h) + 1rem); padding: clamp(1.2rem, 1rem + 1vw, 1.8rem) clamp(1.2rem, 1rem + 1vw, 1.9rem) .6rem; }
.circuit__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1.5rem; padding-bottom: .9rem; }
.circuit__venue { margin: 0 0 .45rem; font: 700 .64rem/1.2 var(--font-ui); font-stretch: var(--fst-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--ice); }
.circuit__name { margin: 0; font: italic var(--fw-display) calc(var(--dz) * clamp(1.6rem, 1.3rem + 1vw, 2.2rem))/.95 var(--font-display); font-stretch: var(--fst-display); text-transform: uppercase; color: var(--strong); }
@media (min-width: 1100px) { .records { grid-template-columns: 1fr 1fr; } .circuit .table { font-size: .92rem; } .circuit .table :is(th, td) { padding: .85rem .7rem; } }

/* ---------- News: the latest as a big poster, then the reports by year ---------- */
.story {
  position: relative; isolation: isolate; display: grid; overflow: hidden; text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%); /* the race-plate corner */
}
.story.glass { background: var(--card); border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.story__photo { aspect-ratio: 16 / 9; overflow: hidden; }
.story__photo picture, .story__photo img { width: 100%; height: 100%; }
.story__photo img { object-fit: cover; transition: transform 1s var(--ease); }
.story:hover .story__photo img { transform: scale(1.05); }
.story__body { display: grid; gap: .85rem; align-content: center; padding: clamp(1.4rem, 1rem + 2vw, 2.75rem); }
.story__meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; font: 700 .66rem/1 var(--font-ui); font-stretch: var(--fst-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.story__meta span:first-child { padding: .45em .8em .4em; background: var(--yellow); color: var(--yellow-ink); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.story__title { margin: 0; font: italic var(--fw-display) calc(var(--dz) * clamp(2.1rem, 1.3rem + 2.8vw, 3.8rem))/.92 var(--font-display); font-stretch: var(--fst-display); text-transform: uppercase; color: #fff; transition: color .3s; }
.story:hover .story__title { color: var(--yellow); }
.story__text { margin: 0; max-width: 52ch; color: var(--text-2); }
.story .more { margin-top: .2rem; }
@media (min-width: 960px) {
  .story { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .story__photo { aspect-ratio: auto; min-height: 420px; clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%); }
}
.year { scroll-margin-top: calc(var(--nav-h) + 1rem); }
.year + .year { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.year__title { display: flex; align-items: center; gap: 1.1rem; margin: 0 0 .5rem; font: italic var(--fw-display) calc(var(--dz) * clamp(2.8rem, 2.2rem + 2.4vw, 4.4rem))/.9 var(--font-display); font-stretch: var(--fst-display); color: #fff; }
.year__title::after { content: ""; flex: 1; height: 2px; background: var(--line-strong); }

.headlines { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.headline { position: relative; border-bottom: 1px solid var(--line); }
.headline::after { /* yellow edge along the row on hover */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none;
  background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.headline:hover::after, .headline:focus-within::after { transform: scaleX(1); }
.headline__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "thumb" "date" "main"; gap: .85rem; padding: 1.5rem 0; }
.headline__date { grid-area: date; margin: 0; }
.headline__date time { display: flex; align-items: baseline; gap: .6rem; }
.headline__date b { font: italic var(--fw-display) calc(var(--dz) * 2.3rem)/.85 var(--font-display); font-stretch: var(--fst-display); font-variant-numeric: tabular-nums; color: var(--yellow); }
.headline__date small { font: 700 .62rem/1.2 var(--font-ui); font-stretch: var(--fst-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.headline__main { grid-area: main; display: grid; gap: .5rem; align-content: start; }
.headline__cat { margin: 0; font: 700 .64rem/1 var(--font-ui); font-stretch: var(--fst-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--ice); }
.headline__title { margin: 0; font: italic var(--fw-display) calc(var(--dz) * clamp(1.6rem, 1.25rem + 1.2vw, 2.3rem))/.95 var(--font-display); font-stretch: var(--fst-display); text-transform: uppercase; transition: color .3s; }
.headline__title a { text-decoration: none; }
.headline__title a::after { content: ""; position: absolute; inset: 0; }
.headline__title a:focus-visible { outline: none; }
.headline:has(a:focus-visible) .headline__inner { outline: 2px solid var(--focus); outline-offset: 4px; }
.headline__excerpt { margin: 0; max-width: 62ch; color: var(--text-2); font-size: .98rem; }
.headline__thumb { grid-area: thumb; overflow: hidden; aspect-ratio: 16 / 9; clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%); }
.headline__thumb picture, .headline__thumb img { width: 100%; height: 100%; }
.headline__thumb img { object-fit: cover; transition: transform .9s var(--ease); }
.headline__go { display: none; }
.headline:hover .headline__title { color: var(--yellow); }
.headline:hover .headline__thumb img { transform: scale(1.06); }
@media (min-width: 900px) {
  .headline__inner { grid-template-columns: 7rem minmax(0, 1fr) 15rem 3.2rem; grid-template-areas: "date main thumb go"; align-items: center; gap: 2rem; padding: 1.6rem 0; }
  .headline__date time { display: grid; justify-items: start; gap: .35rem; }
  .headline__date b { font-size: calc(var(--dz) * 3.6rem); }
  .headline__thumb { aspect-ratio: 3 / 2; clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%); }
  .headline__go { position: relative; isolation: isolate; display: grid; place-items: center; width: 3.2rem; height: 2.6rem; color: #fff; transition: color .25s, transform .3s var(--ease); }
  .headline__go::before { content: ""; position: absolute; inset: 0; z-index: -1; border: 1px solid var(--line-strong); transform: skewX(calc(var(--slant) * -1)); transition: background .25s, border-color .25s; }
  .headline__go .arrow { width: 1.1em; }
  .headline:hover .headline__go { color: var(--yellow-ink); transform: translateX(4px); }
  .headline:hover .headline__go::before { background: var(--yellow); border-color: var(--yellow); }
}

/* A story */
.post-head { padding: calc(var(--nav-h) + clamp(2.5rem, 2rem + 3vw, 4.5rem)) 0 clamp(1.8rem, 1.4rem + 1.5vw, 2.8rem); }
.post-head .kicker { flex-wrap: wrap; }
.post-head__title { max-width: 20ch; font-size: calc(var(--dz) * clamp(2.6rem, 1.4rem + 4.4vw, 5.4rem)); line-height: .9; text-wrap: balance; }
.post-head__lede { margin: 1.4rem 0 0; max-width: 58ch; color: #fff; font-size: clamp(1.12rem, 1.02rem + .5vw, 1.4rem); line-height: 1.5; text-wrap: pretty; }
.post-head__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1.4rem 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .92rem; }
.post-head__meta b { color: var(--text-2); font-weight: 600; }
.post-photo { position: relative; margin: 0 auto; width: min(100% - 2 * var(--gutter), var(--max)); }
.post-photo picture, .post-photo img { width: 100%; }
.post-photo img { max-height: 76vh; object-fit: cover; clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); }
.post-photo__edge { position: absolute; inset: 0; pointer-events: none; filter: drop-shadow(0 0 6px rgb(61 109 255 / .95)); }
.post-photo__edge i { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(61 109 255 / .2), #3d6dff 25%, #e6edff 60%, #3d6dff 85%, rgb(61 109 255 / 0)); clip-path: polygon(0 calc(100% - 1px), 100% calc(88% - 1px), 100% calc(88% + 1px), 0 calc(100% + 1px)); }
.post-body { padding-block: clamp(2rem, 1.6rem + 2vw, 3.4rem) clamp(3rem, 2rem + 3vw, 5rem); }
.post-body .prose { margin-inline: auto; }
.sponsor { display: grid; gap: 1rem; align-items: center; max-width: 68ch; margin: 2.5rem auto 0; padding: 1.2rem 1.3rem; }
.sponsor p { margin: 0; color: var(--text-2); }
.sponsor b { color: #fff; }
.sponsor img { max-height: 120px; width: auto; }
@media (min-width: 640px) { .sponsor { grid-template-columns: auto 1fr; } }
.post-nav { display: grid; gap: .55rem; max-width: 68ch; margin: 3rem auto 0; }
.post-nav a { position: relative; display: grid; gap: .4rem; padding: 1.1rem 1.3rem; background: var(--card); text-decoration: none; transition: background .25s; }
.post-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.post-nav a:hover { background: var(--card-hover); }
.post-nav a:hover::after { transform: scaleX(1); }
.post-nav small { font: 700 .6rem/1 var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--yellow); }
.post-nav span { font: italic var(--fw-display) calc(var(--dz) * 1.3rem)/1.05 var(--font-display); font-stretch: var(--fst-display); text-transform: uppercase; color: #fff; }
.post-all { max-width: 68ch; margin: 1.75rem auto 0; }
@media (min-width: 720px) { .post-nav { grid-template-columns: 1fr 1fr; } .post-nav .is-next { text-align: right; } .post-nav .is-next::after { transform-origin: right; } }

/* ---------- Gallery: albums as poster cards, then the photos ---------- */
.albums { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.album a {
  position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 380px; height: 100%; overflow: hidden;
  background: var(--card); text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%);
}
.album a::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(3 8 23 / .05) 25%, rgb(3 8 23 / .7) 60%, rgb(3 8 23 / .96)); }
.album__cover { position: absolute; inset: 0; z-index: -2; }
.album__cover picture, .album__cover img { width: 100%; height: 100%; }
.album__cover img { object-fit: cover; transition: transform 1s var(--ease); }
.album a:hover .album__cover img { transform: scale(1.06); }
.album__count { position: absolute; top: 1rem; left: 1.2rem; z-index: 1; color: #fff; }
.album__count.chip::before { background: rgb(3 8 23 / .72); border-color: transparent; }
.album__body { position: relative; display: grid; gap: .5rem; padding: 1.4rem 1.35rem 1.5rem; }
.album__meta { margin: 0; font: 700 .64rem/1.3 var(--font-ui); font-stretch: var(--fst-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); }
.album__title { margin: 0; font: italic var(--fw-display) calc(var(--dz) * clamp(1.65rem, 1.35rem + .8vw, 2.1rem))/.95 var(--font-display); font-stretch: var(--fst-display); text-transform: uppercase; color: #fff; transition: color .3s; }
.album a:hover .album__title { color: var(--yellow); }
.album__blurb { margin: 0; color: var(--text-2); font-size: .95rem; }
@media (min-width: 700px) { .albums { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .albums { grid-template-columns: repeat(3, 1fr); } .album a { min-height: 440px; } }

.photos { columns: 2 150px; column-gap: .5rem; }
.photo { display: block; width: 100%; margin: 0 0 .5rem; padding: 0; border: 0; overflow: hidden; background: var(--ink-2); cursor: zoom-in; break-inside: avoid; position: relative; }
.photo img { width: 100%; transition: transform .8s var(--ease), filter .4s; }
.photo:hover img { transform: scale(1.04); filter: brightness(1.08); }
.photo:focus-visible { outline-offset: 2px; }
@media (min-width: 760px) { .photos { columns: 3; column-gap: .7rem; } .photo { margin-bottom: .7rem; } }
@media (min-width: 1200px) { .photos { columns: 4; } }

.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(3 8 23 / .97); color: #fff; overflow: hidden; }
.lightbox::backdrop { background: rgb(3 8 23 / .9); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: v3-fade .25s var(--out); }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem var(--gutter); }
.lightbox__count { font: 700 .7rem/1 var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--text-2); }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 var(--gutter); touch-action: pan-y; }
.lightbox__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 30px 80px -30px #000; user-select: none; -webkit-user-drag: none; }
.lightbox__img.is-loading { opacity: .35; }
.lightbox__cap { min-height: 1.5rem; margin: 0; padding: .9rem var(--gutter) 1.2rem; text-align: center; color: var(--text-2); font-size: .92rem; }
.lightbox__btn { position: relative; isolation: isolate; display: grid; place-items: center; width: 52px; height: 44px; border: 0; background: none; color: #fff; cursor: pointer; }
.lightbox__btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border: 1px solid var(--line-strong); background: rgb(3 8 23 / .6); transform: skewX(calc(var(--slant) * -1)); transition: background .2s, border-color .2s; }
.lightbox__btn:hover::before { background: var(--blue); border-color: var(--blue); }
.lightbox__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: calc(var(--gutter) * .5); }
.lightbox__nav--next { right: calc(var(--gutter) * .5); }
@media (hover: none) and (max-width: 700px) { .lightbox__nav { display: none; } }

/* ---------- Membership ---------- */
.fees { display: grid; gap: .85rem; margin: 0; padding: 0; list-style: none; }
.fee { position: relative; display: grid; gap: .5rem; align-content: start; padding: 1.6rem 1.5rem 1.75rem; }
.fee__name { margin: 0; font: 700 .7rem/1.2 var(--font-ui); font-stretch: var(--fst-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--ice); }
.fee__price { margin: .25rem 0 .1rem; display: flex; align-items: baseline; gap: .4rem; }
.fee__price b { font: italic var(--fw-display) calc(var(--dz) * clamp(3.6rem, 2.8rem + 2.4vw, 5rem))/.82 var(--font-display); font-stretch: var(--fst-display); color: #fff; }
.fee__price span { color: var(--muted); font-size: .92rem; }
.fee__for { margin: 0; color: var(--text-2); }
.fee--featured.glass { background: linear-gradient(160deg, #2350e6, #0b1b52 75%); border-color: transparent; }
.fee--featured::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--yellow); }
.fee--featured .fee__name { color: #fff; }
.fee--featured .fee__price b { color: var(--yellow); }
.fee--featured .fee__for { color: #dbe3ff; }
.fee--featured .chip { justify-self: start; margin: 0 0 .4rem .2rem; }
@media (min-width: 860px) { .fees { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Classifieds ---------- */
.listings { display: grid; gap: 1.5rem; }
.listing { display: grid; gap: 1.6rem; padding: clamp(1rem, .8rem + 1.2vw, 1.8rem); }
.listing__photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; align-content: start; }
.listing__photos .photo { margin: 0; aspect-ratio: 1; }
.listing__photos .photo img { width: 100%; height: 100%; object-fit: cover; }
.listing__photos .photo:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.listing__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(3 8 23 / .64); font: 700 .78rem/1 var(--font-ui); letter-spacing: .1em; color: #fff; }
.listing__body { display: grid; gap: 1rem; align-content: start; }
.listing__title { margin: 0; font: italic var(--fw-display) calc(var(--dz) * clamp(1.9rem, 1.4rem + 1.8vw, 2.9rem))/.92 var(--font-display); font-stretch: var(--fst-display); text-transform: uppercase; color: #fff; }
.listing__price { margin: 0; font: italic var(--fw-display) calc(var(--dz) * 2.1rem)/1 var(--font-display); font-stretch: var(--fst-display); color: var(--yellow); }
.listing__summary { margin: 0; color: var(--text-2); }
.listing__items { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.listing__items li { display: grid; grid-template-columns: auto 1fr; gap: .75rem; color: #fff; }
.listing__items li::before { content: ""; width: .8em; height: .5em; margin-top: .55em; background: var(--yellow); transform: skewX(-24deg); }
.listing__seller { display: grid; gap: .9rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.listing__seller p { margin: 0; color: var(--text-2); }
.listing__seller b { color: #fff; }
.listing__dates { margin: 0; color: var(--muted); font-size: .85rem; }
@media (min-width: 960px) { .listing { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; } }

/* ---------- Contact ---------- */
.reach { display: grid; gap: 1.8rem; align-content: start; }
.reach__big { display: grid; gap: .4rem; margin: 0; }
.reach__big dt { font: 700 .64rem/1.2 var(--font-ui); font-stretch: var(--fst-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--ice); }
.reach__big dd { margin: 0 0 1rem; }
.reach__big a {
  font: italic var(--fw-display) calc(var(--dz) * clamp(1.75rem, 1.2rem + 2vw, 2.8rem))/1 var(--font-display); font-stretch: var(--fst-display);
  color: #fff; text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(var(--yellow), var(--yellow)) left bottom / 0 3px no-repeat; transition: background-size .4s var(--ease);
}
.reach__big a:hover { background-size: 100% 3px; }
.reach__big small { display: block; margin-top: .4rem; color: var(--muted); font-size: .9rem; }
.committee { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); }
.committee div { display: grid; gap: .25rem; padding: .85rem 1rem; background: var(--ink); }
.committee dt { font: 700 .58rem/1.2 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.committee dd { margin: 0; color: #fff; font-weight: 600; }
.committee .is-lead { grid-column: 1 / -1; background: linear-gradient(90deg, rgb(51 102 255 / .4), var(--ink)); }
.committee div:last-child:nth-child(even) { grid-column: 1 / -1; }

.form { display: grid; gap: 1.1rem; padding: clamp(1.4rem, 1rem + 2vw, 2.4rem); }
.form__title { margin: 0 0 .3rem; font: italic var(--fw-display) calc(var(--dz) * clamp(1.9rem, 1.5rem + 1.4vw, 2.6rem))/.95 var(--font-display); font-stretch: var(--fst-display); text-transform: uppercase; }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .45rem; }
.field label { font: 700 .64rem/1.2 var(--font-ui); font-stretch: var(--fst-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--ice); }
.field label small { margin-left: .3rem; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: none; color: var(--muted); }
.field :is(input, select, textarea) {
  width: 100%; min-height: 52px; padding: .85rem 1rem; border-radius: 0;
  border: 1px solid var(--line-strong); background: rgb(2 4 15 / .6); color: #fff;
  font: 400 1rem/1.4 var(--font-body); transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; padding-right: 2.6rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 8 5 5 5-5' fill='none' stroke='%23ffd20a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px; }
.field select option { background: var(--ink-2); color: #fff; }
.field :is(input, select, textarea):hover { border-color: rgb(184 204 255 / .55); }
.field :is(input, select, textarea):focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgb(255 210 10 / .22); background: rgb(2 4 15 / .8); }
.field ::placeholder { color: rgb(132 148 196 / .8); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .3rem; }
.form__foot p { margin: 0; max-width: 36ch; color: var(--muted); font-size: .86rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer extras */
.foot__legal a { color: var(--muted); }
.foot__legal a:hover { color: #fff; }

/* ==========================================================================
   5 · Motion. Gated on html.motion (set before paint; off for reduced motion).
   ========================================================================== */
html:not(.motion) :is(.streak, .opener__cue i::after) { animation: none; }

@keyframes v5-badge { from { opacity: 0; transform: translateX(-70px) skewX(-14deg) scale(.8); filter: blur(6px); } }
@keyframes v5-shine { from { background-position: -150% 0; } to { background-position: 150% 0; } }
@keyframes v5-row   { from { opacity: 0; transform: translateX(-36px); } }

/* The opening: a white flash runs along the beam, the photo
   resolves out of blur, the wordmark lights up letter by letter; then the header drops in */
.motion :is(.opener__photo, .opener__badge, .wordmark__ch, .wordmark__beam, .opener__sub, .opener__cue) { opacity: 0; }
.opener::after { content: ""; position: absolute; left: 50%; top: 52%; width: 50vw; height: 2px; margin-left: -25vw; opacity: 0; pointer-events: none; background: linear-gradient(90deg, transparent, #fff, transparent); box-shadow: 0 0 30px 6px rgb(61 109 255 / .9); }
.motion.intro .opener::after { animation: v3-flash 1s cubic-bezier(.6, 0, .2, 1) .05s both; }
.motion.intro .opener__photo { opacity: 1; animation: v3-photo 1.8s var(--out) .35s both; }
.motion.intro .opener__badge { opacity: 1; animation: v5-badge .9s var(--out) .5s both; }
.motion.intro .opener__badge::after { animation: v5-shine 1.1s ease-in-out 1.3s both; }
.motion.intro .wordmark__ch { opacity: 1; animation: v3-letter .8s var(--out) both, v3-chrome 1.4s ease-in-out both; animation-delay: calc(.6s + var(--c) * .055s), calc(1.35s + var(--c) * .07s); }
.motion.intro .wordmark__beam { opacity: 1; animation: v3-beam 1.2s var(--out) .95s both; }
.motion.intro .opener__sub { opacity: 1; animation: v3-track 1.3s var(--out) 1.05s both; }
.motion.intro .opener__cue { opacity: 1; animation: v3-up .9s var(--out) 1.7s both; }
.motion.intro .is-home .nav { animation: v3-drop .7s var(--ease) 1.2s backwards; }

/* The banner plays its intro once the wordmark has finished (or as soon as it
   scrolls into view later): main.js adds .is-go */
.motion .v5 .fast:not(.is-go) :is(.shot__media, .shot__glass, .shot__edge, .fast__copy .kicker, .fast__line, .fast__lead, .fast__copy .btn-row, .race, .race__unit) { opacity: 0; animation: none; }
.motion .v5 .fast:not(.is-go) + .ticker-wrap .ticker { opacity: 0; animation: none; }
/* The photo wipes in from the right (down from the top on phones), zooming
   out as it goes; the glass over its left side settles in as the wipe reaches it */
@keyframes v5-wipe-m { from { clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); } }
@keyframes v5-wipe-d { from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); } to { clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); } } /* ends on the slanted cut (see "photo stops at the slant") */
@keyframes v5-pan    { from { transform: scale(1.22) translateX(5%); } }
@keyframes v5-fade   { from { opacity: 0; } }
.motion .v5 .fast.is-go .shot__media { animation: v5-wipe-m 1.1s cubic-bezier(.7, 0, .2, 1) backwards; }
.motion .v5 .fast.is-go .shot__media img { animation: v5-pan 1.9s var(--ease) backwards; }
.motion .v5 .fast.is-go .shot__glass { animation: v5-fade .5s var(--ease) .6s backwards; }
@media (min-width: 1024px) { .motion .v5 .fast.is-go .shot__media { animation-name: v5-wipe-d; } }
.motion .v5 .fast.is-go .shot__edge { animation: v3-edge 1s var(--out) .8s backwards; }
.motion .v5 .fast.is-go .fast__copy .kicker { animation: v3-slide .7s var(--ease) .25s backwards; }
.motion .v5 .fast.is-go .fast__line { animation: v3-launch 1s var(--ease) backwards; animation-delay: calc(.35s + var(--n, 0) * .11s); }
.motion .v5 .fast.is-go .fast__lead { animation: v3-up .8s var(--ease) .75s backwards; }
.motion .v5 .fast.is-go .fast__copy .btn-row { animation: v3-up .8s var(--ease) .87s backwards; }
.motion .v5 .fast.is-go .race { opacity: 1; animation: v3-panel 1s var(--out) 1s backwards; }
.motion .v5 .fast.is-go .race__flag { animation: v3-flag 1.1s var(--ease) 1.1s backwards; }
.motion .v5 .fast.is-go .race__unit { opacity: 1; animation: v3-flip .7s var(--out) backwards; animation-delay: calc(1.35s + var(--u, 0) * .08s); }
.motion .v5 .fast.is-go + .ticker-wrap .ticker { opacity: 1; animation: v3-ticker 1.1s var(--ease) 1.2s backwards; }

/* Elsewhere the next-round panel rises in as it scrolls into view, and its clock flips over */
.motion .v5 .race[data-reveal]:not(.is-in), .motion .v5 .race[data-reveal]:not(.is-in) .race__unit { opacity: 0; animation: none; }
.motion .v5 .race[data-reveal].is-in { opacity: 1; animation: v3-panel 1s var(--out) backwards; }
.motion .v5 .race[data-reveal].is-in .race__flag { animation: v3-flag 1.1s var(--ease) .1s backwards; }
.motion .v5 .race[data-reveal].is-in .race__unit { opacity: 1; animation: v3-flip .7s var(--out) backwards; animation-delay: calc(.35s + var(--u, 0) * .08s); }

/* Page heads play a short version of the hero's intro */
.motion:not(.intro) :is(.phead .shot, .phead__copy, .post-head, .post-photo) { opacity: 0; }
.motion.intro .phead .shot__media { animation: v3-photo 1.6s var(--out) backwards; }
.motion.intro .phead .shot__glass { animation: v3-glass 1s cubic-bezier(.7, 0, .2, 1) .1s backwards; }
.motion.intro .phead .shot__edge { animation: v3-edge 1s var(--out) .75s backwards; }
.motion.intro :is(.phead__copy, .post-head) .kicker { animation: v3-slide .7s var(--ease) .2s backwards; }
.motion.intro :is(.phead__title, .post-head__title) { animation: v3-launch 1s var(--ease) .3s backwards; }
.motion.intro :is(.phead__intro, .phead__actions, .post-head__lede, .post-head__meta) { animation: v3-up .8s var(--ease) .55s backwards; }
.motion.intro .post-photo { animation: v3-up 1s var(--out) .5s backwards; }

/* Rows slide in; speed bars fill to each class's top speed */
.motion :is(.event, .doc, .links li).is-in { animation-name: v5-row; }
.motion .dial:not(.is-in) a::after, .motion .klass__dial:not(.is-in)::after { background-size: 0 100%, auto; }
.motion .dial.is-in a::after { transition-delay: calc(var(--i, 0) * 90ms + .3s); }

/* ==========================================================================
   Homepage · the opening flows into the banner
   The wordmark's photo fades away at the bottom and the banner's kart photo rises up from
   behind it, so the two read as one opening rather than two boxes stacked on top of each other.
   ========================================================================== */
:root { --seam: clamp(5rem, 2.5rem + 7vw, 10rem); }
.opener { z-index: 2; background: transparent; }
@media (max-width: 767.98px) { .opener { min-height: clamp(440px, 64svh, 600px); } }
.opener__bg {
  -webkit-mask-image: linear-gradient(180deg, #000 45%, rgb(0 0 0 / .55) 72%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 45%, rgb(0 0 0 / .55) 72%, transparent 100%);
}
.fast { z-index: 1; margin-top: calc(-1 * var(--seam)); }
.fast .shot__media {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 var(--fade, 34%));
          mask-image: linear-gradient(180deg, transparent 0, #000 var(--fade, 34%));
}
@media (min-width: 1024px) {
  .fast__stage { min-height: calc(clamp(620px, 88svh, 860px) + var(--seam)); }
  .fast .shot__media { --fade: 26%; }
  .fast__copy { padding-top: calc(4.5rem + var(--seam) * .5); }
}

/* More breathing room between the opening and the banner below it */
:root { --gap: clamp(4rem, 3rem + 3vw, 6rem); }
.fast { margin-top: calc(var(--gap) - var(--seam)); }
@media (min-width: 1024px) { .fast__copy { padding-top: calc(6.5rem + var(--seam) * .5); } }

/* The first screen is the wordmark alone: the opening fills the screen, and the banner (which
   tucks up under it by --over) starts just below the fold, so its photo and edge line stay hidden */
:root { --over: max(0px, var(--seam) - var(--gap)); }
.opener { min-height: max(440px, calc(100svh + var(--over))); padding-bottom: calc(4.5rem + var(--over)); }
@media (min-width: 768px) { .opener { min-height: max(560px, calc(100svh + var(--over))); padding-bottom: calc(5.5rem + var(--over)); } }
.opener__cue { bottom: calc(1.25rem + var(--over)); }

/* The opening's photo reaches further down the first screen before it fades */
.opener .duo img { opacity: .5; }
.opener__bg {
  -webkit-mask-image: linear-gradient(180deg, #000 68%, rgb(0 0 0 / .6) 86%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 68%, rgb(0 0 0 / .6) 86%, transparent 100%);
}
.opener__photo::after {
  background:
    radial-gradient(75% 60% at 50% 45%, rgb(3 8 23 / .35) 0%, rgb(3 8 23 / .78) 100%),
    linear-gradient(180deg, rgb(3 8 23 / .7) 0%, transparent 28%, transparent 72%, rgb(3 8 23 / .45) 90%, var(--ink) 100%);
}

/* The banner photo, zoomed in on the kart. Phones and tablets have room to spare round it;
   on desktop the kart already spans most of the frame, so it only steps in a little. */
.fast .shot__media img { scale: var(--zoom, 1.4); transform-origin: var(--focus, 50% 50%); }
@media (min-width: 1024px) { .fast .shot__media img { --zoom: 1.14; } }

/* A much bigger club badge above the wordmark */
.opener__badge { width: clamp(140px, 8vw + 100px, 200px); margin-bottom: clamp(1.25rem, .75rem + 1.5vw, 2.25rem); }
/* The photo fills the whole opening at every size (.duo's position: relative was winning, so on
   phones it stopped at the image's own height, a strip across the top) */
.opener__photo.duo { position: absolute; inset: 0; }

/* No hairline under the header: the bar's own shading is the edge */
.nav::before { border-bottom: 0; }

/* The glow behind "The fastest karts" belongs to the whole section, so it carries on past the
   next-round card to the ticker instead of stopping in a hard line where the photo's stage ends.
   The glass keeps its frosting over the photo, and is clear where there's no photo under it. */
@media (min-width: 1024px) {
  .fast { background: radial-gradient(60% 55% at 0% 74%, rgb(61 109 255 / .22), transparent 72%), var(--ink); }
  .fast .shot__glass { background: linear-gradient(100deg, rgb(3 8 23 / 0) 0%, rgb(3 8 23 / 0) 28%, rgb(3 8 23 / .9) 42%, rgb(7 20 62 / .76) 100%); }
}
@media (min-width: 1024px) {
  /* ...and only the wedge over the photo is glass at all, since its frosting dims whatever is behind it */
  .fast .shot__glass { clip-path: polygon(var(--ml) 0, var(--gt) 0, var(--ml) 100%, var(--ml) 100%); }
}
@media (min-width: 1024px) {
  /* the wedge starts as solid navy, matching the section beside it, and lightens towards the photo */
  .fast .shot__glass { background: linear-gradient(90deg, var(--ink) var(--ml), rgb(3 8 23 / .9) calc(var(--ml) + 5%), rgb(7 20 62 / .76) 100%); }
}

/* No dead space between the opening and the banner: the words start just under the fold,
   the stage is as tall as they need, and the photo fades in over a shorter distance */
.fast .shot__media { --fade: 20%; }
@media (min-width: 1024px) {
  .fast__stage { min-height: 0; }
  .fast__copy { align-self: start; padding-top: clamp(2.5rem, 1rem + 2vw, 3.5rem); }
  .fast .shot__media { --fade: 12%; }
  .fast .shot__media::after { background: linear-gradient(180deg, var(--ink) 0%, transparent 9%, transparent 60%, rgb(3 8 23 / .78) 86%, var(--ink) 100%); }
}
@media (min-width: 1024px) {
  /* the glass starts a hair left of the photo, so no sliver of photo shows at its edge */
  .fast .shot__glass { clip-path: polygon(calc(var(--ml) - 3px) 0, var(--gt) 0, var(--ml) 100%, calc(var(--ml) - 3px) 100%); }
  .fast__copy { padding-bottom: 9rem; } /* room between the buttons and the next-round card */
}

/* ==========================================================================
   The wordmark as a loading screen
   It covers the whole page (only with JavaScript and motion on, so it can never get stuck
   there), plays the wordmark, then swipes down out of the way with a slanted yellow edge
   leading, uncovering the header and "The fastest karts on earth" as the page's hero.
   Timed off html.intro, which is set on the first visit to the homepage only. main.js keeps
   the page still underneath until it's gone.
   ========================================================================== */
.opener--loader { display: none; }
.js.motion .opener--loader {
  --edge: clamp(2.5rem, 6vw, 6rem);
  display: grid; align-content: center;
  position: fixed; inset: 0; z-index: 60;
  min-height: 0; padding: 2rem 0;
  overflow: visible; /* the edge rides above it */
  background: var(--ink);
  will-change: transform;
}
.opener--loader .opener__bg { -webkit-mask-image: none; mask-image: none; }
.opener__edge { position: absolute; left: 0; right: 0; bottom: 100%; height: var(--edge); pointer-events: none; filter: drop-shadow(0 0 16px rgb(255 210 10 / .45)); }
.opener__edge::before, .opener__edge::after { content: ""; position: absolute; inset: 0; }
.opener__edge::before { background: var(--ink); clip-path: polygon(0 100%, 100% 14%, 100% 100%); }
.opener__edge::after { background: var(--yellow); clip-path: polygon(0 86%, 100% 0, 100% 14%, 0 100%); }
@keyframes v6-swipe     { to { transform: translateY(calc(100% + var(--edge))); visibility: hidden; } }
.motion.intro .opener--loader { animation: v6-swipe 1.05s cubic-bezier(.76, 0, .24, 1) 2.7s forwards; }
html.is-loading { overflow: hidden; scrollbar-gutter: stable; }
/* Already seen this visit (head-common decides before the first paint) */
.js.motion.loader-seen .opener--loader { display: none; }
/* The header is uncovered by the swipe, rather than dropping in unseen behind it */
html.motion.intro .v5.is-home .nav { animation: none; }

/* "The fastest karts on earth" is the hero: at the top of the page, under the header */
.v5 .fast { margin-top: 0; }
.v5 .fast .shot__media { -webkit-mask-image: none; mask-image: none; }
@media (max-width: 1023.98px) { .v5 .fast__stage { padding-top: var(--nav-h); } }
@media (min-width: 1024px) {
  .v5 .fast__stage { min-height: max(640px, 100svh - 3.5rem); }
  .v5 .fast__copy { align-self: center; padding-top: calc(var(--nav-h) + 2.5rem); padding-bottom: 9rem; }
  .v5 .fast .shot__media::after { background: linear-gradient(180deg, rgb(3 8 23 / .6) 0%, transparent 20%, transparent 60%, rgb(3 8 23 / .78) 86%, var(--ink) 100%); }
}
/* The edge (and its glow) only shows once the swipe starts, so no yellow peeks in at the top before */
@keyframes v6-edge     { from { opacity: 0; } }
.opener__edge { opacity: 0; }
.motion.intro .opener--loader .opener__edge { opacity: 1; animation: v6-edge .15s linear 2.7s backwards; }

/* ==========================================================================
   Compact page titles (body.is-compact, from "compact: true" in a page's front matter)
   The same page head (photo on the right behind the glass, title on the left), in a short band:
   a smaller title that fits on one line, a tighter intro and less air, so each page gets to its
   content sooner. On phones the photo is a short strip over the title. News stories too.
   ========================================================================== */
.is-compact .phead .shot { aspect-ratio: 5 / 2; }
.is-compact .phead__copy { margin-top: -.25rem; padding-bottom: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); }
.is-compact .phead .kicker { margin-bottom: .6rem; }
.is-compact .phead__title { font-size: calc(var(--dz) * clamp(2.3rem, 1.5rem + 2.8vw, 4rem)); line-height: .9; }
.is-compact .phead__intro { max-width: 64ch; margin-top: .75rem; font-size: clamp(1rem, .96rem + .2vw, 1.1rem); line-height: 1.5; }
.is-compact .phead__actions { margin-top: 1.25rem; }
@media (min-width: 600px) and (max-width: 1023.98px) { .is-compact .phead .shot { aspect-ratio: 3 / 1; } }
/* The strip shows about half the photo's height, so it's framed high: the drivers' helmets sit
   in its upper part, and the kart's nose matters less than its driver's head */
@media (max-width: 1023.98px) { .is-compact .phead .shot__media img { object-position: 50% 15%; } }
@media (min-width: 1024px) {
  .is-compact .phead { min-height: 0; }
  /* The photo starts under the header (which would hide its top) and keeps its own 3:2 shape,
     as tall as the band and as wide as that makes it (up to 30rem), so the whole kart shows,
     driver's helmet and all. Its slanted left edge is cut into the photo itself, with the light
     along it; the glass panel isn't needed with nothing behind it. */
  .is-compact .phead .shot { --ml: max(58%, 100% - 30rem); aspect-ratio: auto; top: var(--nav-h); }
  .is-compact .phead :is(.shot__media, .shot__edge) { inset: 0 0 0 auto; width: auto; max-width: 30rem; aspect-ratio: 3 / 2; }
  .is-compact .phead .shot__edge i { clip-path: polygon(calc(22% - 1px) 0, calc(22% + 1px) 0, 1px 100%, -1px 100%); }
  .is-compact .phead .shot__glass { display: none; }
  .is-compact .phead__copy { padding-block: calc(var(--nav-h) + 2rem) 2.25rem; }
  .is-compact .phead__copy > * { max-width: calc(max(58vw, 100vw - 30rem) - max((100vw - var(--max)) / 2, var(--gutter)) - 3rem); }
}
.is-compact .post-head { padding: calc(var(--nav-h) + clamp(1.5rem, 1rem + 1.8vw, 2.5rem)) 0 clamp(1.25rem, 1rem + 1vw, 1.9rem); }
.is-compact .post-head__title { font-size: calc(var(--dz) * clamp(2.1rem, 1.3rem + 2.8vw, 3.8rem)); }
/* ...and the page starts sooner under it */
.is-compact .phead + .section { padding-top: clamp(2rem, 1.5rem + 2vw, 3.5rem); }

/* ==========================================================================
   The photo stops at the slant: nothing of it shows to the left of the glass's edge, on the
   homepage banner or any page head. (--gt sits 22% of the photo's width in from its left at the
   top, so the cut runs from there down to the photo's bottom-left corner, under the edge line.)
   The banner's glass was only ever the wedge over the photo, so with no photo under it, it goes.
   ========================================================================== */
@media (min-width: 1024px) {
  .shot__media { clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
  .fast .shot__glass { display: none; }
}

/* News on paper (the news list is a light section): the white text turns to ink, and the
   yellow that marks dates and hovers turns to the club blue, which reads on paper */
.section--light .story__title, .section--light .year__title, .section--light .headline__title { color: var(--paper-ink); }
.section--light .story:hover .story__title, .section--light .headline:hover .headline__title { color: var(--blue); }
.section--light .headline__date b { color: var(--blue); }
.section--light .headline__go { color: var(--paper-ink); }
.section--light .headline:hover .headline__go { color: #fff; }
.section--light .headline:hover .headline__go::before { background: var(--blue); border-color: var(--blue); }
.section--light .headline::after { background: var(--blue); }

/* ==========================================================================
   Classes · one box, five tabs: the class cards along the top pick the class the box shows
   (main.js "Tabs" adds .is-tabbed; without it, every class shows, one after another).
   The chosen card keeps its yellow edge and joins the box under it.
   ========================================================================== */
.is-tabbed { scroll-margin-top: calc(var(--nav-h) + 1rem); }
.is-tabbed .dial.is-current a { background: var(--card-hover); }
.is-tabbed .dial.is-current a::before { transform: scaleX(1); }
.is-tabbed .dial:not(.is-current) a { opacity: .7; transition: transform .3s var(--ease), background .3s, opacity .3s; }
.is-tabbed .dial:not(.is-current) a:hover { opacity: 1; }
.is-tabbed .klass-box {
  position: relative; margin-top: .85rem; padding: clamp(1.4rem, .9rem + 2.4vw, 3rem);
  background: var(--card); border-top: 4px solid var(--yellow);
}
.is-tabbed .klass { padding-block: 0; border-top: 0; scroll-margin-top: calc(var(--nav-h) + 1rem); }
.is-tabbed .klass:focus { outline: none; }
.is-tabbed .klass__spec { position: static; }
.motion .is-tabbed .klass:not([hidden]) { animation: v3-up .5s var(--ease); }

/* The next round on paper (the calendar list is a light section): a solid club-blue card,
   like the featured membership, instead of a blue tint fading into white. Its words and buttons
   go back to white on it. */
.section--light .event--next {
  --strong: #fff; --text-2: #dbe3ff; --muted: #aebde8; --ice: #b9c9ff;
  background: linear-gradient(100deg, #2350e6, #0b1b52 70%);
  box-shadow: 0 18px 36px -24px rgb(11 27 82 / .9);
}
/* its buttons are solid white on the blue (the muted "Entries open soon" a touch softer) */
.section--light .event--next .btn--glass { --fg: #0b1b52; --bg: #fff; --bd: #fff; }
.section--light .event--next .btn--glass:hover { --fg: var(--yellow-ink); --bg: var(--yellow); --bd: var(--yellow); }
.section--light .event--next .btn.is-muted { color: #0b1b52; --bg: rgb(255 255 255 / .82); --bd: transparent; }
.section--light .event--next .btn.is-muted:hover { --bg: rgb(255 255 255 / .82); --bd: transparent; }
.section--light .event--next .event__date { background: var(--ink); }
/* When the next section is paper, its slanted top edge overlaps the foot of the page head; the
   photo ends above it, so the kart sits up in clear view rather than under the slant */
@media (min-width: 1024px) {
  .is-compact .phead:has(+ .section > .slant) .shot { bottom: var(--slant-h); }
}
.section--light .event--next .btn--white { --bg: var(--yellow); --fg: var(--yellow-ink); } /* "Enter now", once entries open: yellow, as it is on the blue cards elsewhere */

/* Where we race: a shorter section. Each venue's photo is a wide strip rather than 16:9, framed
   high so the drivers stay in, and the header's intro sits beside the title on wide screens. */
.venue__photo { aspect-ratio: 5 / 2; }
.venue__photo img { object-position: 50% 35%; }
.venue__body { gap: .7rem; }
@media (min-width: 1024px) {
  #venues .head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: 3rem; align-items: end; }
  #venues .head .kicker { grid-column: 1; }
  #venues .head .title { grid-column: 1; margin-bottom: 0; }
  #venues .head__intro { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin: 0; }
}

/* The gallery on paper: the album cards are photos with their own dark shading, so their words
   stay white-on-dark whatever the section around them */
.section--light .album { --text-2: #c9d3ee; --muted: #aab6d6; }

/* Contact on paper (the contact page is a light section): ink words, white committee
   cells, and the form's fields as light boxes with a blue focus */
.section--light .reach__big a { color: var(--paper-ink); background-image: linear-gradient(var(--blue), var(--blue)); }
.section--light .committee div { background: #fff; }
.section--light .committee dd { color: var(--paper-ink); }
.section--light .committee .is-lead { background: linear-gradient(90deg, rgb(51 102 255 / .16), #fff); }
.section--light .form__title { color: var(--paper-ink); }
.section--light .field :is(input, select, textarea) { background-color: var(--paper); color: var(--paper-ink); border-color: rgb(10 15 31 / .22); }
.section--light .field :is(input, select, textarea):hover { border-color: rgb(10 15 31 / .45); }
.section--light .field :is(input, select, textarea):focus { background-color: #fff; border-color: var(--blue); box-shadow: 0 0 0 3px rgb(51 102 255 / .2); }
.section--light .field ::placeholder { color: #8a94ab; }
.section--light .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 8 5 5 5-5' fill='none' stroke='%233366ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.section--light .field select option { background: #fff; color: var(--paper-ink); }

/* Menu: "Get started" sits in the menu now (Contact is the button), so items never wrap
   onto two lines, and the spacing closes up a little on narrower desktops. */
@media (min-width: 1080px) {
  .nav__menu a { white-space: nowrap; }
  .nav__brand { flex-shrink: 0; }
}
@media (min-width: 1080px) and (max-width: 1279px) {
  .nav__menu { gap: 1.25rem; }
  .nav__menu ul { gap: 1rem; }
  .nav__menu a:not(.btn) { letter-spacing: .1em; }
}

/* Menu: the pages spread out evenly across the room between the logo and Contact, with the
   same space at each end as between them, so the row sits centred between the two. */
@media (min-width: 1080px) {
  .nav__menu { flex: 1; gap: 0; }
  .nav__menu ul { flex: 1; justify-content: space-evenly; gap: .75rem; margin-right: 1.5rem; }
}

/* Loading screen: it stays plain navy until its photo has loaded (main.js waits for it), then the
   photo fades straight in, sharp, and the wordmark plays over it */
.motion .opener--loader .opener__photo { opacity: 0; animation: none; }
.motion.intro .opener--loader .opener__photo { opacity: 1; animation: sk-fade .45s ease-out both; }
@keyframes sk-fade { from { opacity: 0; } }

/* Header: the shine across the club badge comes round every 12 seconds */
@keyframes sk-glint { 0% { background-position: -150% 0; } 9%, 100% { background-position: 150% 0; } } /* a 1.1s sweep, then rest */
.motion.intro .nav__badge::after { animation: sk-glint 12s ease-in-out 1.3s infinite backwards; }

/* The banner's photo: a tiny soft copy (--lqip, from _data/lqip.js) sits behind it, so it's never
   blank as the loading screen swipes away; the real one covers it once loaded. */
.shot__media img { background: var(--lqip, none) var(--focus, 50% 50%) / cover no-repeat; }

/* The banner photo runs the whole height of the banner, behind the next-round card, down under
   the yellow ticker: no strip of plain navy between the photo and the yellow line. Its bottom
   only darkens a little (enough for the card), rather than fading out to solid navy. */
@media (min-width: 1024px) {
  .v5 .fast__stage { position: static; }
  .v5 .fast .shot__media::after { background: linear-gradient(180deg, rgb(3 8 23 / .6) 0%, transparent 20%, transparent 55%, rgb(3 8 23 / .55) 100%); }
}

/* "Website made by Webcruit": on the right of the bottom line, bigger than the rest of it, with
   the Webcruit mark in its own colours. On phones it wraps onto a line of its own. */
.foot__legal { align-items: center; }
.foot__legal .credit { display: inline-flex; align-items: center; gap: .45em; margin-left: auto; font-size: 1.05rem; font-weight: 500; color: var(--text-2, #c9d2e8); white-space: nowrap; text-decoration: none; transition: color .2s; }
.foot__legal .credit img { width: auto; height: 1.4em; margin-left: .1em; }
.foot__legal .credit:hover { color: #fff; }
@media (max-width: 599.98px) { .foot__legal .credit { margin-left: 0; flex-basis: 100%; } }

/* "Webcruit" in the logo's own lettering: the wordmark from the logo, tinted the credit's colour
   (so it brightens on hover too). The word is still there as text for screen readers and search. */
.foot__legal .credit__word {
  display: inline-block; height: 1em; aspect-ratio: 535 / 96; overflow: hidden; text-indent: 110%; white-space: nowrap;
  background: currentColor;
  -webkit-mask: url("/assets/brand/webcruit-word.png") center / contain no-repeat;
          mask: url("/assets/brand/webcruit-word.png") center / contain no-repeat;
}

/* Now that the banner photo runs down to the ticker, the kart sat low, its wheels behind the
   next-round card: it moves up a little (a touch more zoom gives it the room to). */
@media (min-width: 1024px) {
  .v5 .fast .shot__media img { --zoom: 1.18; translate: 0 -5%; }
}
/* ...and further just above tablet size, where the photo is narrow and tall and the card is deeper */
@media (min-width: 1024px) and (max-width: 1199.98px) {
  .v5 .fast .shot__media { top: 0; }
  .v5 .fast .shot__media img { --zoom: 1.3; translate: 0 -11%; }
}

/* The phone menu starts with Home (on desktop the badge is the way home, so it isn't repeated
   there), and its Contact button is bigger, a proper tap target under the big links */
@media (min-width: 1080px) { .nav__home { display: none; } }
@media (max-width: 1079.98px) { .nav__menu .btn { min-height: 60px; padding: 0 2.2em; font-size: 1rem; } }

/* "Club of New South Wales" under the wordmark is only ever one line: its letters start spread
   wide and close up, and while wide they used to wrap it onto two lines. Centred as a flex row,
   so while it's wider than the screen it overflows evenly both sides rather than to the right. */
.opener__sub { display: flex; justify-content: center; white-space: nowrap; contain: inline-size; } /* its width never moves the wordmark or badge */

/* The banner sentence ("Up to 250 km/h...") is two even lines wherever there is room for it
   (tablets and up), still clear of the photo; phones are too narrow, so it takes three there. */
.fast__copy > .fast__lead { max-width: min(30em, 100%); text-wrap: balance; }
@media (min-width: 1024px) and (max-width: 1199.98px) { .fast__copy > .fast__lead { max-width: 27.5em; font-size: 1.05rem; } }

/* Desktop: the banner's kart sits higher still. The photo zooms in a little, anchored at its
   bottom right, so it grows upwards and to the left: the whole kart, nose included, stays in frame. */
@media (min-width: 1200px) {
  .v5 .fast .shot__media img { --zoom: 1.32; transform-origin: 85% 100%; translate: none; }
}

/* Contact: the email address is always one line. It keeps its size where it fits, and shrinks
   just enough where its column is narrower (9.6% of the column per em fits this address). */
.reach__big { container-type: inline-size; }
.reach__big a[href^="mailto:"] { white-space: nowrap; overflow-wrap: normal; font-size: min(calc(var(--dz) * clamp(1.75rem, 1.2rem + 2vw, 2.8rem)), 9.6cqi); }

/* Page heads (desktop): the photo on the right is much wider, its slanted left edge further in,
   rather than a small 3:2 picture in the corner. It fills the band's height and is framed by
   the page's own "keep in view" point; the slant runs the same distance at every width. */
@media (min-width: 1024px) {
  .is-compact .phead { --pw: clamp(26rem, 44vw, 54rem); --run: 6rem; }
  .is-compact .phead .shot { --ml: calc(100% - var(--pw)); }
  .is-compact .phead :is(.shot__media, .shot__edge) { width: var(--pw); max-width: none; aspect-ratio: auto; }
  .is-compact .phead .shot__media { clip-path: polygon(var(--run) 0, 100% 0, 100% 100%, 0 100%); }
  .is-compact .phead .shot__edge i { clip-path: polygon(calc(var(--run) - 1px) 0, calc(var(--run) + 1px) 0, 1px 100%, -1px 100%); }
  .is-compact .phead__copy > * { max-width: calc(100vw - var(--pw) - max((100vw - var(--max)) / 2, var(--gutter)) - 2.5rem); }
}
/* ...and a short band (a page with a one-line intro) grows to give that wider photo enough
   height to show the whole kart, the words centred beside it */
@media (min-width: 1024px) {
  .is-compact .phead { min-height: calc(var(--nav-h) + var(--pw) / 2.6); }
  .is-compact .phead:has(+ .section > .slant) { min-height: calc(var(--nav-h) + var(--pw) / 2.6 + var(--slant-h)); }
}

/* ==========================================================================
   Tachometers (the class cards on the homepage and the classes page)
   In place of the speed bars: a dial from 0 to 260 km/h (the "tacho" shortcode in
   eleventy.config.js), its red zone from 220, with the speed read out under the needle. As a
   card comes into view, the needle flicks up from zero and the sweep follows it.
   ========================================================================== */
.tacho {
  --t-track: rgb(184 204 255 / .14); --t-tick: rgb(184 204 255 / .32); --t-major: rgb(225 233 255 / .85);
  --t-label: var(--muted); --t-needle: #ff3d6e; --t-hub: #fff; --t-cap: var(--ink); --t-red: #ff3d6e;
  --t-g1: #1f3fae; --t-g2: var(--blue); --t-g3: var(--blue);
  display: block; width: 100%;
}
.tacho--premier { --t-g1: var(--blue); --t-g2: #7f5cff; --t-g3: #ff3d6e; }
.tacho svg { display: block; width: 100%; height: auto; overflow: visible; }
.tacho__track, .tacho__value, .tacho__red { fill: none; stroke-linecap: butt; }
.tacho__track { stroke: var(--t-track); stroke-width: 7; }
.tacho__value { stroke-width: 7; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--v)); transition: stroke-dashoffset 1.5s cubic-bezier(.25, 1, .35, 1) .15s; }
.tacho__red { stroke: var(--t-red); stroke-width: 3; opacity: .9; }
.tacho__tick { stroke: var(--t-tick); stroke-width: 1.4; }
.tacho__tick--major { stroke: var(--t-major); stroke-width: 2.6; }
.tacho__tick--red { stroke: var(--t-red); }
.tacho__label { fill: var(--t-label); font: 700 11px/1 var(--font-ui); font-stretch: var(--fst-ui); text-anchor: middle; dominant-baseline: central; font-variant-numeric: tabular-nums; }
.tacho__needle {
  fill: var(--t-needle); filter: drop-shadow(0 0 3px rgb(255 61 110 / .55));
  transform-box: view-box; transform-origin: 100px 96px; rotate: var(--a);
  transition: rotate 1.5s cubic-bezier(.3, 1.35, .45, 1) .15s; /* overshoots a touch, like a real needle */
}
.tacho__hub { fill: var(--t-hub); }
.tacho__cap { fill: var(--t-cap); }
/* Before it's in view: needle and sweep at zero */
.motion [data-reveal]:not(.is-in) .tacho__needle { rotate: -120deg; }
.motion [data-reveal]:not(.is-in) .tacho__value { stroke-dashoffset: 100; }
.motion [data-reveal].is-in .tacho :is(.tacho__needle, .tacho__value) { transition-delay: calc(var(--i, 0) * 90ms + .25s); }

/* The speed sits under the needle, in the dial's open bottom */
.kcard__gauge, .dial__gauge { position: relative; display: block; width: 100%; max-width: 230px; margin-inline: auto; }
.kcard__gauge .kcard__kmh, .dial__gauge .dial__num {
  position: absolute; left: 0; right: 0; bottom: -.3em; display: flex; justify-content: center; align-items: baseline; gap: .3rem; margin: 0;
}
.kcard__gauge .kcard__kmh b { font-size: 2.1em; }
.dial__gauge .dial__num b { font-size: calc(var(--dz) * 2rem); }

/* Light cards (the homepage's classes, on paper) */
.kcard .tacho { --t-track: var(--paper-2); --t-tick: rgb(10 15 31 / .22); --t-major: var(--paper-ink); --t-label: var(--paper-muted); --t-hub: var(--paper-ink); --t-cap: #fff; --t-g1: #0b1b52; }

/* Classes page: the gauge replaces the bar */
.dial__gauge { order: 3; }
.dial a::after, .klass__dial::after { display: none; }
.klass__dial .dial__gauge { max-width: 320px; }
.klass__dial .dial__gauge .dial__num { bottom: -.45em; }
.klass__dial .dial__gauge .dial__num b { font-size: calc(var(--dz) * 3rem); }
.klass__dial .tacho__label { font-size: 10px; }
/* room under each dial for the part of the readout that sits below it */
.kcard__gauge, .dial__gauge { margin-bottom: .45rem; }
.klass__dial .dial__gauge { margin-bottom: 1.1rem; }
/* two cards to a row on phones: a smaller readout, clear of the dial's lower ticks */
@media (max-width: 719.98px) {
  .kcard:not(.kcard--premier) .kcard__gauge .kcard__kmh b { font-size: 1.75em; }
  .dial:not(.dial--premier) .dial__gauge .dial__num b { font-size: calc(var(--dz) * 1.7rem); }
}
