/* ==========================================================================
   CoffeeRun Zürich
   Layout: map-first. The real terrain of Zürich (swisstopo contours, OSM
   streets, the Limmat and the lake) carries the page; the club's objects sit
   on it: the race bib for the next run, a departure board with daylight,
   interactive loops with an elevation profile, mini maps for specials.
   White paper, logo brown, logo pink. Light only, like the logo.
   ========================================================================== */

:root {
  --paper: #FFFFFF;
  --ink: #703230;           /* logo lettering */
  --ink-2: #8A5A55;         /* secondary text (4.9:1 on white) */
  --line: #E8E0DA;
  --porcelain: #F7F4F0;     /* cup outline, lightened */
  --blush: #FFF0F7;
  --pink: #FB0393;          /* logo pink: marks, large type */
  --pink-ui: #E0007F;       /* buttons (4.7:1 with white) */
  --pink-text: #D6006F;     /* small pink text on white */
  --caramel: #B8640E;       /* second route */
  --water-ink: #3B7A93;
  --sun: #FFE7A3;
  --sun-edge: #F6C95A;
  --night: #E4DAD3;
  --hero-map-fade: linear-gradient(90deg, color-mix(in srgb, var(--paper) 22%, transparent) 0%, color-mix(in srgb, var(--paper) 72%, transparent) 12%, color-mix(in srgb, var(--paper) 65%, transparent) 32%, color-mix(in srgb, var(--paper) 25%, transparent) 44%, transparent 58%, transparent 84%, var(--paper) 100%);
  --hero-map-edge-mask: linear-gradient(90deg, transparent, var(--ink));
  --hero-map-fade-mobile: linear-gradient(180deg, transparent 78%, color-mix(in srgb, var(--paper) 45%, transparent) 100%);

  --display: "Caprasimo", "Cooper Black", Georgia, serif;
  --body: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); overflow-x: hidden; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
p, ul, ol, dl, dd, figure { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--pink-ui); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.hl { color: var(--pink); }
.link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--pink); }
.link:hover { color: var(--pink-text); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--pink-ui); color: #fff; padding: .6rem 1rem; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.coords { font-family: var(--mono); font-size: .8rem; letter-spacing: .02em; color: var(--ink-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.3rem; border-radius: 999px; border: 2px solid var(--ink);
  font: 700 1rem/1.1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn--sm { padding: .55rem .95rem; font-size: .9rem; }
