/* Cubbon Classic 10K — designed homepage (Figma hero + wireframe sections) */

:root {
  --bg: #121212;
  --bg-2: #1a1a1a;
  --orange: #ff5200;
  --muted: #a3a3a3;
  --line: #2d2d2d;
  --white: #ffffff;
  --max: 1322px;
  --gutter: clamp(32px, 5vw, 80px);
  --radius: 8px;
  --radius-btn: 2px;
  --cut: 16px;
  --clip-cut: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  --font: "Syne", sans-serif;
  --font-body: "Poppins", sans-serif;
  --font-heading: "Poppins", sans-serif;
  --font-display: "Roboto Flex", "Syne", sans-serif;
  --font-accent: "Archivo", sans-serif;
  --font-hero: "Zalando Sans Expanded", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: clip; background: var(--bg); }
[id] { scroll-margin-top: 88px; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 72px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
}

.wrap {
  width: min(100%, calc(var(--max) + var(--gutter) * 2));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.navbar {
  font-family: var(--font-body);
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 97%, transparent);
  border-bottom: 1px solid var(--line);
}
body.is-home { background: transparent; }
body.is-home main > section:not(.race-film):not(.section--orange):not(.cta-band),
body.is-home .site-footer {
  position: relative;
  z-index: 1;
  background: var(--bg);
}
body.is-home .hero { z-index: 2; background: #0c0c0c; }

body.is-home .navbar {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
  transition: background 0.28s ease, border-color 0.28s ease, backdrop-filter 0.28s ease;
}
body.is-home .navbar.is-solid {
  background: color-mix(in srgb, var(--bg) 97%, transparent);
  backdrop-filter: none;
  border-bottom-color: var(--line);
}
body.is-home .navbar:not(.is-solid) .logo img,
body.is-home .navbar:not(.is-solid) .aims-mark {
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
}
body.is-home .navbar:not(.is-solid) .mobile-nav {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px);
}

.nav-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
  padding: 10px var(--gutter);
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
}

.logo {
  display: block;
  width: 92px;
  height: 46px;
  flex: none;
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-links { display: none; }

.nav-end {
  display: flex;
  align-items: center;
  gap: 8px;
}

.register-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  background: var(--white);
  border-radius: var(--radius-btn);
  clip-path: var(--clip-cut);
  font-family: var(--font-body);
  position: relative;
  overflow: hidden;
}
.register-nav span {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange);
}
.register-nav img { width: 14px; height: 14px; }

.menu-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  position: relative;
  display: grid;
  place-items: center;
}
.menu-btn__x { display: none; }
.menu-btn__dots {
  position: relative;
  width: 15px;
  height: 15px;
  display: block;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}
.menu-btn__dots i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--white);
  transition:
    top 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    right 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    bottom 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    left 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    width 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    border-radius 0.35s ease,
    background 0.28s ease;
}
.menu-btn__dots i:nth-child(1) { top: 0; left: 0; }
.menu-btn__dots i:nth-child(2) { top: 0; right: 0; }
.menu-btn__dots i:nth-child(3) { bottom: 0; left: 0; }
.menu-btn__dots i:nth-child(4) { bottom: 0; right: 0; }
.menu-btn[aria-expanded="true"] .menu-btn__dots { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__dots i {
  background: #ff2a1f;
  border-radius: 1px;
}
.menu-btn[aria-expanded="true"] .menu-btn__dots i:nth-child(1),
.menu-btn[aria-expanded="true"] .menu-btn__dots i:nth-child(4) {
  top: 6.5px;
  bottom: auto;
  height: 2px;
  width: 8px;
}
.menu-btn[aria-expanded="true"] .menu-btn__dots i:nth-child(1) { left: 0; right: auto; }
.menu-btn[aria-expanded="true"] .menu-btn__dots i:nth-child(4) { right: 0; left: auto; }
.menu-btn[aria-expanded="true"] .menu-btn__dots i:nth-child(2),
.menu-btn[aria-expanded="true"] .menu-btn__dots i:nth-child(3) {
  left: 6.5px;
  right: auto;
  width: 2px;
  height: 8px;
}
.menu-btn[aria-expanded="true"] .menu-btn__dots i:nth-child(2) { top: 0; bottom: auto; }
.menu-btn[aria-expanded="true"] .menu-btn__dots i:nth-child(3) { bottom: 0; top: auto; }

.mobile-nav {
  position: fixed;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100dvh;
  padding: 96px var(--gutter) 40px;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s ease, visibility 0.32s;
}
body.nav-open .navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--bg);
}
body.nav-open .nav-inner { background: var(--bg); }
.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.mobile-nav a {
  padding: 14px 0;
  font-size: 22px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(14px);
}
.mobile-nav.is-open a {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s ease, transform 0.46s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav.is-open a:nth-child(1) { transition-delay: 0.05s; }
.mobile-nav.is-open a:nth-child(2) { transition-delay: 0.08s; }
.mobile-nav.is-open a:nth-child(3) { transition-delay: 0.11s; }
.mobile-nav.is-open a:nth-child(4) { transition-delay: 0.14s; }
.mobile-nav.is-open a:nth-child(5) { transition-delay: 0.17s; }
.mobile-nav.is-open a:nth-child(6) { transition-delay: 0.2s; }
.mobile-nav.is-open a:nth-child(7) { transition-delay: 0.23s; }
.mobile-nav.is-open a:nth-child(8) { transition-delay: 0.26s; }
.mobile-nav a.is-current { font-family: var(--font-body); font-weight: 700; color: var(--orange); }
.mobile-nav[hidden] { display: none; }
body.nav-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .mobile-nav,
  .mobile-nav a,
  .menu-btn__dots,
  .menu-btn__dots i { transition: none; }
}

