/* KEYSYS 5K | Cahaba Heights — hand-authored. Markup is generated by scripts/build-5k.js. */

:root {
  --ink: #0b0e12;
  --ink-2: #13181f;
  --ink-3: #1c232c;
  --paper: #f3f4f1;
  --white: #ffffff;
  --text: #11161c;
  --muted: #5b6672;
  --muted-light: rgba(255, 255, 255, .68);
  --line: rgba(17, 22, 28, .12);
  --line-light: rgba(255, 255, 255, .14);
  --c-brand-blue: #0197D6;
  --c-brand-dark: #283847;
  --blue: var(--c-brand-blue);
  --blue-hover: #007EB3;
  --volt: #4cc3ff;
  --display: "Archivo Black", "Arial Black", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --sec-y: clamp(88px, 11vw, 168px);
  --hdr-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--volt); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: calc(var(--hdr-h) + 8px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.br-d { display: none; }
@media (min-width: 900px) { .br-d { display: inline; } }

/* ── Type ─────────────────────────────────────────────── */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow-light { color: var(--volt); }
.h-xl, .h-xxl, .h-hero { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: -.012em; line-height: .92; text-wrap: balance; }
.h-xl { font-size: clamp(30px, 8.4vw, 76px); }
@media (min-width: 900px) { .h-xl { font-size: clamp(48px, 6vw, 92px); } }
.h-xxl { font-size: clamp(44px, 8.4vw, 136px); line-height: .9; }
.h-hero { font-size: clamp(48px, 10vw, 168px); line-height: .88; }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; font-weight: 500; }

/* ── Buttons ──────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; border: 2px solid transparent; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); }
.btn .ico { transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn-reg { background: var(--blue); color: var(--white); }
.btn-reg:hover { background: var(--blue-hover); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--blue); }
.btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.btn-ghost-ink { color: var(--text); border-color: var(--line); }
.btn-ghost-ink:hover { border-color: var(--text); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 13px; }
.btn-lg { min-height: 58px; padding: 0 32px; font-size: 15px; }
.btn-block { width: 100%; }

/* ── Header ───────────────────────────────────────────── */
.hdr { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--hdr-h); color: var(--white); background: rgba(11, 14, 18, .94); border-bottom: 1px solid var(--line-light); transition: background .35s var(--ease), border-color .35s var(--ease); }
@supports (backdrop-filter: blur(1px)) { .hdr { background: rgba(11, 14, 18, .82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); } }
.hdr.is-over { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.hdr-in { height: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 24px; }
.hdr-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.hdr-brand .logo { width: auto; height: 26px; }
.hdr-tag { font-family: var(--display); font-size: 20px; line-height: 1; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .35); }
.hdr-nav ul { display: flex; gap: 4px; }
.hdr-nav a { display: block; padding: 10px 14px; font-size: 14px; font-weight: 600; text-decoration: none; color: rgba(255, 255, 255, .82); border-radius: 999px; transition: color .2s, background .2s; }
.hdr-nav a:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.hdr-burger { display: none; width: 48px; height: 48px; margin-right: -10px; align-items: center; justify-content: center; }
.hdr-burger .ico { width: 26px; height: 26px; }
@media (max-width: 899px) {
  :root { --hdr-h: 64px; }
  .hdr-nav { display: none; }
  .hdr-burger { display: inline-flex; }
  .hdr-cta { min-height: 38px; padding: 0 16px; }
  .hdr-brand .logo { height: 22px; }
  .hdr-tag { font-size: 17px; padding-left: 10px; }
}
@media (max-width: 359px) { .hdr-cta { display: none; } }

/* mobile menu */
.menu { position: fixed; inset: 0; z-index: 150; background: var(--ink); color: var(--white); padding: 0 var(--gutter) max(28px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; overflow-y: auto; }
.menu[hidden] { display: none; }
.menu-top { height: var(--hdr-h); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-light); }
.menu-label { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-light); }
.menu-close { width: 48px; height: 48px; margin-right: -10px; display: inline-flex; align-items: center; justify-content: center; }
.menu-close .ico { width: 26px; height: 26px; }
.menu nav { flex: 1; padding: 24px 0; }
.menu nav a { display: block; padding: 12px 0; font-family: var(--display); font-size: clamp(32px, 9vw, 48px); line-height: 1.05; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--line-light); }
.menu-meta { margin-top: 20px; font-size: 14px; color: var(--muted-light); }
@media (prefers-reduced-motion: no-preference) {
  .menu:not([hidden]) { animation: menuIn .32s var(--ease); }
  @keyframes menuIn { from { opacity: 0; transform: translateY(-12px); } }
}

/* ── Photo media + placeholders ───────────────────────── */
.media { width: 100%; height: 100%; object-fit: cover; }
.ph { width: 100%; height: 100%; min-height: 160px; display: grid; place-items: center; text-align: center; padding: 20px; color: rgba(255, 255, 255, .7);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 14px),
    radial-gradient(120% 90% at 85% 110%, rgba(1, 151, 214, .32), transparent 60%),
    linear-gradient(160deg, #1d252e, #0f1318); }
.ph-in { display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 30ch; font-size: 13px; line-height: 1.4; }
.ph-in .ico { width: 28px; height: 28px; color: var(--volt); margin-bottom: 4px; }
.ph-in b { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--white); }
.ph-in code { font: 600 11px/1 ui-monospace, Menlo, monospace; padding: 4px 8px; border-radius: 4px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .6); margin-top: 4px; }

/* ── 1 Hero ───────────────────────────────────────────── */
.hero { position: relative; min-height: 86vh; min-height: 86svh; max-height: 1100px; display: flex; align-items: center; color: var(--white); background: var(--ink); overflow: hidden; isolation: isolate; }
.hero-media, .hero-shade { position: absolute; inset: 0; z-index: -1; }
.hero-media .ph { align-items: start; padding-top: calc(var(--hdr-h) + 28px); justify-items: end; }
.hero-media .ph-in { opacity: .8; }
.hero-shade { background:
  linear-gradient(0deg, rgba(8, 10, 14, .94) 0%, rgba(8, 10, 14, .72) 32%, rgba(8, 10, 14, .2) 64%, rgba(8, 10, 14, .45) 100%),
  linear-gradient(90deg, rgba(8, 10, 14, .55) 0%, rgba(8, 10, 14, 0) 60%); }