.btn--pink { background: var(--pink-ui); color: #fff; }
.btn--line { background: var(--paper); color: var(--ink); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }

/* ---------- header ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top__inner { display: flex; align-items: center; gap: 26px; padding-block: 8px; }
.top__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.top__brand img { height: 52px; width: auto; transition: transform .3s ease; }
.top__brand:hover img { transform: rotate(-8deg); }
.top__word { font-family: var(--display); font-size: 1.4rem; line-height: 1; }
.top__nav { display: flex; gap: 20px; }
.top__nav a { text-decoration: none; font-weight: 600; font-size: .98rem; }
.top__nav a:hover { color: var(--pink-text); }
.top__toggle { display: none; background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; width: 46px; height: 42px; cursor: pointer; }
.top__burger, .top__burger::before, .top__burger::after { display: block; width: 18px; height: 2px; background: currentColor; margin: auto; position: relative; content: ""; transition: transform .2s; }
.top__burger::before { position: absolute; top: -6px; } .top__burger::after { position: absolute; top: 6px; }
.top__toggle[aria-expanded="true"] .top__burger { background: transparent; }
.top__toggle[aria-expanded="true"] .top__burger::before { transform: translateY(6px) rotate(45deg); }
.top__toggle[aria-expanded="true"] .top__burger::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1100px) {
  .top__toggle { display: grid; place-items: center; }
  .top__nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 6px var(--gutter) 14px; }
  .top__nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .top__nav:not(.is-open) { display: none; }
}
@media (max-width: 480px) { .top__inner { gap: 10px; } .top__word { display: none; } .top__cta { padding: .5rem .8rem; font-size: .85rem; } }

/* ---------- maps (shared) ---------- */
.map { --k: 1; display: block; width: 100%; height: 100%; background: #fff; }
/* .fx groups are scaled so their contents are drawn in screen pixels */
.map text { font-family: var(--mono); font-size: 11px; fill: var(--ink-2); paint-order: stroke; stroke: #fff; stroke-width: 3.5px; stroke-linejoin: round; letter-spacing: .04em; }
.map .t-place { font-family: var(--body); font-weight: 800; font-size: 14px; fill: var(--ink); letter-spacing: 0; }
.map .t-sub { font-size: 10.5px; }
.map .t-water { font-family: var(--body); font-style: italic; font-weight: 500; font-size: 13px; fill: var(--water-ink); letter-spacing: .12em; }
.map .t-area { font-family: var(--body); font-weight: 600; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; fill: var(--ink-2); }
.map .t-contour { font-size: 9.5px; fill: rgba(112, 50, 48, .75); }
.map .t-km { font-family: var(--body); font-weight: 800; font-size: 10px; fill: var(--ink); stroke: none; text-anchor: middle; dominant-baseline: central; }
.pin { fill: var(--pink); stroke: #fff; stroke-width: 3px; }
.pin--ink { fill: var(--ink); stroke-width: 2.5px; }
.pin-pulse { fill: none; stroke: var(--pink); stroke-width: 2px; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(4); opacity: 0; } }
.funicular { fill: none; stroke: var(--ink); stroke-width: 2.5px; stroke-dasharray: 2 4; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.route-halo { fill: none; stroke: #fff; stroke-width: 9px; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.route-line { fill: none; stroke: var(--rc, var(--pink-ui)); stroke-width: 4px; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.route-ghost { fill: none; stroke: rgba(224, 0, 127, .3); stroke-width: 2.5px; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.km { fill: #fff; stroke: var(--rc, var(--pink-ui)); stroke-width: 2px; }
.arrow { fill: var(--rc, var(--pink-ui)); }
.hover-dot { fill: var(--rc, var(--pink-ui)); stroke: #fff; stroke-width: 2.5px; vector-effect: non-scaling-stroke; r: calc(6px * var(--k)); }
.credit { font-family: var(--mono); font-size: .7rem; color: var(--ink-2); padding: 8px 12px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__map { position: absolute; inset: 0; }
.hero__map::before { content: ""; position: absolute; inset: 0 0 0 84%; pointer-events: none; backdrop-filter: blur(8px); mask-image: var(--hero-map-edge-mask); }
.hero__map::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--hero-map-fade); }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 560px) minmax(120px, 1fr) minmax(0, 390px); padding-block: clamp(48px, 7vw, 88px); align-items: center; }
.hero__copy { grid-column: 1; display: grid; gap: 22px; min-width: 0; }
.hero__title { font-family: var(--display); font-size: clamp(3.2rem, 7.6vw, 6.4rem); line-height: .95; letter-spacing: -.01em; }
.hero__lede { font-size: 1.2rem; line-height: 1.5; max-width: 34ch; }
.facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { padding: .3rem .75rem; border: 1.5px solid var(--ink); border-radius: 999px; font-size: .92rem; background: #fff; }
.facts b { font-weight: 800; color: var(--pink-text); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.bib { grid-column: 3; }

@media (max-width: 960px) {
  .hero__map { position: relative; height: 300px; }
  .hero__map::after { background: var(--hero-map-fade-mobile); }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 8px; }
  .hero__copy, .bib { grid-column: 1; }
}

/* race bib */
.bib {
  position: relative; width: 100%; max-width: 420px; justify-self: end;
  background: #fff; color: var(--ink); text-align: left;
  border: 2.5px solid var(--ink); border-radius: 16px;
  padding: 0 clamp(18px, 2.6vw, 28px) clamp(20px, 2.6vw, 26px);
  box-shadow: 9px 9px 0 var(--pink);
  transform: rotate(-2deg); transition: transform .3s ease;
  display: grid; gap: 13px;
}
.bib:hover { transform: rotate(-.5deg); }
.bib__pin { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); }
.bib__pin--tl { top: 52px; left: 11px; } .bib__pin--tr { top: 52px; right: 11px; }
.bib__pin--bl { bottom: 11px; left: 11px; } .bib__pin--br { bottom: 11px; right: 11px; }
.bib__top {
  display: flex; gap: 10px; margin-inline: calc(-1 * clamp(18px, 2.6vw, 28px));
  padding: 10px clamp(18px, 2.6vw, 28px); background: var(--pink-ui); color: #fff;
  border-radius: 13px 13px 0 0; font-weight: 800; font-stretch: 85%; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
}
.bib__no { display: flex; align-items: flex-end; gap: 12px; padding-top: 6px; }
.bib__day { font-weight: 800; font-stretch: 80%; font-size: 1.15rem; letter-spacing: .12em; padding-bottom: .8rem; }
.bib__time { font-family: var(--display); font-size: clamp(3.8rem, 7vw, 5.4rem); line-height: .9; }
.bib__date { font-weight: 600; }
.bib__meta { display: grid; grid-template-columns: 1.6fr .8fr .8fr; gap: 10px; padding-block: 11px; border-block: 1.5px dashed var(--line); }
.bib__meta > div { min-width: 0; }
.bib__meta dt { font-size: .7rem; font-weight: 800; font-stretch: 80%; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.bib__meta dd { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.bib__light { display: flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 600; padding: 6px 10px; border-radius: 10px; background: var(--porcelain); }
.bib__light b { font-family: var(--display); font-weight: 400; font-size: 1.15rem; }
.bib__light .wx__icon { width: 26px; height: 26px; flex: none; }
.bib__count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.bib__count span { display: grid; justify-items: center; padding: 7px 4px; border-radius: 10px; background: var(--porcelain); }
.bib__count b { font-family: var(--display); font-weight: 400; font-size: clamp(1.35rem, 2.4vw, 1.7rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.bib__count small { font-size: .64rem; font-weight: 800; font-stretch: 80%; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.bib__live { font-family: var(--display); font-size: 1.4rem; color: var(--pink-text); }
.bib__actions { display: flex; flex-wrap: wrap; gap: 9px; }
.bib__mascot { position: absolute; width: 132px; height: auto; top: -78px; right: -36px; pointer-events: none; animation: bob 1.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: rotate(6deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-7px); } }
@media (max-width: 960px) { .bib { justify-self: center; } }
@media (max-width: 480px) {
  .bib__meta { grid-template-columns: 1fr 1fr; } .bib__meta > div:first-child { grid-column: 1 / -1; }
  .bib__mascot { width: 104px; top: -62px; right: -8px; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 8.5vw, 112px); }
.section--porcelain { background: var(--porcelain); }
.section--blush { background: var(--blush); }
.head { display: grid; gap: 10px; margin-bottom: clamp(28px, 4vw, 44px); }
.head--row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; }
.head--row > div:first-child { display: grid; gap: 10px; min-width: 0; }
.head__lede { max-width: 62ch; color: var(--ink-2); }
.head__links { display: flex; flex-wrap: wrap; gap: 10px; }
.h2 { font-family: var(--display); font-size: clamp(2.2rem, 4.8vw, 3.6rem); line-height: 1.02; }
@media (max-width: 760px) { .head--row { grid-template-columns: minmax(0, 1fr); align-items: start; } }

/* ---------- departure board ---------- */
.board { list-style: none; padding: 0; border-top: 2.5px solid var(--ink); }
.board__row {
  display: grid; align-items: center; gap: 8px 22px;
  grid-template-columns: 6.2rem 5rem minmax(0, 1.2fr) minmax(0, 1.5fr) 15.5rem;
  grid-template-areas: "date time what sun status";
  padding: 16px 4px; border-bottom: 1px solid var(--line);
}
.board__row--static { grid-template-columns: 6.6rem 5.2rem minmax(0, 1fr); grid-template-areas: "date time what"; }
.board__row:first-child .board__time { color: var(--pink); }
.board__date { grid-area: date; display: grid; line-height: 1.15; font-stretch: 85%; }
.board__date b { font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .82rem; color: var(--ink-2); }
.board__date span { font-weight: 700; font-size: 1.05rem; }
.board__time { grid-area: time; font-family: var(--display); font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.board__what { grid-area: what; display: grid; line-height: 1.3; min-width: 0; }
.board__what b { font-weight: 800; font-size: 1.05rem; }
.board__what span { color: var(--ink-2); font-size: .92rem; }
.groups { display: inline-block; margin-left: 6px; padding: .05rem .5rem; border-radius: 999px; background: var(--ink); color: #fff; font-style: normal; font-weight: 700; font-size: .74rem; vertical-align: .12em; white-space: nowrap; }
.board__status { grid-area: status; display: grid; gap: 6px; justify-items: start; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: .22rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; border: 1.5px solid var(--ink); white-space: nowrap; }
.chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--sun-edge); }
.chip--dark { background: #3A2321; border-color: #3A2321; color: #fff; }
.chip--dark::before { background: #fff; box-shadow: inset -3px -2px 0 #3A2321; }
.chip--dusk::before { background: linear-gradient(180deg, var(--sun-edge) 50%, #3A2321 50%); }
.wx { display: grid; grid-template-columns: 32px auto minmax(0, 1fr); align-items: center; gap: 2px 8px; min-height: 36px; }
.wx__icon { width: 32px; height: 32px; }
.wx__temp { font-family: var(--display); font-size: 1.7rem; line-height: 1; font-variant-numeric: tabular-nums; }
.wx__txt { display: grid; font-family: var(--mono); font-size: .7rem; line-height: 1.35; color: var(--ink-2); min-width: 0; }
.wx__txt b { font-family: var(--body); font-size: .86rem; font-weight: 700; color: var(--ink); }
.wx__wait { grid-column: 1 / -1; font-family: var(--mono); font-size: .74rem; color: var(--ink-2); }
.rsvp { font-size: .85rem; font-weight: 700; color: var(--pink-text); text-decoration: underline; text-underline-offset: 3px; }

/* daylight strip: 05:00 → 22:00 */
.sun { grid-area: sun; display: block; position: relative; padding-bottom: 18px; min-width: 0; }
.sun__bar { display: block; position: relative; height: 12px; border-radius: 6px; background: var(--night); overflow: hidden; }
.sun__day, .sun__run, .sun__lbl { display: block; }
.sun__day { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, var(--sun-edge), var(--sun) 18%, var(--sun) 82%, var(--sun-edge)); }
.sun__run { position: absolute; top: -4px; height: 20px; border-radius: 4px; background: var(--pink-ui); box-shadow: 0 0 0 2px #fff; }
.sun__lbl { position: absolute; bottom: 0; transform: translateX(-50%); font-family: var(--mono); font-size: .68rem; color: var(--ink-2); white-space: nowrap; }
.sun__lbl--rise::before { content: "↑ "; } .sun__lbl--set::before { content: "↓ "; }
.board__note { color: var(--ink-2); font-size: .92rem; margin-top: 16px; }

/* calendar subscriptions */
.cal { margin-top: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 18px clamp(24px, 4vw, 48px); padding: clamp(20px, 3vw, 28px); border: 2px solid var(--ink); border-radius: var(--radius); background: var(--porcelain); }
.cal__head { display: grid; gap: 6px; align-content: start; }
.cal__title { font-family: var(--display); font-size: 1.5rem; line-height: 1.1; }
.cal__lede { color: var(--ink-2); font-size: .95rem; }
.cal__body { display: grid; gap: 14px; min-width: 0; }
.seg { display: inline-flex; justify-self: start; gap: 4px; padding: 4px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: .45rem .95rem; font-weight: 700; font-size: .9rem; cursor: pointer; }
.seg button[aria-checked="true"] { background: var(--ink); color: #fff; }
.cal__apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.calapp { display: grid; gap: 1px; padding: 10px 14px; border: 1.5px solid var(--ink); border-radius: 12px; background: #fff; text-decoration: none; text-align: left; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; min-width: 0; }
.calapp:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--pink); }
.calapp b { font-weight: 800; font-size: .95rem; }
.calapp span { color: var(--ink-2); font-size: .78rem; }
.cal__url { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .8rem; color: var(--ink-2); }
.cal__url code { font-family: var(--mono); font-size: .76rem; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; overflow-wrap: anywhere; user-select: all; }
.cal__copied { color: var(--pink-text); font-weight: 700; }
@media (max-width: 860px) { .cal { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .cal__apps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) {
  .board__row { grid-template-columns: 5.6rem 4.6rem minmax(0, 1fr) 15rem; grid-template-areas: "date time what status" "sun sun sun sun"; }
}
@media (max-width: 560px) {
  .board__row { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "date time" "what what" "status status" "sun sun"; gap: 8px 14px; }
  .board__status { width: 100%; }
  .board__row--static { grid-template-areas: "date time" "what what"; grid-template-columns: auto minmax(0, 1fr); }
  .board__time { font-size: 1.7rem; }
}

/* ---------- routes ---------- */
.tabs { display: flex; gap: 6px; padding: 5px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; }
.loops { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 22px; }
.loop { display: inline-flex; align-items: baseline; gap: 6px; padding: .5rem .9rem; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; font-weight: 700; font-size: .92rem; cursor: pointer; }
.loop span { font-family: var(--mono); font-weight: 400; font-size: .74rem; color: var(--ink-2); }
.loop[aria-selected="true"] { background: var(--ink); color: #fff; }
.loop[aria-selected="true"] span { color: #F3DCD8; }
.routes { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.routes__map { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.routes__map .map { aspect-ratio: 4 / 5; height: auto; max-width: 100%; }
.routes__map .credit { border-top: 1px solid var(--line); }
.routes__data { display: grid; gap: 22px; min-width: 0; }
.routes__via { font-family: var(--mono); font-size: .82rem; color: var(--ink-2); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tiles > div { background: #fff; border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column-reverse; gap: 2px; min-width: 0; }
.tiles dt { font-size: .78rem; font-weight: 700; color: var(--ink-2); }
.tiles dd { font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.1; }
.chart { position: relative; background: #fff; border-radius: 14px; padding: 14px 14px 8px; }
.chart:focus-visible { outline-offset: 2px; }
.chart__title { font-weight: 800; font-size: .92rem; }
.chart__title span { font-weight: 400; color: var(--ink-2); }
.chart__svg { display: block; width: 100%; height: 190px; overflow: visible; }
.chart--bars .chart__svg { height: 120px; }
.chart__svg text { font-family: var(--mono); font-size: 10.5px; fill: var(--ink-2); }
.chart__svg .val { font-family: var(--body); font-weight: 700; font-size: 11px; fill: var(--ink); }
.grid-line { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.axis-base { stroke: #CFC4BC; stroke-width: 1; shape-rendering: crispEdges; }
.area { fill: var(--rc); fill-opacity: .1; }
.line { fill: none; stroke: var(--rc); stroke-width: 2px; stroke-linejoin: round; stroke-linecap: round; }
.cross { stroke: var(--ink); stroke-width: 1; shape-rendering: crispEdges; }
.cross-dot { fill: var(--rc); stroke: #fff; stroke-width: 2px; }
.bar { fill: var(--rc); }
.chart__tip { position: absolute; top: 34px; pointer-events: none; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 16px rgba(112, 50, 48, .12); border-radius: 10px; padding: 6px 10px; font-size: .82rem; line-height: 1.35; white-space: nowrap; transform: translateX(-50%); }
.chart__tip b { font-size: 1rem; }
@media (max-width: 900px) { .routes { grid-template-columns: minmax(0, 1fr); } .routes__map .map { aspect-ratio: 1 / 1; } }
@media (max-width: 520px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- first run: minute by minute ---------- */
.sheet { margin-top: 4px; }
.sheet__date { font-family: var(--mono); font-size: .82rem; color: var(--ink-2); }
.sheet__bar { position: relative; height: 54px; border-radius: 14px; margin: 58px 0 40px; background: var(--night); box-shadow: inset 0 0 0 1px rgba(112, 50, 48, .12); }
.sheet__bar > span[class^="bar-"]:not(.bar-tick):not(.bar-sun) { position: absolute; top: 9px; bottom: 9px; border-radius: 9px; display: flex; align-items: center; padding-left: 10px; overflow: hidden; white-space: nowrap; }
.sheet__bar b { font-weight: 800; font-size: .8rem; letter-spacing: .02em; }
.bar-arrive { background: rgba(255, 255, 255, .88); color: var(--ink); border: 1.5px dashed var(--ink); }
.bar-run { background: var(--pink-ui); color: #fff; box-shadow: 0 0 0 2px #fff; }
.bar-warmup { background: repeating-linear-gradient(135deg, #FFC9E5 0 6px, #FFE6F2 6px 12px); color: var(--ink); box-shadow: 0 0 0 2px #fff; }
.bar-after { background: linear-gradient(90deg, var(--caramel) 60%, rgba(184, 100, 14, 0)); color: #fff; }
.bar-sun { position: absolute; top: -10px; bottom: -10px; width: 0; border-left: 2px dashed var(--ink); }
.bar-sun i { position: absolute; bottom: calc(100% + 2px); left: 0; transform: translateX(-50%); font-family: var(--mono); font-size: .72rem; font-style: normal; color: var(--ink); white-space: nowrap; background: var(--paper); padding: 0 4px; }
.bar-sun--left i { transform: translateX(-12px); }
.bar-sun--right i { transform: translateX(calc(-100% + 12px)); }
.bar-tick { position: absolute; top: calc(100% + 8px); transform: translateX(-50%); font-family: var(--mono); font-size: .7rem; color: var(--ink-2); }
.bar-cup { position: absolute; bottom: calc(100% - 10px); width: 66px; height: auto; transform: translateX(-28%); animation: bob 1.2s ease-in-out infinite; pointer-events: none; }
.sheet__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); }
.stop { display: grid; gap: 10px; align-content: start; padding-top: 16px; border-top: 4px solid var(--ink); min-width: 0; }
.stop--arrive { border-top-style: dashed; }
.stop--run { border-top-color: var(--pink-ui); }
.stop--after { border-top-color: var(--caramel); }
.stop .stop__time { font-family: var(--display); font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.stop--run .stop__time { color: var(--pink-text); }
.stop__title { font-weight: 800; font-size: 1.15rem; }
.stop p { color: var(--ink-2); }
.stop p b { color: var(--ink); }
.stop__hint { font-size: .92rem; }
.stop__label { font-weight: 800; font-stretch: 85%; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink) !important; margin-top: 4px; }
.stop__wx { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--porcelain); color: var(--ink) !important; font-size: .92rem; }
.stop__wx b { font-family: var(--display); font-weight: 400; font-size: 1.2rem; }
.stop__wx .wx__icon { width: 28px; height: 28px; flex: none; }
.walk { fill: none; stroke: var(--pink-ui); stroke-width: 3px; stroke-dasharray: 1 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.partner { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1.5px solid var(--ink); border-radius: 14px; background: #fff; }
.partner { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 14px; }
.partner__logo { flex: none; display: grid; place-items: center; min-width: 74px; height: 40px; padding: 0; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 900; font-stretch: 125%; font-size: 1rem; letter-spacing: .08em; }
.partner__logo { border-radius: 8px; padding: 4px 10px; height: auto; min-height: 40px; }
.partner__logo img { height: 34px; width: auto; max-width: 140px; display: block; }
.partner__links { font-size: .84rem; }
.partner__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.perk { display: grid; place-items: center; width: 58px; height: 58px; flex: none; border-radius: 50%; background: var(--pink-ui); color: #fff; font-family: var(--display); font-size: 1.05rem; transform: rotate(-10deg); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--pink-ui); }
.bar-perk { margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: var(--pink-ui); color: #fff; font-weight: 800; font-size: .74rem; }
.bar-logo { display: inline-flex; align-items: center; margin-left: 8px; padding: 3px 8px; border-radius: 6px; background: #fff; }
.bar-logo img { height: 15px; width: auto; display: block; }
.partner__txt { display: grid; line-height: 1.3; min-width: 0; }
.partner__txt b { font-weight: 800; }
.partner__txt span { color: var(--ink-2); font-size: .86rem; }
.map--mini { aspect-ratio: 420 / 300; height: auto; max-width: 100%; border-radius: 12px; border: 1px solid var(--line); }
.first__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: clamp(28px, 3.4vw, 40px); }
.first__cta span { color: var(--ink-2); }
.bring { list-style: none; padding: 0; display: grid; gap: 10px; }
.bring li { position: relative; padding-left: 24px; color: var(--ink-2); line-height: 1.45; }
.bring li::before { content: ""; position: absolute; left: 0; top: .35em; width: 13px; height: 13px; border-radius: 4px; border: 2px solid var(--ink); }
.bring li b { color: var(--ink); }
.bring li.is-now::before { background: var(--pink); border-color: var(--pink); }
@media (max-width: 900px) { .sheet__cols { grid-template-columns: minmax(0, 1fr); max-width: 620px; } }
@media (max-width: 560px) {
  .bar-arrive b { display: none; }
  .bar-tick--minor { visibility: hidden; }
  .bar-cup { width: 52px; }
}

/* pace slider (the cup is the thumb) */
.track { --thumb-w: 96px; --thumb-h: 65px; --lane: 34px; --pad: 30px; position: relative; padding-top: var(--pad); }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--pad) + (var(--thumb-h) - var(--lane)) / 2); height: var(--lane); border-block: 2.5px solid var(--ink); background: repeating-linear-gradient(90deg, var(--ink) 0 14px, transparent 14px 28px) center / 100% 2px no-repeat; }
.track__zone { position: absolute; top: calc(var(--pad) + (var(--thumb-h) - var(--lane)) / 2 + 2.5px); height: calc(var(--lane) - 5px); left: calc(var(--thumb-w) / 2 + (100% - var(--thumb-w)) * var(--from)); width: calc((100% - var(--thumb-w)) * (var(--to) - var(--from))); background: #FFC9E5; }
.track__zone span { position: absolute; bottom: calc(100% + (var(--thumb-h) - var(--lane)) / 2 + 4px); left: 50%; transform: translateX(-50%); color: var(--pink-text); font-weight: 800; font-size: .74rem; white-space: nowrap; }
.track__zone + .track__zone { background: #FFDCEE; }
.track__input { position: relative; z-index: 2; display: block; width: 100%; height: var(--thumb-h); margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: grab; }
.track__input::-webkit-slider-runnable-track { height: var(--thumb-h); background: transparent; }
.track__input::-moz-range-track { height: var(--thumb-h); background: transparent; }
.track__input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: var(--thumb-w); height: var(--thumb-h); border: 0; background: url("../img/mascot.png") center / contain no-repeat; }
.track__input::-moz-range-thumb { width: var(--thumb-w); height: var(--thumb-h); border: 0; border-radius: 0; background: url("../img/mascot.png") center / contain no-repeat; }
.track__ticks { position: relative; height: 18px; margin-top: 4px; }
.track__ticks span { position: absolute; left: calc(var(--thumb-w) / 2 + (100% - var(--thumb-w)) * var(--at)); transform: translateX(-50%); font-family: var(--mono); font-size: .74rem; color: var(--ink-2); white-space: nowrap; }
.track__zones { position: absolute; inset: 0; pointer-events: none; }
.pace__read b { font-family: var(--display); font-weight: 400; color: var(--ink); }
#pace-out { font-size: 2.2rem; color: var(--pink); }
.pace__verdict { color: var(--ink) !important; font-weight: 600; }
.stop .pace__read { color: var(--ink-2); }

/* ---------- specials ---------- */
.specials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.special { --b-bg: #FFE8F4; --b-ink: #703230; --b-soft: #fff; --b-accent: #E0007F;
  display: grid; grid-template-rows: auto 1fr; background: var(--b-soft); border: 2px solid var(--b-ink); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.special:hover { transform: translate(-3px, -3px) rotate(-.4deg); box-shadow: 6px 6px 0 var(--b-bg); }
.special__art { display: block; aspect-ratio: 16 / 9; background: var(--b-bg); border-bottom: 2px solid var(--b-ink); }
.special__art svg { display: block; width: 100%; height: 100%; }
.special__art { position: relative; overflow: hidden; }
.special__photo { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15); mix-blend-mode: multiply; }
.special__art .art-t { font-family: var(--mono); font-size: 10.5px; fill: #fff; letter-spacing: .04em; }
.special__art .art-big { font-family: var(--display); font-size: 20px; }
.special__art .eq { transform-box: fill-box; transform-origin: 50% 100%; animation: eq 1.1s ease-in-out infinite alternate; }
.special__art .snow { animation: snow 3.2s ease-in-out infinite alternate; }
@keyframes eq { from { transform: scaleY(.45); } to { transform: scaleY(1); } }
@keyframes snow { from { transform: translateY(-3px); opacity: .7; } to { transform: translateY(5px); opacity: 1; } }
.special__body { display: grid; gap: 6px; padding: 16px 18px 18px; align-content: start; }
.special__when { font-family: var(--mono); font-size: .76rem; color: var(--b-ink); opacity: .85; }
.special__title { font-family: var(--display); font-size: 1.35rem; line-height: 1.12; color: var(--b-ink); }
.special__kicker { font-weight: 800; font-stretch: 85%; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--b-ink); opacity: .8; }
.special__text { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 960px) { .specials { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .specials { grid-template-columns: minmax(0, 1fr); } }

/* ---------- community ---------- */
.wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: clamp(16px, 2.6vw, 30px); }
.polaroid { --r: -2deg; position: relative; display: block; background: #fff; padding: 9px 9px 0; border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(112, 50, 48, .13); text-decoration: none; transform: rotate(var(--r)); transition: transform .2s ease; }
.polaroid::before { content: ""; position: absolute; z-index: 1; top: -10px; left: 50%; width: 70px; height: 20px; transform: translateX(-50%) rotate(-4deg); background: rgba(251, 3, 147, .28); }
.polaroid:nth-child(2) { --r: 2deg; } .polaroid:nth-child(3) { --r: -1deg; } .polaroid:nth-child(4) { --r: 2.5deg; }
.polaroid:nth-child(5) { --r: 1.5deg; } .polaroid:nth-child(6) { --r: -2.5deg; } .polaroid:nth-child(7) { --r: 1deg; } .polaroid:nth-child(8) { --r: -1.5deg; }
.polaroid:hover { transform: rotate(0) scale(1.04); z-index: 2; }
.polaroid__photo { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--porcelain); }
.polaroid__photo::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(112, 50, 48, .08), inset 0 0 40px rgba(112, 50, 48, .10); pointer-events: none; }
.polaroid__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.polaroid:hover .polaroid__photo img { transform: scale(1.05); }
.polaroid__photo--text { display: grid; place-items: center; padding: 16px; background: var(--blush); color: var(--ink); text-align: center; font-family: var(--display); font-size: 1.1rem; line-height: 1.2; }
.polaroid__reel { position: absolute; z-index: 1; top: 10px; right: 10px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.polaroid__reel svg { width: 15px; height: 15px; fill: var(--pink-ui); }
.polaroid__cap { display: -webkit-box; margin: 12px 4px 0; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-family: var(--display); font-size: clamp(.98rem, 1.3vw, 1.08rem); line-height: 1.22; color: var(--ink); text-align: center; text-wrap: balance; }
.polaroid__meta { display: block; padding: 6px 4px 14px; font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); text-align: center; }
.wall .polaroid:nth-child(even) { margin-top: 26px; }
.wall .polaroid:nth-child(4n+3) { margin-top: 8px; }
@media (max-width: 820px) { .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(32px, 5vw, 64px); }
.faq dt { font-family: var(--display); font-size: 1.3rem; line-height: 1.2; }
.faq dd { margin-top: 6px; color: var(--ink-2); }
@media (max-width: 720px) { .faq { grid-template-columns: minmax(0, 1fr); } }

/* ---------- footer ---------- */
.footer { padding-block: clamp(56px, 7vw, 88px) 32px; border-top: 1px solid var(--line); }
.footer__inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.footer__logo { width: clamp(150px, 18vw, 210px); height: auto; transform: rotate(-5deg); }
.footer__text { display: grid; gap: 16px; min-width: 0; }
.footer__bye { font-family: var(--display); font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; }
.footer__friends { color: var(--ink-2); max-width: 70ch; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 700; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--pink-text); }
.footer__credits { font-family: var(--mono); font-size: .72rem; color: var(--ink-2); line-height: 1.6; }
.footer__credits a { color: inherit; }
@media (max-width: 640px) { .footer__inner { grid-template-columns: minmax(0, 1fr); justify-items: start; } }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; padding-block: 48px 96px; display: grid; gap: 16px; }
.legal h1 { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.4rem); margin-top: 16px; }
.legal h2 { font-family: var(--display); font-size: 1.3rem; margin-top: 18px; }
.legal p { color: var(--ink-2); }
.legal__todo { color: var(--pink-text) !important; font-weight: 700; }

/* ---------- motion ---------- */
/* ---------- language menu ---------- */
.lang { position: relative; }
.lang__btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font-weight: 800; font-size: .85rem; letter-spacing: .06em; cursor: pointer; }
.lang__btn:hover { background: var(--blush); }
.lang__globe { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lang__menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 184px; list-style: none; margin: 0; padding: 6px; background: #fff; border: 2px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--pink); }
.lang__menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; text-decoration: none; font-weight: 600; }
.lang__menu a b { width: 22px; font-family: var(--mono); font-size: .78rem; font-weight: 500; color: var(--ink-2); }
.lang__menu a:hover, .lang__menu a:focus-visible { background: var(--blush); }
.lang__menu a[aria-current="true"] { background: var(--ink); color: #fff; }
.lang__menu a[aria-current="true"] b { color: #fff; }
@media (max-width: 480px) { .lang__btn { padding: 0 9px; } .lang__globe { width: 15px; height: 15px; } }
.footer__langs { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .92rem; }
.footer__langs a { color: var(--ink-2); text-decoration: none; }
.footer__langs a:hover { color: var(--pink-text); }
.footer__langs a[aria-current="true"] { color: var(--ink); font-weight: 800; text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- shared bits ---------- */
.kicker { font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--pink-text); }
.h3 { font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.1; }

/* ---------- team: race bibs ---------- */
.team { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.8vw, 32px); }
.tbib { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 250px; padding: 0 22px 18px; background: #fff; border: 2.5px solid var(--ink); border-radius: 16px; box-shadow: 6px 6px 0 var(--ink); transform: rotate(-1deg); transition: transform .25s ease; }
.tbib:nth-child(even) { transform: rotate(1deg); }
.tbib:hover { transform: rotate(0) translateY(-3px); }
.tbib__strip { display: flex; justify-content: space-between; gap: 10px; margin: 0 -22px 2px; padding: 9px 22px 8px; border-radius: 13px 13px 0 0; background: var(--pink-ui); color: #fff; font-weight: 800; font-stretch: 80%; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.tbib--pacer .tbib__strip { background: var(--ink); }
.tbib__pin { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.tbib__pin--tl { top: 44px; left: 9px; } .tbib__pin--tr { top: 44px; right: 9px; }
.tbib__pin--bl { bottom: 9px; left: 9px; } .tbib__pin--br { bottom: 9px; right: 9px; }
.tbib__no { margin-top: 8px; font-family: var(--display); font-size: clamp(3.6rem, 6vw, 4.8rem); line-height: .95; font-variant-numeric: tabular-nums; }
.tbib--founder .tbib__no { color: var(--pink); }
.tbib__name { font-weight: 900; font-stretch: 75%; font-size: 1.5rem; line-height: 1.1; letter-spacing: .02em; text-transform: uppercase; }
.tbib__name--tbd { align-self: flex-start; padding-bottom: 3px; border-bottom: 2px dashed var(--line); color: var(--ink-2); font-weight: 600; font-stretch: 100%; font-size: 1rem; letter-spacing: 0; text-transform: none; }
.tbib__meta { font-family: var(--mono); font-size: .76rem; line-height: 1.5; color: var(--ink-2); }
.tbib__code { width: 44%; height: 16px; margin-top: auto; padding-top: 10px; box-sizing: content-box; fill: var(--ink); opacity: .85; }
.tbib__photo { position: absolute; top: 52px; right: 22px; width: 104px; height: 120px; object-fit: cover; background: #fff; border: 5px solid #fff; border-bottom-width: 14px; box-shadow: 0 6px 14px rgba(112,50,48,.22); transform: rotate(3deg); }
.tbib:nth-child(2n) .tbib__photo { transform: rotate(-2.5deg); }
.tbib__photo + .tbib__no, .tbib__photo ~ .tbib__name, .tbib__photo ~ .tbib__meta { padding-right: 120px; }
.tbib--you { border-style: dashed; border-color: var(--pink-ui); box-shadow: 6px 6px 0 var(--pink); }
.tbib--you .tbib__strip { background: transparent; color: var(--pink-text); border-bottom: 2px dashed var(--pink-ui); }
.tbib--you .tbib__pin { background: var(--pink-ui); }
.tbib--you .tbib__no { color: transparent; -webkit-text-stroke: 2px var(--pink-ui); }
.tbib--you .tbib__name { color: var(--pink-text); font-family: var(--display); font-weight: 400; font-stretch: 100%; font-size: 2.2rem; text-transform: none; }
.tbib__text { max-width: 30ch; color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
.tbib--you .btn { align-self: flex-start; margin-top: 8px; }
.tbib__mascot { position: absolute; right: -16px; bottom: -20px; width: 104px; height: auto; transform: rotate(8deg); pointer-events: none; }
@media (max-width: 900px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .team { grid-template-columns: minmax(0, 1fr); } .tbib { min-height: 0; } }

/* ---------- collabs ---------- */
.reach { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: clamp(28px, 4vw, 44px); border-block: 2px solid var(--ink); }
.reach > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 18px 20px; border-left: 2px dashed var(--line); min-width: 0; }
.reach > div:first-child { border-left: 0; padding-left: 0; }
.reach dd { font-family: var(--display); font-size: clamp(2.3rem, 5vw, 3.5rem); line-height: 1; color: var(--pink-ui); font-variant-numeric: tabular-nums; }
.reach dt { margin-top: 6px; font-size: .92rem; font-weight: 600; line-height: 1.3; color: var(--ink-2); }
@media (max-width: 760px) {
  .reach { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reach > div { padding: 16px 0 16px 16px; }
  .reach > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .reach > div:nth-child(n+3) { border-top: 2px dashed var(--line); }
}
.formats { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: fmt; }
.format { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 16px; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); transition: transform .15s ease, box-shadow .15s ease; }
.format:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--pink); }
.format::after { counter-increment: fmt; content: counter(fmt, decimal-leading-zero); position: absolute; top: 16px; right: 18px; font-family: var(--mono); font-size: .75rem; color: var(--ink-2); }
.format__icon { width: 44px; height: 44px; fill: none; stroke: var(--pink-ui); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.format h3 { font-family: var(--display); font-size: 1.3rem; line-height: 1.15; }
.format p { color: var(--ink-2); font-size: .97rem; line-height: 1.5; }
.format .format__eg { margin-top: auto; padding-top: 10px; border-top: 1.5px dashed var(--line); font-family: var(--mono); font-size: .74rem; color: var(--ink); }
.format__eg::before { content: "→ "; color: var(--pink-ui); }
@media (max-width: 900px) { .formats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .formats { grid-template-columns: minmax(0, 1fr); } }

.pitch { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 56px); align-items: start; margin-top: clamp(36px, 5vw, 56px); }
.steps { position: relative; list-style: none; padding: 0; margin: 18px 0 30px; display: grid; gap: 20px; }
.steps li:not(:last-child)::before { content: ""; position: absolute; left: 20px; top: 44px; bottom: -20px; border-left: 3px dotted var(--pink-ui); }
.steps li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; }
.steps__km { grid-row: span 2; position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 2.5px solid var(--ink); font-family: var(--mono); font-size: .64rem; font-weight: 500; line-height: 1; text-align: center; }
.steps li:last-child .steps__km { background: var(--pink-ui); border-color: var(--pink-ui); color: #fff; }
.steps b { align-self: end; font-weight: 800; }
.steps li > span:last-child { color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
.pitch__with { margin-bottom: 10px; font-weight: 800; font-stretch: 80%; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.ranwith { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ranwith li { padding: .3rem .75rem; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; font-weight: 700; font-size: .9rem; }
@media (max-width: 900px) { .pitch { grid-template-columns: minmax(0, 1fr); } }

/* ---------- forms ---------- */
.form { position: relative; display: grid; gap: 16px; padding: clamp(20px, 3vw, 32px); background: #fff; border: 2.5px solid var(--ink); border-radius: 20px; box-shadow: 8px 8px 0 var(--pink); }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field--full { grid-column: 1 / -1; }
.field__label { padding: 0; font-weight: 700; font-size: .92rem; }
.field__label small { font-weight: 500; font-size: .8rem; color: var(--ink-2); }
legend.field__label { margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: .7rem .85rem; font: 400 1rem/1.4 var(--body); color: var(--ink);
  background: var(--porcelain); border: 2px solid transparent; border-bottom-color: var(--ink); border-radius: 10px 10px 4px 4px;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 128px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.4rem; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23703230' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; }
.field input::placeholder { color: #A88884; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background-color: #fff; border-color: var(--pink-ui); box-shadow: 0 0 0 3px rgba(224, 0, 127, .15); }
.field [aria-invalid="true"] { border-color: #C4002F; background-color: #FFF4F6; }
.field__err { color: #A8002B; font-size: .85rem; font-weight: 600; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt span { display: inline-block; padding: .45rem .85rem; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; font-weight: 600; font-size: .9rem; transition: background .15s, color .15s; }
.opt input:hover + span { background: var(--blush); }
.opt input:checked + span { background: var(--ink); color: #fff; }
.opt input:checked + span::before { content: "✓ "; }
.opt input:focus-visible + span { outline: 3px solid var(--pink-ui); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: .85rem; color: var(--ink-2); }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.form__actions .link { font-size: .95rem; }
.form button[disabled] { opacity: .6; cursor: progress; }
.form__status { padding: 12px 14px; border-radius: 12px; background: var(--blush); font-size: .95rem; }
.form__status.is-error { background: #FFF4F6; color: #8E0024; }
.form__again { margin-left: 4px; padding: 0; border: 0; background: none; cursor: pointer; }
.form.is-sent > :not(.form__status):not(.h3) { display: none; }
.form.is-sent .form__status { padding: 8px 0 4px; background: none; font-size: 1.15rem; line-height: 1.45; }
.form.is-sent .form__status::before { content: ""; display: block; width: 96px; height: 65px; margin-bottom: 12px; background: url("../img/mascot.png") left center / contain no-repeat; }
@media (max-width: 600px) { .form__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 56px); align-items: start; margin-top: clamp(48px, 6vw, 72px); padding-top: clamp(40px, 5vw, 56px); border-top: 2px dashed #DDD3CB; }
.contact__intro { display: grid; justify-items: start; gap: 14px; }
.contact__intro p { color: var(--ink-2); }
.contact__mascot { width: 150px; height: auto; margin-top: 6px; animation: bob 1.2s ease-in-out infinite; }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); } .contact__mascot { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* two pace zones: labels grow away from each other so they never overlap */
.track__zone:first-child:not(:only-child) span { left: auto; right: 50%; transform: none; text-align: right; }
.track__zone + .track__zone span { left: 50%; transform: none; }
