/* Run It Out Ultra — site styles */

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-condensed-600.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/barlow-condensed-800-italic.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono.woff2") format("woff2");
}

:root {
  --bg: #0a0c0b;
  --panel: #111513;
  --map: #0c100e;
  --line: #262d29;
  --line-strong: #3a433e;
  --track: #4a554f;
  --text: #f2f0e8;
  --soft: #c4cac5;
  --mute: #a9b1ab;
  --acc: #d4ff3a;
  --sec: #ff7a3d;
  --red: #ff5a5a;
  --ink: #0a0c0b;
  --ink-soft: #3a413d;
  --paper-line: #c9c4b8;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
}

img,
svg { max-width: 100%; }

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.8; }

button { font: inherit; cursor: pointer; }

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--acc);
  color: var(--ink);
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

.container { max-width: 1280px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

.is-acc { color: var(--acc); }
.is-text { color: var(--text); }
.is-red { color: var(--red); }

/* Type */

.label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}
.label--dark { color: var(--ink-soft); }
.label--xs { font-size: 9px; letter-spacing: 0.08em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sec);
}

.h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 0.92;
  text-transform: uppercase;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 34px;
  line-height: 1;
  text-transform: uppercase;
}

.lead { font-size: 19px; color: var(--soft); }

.swipe {
  display: inline-block;
  background: url("../img/brush.png") center / 100% 100% no-repeat;
  color: var(--ink);
  white-space: nowrap;
  transform: rotate(-2deg);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--acc);
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
}
.btn--ghost { border: 1px solid var(--mute); background: transparent; color: var(--text); font-weight: 500; }
.btn--nav { min-height: 44px; padding: 0 22px; font-size: 15px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--acc);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.btn-sm {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--mute);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.btn-sm--solid { border-color: var(--acc); background: var(--acc); color: var(--ink); }

/* Motion */

@keyframes ping { from { transform: scale(0.5); opacity: 0.9; } to { transform: scale(3.2); opacity: 0; } }
@keyframes blink { 50% { opacity: 0.25; } }
@keyframes tick { to { transform: translateX(-50%); } }
@keyframes drift { to { transform: translate(-60px, 30px); } }

.ping { animation: ping 1.8s ease-out infinite; }
.blink { animation: blink 1.4s steps(2) infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ping, .blink, .ticker__track, .hero__contours { animation: none; }
}

/* Header and hero */

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1400px;
  -webkit-mask-image: linear-gradient(#000 65%, transparent);
  mask-image: linear-gradient(#000 65%, transparent);
}

main,
.site-footer { position: relative; }
.hero__contours { animation: drift 26s ease-in-out infinite alternate; }

.site-header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand { position: relative; display: block; width: 300px; max-width: 78vw; transform: rotate(-2deg); }
.brand img { display: block; width: 100%; height: auto; }
.brand__ping { position: absolute; left: 96%; top: 55%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--sec); }

.nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; font-weight: 500; }
.nav a:not(.btn) { display: block; padding: 12px 0; }

.hero {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-top: 32px;
  padding-bottom: 104px;
}

.hero__copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }

.hero__kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

.hero__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(64px, 9.5vw, 148px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.hero__title .swipe { margin-left: -0.12em; padding: 0.02em 0.26em 0 0.18em; }

.hero__text { max-width: 520px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

.live { display: inline-flex; align-items: center; gap: 8px; color: var(--sec); }
.live__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sec); }

/* View label */

.view-tag {
  position: absolute;
  top: -46px;
  right: 12px;
  z-index: 40;
  padding: 5px 26px 2px 22px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(4deg);
  pointer-events: none;
}
.view-tag--small { top: -30px; right: -18px; font-size: 30px; transform: rotate(5deg); }

/* Crew view */

.crew-wrap { position: relative; flex: 1 1 520px; min-width: 0; transform: rotate(1deg); }

.crew {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}

.crew__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}
.crew__link { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.crew__hint { font-family: var(--font-mono); font-size: 13px; color: var(--soft); }

.follow,
.checkpoint {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--map);
}
.checkpoint { justify-content: space-between; }