.hero-in { padding-top: calc(var(--hdr-h) + 32px); padding-bottom: calc(var(--hdr-h) + 32px); } /* equal top and bottom so the block sits at the optical center of the photo; the bottom half is room for the scroll cue */
.hero-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .84; letter-spacing: -.015em; font-size: clamp(68px, 10.6vw, 176px); margin: 4px 0 0; }
.ht-the { display: block; font-size: .3em; letter-spacing: .02em; line-height: 1; color: var(--volt); margin-bottom: .12em; }
.ht-5k { position: relative; white-space: nowrap; }
/* "3rd Annual" stamp: sized in its own em (= .085 of the headline) so it scales with the title. */
.ht-ann { position: absolute; left: calc(100% + .1em); top: -.04em; font-size: .085em; width: 7.6em; height: 7.6em; border: 2px solid rgba(255, 255, 255, .85); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25em; font-family: var(--body); font-weight: 700; letter-spacing: .16em; line-height: 1; text-align: center; transform: rotate(-10deg); }
.ht-ann span:last-child { margin-left: .16em; }
.ht-ann span:first-child { font-family: var(--display); font-weight: 400; font-size: 2.5em; letter-spacing: 0; line-height: .9; color: var(--volt); }
.ht-ann sup { font-size: .42em; vertical-align: top; position: relative; top: .15em; margin-left: .05em; }
.hero-sub { font-family: var(--display); text-transform: uppercase; font-size: clamp(22px, 3.1vw, 46px); line-height: 1; margin-top: clamp(18px, 2.4vw, 30px); letter-spacing: .005em; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 26px; font-weight: 700; font-size: clamp(14px, 1.25vw, 17px); letter-spacing: .14em; text-transform: uppercase; }
.hero-facts p { display: flex; gap: 10px; align-items: center; }
.hero-facts .sep { color: var(--volt); }
.hero-facts p + p::before { content: ""; width: 1px; height: 18px; background: rgba(255, 255, 255, .35); margin-right: 18px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3.4vw, 44px); }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: rgba(255, 255, 255, .7); text-decoration: none; font-size: 11px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; padding: 6px 10px; }
.scroll-cue i { width: 1px; height: 36px; background: linear-gradient(rgba(255, 255, 255, .8), rgba(255, 255, 255, 0)); position: relative; overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--volt); animation: cue 2.2s var(--ease) infinite; }
  @keyframes cue { to { top: 100%; } }
  .hero-in > * { animation: rise .9s var(--ease) both; }
  .hero-in > :nth-child(2) { animation-delay: .06s; }
  .hero-in > :nth-child(3) { animation-delay: .14s; }
  .hero-in > :nth-child(4) { animation-delay: .2s; }
  .hero-in > :nth-child(5) { animation-delay: .26s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
}
@media (max-width: 719px) {
  .hero-title { font-size: min(19.5vw, 120px); }
  .ht-key { display: block; }
  .ht-the { font-size: .34em; }
  .hero-facts { flex-direction: column; letter-spacing: .1em; }
  .hero-facts p + p::before { display: none; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .scroll-cue { display: none; }
  .hero-in { padding-top: calc(var(--hdr-h) + 24px); padding-bottom: calc(var(--hdr-h) + 24px); }
}
@media (max-height: 640px) and (min-width: 720px) { .hero { min-height: 560px; } }

/* ── Sections ─────────────────────────────────────────── */
.sec { padding: var(--sec-y) 0; }
.sec-light { background: var(--white); }
.sec-paper { background: var(--paper); }
.sec-dark { background: var(--ink); color: var(--white); }
.sec-dark .eyebrow { color: var(--volt); }
.split { display: grid; gap: 28px 64px; align-items: end; }
@media (min-width: 900px) { .split { grid-template-columns: 1.15fr 1fr; } }
.split-end .lead { color: var(--muted); max-width: 46ch; }

/* ── 2 Tradition ──────────────────────────────────────── */
.trad-copy { display: grid; gap: 18px; color: var(--muted); max-width: 54ch; }
.trad-copy .lead { color: var(--text); }
.timeline { display: grid; gap: 40px; margin-top: clamp(56px, 7vw, 104px); position: relative; }
.tl-item { position: relative; display: grid; gap: 18px; }
.tl-dot { position: absolute; top: -9px; left: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 3px solid var(--text); z-index: 1; }
.tl-media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: var(--ink-3); margin-top: 26px; }
.tl-media .media { transition: transform 1.2s var(--ease); }
.tl-item:hover .tl-media .media { transform: scale(1.03); }
.tl-meta { display: grid; gap: 4px; }
.tl-year { font-family: var(--display); font-size: clamp(44px, 5vw, 72px); line-height: .9; }
.tl-label { font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.tl-stat { font-weight: 600; margin-top: 6px; }
.tl-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 700; font-size: 14px; color: var(--blue); text-decoration: none; }
.tl-link:hover { text-decoration: underline; }
.tl-next .tl-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; aspect-ratio: 4 / 5; margin-top: 26px; padding: clamp(24px, 3vw, 40px); background: var(--blue); color: var(--white); text-decoration: none; border-radius: 4px; overflow: hidden; isolation: isolate; transition: background .3s var(--ease); }
.tl-next .tl-card::before { content: "3"; position: absolute; right: -.06em; top: -.2em; z-index: -1; font-family: var(--display); font-size: clamp(260px, 30vw, 420px); line-height: 1; color: rgba(255, 255, 255, .12); }
.tl-next .tl-card:hover { background: var(--blue-hover); }
.tl-next .tl-dot { top: -35px; background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 6px rgba(1, 151, 214, .2); }
.tl-next .tl-label { color: var(--white); font-size: 15px; }
.tl-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--text) 0 66%, var(--blue) 66%); }
  .tl-item:nth-child(2) { margin-top: 64px; }
  .tl-item:nth-child(2) .tl-dot { top: -73px; }
  .tl-item:nth-child(3) { margin-top: 128px; }
  .tl-next .tl-dot { top: -137px; }
}
@media (max-width: 899px) {
  .timeline { padding-left: 28px; }
  .timeline::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--text) 0 66%, var(--blue) 66%); }
  .tl-dot { left: -28px; top: 26px; }
  .tl-next .tl-dot { top: 26px; }
  .tl-media, .tl-next .tl-card { margin-top: 0; aspect-ratio: 4 / 3; }
}

