/* Ultra5k – Munroe Edition
   Layout concept: dusk-to-midnight on the backwaters. Dark lagoon bands carry the race;
   cool mist bands carry the reading material. One bold object per page: the race bib in
   the hero and the hourly race clock. Everything else stays quiet and left-aligned. */

:root {
  /* GOAT Adventure brand palette (brand identity, Oct 2026) */
  --night: #123A2F;        /* forest: dark bands, text */
  --night-2: #1a4a3c;
  --lagoon: #A04829;       /* rust: secondary band, accent text on light */
  --palm: #618B3C;         /* moss */
  --lamp: #F15A3A;         /* GOAT orange: primary accent, buttons */
  --lamp-hover: #D9442A;
  --lamp-deep: #D39432;    /* ochre */
  --ochre: #D39432;
  --mist: #F1E5D5;         /* cream */
  --paper: #FAF5EE;        /* light cream */
  --ink: #123A2F;
  --muted: #56614F;
  --muted-d: #C9CDBF;
  --line: #DFD0BB;
  --line-d: rgba(241, 229, 213, 0.18);

  --f-display: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-body: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;

  --s-1: 0.875rem;
  --s0: 1rem;
  --s1: 1.2rem;
  --s2: 1.3rem;
  --s3: clamp(1.7rem, 3.6vw, 2.3rem);
  --s4: clamp(1.9rem, 5vw, 3.3rem);
  --s5: clamp(3rem, 13vw, 5.4rem);

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

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--lamp);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0.005em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: var(--s4); }
h3 { font-size: var(--s2); line-height: 1.05; }
p { margin: 0; }
.prose > * + * { margin-top: 1em; }
.prose { max-width: 66ch; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 0.35em; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--lamp); color: var(--night); padding: 8px 14px; z-index: 100;
}
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7em 1.4em;
  font: 600 1rem/1 var(--f-body);
  text-decoration: none; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--lamp); color: var(--night); }
.btn-primary:hover { background: var(--lamp-hover); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(241,90,58, 0.14); }
.btn[aria-disabled="true"] { background: var(--line); color: var(--muted); cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  font-weight: 600; text-decoration: underline; text-underline-offset: 4px;
  text-decoration-thickness: 2px; text-decoration-color: var(--lamp);
}
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(18,58,47, 0.94);
  backdrop-filter: blur(8px);
  color: var(--mist);
  border-bottom: 1px solid var(--line-d);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 24px; min-height: 68px;
}
.brand {
  display: flex; align-items: baseline; gap: 10px; text-decoration: none; flex-shrink: 0;
}
.brand-mark {
  font: 900 1.9rem/1 var(--f-display); letter-spacing: 0.01em; color: var(--mist);
}
.brand-edition { font: 600 0.82rem/1 var(--f-body); color: var(--lamp); }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 10px 12px; text-decoration: none; font-weight: 500; font-size: 0.97rem;
  color: var(--muted-d); border-radius: 4px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--mist); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--lamp); border-radius: 0; }
.header-cta { min-height: 42px; padding: 0.55em 1.2em; }
.menu-btn {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line-d); color: var(--mist);
  min-height: 44px; padding: 0 14px; border-radius: 999px; font: 600 0.95rem var(--f-body); cursor: pointer;
}

@media (max-width: 960px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; }
  .header-cta { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--night); border-bottom: 1px solid var(--line-d);
    padding: 8px var(--gutter) 20px;
  }
  .nav[data-open="false"] { display: none; }
  .nav ul { flex-direction: column; }
  .nav a { padding: 14px 4px; font-size: 1.15rem; border-bottom: 1px solid var(--line-d); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--lamp); }
}

/* ---------- Sections ---------- */
.band { padding-block: clamp(56px, 9vw, 112px); }
.band-dark { background: var(--night); color: var(--mist); }
.band-lagoon { background: var(--lagoon); color: var(--mist); }
.band-mist { background: var(--mist); }
.band-paper { background: var(--paper); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.section-head p { font-size: 1.15rem; color: var(--muted); }
.band-dark .section-head p, .band-lagoon .section-head p { color: var(--muted-d); }

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--night); color: var(--mist); overflow: hidden;
  isolation: isolate;
}
.hero-art {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(18,58,47,.82) 0%, rgba(18,58,47,.35) 55%, rgba(18,58,47,0) 80%),
              linear-gradient(0deg, rgba(18,58,47,.9) 0%, rgba(18,58,47,0) 40%);
}
.hero .wrap {
  display: grid; gap: 28px; align-content: end;
  min-height: clamp(560px, 82vh, 780px);
  padding-block: 56px 40px;
}
.hero-kicker { font-weight: 600; color: var(--lamp); font-size: 1.05rem; text-shadow: 0 1px 8px rgba(18,58,47,.9); }
.hero-lede { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 34ch; color: var(--mist); }