.follow__who { flex: 1 1 200px; min-width: 0; }
.follow__name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: -4px 0 -10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  text-align: left;
}
.follow__text { white-space: nowrap; text-decoration: underline; text-decoration-color: var(--mute); text-underline-offset: 4px; }
.follow__name svg { flex: none; }
.follow__pos { display: flex; align-items: baseline; gap: 8px; }
.follow__rank { font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 1; color: var(--acc); }

.search { position: relative; flex: 1 1 220px; min-width: 0; }
.search__icon { position: absolute; left: 14px; top: 13px; }
.search__input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 40px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.search__input::placeholder { color: var(--mute); }
.search__results {
  position: absolute;
  left: 0;
  right: 0;
  top: 50px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  border-radius: 12px;
  background: var(--text);
  color: var(--ink);
}
.search__results[hidden] { display: none; }
.search__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}
.search__item:hover { background: rgba(10, 12, 11, 0.08); }
.search__pos { color: var(--ink-soft); font-weight: 500; }
.search__none { padding: 12px; font-size: 14px; color: var(--ink-soft); }

.checkpoint__info { display: flex; align-items: center; gap: 14px; min-width: 0; }
.checkpoint__info svg { flex: none; }
.checkpoint__name { display: block; font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1.1; text-transform: uppercase; }
.checkpoint__line { display: block; font-size: 14px; color: var(--soft); }
.checkpoint__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Pop-up cards */

.popup {
  position: absolute;
  top: calc(100% + 8px);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 440px;
  max-width: 100%;
  padding: 20px;
  border-radius: 16px;
  background: var(--text);
  color: var(--ink);
}
.popup--profile { left: 0; }
.popup--notes { right: 0; width: 380px; }
.popup__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.popup__title { display: block; font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1.1; text-transform: uppercase; }
.popup__close {
  flex: none;
  align-self: flex-start;
  width: 44px;
  height: 44px;
  margin: -10px -10px 0 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}
.popup__list { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.45; }
.popup__list li { position: relative; padding-left: 20px; }
.popup__list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--sec); }
.popup__foot { padding-top: 10px; border-top: 1px solid var(--paper-line); font-size: 13px; color: var(--ink-soft); }

.profile__head { display: flex; align-items: center; gap: 16px; }
.profile__photo {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--sec);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 34px;
  line-height: 1;
}
.profile__photo-tag { margin-top: 4px; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; }
.profile__id { flex: 1 1 auto; min-width: 0; }
.profile__name { display: block; font-family: var(--font-display); font-weight: 600; font-size: 34px; line-height: 1.05; text-transform: uppercase; }
.profile__now { display: block; font-size: 14px; color: var(--ink-soft); }
.profile__about { margin-top: 6px; font-size: 15px; line-height: 1.5; }
.profile__totals { display: flex; gap: 28px; }
.profile__figure { display: block; font-family: var(--font-display); font-weight: 600; font-size: 32px; line-height: 1.1; }
.profile__history { margin-top: 6px; font-size: 14px; }
.profile__history li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 9px 0; border-top: 1px solid var(--paper-line); color: var(--ink-soft); }
.profile__race { color: var(--ink); font-weight: 600; }

/* Map */

.map { position: relative; overflow: hidden; aspect-ratio: 800 / 520; border-radius: 12px; background: var(--map); }
.map__inner { position: absolute; transition: left 0.45s ease, top 0.45s ease, width 0.45s ease, height 0.45s ease; }
.map__svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.aid {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  padding: 0;
  border: 0;
  background: none;
}
.aid span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--mute);
  border-radius: 50%;
  background: var(--map);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
}
.aid.is-on span { border-color: var(--sec); background: var(--sec); color: var(--ink); }

.pin { position: absolute; display: flex; align-items: flex-end; justify-content: center; width: 44px; height: 44px; margin: -40px 0 0 -22px; }
.pin__tag {
  position: absolute;
  left: 40px;
  bottom: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--sec);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.runner {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  padding: 0;
  border: 0;
  background: none;
}
.runner__ping { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--sec); }
.runner__dot { position: relative; width: 16px; height: 16px; border: 3px solid var(--map); border-radius: 50%; background: var(--text); outline: 2px solid var(--mute); }
.runner__bib { position: absolute; left: 38px; top: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--mute); white-space: nowrap; }
.runner.is-on { z-index: 3; }
.runner.is-on .runner__dot { background: var(--sec); outline-color: var(--sec); }
.runner.is-on .runner__bib { color: var(--sec); }