/* ── 3 Collage ────────────────────────────────────────── */
.collage { padding-bottom: 0; }
.collage .h-xxl { margin-bottom: clamp(40px, 5vw, 72px); max-width: 15ch; }
.collage-grid { display: grid; gap: 6px; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 44vw; grid-auto-flow: dense; padding: 0 6px 6px; }
.cg { overflow: hidden; background: var(--ink-3); position: relative; }
.cg .media { transition: transform 1.1s var(--ease), filter .6s var(--ease); }
.cg:hover .media { transform: scale(1.035); }
.cg-1, .cg-7 { grid-column: span 2; }
.cg-2, .cg-5 { grid-row: span 2; }
@media (min-width: 900px) {
  .collage-grid { grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(56px, 6.4vw, 104px); gap: 8px; padding: 0 8px 8px; }
  .cg-1 { grid-area: 1 / 1 / 6 / 7; }
  .cg-2 { grid-area: 1 / 7 / 7 / 10; }
  .cg-3 { grid-area: 1 / 10 / 4 / 13; }
  .cg-4 { grid-area: 4 / 10 / 7 / 13; }
  .cg-5 { grid-area: 6 / 1 / 11 / 4; }
  .cg-6 { grid-area: 6 / 4 / 9 / 7; }
  .cg-7 { grid-area: 7 / 7 / 11 / 13; }
  .cg-8 { grid-area: 9 / 4 / 11 / 7; }
}

/* ── 4 Details ────────────────────────────────────────── */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: clamp(40px, 5vw, 72px); border-top: 2px solid var(--text); }
.fact { padding: 22px 20px 26px 0; border-bottom: 1px solid var(--line); }
.fact:nth-child(odd) { padding-right: 16px; }
.fact dt { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.fact dd { font-family: var(--display); text-transform: uppercase; font-size: clamp(20px, 2.1vw, 30px); line-height: 1.04; }
.fact-link { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-family: var(--body); text-transform: none; font-size: 15px; font-weight: 700; color: var(--blue); text-decoration: none; }
.fact-link:hover { text-decoration: underline; }
@media (min-width: 900px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .fact { padding: 28px 28px 32px 0; border-bottom: 0; }
  .fact + .fact { padding-left: 28px; border-left: 1px solid var(--line); }
}
@media (max-width: 899px) { .fact:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); } }
@media (max-width: 479px) { .facts { grid-template-columns: 1fr; } .fact:nth-child(even) { padding-left: 0; border-left: 0; } }

.dist { display: grid; gap: 16px; margin-top: clamp(40px, 5vw, 64px); }
@media (min-width: 900px) { .dist { grid-template-columns: 1fr 1fr; gap: 20px; } }
.dist-card { position: relative; display: flex; flex-direction: column; gap: 28px; padding: clamp(28px, 3.6vw, 52px); border-radius: 6px; overflow: hidden; isolation: isolate; min-height: 420px; }
.dist-5k { background: var(--ink); color: var(--white); }
.dist-1mile { background: var(--white); border: 1px solid var(--line); }
.dist-mark { font-family: var(--display); font-size: clamp(110px, 13vw, 200px); line-height: .8; letter-spacing: -.03em; }
.dist-5k .dist-mark { color: var(--blue); }
.dist-1mile .dist-mark { color: var(--text); -webkit-text-stroke: 0; }
.dist-body { display: grid; gap: 10px; max-width: 40ch; }
.dist-name { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(26px, 2.4vw, 34px); line-height: 1; }
.dist-lede { font-size: 18px; font-weight: 500; }
.dist-copy { color: var(--muted); }
.dist-5k .dist-copy { color: var(--muted-light); }
.dist-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.dist-5k .dist-foot { border-color: var(--line-light); }
.price span { font-family: var(--display); font-size: 40px; line-height: 1; }
.price small { font-size: 14px; font-weight: 600; color: var(--muted); }
.dist-5k .price small { color: var(--muted-light); }
@media (max-width: 479px) { .dist-foot .btn { width: 100%; } .dist-card { min-height: 0; } }

.incl { display: grid; gap: 10px 32px; margin-top: 40px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.incl li { display: flex; align-items: center; gap: 14px; padding: 14px 0; font-weight: 600; border-bottom: 1px solid var(--line); }
.incl .ico { width: 28px; height: 28px; color: var(--blue); }
.notes { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 28px; color: var(--muted); font-size: 15px; }
.note b { color: var(--text); margin-right: 8px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.note-pickup { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 0; }
.note-pickup ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 28px; }
.note-pickup strong { color: var(--text); font-weight: 700; margin-right: 6px; }
.note-pickup span { white-space: nowrap; }
.note-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--blue); text-decoration: none; }

/* ── 5 Everyone ───────────────────────────────────────── */
.everyone .h-xl { max-width: 16ch; }
.everyone .hl { color: var(--volt); }
.ev-grid { display: grid; gap: 12px; margin-top: clamp(48px, 6vw, 88px); }
@media (min-width: 900px) { .ev-grid { grid-template-columns: repeat(3, 1fr); } .ev-panel:nth-child(2) { transform: translateY(48px); } }
.ev-panel { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 4px; isolation: isolate; background: var(--ink-3); }
.ev-media { position: absolute; inset: 0; z-index: -2; }
.ev-media .media { transition: transform 1.2s var(--ease); }
.ev-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 10, 14, .92) 0%, rgba(8, 10, 14, .55) 42%, rgba(8, 10, 14, 0) 70%); transition: opacity .5s var(--ease); }
.ev-body { position: absolute; inset: auto 0 0; padding: clamp(22px, 2.4vw, 34px); }
.ev-kicker { font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--volt); }
.ev-panel { container-type: inline-size; }
/* Sized to the panel so "Neighborhood" always fits on one line. */
.ev-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: min(8.4cqi, 56px); line-height: .95; margin: 4px 0 12px; }
.ev-body p:last-child { color: rgba(255, 255, 255, .82); font-size: 16px; max-width: 34ch; }
.ev-panel:hover .media { transform: scale(1.04); }
.ev-panel .ph { align-items: start; padding-top: 32px; }
@media (max-width: 899px) { .ev-panel { aspect-ratio: 4 / 5; } }
.statement { font-family: var(--display); text-transform: uppercase; font-size: clamp(30px, 5vw, 76px); line-height: .98; margin-top: clamp(96px, 12vw, 176px); max-width: 20ch; text-wrap: balance; }
.statement span { color: var(--volt); }