/* The race bib */
.bib {
  position: relative; width: min(100%, 470px);
  background: var(--paper); color: var(--night);
  border-radius: 10px;
  padding: 26px 30px 22px;
  transform: rotate(-2deg);
  box-shadow: 0 18px 40px rgba(8,26,21,0.45);
}
.bib::before, .bib::after {
  content: ""; position: absolute; top: 12px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--night); box-shadow: 0 0 0 2px var(--line);
}
.bib::before { left: 12px; }
.bib::after { right: 12px; }
.bib-pins-bottom::before, .bib-pins-bottom::after {
  content: ""; position: absolute; bottom: 12px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--night); box-shadow: 0 0 0 2px var(--line);
}
.bib-pins-bottom::before { left: 12px; }
.bib-pins-bottom::after { right: 12px; }
.bib-top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-weight: 700; font-size: 0.85rem; padding-inline: 14px;
  border-bottom: 2px solid var(--night); padding-bottom: 8px;
}
.bib-top span:last-child { color: var(--lagoon); }
.bib h1 {
  font-size: clamp(4.2rem, 21vw, 8.6rem); font-weight: 900; line-height: 0.82; letter-spacing: -0.01em;
  margin-top: 14px; overflow-wrap: anywhere;
}
.bib-edition {
  font: 800 clamp(1.5rem, 4.5vw, 2.3rem)/1 var(--f-display); color: var(--lagoon); margin-top: 6px;
}
.bib-strip {
  margin-top: 16px; background: var(--lamp); color: var(--night);
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 8px 14px; border-radius: 4px; font-weight: 700; font-size: 0.95rem;
}

.countdown {
  display: flex; gap: 22px; flex-wrap: wrap; align-items: baseline;
  font-variant-numeric: tabular-nums;
}
.countdown div { display: grid; min-width: 2.2ch; }
.countdown b { font: 800 2.4rem/1 var(--f-display); color: var(--mist); }
.countdown span { font-size: 0.85rem; color: var(--muted-d); }
.countdown-label { font-size: 0.95rem; color: var(--muted-d); width: 100%; }

@media (max-width: 979px) {
  .hero::after {
    background: linear-gradient(0deg, rgba(18,58,47,.96) 0%, rgba(18,58,47,.88) 45%, rgba(18,58,47,.35) 75%, rgba(18,58,47,.1) 100%);
  }
  .hero .wrap { min-height: 0; padding-block: 40px 32px; }
}
@media (min-width: 980px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .hero-side { grid-column: 2; justify-self: end; display: grid; gap: 18px; text-align: right; }
  .hero-side .countdown { justify-content: flex-end; }
}

/* ---------- Key facts ---------- */
.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  border-top: 1px solid var(--line-d);
}
.facts div { padding: 18px 18px 18px 0; border-bottom: 1px solid var(--line-d); min-width: 0; }
.facts dt { font-size: 0.88rem; color: var(--muted-d); }
.facts dd { margin: 4px 0 0; font: 800 1.55rem/1.05 var(--f-display); }
.facts-light { border-top-color: var(--line); }
.facts-light div { border-bottom-color: var(--line); }
.facts-light dt { color: var(--muted); }

/* ---------- Race cards ---------- */
.races { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.race-card {
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 16px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; min-width: 0;
}
.race-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.race-dist { font: 900 clamp(4rem, 9vw, 5.4rem)/0.85 var(--f-display); color: var(--night); }
.race-laps {
  font: 700 1.05rem/1.1 var(--f-display); text-align: right; color: var(--lagoon);
  font-size: 1.35rem;
}
.race-card p { color: var(--muted); }
.race-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0; }
.race-meta div { min-width: 0; }
.race-meta dt { font-size: 0.82rem; color: var(--muted); }
.race-meta dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.race-card .btn-row { padding-top: 8px; border-top: 1px solid var(--line); }
.race-card-feature { background: var(--night); color: var(--mist); border-color: var(--night); }
.race-card-feature .race-dist { color: var(--lamp); }
.race-card-feature .race-laps { color: var(--muted-d); }
.race-card-feature p, .race-card-feature .race-meta dt { color: var(--muted-d); }
.race-card-feature .btn-row { border-top-color: var(--line-d); }

/* ---------- Race clock ---------- */
.clock { --hours: 10; display: grid; gap: 10px; }
.clock-scale, .clock-row { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; align-items: center; }
.clock-ticks {
  position: relative; display: grid; grid-template-columns: repeat(var(--hours), 1fr);
  font-size: 0.8rem; color: var(--muted-d); font-variant-numeric: tabular-nums;
}
.clock-ticks span { border-left: 1px solid var(--line-d); padding-left: 4px; white-space: nowrap; overflow: hidden; min-width: 0; }
.clock-ticks small { font-size: inherit; }
@media (max-width: 719px) { .clock-ticks span:not(:first-child) small { display: none; } .clock-scale, .clock-row { grid-template-columns: 56px minmax(0, 1fr); gap: 8px; } .clock-label { font-size: 1.3rem; } .lap { font-size: 0.85rem; } .clock-track { gap: 2px; height: 40px; } }
.clock-ticks span:nth-child(even) { color: transparent; }
@media (min-width: 720px) { .clock-ticks span:nth-child(even) { color: var(--muted-d); } }
.clock-track {
  position: relative; height: 46px;
  display: grid; grid-template-columns: repeat(var(--hours), 1fr); gap: 3px;
  background: linear-gradient(90deg, transparent var(--sunset, 35%), rgba(0,0,0,.18) var(--sunset, 35%));
  border-radius: 4px;
}
.lap {
  grid-row: 1; background: var(--lamp); color: var(--night); border-radius: 3px;
  display: grid; place-items: center; font: 800 1rem/1 var(--f-display); font-variant-numeric: tabular-nums;
}
.lap.is-night { background: var(--palm); }
.clock-label { font: 800 1.6rem/1 var(--f-display); }
.clock-label small { display: block; font: 500 0.75rem/1.2 var(--f-body); color: var(--muted-d); }
.clock-sunset {
  position: absolute; top: -6px; bottom: -6px; left: var(--sunset, 35%); z-index: 0;
  border-left: 2px dashed var(--muted-d);
}
.lap { position: relative; z-index: 1; }
.clock-note { font-size: 0.9rem; color: var(--muted-d); margin-top: 6px; }
.clock-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.9rem; color: var(--muted-d); }
.clock-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--lamp); padding-top: 14px; min-width: 0; }
.steps li::before { content: counter(step); font: 900 2.6rem/1 var(--f-display); color: var(--lamp); display: block; margin-bottom: 8px; }
.steps h3 { font-size: 1.5rem; margin-bottom: 6px; }
.band-dark .steps p, .band-lagoon .steps p { color: var(--muted-d); }