.hover-card {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 228px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--text);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
  pointer-events: none;
}
.hover-card[hidden] { display: none; }
.hover-card__name { font-size: 15px; font-weight: 600; }
.hover-card__row { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-soft); }
.hover-card__row b { color: var(--ink); font-weight: 600; }

.zoom { position: absolute; right: 12px; bottom: 12px; z-index: 6; display: flex; flex-direction: column; }
.zoom button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
}
.zoom button:first-child { border-radius: 10px 10px 0 0; }
.zoom button:last-child { border-top: 0; border-radius: 0 0 10px 10px; }
.zoom__label { position: absolute; left: 12px; bottom: 12px; z-index: 6; padding: 4px 8px; border-radius: 6px; background: var(--panel); font-family: var(--font-mono); font-size: 11px; color: var(--mute); }

/* Elevation */

.elev { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--map); }
.elev__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.elev__chart { position: relative; aspect-ratio: 1200 / 320; }
.elev__chart--phone { aspect-ratio: 1200 / 300; }
.elev__chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.elev__dot { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 2px solid var(--map); border-radius: 50%; background: var(--sec); }
.elev__chart--phone .elev__dot { width: 10px; height: 10px; margin: -5px 0 0 -5px; }
.elev__stats { display: flex; flex-wrap: wrap; gap: 10px 16px; padding-top: 10px; border-top: 1px solid var(--line); }
.elev__stats div { flex: 1 1 104px; min-width: 0; }
.elev__stats dd { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1.1; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.stat { padding: 14px 16px; background: var(--panel); }
.stat__value { display: block; font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 1.1; }
.stat__value small { font-size: 20px; color: var(--mute); }
.stat__sub { display: block; margin-top: 4px; font-size: 13px; color: var(--soft); }
.stat__sub b { color: var(--text); font-weight: 600; }

/* Ticker */

.ticker-wrap { overflow: hidden; padding: 16px 0; }
.ticker { width: 104%; margin: 0 -2%; padding: 14px 0; overflow: hidden; background: var(--acc); color: var(--ink); transform: rotate(-1.2deg); }
.ticker__track {
  display: flex;
  width: max-content;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: pre;
  animation: tick 30s linear infinite;
}
.ticker__track i { font-style: inherit; opacity: 0.45; }

/* Sections */

.section { border-top: 1px solid var(--line); }
.section--first { border-top: 0; }
.section--panel { background: var(--panel); }
.section--light { border-top: 0; background: var(--text); color: var(--ink); }
.section__inner { display: flex; flex-direction: column; gap: 48px; padding-top: 96px; padding-bottom: 96px; }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 32px 64px; }
.section__title { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.section__head .lead { flex: 1 1 380px; }
.h2--narrow { max-width: 900px; }

.cards { display: flex; flex-wrap: wrap; gap: 20px; }
.card { flex: 1 1 250px; display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.section--panel .card { background: var(--bg); }
.card__top { display: flex; align-items: center; justify-content: space-between; }
.card__num { font-family: var(--font-mono); font-size: 13px; color: var(--mute); }
.card__title { font-size: 20px; font-weight: 600; line-height: 1.3; }
.card__who { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sec); }
.card p:last-child { color: var(--soft); }

/* Course */

.course__chart { padding: 28px 28px 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.course__chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.figures { display: flex; flex-wrap: wrap; gap: 24px 64px; }
.figure dd { font-family: var(--font-display); font-weight: 600; font-size: 56px; line-height: 1; }
.figures__note { max-width: 560px; color: var(--soft); }

/* Crew section */

.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 96px; }
.split__copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.ticks { display: flex; flex-direction: column; gap: 16px; font-size: 18px; line-height: 1.5; color: var(--soft); }
.ticks li { position: relative; padding-left: 24px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--sec); }
.ticks--acc { font-size: 17px; color: var(--text); gap: 10px; }
.ticks--acc li::before { background: var(--acc); }