/* ── 6 Galleries ──────────────────────────────────────── */
.gal-cards { display: grid; gap: 16px; margin-top: clamp(40px, 5vw, 72px); }
@media (min-width: 900px) { .gal-cards { grid-template-columns: 1fr 1fr; gap: 20px; } }
.gal-card { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; color: var(--white); text-decoration: none; isolation: isolate; background: var(--ink-3); }
@media (min-width: 900px) and (max-height: 900px) { .gal-card { aspect-ratio: 1 / 1; } }
@media (max-width: 899px) { .gal-card { aspect-ratio: 4 / 4.4; } }
.gal-media { position: absolute; inset: 0; z-index: -2; }
.gal-media .media { transition: transform 1.2s var(--ease); }
.gal-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 10, 14, .85) 0%, rgba(8, 10, 14, .1) 45%, rgba(8, 10, 14, .1) 65%, rgba(8, 10, 14, .55) 100%); }
.gal-top { position: absolute; top: 0; left: 0; right: 0; padding: clamp(22px, 2.6vw, 36px); display: grid; gap: 8px; }
.gal-year { font-family: var(--display); font-size: clamp(88px, 11vw, 168px); line-height: .82; letter-spacing: -.02em; }
.gal-kicker { font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--white); text-shadow: 0 1px 12px rgba(8, 10, 14, .6); }
.gal-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(22px, 2.6vw, 36px); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.gal-cta { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; }
.gal-cta .ico { width: 24px; height: 24px; }
.gal-arrow { width: 56px; height: 56px; border-radius: 50%; background: var(--white); color: var(--ink); display: grid; place-items: center; flex: none; transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease); }
a.gal-card:hover .media { transform: scale(1.04); }
a.gal-card:hover .gal-arrow { background: var(--blue); color: var(--white); transform: rotate(-35deg); }
.gal-card .ph { align-items: center; }
.gal-card.is-soon .gal-cta { opacity: .75; }

/* ── 7 Moment ─────────────────────────────────────────── */
.moment { position: relative; height: min(92vh, 960px); min-height: 520px; display: grid; place-items: end start; color: var(--white); overflow: hidden; isolation: isolate; background: var(--ink); }
.moment-media { position: absolute; inset: 0; z-index: -2; }
.moment-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 10, 14, .8) 0%, rgba(8, 10, 14, 0) 55%); }
.moment-line { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(54px, 11vw, 190px); line-height: .84; letter-spacing: -.015em; padding: 0 var(--gutter) clamp(36px, 6vw, 80px); width: 100%; max-width: calc(var(--wrap) + 400px); margin: 0 auto; }
.moment-line span { display: block; color: var(--volt); }
.moment .ph { align-items: start; padding-top: 56px; }

/* ── 8 FAQ ────────────────────────────────────────────── */
.faq-grid { display: grid; gap: 40px 80px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 5fr 7fr; } .faq-head { position: sticky; top: calc(var(--hdr-h) + 40px); align-self: start; } }
.faq-more { margin-top: 24px; color: var(--muted); max-width: 32ch; }
.faq-more a { color: var(--blue); font-weight: 600; }
.faq-list { border-top: 2px solid var(--text); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; cursor: pointer; font-weight: 700; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.3; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue); }
.faq-ico { width: 30px; height: 30px; padding: 6px; border-radius: 50%; border: 1.5px solid var(--line); transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s; }
.faq-item[open] .faq-ico { transform: rotate(45deg); background: var(--text); color: var(--white); border-color: var(--text); }
.faq-a { padding: 0 48px 26px 0; color: var(--muted); font-size: 17px; }
.faq-a a { color: var(--blue); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) { .faq-item[open] .faq-a { animation: rise .35s var(--ease); } }

/* ── 9 Final ──────────────────────────────────────────── */
.final { position: relative; color: var(--white); background: var(--ink); overflow: hidden; isolation: isolate; padding: clamp(120px, 16vw, 220px) 0 clamp(88px, 10vw, 140px); }
.final-media { position: absolute; inset: 0; z-index: -2; }
.final-shade { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(70% 90% at 100% 100%, rgba(1, 151, 214, .38), transparent 60%),
  radial-gradient(50% 60% at 0% 0%, rgba(1, 151, 214, .14), transparent 60%),
  linear-gradient(0deg, rgba(8, 10, 14, .55), rgba(8, 10, 14, .55)); }
.final-media + .final-shade { background: linear-gradient(0deg, rgba(8, 10, 14, .92) 0%, rgba(8, 10, 14, .7) 60%, rgba(8, 10, 14, .55) 100%); }
.final-sub { font-size: clamp(19px, 1.8vw, 24px); font-weight: 500; margin-top: 28px; color: rgba(255, 255, 255, .86); max-width: 34ch; }
.final-meta { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-light); font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-light); line-height: 1.9; }
.final .h-hero { max-width: none; }
.final-date { position: absolute; z-index: -1; right: -.04em; bottom: -.12em; font-family: var(--display); font-size: clamp(120px, 22vw, 360px); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(76, 195, 255, .22); letter-spacing: -.02em; pointer-events: none; user-select: none; }
.final-media ~ .final-date { display: none; }
@media (max-width: 719px) { .final .hero-ctas .btn { flex: 1 1 100%; } }