.nav-links a {
  color: var(--white);
  font-weight: 500;
  background: none;
  padding: 0;
}
.nav-links a:hover { color: var(--orange); }
.nav-links a.is-current {
  font-family: var(--font-body);
  font-weight: 700;
  background: none;
  color: var(--orange);
  height: auto;
  padding: 0;
  border-radius: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  border-radius: var(--radius-btn);
  clip-path: var(--clip-cut);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn::after,
.register-nav::after {
  content: "";
  position: absolute;
  inset: -30% -50%;
  background: linear-gradient(115deg, transparent 36%, rgba(255,255,255,0.55) 50%, transparent 64%);
  transform: translateX(-130%);
  pointer-events: none;
  z-index: 2;
}
.btn:hover::after,
.register-nav:hover::after {
  animation: btn-shine 0.75s ease;
}
@keyframes btn-shine {
  to { transform: translateX(130%); }
}
.btn img { width: 14px; height: 14px; }
.btn-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}
.btn-ghost { background: transparent; color: var(--white); }
.btn-invert {
  background: var(--white);
  border-color: var(--white);
  color: var(--orange);
}
.btn-dark {
  background: #000;
  border-color: #000;
  color: var(--white);
}
.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-lg {
  min-height: 48px;
  padding: 0 22px;
  font-size: 14px;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100svh;
  overflow: hidden;
  padding: 0;
}
.hero__media,
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media video,
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero__veil {
  background:
    linear-gradient(90deg, rgba(18,18,18,0.82) 0%, rgba(18,18,18,0.5) 38%, rgba(18,18,18,0.12) 68%, rgba(18,18,18,0.28) 100%),
    linear-gradient(180deg, rgba(18,18,18,0.42) 0%, transparent 28%, transparent 58%, rgba(18,18,18,0.88) 100%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 28px;
  width: 100%;
  min-height: 100svh;
  padding-top: 96px;
  padding-bottom: 28px;
}
.hero__copy {
  display: grid;
  justify-items: start;
  gap: 18px;
  max-width: min(100%, 720px);
  padding-top: 12px;
}
.hero-kicker {
  color: var(--orange);
}
.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(36px, 7.2vw, 80px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.hero-title em {
  font-style: normal;
  color: var(--orange);
}
.hero-title span,
.hero-title em {
  display: block;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  list-style: none;
  margin: 4px 0 2px;
  padding: 0;
}
.hero-meta li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-meta img {
  width: 18px;
  height: 18px;
  flex: none;
}
.hero-meta strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}
.hero-meta em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.hero-actions .btn-dark {
  border-color: rgba(255, 255, 255, 0.28);
}

.lede {
  min-width: 0;
  width: 100%;
  font-size: 12px;
  line-height: 1.28;
  color: var(--muted);
  text-transform: uppercase;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.lede .hl {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 1.35em;
  color: var(--orange);
  font-variation-settings: "wdth" 100;
}

.tenk {
  flex: none;
  width: max-content;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125, "wght" 800;
  font-size: inherit;
  line-height: 0.86;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: -0.04em;
}

.proof {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.proof-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  padding: 18px 14px 8px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.proof-card:nth-child(2n) { border-right: 0; padding-left: 16px; }
.proof-card:nth-last-child(-n+2) { border-bottom: 0; }
.proof-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--orange);
}
.proof-icon svg { width: 24px; height: 24px; }
.proof-card strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(28px, 6.4vw, 44px);
  color: var(--white);
  line-height: 1;
}
.proof-label {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}
.section-flush { padding-bottom: 0; }

.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 560px;
  display: grid;
  align-items: center;
  border-top: 1px solid var(--line);
}
.band-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(18,18,18,0.28) 0%, rgba(18,18,18,0.62) 48%, rgba(18,18,18,0.86) 100%);
  pointer-events: none;
}
.band--ghost .band-img { opacity: 0.16; }
.band--ghost::after { background: rgba(18,18,18,0.15); }
.band-copy {
  position: relative;
  z-index: 2;
  padding-top: 72px;
  padding-bottom: 56px;
  display: grid;
  gap: 18px;
  max-width: 920px;
}
.lede-on-photo {
  font-size: clamp(16px, 2.4vw, 22px);
  line-height: 1.35;
  max-width: 54ch;
}
.muted-on-photo { color: rgba(255,255,255,0.72); max-width: 58ch; }
.section-head.on-photo { margin-bottom: 8px; }
.facts-on-photo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  max-width: 720px;
}
.band .btn-ghost {
  border-color: rgba(255,255,255,0.45);
  background: rgba(18,18,18,0.28);
  backdrop-filter: blur(8px);
  width: fit-content;
}
.band .leaderboard {
  max-width: 560px;
  background: rgba(18,18,18,0.55);
  backdrop-filter: blur(10px);
}

.chapter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.chapter-row a {
  font-weight: 700;
  font-size: 15px;
}
.chapter-row span { color: var(--orange); margin-right: 6px; }
.chapter-row a:hover { color: var(--orange); }