/* ---------- Two column ---------- */
.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .split-wide { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.split > * { min-width: 0; }

/* ---------- Photo slots ---------- */
.mosaic { display: grid; gap: 10px; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 110px; }
.slot {
  position: relative; border-radius: 4px; overflow: hidden; display: flex; align-items: flex-end;
  padding: 10px 12px; font-size: 0.82rem; color: var(--mist);
  background: linear-gradient(160deg, var(--lagoon), var(--night));
}
.slot::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 80% 10%, rgba(241,90,58,.35), transparent 60%); }
.slot span { position: relative; }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot-a { grid-column: span 4; grid-row: span 2; }
.slot-b { grid-column: span 2; grid-row: span 2; background: linear-gradient(170deg, var(--palm), var(--night)); }
.slot-c { grid-column: span 3; }
.slot-d { grid-column: span 3; background: linear-gradient(170deg, #2c5a3f, #123A2F); }
@media (max-width: 560px) { .mosaic { grid-auto-rows: 84px; } }

/* ---------- Documents list ---------- */
.docs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.docs li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 18px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.docs strong { font-size: 1.1rem; }
.docs p { color: var(--muted); font-size: 0.95rem; grid-column: 1; }
.docs .status { grid-column: 2; grid-row: 1 / span 2; font-size: 0.88rem; font-weight: 600; color: var(--lagoon); text-align: right; }
.docs a.status { color: var(--night); }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line); white-space: nowrap; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 0.85rem; font-weight: 600; color: var(--muted); background: var(--mist); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font: 800 1.5rem/1 var(--f-display); }
td.is-now { background: rgba(241,90,58, 0.16); font-weight: 700; }
.table-note { font-size: 0.92rem; color: var(--muted); margin-top: 12px; }