/* ── 10 Footer ────────────────────────────────────────── */
.ftr { background: #07090c; color: var(--white); padding: 72px 0 32px; }
.ftr-in { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .ftr-in { grid-template-columns: 1fr auto; } }
.ftr .logo { height: 30px; width: auto; }
.ftr-name { font-family: var(--display); text-transform: uppercase; font-size: 22px; margin-top: 22px; }
.ftr-name span { color: var(--blue); }
.ftr-host { color: var(--muted-light); margin-top: 6px; }
.ftr-links { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.ftr-links a { display: inline-block; padding: 10px 12px; font-weight: 600; font-size: 15px; text-decoration: none; color: rgba(255, 255, 255, .82); border-radius: 6px; }
.ftr-links a:hover { color: var(--white); background: rgba(255, 255, 255, .06); }
.ftr-links li:first-child a { color: var(--volt); }
@media (min-width: 900px) { .ftr-links { margin-right: -12px; justify-content: flex-end; max-width: 520px; } }
@media (max-width: 899px) { .ftr-links { margin-left: -12px; } }
.ftr-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-light); font-size: 13px; color: rgba(255, 255, 255, .5); }

/* ── Sticky mobile CTA ────────────────────────────────── */
.sticky-reg { position: fixed; z-index: 90; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 20px; border-radius: 999px; background: rgba(11, 14, 18, .94); color: var(--white); box-shadow: 0 12px 40px rgba(0, 0, 0, .35); border: 1px solid var(--line-light); transform: translateY(140%); opacity: 0; transition: transform .4s var(--ease), opacity .3s; }
@supports (backdrop-filter: blur(1px)) { .sticky-reg { background: rgba(11, 14, 18, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); } }
.sticky-reg.is-on { transform: none; opacity: 1; }
.sticky-reg p { display: grid; line-height: 1.2; }
.sticky-reg b { font-family: var(--display); font-weight: 400; font-size: 16px; text-transform: uppercase; }
.sticky-reg p span { font-size: 13px; color: var(--muted-light); font-weight: 600; }
.sticky-reg .btn { min-height: 46px; }
@media (min-width: 900px) { .sticky-reg { display: none; } }
@media (max-width: 899px) { .page-home .ftr { padding-bottom: 104px; } }

