/* KPS · Build 11. Mobile first. Colour photographs carry the page; type is big and plain. */
/* fonts: self-hosted, Open Font License (see /assets/fonts/LICENSE.txt) */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/barlow-500.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/barlow-600.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/barlow-condensed-600.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/barlow-condensed-700.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url(/assets/fonts/barlow-condensed-800.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/montserrat-var.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #F4F2ED; --ink: #111214; --night: #0A0D16;
  --red: #EE2136; --red-field: #E01B30; --coral: #F15E53; --mint: #4BC2A0; --sky: #5C92D1; --lemon: #FEEF70;
  --bg: var(--paper); --fg: var(--ink); --soft: rgba(17, 18, 20, .66); --rule: rgba(17, 18, 20, .16);
  --pad: 20px;
  --gap: 10px;
  --cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --ui: 'Barlow', system-ui, sans-serif;
  --text: 'Montserrat', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, 0, 1);
}
@media (min-width: 721px) { :root { --pad: clamp(28px, 3.2vw, 56px); --gap: clamp(12px, 1.2vw, 20px); } }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { background: var(--bg); color: var(--fg); font: 400 16.5px/1.62 var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
@media (min-width: 721px) { body { font-size: 17.5px; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; }
.skip:focus { left: 8px; }
@view-transition { navigation: auto; }

.wrap { padding-left: var(--pad); padding-right: var(--pad); }
.fit { display: inline-block; white-space: nowrap; }
.lead { font: 500 clamp(20px, 5.4vw, 24px)/1.36 var(--text); letter-spacing: -.01em; }
@media (min-width: 721px) { .lead { font-size: clamp(22px, 1.75vw, 30px); } }
.h-xl { font: 800 clamp(64px, 19vw, 230px)/.82 var(--cond); text-transform: uppercase; letter-spacing: -.015em; margin-left: -.03em; }
@media (min-width: 721px) { .h-xl { font-size: clamp(96px, 11vw, 230px); } }

/* a plain text link with a drawn arrow */
.go { display: inline-flex; align-items: center; gap: 12px; font: 700 22px/1 var(--cond); text-transform: uppercase; letter-spacing: .01em; padding: 14px 0 12px; border-bottom: 2px solid currentColor; transition: gap .45s var(--ease); }
.go::after { content: ''; width: 22px; height: 12px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 12'%3E%3Cpath d='M0 6h20M15 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 12'%3E%3Cpath d='M0 6h20M15 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat; }
.go:hover { gap: 20px; }
.go-big { font-size: clamp(28px, 8vw, 44px); }

/* photo boxes: blurred placeholder behind, photo fades in, reveal on entry */
.ph { position: relative; overflow: hidden; background: #c9c5bc center/cover no-repeat; }
.ph img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.js .ph img { opacity: 0; transition: opacity .7s ease; }
.js .ph img.ok { opacity: 1; }
.js .ph[data-rv] { clip-path: inset(8% 6% 8% 6%); transition: clip-path 1.2s var(--ease); }
.js .ph[data-rv] img { transform: scale(1.14); transition: opacity .7s ease, transform 1.6s var(--ease); }
.js .ph[data-rv].in { clip-path: inset(0); }
.js .ph[data-rv].in img { transform: none; }

/* ---------- header and menu ---------- */
.top { position: absolute; z-index: 20; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: calc(16px + env(safe-area-inset-top)) var(--pad) 0; }
.logo img { width: 74px; }
.nav { display: none; }
.top-light { color: #fff; }
@media (min-width: 1081px) {
  .logo img { width: 92px; }
  .nav { display: flex; gap: clamp(18px, 2vw, 34px); font: 600 16px/1 var(--ui); }
  .nav a { padding: 8px 0; border-bottom: 2px solid transparent; transition: border-color .3s; }
  .nav a:hover, .nav a[aria-current] { border-color: currentColor; }
}
/* the menu button sits where a thumb can reach it */
.menu-btn { position: fixed; z-index: 40; right: var(--pad); bottom: calc(18px + env(safe-area-inset-bottom)); height: 52px; padding: 0 22px; background: var(--ink); color: #fff; font: 700 19px/52px var(--cond); text-transform: uppercase; letter-spacing: .04em; box-shadow: 0 10px 30px rgba(0, 0, 0, .22); transition: transform .5s var(--ease), background .3s; }
.menu-btn[aria-expanded="true"] { background: var(--red); }
@media (min-width: 1081px) { .menu-btn { transform: translateY(160%); } .scrolled .menu-btn { transform: none; } }
.menu { position: fixed; inset: 0; z-index: 35; background: var(--ink); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 80px var(--pad) calc(96px + env(safe-area-inset-bottom)); }
.menu[hidden] { display: none; }
.menu-links { display: flex; flex-direction: column; }
.menu-links a { font: 800 clamp(46px, 13.4vw, 120px)/.92 var(--cond); text-transform: uppercase; letter-spacing: -.01em; padding: 2px 0; transition: color .25s; }
.menu-links a[aria-current], .menu-links a:hover { color: var(--red); }
.js .menu-links a { opacity: 0; transform: translateY(24px); }
.menu.open .menu-links a { opacity: 1; transform: none; transition: opacity .5s ease, transform .7s var(--ease), color .25s; }
.menu.open .menu-links a:nth-child(2) { transition-delay: .03s; } .menu.open .menu-links a:nth-child(3) { transition-delay: .06s; }
.menu.open .menu-links a:nth-child(4) { transition-delay: .09s; } .menu.open .menu-links a:nth-child(5) { transition-delay: .12s; }
.menu.open .menu-links a:nth-child(6) { transition-delay: .15s; } .menu.open .menu-links a:nth-child(7) { transition-delay: .18s; }
.menu.open .menu-links a:nth-child(8) { transition-delay: .21s; }
.menu-out { display: flex; gap: 22px; margin-top: 32px; font: 600 17px/1 var(--ui); color: rgba(255, 255, 255, .7); }
.menu-open { overflow: hidden; }

/* ---------- home: hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--ink); color: #fff; }
.hero > .ph { position: absolute; inset: 0; background-color: var(--ink); }
.hero > .ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 13, 22, .62) 0%, rgba(10, 13, 22, 0) 38%), linear-gradient(to bottom, rgba(10, 13, 22, .38), rgba(10, 13, 22, 0) 22%); }
.hero-name { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: calc(var(--pad) + env(safe-area-inset-bottom) + 64px); font: 800 15vw/.8 var(--cond); text-transform: uppercase; letter-spacing: -.012em; }
.hero-name .fit { margin-left: -.035em; }
.kl { letter-spacing: -.035em; }
@media (min-width: 721px) { .hero-name { bottom: calc(var(--pad) * .6); } }
.js .hero-name .fit { animation: rise 1.3s .1s var(--ease) both; }
.js .hero > .ph img { animation: settle 2.4s var(--ease) both; }
@keyframes rise { from { transform: translateY(40%); opacity: 0; } }
@keyframes settle { from { transform: scale(1.08); } }

/* ---------- home: words with photos set into them ---------- */
.say { padding-top: clamp(72px, 12vh, 160px); padding-bottom: clamp(80px, 13vh, 170px); }
.say-t { font: 800 clamp(58px, 16.6vw, 210px)/.9 var(--cond); text-transform: uppercase; letter-spacing: -.012em; margin-left: -.03em; }
@media (min-width: 721px) { .say-t { font-size: clamp(80px, 9.8vw, 210px); } }
.inl { display: inline-block; width: 1.32em; height: .74em; vertical-align: -.02em; overflow: hidden; margin: 0 .04em; background: #c9c5bc; }
.inl img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.say-more { margin-top: clamp(40px, 7vh, 80px); max-width: 34em; }
.say-more p { color: var(--soft); }
.say-more .go { margin-top: 26px; }
@media (min-width: 1081px) { .say-more { margin-left: auto; margin-right: 6vw; } }

/* ---------- home: the night ---------- */
.night { background: var(--night); color: #fff; padding: clamp(72px, 12vh, 150px) 0 clamp(80px, 13vh, 170px); }
.night-num { font: 800 15vw/.8 var(--cond); text-transform: uppercase; letter-spacing: -.012em; color: var(--red); }
.night-num .fit { margin-left: -.03em; }
.count { font-variant-numeric: tabular-nums; }
.night-grid { margin-top: 28px; }
.night-ph { aspect-ratio: 4 / 5; margin: 0 calc(var(--pad) * -1); }
.night-txt { margin-top: 32px; }
.night-txt .go { margin-top: 26px; }
@media (min-width: 721px) {
  .night-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 4vw, 72px); align-items: end; margin-top: clamp(28px, 4vw, 56px); }
  .night-ph { margin: 0; aspect-ratio: 5 / 4; }
  .night-txt { margin: 0; max-width: 24em; }
}

/* ---------- home: race covers you swipe through ---------- */
.races { padding: clamp(72px, 12vh, 150px) 0 clamp(80px, 13vh, 170px); }
.races-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 26px; }
.rail-ctl { display: none; gap: 8px; }
@media (min-width: 1081px) { .rail-ctl { display: flex; } }
.rail-b { width: 56px; height: 56px; background: var(--ink); color: #fff; font: 600 22px/1 var(--ui); transition: background .3s, opacity .3s; }
.rail-b:hover { background: var(--red); }
.rail-b[disabled] { opacity: .25; pointer-events: none; }
.rail { display: flex; gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-left: var(--pad); padding: 0 var(--pad); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail::after { content: ''; flex: 0 0 1px; }
.cover { position: relative; flex: 0 0 80vw; aspect-ratio: 3 / 4; scroll-snap-align: start; overflow: hidden; color: #fff; background: var(--ink); }
@media (min-width: 721px) { .cover { flex-basis: clamp(300px, 29vw, 480px); } }
.cover .ph { position: absolute; inset: 0; }
.cover .ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 13, 22, .78) 0%, rgba(10, 13, 22, .2) 34%, rgba(10, 13, 22, 0) 52%); }
.cover .ph img { transition: transform 1.2s var(--ease), opacity .7s ease; }
.cover:hover .ph img { transform: scale(1.05); }
.cover-t { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.cover-t b { font: 800 clamp(36px, 10vw, 52px)/.88 var(--cond); text-transform: uppercase; letter-spacing: -.005em; }
@media (min-width: 721px) { .cover-t b { font-size: clamp(36px, 3vw, 54px); } .cover-t { left: 22px; right: 22px; bottom: 22px; } }
.cover-t i { font: 600 16px/1.2 var(--ui); font-style: normal; color: rgba(255, 255, 255, .86); }
.rail-foot { display: flex; align-items: center; gap: 24px; margin-top: 22px; }
.rail-bar { flex: 1; height: 2px; background: var(--rule); position: relative; overflow: hidden; }
.rail-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 30%; background: var(--ink); transform-origin: left; }

/* ---------- home: pacing ---------- */
.pace { background: var(--lemon); padding: clamp(72px, 12vh, 150px) 0 clamp(80px, 13vh, 170px); }
.pace-num { font: 800 15vw/.8 var(--cond); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pace-num .fit { margin-left: -.04em; }
.pace-ph { aspect-ratio: 4 / 5; margin-top: 24px; }
.pace-txt { margin-top: 32px; }
.pace-txt .go { margin-top: 26px; }
@media (min-width: 721px) {
  .pace-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
  .pace-grid { align-items: start; }
  .pace-num { grid-column: 1 / span 7; grid-row: 1; }
  .pace-ph { grid-column: 8 / span 5; grid-row: 1 / span 2; margin: 0; }
  .pace-txt { grid-column: 1 / span 6; grid-row: 2; align-self: end; margin: 0; max-width: 24em; }
}

/* ---------- home: club ---------- */
.club { background: var(--sky); padding: clamp(72px, 12vh, 150px) 0 clamp(80px, 13vh, 170px); }
.club .h-xl { font-size: clamp(56px, 16vw, 200px); max-width: 9em; }
@media (min-width: 721px) { .club .h-xl { font-size: clamp(88px, 9.6vw, 200px); } }
.club-lead { margin-top: 28px; max-width: 26em; }
.club-ph { position: relative; margin-top: clamp(40px, 7vh, 80px); margin-bottom: 30px; }
.club-a { aspect-ratio: 7 / 3; margin: 0 calc(var(--pad) * -1); }
.club-b { width: 58%; aspect-ratio: 4 / 5; margin: -18% 0 0 auto; border: 6px solid var(--sky); border-right: 0; }
@media (min-width: 721px) {
  .club-ph { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
  .club-a { grid-column: 1 / span 8; margin: 0; aspect-ratio: 7 / 3.4; }
  .club-b { grid-column: 9 / span 4; width: auto; margin: 0; border: 0; }
}

/* ---------- home: the photo tunnel (kept from v8) ---------- */
.road { position: relative; height: 560vh; background: var(--night); color: #fff; }
.road-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.lanes { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 60%; }
.lights i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; width: 40vmax; height: 40vmax; }
.lights i:nth-child(1) { background: var(--coral); left: -12vmax; top: 18%; }
.lights i:nth-child(2) { background: var(--sky); right: -14vmax; top: 4%; }
.lights i:nth-child(3) { background: var(--red); right: 10%; bottom: -22vmax; opacity: .35; }
.lights i:nth-child(4) { background: var(--lemon); left: 30%; top: -26vmax; opacity: .16; }
.lights i:nth-child(5) { background: var(--mint); left: -16vmax; bottom: -18vmax; opacity: .26; }
.road-h { position: absolute; z-index: 3; left: var(--pad); top: calc(26px + env(safe-area-inset-top)); font: 800 clamp(30px, 8vw, 64px)/.9 var(--cond); text-transform: uppercase; }
.fly { position: absolute; inset: 0; perspective: 900px; }
.fly figure { position: absolute; left: 50%; top: 50%; width: clamp(240px, 62vw, 480px); aspect-ratio: 4 / 5; overflow: hidden; transform: translate(-50%, -50%) translateZ(-4000px); opacity: 0; will-change: transform, opacity; }
@media (min-width: 721px) { .fly figure { width: clamp(260px, 26vw, 480px); } }
.fly img { width: 100%; height: 100%; object-fit: cover; }
.road-cap { position: absolute; z-index: 3; left: var(--pad); bottom: calc(28px + env(safe-area-inset-bottom)); font: 800 clamp(26px, 7vw, 48px)/.9 var(--cond); text-transform: uppercase; display: flex; align-items: center; gap: 12px; transition: opacity .3s; }
.road-cap::before { content: ''; width: .5em; height: .5em; background: var(--lemon); }
@media (max-width: 1080px) { .road-cap { bottom: calc(92px + env(safe-area-inset-bottom)); } }

/* ---------- home: the end ---------- */
.end { background: var(--red-field); color: #fff; padding: clamp(80px, 13vh, 170px) 0 clamp(96px, 15vh, 190px); }
.end-t { font: 800 14vw/.8 var(--cond); text-transform: uppercase; letter-spacing: -.012em; }
.end-t .fit { margin-left: -.035em; }
.end-row { margin-top: 32px; }
.end-row .go { margin-top: 30px; }
@media (min-width: 721px) {
  .end-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; margin-top: clamp(32px, 4vw, 64px); }
  .end-row .lead { grid-column: 1 / span 6; }
  .end-row .go { grid-column: 9 / span 4; justify-self: end; margin: 0; }
}

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #F4F2ED; padding: clamp(72px, 11vh, 140px) var(--pad) calc(96px + env(safe-area-inset-bottom)); }
.foot-motto { font: 800 clamp(54px, 15vw, 150px)/.86 var(--cond); text-transform: uppercase; letter-spacing: -.01em; }
.foot-by { margin-top: 14px; font: 500 16px/1.4 var(--ui); color: rgba(244, 242, 237, .6); }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; }
.foot-cols nav { display: flex; flex-direction: column; gap: 4px; font: 600 18px/1.5 var(--ui); }
.foot-cols a:hover { color: var(--red); }
.foot-base { display: flex; flex-direction: column; gap: 6px; margin-top: 56px; padding-top: 20px; border-top: 1px solid rgba(244, 242, 237, .16); font: 500 15px/1.45 var(--ui); color: rgba(244, 242, 237, .6); }
@media (min-width: 1081px) {
  .foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-bottom: 28px; }
  .foot-motto, .foot-by { grid-column: 1 / span 7; }
  .foot-cols { grid-column: 9 / span 4; grid-row: 1 / span 2; margin-top: 0; align-self: start; }
  .foot-base { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; }
}

/* ---------- 404 ---------- */
.lost { position: relative; min-height: 100svh; color: #fff; display: flex; align-items: flex-end; }
.lost > .ph { position: absolute; inset: 0; }
.lost > .ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 13, 22, .8), rgba(10, 13, 22, .1) 60%); }
.lost-in { position: relative; z-index: 2; width: 100%; padding: 0 var(--pad) calc(100px + env(safe-area-inset-bottom)); }
.lost-t { font: 800 16vw/.8 var(--cond); text-transform: uppercase; color: var(--lemon); }
.lost-in .lead { margin: 22px 0 10px; max-width: 22em; }
.home .foot, .lost + .foot { }

/* ======================================================================
   inner pages
   ====================================================================== */
:root { --sec: clamp(72px, 12vh, 150px); --sec-s: clamp(44px, 7vh, 96px); }
.t-night { --bg: var(--night); --fg: #F4F2ED; --soft: rgba(244, 242, 237, .7); --rule: rgba(244, 242, 237, .18); }
.t-lemon { --bg: var(--lemon); --soft: rgba(17, 18, 20, .74); --rule: rgba(17, 18, 20, .2); }
.t-sky { --bg: var(--sky); --soft: rgba(17, 18, 20, .78); --rule: rgba(17, 18, 20, .22); }
.t-mint { --bg: var(--mint); --soft: rgba(17, 18, 20, .76); --rule: rgba(17, 18, 20, .2); }
.t-red { --bg: var(--red-field); --fg: #fff; --soft: rgba(255, 255, 255, .84); --rule: rgba(255, 255, 255, .3); }
.sec { padding-top: var(--sec); padding-bottom: var(--sec); }
.sec-s { padding-top: var(--sec-s); padding-bottom: var(--sec-s); }

/* every inner page opens on one photo */
.open { position: relative; height: 92svh; min-height: 540px; overflow: hidden; background: var(--ink); color: #fff; }
.open > .ph { position: absolute; inset: 0; background-color: var(--ink); }
.open > .ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 13, 22, .72) 0%, rgba(10, 13, 22, 0) 46%), linear-gradient(to bottom, rgba(10, 13, 22, .4), rgba(10, 13, 22, 0) 22%); }
.open-in { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: calc(var(--pad) + 76px + env(safe-area-inset-bottom)); }
.open-t { font: 800 clamp(54px, 15.5vw, 120px)/.84 var(--cond); text-transform: uppercase; letter-spacing: -.012em; margin-left: -.03em; text-wrap: balance; }
.open-t .yr { color: var(--lemon); }
.open-s { margin-top: 16px; max-width: 26em; font: 600 18px/1.35 var(--ui); color: rgba(255, 255, 255, .88); }
@media (min-width: 721px) {
  .open { height: 100svh; }
  .open-in { bottom: calc(var(--pad) * .9); }
  .open-t { font-size: clamp(96px, 10.4vw, 210px); max-width: 11em; }
  .open-s { font-size: 20px; }
}
.js .open-t { animation: rise 1.3s .1s var(--ease) both; }
.js .open > .ph img { animation: settle 2.4s var(--ease) both; }

/* reading column: sits right of centre on wide screens */
.col > * { max-width: 36em; }
@media (min-width: 1081px) { .wrap.col > * { margin-left: calc(100% / 12 * 4); } }
.lead + .prose, .prose + .big-list, .big-list + .prose { margin-top: 26px; }
.prose p + p { margin-top: 1em; }
.prose a { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
.prose a:hover { color: var(--red); }
.t-red .prose a:hover, .t-sky .prose a:hover { color: var(--ink); }
.note-s { margin-top: 20px; font: 500 15px/1.45 var(--ui); color: var(--soft); }

/* pulled quotes: big, plain, his words */
.quote { font: 700 clamp(38px, 10.6vw, 64px)/.98 var(--cond); letter-spacing: -.01em; max-width: 15em; text-wrap: balance; }
@media (min-width: 721px) { .quote { font-size: clamp(56px, 6.2vw, 124px); } }
.quote-s { font-size: clamp(28px, 7.4vw, 40px); margin-top: 28px; }
@media (min-width: 721px) { .quote-s { font-size: clamp(30px, 2.6vw, 48px); } }

/* chapters */
.chap { padding: var(--sec-s) 0; border-top: 1px solid var(--rule); }
.wrap.chap { border-top: 0; }
.chap-t { font: 800 clamp(44px, 12.4vw, 76px)/.9 var(--cond); text-transform: uppercase; letter-spacing: -.008em; margin-bottom: 24px; text-wrap: balance; }
@media (min-width: 1081px) {
  .chap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  .chap-t { grid-column: 1 / span 4; font-size: clamp(56px, 4.6vw, 92px); margin: 0; position: sticky; top: 40px; }
  .chap > :not(.chap-t) { grid-column: 5 / span 8; }
}
.big-list { list-style: none; border-top: 1px solid var(--rule); }
.big-list li { font: 700 clamp(26px, 7.4vw, 40px)/1.05 var(--cond); text-transform: uppercase; padding: 12px 0 10px; border-bottom: 1px solid var(--rule); }
.qs { list-style: none; counter-reset: q; border-top: 1px solid var(--rule); }
.qs li { counter-increment: q; display: grid; grid-template-columns: 1.6em 1fr; font: 700 clamp(30px, 8.6vw, 76px)/1 var(--cond); padding: 16px 0 14px; border-bottom: 1px solid var(--rule); }
.qs li::before { content: counter(q); color: var(--red); font-variant-numeric: tabular-nums; }

/* photographs in rows */
.row { display: flex; flex-wrap: wrap; gap: 8px; }
.row + .row { margin-top: 8px; }
.row figure { flex: 1 1 calc(50% - 4px) !important; min-width: 0; }
.row figure .ph { aspect-ratio: 4 / 5; }
.row figure.w { flex-basis: 100% !important; }
.row figure.w .ph { aspect-ratio: var(--r); }
figcaption { margin-top: 10px; font: 500 14.5px/1.4 var(--ui); color: var(--soft); }
@media (min-width: 721px) {
  .row { flex-wrap: nowrap; gap: var(--gap); }
  .row + .row { margin-top: calc(var(--gap) * 2); }
  .row figure, .row figure.w { flex: var(--r) 1 0 !important; }
  .row figure .ph, .row figure.w .ph { aspect-ratio: var(--r); }
}
.bleed figcaption { padding: 0 var(--pad); }
.wide-fig .ph { aspect-ratio: 4 / 5; }
@media (min-width: 721px) { .wide-fig .ph { aspect-ratio: 21 / 9; } }

/* the next page, as one big photograph */
.nxt { position: relative; display: block; height: 72svh; min-height: 420px; overflow: hidden; color: #fff; background: var(--ink); }
.nxt > .ph { position: absolute; inset: 0; background-color: var(--ink); }
.nxt > .ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 13, 22, .74) 0%, rgba(10, 13, 22, .1) 50%, rgba(10, 13, 22, .2)); transition: background .5s; }
.nxt > .ph img { transition: transform 1.4s var(--ease), opacity .7s ease; }
.nxt:hover > .ph img { transform: scale(1.04); }
.nxt-in { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: calc(var(--pad) + 76px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }
.nxt-l { font: 600 18px/1 var(--ui); }
.nxt-t { font: 800 clamp(52px, 14.6vw, 110px)/.86 var(--cond); text-transform: uppercase; letter-spacing: -.01em; margin-left: -.03em; text-wrap: balance; }
@media (min-width: 721px) {
  .nxt { height: 86vh; }
  .nxt-in { bottom: calc(var(--pad) * .9); }
  .nxt-t { font-size: clamp(90px, 9.4vw, 190px); }
}
.pn .nxt { height: 58svh; }
@media (min-width: 721px) {
  .pn { display: grid; grid-template-columns: 1fr 1fr; }
  .pn .nxt { height: 78vh; }
  .pn .nxt-t { font-size: clamp(54px, 5vw, 104px); }
}

/* story */
.bleed { display: block; }

/* moonlight */
.ml-km { font: 800 15vw/.8 var(--cond); text-transform: uppercase; letter-spacing: -.012em; color: var(--red); }
.ml-km .fit { margin-left: -.03em; }
.ml-sum { margin-top: 26px; max-width: 22em; }
@media (min-width: 1081px) { .ml-sum { margin-left: calc(100% / 12 * 4); } }
.ml-end { border-top: 1px solid var(--rule); }
.note-s a { text-decoration: underline; text-underline-offset: .18em; }
.big-n { padding-top: var(--sec-s); }
.lap { position: fixed; z-index: 30; left: var(--pad); bottom: calc(18px + env(safe-area-inset-bottom)); height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 16px; background: var(--night); border: 1px solid var(--rule); color: #F4F2ED; opacity: 0; transform: translateY(20px); transition: opacity .4s, transform .5s var(--ease); pointer-events: none; }
.lap.on { opacity: 1; transform: none; }
.lap b { font: 800 30px/1 var(--cond); color: var(--red); font-variant-numeric: tabular-nums; }
.lap span { font: 600 15px/1 var(--ui); color: rgba(244, 242, 237, .72); }
html:not(.js) .lap, .calm .lap { display: none; }

/* races index */
.rc-head { padding-top: clamp(130px, 20vh, 220px); padding-bottom: clamp(32px, 5vh, 60px); }
.rc-head .lead { margin-top: 22px; max-width: 24em; }
.rc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rc-grid .cover { flex: none; aspect-ratio: 3 / 4; }
.rc-grid .cover:first-child, .rc-grid .cover:last-child { grid-column: span 2; aspect-ratio: 3 / 2; }
.rc-grid .cover-t { left: 12px; right: 12px; bottom: 12px; gap: 5px; }
.rc-grid .cover-t b { font-size: clamp(23px, 6.6vw, 34px); }
.rc-grid .cover-t i { font-size: 14px; }
.rc-grid .cover:first-child .cover-t b, .rc-grid .cover:last-child .cover-t b { font-size: clamp(32px, 9.6vw, 52px); }
@media (min-width: 721px) {
  .rc-grid { grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
  .rc-grid .cover:first-child { grid-column: span 3; aspect-ratio: 2.3; }
  .rc-grid .cover:last-child { grid-column: auto; aspect-ratio: 3 / 4; }
  .rc-grid .cover-t { left: 20px; right: 20px; bottom: 20px; gap: 8px; }
  .rc-grid .cover-t b, .rc-grid .cover:last-child .cover-t b { font-size: clamp(30px, 3vw, 50px); }
  .rc-grid .cover:first-child .cover-t b { font-size: clamp(56px, 6vw, 110px); }
  .rc-grid .cover-t i { font-size: 16px; }
}
@media (min-width: 1281px) {
  .rc-grid { grid-template-columns: repeat(4, 1fr); }
  .rc-grid .cover:first-child, .rc-grid .cover:last-child { grid-column: span 2; aspect-ratio: auto; }
  .rc-grid .cover:first-child .cover-t b, .rc-grid .cover:last-child .cover-t b { font-size: clamp(56px, 4.6vw, 96px); }
}

/* a race */
.rp-facts { padding-top: var(--sec-s); padding-bottom: var(--sec-s); }
.back { display: inline-flex; align-items: center; gap: 10px; font: 600 17px/1 var(--ui); padding: 8px 0; }
.back::before { content: ''; width: 18px; height: 10px; background: currentColor; transform: scaleX(-1); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 12'%3E%3Cpath d='M0 6h20M15 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 12'%3E%3Cpath d='M0 6h20M15 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat; }
.back:hover { color: var(--red); }
.facts { list-style: none; margin-top: 22px; border-top: 2px solid var(--fg); }
.facts li { font: 800 clamp(34px, 10vw, 60px)/1 var(--cond); text-transform: uppercase; padding: 12px 0 10px; border-bottom: 1px solid var(--rule); }
@media (min-width: 721px) {
  .facts { display: flex; flex-wrap: wrap; column-gap: clamp(28px, 4vw, 72px); border-bottom: 1px solid var(--rule); }
  .facts li { border: 0; font-size: clamp(40px, 4.4vw, 84px); padding: 16px 0 12px; }
}

/* pacing */
.flag + .flag { margin-top: var(--sec); }
.flag-t { font: 800 38vw/.8 var(--cond); letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 0 0 20px -.04em; }
.flag figure .ph { aspect-ratio: 4 / 5; }
.flag > p:last-child { margin-top: 22px; max-width: 24em; }
@media (min-width: 721px) {
  .flags { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gap); align-items: start; }
  .flag + .flag { margin-top: 18vh; }
  .flag-t { font-size: clamp(150px, 17vw, 330px); }
}
.flags + .chap { margin-top: var(--sec-s); }

/* club */
.tb-ph .ph { aspect-ratio: 4 / 5; }
.tb-txt { margin-top: 36px; }
@media (min-width: 721px) {
  .tb { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; }
  .tb-ph { grid-column: 1 / span 5; }
  .tb-txt { grid-column: 7 / span 6; margin: 0; max-width: 32em; }
}

/* notes */
.note { padding-top: var(--sec-s); padding-bottom: var(--sec-s); }
.note + .note { border-top: 1px solid var(--rule); }
.note-n { font: 800 clamp(96px, 30vw, 150px)/.78 var(--cond); margin: 0 0 18px -.04em; }
.note-ph { margin: 6px 0 28px; }
.note-ph .ph { aspect-ratio: 4 / 5; }
.note-txt > * { max-width: 34em; }
.note-txt .big-list { margin-top: 26px; }
@media (min-width: 721px) {
  .note { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  .note-n { grid-column: 1 / span 2; grid-row: 1 / span 2; font-size: clamp(110px, 11vw, 220px); margin: 0; }
  .note .chap-t { grid-column: 3 / span 6; grid-row: 1; position: static; }
  .note-txt { grid-column: 3 / span 5; grid-row: 2; }
  .note-ph { grid-column: 9 / span 4; grid-row: 1 / span 2; margin: 0; }
}

/* contact */
.ct { padding-top: clamp(130px, 20vh, 220px); padding-bottom: var(--sec); }
.ct-t { font: 800 15vw/.8 var(--cond); text-transform: uppercase; letter-spacing: -.012em; }
.ct-t .fit { margin-left: -.035em; }
.ct-grid { margin-top: 32px; }
.ct-links { display: flex; flex-direction: column; margin-top: 36px; border-top: 2px solid currentColor; }
.ct-links a { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 20px; padding: 16px 0 14px; border-bottom: 1px solid var(--rule); font: 800 clamp(42px, 12vw, 80px)/.95 var(--cond); text-transform: uppercase; transition: color .25s; }
.ct-links a span { font: 500 16px/1.3 var(--ui); text-transform: none; color: var(--soft); }
.ct-links a:hover { color: var(--ink); }
.ct-ph { margin-top: 48px; }
.ct-ph .ph { aspect-ratio: 4 / 5; }
@media (min-width: 721px) {
  .ct-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; margin-top: clamp(32px, 4vw, 64px); }
  .ct-l { grid-column: 1 / span 7; }
  .ct-ph { grid-column: 9 / span 4; margin: 0; }
}

/* contact form */
.form { margin-top: 36px; display: grid; gap: 22px; }
.field { display: grid; gap: 8px; border: 0; min-width: 0; }
.field label, .field legend { font: 600 17px/1.2 var(--ui); padding: 0; }
.field legend { margin-bottom: 10px; }
.field input, .field textarea { width: 100%; font: 500 18px/1.4 var(--text); color: var(--ink); background: #fff; border: 2px solid transparent; border-radius: 0; padding: 14px 14px; -webkit-appearance: none; appearance: none; transition: border-color .2s; }
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--lemon); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: block; font: 600 17px/1 var(--ui); padding: 13px 16px; border: 2px solid rgba(255, 255, 255, .55); transition: background .2s, color .2s, border-color .2s; }
.chip input:checked + span { background: #fff; color: var(--ink); border-color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--lemon); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.send { justify-self: start; height: 60px; padding: 0 30px; background: var(--ink); color: #fff; font: 700 24px/60px var(--cond); text-transform: uppercase; letter-spacing: .02em; transition: background .25s, color .25s; }
.send:hover { background: #fff; color: var(--ink); }
.send[disabled] { opacity: .6; pointer-events: none; }
.form-msg { font: 600 17px/1.4 var(--ui); background: var(--ink); color: #fff; padding: 14px 16px; }
.t-red :focus-visible { outline-color: var(--lemon); }

.form + .ct-links { margin-top: 56px; }

/* ---------- reduced motion, or no JS ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .ph[data-rv], .js .ph[data-rv] img { clip-path: none; transform: none; }
}
.calm .road, html:not(.js) .road { height: auto; }
.calm .road-pin, html:not(.js) .road-pin { position: relative; height: auto; padding: 120px var(--pad) var(--pad); }
.calm .road-h, html:not(.js) .road-h { position: relative; left: auto; top: auto; margin-bottom: 32px; }
.calm .fly, html:not(.js) .fly { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); perspective: none; }
.calm .fly figure, html:not(.js) .fly figure { position: relative; left: auto; top: auto; width: auto; transform: none !important; opacity: 1 !important; }
.calm .road-cap, html:not(.js) .road-cap, .calm .lanes, html:not(.js) .lanes { display: none; }
@media (min-width: 721px) { .calm .fly, html:not(.js) .fly { grid-template-columns: repeat(4, 1fr); } }