/* ---------- Checklist ---------- */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.checks li { position: relative; padding-left: 30px; min-width: 0; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--lamp);
  -webkit-mask: radial-gradient(circle, #000 30%, transparent 32%), linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* ---------- Schedule ---------- */
.schedule { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.schedule li { position: relative; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 12px 0 12px 22px; }
.schedule li::before { content: ""; position: absolute; left: -7px; top: 19px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--lagoon); }
.schedule li.is-key::before { background: var(--lamp); border-color: var(--lamp-deep); }
.schedule time { font-weight: 700; font-variant-numeric: tabular-nums; }
.schedule-day { font: 800 1.6rem/1 var(--f-display); margin: 28px 0 8px; }
.schedule-day:first-child { margin-top: 0; }
@media (max-width: 480px) { .schedule li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Callout ---------- */
.note {
  border-left: 4px solid var(--lamp); background: var(--mist); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 66ch;
}
.band-mist .note { background: var(--paper); }
.note strong { display: block; margin-bottom: 4px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-weight: 600; font-size: 1.12rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px;
  border-right: 2px solid var(--lagoon); border-bottom: 2px solid var(--lagoon);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 0 22px; max-width: 70ch; color: var(--muted); }
.faq .answer > * + * { margin-top: 0.8em; }
.faq-group { font: 800 1.8rem/1 var(--f-display); margin: 44px 0 10px; }
.faq-group:first-child { margin-top: 0; }

/* ---------- Partners ---------- */
.partners { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.partner {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-height: 140px;
  display: grid; align-content: space-between; gap: 12px; background: var(--paper); min-width: 0;
}
.partner b { font: 800 1.6rem/1 var(--f-display); }
.partner span { font-size: 0.88rem; color: var(--muted); }
.partner-open { border-style: dashed; background: transparent; }
.partner-open b { color: var(--muted); }

/* ---------- Community ---------- */
.ig-grid { display: grid; gap: 8px; grid-template-columns: repeat(3, 1fr); }
.ig-grid .slot { aspect-ratio: 1; max-width: 100%; }
@media (min-width: 800px) { .ig-grid { grid-template-columns: repeat(6, 1fr); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--night); color: var(--mist); padding-block: clamp(48px, 8vw, 96px) clamp(36px, 5vw, 56px); position: relative; overflow: hidden; }
.page-hero h1 { font-size: var(--s4); font-weight: 900; }
.page-hero p { margin-top: 16px; max-width: 58ch; font-size: 1.18rem; color: var(--muted-d); }
.page-hero::after {
  content: ""; position: absolute; right: -15%; top: -70%; width: 55%; aspect-ratio: 1;
  border-radius: 50%; background: radial-gradient(circle, rgba(241,90,58,.28), transparent 65%);
  pointer-events: none;
}
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.subnav a { font-size: 0.92rem; text-decoration: none; padding: 8px 14px; border: 1px solid var(--line-d); border-radius: 999px; color: var(--mist); }
.subnav a:hover { border-color: var(--lamp); }

.stack { display: grid; gap: clamp(40px, 6vw, 72px); }
.anchor { scroll-margin-top: 90px; }

/* ---------- Map ---------- */
.map-figure { margin: 0; }
.map-figure img { width: 100%; height: auto; border-radius: var(--radius); }
.map-figure figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 10px; }

/* ---------- Team ---------- */
.team { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.member { display: grid; gap: 10px; min-width: 0; }
.member .avatar { aspect-ratio: 4 / 5; border-radius: 4px; background: linear-gradient(170deg, var(--lagoon), var(--night)); display: grid; place-items: center; color: var(--muted-d); font-size: 0.85rem; }
.member b { font-size: 1.05rem; }
.member span { color: var(--muted); font-size: 0.93rem; }

/* ---------- Footer ---------- */
.site-footer { background: #0d2d24; color: var(--muted-d); padding-block: 64px calc(40px + env(safe-area-inset-bottom, 0px)); font-size: 0.97rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.footer-grid h2 { font-size: 1.35rem; color: var(--mist); margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--mist); text-decoration: underline; }
.footer-brand .brand-mark { font-size: 2.4rem; }
.footer-legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line-d); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 0.88rem; }

/* ---------- Mobile register bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 960px) {
  .mobile-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--night); color: var(--mist); border-top: 1px solid var(--line-d);
  }
  .mobile-bar p { font-size: 0.88rem; line-height: 1.3; color: var(--muted-d); }
  .mobile-bar p b { color: var(--mist); display: block; font-size: 0.98rem; }
  .mobile-bar .btn { min-height: 44px; padding: 0.5em 1.2em; flex-shrink: 0; }
  .site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Page-load moment: the bib pins on ---------- */
@media (prefers-reduced-motion: no-preference) {
  .bib { animation: pin-on .7s cubic-bezier(.2,.9,.3,1.2) both .15s; }
  @keyframes pin-on { from { transform: rotate(-7deg) translateY(18px); } to { transform: rotate(-2deg) translateY(0); } }
}

.muted { color: var(--muted); }
.band-dark .muted, .band-lagoon .muted { color: var(--muted-d); }
.small { font-size: 0.92rem; }
.mt-l { margin-top: 32px; }
.mt-m { margin-top: 20px; }

/* ---------- Fixes after first review ---------- */
.ig-grid .slot { grid-column: auto; grid-row: auto; }
@media (max-width: 719px) { .clock-ticks span small { display: none; } }
@media (min-width: 900px) { .split > .section-head.is-sticky { position: sticky; top: 110px; } }
@media (max-width: 979px) {
  .hero .wrap { padding-block: 210px 32px; }
  .hero-art { height: 380px; object-position: 78% 55%; }
  .hero::after { background: linear-gradient(180deg, rgba(18,58,47,0) 0px, rgba(18,58,47,.15) 150px, rgba(18,58,47,.85) 300px, rgba(18,58,47,1) 380px); }
}

/* ---------- Real photos ---------- */
.slot.has-photo { margin: 0; background: var(--night); }
.slot.has-photo::before { z-index: 1; background: linear-gradient(0deg, rgba(18,58,47,.78) 0%, rgba(18,58,47,0) 55%); }
.slot.has-photo figcaption { position: relative; z-index: 2; font-size: 0.85rem; line-height: 1.3; }
.photo { margin: 8px 0 0; }
.photo img { width: 100%; height: auto; border-radius: var(--radius); }
.photo figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 8px; }
.hero-art { object-position: 62% 60%; }
@media (max-width: 979px) { .hero-art { object-position: 58% 60%; } }
.credits .status { color: var(--lagoon); font-weight: 600; }
.credits a.status { text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   GOAT Adventure brand layer (Poppins + brand palette)
   ========================================================= */
body { font-weight: 400; font-size: 1rem; line-height: 1.7; }
h1, h2 { font-weight: 900; text-transform: uppercase; letter-spacing: -0.005em; line-height: 1.04; }
h2 { font-size: var(--s4); }
h3 { font-weight: 700; font-size: var(--s2); line-height: 1.25; text-transform: none; }
.section-head p { font-weight: 300; font-size: 1.12rem; }
.hero-lede { font-weight: 300; }
.page-hero h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
.page-hero p { font-weight: 300; }

/* Buttons: white on GOAT orange, set large and bold so the text stays legible */
.btn { font: 700 1.17rem/1 var(--f-body); letter-spacing: 0.01em; }
.btn-primary { background: var(--lamp); color: #fff; }
.btn-primary:hover { background: var(--lamp-hover); }
.btn-ghost:hover { background: rgba(241,90,58,.12); }
.header-cta { font-size: 1.05rem; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline-color: var(--ochre); }

/* Header brand: GOAT logo + race name */
.brand { align-items: center; gap: 14px; }
.brand-logo { height: 34px; width: auto; display: block; }
.brand-race { display: grid; line-height: 1.05; padding-left: 14px; border-left: 1px solid var(--line-d); }
.brand-race b { font: 800 1rem/1.05 var(--f-display); color: var(--mist); letter-spacing: .01em; }
.brand-race small { font: 500 .72rem/1.2 var(--f-body); color: var(--ochre); }
@media (max-width: 380px) { .brand-race small { display: none; } }

/* Hero */
.hero-kicker { color: var(--ochre); }
.bib h1 { font-size: clamp(3rem, 14vw, 5.2rem); font-weight: 900; line-height: .9; letter-spacing: -0.02em; margin-top: 16px; }
.bib-top { border-bottom-color: var(--night); align-items: center; }
.bib-logo { height: 28px; width: auto; display: block; }
.bib-edition { font: 800 clamp(1.15rem, 3.6vw, 1.7rem)/1.1 var(--f-display); color: var(--lamp); text-transform: uppercase; }
.bib-strip { background: var(--night); color: var(--mist); font-weight: 600; font-size: .9rem; }
.countdown b { font: 800 2rem/1 var(--f-display); }
.hero::after {
  background: linear-gradient(90deg, rgba(18,58,47,.85) 0%, rgba(18,58,47,.35) 55%, rgba(18,58,47,0) 80%),
              linear-gradient(0deg, rgba(18,58,47,.92) 0%, rgba(18,58,47,0) 40%);
}

/* Facts, cards, clock */
.facts dd { font: 700 1.15rem/1.25 var(--f-display); }
.race-dist { font: 900 clamp(2.8rem, 6vw, 3.8rem)/.9 var(--f-display); letter-spacing: -0.02em; }
.race-laps { font: 600 .95rem/1.25 var(--f-body); color: var(--lagoon); }
.race-card-feature .race-dist { color: var(--lamp); }
.clock-label { font: 800 1.1rem/1 var(--f-display); }
.lap { background: var(--ochre); color: var(--night); font: 700 .85rem/1 var(--f-display); }
.lap.is-night { background: var(--palm); color: #fff; }
.steps li { border-top-color: var(--lamp); }
.steps li::before { font: 900 2rem/1 var(--f-display); color: var(--lamp); }
.steps h3 { font-size: 1.15rem; }
.checks li::before { background: var(--lamp); }
tbody th { font: 800 1.15rem/1 var(--f-display); }
td.is-now { background: rgba(211,148,50,.18); }
.schedule-day { font: 700 1.15rem/1.2 var(--f-display); }
.schedule li.is-key::before { background: var(--lamp); border-color: var(--lamp); }
.faq-group { font-size: 1.35rem; }
.partner b { font: 700 1.1rem/1.2 var(--f-display); }
.text-link { text-decoration-color: var(--lamp); }
.note { border-left-color: var(--lamp); }

/* Bands */
.band-lagoon .btn-primary { background: var(--mist); color: var(--lagoon); }
.band-lagoon .btn-primary:hover { background: #fff; }
.page-hero::after { background: radial-gradient(circle, rgba(241,90,58,.3), transparent 65%); }
.slot::before { background: radial-gradient(120% 80% at 80% 10%, rgba(211,148,50,.35), transparent 60%); }
.slot-b { background: linear-gradient(170deg, var(--palm), var(--night)); }

/* Footer */
.footer-logo { height: 56px; width: auto; display: block; }
.tagline { margin-top: 18px; font-size: .9rem; letter-spacing: .04em; color: var(--mist); text-transform: uppercase; }
.tagline b { font-weight: 700; font-style: italic; }
.footer-grid h2 { font-size: .95rem; letter-spacing: .06em; }
.mobile-bar p b { font-weight: 700; }
.race-card .btn-row { align-items: center; gap: 20px; }
@media (max-width: 979px) { .hero-kicker { color: var(--mist); text-shadow: 0 1px 10px rgba(18,58,47,1), 0 0 2px rgba(18,58,47,.9); } }

/* Distance cards: the card under the cursor (or holding keyboard focus) takes the dark highlight */
.race-card { transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.race-card .race-dist, .race-card .race-laps, .race-card p, .race-card .race-meta dt { transition: color .2s ease; }
.race-card:hover, .race-card:focus-within { background: var(--night); color: var(--mist); border-color: var(--night); }
.race-card:hover .race-dist, .race-card:focus-within .race-dist { color: var(--lamp); }
.race-card:hover .race-laps, .race-card:focus-within .race-laps,
.race-card:hover p, .race-card:focus-within p,
.race-card:hover .race-meta dt, .race-card:focus-within .race-meta dt { color: var(--muted-d); }
.race-card:hover .btn-row, .race-card:focus-within .btn-row { border-top-color: var(--line-d); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .race-card:hover { transform: translateY(-4px); } }

/* ---------- Scroll motion ---------- */
.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: var(--lamp); transform: scaleX(0); transform-origin: left center; pointer-events: none;
}
.site-header .wrap { transition: min-height .25s ease; }
.brand-logo { transition: height .25s ease; }
.site-header.is-scrolled { background: rgba(18,58,47,.98); box-shadow: 0 6px 24px rgba(8,26,21,.25); }
.site-header.is-scrolled .wrap { min-height: 56px; }
.site-header.is-scrolled .brand-logo { height: 28px; }
.hero-art { will-change: transform; transform: scale(1.08); }

.motion .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s ease, transform .75s cubic-bezier(.2,.75,.2,1);
  transition-delay: var(--d, 0ms);
}
.motion .reveal.in { opacity: 1; transform: none; }
.motion .slot.reveal img, .motion .photo.reveal img { transform: scale(1.12); transition: transform 1.4s cubic-bezier(.2,.75,.2,1); transition-delay: var(--d, 0ms); }
.motion .slot.reveal.in img, .motion .photo.reveal.in img { transform: scale(1); }

.motion .clock .lap { transform-origin: left center; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .3s ease; transition-delay: var(--d, 0ms); }
.motion .clock.clock-pending .lap { transform: scaleX(0); opacity: 0; }
.motion .clock.clock-pending.clock-run .lap { transform: scaleX(1); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .hero-art { transform: none !important; }
  .scroll-progress { display: none; }
}

/* ---------- v0.5: event logo, story, commitments, team ---------- */
.bib-title { margin-top: 14px; line-height: 0; }
.bib-title img { width: 100%; height: auto; display: block; }
.bib-top span:first-child { color: var(--muted); font-weight: 600; }

.oman-photos { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 1.4em; }
.oman-photos .photo img { aspect-ratio: 4 / 3; object-fit: cover; }
.oman-photos .photo:last-child img { aspect-ratio: 3 / 4.5; }
@media (max-width: 560px) { .oman-photos { grid-template-columns: 1fr 1fr; } .oman-photos .photo img, .oman-photos .photo:last-child img { aspect-ratio: 1; } }

.commitments { display: grid; gap: 28px 32px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.commitments > div { border-top: 2px solid var(--lamp); padding-top: 14px; min-width: 0; }
.commitments h3 { font-size: 1.1rem; margin-bottom: 6px; }
.commitments p { color: var(--muted); }
.band-dark .commitments p { color: var(--muted-d); }

.team-group { font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; color: var(--lagoon); margin: 8px 0 18px; }
.team + .team-group { margin-top: 48px; }
.team { display: grid; gap: 28px 24px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.team-directors { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.member { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: start; }
.member .avatar { width: 88px; height: 88px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 3px solid var(--palm); background: var(--line); display: block; }
.member-director .avatar { width: 112px; height: 112px; border-color: var(--lamp); }
.team-directors .member { grid-template-columns: 112px minmax(0, 1fr); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.member-text b { display: block; font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.member-text .role { display: inline-block; margin: 4px 0 8px; font-size: .78rem; font-weight: 600; color: var(--lagoon); }
.member-text .role-director { background: var(--lamp); color: #fff; padding: 3px 10px; border-radius: 999px; letter-spacing: .02em; }
.member-text p { font-size: .9rem; line-height: 1.6; color: var(--muted); }
.map-figure img { background: var(--paper); border: 1px solid var(--line); }

/* ---------- v0.6: new event logo on an ochre bib ---------- */
.bib { background: var(--ochre); color: var(--night); }
.bib::before, .bib::after, .bib-pins-bottom::before, .bib-pins-bottom::after { background: var(--night); box-shadow: 0 0 0 2px rgba(255,255,255,.55); }
.bib-top { border-bottom-color: rgba(18,58,47,.55); color: var(--night); }
.bib-top span:last-child { color: var(--night); }
.bib-goat { height: 24px; width: auto; display: block; }
.bib-title { margin-top: 18px; padding-inline: 6px; }

/* ---------- Registration: "Opening soon" ribbon ---------- */
.btn-register.is-soon { position: relative; cursor: not-allowed; background: var(--lamp); opacity: .92; overflow: visible; }
.btn-register.is-soon:hover { background: var(--lamp); }
.btn-register.is-soon::after {
  content: "Opening soon"; position: absolute; top: -11px; right: -10px;
  background: var(--ochre); color: var(--night); font: 700 .66rem/1 var(--f-body); letter-spacing: .03em;
  padding: 5px 9px; border-radius: 999px; transform: rotate(5deg); white-space: nowrap;
  box-shadow: 0 2px 6px rgba(8,26,21,.25); pointer-events: none;
}
.header-cta.is-soon::after { top: -8px; right: -12px; }
.mobile-bar .btn-register.is-soon::after { top: -12px; right: -6px; }

/* ---------- "Pricing announced soon" sticker (production until fees are published) ---------- */
.price-sticker {
  display: inline-flex; align-items: center; gap: 6px; vertical-align: middle;
  background: var(--lamp); color: #fff; font: 700 .74rem/1.1 var(--f-body); letter-spacing: .02em;
  padding: 6px 11px 6px 9px; border-radius: 999px; transform: rotate(-2deg); white-space: nowrap;
  box-shadow: 0 2px 6px rgba(8,26,21,.2);
}
.price-sticker::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ochre);
  box-shadow: 0 0 0 2px rgba(255,255,255,.85); flex: none;
}
.price-sticker-lg { font-size: .95rem; padding: 10px 18px 10px 14px; transform: rotate(-3deg); }
.price-sticker-lg::before { width: 9px; height: 9px; }
.band-dark .price-sticker { box-shadow: 0 0 0 1.5px rgba(241,229,213,.35), 0 2px 8px rgba(0,0,0,.3); }

/* ---------- Partners with logo slots ---------- */
.partner { align-content: start; }
.partner-logo { width: 72px; height: 72px; border-radius: 12px; border: 1.5px dashed var(--line); display: grid; place-items: center; font-size: .75rem; color: var(--muted); background: var(--paper); margin-bottom: 6px; }
.partner-open .partner-logo { font-size: 1.6rem; color: var(--lamp); border-color: var(--lamp); }
.partners { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---------- Cursor motion ---------- */
.cursor-fx .spot { position: relative; }
.cursor-fx .spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(241,90,58,.13), transparent 62%);
  opacity: 0; transition: opacity .25s ease;
}
.cursor-fx .band-dark .spot::after, .cursor-fx .race-card:hover::after { background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(211,148,50,.22), transparent 62%); }
.cursor-fx .spot:hover::after { opacity: 1; }
.cursor-fx .slot.spot::after { z-index: 1; background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.22), transparent 60%); }
.cursor-fx .race-card, .cursor-fx .slot.has-photo, .cursor-fx .oman-photos .photo, .cursor-fx .member .avatar { transition: transform .25s cubic-bezier(.2,.8,.2,1), background-color .2s, color .2s, border-color .2s; will-change: transform; }
.cursor-fx .bib { transition: transform .35s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.cursor-fx .btn { transition: transform .2s cubic-bezier(.2,.8,.2,1), background-color .15s, color .15s, border-color .15s; }
.cursor-fx .hero-art { transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.cursor-ring {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  border: 2px solid var(--lamp); opacity: 0; transition: opacity .2s, width .2s, height .2s, margin .2s, background-color .2s;
  mix-blend-mode: normal;
}
.cursor-ring.is-on { opacity: .55; }
.cursor-ring.is-hot { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(241,90,58,.12); opacity: .8; }

/* Race clock: hover a lap to see its hour */
.lap { cursor: default; transition: filter .15s, box-shadow .15s; }
.lap:hover { filter: brightness(1.12); box-shadow: 0 0 0 2px var(--mist); z-index: 3; }
.lap[data-tip]:hover::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--mist); color: var(--night); font: 600 .78rem/1.2 var(--f-body); padding: 6px 10px; border-radius: 6px;
  white-space: nowrap; box-shadow: 0 4px 14px rgba(8,26,21,.3); pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .cursor-ring { display: none; } }

/* ---------- Legal pages ---------- */
.legal .prose { max-width: 72ch; }
.legal .prose h2 { font-size: 1.25rem; text-transform: none; font-weight: 700; letter-spacing: 0; margin-top: 2.2em; line-height: 1.3; }
.legal .prose h2:first-child { margin-top: 0; }
.legal .table-wrap { margin-top: 1em; }
.legal table { min-width: 520px; }
.page-hero .small { font-size: .9rem; margin-top: 10px; color: var(--muted-d); }
.btn.btn-register.is-soon { color: #fff; background: var(--lamp); opacity: .88; }

/* v0.7 — civic support panel (panchayats have no logos) */
.support { background: var(--night); color: var(--mist); border-radius: 20px; padding: clamp(22px, 4vw, 40px); position: relative; overflow: hidden; }
.support::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--ochre); }
.support-kicker { font: 700 .78rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--ochre); margin: 0 0 18px; }
.support-kicker-light { color: var(--lagoon); margin: 34px 0 14px; }
.support-bodies { display: grid; gap: 18px 40px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.support-bodies > div { border-top: 1px solid rgba(241,229,213,.22); padding-top: 14px; display: grid; gap: 6px; align-content: start; }
.support-bodies b { font: 800 clamp(1.35rem, 2.6vw, 1.9rem)/1.15 var(--f-display); color: #fff; letter-spacing: -.01em; }
.support-bodies span { font-size: .9rem; color: rgba(241,229,213,.75); }
.support-note { margin: 22px 0 0; max-width: 62ch; color: rgba(241,229,213,.9); }
.cursor-fx .support.spot::after { background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(211,148,50,.2), transparent 62%); }
.partners-two { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 760px; }
.partner-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* v0.8 contact page and policy links */
.contact-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.contact-card { background: #fff; border-radius: 16px; padding: 22px 24px; box-shadow: 0 0 0 1.5px var(--line); display: grid; gap: 6px; align-content: start; }
.contact-card h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--lagoon); margin-bottom: 4px; }
.contact-card p { overflow-wrap: anywhere; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; color: var(--mist); }
[hidden] { display: none !important; }

/* Partner with a real logo */
.partner-logo.has-img { width: 100%; max-width: 200px; height: 96px; border: 0; background: transparent; padding: 0; justify-items: start; place-items: center start; margin-bottom: 10px; }
.partner-logo.has-img img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.partner-has-logo > b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.partner-has-logo .partner-logo.has-img { height: 104px; margin-bottom: 14px; }

/* ---------- v1.1 Panchayat support: a slim ribbon instead of a big dark block ---------- */
.support { background: #fff; color: var(--ink); border-radius: 14px; padding: 16px 22px 16px 26px; box-shadow: 0 0 0 1.5px var(--line);
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 26px; overflow: hidden; }
.support::before { width: 4px; }
.support .support-kicker { margin: 0; color: var(--lagoon); font-size: .7rem; white-space: nowrap; }
.support .support-bodies { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 28px; grid-template-columns: none; }
.support .support-bodies li { display: flex; align-items: baseline; gap: 8px; border: 0; padding: 0; }
.support .support-bodies b { font: 700 1rem/1.25 var(--f-display); color: var(--night); letter-spacing: 0; }
.support .support-bodies span { font-size: .8rem; color: var(--muted); }
.support .support-note { grid-column: 1 / -1; margin: 2px 0 0; font-size: .84rem; color: var(--muted); max-width: none; }
.cursor-fx .support.spot::after { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(211,148,50,.12), transparent 62%); }
@media (max-width: 640px) {
  .support { grid-template-columns: 1fr; padding: 14px 16px 14px 20px; }
  .support .support-bodies { flex-direction: column; gap: 6px; }
  .support .support-bodies li { flex-direction: column; gap: 0; }
}

/* ---------- v1.1 The island: drifting photo collage (moves with the cursor and on scroll) ---------- */
.drift { position: relative; height: clamp(400px, 40vw, 520px); }
.drift-card { position: absolute; margin: 0; --x: 0px; --y: 0px; --r: 0deg; --z: 1;
  transform: translate3d(var(--x), var(--y), 0) rotate(var(--r)); transition: transform .9s cubic-bezier(.16,1,.3,1); z-index: var(--z); will-change: transform; }
.drift-in { position: relative; background: #fff; padding: 7px 7px 30px; border-radius: 6px; box-shadow: 0 14px 34px rgba(18,58,47,.22), 0 2px 6px rgba(18,58,47,.1);
  animation: drift-float var(--t, 9s) ease-in-out infinite alternate; transition: transform .45s cubic-bezier(.2,.9,.3,1.2), box-shadow .45s; }
.drift-in img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 3px; }
.drift-in figcaption { position: absolute; left: 10px; right: 10px; bottom: 7px; font: 500 .74rem/1.2 var(--f-body); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drift-card:hover { z-index: 20; }
.drift-card:hover .drift-in { transform: scale(1.08) rotate(calc(var(--r) * -1)); box-shadow: 0 26px 60px rgba(18,58,47,.32); animation-play-state: paused; }
@keyframes drift-float { from { translate: 0 -5px; } to { translate: 0 6px; } }
.dc1 { left: 0%;  top: 3%;  width: 56%; --r: -4deg; --z: 3; --t: 10s; }
.dc2 { left: 54%; top: 0%;  width: 42%; --r: 3deg;  --z: 2; --t: 8s; }
.dc3 { left: 60%; top: 41%; width: 39%; --r: -2.5deg; --z: 4; --t: 11s; }
.dc4 { left: 3%;  top: 52%; width: 40%; --r: 2.5deg; --z: 4; --t: 9s; }
.dc5 { left: 36%; top: 28%; width: 33%; --r: -6deg; --z: 6; --t: 7.5s; }
.dc6 { left: 33%; top: 64%; width: 35%; --r: 4deg;  --z: 5; --t: 10.5s; }
@media (max-width: 900px) { .drift { height: clamp(380px, 92vw, 560px); margin-top: 28px; } }
@media (max-width: 560px) { .drift-in { padding: 5px 5px 22px; } .drift-in figcaption { font-size: .66rem; bottom: 5px; } }
@media (prefers-reduced-motion: reduce) { .drift-in { animation: none; } .drift-card { transition: none; } }

/* ---------- v1.1 Photo heroes: slow crossfading, zooming photos behind the page title ---------- */
.photo-hero { min-height: clamp(380px, 58vh, 620px); display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.photo-hero::after { display: none; }
.ph-slides { position: absolute; inset: -4%; z-index: -2; transform: translate3d(var(--px, 0px), calc(var(--py, 0px) + var(--sy, 0px)), 0); transition: transform .8s cubic-bezier(.16,1,.3,1); }
.ph-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; transform: scale(1.04); }
.ph-slide.is-on { opacity: 1; animation: ph-zoom 14s ease-out forwards; }
@keyframes ph-zoom { from { transform: scale(1.04); } to { transform: scale(1.16); } }
.photo-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(18,58,47,.25) 0%, rgba(18,58,47,.35) 35%, rgba(18,58,47,.92) 100%); }
.photo-hero-night::before { background: linear-gradient(180deg, rgba(8,20,16,.15) 0%, rgba(8,20,16,.35) 40%, rgba(18,58,47,.95) 100%); }
.photo-hero-night .ph-slide { filter: brightness(1.55) contrast(1.05) saturate(1.1); object-position: center 60%; }
.photo-hero h1, .photo-hero p { text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.photo-hero p { color: var(--mist); }
.page-hero .ph-credit { position: absolute; right: 12px; bottom: 8px; margin: 0; font-size: .68rem; font-weight: 400; line-height: 1.3; color: rgba(241,229,213,.7); max-width: min(70%, 420px); text-align: right; text-shadow: none; }
@media (prefers-reduced-motion: reduce) { .ph-slide.is-on { animation: none; } .ph-slides { transition: none; } }

/* ---------- v1.1 Further afield: a slow filmstrip that pauses on hover ---------- */
.reel { overflow: hidden; margin-top: 30px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.reel-track { list-style: none; margin: 0; padding: 10px 0 18px; display: flex; gap: 18px; width: max-content; animation: reel 60s linear infinite; }
.reel:hover .reel-track, .reel:focus-within .reel-track { animation-play-state: paused; }
@keyframes reel { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.reel-card { position: relative; flex: none; width: clamp(240px, 26vw, 360px); aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--night-2); box-shadow: 0 18px 40px rgba(0,0,0,.35); transition: transform .5s cubic-bezier(.2,.9,.3,1.2); }
.reel-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.16,1,.3,1); }
.reel-card:hover { transform: translateY(-8px) rotate(-1deg); }
.reel-card:hover img { transform: scale(1.12); }
.reel-card div { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 18px 16px; background: linear-gradient(180deg, transparent, rgba(8,24,19,.88)); color: #fff; display: grid; gap: 2px; }
.reel-card b { font: 800 1.15rem/1.15 var(--f-display); }
.reel-card span { font-size: .84rem; color: rgba(241,229,213,.85); }
.reel-note { margin-top: 6px; font-size: .8rem; color: var(--muted-d); }
@media (prefers-reduced-motion: reduce) {
  .reel { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-mask-image: none; mask-image: none; }
  .reel-track { animation: none; padding-inline: var(--gutter); }
  .reel-card { scroll-snap-align: start; }
}