/* ── Gallery pages ────────────────────────────────────── */
.page-gallery .hdr { position: sticky; }
.g-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 48px); background: var(--white); }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 36px; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--muted); }
.back:hover { color: var(--text); }
.g-year { color: var(--blue); }
.g-meta { margin-top: 20px; color: var(--muted); font-weight: 500; }
.g-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.g-grid-wrap { background: var(--white); padding: 0 6px 6px; }
/* Justified rows: each tile grows in proportion to its aspect ratio, so photos keep their shape and reading order. */
.jg { display: flex; flex-wrap: wrap; gap: 6px; --row: 120px; }
.jg::after { content: ""; flex-grow: 999; }
.jg-item { flex: calc(var(--r) * 100) 1 calc(var(--r) * var(--row)); aspect-ratio: var(--r); max-height: calc(var(--row) * 1.8); position: relative; background: var(--paper); overflow: hidden; }
.jg-link { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.jg-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .3s; }
.jg-link:hover img { transform: scale(1.03); }
@media (min-width: 700px) { .jg { --row: 260px; gap: 8px; } .g-grid-wrap { padding: 0 8px 8px; } }
@media (min-width: 1400px) { .jg { --row: 320px; } }
.g-end { background: var(--ink); color: var(--white); padding: clamp(80px, 10vw, 140px) 0; text-align: center; }
.g-end .lead { color: var(--muted-light); margin: 20px 0 32px; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 300; background: rgba(5, 6, 8, .97); color: var(--white); display: grid; grid-template-rows: auto 1fr auto; touch-action: pan-y; }
.lb[hidden] { display: none; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 20px; }
.lb-count { font-size: 13px; font-weight: 700; letter-spacing: .16em; }
.lb-actions { display: flex; gap: 4px; }
.lb-btn { width: 48px; height: 48px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--white); text-decoration: none; transition: background .2s; }
.lb-btn:hover { background: rgba(255, 255, 255, .1); }
.lb-btn .ico { width: 24px; height: 24px; }
.lb-stage { position: relative; min-height: 0; display: grid; place-items: center; padding: 0 clamp(8px, 6vw, 88px); overflow: hidden; }
.lb-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: opacity .25s, transform .25s var(--ease); }
.lb-img.is-loading { opacity: .35; }
.lb-cap { min-height: 44px; padding: 10px 20px 16px; text-align: center; font-size: 14px; color: var(--muted-light); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, .08); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
@media (max-width: 699px) { .lb-nav { top: auto; bottom: 8px; transform: none; } .lb-cap { padding: 10px 72px 16px; } }
body.lb-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Full photo sets hosted on RunSignup */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.gal-item { display: flex; flex-direction: column; gap: 14px; }
.gal-all, .g-more-link { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-weight: 700; color: var(--blue-ink, var(--blue)); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.gal-all svg, .g-more-link svg { width: 16px; height: 16px; flex: none; }
.gal-all:hover, .g-more-link:hover { text-decoration-color: currentColor; color: var(--text); }
.g-ctas .btn svg { width: 16px; height: 16px; }
.g-more { max-width: 1100px; margin: 0 auto; padding: clamp(32px, 4vw, 56px) 16px clamp(24px, 3vw, 40px); text-align: center; color: var(--muted); font-weight: 500; }
.g-more .g-more-link { display: inline-flex; margin-left: 4px; }

/* ── Your host: KEYSYS in Cahaba Heights ─────────────── */
.host .hl, .course .hl { color: var(--volt); }
.course .hl { color: var(--blue); }
.host-copy { display: grid; gap: 18px; max-width: 54ch; color: var(--muted-light); }
.host-copy .lead { color: var(--white); }
.host-map { margin-top: clamp(48px, 6vw, 88px); }
.map-credit { margin-top: 12px; font-size: 12px; color: var(--muted); }
.map-credit a { color: inherit; }
.host .map-credit { color: rgba(255, 255, 255, .45); }

.nmap-wrap { position: relative; height: clamp(520px, 72vh, 800px); overflow: hidden; background: #0d1117; border-block: 1px solid var(--line-light); isolation: isolate; }
.nmap { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.nmap path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.nmap .nm-park { fill: rgba(110, 190, 140, .1); stroke: none; }
.nmap .nm-school { fill: rgba(255, 255, 255, .06); stroke: none; }
.nmap .nm-water { fill: rgba(1, 151, 214, .45); stroke: none; }
.nm-river { stroke: rgba(1, 151, 214, .8); stroke-width: 3; }
.nm-stream { stroke: rgba(1, 151, 214, .38); stroke-width: 1.2; }
.nm-res { stroke: rgba(255, 255, 255, .15); stroke-width: 1; }
.nm-mid { stroke: rgba(255, 255, 255, .36); stroke-width: 2; }
.nm-hwy { stroke: rgba(255, 255, 255, .55); stroke-width: 4; }
.nm-course-glow { stroke: rgba(76, 195, 255, .3); stroke-width: 12; }
.nm-course { stroke: var(--volt); stroke-width: 3.5; }
.nmap text { paint-order: stroke; stroke: #0d1117; stroke-linejoin: round; }
.nm-place { font-family: var(--display); font-size: 84px; letter-spacing: .06em; fill: var(--white); stroke-width: 12px; }
.nm-road { font: 600 17px var(--body); fill: rgba(255, 255, 255, .58); stroke-width: 5px; letter-spacing: .02em; }
.nm-road.nm-road-major { font-size: 19px; fill: rgba(255, 255, 255, .85); }
.nm-road.nm-water-t { fill: #7fd3f7; font-style: italic; }
.nm-shield rect { fill: var(--white); }
.nm-shield text { font: 800 16px var(--body); fill: var(--ink); stroke: none; }
.nm-poi circle { fill: var(--white); }
.nm-poi text { font: 600 16px var(--body); fill: rgba(255, 255, 255, .78); stroke-width: 5px; }

/* KEYSYS sits at the exact center of the map frame, so the pin is pinned to 50% / 50%. */
/* The runner's K circle (44.8% / 36.4% of the artwork) sits on the map center. */
.nmap-pin { position: absolute; left: 50%; top: 50%; width: 128px; transform: translate(-44.8%, -36.4%); }
.nmap-pin .runner { position: relative; width: 100%; }
.nmap-pulse { position: absolute; left: 15.6%; top: 0; width: 58.4%; height: 72.8%; border-radius: 50%; background: rgba(76, 195, 255, .55); }
@media (prefers-reduced-motion: no-preference) {
  .nmap-pulse { animation: pinPulse 2.4s var(--ease) infinite; }
  @keyframes pinPulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(3.2); opacity: 0; } }
}
.nmap-card { position: absolute; left: calc(50% + 84px); top: 50%; transform: translateY(-50%); display: grid; gap: 2px; padding: 14px 18px 14px 20px; border-radius: 10px; background: var(--white); color: var(--text); box-shadow: 0 18px 44px rgba(0, 0, 0, .45); line-height: 1.25; white-space: nowrap; }
.nmap-card::before { content: ""; position: absolute; left: -7px; top: 50%; width: 14px; height: 14px; background: inherit; transform: translateY(-50%) rotate(45deg); border-radius: 2px; }
.nmap-card b { font-family: var(--display); font-weight: 400; font-size: 20px; text-transform: uppercase; }
.nmap-card span { font-size: 14px; color: var(--muted); font-weight: 500; }
.nmap-card .nmap-card-tag { margin-top: 4px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.nmap-legend { position: absolute; left: var(--gutter); bottom: 20px; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: rgba(11, 14, 18, .78); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .82); }
.nmap-legend i { width: 24px; height: 3px; border-radius: 2px; background: var(--volt); box-shadow: 0 0 10px rgba(76, 195, 255, .7); }

.host-facts { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line-light); }
.host-facts > div { padding: 22px 16px 24px 0; border-bottom: 1px solid var(--line-light); }
.host-facts dt { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 8px; }
.host-facts dd { font-family: var(--display); text-transform: uppercase; font-size: clamp(18px, 1.8vw, 26px); line-height: 1.08; }
.host-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (min-width: 900px) {
  .host-facts { grid-template-columns: repeat(4, 1fr); }
  .host-facts > div { border-bottom: 0; padding: 28px 24px 8px 0; }
  .host-facts > div + div { padding-left: 24px; border-left: 1px solid var(--line-light); }
}
@media (max-width: 899px) { .host-facts > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line-light); } }
@media (max-width: 719px) {
  .nmap-wrap { height: min(132vw, 640px); }
  .nm-place { font-size: 60px; }
  /* Phones see a narrow slice around KEYSYS: keep the neighborhood name, the pin and the course. */
  .nm-road, .nm-poi, .nm-shield { display: none; }
  .nmap-pin { width: 96px; }
  .nmap-card { left: 50%; top: calc(50% + 62px); transform: translateX(-50%); padding: 12px 16px; text-align: center; }
  .nmap-card::before { left: 50%; top: -6px; transform: translateX(-50%) rotate(45deg); }
  .nmap-card b { font-size: 17px; }
  .nmap-legend { bottom: 14px; }
  .host-ctas .btn { flex: 1 1 100%; }
}

/* ── The course ───────────────────────────────────────── */
.course-stats { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: clamp(40px, 5vw, 64px); border-top: 2px solid var(--text); }
.course-stats > div { padding: 22px 16px 22px 0; border-bottom: 1px solid var(--line); }
.course-stats dt { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.course-stats dd { font-family: var(--display); font-size: clamp(44px, 5.4vw, 80px); line-height: .86; letter-spacing: -.01em; }
.course-stats dd small { font-family: var(--body); font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-left: 6px; }
.course-stats p { margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
@media (min-width: 900px) {
  .course-stats { grid-template-columns: repeat(4, 1fr); }
  .course-stats > div { border-bottom: 0; padding: 28px 28px 8px 0; }
  .course-stats > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
}
@media (max-width: 899px) { .course-stats > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); } }