.first-chapter {
  position: relative;
  padding: 72px 0 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.first-chapter__intro {
  display: grid;
  gap: 16px;
  max-width: 980px;
  margin-bottom: 36px;
  margin-inline: auto;
  justify-items: center;
  text-align: center;
}
.first-chapter__intro .display-xl {
  white-space: nowrap;
  font-size: clamp(28px, 6.2vw, 72px);
}
.first-chapter__hook {
  font-size: clamp(18px, 2.6vw, 26px);
  line-height: 1.35;
  max-width: 54ch;
}
.first-chapter__mark {
  display: none;
}
.chapter-beat__mark {
  display: none;
}
.chapter-story {
  display: grid;
  gap: 0;
}
.chapter-story__media {
  display: none;
}
.chapter-beat {
  display: grid;
  gap: 12px;
  padding: 0 0 48px;
}
.chapter-beat__photo {
  position: relative;
  margin: 0 calc(var(--gutter) * -1) 8px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-2);
}
.chapter-beat__photo > img:first-of-type {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  filter: contrast(1.05) saturate(0.94);
}
.chapter-beat__photo > img.is-runner {
  object-position: 68% 34%;
  transform: scale(1.42);
  transform-origin: 68% 34%;
}
.chapter-beat__num {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--orange);
}
.chapter-beat__kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.chapter-beat h3 {
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.chapter-beat > p:last-of-type {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  max-width: 58ch;
}
.chapter-story__copy {
  padding: 0 var(--gutter);
}
.chapter-story__foot {
  display: grid;
  gap: 20px;
  padding: 8px 0 64px;
}
.chapter-story__foot p {
  color: var(--muted);
  font-size: 16px;
}

.display-xl {
  font-family: var(--font-heading);
  font-size: clamp(38px, 9vw, 92px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.why-grid { display: grid; gap: 36px; }
.why-head { display: grid; gap: 14px; align-content: start; }
.hl-line { color: var(--orange); }
.why-four { gap: 28px 24px; }
.why-four .pillar h3 {
  font-size: clamp(16px, 1.35vw, 22px);
  white-space: nowrap;
  letter-spacing: -0.03em;
}

.race-showcase {
  border-top: 1px solid var(--line);
  padding: 64px 0 72px;
  overflow: hidden;
}
.race-head {
  display: grid;
  gap: 18px;
  justify-items: start;
  align-items: end;
}
.race-copy { display: grid; gap: 12px; }
.race-lede {
  max-width: 54ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
}
.race-head .btn { margin-top: 4px; justify-self: start; width: fit-content; }
.race-head .lb-kun {
  width: min(420px, 36vw);
  margin: 8px 0 0;
  aspect-ratio: 1 / 1;
  transform: scaleX(-1);
}
.race-showcase .race-grid { margin-top: 40px; }
.race-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.fact {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 6px;
}
.fact:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 20px; padding-left: 20px; }
.fact:nth-child(even) { padding-left: 20px; padding-right: 20px; }
.fact-num {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(36px, 8vw, 64px);
  line-height: 1;
  color: var(--white);
}
.fact-num--date { font-size: clamp(22px, 3.2vw, 36px); line-height: 1.1; }
.fact-sub { color: #d8d8d8; font-size: 18px; line-height: 1.4; }

.section--orange {
  background: var(--orange);
  color: var(--white);
  border-top: 0;
  position: relative;
  isolation: isolate;
  z-index: 2;
}
.eyebrow--light { color: rgba(255,255,255,0.85); }
.club-grid { display: grid; gap: 28px; }
.club-lede { max-width: 58ch; font-size: clamp(16px, 2.2vw, 20px); line-height: 1.4; }
.club-proof {
  margin: 18px 0 22px;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.club-proof span { margin: 0 0.35em; opacity: 0.7; }
.intro--ask { margin-top: 14px; }
.club-grid .btn { width: fit-content; margin-top: 8px; }
.leaderboard--on-orange {
  background: #141414;
  border-color: rgba(255,255,255,0.28);
}
.leaderboard--on-orange .lb-head {
  background: transparent;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.35);
}
.leaderboard--on-orange .lb-row { color: var(--white); }
.lb-note, .lb-foot {
  padding: 12px 18px;
  font-size: 15px;
  line-height: 1.45;
}
.lb-note {
  color: var(--orange);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.lb-kun {
  position: relative;
  width: min(220px, 62%);
  aspect-ratio: 1200 / 1080;
  margin: 0 0 18px;
}
.lb-kun video {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.lb-kun canvas,
.lb-kun .kun-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.lb-kun.is-live .kun-still { visibility: hidden; }
[data-alpha].lb-kun video {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
[data-alpha].lb-kun.is-live video { opacity: 1; }
[data-alpha].lb-kun canvas { display: none; }

.miss {
  min-height: calc(100dvh - 88px);
  display: grid;
  align-items: center;
  padding: 36px 0 64px;
}
.miss__inner {
  display: grid;
  gap: 28px;
  align-items: center;
}
.miss__copy {
  display: grid;
  justify-items: start;
  gap: 12px;
}
.miss__copy .display-xl {
  margin: 0;
  max-width: 9ch;
}
.miss__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.miss-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 6px 0 0;
}
.miss-links a {
  color: var(--muted);
  font-size: 15px;
}
.miss-links a:hover { color: var(--orange); }
.miss-kun.lb-kun {
  width: min(340px, 78vw);
  margin: 0 auto;
  aspect-ratio: 900 / 948;
}
@media (min-width: 900px) {
  .miss__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.9fr);
    gap: 48px;
  }
  .miss-kun.lb-kun {
    width: min(420px, 36vw);
    margin: 0;
    justify-self: end;
  }
}
.lb-foot {
  opacity: 0.85;
  letter-spacing: 0.01em;
  text-transform: none;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.partners-band { overflow: hidden; padding-bottom: 48px; }
.partner-marquee {
  overflow: hidden;
  margin-top: 12px;
  padding: 28px 0 8px;
}
.partner-track {
  display: flex;
  align-items: center;
  gap: clamp(36px, 6vw, 72px);
  width: max-content;
  will-change: transform;
}
.partner-logo {
  display: block;
  flex: none;
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}
.partner-logo.partner-mark--chaze {
  height: 36px;
  max-width: 140px;
}
@media (prefers-reduced-motion: reduce) {
  .partner-track { transform: none !important; }
}

.exp-pin {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 28px;
  padding: 8px 0 24px;
}
.exp-pin__head { display: grid; gap: 12px; }
.exp-pin__head .intro { max-width: 54ch; }
.exp-pin__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.exp-pin__viewport::-webkit-scrollbar { display: none; }
.exp-pin.is-pinned .exp-pin__viewport { overflow: hidden; }
.exp-steps {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  width: max-content;
  margin: 0;
  padding-inline: var(--gutter);
  will-change: transform;
}
.exp-step {
  display: grid;
  gap: 14px;
  padding: 0;
  flex: none;
  width: min(78vw, 320px);
}
.exp-step__media {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-2);
}
.exp-step__media img {
  width: 100%;
  height: 118%;
  margin-top: -6%;
  object-fit: cover;
  object-position: center 22%;
  filter: grayscale(1) contrast(1.08);
  transform: scale(1);
  backface-visibility: hidden;
  transition: filter 0.55s ease, transform 0.55s ease;
}
.exp-step:hover .exp-step__media img {
  filter: grayscale(0) contrast(1.06) saturate(0.96);
  transform: scale(1.1);
}
.exp-step__body {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
}
.exp-step__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 82, 0, 0.45);
  background: rgba(255, 82, 0, 0.08);
  color: var(--orange);
  border-radius: 50%;
}
.exp-step__icon svg { width: 20px; height: 20px; }
.exp-step h3 {
  font-size: 20px;
  line-height: 1;
  margin: 0;
}
.exp-step p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}

