/* FORGED. The page is a 5K: it runs from black heat to white heat,
   the colours of steel in a forge and of a 6 AM sky over Goa. */

:root {
  --black-heat: #0A0809;
  --blood-from: #4A0C10; /* the colour the hero's metal melts into */
  --blood-to: #7E1015;
  --cherry-from: #8E1217;
  --cherry-to: #C91F18;
  --orange-from: #EE4F1B;
  --orange-to: #F77A1E;
  --lemon-from: #F98F22;
  --lemon-to: #FFC53A;
  --white-from: #FFE7A0;
  --white-heat: #FFFBF0;
  --steel: #E9E6E1;
  --ink: #140A08;

  --display: "Anybody", "Arial Black", sans-serif;
  --body: "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --slant: 3.5vw;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black-heat);
  color: var(--steel);
  font: 400 clamp(1rem, .96rem + .2vw, 1.125rem)/1.55 var(--body);
  overflow-x: hidden;
}
h1, h2, h3, p, ul, figure, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 20;
  background: var(--white-heat); color: var(--ink); padding: 10px 14px;
}
.skip:focus { left: 8px; }

.label {
  font: 600 .6875rem/1.5 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Preloader: a block of ice that breaks open into the logo */
.ice {
  position: fixed; inset: 0; z-index: 30;
  display: grid; place-items: center;
  overflow: hidden;
  background: var(--black-heat);
  cursor: pointer;
  /* Failsafe: never trap the page if the script doesn't run */
  animation: ice-failsafe 0s linear 7s forwards;
}
@keyframes ice-failsafe { to { visibility: hidden; } }
.ice__stage { position: relative; width: min(46vmin, 300px); aspect-ratio: 1; }
.ice__stage img, .ice__shards, .ice__cracks { position: absolute; inset: 0; width: 100%; height: 100%; }
.ice__logo { visibility: hidden; }
.ice__cracks { overflow: visible; pointer-events: none; }
.ice__cracks path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.ice__shard {
  position: absolute; inset: 0;
  background: url("assets/ice-block.webp") center / 100% 100% no-repeat;
  visibility: hidden;
}
.ice__chip { position: absolute; background: #F4F9FB; visibility: hidden; }
/* Cold light around the block, which becomes forge heat when it breaks */
.ice__glow { position: absolute; inset: 0; pointer-events: none; }
.ice__glow--cold {
  background: radial-gradient(circle at 50% 48%, rgb(150 215 240 / .2), rgb(60 120 160 / .08) 32%, transparent 60%);
  animation: ice-breathe 2.4s ease-in-out infinite;
}
.ice__glow--hot {
  background: radial-gradient(circle at 50% 48%, rgb(255 197 58 / .55), rgb(242 87 27 / .3) 30%, rgb(163 20 26 / .12) 55%, transparent 75%);
  opacity: 0;
}
@keyframes ice-breathe { 50% { opacity: .55; transform: scale(1.05); } }
/* Frost drifting up through the dark; it turns to embers when the ice breaks */
.ice__frost { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ice__frost i {
  position: absolute; bottom: -10px;
  width: var(--s); height: var(--s);
  border-radius: 50%;
  background: #DDF3FA;
  opacity: 0;
  animation: frost-rise var(--life) linear var(--wait) infinite;
  transition: background-color .3s ease-out;
}
.ice.is-hot .ice__frost i { background: #F98F22; }
@keyframes frost-rise {
  10% { opacity: .7; }
  to { transform: translate(var(--drift), -105vh); opacity: 0; }
}
/* Impact rings from each blow */
.ice__ring {
  position: absolute; left: 25%; top: 20%;
  width: 40%; aspect-ratio: 1;
  margin: -20% 0 0 -20%;
  border: 2px solid rgb(225 246 255 / .9);
  border-radius: 50%;
  pointer-events: none;
}
/* Temperature: from ice to forge */
.ice__read {
  position: absolute; left: 50%;
  top: calc(50% + min(23vmin, 150px) + 26px);
  display: grid; justify-items: center; gap: 6px;
  transform: translateX(-50%);
  color: #CFE9F2;
  white-space: nowrap;
  transition: color .3s ease-out;
}
.ice__temp { font: 600 clamp(1.25rem, 3vmin, 1.75rem)/1 var(--mono); font-variant-numeric: tabular-nums; }
.ice__msg { font: 400 .6875rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.ice.is-hot .ice__read { color: #FFC53A; }
.ice__flash {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgb(235 247 252 / .55), transparent 55%);
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .ice { display: none; } }

/* Buttons and links */
.btn {
  display: inline-block;
  padding: .95em 1.3em;
  font: 800 1rem/1.15 var(--display);
  font-variation-settings: "wdth" 105;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, calc(100% - .7em) 100%, 0 100%);
  padding-right: 2em;
  transition: padding .18s ease-out;
}
.btn:hover { padding-right: 2.5em; }
/* A band of heat sweeps across on hover or tap */
.btn, .watch__join { position: relative; overflow: hidden; }
.btn::after, .watch__join::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 60%;
  background: linear-gradient(100deg, transparent, rgb(255 251 240 / .65) 45%, rgb(255 197 58 / .55) 60%, transparent);
  transform: translateX(-120%) skewX(-16deg);
  pointer-events: none;
}
.btn:hover::after, .btn:active::after, .btn:focus-visible::after,
.watch__join:hover::after, .watch__join:active::after, .watch__join:focus-visible::after {
  transform: translateX(220%) skewX(-16deg);
  transition: transform .65s cubic-bezier(.3, .6, .3, 1);
}
.btn:focus-visible { clip-path: none; }
.btn--hot { background: var(--orange-from); color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--white-heat); }
.link { font-weight: 600; text-underline-offset: .25em; text-decoration-thickness: 2px; }
.link:hover { text-decoration-thickness: 4px; }

/* KM 0: hero */
.hero {
  background: var(--black-heat);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 20px var(--gutter) calc(var(--slant) + 76px); /* keeps the wordmark clear of the watch */
  overflow: hidden;
}
.nav { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
/* The logo is the F: it sits in the F's place and the wordmark supplies ORGED.
   Multipliers come from the art: the logo's visible area is 584 of 640 tall,
   starting 20 across and 29 down; in the wordmark, ORGED starts at 641 of 3847. */
.nav__brand {
  --h: 26px;
  display: flex; align-items: center;
  text-decoration: none;
  color: var(--steel);
}
.nav__f { position: relative; flex: none; width: calc(var(--h) * 1.06); height: var(--h); }
.nav__f img {
  position: absolute;
  left: calc(var(--h) * -.0342);
  top: calc(var(--h) * -.0497);
  width: calc(var(--h) * 1.096);
  height: calc(var(--h) * 1.096);
  max-width: none;
}
.nav__orged {
  flex: none;
  width: calc(var(--h) * 3206 / 622);
  height: var(--h);
  background: currentColor;
  -webkit-mask: url("assets/wordmark.svg") right center / calc(var(--h) * 3847 / 622) 100% no-repeat;
  mask: url("assets/wordmark.svg") right center / calc(var(--h) * 3847 / 622) 100% no-repeat;
}
.nav__links { display: flex; gap: clamp(18px, 2.6vw, 40px); }
.nav__links a {
  position: relative;
  display: block;
  padding-block: 8px;
  font: 600 .75rem/1 var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--steel);
  transition: color .18s ease-out;
}
.nav__links small { margin-right: 3px; font: inherit; color: var(--orange-to); }
/* Hover: a line of heat runs in under the link */
.nav__links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #C91F18, #F2571B, #FFC53A, #FFFBF0);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .26s cubic-bezier(.2, .7, .2, 1);
}
.nav__links a:hover { color: var(--white-heat); }
.nav__links a:hover::after,
.nav__links a:focus-visible::after { transform: scaleX(1); }

/* The route: an asphalt road with a molten trail, and the club's real runs as stops */
.route {
  --road: 26px;
  position: relative;
  flex: 1 0 auto;
  min-height: 150px; /* never squeezed out: the hero grows and scrolls instead */
  margin-top: clamp(12px, 2vh, 24px);
  visibility: hidden;
}
@media (max-width: 599.98px) {
  .route { min-height: 205px; }
}
.route.is-ready { visibility: visible; }
.route__title { position: absolute; left: 39%; top: 0; transform: translateX(-50%); white-space: nowrap; color: #9C9690; }
.route__road { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route__road path { fill: none; stroke-linecap: round; }
.route__edge { stroke: #3B3533; stroke-width: calc(var(--road) + 3px); }
.route__asphalt { stroke: #1C1818; stroke-width: var(--road); }
.route__road .route__dash { stroke: #8C8680; stroke-width: 2; stroke-linecap: butt; stroke-dasharray: 12 14; }
.route__molten { stroke: url(#route-heat); stroke-width: calc(var(--road) * .42); }
.route__glow { stroke: url(#route-heat); stroke-width: calc(var(--road) * .9); opacity: .75; filter: url(#route-glow); }
.route__ember {
  fill: #FFC53A;
  opacity: 0;
  animation: route-ember var(--life) ease-out var(--wait) infinite;
}
@keyframes route-ember {
  0% { transform: translate(0, 0) scale(1); opacity: 0; fill: #FFFBF0; }
  12% { opacity: 1; }
  100% { transform: translate(var(--drift), var(--rise)) scale(.2); opacity: 0; fill: #F2571B; }
}

.route__stops { margin: 0; padding: 0; list-style: none; }
.route__stop { position: absolute; width: 0; height: 0; }
.route__stop::before {
  content: "";
  position: absolute; left: -8px; top: -8px;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 3px solid #8C8680;
  background: #1C1818;
}
.route__stop a {
  position: absolute; left: 0;
  transform: translateX(-50%);
  width: max-content;
  text-align: center;
  text-decoration: none;
  font: 400 .6875rem/1.4 var(--mono);
  color: #9C9690;
}
.route__stop.is-peak a { top: calc(var(--road) / 2 + 8px); }
.route__stop.is-valley a { bottom: calc(var(--road) / 2 + 8px); }
.route__stop a:hover span { color: var(--white-heat); text-decoration: underline; text-underline-offset: .25em; }
.route__stop b {
  display: block;
  font: 900 clamp(1.125rem, .9rem + .9vw, 1.75rem)/1.05 var(--display);
  font-variation-settings: "wdth" 105;
  text-transform: uppercase;
  color: var(--steel);
}
.route__stop.is-done::before { background: #FFF1D6; border-color: #C91F18; }
.route__stop.is-next::before {
  border-color: #FFC53A;
  background: var(--white-heat);
  box-shadow: 0 0 0 0 rgb(255 197 58 / .8), 0 0 18px 4px rgb(255 197 58 / .8);
  animation: route-pulse 1.6s ease-out infinite;
}
.route__stop.is-next b { color: var(--orange-to); }
.route__stop.is-next span { color: var(--steel); }
.route__stop.is-next a::before {
  content: "Next up";
  display: table;
  margin: 0 auto 5px;
  padding: 2px 6px;
  background: var(--orange-from);
  color: var(--ink);
  font-weight: 600;
  font-size: .625rem;
  text-transform: uppercase;
}
@keyframes route-pulse {
  to { box-shadow: 0 0 0 20px rgb(255 197 58 / 0), 0 0 18px 4px rgb(255 197 58 / .8); }
}
.route.is-compact .route__title { display: none; }
.route.is-compact .is-peak a { top: auto; bottom: calc(var(--road) / 2 + 7px); }
.route.is-compact .is-valley a { bottom: auto; top: calc(var(--road) / 2 + 7px); }

.hero__body {
  margin-top: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(250px, 1fr);
  gap: 32px clamp(32px, 6vw, 96px);
  align-items: end;
  padding-block: clamp(16px, 3vh, 32px) clamp(24px, 4vh, 48px);
}
.hero__line {
  font: 700 clamp(1.75rem, 1rem + 3.3vw, 4rem)/1.04 var(--display);
  font-variation-settings: "wdth" 88;
  max-width: 17ch;
  text-wrap: balance;
}
.hero__line em { font-style: normal; color: var(--orange-to); }
/* Wide screens are often short, so the headline runs long to leave the road room */
@media (min-width: 861px) {
  .hero__body { grid-template-columns: minmax(0, 1fr) minmax(250px, 340px); }
  .hero__line {
    max-width: none;
    font-size: clamp(1.75rem, min(1rem + 3.3vw, 6.6svh), 4rem);
    text-wrap: wrap;
  }
  .hero__line em { display: block; }
}
/* Very short screens: shrink the wordmark too, instead of losing the road */
@media (min-width: 861px) and (max-height: 720px) {
  .ingot { width: min(100%, 140svh); margin-inline: auto; }
}
.hero__aside { display: grid; gap: 10px; justify-items: start; }
.hero__aside .label { color: var(--orange-to); }
.hero__next { font-size: 1.125rem; margin-bottom: 10px; }

/* The official wordmark, used as a mask so it can take any colour */
.wordmark {
  display: block;
  width: 100%;
  aspect-ratio: 3847 / 622;
  background: currentColor;
  -webkit-mask: url("assets/wordmark.svg") center / 100% 100% no-repeat;
  mask: url("assets/wordmark.svg") center / 100% 100% no-repeat;
}

/* Hero: wide as the page, glowing at the bottom edge */
.ingot { transform-origin: 50% 100%; }
.ingot .wordmark { position: relative; }
.wordmark__heat { position: absolute; inset: 0; background: var(--blood-from); opacity: 0; }

/* Molten: heat painted on the letters, sparks and drips in the air around them */
.ingot { position: relative; }
.ingot .wordmark {
  touch-action: pan-y; /* a vertical swipe still scrolls; a sideways drag burns */
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.molten__glow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.molten__air { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.hero.is-flying .molten__glow, .hero.is-flying .molten__air { display: none; }
.ingot__hint {
  position: absolute; right: 0; bottom: calc(100% + 6px);
  font: 600 .6875rem/1 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #FFC53A;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease-out;
}
.ingot__hint.is-on { opacity: 1; }

/* Scroll: the hero pins while the camera flies into the metal */
/* --hero-h is set by main.js. A hero taller than the screen scrolls until its
   bottom edge arrives, then pins, so the dive works on any screen height. */
.has-flight .hero-pin { height: calc(var(--hero-h, 100svh) + 125svh); }
.has-flight .hero { position: sticky; top: calc(100svh - var(--hero-h, 100svh)); }
.hero-pin.is-molten { background: var(--blood-from); }
.hero.is-flying .nav,
.hero.is-flying .route,
.hero.is-flying .hero__body { visibility: hidden; }
.hero.is-molten { background: var(--blood-from); }
.hero.is-molten .ingot { visibility: hidden; }
.ingot .wordmark {
  background: linear-gradient(180deg, var(--steel) 0 42%, #FFC53A 66%, #F2571B 82%, #A3141A 100%);
}

/* Bands: a slanted cut between each heat, echoing the streaks in the logo */
.band {
  position: relative;
  margin-top: calc(var(--slant) * -1);
  padding-block: calc(var(--slant) + clamp(56px, 9vw, 128px)) clamp(64px, 9vw, 128px);
  clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
}
.band--blood  { background: linear-gradient(var(--blood-from), var(--blood-to)); color: #FFF4EC; }
.band--cherry { background: linear-gradient(var(--cherry-from), var(--cherry-to)); color: #FFF8F2; }
.band--orange { background: linear-gradient(var(--orange-from), var(--orange-to)); color: var(--ink); }
.band--lemon  { background: linear-gradient(var(--lemon-from), var(--lemon-to)); color: var(--ink); }
.band--white  { background: linear-gradient(var(--white-from), var(--white-heat) 45%); color: var(--ink); padding-bottom: 0; }

.wrap { max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }

/* Grain: a faint print texture over each colour band */
.band { overflow-x: clip; }
.band::after {
  content: "";
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .14;
  pointer-events: none;
}
.band > :not(.ghost) { position: relative; z-index: 1; }

/* Ghost words: giant outlines drifting behind each section */
.ghost {
  position: absolute; z-index: 0;
  top: calc(var(--slant) + clamp(20px, 3vw, 48px));
  right: -.04em;
  font: 900 clamp(5.5rem, 21vw, 21rem)/.8 var(--display);
  font-variation-settings: "wdth" 120;
  letter-spacing: -.02em;
  white-space: nowrap;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2px currentColor;
  opacity: .22;
  pointer-events: none;
  user-select: none;
}

/* Tape: race tape across the cut between two sections */
.tape { position: relative; z-index: 3; height: 0; overflow-x: clip; }
.tape__belt {
  position: absolute; left: -4%; right: -4%;
  top: calc(var(--slant) * -.5);
  transform: translateY(-50%) rotate(-2deg);
  overflow: hidden;
  padding-block: 9px;
  border-block: 3px solid;
  box-shadow: 0 10px 24px rgb(0 0 0 / .25);
}
.tape--ink .tape__belt { background: var(--ink); color: #FFC53A; border-color: #F2571B; }
.tape--fire .tape__belt { background: #FFC53A; color: var(--ink); border-color: var(--ink); transform: translateY(-50%) rotate(-2deg); }
.tape__track { display: flex; width: max-content; }
.tape__run { display: flex; align-items: center; flex: none; }
.tape__run span {
  padding-inline: 18px;
  font: 800 clamp(.9375rem, 1.6vw, 1.375rem)/1 var(--display);
  font-variation-settings: "wdth" 115;
  text-transform: uppercase;
  white-space: nowrap;
}
.tape__run i { font-style: normal; font-size: .75em; color: #F2571B; }
/* The finish line: chequered, with the word in the middle */
.tape--finish .tape__belt {
  display: grid; place-items: center;
  padding-block: 7px;
  border-color: var(--ink);
  background: repeating-conic-gradient(var(--ink) 0 25%, #FFFBF0 0 50%) 0 0 / 22px 22px;
}
.tape--finish span {
  padding: 4px 16px;
  background: #C91F18;
  color: #FFFBF0;
  font: 900 clamp(.9375rem, 1.6vw, 1.375rem)/1 var(--display);
  font-variation-settings: "wdth" 120;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.tape--fire .tape__run i { color: #C91F18; }

.head {
  margin-top: 14px;
  font: 900 clamp(2.25rem, 1rem + 5.2vw, 5.75rem)/.96 var(--display);
  font-variation-settings: "wdth" 96;
  text-transform: uppercase;
  text-wrap: balance;
}
.lede {
  margin-top: 24px;
  max-width: 44ch;
  font-size: clamp(1.125rem, 1rem + .55vw, 1.4375rem);
  line-height: 1.4;
}

/* KM 1: dates */
.dates {
  margin-top: clamp(40px, 6vw, 80px);
  display: grid;
  gap: clamp(48px, 6vw, 88px);
}
.date { display: grid; gap: 16px; }
/* The next run gets the poster beside it */
.date--lead {
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  grid-template-rows: auto 1fr;
  column-gap: clamp(32px, 5vw, 72px);
}
.date--lead > .poster { grid-column: 2; grid-row: 1 / span 2; }
.poster img { width: 100%; height: auto; box-shadow: 10px 10px 0 #FFC53A; }
.date--lead .date__title {
  margin-bottom: 12px;
  font-size: clamp(1.75rem, 1rem + 2.2vw, 3rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}
.date__day {
  font: 900 clamp(7rem, 15vw, 13rem)/.8 var(--display);
  font-variation-settings: "wdth" 120;
  letter-spacing: -.02em;
}
.date--lead .date__day { font-size: clamp(9rem, 26vw, 23rem); }
/* Chase the Sun: the 14 is a window onto a sunset. main.js sets --sun from
   0 (high) to 1 (gone) as the numeral travels up the screen. */
.date--lead .date__day {
  /* Sizes are in em because the digits are .68em tall from the top of the
     box; the horizon sits at .47em, about two-thirds of the way down. */
  --sun: .35;
  background:
    /* ripples on the water */
    repeating-linear-gradient(180deg, transparent 0 .016em, rgb(255 226 170 / .2) .016em .02em) 0 .47em / 100% .21em no-repeat,
    /* the sun's path of light across the sea */
    radial-gradient(ellipse .14em .22em at 72% 0, rgb(255 220 140 / calc(.85 - var(--sun) * .55)), transparent) 0 .47em / 100% .21em no-repeat,
    /* the sun, clipped at the horizon so it sinks into the sea */
    radial-gradient(circle at 72% calc(.1em + var(--sun) * .5em), #FFFBF0 0 .07em, #FFE7A3 .095em, rgb(255 170 60 / .55) .2em, transparent .42em) 0 0 / 100% .47em no-repeat,
    /* sky and sea; the sky deepens as the sun goes down */
    linear-gradient(180deg,
      color-mix(in srgb, #FFB347, #2B0A2E calc(var(--sun) * 100%)) 0,
      color-mix(in srgb, #FF8A3D, #9B1B3A calc(var(--sun) * 100%)) .28em,
      color-mix(in srgb, #FFE08A, #FF5A1F calc(var(--sun) * 100%)) .47em,
      #A8344A .47em,
      #6E1838 .54em,
      #24071A .68em) 0 0 / 100% .68em no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* a faint rim keeps the digits readable once the sky goes dark */
  -webkit-text-stroke: 2px rgb(255 197 58 / .28);
}
.date__title { font: 800 1.375rem/1.2 var(--display); margin-bottom: 8px; font-variation-settings: "wdth" 100; }
.date__meta { margin-bottom: 12px; font: 400 .75rem/1.6 var(--mono); }
.date > div { max-width: 46ch; }
.date > div > p + p { margin-top: 12px; }
.date__status { font-weight: 600; }
.date__register { margin-top: 18px; }
.date.is-past .date__day { opacity: .35; }

/* KM 2: list */
.list-label { margin-top: clamp(48px, 7vw, 88px); }
.perks { position: relative; margin-top: 14px; }
.perks li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  position: relative;
  padding-block: 15px;
}
/* Divider lines are drawn so they can run in like the road */
.perks::before,
.perks li::after,
.log__row::before {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 2px;
  background: currentColor;
  transform-origin: left;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
.perks::before, .log__row::before { top: 0; }
.perks li::after { bottom: 0; }
.perks li > * { transition: opacity .5s ease-out .1s, transform .6s cubic-bezier(.2, .7, .2, 1) .1s; }
.has-reveals .perks:not(.is-in)::before,
.has-reveals .perks li:not(.is-in)::after,
.has-reveals .log__row:not(.is-in)::before { transform: scaleX(0); }
.has-reveals .perks li:not(.is-in) > * { opacity: 0; transform: translateX(-14px); }

/* Headlines stamp in line by line */
.head.is-waiting { opacity: 0; }
.head__line { display: block; overflow: hidden; padding-top: .08em; margin-top: -.08em; white-space: nowrap; }
.head__line > span { display: block; }
.perks span {
  font: 800 clamp(1.3125rem, 1rem + 1.9vw, 2.75rem)/1.05 var(--display);
  font-variation-settings: "wdth" 92;
}
.perks small { font: 400 .6875rem/1.4 var(--mono); white-space: nowrap; }
.perks span { flex: 1; transition: transform .25s ease-out; }

/* Perk stickers: a yellow badge per perk, slapped on at a slight angle */
.perk__icon {
  --tilt: -6deg;
  flex: none;
  align-self: center;
  display: grid; place-items: center;
  width: clamp(40px, 4vw, 52px); aspect-ratio: 1;
  border-radius: 50%;
  background: #FFC53A;
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(var(--tilt));
}
.perks li:nth-child(2n) .perk__icon { --tilt: 7deg; }
.perks li:nth-child(3n) .perk__icon { --tilt: -3deg; }
.perk__icon svg {
  width: 56%; height: 56%;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.has-reveals .perks li > .perk__icon { opacity: 1; transition: none; }
.has-reveals .perks li:not(.is-in) > .perk__icon { opacity: 1; transform: rotate(var(--tilt)) scale(0); }
.has-reveals .perks li.is-in > .perk__icon { animation: sticker .5s cubic-bezier(.3, 1.7, .5, 1) .15s backwards; }
@keyframes sticker {
  from { transform: rotate(calc(var(--tilt) - 40deg)) scale(0); }
}
.perks li:hover .perk__icon { animation: wiggle .4s ease-in-out; }
.perks li:hover span { transform: translateX(6px); }
@keyframes wiggle {
  25% { transform: rotate(calc(var(--tilt) + 12deg)) scale(1.08); }
  75% { transform: rotate(calc(var(--tilt) - 10deg)) scale(1.04); }
}

/* Rubber stamp on each run that has happened */
.log__row > div:first-child { position: relative; }
.stamp {
  position: absolute; bottom: -14px; right: 8%;
  display: grid; justify-items: center;
  padding: 6px 12px 7px;
  border: 4px double #C91F18;
  border-radius: 6px;
  color: #C91F18;
  font: 900 clamp(1.25rem, 2.2vw, 1.75rem)/.95 var(--display);
  text-transform: uppercase;
  letter-spacing: .04em;
  transform: rotate(-12deg);
  opacity: .82;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.stamp small { font: 600 .5625rem/1.2 var(--mono); letter-spacing: .08em; }
.has-reveals .log__row:not(.is-in) .stamp { opacity: 0; }
.has-reveals .log__row.is-in .stamp { animation: stamp .38s cubic-bezier(.5, 0, .7, .2) .45s backwards; }
@keyframes stamp {
  from { opacity: 0; transform: rotate(-20deg) scale(2.6); }
  80% { opacity: .9; transform: rotate(-11deg) scale(.94); }
}

/* Reels: pinned up like photos, with a strip of tape */
.reel { position: relative; transform: rotate(1.6deg); transition: transform .3s ease-out; }
.log__row:nth-child(2n) .reel { transform: rotate(-1.8deg); }
.reel:hover, .log__row:nth-child(2n) .reel:hover { transform: none; }
.reel__frame { box-shadow: 8px 8px 0 var(--ink); }
.reel::before {
  content: "";
  position: absolute; z-index: 2;
  top: -14px; left: 50%;
  width: 96px; height: 28px;
  background: rgb(255 251 240 / .72);
  box-shadow: 0 1px 2px rgb(0 0 0 / .15);
  transform: translateX(-50%) rotate(-4deg);
}

/* KM 3: founder */
.founder {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.founder .head { font-size: clamp(2.25rem, 1rem + 3.6vw, 4.25rem); }
.founder p:not(.label):not(.lede) { margin-top: 16px; max-width: 54ch; }
.pull {
  margin-block: 28px 20px;
  font: 800 clamp(1.5rem, 1rem + 2vw, 2.625rem)/1.1 var(--display);
  font-variation-settings: "wdth" 92;
}

/* Photo slots: a file dropped into assets/photos replaces the placeholder */
.slot {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, rgb(20 10 8 / .1) 0 2px, transparent 2px 10px);
  box-shadow: inset 0 0 0 2px rgb(20 10 8 / .55);
  display: grid;
  place-items: center;
  text-align: center;
}

/* Founder photo: a steel plate with the logo's bottom-right corner cut away.
   The offset lives on the wrapper because a clip-path would cut it off. */
.plate { position: relative; --cut: clamp(36px, 4vw, 56px); filter: drop-shadow(10px 10px 0 #C91F18); }
/* Founder seal: a stamp on the corner of the photo that turns as you scroll */
.seal {
  position: absolute; z-index: 2;
  top: calc(clamp(84px, 9vw, 120px) * -.38);
  right: calc(clamp(84px, 9vw, 120px) * -.38);
  width: clamp(84px, 9vw, 120px);
  height: auto;
  overflow: visible;
}
.seal circle { fill: #FFC53A; stroke: var(--ink); stroke-width: 2; }
@media (max-width: 600px) {
  .seal { right: -6px; }
}
.seal text {
  fill: var(--ink);
  font: 700 10.5px/1 var(--mono);
  letter-spacing: .08em;
}
.plate__frame {
  padding: 10px 10px 0;
  background: var(--ink);
  color: var(--white-heat);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}
.plate__photo { aspect-ratio: 4 / 5; overflow: hidden; }
.plate__photo img { width: 100%; height: 100%; object-fit: cover; }
.plate__tag {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--cut) 13px 2px;
  font: 600 .75rem/1.3 var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.plate__tag span:first-child { color: var(--orange-to); }
.slot figcaption { font: 400 .6875rem/1.6 var(--mono); }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Reel: a vertical video that plays on scroll */
.reel { width: 100%; max-width: 360px; justify-self: center; }
.reel figcaption { margin-top: 10px; font-size: .9375rem; }
.reel__frame {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--black-heat);
}
.reel video { display: block; width: 100%; height: 100%; object-fit: cover; }
.reel__sound {
  position: absolute; right: 10px; bottom: 10px;
  padding: 8px 12px;
  border: 0;
  background: var(--black-heat);
  color: var(--white-heat);
  font: 600 .6875rem/1 var(--mono);
  cursor: pointer;
}
.reel__sound:focus-visible { outline-color: var(--white-heat); outline-offset: -3px; }

/* Without a video file: Instagram's embed, zoomed so its video fills the frame
   and its header and black side bars fall outside. Instagram's inline styles
   beat margins, so this uses a transform. Its frame also insists on 326px,
   too wide for the smallest phones. */
.reel__frame.is-embed .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; }
.reel__frame.is-embed iframe {
  min-width: 0 !important;
  transform-origin: 50% 0;
  transform: scale(1.42) translateY(-54px);
}

/* KM 4: log */
.log { margin-top: clamp(32px, 5vw, 64px); display: grid; gap: clamp(36px, 5vw, 64px); }
.log__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 5vw, 72px);
  align-items: center;
  position: relative;
  padding-top: 20px;
}
.log__date, .log__where { font: 400 .75rem/1.5 var(--mono); }
.log__where { margin-top: 12px; }
.log__title {
  margin-block: 12px;
  font: 900 clamp(1.75rem, 1rem + 3vw, 3.5rem)/1 var(--display);
  font-variation-settings: "wdth" 96;
  text-transform: uppercase;
}
.log__row p:not([class]) { max-width: 44ch; }

/* KM 5: finish */
.finish__line {
  margin-top: 16px;
  font: 900 clamp(3.25rem, min(1rem + 11.5vw, 20svh), 12rem)/.88 var(--display);
  font-variation-settings: "wdth" 110;
  text-transform: uppercase;
}
.finish__line .wordmark { margin-top: .12em; color: #C91F18; }
/* Follow: one tile per channel, under the main button */
.follow { margin-top: clamp(40px, 6vw, 64px); }
.follow__list {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
}
.follow__tile {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  height: 100%;
  padding: 16px 18px;
  border: 2px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  transition: background-color .2s ease-out, color .2s ease-out;
}
.follow__icon { flex: none; width: 28px; height: 28px; fill: currentColor; transition: fill .2s ease-out; }
.follow__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.follow__text b { font: 800 1.0625rem/1.15 var(--display); }
.follow__text small { font: 400 .75rem/1.35 var(--mono); }
.follow__arrow { margin-left: auto; font: 600 1.125rem/1 var(--mono); transition: transform .25s ease-out; }
/* Hover: the tile goes ink-dark, the icon catches fire */
.follow__tile:hover, .follow__tile:focus-visible { background: var(--ink); color: var(--white-heat); }
.follow__tile:hover .follow__icon, .follow__tile:focus-visible .follow__icon { fill: #F2571B; }
.follow__tile:hover .follow__arrow, .follow__tile:focus-visible .follow__arrow { transform: translate(3px, -3px); }
.follow__tile:focus-visible { outline: 3px solid #F2571B; outline-offset: 3px; }
@media (max-width: 860px) {
  .follow__list { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .follow__tile, .follow__icon, .follow__arrow { transition: none; }
}

.finish__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; }
/* Footer: past the finish line the metal has cooled back to black */
.foot {
  margin-top: clamp(64px, 9vw, 120px);
  padding-block: calc(var(--slant) + clamp(36px, 5vw, 64px)) 124px; /* clears the watch */
  background: var(--black-heat);
  color: var(--steel);
  clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
}
.foot__in {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 36px 48px;
}
.foot__club { font: 400 .75rem/1.7 var(--mono); }
.foot__name { font-weight: 600; }
.foot__links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 14px; }
.foot__links a {
  display: block;
  padding-block: 4px;
  color: var(--orange-to);
  font-weight: 600;
  text-underline-offset: .3em;
}
.foot__links a:hover { color: #FFC53A; }
.foot__credit span {
  display: block;
  margin-bottom: 8px;
  font: 600 .6875rem/1 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--orange-to);
}
.foot__credit strong {
  display: block;
  font: 800 clamp(1.375rem, 3.1vw, 2.5rem)/1.05 var(--display);
  font-variation-settings: "wdth" 100;
  background: linear-gradient(180deg, var(--steel) 0 40%, #FFC53A 66%, #F2571B 84%, #A3141A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: font-variation-settings .35s cubic-bezier(.2, .7, .2, 1);
}
.foot__credit a {
  display: inline-flex; align-items: flex-start; gap: .3em;
  text-decoration: none;
}
.foot__credit a i {
  font: 600 clamp(.875rem, 1.6vw, 1.25rem)/1 var(--mono);
  font-style: normal;
  color: #FFC53A;
  transition: transform .25s ease-out;
}
/* The name gets hammered out a little wider on hover, and the arrow lifts */
.foot__credit a:hover strong, .foot__credit a:focus-visible strong { font-variation-settings: "wdth" 112; }
.foot__credit a:hover i, .foot__credit a:focus-visible i { transform: translate(3px, -3px); }
.foot__credit a:focus-visible { outline: 2px solid #FFC53A; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .foot__credit strong, .foot__credit a i { transition: none; } }

/* Motion: rise in, tilt, pull */
.has-motion .rise {
  opacity: 0;
  translate: 0 28px;
  transition: opacity .6s ease-out var(--d, 0s), translate .9s cubic-bezier(.16, 1, .3, 1) var(--d, 0s);
}
.has-motion .rise.is-up { opacity: 1; translate: 0 0; }
.poster, .plate { transition: transform .45s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
.plate__photo img { transform: scale(1.12); }
.btn, .watch__join { transition: padding .18s ease-out, translate .3s cubic-bezier(.2, .7, .2, 1); }

/* Easter egg: the forge overheats */
.overheat__flash {
  position: fixed; inset: 0; z-index: 40;
  background: radial-gradient(circle at 50% 60%, #FFFBF0, #FFC53A 35%, #F2571B 65%, #A3141A);
  pointer-events: none;
}
.overheat__ember { position: fixed; z-index: 41; border-radius: 50%; pointer-events: none; }
.overheat__toast {
  position: fixed; left: 50%; top: 22px; z-index: 42;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 12px 16px;
  background: var(--ink);
  color: var(--white-heat);
  box-shadow: 6px 6px 0 #F2571B;
  font: 600 .8125rem/1.35 var(--mono);
  text-align: center;
  transform: translate(-50%, -140%);
  pointer-events: none;
}

/* The watch */
.watch {
  position: fixed;
  right: clamp(12px, 2vw, 28px);
  bottom: clamp(12px, 2vw, 28px);
  z-index: 10;
  display: flex;
  align-items: stretch;
  background: var(--black-heat);
  color: var(--white-heat);
  box-shadow: 0 0 0 1px rgb(255 255 255 / .22);
}
.watch__face {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 5px 12px;
  padding: 9px 12px 8px;
  font: 400 .6875rem/1.2 var(--mono);
  font-variant-numeric: tabular-nums;
}
.watch__km b { font-weight: 600; font-size: .875rem; }
.watch__time { align-self: end; text-align: right; }
/* Heart rate: climbs when you scroll hard, settles when you slow down */
.watch__bpm { align-self: end; white-space: nowrap; }
.watch__bpm i {
  display: inline-block;
  margin-right: 4px;
  font-style: normal;
  color: #F2571B;
  animation: heartbeat var(--beat, .83s) ease-out infinite;
}
@keyframes heartbeat {
  0%, 40%, 100% { transform: scale(1); }
  15% { transform: scale(1.35); }
}
.watch.is-redline { animation: redline .12s linear infinite; }
.watch.is-redline .watch__bpm b { color: #FFC53A; }
@keyframes redline {
  25% { transform: translate(1px, -1px); }
  75% { transform: translate(-1px, 1px); }
}
.watch__easy {
  position: absolute; right: 0; bottom: calc(100% + 6px);
  padding: 4px 8px;
  background: #FFC53A;
  color: var(--ink);
  font: 600 .6875rem/1.2 var(--mono);
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px) scale(.9);
  transform-origin: 100% 100%;
  transition: opacity .15s ease-out, transform .15s ease-out;
  pointer-events: none;
}
.watch.is-redline:not(.is-finished) .watch__easy {
  opacity: 1;
  transform: none;
  transition: opacity .2s ease-out, transform .34s cubic-bezier(.2, 1.6, .4, 1);
}
.watch__track { grid-column: 1 / -1; height: 3px; background: rgb(255 255 255 / .22); }
.watch__track i {
  display: block; height: 100%; width: 100%;
  transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, #A3141A, #F2571B, #FFC53A, #FFFBF0);
}
/* Finish: a tag pops up on the watch at 5.00 km */
.watch__done {
  position: absolute; right: 0; bottom: calc(100% + 6px);
  padding: 4px 8px;
  background: #C91F18;
  color: var(--white-heat);
  font: 600 .6875rem/1.2 var(--mono);
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: 0;
  transform: translateY(8px) scale(.9);
  transform-origin: 100% 100%;
  transition: opacity .15s ease-out, transform .15s ease-out;
  pointer-events: none;
}
.watch.is-finished .watch__done {
  opacity: 1;
  transform: none;
  transition: opacity .2s ease-out, transform .34s cubic-bezier(.2, 1.6, .4, 1);
}
.finish { position: relative; }
.finish__line { position: relative; z-index: 1; }
.finish__ember { position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; }

.watch__join {
  display: flex; align-items: center;
  padding-inline: 14px;
  background: var(--orange-from);
  color: var(--ink);
  font: 800 .9375rem/1 var(--display);
  text-decoration: none;
}
.watch__join:hover { background: var(--lemon-to); }
.watch__join:focus-visible { outline-color: var(--white-heat); outline-offset: 2px; }

/* Tablet and phone */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .route__stop span { display: none; }
  .hero__body { grid-template-columns: 1fr; align-items: end; }
  .dates, .founder, .log__row { grid-template-columns: minmax(0, 1fr); }
  .date--lead .date__day { font-size: clamp(9rem, 44vw, 20rem); }
  .date--lead { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .date--lead > .poster { grid-column: auto; grid-row: auto; max-width: 440px; margin: 16px 10px 0 0; }
  .plate { max-width: 420px; margin-right: 10px; }
  .perks small { font-size: .625rem; }
}
@media (max-width: 480px) {
  .perks li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 4px; }
  .perks li .perk__icon { grid-row: span 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .route__stop.is-next::before { animation: none; }
  .btn::after, .watch__join::after { display: none; }
  .watch__done { transition: none; }
  .watch__bpm i { animation: none; }
  .route__embers { display: none; }
  .btn { transition: none; }
}