.course-fig { margin-top: clamp(40px, 5vw, 64px); padding: clamp(10px, 1.6vw, 20px); border-radius: 8px; background: var(--paper); }
.cmap-wrap { position: relative; border-radius: 6px; overflow: hidden; background: #eceee9; }
.cmap-credit { position: absolute; right: 0; bottom: 0; padding: 3px 8px; border-top-left-radius: 6px; background: rgba(255, 255, 255, .8); font-size: 11px; color: var(--muted); }
.cmap-credit a { color: inherit; }
.cmap { display: block; width: 100%; height: auto; }
.cmap path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.cmap .cm-park { fill: #d9e7d3; stroke: none; }
.cmap .cm-water { fill: #bfe0f1; stroke: none; }
.cm-stream { stroke: #a6d3ea; stroke-width: 2; }
.cm-res.cm-case { stroke: #d4d8dc; stroke-width: 9; }
.cm-res { stroke: var(--white); stroke-width: 6.5; }
.cm-mid.cm-case { stroke: #cdd2d6; stroke-width: 13; }
.cm-mid { stroke: #fbf6e6; stroke-width: 10; }
.cm-route-case { stroke: var(--white); stroke-width: 13; }
.cm-route { stroke: var(--blue); stroke-width: 6.5; }
.cm-route-flow { stroke: rgba(255, 255, 255, .95); stroke-width: 2.5; stroke-dasharray: 1 13; }
@media (prefers-reduced-motion: no-preference) {
  .cm-route-flow { animation: flow 1.1s linear infinite; }
  @keyframes flow { to { stroke-dashoffset: -14; } }
}
.cmap text { paint-order: stroke; stroke: var(--white); stroke-width: 4px; stroke-linejoin: round; }
.cm-road { font: 600 15px var(--body); fill: #56606b; letter-spacing: .01em; }
.cm-road.cm-road-main { font-weight: 700; fill: #8a7a45; }
.cm-mile circle { fill: var(--ink); stroke: var(--white); stroke-width: 3; }
.cm-mile text { font: 700 14px var(--body); fill: var(--white); stroke: none; }
.cm-turn circle { fill: var(--white); stroke: var(--ink); stroke-width: 4; }
.cm-turn text, .cm-high text { font: 700 12px var(--body); letter-spacing: .14em; text-transform: uppercase; fill: var(--ink); }
.cm-high path { fill: var(--ink); stroke: var(--white); stroke-width: 2; }
.cm-high text { letter-spacing: .06em; }
.cm-start-runner, .cm-dot image { filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .25)); }
.cm-start-pulse { fill: rgba(1, 151, 214, .35); transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) { .cm-start-pulse { animation: pinPulse 2.4s var(--ease) infinite; } }
.cm-start text { font: 600 13px var(--body); fill: var(--muted); }
.cm-start .b { font-family: var(--display); font-size: 19px; fill: var(--ink); }
.cm-north path { fill: var(--muted); stroke: none; }
.cm-north text, .cm-scale text { font: 700 12px var(--body); fill: var(--muted); }
.cm-scale path { stroke: var(--muted); stroke-width: 2; vector-effect: none; }
@media (max-width: 719px) {
  .cm-road { font-size: 34px; stroke-width: 8px; }
  /* Phones: only orienting roads, so labels don't collide with the markers. */
  .cm-road:not(.keep) { display: none; }
  .cmap .s { transform: scale(2.2); }
  .cm-res.cm-case { stroke-width: 6; }
  .cm-res { stroke-width: 4; }
  .cm-route-case { stroke-width: 9; }
  .cm-route { stroke-width: 4.5; }
  .cm-route-flow { display: none; }
}

/* elevation */
.ep-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-top: clamp(20px, 2.4vw, 32px); padding: 0 4px; }
.ep-title { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.ep-read { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; min-height: 1.6em; }
.ep-read-val { font-weight: 700; color: var(--text); }
.ep-read.is-on .ep-read-hint { display: none; }
.ep-wrap { margin-top: 10px; padding: 22px 4px 0; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; border-radius: 4px; }
.ep-plot { position: relative; height: clamp(130px, 15vw, 210px); }
.ep { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.ep path { vector-effect: non-scaling-stroke; fill: none; }
.ep .ep-area { fill: url(#ep-fill); }
.ep-line { stroke: var(--blue); stroke-width: 2.5; stroke-linejoin: round; }
.ep-grid { stroke: var(--line); stroke-width: 1; }
.ep-turn { stroke: var(--text); stroke-width: 1; stroke-dasharray: 3 4; }
.ep-y { position: absolute; right: 0; transform: translateY(-120%); font-size: 11px; font-weight: 600; color: var(--muted); }
.ep-tag { position: absolute; top: -2px; transform: translateX(-50%) translateY(-100%); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text); white-space: nowrap; }
.ep-hi { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--paper); }
.ep-hi span { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); font-size: 12px; font-weight: 700; white-space: nowrap; }
.ep-cursor { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1.5px solid var(--text); pointer-events: none; }
.ep-cursor[hidden] { display: none; }
.ep-cursor i { position: absolute; left: -8px; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--blue); border: 3px solid var(--white); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.ep-xs { position: relative; height: 26px; margin-top: 6px; }
.ep-x { position: absolute; top: 0; transform: translateX(-50%); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.ep-x:first-child { transform: none; }
.ep-x:last-child { transform: translateX(-100%); }
.ep-cap { margin-top: 8px; padding: 0 4px 6px; color: var(--muted); font-size: 15px; }

/* Five nav items: tighten them on narrow desktops so the header stays on one line. */
@media (min-width: 900px) and (max-width: 1099px) {
  .hdr-in { gap: 14px; }
  .hdr-nav ul { gap: 0; }
  .hdr-nav a { padding: 10px 9px; font-size: 13px; }
}

/* ── Running K mascot + 2027 badge ────────────────────── */
.runner { display: block; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .runner-trot { animation: trot .7s ease-in-out infinite; transform-origin: 50% 90%; }
  .runner-wave { animation: wave 2.4s ease-in-out infinite; transform-origin: 45% 95%; }
  @keyframes trot { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-7%) rotate(4deg); } }
  @keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-9deg); } 80% { transform: rotate(7deg); } 90% { transform: rotate(-4deg); } }
}

/* hero scroll cue */
.cue-runner { width: 46px; margin-bottom: 2px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)); }

/* timeline: year three */
.tl-next .tl-card { padding-right: 46%; }
.tl-runner { position: absolute; right: 6%; bottom: 8%; width: 40%; z-index: -1; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .25)); }
@media (max-width: 899px) { .tl-runner { width: 34%; bottom: 10%; } }