.quotes {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 18px;
  font-style: italic;
}
.filmstrip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  overflow: hidden;
  padding: 0 var(--gutter);
}
.filmstrip__shot {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
}
.filmstrip img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
  transform: scale(1);
  transition: filter 0.55s ease, transform 0.55s ease;
}
.filmstrip__shot:hover img {
  filter: grayscale(0) contrast(1.06) saturate(0.96);
  transform: scale(1.1);
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}
.partners-head .intro { margin-top: 18px; max-width: 42ch; }
.partners-head__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-top: 20px;
  padding: 22px 22px 20px;
  max-width: 340px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-btn);
  clip-path: var(--clip-cut);
  background: linear-gradient(165deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.partners-head__cta .intro--ask {
  margin: 0;
  max-width: none;
  color: var(--white);
  font-size: 18px;
  line-height: 1.35;
}

.eyebrow, .kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
}

.display-md {
  font-family: var(--font-heading);
  font-size: clamp(32px, 7.6vw, 58px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.headline-split {
  line-height: 0.96;
}

.intro { color: var(--muted); max-width: 54rem; }
.muted { color: var(--muted); }
.small { font-size: 16px; }
.stack { display: grid; gap: 16px; }
.cluster { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.photo {
  position: relative;
  min-height: 160px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.photo img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: contrast(1.06) saturate(0.92);
}
.photo-wide { min-height: 220px; }
.mosaic .photo:not(.photo-wide) { aspect-ratio: 4 / 3; }
.ig-grid .photo { aspect-ratio: 1; min-height: 0; }

.mosaic, .story-grid, .four, .split, .three { display: grid; gap: 12px; }
.chapters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.chapter {
  min-height: 120px;
  padding: 16px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-2);
}
.chapter b { font-size: 20px; }
.chapter:hover { border-color: var(--orange); }

.pillar {
  padding-top: 16px;
  border-top: 1px solid var(--orange);
  display: grid;
  gap: 8px;
}
.pillar h3 { font-size: 28px; }

.course-panel {
  display: grid;
  gap: 20px;
  padding: 24px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.course-line {
  margin-top: 10px;
  min-height: 200px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0d0d0d;
}
.course-line img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  object-position: center;
}
.facts { display: grid; gap: 16px; }
.facts p:last-child { font-weight: 700; }

.leaderboard {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.lb-head, .lb-row {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 15px 18px;
  font-size: 18px;
}
.lb-head {
  background: transparent;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 15px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.28);
}
.lb-row { color: var(--white); }

.exp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.exp-card {
  min-height: 180px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.exp-card h3 { font-size: 22px; }
.exp-card:hover { border-color: var(--orange); }

.logo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.logo-slot {
  min-height: 80px;
  border: 1px dashed var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ig-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.info-card {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  display: grid;
  gap: 8px;
}

.ig-band__layout {
  display: grid;
  gap: 28px;
  align-items: center;
}
.ig-band__copy {
  display: grid;
  gap: 14px;
  justify-items: start;
}
.ig-band__copy p:not(.eyebrow) {
  max-width: 36ch;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}
.insta-profile {
  justify-self: center;
  width: min(100%, 540px);
  padding: 14px;
  background: #fff;
  clip-path: var(--clip-cut);
}
.insta-profile iframe {
  display: block;
  width: 100%;
  height: 540px;
  border: 0;
  background: #fff;
}
@media (min-width: 900px) {
  .ig-band__layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 540px);
    gap: 64px;
  }
  .insta-profile { justify-self: end; }
}
@media (max-width: 799px) {
  .insta-profile iframe { height: min(516px, calc(80px + 72vw)); }
}

.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 40px 0 32px;
  background: var(--orange);
  color: var(--white);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/landing/pattern-topo-light.png") 20% 30% / cover no-repeat;
  opacity: 0.1;
  pointer-events: none;
}
.cta-band__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 36px;
  align-items: end;
}
.cta-band__copy {
  display: grid;
  justify-items: start;
  gap: 14px;
  max-width: 640px;
}
.cta-band .eyebrow { color: rgba(255,255,255,0.82); }
.cta-band h2 {
  font-family: var(--font-heading);
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.045em;
  max-width: 11em;
  color: var(--white);
}
.cta-band__place {
  color: rgba(255,255,255,0.9);
  font-size: 16px;
  letter-spacing: 0.02em;
}
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.cta-kun {
  position: relative;
  justify-self: center;
  width: min(220px, 64vw);
  aspect-ratio: 1080 / 1704;
}
.cta-kun video {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.cta-kun canvas,
.cta-kun .kun-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cta-kun.is-live .kun-still { visibility: hidden; }
[data-alpha].cta-kun video {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
[data-alpha].cta-kun.is-live video { opacity: 1; }
[data-alpha].cta-kun canvas { display: none; }
.cta-band__date {
  margin: 0;
  display: grid;
  justify-items: start;
  line-height: 0.8;
  font-family: var(--font-heading);
  font-weight: 700;
}
.cta-band__date span:first-child {
  font-size: clamp(88px, 12vw, 148px);
  letter-spacing: -0.07em;
}
.cta-band__date span:nth-child(n + 2) {
  margin-top: 8px;
  font-size: 15px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
@media (min-width: 800px) {
  .cta-band { padding: 44px 0 36px; }
  .cta-band__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 48px;
  }
  .cta-kun {
    justify-self: end;
    width: min(300px, 26vw);
  }
  .cta-band__date {
    justify-items: end;
    text-align: right;
    padding-left: 48px;
    border-left: 1px solid rgba(255,255,255,0.38);
  }
}

.site-footer {
  padding: 48px 0 28px;
  border-top: 1px solid var(--line);
}
.footer-grid { display: grid; gap: 28px; }
.footer-wordmark {
  margin-top: 10px;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}
.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.site-footer .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.28);
  --cut: 9px;
  clip-path: var(--clip-cut);
}
.footer-social a:hover { color: var(--orange); border-color: var(--orange); }
.contact-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.contact-line svg { flex: none; color: var(--orange); }
.contact-line a { color: var(--white); }
.contact-line a:hover { color: var(--orange); }
.footer-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 700;
}
.site-footer a, .site-footer p {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--muted);
}
.site-footer a:hover { color: var(--orange); }
.footer-base {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px var(--gutter);
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.sticky-cta strong { font-size: 13px; }
.sticky-cta span { display: none; color: var(--muted); font-size: 12px; }
.sticky-cta .btn { min-height: 40px; padding: 0 16px; white-space: nowrap; flex: none; }

@media (max-width: 799px) {
  .hero__inner {
    padding-top: 88px;
    padding-bottom: 88px;
    gap: 22px;
  }
  .hero__copy { max-width: min(100%, 22ch); gap: 14px; }
  .hero-title { font-size: clamp(36px, 11vw, 52px); }
  .hero-actions { width: 100%; }
  .hero-actions .btn { min-height: 46px; }
  .proof-card,
  .proof-card:nth-child(2n),
  .proof-card:nth-last-child(-n+2) {
    gap: 8px;
    padding: 16px 18px 14px 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }
  .proof-card:nth-child(odd) { padding-left: 0; }
  .proof-card:nth-child(2n) { border-right: 0; padding-right: 0; }
  .proof-card:nth-last-child(-n+2) { border-bottom: 0; }
  .proof-icon {
    width: 22px;
    height: 22px;
  }
  .proof-icon svg { width: 20px; height: 20px; }
  .proof-card strong { font-size: 24px; }
  .proof-label {
    margin-top: 4px;
    font-size: 11px;
  }
  .band--ghost .band-copy {
    padding-top: 56px;
    padding-bottom: 48px;
  }
  .partner-logo {
    height: 36px;
    max-width: 120px;
  }

  .first-chapter {
    padding-top: 56px;
  }
  .first-chapter__intro {
    margin-bottom: 28px;
  }
  .first-chapter__intro .display-xl {
    white-space: normal;
    font-size: clamp(34px, 11vw, 44px);
  }
  .first-chapter__mark {
    display: none;
  }
  .chapter-story__copy {
    padding: 0 var(--gutter);
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .chapter-beat {
    position: sticky;
    top: calc(72px + (var(--beat, 0) * 10px));
    z-index: calc(2 + var(--beat, 0));
    min-height: 0;
    margin: 0 0 14px;
    padding: 0 0 18px;
    gap: 10px;
    align-content: start;
    background: #171717;
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
    clip-path: var(--clip-cut);
    overflow: hidden;
    transform-origin: top center;
  }
  .chapter-beat[data-chapter-beat="0"] { --beat: 0; }
  .chapter-beat[data-chapter-beat="1"] { --beat: 1; }
  .chapter-beat[data-chapter-beat="2"] { --beat: 2; }
  .chapter-beat[data-chapter-beat="3"] { --beat: 3; }
  .chapter-beat__photo {
    margin: 0 0 6px;
    aspect-ratio: 16 / 11;
  }
  .chapter-beat__mark {
    display: none;
  }
  .chapter-beat__num,
  .chapter-beat__kicker,
  .chapter-beat h3,
  .chapter-beat > p:last-of-type {
    padding-inline: 16px;
  }
  .chapter-beat h3 {
    font-size: clamp(24px, 7vw, 32px);
    max-width: 18ch;
  }
  .chapter-beat > p:last-of-type {
    font-size: 15px;
    max-width: none;
  }
  .chapter-story__foot {
    position: relative;
    z-index: 8;
    margin-top: 28px;
    padding: 20px 16px 88px;
    background: var(--bg);
    text-align: center;
    justify-items: center;
  }
}

@media (min-width: 800px) {
  body { padding-bottom: 0; }
  .nav-inner { min-height: 96px; }
  .logo { width: 116px; height: 58px; }
  .nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 15px;
    font-weight: 500;
  }
  .menu-btn, .mobile-nav { display: none !important; }
  .register-nav { height: 46px; padding: 0 24px; }
  .register-nav span { font-size: 18.5px; }

  .band { min-height: 640px; }
  .band::after {
    background: linear-gradient(90deg, rgba(18,18,18,0.82) 0%, rgba(18,18,18,0.48) 46%, rgba(18,18,18,0.18) 100%);
  }
  .band-copy { padding-top: 96px; padding-bottom: 72px; }
  .band--ghost .band-copy {
    margin-inline: auto;
    justify-items: center;
    text-align: center;
  }
  .band--ghost .lede-on-photo,
  .band--ghost .muted-on-photo {
    max-width: 46ch;
  }
  .band--ghost .chapter-row { justify-content: center; }
  .band--ghost .btn { justify-self: center; }
  .hero__inner {
    padding-top: 120px;
    padding-bottom: 48px;
    gap: 40px;
  }
  .hero__copy {
    max-width: min(52vw, 760px);
    gap: 22px;
    margin-top: auto;
  }
  .hero-title { font-size: clamp(52px, 5.4vw, 80px); }
  .hero-title__lead { display: block; white-space: nowrap; }
  .hero-cta {
    min-height: 54px;
    padding: 0 36px;
    font-size: 16px;
  }
  .hero-actions .btn { min-height: 54px; padding: 0 28px; font-size: 16px; }
  .proof { grid-template-columns: repeat(4, 1fr); }
  .proof-card,
  .proof-card:nth-child(2n) {
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom: 0;
    padding: 22px 40px 4px 40px;
  }
  .proof-card:first-child { padding-left: 0; }
  .proof-card:last-child { border-right: 0; padding-right: 0; }
  .proof-icon { width: 28px; height: 28px; }
  .proof-icon svg { width: 24px; height: 24px; }
  .proof-card strong { font-size: clamp(32px, 3.2vw, 44px); }
  .proof-label { font-size: 13px; }

  .section { padding: 88px 0; }
  .section-head {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 24px;
    margin-bottom: 40px;
  }
  .partners-head {
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.7fr);
    align-items: end;
    gap: 48px;
  }
  .partners-head__cta {
    justify-self: end;
    align-self: end;
    margin-top: 0;
    padding: 26px 24px 22px;
  }
  .story-grid { grid-template-columns: 1fr 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; }
  .chapters { grid-template-columns: repeat(3, 1fr); }
  .four { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
  .why-four { gap: 40px 32px; }
  .race-showcase { padding: 96px 0 104px; }
  .race-head { grid-template-columns: 1fr auto; align-items: center; }
  .race-head .btn { margin-top: 8px; }
  .race-head .lb-kun { margin: 0; }
  .race-grid { grid-template-columns: repeat(4, 1fr); }
  .fact { border-bottom: 0; }
  .fact:nth-child(odd) { padding-right: 24px; padding-left: 24px; }
  .fact:nth-child(even) { padding-left: 24px; padding-right: 24px; }
  .fact:not(:last-child) { border-right: 1px solid var(--line); }
  .club-grid { grid-template-columns: 1.2fr 0.8fr; gap: 64px; align-items: center; }
  .section--orange { padding: 96px 0; }
  .facts-on-photo { grid-template-columns: repeat(4, 1fr); max-width: none; }
  .first-chapter { padding-top: 112px; }
  .first-chapter__intro { margin-bottom: 56px; }
  .chapter-story {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    align-items: start;
  }
  .chapter-story__media {
    display: block;
    position: sticky;
    top: 96px;
    grid-column: 1;
    grid-row: 1 / span 2;
    height: calc(100svh - 96px);
    overflow: hidden;
    background: #0d0d0d;
  }
  .chapter-story__media img {
    position: absolute;
    left: 0;
    width: 100%;
    top: -4%;
    height: 118%;
    object-fit: cover;
    object-position: center 20%;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
    filter: contrast(1.06) saturate(0.92);
  }
  .chapter-story__media img.is-on {
    opacity: 1;
    transform: scale(1);
  }
  .chapter-story__media img.is-runner {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-position: 70% 40%;
    transform-origin: 70% 40%;
    transform: scale(1.72);
  }
  .chapter-story__media img.is-runner.is-on {
    transform: scale(1.65);
  }
  .chapter-story__copy {
    grid-column: 2;
    grid-row: 1;
    padding: 8vh var(--gutter) 2vh 56px;
  }
  .chapter-beat {
    min-height: 72vh;
    align-content: center;
    padding: 8vh 0;
    opacity: 0.28;
    transition: opacity 0.55s ease;
  }
  .chapter-beat.is-on { opacity: 1; }
  .chapter-beat__photo { display: none; }
  .chapter-beat h3 { font-size: clamp(32px, 3.4vw, 48px); }
  .chapter-beat > p:last-of-type { font-size: 18px; }
  .chapter-story__foot {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    padding: 0 var(--gutter) 12vh 56px;
  }
  .exp-pin {
    gap: 36px;
    padding: 12px 0 28px;
  }
  .exp-steps {
    gap: 22px;
    padding-inline: max(var(--gutter), calc((100vw - var(--max) - var(--gutter) * 2) / 2 + var(--gutter)));
  }
  .exp-step { width: min(32vw, 400px); }
  .quotes { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .filmstrip { grid-template-columns: repeat(4, 1fr); }
  .filmstrip img { height: 320px; }
  .split { grid-template-columns: 1.1fr 0.9fr; }
  .course-panel { grid-template-columns: 1.2fr 0.8fr; }
  .exp-row { grid-template-columns: repeat(4, 1fr); }
  .logo-row { grid-template-columns: repeat(6, 1fr); }
  .ig-grid { grid-template-columns: repeat(6, 1fr); }
  .three { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .sticky-cta { display: none; }
  .photo { min-height: 200px; }
  .photo-wide { min-height: 280px; grid-column: 1 / -1; }
  .course-line, .course-line img { min-height: 280px; }
  .ig-grid .photo { min-height: 220px; aspect-ratio: 1; }
}

@media (max-width: 799px) {
  .exp-pin { padding-bottom: 96px; }
  .exp-pin__head::after {
    content: "Swipe the photos";
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--orange);
  }
  .exp-pin__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .exp-steps { will-change: auto; }
  .exp-step { scroll-snap-align: start; }
  .footer-wordmark { font-size: 20px; }
}

.race-showcase {
  position: relative;
  background-color: var(--bg);
}
.race-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/landing/pattern-topo-light.png") 20% 30% / cover no-repeat;
  opacity: 0.07;
  pointer-events: none;
}
.race-showcase > * { position: relative; z-index: 1; }
.race-film {
  position: relative;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 72vh;
  min-height: 420px;
  background: transparent;
}
.race-film__stage { height: 100%; }
.race-film__video {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  pointer-events: none;
}

.section--orange {
  position: relative;
  isolation: isolate;
  z-index: 2;
}
.section--orange::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/landing/pattern-topo-light.png") 20% 30% / cover no-repeat;
  opacity: 0.07;
  filter: none;
  pointer-events: none;
}
.section--orange > * { position: relative; z-index: 1; }