.phone { position: relative; flex: 0 1 320px; margin: 0 auto; padding: 10px; border-radius: 44px; background: var(--line); transform: rotate(3deg); }
.phone__screen { display: flex; flex-direction: column; gap: 8px; overflow: hidden; padding: 18px 12px 14px; border-radius: 34px; background: var(--panel); }
.ph__status { display: flex; justify-content: space-between; gap: 8px; padding: 0 6px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.ph__status .live { gap: 6px; }
.ph__status .live__dot { width: 6px; height: 6px; }
.ph__box { display: flex; flex-direction: column; gap: 4px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--map); }
.ph__follow { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
.ph__follow > div:first-child { min-width: 0; }
.ph__name { display: block; overflow: hidden; font-size: 14px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.ph__pos { display: flex; align-items: baseline; gap: 6px; }
.ph__rank { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1; color: var(--acc); }
.ph__aid { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.1; text-transform: uppercase; }
.ph__line { font-size: 11px; color: var(--soft); }
.ph__pills { display: flex; gap: 6px; margin-top: 4px; }
.ph__pills span { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 30px; border-radius: 999px; background: var(--acc); color: var(--ink); font-size: 12px; font-weight: 600; }
.ph__map { position: relative; overflow: hidden; border-radius: 12px; background: var(--map); }
.ph__map svg { display: block; width: 100%; height: auto; }
.ph__bib { position: absolute; left: 56%; top: 52%; padding: 1px 5px; border-radius: 4px; background: var(--sec); color: var(--ink); font-family: var(--font-mono); font-size: 9px; font-weight: 500; }
.ph__elev-head { display: flex; justify-content: space-between; }
.ph__elev-stats { display: flex; justify-content: space-between; gap: 6px; font-size: 10px; color: var(--soft); }
.ph__elev-stats b { color: var(--text); font-weight: 600; }
.ph__elev-stats b.is-acc { color: var(--acc); }
.ph__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.ph__stats div { min-width: 0; padding: 8px 8px 7px; background: var(--panel); }
.ph__value { display: block; font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.1; }
.ph__sub { display: block; font-size: 10px; line-height: 1.3; color: var(--soft); }

/* Organisers */

.panel { display: flex; flex-direction: column; gap: 28px; padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); }
.panel__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; }
.panel__title { font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 1; text-transform: uppercase; }
.facts { display: flex; flex-wrap: wrap; gap: 28px 48px; }
.fact { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.fact__big { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 72px; line-height: 0.9; text-transform: uppercase; color: var(--acc); }
.fact__big small { font-size: 30px; color: var(--text); }
.fact p:last-child { color: var(--soft); }

.package { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 64px; padding: 28px 32px; }
.package__list { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.package__price { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.package__headline { font-family: var(--font-display); font-weight: 600; font-size: 44px; line-height: 1; text-transform: uppercase; }
.package__text { max-width: 340px; font-size: 15px; line-height: 1.5; color: var(--soft); }

/* Race control */

.rc { position: relative; margin-top: 28px; display: flex; flex-direction: column; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.rc .view-tag { transform: rotate(3deg); }
.rc__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.rc__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.rc__name b { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1; text-transform: uppercase; }
.rc__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.rc__meta b { color: var(--text); font-weight: 400; }
.rc__row { display: flex; flex-wrap: wrap; gap: 16px; }
.rc__main { flex: 3 1 520px; min-width: 0; }
.rc__side { flex: 2 1 360px; min-width: 0; }
.rc__stack { display: flex; flex-direction: column; gap: 16px; }

.box { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--map); }
.box__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.box__head .label { display: inline; }
.box__note { font-size: 13px; color: var(--soft); }
.box svg { display: block; width: 100%; height: auto; }

.kpis { display: flex; flex-wrap: wrap; gap: 12px; }
.kpi { flex: 1 1 150px; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--map); }
.kpi__value { display: block; font-family: var(--font-display); font-weight: 600; font-size: 48px; line-height: 1; }
.kpi__sub { display: block; font-size: 13px; color: var(--soft); }

.alert { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.alert__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 15px; }
.alert__tag { padding: 3px 8px; border-radius: 4px; background: var(--sec); color: var(--ink); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.alert__tag--s1 { background: var(--red); }
.alert__tag--s4 { background: var(--text); }
.alert__age { font-size: 13px; color: var(--mute); }
.alert__detail { font-size: 14px; line-height: 1.45; color: var(--soft); }
.alert__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.alerts__clear { padding: 28px 0; border-top: 1px solid var(--line); color: var(--soft); }
.alerts__clear b { color: var(--acc); }

.board-wrap { overflow-x: auto; }
.board { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; text-align: left; }
.board th,
.board td { padding: 10px 12px 10px 0; border-top: 1px solid var(--line); vertical-align: middle; }
.board thead th { border-top: 0; font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.board tbody th { font-weight: 600; }
.board td:last-child { color: var(--soft); }

.chip { display: inline-block; padding: 3px 8px; border-radius: 999px; background: var(--line); color: var(--soft); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.chip--open { background: var(--acc); color: var(--ink); }
.chip--ready { background: var(--text); color: var(--ink); }
.chip--warn { background: var(--sec); color: var(--ink); }

.watch li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.watch span span { color: var(--soft); }
.watch b { font-weight: 600; }
.is-sec { color: var(--sec); }

.forecast { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.forecast dt { font-size: 13px; color: var(--soft); }
.forecast dd { font-family: var(--font-display); font-weight: 600; font-size: 32px; line-height: 1; }
.forecast div { display: flex; flex-direction: column-reverse; }

.finishers { display: flex; flex-wrap: wrap; gap: 12px; }
.finisher { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.finisher__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.finisher__away { font-family: var(--font-mono); font-size: 12px; color: var(--soft); }
.finisher__eta { display: flex; align-items: baseline; gap: 12px; font-size: 13px; color: var(--soft); }
.finisher__eta b { font-family: var(--font-display); font-weight: 600; font-size: 44px; line-height: 1; color: var(--acc); }
.finisher__name { font-size: 17px; font-weight: 600; line-height: 1.3; }
.finisher__meta { font-size: 13px; color: var(--soft); }
.finisher__say { padding-top: 8px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.45; }
.finisher__say .label { margin-bottom: 4px; }

.points { display: flex; flex-wrap: wrap; gap: 32px; }
.point { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 3px solid var(--acc); }
.point h3 { font-size: 30px; }
.point p { color: var(--soft); }

/* Race day */

.moments { display: flex; flex-wrap: wrap; gap: 32px; }
.moment { flex: 1 1 230px; display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 3px solid var(--ink); }
.moment__when { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; }
.moment p:last-child { color: var(--ink-soft); }

/* Join and footer */

.join { display: flex; flex-direction: column; align-items: center; gap: 28px; padding-top: 104px; padding-bottom: 112px; text-align: center; }
.join__logo { display: block; width: 440px; max-width: 86%; height: auto; transform: rotate(-3deg); }
.join__title { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: clamp(56px, 8vw, 120px); line-height: 0.9; text-transform: uppercase; }
.join__title .swipe { padding: 0.02em 0.45em 0 0.3em; }
.join .lead { max-width: 480px; font-size: 18px; }
.join__form { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: 100%; max-width: 520px; }
.join__form input[type="email"] {
  flex: 1 1 240px;
  min-width: 0;
  height: 56px;
  padding: 0 22px;
  border: 1px solid var(--mute);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 17px;
}
.join__form input::placeholder { color: var(--mute); }
.join__form .btn { min-height: 56px; }
.join__note { font-weight: 600; color: var(--acc); }
.join__small { font-size: 13px; color: var(--mute); }

.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 28px; padding-bottom: 28px; font-family: var(--font-mono); font-size: 13px; color: var(--mute); }

/* Small screens */

@media (max-width: 640px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .section__inner { padding-top: 64px; padding-bottom: 64px; }
  .hero { gap: 40px; padding-bottom: 72px; }
  .crew-wrap, .phone { transform: none; }
  .crew { padding: 14px; }
  .view-tag { font-size: 28px; top: -34px; }
  .stat { padding: 10px; }
  .stat__value { font-size: 26px; }
  .stat__value small { font-size: 14px; }
  .panel { padding: 22px; }
  .course__chart { padding: 16px; }
  .figure dd { font-size: 40px; }
}
