/* =========================================================
   XPLLOR JAMAICA — Offroad Gravel Race
   Rugged-offroad look with Jamaican colour accents
   ========================================================= */

/* =========================== Coming-soon gate =========================== */
.cs-locked, .cs-locked body { overflow: hidden; height: 100%; }
.coming-soon {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2rem;
  font-family: "Barlow", system-ui, sans-serif; color: #f5efe3;
  background:
    radial-gradient(circle at 50% 38%, rgba(0,155,58,0.18), rgba(0,0,0,0) 60%),
    radial-gradient(circle at 50% 42%, #201e16, #100f0b 75%);
  transition: opacity 0.5s ease;
}
.coming-soon.cs-hide { opacity: 0; pointer-events: none; }
.cs-inner { max-width: 520px; display: flex; flex-direction: column; align-items: center; }
.cs-logo {
  width: 168px; height: 168px; object-fit: cover; border-radius: 50%;
  background: #fff; padding: 8px; box-shadow: 0 20px 50px rgba(0,0,0,0.55);
  margin-bottom: 1.6rem;
}
.cs-eyebrow { font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.72rem; color: #ffcd00; margin-bottom: 0.7rem; }
.cs-title { font-family: "Anton", sans-serif; text-transform: uppercase; font-weight: 400; line-height: 0.95; font-size: clamp(2.8rem, 11vw, 5rem); color: #f5efe3; }
.cs-title span { color: #ffcd00; }
.cs-sub { color: #a89f8c; margin: 0.9rem 0 1.8rem; font-size: 1rem; }
.cs-form { display: flex; gap: 0.6rem; width: 100%; max-width: 420px; }
.cs-form input {
  flex: 1; padding: 0.85rem 1rem; font-size: 1rem; color: #f5efe3;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px; outline: none; transition: border-color 0.2s;
}
.cs-form input::placeholder { color: #8a8069; }
.cs-form input:focus { border-color: #ffcd00; }
.cs-form .btn { flex-shrink: 0; }
.cs-error { color: #ff7a6b; min-height: 1.3em; margin-top: 0.9rem; font-size: 0.9rem; font-weight: 600; }
.coming-soon .flag-stripe { position: absolute; inset: auto 0 0 0; }
@media (max-width: 520px) {
  .cs-form { flex-direction: column; }
  .cs-form .btn { width: 100%; }
}

:root {
  /* Earthy rugged base */
  --ink: #12110d;
  --ink-2: #1c1a14;
  --ink-3: #26231b;
  --dust: #c9a86a;
  --dust-2: #b8935a;
  --sand: #e9e0cf;
  --paper: #f5efe3;
  --muted: #a89f8c;

  /* Jamaican accents */
  --jam-green: #009b3a;
  --jam-green-d: #007a2d;
  --jam-gold: #ffcd00;
  --jam-black: #0a0a0a;

  --maxw: 1200px;
  --radius: 4px;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--sand);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.5px;
}

.wrap { width: min(100% - 3rem, var(--maxw)); margin-inline: auto; }

section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  color: var(--jam-gold);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 3px;
  background: var(--jam-green);
}

.section-title { font-size: clamp(2.1rem, 6vw, 3.6rem); color: var(--paper); }
.section-title .accent { color: var(--jam-gold); }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 62ch; margin-top: 1.1rem; }

/* Jamaica flag stripe */
.flag-stripe { display: flex; height: 5px; width: 100%; }
.flag-stripe i { flex: 1; }
.flag-stripe i:nth-child(1) { background: var(--jam-green); }
.flag-stripe i:nth-child(2) { background: var(--jam-gold); }
.flag-stripe i:nth-child(3) { background: var(--jam-black); }

/* =========================== Buttons =========================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.05rem;
  padding: 0.9rem 1.9rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, box-shadow 0.25s;
}
.btn-primary { background: var(--jam-green); color: #fff; }
.btn-primary:hover { background: var(--jam-gold); color: var(--ink); transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0,0,0,0.4); }
.btn-ghost { background: transparent; border-color: var(--dust); color: var(--sand); }
.btn-ghost:hover { border-color: var(--jam-gold); color: var(--jam-gold); transform: translateY(-3px); }
.btn-gold { background: var(--jam-gold); color: var(--ink); }
.btn-gold:hover { background: #fff; transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0,0,0,0.4); }
.btn-lg { font-size: 1.2rem; padding: 1.05rem 2.4rem; }

/* =========================== Header =========================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
  padding: 0.6rem 0;
}
.site-header.scrolled {
  background: rgba(12, 11, 8, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-logo {
  height: 56px; width: 56px; object-fit: contain;
  background: #fff; border-radius: 50%; padding: 3px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.brand-word { font-family: var(--font-display); font-size: 1.5rem; color: var(--paper); letter-spacing: 1px; line-height: 1; }
.brand-word b { color: var(--jam-gold); font-weight: 400; }
.brand-word span { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.6rem; letter-spacing: 0.35em; color: var(--muted); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a {
  font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--sand); transition: color 0.2s; position: relative; padding: 0.3rem 0;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--jam-gold); transition: width 0.25s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--jam-gold); }
.nav-links a:not(.btn):hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--paper); margin: 5px 0; transition: 0.3s; }

/* =========================== Hero (video) =========================== */
.hero {
  min-height: 100svh; display: flex; align-items: center; justify-content: center;
  position: relative; padding: 90px 0 2rem; overflow: hidden; background: var(--ink);
  text-align: center;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; pointer-events: none;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(12,11,8,0.55) 0%, rgba(12,11,8,0.35) 45%, rgba(12,11,8,0.8) 100%),
    radial-gradient(circle at 50% 42%, rgba(0,0,0,0.15), rgba(0,0,0,0.55) 80%);
  transition: opacity 0.6s var(--ease);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 5px; z-index: 2;
  background: linear-gradient(90deg, var(--jam-green) 33%, var(--jam-gold) 33% 66%, var(--jam-black) 66%);
}
.hero-inner {
  position: relative; z-index: 2; width: 100%;
  display: flex; justify-content: center;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.hero-copy { max-width: 720px; margin-inline: auto; }
.hero h1 {
  font-size: clamp(3.4rem, 13vw, 8.5rem);
  color: var(--paper);
  text-shadow: 0 6px 30px rgba(0,0,0,0.55);
}
.hero h1 .green { color: var(--jam-green); }
.hero h1 .gold { color: var(--jam-gold); }
.hero-tag { font-size: clamp(1.05rem, 2.6vw, 1.4rem); color: var(--sand); margin: 1rem auto 0; max-width: 46ch; font-weight: 500; text-shadow: 0 2px 14px rgba(0,0,0,0.6); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.6rem; margin: 1.8rem 0 2rem; justify-content: center; }
.hero-meta .item { display: flex; flex-direction: column; }
.hero-meta .k { font-family: var(--font-display); font-size: 1.6rem; color: var(--paper); line-height: 1; text-shadow: 0 2px 14px rgba(0,0,0,0.6); }
.hero-meta .l { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--jam-gold); margin-top: 0.3rem; font-weight: 700; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: center; }

/* sound / watch-in-background toggle */
.hero-sound {
  position: absolute; z-index: 4; right: 1.4rem; bottom: 1.4rem;
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: rgba(12,11,8,0.55); color: var(--paper);
  border: 1px solid rgba(255,255,255,0.25); border-radius: 40px;
  padding: 0.55rem 1rem 0.55rem 0.85rem; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.02em;
  backdrop-filter: blur(6px); transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.hero-sound:hover { background: rgba(0,155,58,0.75); border-color: var(--jam-gold); transform: translateY(-2px); }
.hero-sound svg { width: 20px; height: 20px; }
.hero-sound-label { white-space: nowrap; }

/* when watching video (unmuted): hide the overlay copy */
.hero.video-focus .hero-inner { opacity: 0; transform: translateY(12px); pointer-events: none; }
.hero.video-focus .hero-scrim { opacity: 0.25; }
.hero.video-focus .scroll-cue { opacity: 0; }

/* reduced motion: don't autoplay-feel; poster shows via the video element */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero { background: #16140e var(--hero-poster, url("../assets/images/hero/hero-poster.jpg")) center/cover no-repeat; }
}

.scroll-cue { position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); z-index: 2; color: var(--muted); font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.scroll-cue::after { content: ""; width: 1px; height: 32px; background: linear-gradient(var(--jam-gold), transparent); animation: cue 1.8s infinite; }
@keyframes cue { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* =========================== Overview =========================== */
.overview { background: var(--ink-2); }
.overview-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.overview p + p { margin-top: 1rem; }
.overview .stat-row { display: flex; gap: 2rem; margin-top: 2rem; flex-wrap: wrap; }
.stat { border-left: 3px solid var(--jam-green); padding-left: 1rem; }
.stat b { font-family: var(--font-display); font-size: 2.4rem; color: var(--jam-gold); display: block; line-height: 1; }
.stat span { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); }
.overview-media {
  aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; position: relative;
  border: 1px solid rgba(255,255,255,0.08);
}

/* Image placeholders */
.imgph {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
  background:
    repeating-linear-gradient(45deg, rgba(201,168,106,0.06) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, var(--ink-3), var(--ink));
  color: var(--muted); text-align: center; padding: 1.5rem; border: 1px dashed rgba(201,168,106,0.35);
}
.imgph svg { width: 40px; height: 40px; opacity: 0.5; }
.imgph .ph-label { font-weight: 700; letter-spacing: 0.05em; color: var(--dust); font-size: 0.85rem; }
.imgph .ph-path { font-size: 0.72rem; color: var(--muted); font-family: ui-monospace, monospace; }

/* =========================== Distances =========================== */
.distances { background: var(--ink); }
.dist-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.6rem; }
.dist-card {
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid rgba(255,255,255,0.07); border-radius: var(--radius);
  padding: 2rem 1.6rem; position: relative; overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.dist-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent, var(--jam-green)); }
.dist-card:hover { transform: translateY(-8px); border-color: var(--accent, var(--jam-green)); }
.dist-card .tier { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted); font-weight: 700; }
.dist-card .km { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 4.4rem); color: var(--paper); line-height: 0.9; margin: 0.6rem 0 0.2rem; }
.dist-card .km small { font-size: 1.1rem; color: var(--accent, var(--jam-gold)); display: inline; }
.dist-card .laps { font-weight: 700; color: var(--jam-gold); letter-spacing: 0.05em; margin-bottom: 1rem; }
.dist-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.dist-card li { font-size: 0.92rem; color: var(--sand); display: flex; gap: 0.5rem; align-items: flex-start; }
.dist-card li::before { content: "▸"; color: var(--accent, var(--jam-green)); font-size: 0.9rem; }
.dist-card.c1 { --accent: var(--jam-green); }
.dist-card.c2 { --accent: var(--jam-gold); }
.dist-card.c3 { --accent: #e0623a; }

/* =========================== Route (LIGHT theme) =========================== */
.route { background: var(--paper); color: #2a2620; }
.route .eyebrow { color: var(--jam-green-d); }
.route .eyebrow::before { background: var(--jam-gold); }
.route .section-title { color: #1c1a14; }
.route .section-title .accent { color: var(--jam-green-d); }
.route .lead { color: #5c574c; }

.route-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 2rem 0 1.6rem; }
.route-stats .cell { background: #fff; border: 1px solid #e7ddc9; border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: 0 6px 18px rgba(60,50,20,0.05); }
.route-stats b { font-family: var(--font-display); font-size: 1.7rem; color: var(--jam-green-d); display: block; line-height: 1; }
.route-stats span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: #8a8069; font-weight: 700; }

.route-viz { background: #fff; border: 1px solid #e7ddc9; border-radius: 10px; padding: 1rem; box-shadow: 0 16px 40px rgba(60,50,20,0.08); }
#map { width: 100%; height: 440px; border-radius: 8px; border: 1px solid #e7ddc9; z-index: 1; background: #eef2f4; }
.map-start { background: var(--jam-gold); color: #12110d; font-weight: 800; font-family: var(--font-body); font-size: 11px; padding: 4px 8px; border-radius: 14px; border: 2px solid #12110d; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.map-rider { width: 22px; height: 22px; border-radius: 50%; background: var(--jam-gold); border: 3px solid var(--jam-green-d); box-shadow: 0 0 0 4px rgba(0,155,58,0.25), 0 2px 6px rgba(0,0,0,0.4); animation: riderPulse 1.6s ease-in-out infinite; }
@keyframes riderPulse { 0%,100% { box-shadow: 0 0 0 4px rgba(0,155,58,0.25), 0 2px 6px rgba(0,0,0,0.4); } 50% { box-shadow: 0 0 0 9px rgba(0,155,58,0.08), 0 2px 6px rgba(0,0,0,0.4); } }

/* controls */
.viz-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin: 1rem 0 0.4rem; }
.viz-play { padding: 0.7rem 1.3rem; font-size: 1rem; }
.viz-play svg { width: 18px; height: 18px; }
.viz-distance { display: inline-flex; background: #f1ead9; border: 1px solid #e2d6bd; border-radius: 999px; padding: 3px; }
.dist-btn { font-family: var(--font-display); font-size: 1.05rem; color: #6f6552; background: none; border: 0; cursor: pointer; padding: 0.4rem 0.95rem; border-radius: 999px; line-height: 1; transition: 0.2s; }
.dist-btn span { font-family: var(--font-body); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.05em; margin-left: 2px; opacity: 0.8; }
.dist-btn:hover { color: var(--jam-green-d); }
.dist-btn.is-active { background: var(--jam-green); color: #fff; box-shadow: 0 4px 10px rgba(0,155,58,0.3); }
.viz-readout { display: flex; gap: 1.4rem; margin-left: auto; }
.viz-readout .ro b { font-family: var(--font-display); font-size: 1.25rem; color: #1c1a14; display: block; line-height: 1; }
.viz-readout .ro span { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.12em; color: #8a8069; font-weight: 700; }

/* elevation profile */
.viz-elev { position: relative; margin-top: 0.9rem; touch-action: none; cursor: crosshair; }
#elevChart { display: block; width: 100%; height: 150px; background: linear-gradient(#fbf7ee, #fff); border-radius: 8px; border: 1px solid #eee2cd; }
.elev-cursor { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--jam-gold); transform: translateX(-1px); pointer-events: none; box-shadow: 0 0 6px rgba(255,205,0,0.8); }
.elev-dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--jam-gold); border: 2px solid var(--jam-green-d); transform: translate(-50%, -50%); pointer-events: none; }
.elev-tip { position: absolute; top: 6px; transform: translateX(-50%); background: var(--jam-green-d); color: #fff; font-weight: 700; font-size: 0.72rem; padding: 2px 7px; border-radius: 5px; pointer-events: none; white-space: nowrap; }
.elev-tip::after { content: ""; position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); border: 4px solid transparent; border-top-color: var(--jam-green-d); }
.elev-axis { display: flex; justify-content: space-between; font-size: 0.72rem; color: #8a8069; font-weight: 600; margin-top: 0.35rem; }

.route .map-note { font-size: 0.8rem; color: #8a8069; margin-top: 0.9rem; }
.route .gpx-link { color: var(--jam-green-d); font-weight: 700; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #fff; color: #2a2620; }

/* =========================== Info =========================== */
.info { background: var(--ink); }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; margin-top: 2.4rem; }
.info-card { background: var(--ink-2); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); padding: 1.8rem 1.5rem; }
.info-card .ic {
  width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(0,155,58,0.14); color: var(--jam-gold); margin-bottom: 1rem;
}
.info-card .ic svg { width: 24px; height: 24px; }
.info-card h3 { font-size: 1.25rem; color: var(--paper); margin-bottom: 0.5rem; }
.info-card p { color: var(--muted); font-size: 0.95rem; }
.info-card .tentative { display: inline-block; margin-top: 0.5rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink); background: var(--jam-gold); padding: 0.15rem 0.5rem; border-radius: 3px; }

/* =========================== Sponsors =========================== */
.sponsors { background: var(--ink-2); text-align: center; }
.title-sponsor { margin: 2.4rem auto 1rem; max-width: 520px; }
.title-sponsor .ts-label { font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 1rem; }
.title-sponsor .ts-plate {
  background: var(--paper); border-radius: var(--radius); padding: 2rem; display: grid; place-items: center; min-height: 130px;
  box-shadow: var(--shadow);
}
.title-sponsor .ts-plate .imgph { background: none; border: none; color: #6b6250; }
.title-sponsor .ts-plate .ph-label { color: #3a342a; font-size: 1.4rem; font-family: var(--font-display); }
.sponsor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 1.8rem; }
.sponsor-plate {
  background: rgba(245,239,227,0.94); border-radius: var(--radius); min-height: 110px; display: grid; place-items: center; padding: 1.2rem;
  transition: transform 0.25s var(--ease);
}
.sponsor-plate:hover { transform: translateY(-5px); }
.sponsor-plate .imgph { background: none; border: none; }
.sponsor-plate .ph-label { color: #2c281f; font-family: var(--font-display); font-size: 1.05rem; }
.sponsor-plate .ph-path { color: #8a8069; }
.become-sponsor { margin-top: 2.4rem; }
.become-sponsor p { color: var(--muted); margin-bottom: 1rem; }

/* =========================== Gallery =========================== */
.gallery { background: var(--ink); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 2.4rem; }
.gallery-grid .cell { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; }

/* =========================== CTA band =========================== */
.cta-band {
  background:
    linear-gradient(rgba(0,122,45,0.9), rgba(0,90,33,0.95)),
    var(--cta-img, repeating-linear-gradient(45deg, #0a5, #0a5 20px, #094 20px 40px));
  background-size: cover; background-position: center;
  text-align: center; color: #fff;
}
.cta-band h2 { font-size: clamp(2rem, 6vw, 3.4rem); color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); margin: 0.8rem auto 1.8rem; max-width: 50ch; }

/* =========================== Contact / Footer =========================== */
.contact { background: var(--ink-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); margin-top: 2.2rem; align-items: start; }
.contact-list { display: flex; flex-direction: column; gap: 1.3rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item .ic { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,205,0,0.14); color: var(--jam-gold); flex-shrink: 0; }
.contact-item .ic svg { width: 22px; height: 22px; }
.contact-item .lbl { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); font-weight: 700; }
.contact-item a, .contact-item .val { font-size: 1.05rem; color: var(--paper); font-weight: 600; }
.contact-item a:hover { color: var(--jam-gold); }
.contact-cta { background: var(--ink-3); border: 1px solid rgba(255,255,255,0.07); border-radius: var(--radius); padding: 2rem; }
.contact-cta h3 { color: var(--paper); font-size: 1.5rem; margin-bottom: 0.6rem; }
.contact-cta p { color: var(--muted); margin-bottom: 1.4rem; }
.contact-cta--logo { background: none; border: 0; padding: 0; display: flex; align-items: center; justify-content: center; margin-top: -3rem; }
.contact-logo {
  width: 100%; max-width: 300px; height: auto; aspect-ratio: 1; object-fit: cover;
  background: #fff; border-radius: 50%; padding: 10px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55);
  animation: heroFloat 6s ease-in-out infinite;
}

.site-footer { background: var(--jam-black); padding: 2.5rem 0 3rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.2rem; }
.footer-inner .brand-word { font-size: 1.3rem; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,0.15); transition: 0.25s; color: var(--sand); }
.footer-social a:hover { background: var(--jam-green); border-color: var(--jam-green); transform: translateY(-3px); }
.footer-social svg { width: 20px; height: 20px; }
.footer-legal { width: 100%; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 1.8rem; padding-top: 1.5rem; font-size: 0.82rem; color: var(--muted); text-align: center; }

/* =========================== Reveal animation =========================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =========================== Responsive =========================== */
@media (max-width: 900px) {
  .overview-grid, .route-grid, .contact-grid { grid-template-columns: 1fr; }
  .contact-cta--logo { margin-top: 0; }
  .hero-copy { max-width: none; }
  .dist-grid { grid-template-columns: 1fr; }
  .sponsor-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-media { max-width: 420px; }
  .route-stats { grid-template-columns: 1fr 1fr; }
  .viz-readout { margin-left: 0; width: 100%; justify-content: space-between; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    background: var(--ink-2); flex-direction: column; align-items: flex-start;
    padding: 6rem 2rem 2rem; gap: 1.4rem; transform: translateX(100%);
    transition: transform 0.35s var(--ease); box-shadow: -20px 0 50px rgba(0,0,0,0.5);
  }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 1.05rem; }
  .nav-toggle { display: block; z-index: 101; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .hero-meta { gap: 1.2rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  #map { height: 320px; }
  .viz-controls { gap: 0.8rem; }
  .viz-play { width: 100%; justify-content: center; }
  .viz-distance { width: 100%; justify-content: center; }
}