/* race details: 2027 badge sticker */
.det-head { display: flex; align-items: center; justify-content: space-between; gap: 16px 40px; }
.det-badge { flex: none; width: clamp(118px, 21vw, 290px); height: auto; transform: rotate(7deg); filter: drop-shadow(0 14px 22px rgba(11, 14, 18, .18)); transition: transform .4s var(--ease); }
@media (prefers-reduced-motion: no-preference) {
  .det-badge { animation: bob 4s ease-in-out infinite; }
  .det-badge:hover { animation: wiggle .6s ease-in-out; }
  @keyframes bob { 0%, 100% { transform: rotate(7deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-8px); } }
  @keyframes wiggle { 0%, 100% { transform: rotate(7deg) scale(1.04); } 25% { transform: rotate(-5deg) scale(1.08); } 50% { transform: rotate(12deg) scale(1.08); } 75% { transform: rotate(0) scale(1.06); } }
}
@media (max-width: 719px) { .det-head { flex-direction: column-reverse; align-items: flex-start; } .det-badge { width: 136px; margin: 0 0 4px 4px; } }

/* "You just have to show up": a runner crossing the section */
.show-up { position: relative; height: 112px; margin-top: 36px; border-bottom: 2px dashed rgba(255, 255, 255, .22); overflow: hidden; }
.show-up-runner { position: absolute; bottom: 6px; left: 0; width: 120px; }
@media (prefers-reduced-motion: no-preference) {
  .show-up-runner { left: -140px; animation: trot .55s ease-in-out infinite, across 11s linear infinite; }
  @keyframes across { to { left: 100%; } }
}
@media (max-width: 719px) { .show-up { height: 84px; } .show-up-runner { width: 88px; } }

/* FAQ */
.faq-runner { width: clamp(96px, 10vw, 140px); margin-top: 32px; }
@media (max-width: 899px) { .faq-runner { display: none; } }

/* sticky mobile register bar */
.sticky-runner { width: 36px; flex: none; margin: -6px -4px -6px -10px; }
.sticky-reg p span { white-space: nowrap; }
.sticky-reg p { margin-right: auto; }

/* footer + gallery end */
.ftr-host { display: flex; align-items: center; gap: 10px; }
.ftr-runner { width: 34px; }
.g-end-runner { width: 120px; margin: 0 auto 24px; }

/* elevation: the runner rides the profile */
.ep-runner { position: absolute; left: 50%; bottom: 10px; width: 54px; max-width: none; margin-left: -24px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .25)); }
.course-fig.is-moved .ep-runner { animation: trot .7s ease-in-out infinite; transform-origin: 50% 90%; }
.course-fig:not(.is-moved) .ep-cursor { border-left-color: transparent; }
.ep-wrap { padding-top: 64px; }
@media (prefers-reduced-motion: reduce) { .course-fig.is-moved .ep-runner { animation: none; } }
/* On dark backgrounds the mascot gets a white sticker edge so its navy outline doesn't disappear. */
.nmap-pin .runner, .show-up-runner, .sticky-runner, .ftr-runner, .cue-runner, .g-end-runner, .host-goal-runner {
  filter: drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff) drop-shadow(0 10px 18px rgba(0, 0, 0, .45));
}

/* ── Ticker under the hero ───────────────────────────────── */
.ticker { position: relative; overflow: hidden; background: var(--ink); color: rgba(255, 255, 255, .82); border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); padding: 14px 0; }
.tk-track { display: flex; width: max-content; }
.tk-set { display: flex; align-items: center; flex: none; }
.tk-item { white-space: nowrap; font-size: 11px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; padding: 0 28px; }
.tk-item b { color: var(--volt); font-weight: 800; margin-right: .5em; }
.tk-sep { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .tk-track { animation: ticker 48s linear infinite; }
  @keyframes ticker { to { transform: translateX(-50%); } }
}
@media (max-width: 719px) {
  .ticker { padding: 12px 0; }
  .tk-item { font-size: 10px; letter-spacing: .28em; padding: 0 20px; }
}

/* ── Hero video ──────────────────────────────────────────── */
.hero-media.has-video { background: var(--ink) var(--poster-wide) 50% 50% / cover no-repeat; }
.hero-video { opacity: 0; transition: opacity .8s var(--ease); }
.hero-video.is-on { opacity: 1; }
@media (orientation: portrait) {
  .hero-media.has-video { background-image: var(--poster-portrait); background-position: 50% 60%; }
  .hero-video { object-position: 50% 60%; }
}

/* ── Host copy ───────────────────────────────────────────── */
.host .split { align-items: start; }
.host-copy { gap: 22px; max-width: 58ch; }
.host-intro { margin: 0; font-family: var(--display); font-size: clamp(26px, 2.6vw, 36px); line-height: 1.08; letter-spacing: -.005em; text-transform: uppercase; color: var(--white); }
.host-intro-sub { display: block; margin-top: 6px; font-size: .62em; letter-spacing: .02em; color: rgba(255, 255, 255, .78); }
.host-copy strong { color: var(--white); font-weight: 700; }
.host-date { white-space: nowrap; color: var(--volt) !important; }
.host-goal { position: relative; display: flex; align-items: center; gap: 18px; margin: 6px 0 0; padding: 20px 22px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-light); border-left: 3px solid var(--blue); color: rgba(255, 255, 255, .86); font-size: 16px; line-height: 1.55; }
.host-goal b { color: var(--volt); font-weight: 700; }
.host-goal-runner { flex: none; width: 52px; height: auto; }
@media (max-width: 719px) {
  .host-goal { align-items: flex-start; padding: 16px 16px 16px 18px; gap: 14px; font-size: 15px; }
  .host-goal-runner { width: 40px; margin-top: 2px; }
  .host-date { white-space: normal; }
}

/* ── A place for you (everyone) ──────────────────────────── */
.everyone .h-xl { max-width: 18ch; }
.ev-title { font-size: min(7.2cqi, 40px); line-height: 1; margin: 8px 0 12px; text-wrap: balance; }
.ev-panel::after { background: linear-gradient(0deg, rgba(8, 10, 14, .94) 0%, rgba(8, 10, 14, .72) 40%, rgba(8, 10, 14, 0) 72%); }
.everyone .show-up { margin-top: clamp(72px, 9vw, 120px); }
@media (max-width: 899px) { .ev-title { font-size: min(8.4cqi, 36px); } }