.section--orange.club-hero {
  overflow: hidden;
}
.club-hero {
  padding-top: 112px;
}
.club-hero .display-xl {
  margin-top: 12px;
}
.club-hero .club-lede {
  margin-top: 28px;
}
.club-hero .club-grid .btn {
  margin-top: 8px;
}

.section--experience {
  position: relative;
  isolation: isolate;
  z-index: 1;
  background: var(--bg);
  overflow: clip;
  padding-top: 48px;
  padding-bottom: 48px;
}
.section--experience .display-xl {
  margin-top: 12px;
}
.section--experience .intro {
  margin-top: 16px;
}
.section--experience .exp-pin__foot .btn {
  margin-top: 0;
}

@media (min-width: 800px) {
  .section--orange.club-hero {
    padding-top: 112px;
    padding-bottom: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chapter-story__media img {
    transition: none;
    transform: none;
  }
  .chapter-story__media img.is-runner {
    transform: scale(1.65);
  }
  .chapter-beat { opacity: 1; }
  .race-film__stage {
    top: 0;
    height: 100%;
    transform: none !important;
  }
  .exp-steps { transform: none !important; }
  .exp-step__media img,
  .filmstrip img {
    transform: none !important;
  }
}


.reveal-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;
}
.reveal-word > span {
  display: inline-block;
}
.lb-row {
  position: relative;
}
.lb-rank {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lb-medal {
  width: 22px;
  height: 22px;
  flex: none;
  opacity: 0;
  transform: scale(0.4);
  transform-origin: center;
}
.lb-medal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.boot {
  display: grid;
  place-items: center;
  overflow: hidden;
  touch-action: none;
  color: #fff;
}
.boot.is-leaving {
  background: transparent;
}
.boot__bars {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.boot__bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: calc(25% + 1px);
  background: #0c0c0c;
  will-change: transform;
}
.boot__bar:nth-child(1) { top: 0; }
.boot__bar:nth-child(2) { top: 25%; }
.boot__bar:nth-child(3) { top: 50%; }
.boot__bar:nth-child(4) { top: 75%; height: 25%; }
.boot__stage {
  position: relative;
  z-index: 1;
  width: min(380px, 72vw);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.boot__logo {
  width: 100%;
  height: auto;
  opacity: 0;
  will-change: transform, opacity, filter;
}
.boot.is-held .boot__logo {
  opacity: 1;
  transform: none;
  filter: none;
}
.boot__stripe {
  display: block;
  height: 3px;
  width: 100%;
  margin-top: 16px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
}
.boot__count {
  position: absolute;
  right: clamp(20px, 4vw, 40px);
  bottom: clamp(18px, 4vw, 36px);
  z-index: 3;
  display: flex;
  align-items: flex-start;
  gap: 2px;
  margin: 0;
  font-family: var(--font-hero);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.boot__count-u {
  margin-top: 0.28em;
  font-size: 0.42em;
  letter-spacing: 0;
}
.boot__skip {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  transform: translateX(-50%);
  margin: 0;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}
.boot__skip:hover,
.boot__skip:focus-visible {
  color: rgba(255, 255, 255, 0.82);
}
.photo-full {
  position: absolute;
  z-index: 1;
  max-width: none;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}
img[data-lq]:not([src]) {
  background: #161616;
}
.boot__runner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7vh;
  z-index: 2;
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 1080;
  pointer-events: none;
}
.boot__runner video {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.boot__runner canvas,
.boot__runner .kun-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.boot__runner.is-live .kun-still { visibility: hidden; }
[data-alpha].boot__runner video {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
[data-alpha].boot__runner.is-live video { opacity: 1; }
[data-alpha].boot__runner canvas { display: none; }
@media (prefers-reduced-motion: reduce) {
  .boot__logo { opacity: 1; filter: none; transform: none; }
  .boot__stripe { transform: none; }
  .sticky-cta .btn-primary { animation: none; }
  .sticky-cta .btn::after,
  .sticky-cta .btn:hover::after { animation: none; }
}

@property --glow-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@keyframes glow-spin {
  to { --glow-angle: 360deg; }
}
@keyframes sticky-shine {
  0% { transform: translateX(-140%); }
  7% { transform: translateX(140%); }
  100% { transform: translateX(140%); }
}

@media (max-width: 799px) {
  .register-nav { display: none; }

  .boot__stage {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    width: min(220px, 58vw);
    transform: translate(-50%, -50%);
  }
  .boot__runner {
    left: 0;
    right: 0;
    top: auto;
    bottom: 64px;
    width: 100%;
    height: auto;
    aspect-ratio: 1920 / 1080;
    transform: none;
  }
  .boot__count {
    top: max(18px, 4vh);
    right: auto;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    font-size: 28px;
  }
  .boot__skip {
    bottom: 16px;
  }

  .race-head {
    justify-items: center;
    text-align: center;
  }
  .race-copy { justify-items: center; }
  .race-lede { margin-inline: auto; }
  .race-head .lb-kun {
    order: -1;
    justify-self: center;
    width: min(360px, 84vw);
    margin: 0 auto 6px;
  }
  .race-head .btn { justify-self: center; }

  .race-film {
    height: 50vh;
    min-height: 0;
  }

  .partners-head__cta {
    width: 100%;
    max-width: none;
    align-items: center;
  }
  .partners-head__cta .btn { align-self: center; }

  .sticky-cta .btn-primary {
    border: 2px solid transparent;
    background:
      linear-gradient(#ff5200, #ff5200) padding-box,
      conic-gradient(
        from var(--glow-angle),
        rgba(255, 82, 0, 0.35) 0deg,
        rgba(255, 255, 255, 0.2) 46deg,
        #fff 78deg,
        #ffc7a3 112deg,
        rgba(255, 82, 0, 0.35) 160deg,
        rgba(255, 82, 0, 0.35) 360deg
      ) border-box;
    animation: glow-spin 2.6s linear infinite;
    box-shadow: 0 0 10px rgba(255, 82, 0, 0.28);
  }
  .sticky-cta .btn::after,
  .sticky-cta .btn:hover::after {
    animation: sticky-shine 10s ease infinite;
  }
}

@media (max-width: 799px) and (prefers-reduced-motion: reduce) {
  .sticky-cta .btn-primary,
  .sticky-cta .btn::after,
  .sticky-cta .btn:hover::after { animation: none; }
}

.lb-confetti {
  position: absolute;
  left: -8px;
  top: -28px;
  width: 120px;
  height: 88px;
  pointer-events: none;
  z-index: 2;
}
.lb-row.is-win {
  background: linear-gradient(90deg, rgba(255,200,70,0.16), transparent 70%);
}

/* Tablets and unfolded folds. Phones stay under 800. Wide desktop stays 1140 and up. */
@media (min-width: 800px) and (max-width: 1139px) {
  .nav-inner {
    flex-wrap: wrap;
    align-items: center;
    row-gap: 6px;
    min-height: 0;
    padding-top: 12px;
    padding-bottom: 10px;
  }
  .nav-end { margin-left: auto; flex: none; }
  .nav-links {
    flex: 1 0 100%;
    order: 3;
    justify-content: flex-start;
    gap: 8px clamp(14px, 2.1vw, 26px);
    font-size: 14px;
    min-width: 0;
  }
  .nav-links a { white-space: nowrap; }
  .register-nav {
    height: 42px;
    padding: 0 16px;
    flex: none;
  }
  .register-nav span { font-size: 14px; }
  .logo { width: 100px; height: 50px; }
  .aims-mark { height: 44px; }

  .hero__inner { padding-top: 128px; }
  .proof-card,
  .proof-card:nth-child(2n) { padding: 16px 12px 4px; }
  .proof-card:first-child { padding-left: 0; }
  .proof-card:last-child { padding-right: 0; border-right: 0; }
  .proof-card strong { font-size: clamp(26px, 3.1vw, 36px); }
  .proof-label { font-size: 12px; }

  .fact-num { font-size: clamp(28px, 4vw, 42px); }
  .fact:nth-child(odd),
  .fact:nth-child(even) { padding-left: 14px; padding-right: 14px; }
  .fact-sub { font-size: 15px; }

  .chapter-story__media {
    top: 108px;
    height: calc(100svh - 108px);
  }
  .chapter-story__copy { padding-left: 32px; }
  .chapter-story__foot { padding-left: 32px; }

  .first-chapter__intro .display-xl {
    white-space: normal;
    font-size: clamp(36px, 5.6vw, 56px);
  }
  .chapter-story { grid-template-columns: 1fr; }
  .chapter-story__media { display: none; }
  .chapter-story__copy {
    grid-column: 1;
    grid-row: auto;
    padding: 0 var(--gutter) 8px;
  }
  .chapter-beat,
  .chapter-beat.is-on {
    min-height: 0;
    opacity: 1;
    align-content: start;
    padding: 0 0 40px;
  }
  .chapter-beat__photo {
    display: block;
    margin: 0 0 16px;
    aspect-ratio: 16 / 10;
  }
  .chapter-beat__mark { display: none; }
  .chapter-beat h3 { font-size: clamp(28px, 4vw, 40px); }
  .chapter-story__foot {
    grid-column: 1;
    grid-row: auto;
    padding: 8px var(--gutter) 56px;
  }

  .club-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
  }
  .club-hero .display-xl {
    font-size: clamp(36px, 6.4vw, 60px);
    max-width: 12em;
  }
  .section--experience .display-xl {
    font-size: clamp(36px, 6.4vw, 60px);
    max-width: 12em;
  }
  .exp-pin__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .exp-steps { will-change: auto; }
  .exp-step {
    scroll-snap-align: start;
    width: min(62vw, 380px);
  }
}
