/* ============================================================
   Wise Owl Races — Bad Beard Events inspired style sheet
   ============================================================ */

:root {
  --forest-900: #0f1f17;   /* near-black green for hero overlay */
  --forest-800: #173024;   /* primary dark green (matches logo) */
  --forest-700: #1f3a2c;
  --forest-600: #2e5240;
  --forest-50:  #f3efe6;   /* warm off-white background */
  --cream:      #f7f2e7;
  --bone:       #ece6d5;
  --amber-500:  #d4a544;   /* sunlight / autumn-leaf accent */
  --amber-600:  #b88a30;
  /* Plum — small, tasteful accent. Never primary. */
  --plum-50:    #ebe4ee;
  --plum-100:   #d8c8df;
  --plum-400:   #8c6aa0;
  --plum-500:   #6e4a83;
  --plum-600:   #553a66;
  --plum-700:   #3d2a4a;
  --ink:        #14201a;
  --muted:      #6a7269;
  --line:       rgba(255,255,255,.18);
  --line-dark:  rgba(20,32,26,.12);
  --max:        1240px;
  --pad:        clamp(20px, 4vw, 56px);

  --font-display: 'Fraunces', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --font-condensed: 'Oswald', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* All display headlines pick up Fraunces with a warm SOFT axis and
   optical sizing tuned for large display use. */
.hero-tagline,
.subhero-title,
.section-headline,
.next-race-title,
.director-name,
.cta-title,
.team-name,
.number-value,
.value-num {
  font-variation-settings: "opsz" 144, "SOFT" 60;
}

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

/* ----------------------------------------------------------------
   TOP UTILITY BAR
---------------------------------------------------------------- */
.top-bar {
  background: var(--forest-900);
  color: var(--bone);
  font-family: var(--font-condensed);
  font-size: 12.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.top-bar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 9px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-bar-tag { opacity: .85; }
.top-bar-socials { display: flex; gap: 14px; }
.top-bar-socials a {
  display: inline-flex;
  width: 26px; height: 26px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  align-items: center; justify-content: center;
  transition: background .2s, color .2s, border-color .2s;
}
.top-bar-socials a:hover {
  background: var(--amber-500);
  border-color: var(--amber-500);
  color: var(--forest-900);
}

/* ----------------------------------------------------------------
   MAIN HEADER (dark, sits above the hero)
---------------------------------------------------------------- */
.site-header {
  background: var(--forest-800);
  color: #fff;
  position: relative;
  z-index: 5;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--pad);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.logo-link img {
  height: 58px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 36px;
  justify-content: center;
  font-family: var(--font-condensed);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 14px;
}
.nav-links a {
  color: #fff;
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
.nav-links a:hover { color: var(--amber-500); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--amber-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

.header-cta {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 13px;
  font-weight: 700;
  color: var(--forest-900);
  background: var(--amber-500);
  padding: 11px 22px;
  border-radius: 999px;
  transition: background .2s, transform .2s;
}
.header-cta:hover {
  background: #e8b95a;
  transform: translateY(-1px);
}

/* ----------------------------------------------------------------
   HERO
---------------------------------------------------------------- */
.hero {
  position: relative;
  /* Reserve ~130px for the top-bar + main header so the
     featured race strip sits at the bottom of the viewport
     on initial load. */
  min-height: 560px;
  height: calc(100vh - 130px);
  height: calc(100dvh - 130px);
  max-height: 820px;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 55%;
  z-index: -2;
  transform: scale(1.02);
}
.hero-overlay {
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(15,31,23,.55) 0%, rgba(15,31,23,.28) 35%, rgba(15,31,23,.85) 100%),
    linear-gradient(110deg, rgba(15,31,23,.70) 0%, rgba(15,31,23,.18) 60%);
}
.hero-content {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) var(--pad) clamp(140px, 16vw, 180px);
  text-align: center;
}
.welcome-to {
  font-family: var(--font-condensed);
  font-weight: 500;
  letter-spacing: .42em;
  text-transform: uppercase;
  font-size: clamp(13px, 1.4vw, 16px);
  opacity: .88;
  margin: 0 0 10px;
}
.hero-logo {
  display: block;
  margin: 14px auto 18px;
  width: auto;
  height: auto;
  max-width: min(460px, 70vw);
  max-height: 42vh;
  object-fit: contain;
  filter: drop-shadow(0 8px 28px rgba(0,0,0,.45));
}
.hero-tagline {
  margin: 0;
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: .32em;
  font-size: clamp(13px, 1.4vw, 16px);
  color: var(--amber-500);
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
}

/* Featured race cards strip pinned to bottom of hero */
.featured-strip {
  position: absolute;
  left: 0; right: 0;
  bottom: -1px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.featured-card {
  background: rgba(15,31,23,.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 22px 24px;
  color: #fff;
  border-right: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background .25s, transform .25s, color .25s;
}
.featured-card:last-child { border-right: none; }
.featured-card:hover {
  background: var(--amber-500);
  color: var(--forest-900);
  transform: translateY(-4px);
}
.featured-name {
  font-family: var(--font-condensed);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.1;
}
.featured-date {
  font-size: 12.5px;
  letter-spacing: .04em;
  opacity: .8;
}
.featured-card:hover .featured-date { opacity: 1; }

/* ----------------------------------------------------------------
   NEXT RACE CALLOUT — compact two-column with arrow-clipped image
---------------------------------------------------------------- */
.next-race {
  background: var(--forest-800);
  color: #fff;
  padding: clamp(48px, 6vw, 64px) 0 clamp(36px, 5vw, 48px);
  position: relative;
  overflow: hidden;
}
.next-race-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.next-race-text {
  text-align: left;
  max-width: 560px;
}
/* "Up Next" — editorial label, not a button */
.next-race-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  font-family: var(--font-condensed);
  font-style: italic;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .42em;
  font-size: 13px;
  color: var(--amber-500);
}
.next-race-label::before {
  content: '';
  display: block;
  width: 44px;
  height: 2px;
  /* Two-tone bar: amber to plum, very subtle */
  background: linear-gradient(90deg, var(--amber-500) 0 65%, var(--plum-400) 65% 100%);
}
.next-race-eyebrow {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: .32em;
  font-size: 12.5px;
  opacity: .7;
  margin: 0 0 6px;
}
.next-race-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1.02;
  margin: 0 0 18px;
  letter-spacing: -.012em;
}
.next-race-blurb {
  margin: 0 0 26px;
  font-size: 16.5px;
  line-height: 1.6;
  opacity: .88;
}
.next-race-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Finish-line image clipped to a leftward chevron — points into the title */
.next-race-image {
  position: relative;
  align-self: stretch;
  min-height: clamp(220px, 28vw, 360px);
  margin-right: -1px;          /* pull flush to right edge */
}
.next-race-image-clip {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 38%;
  /* Pentagon arrow pointing LEFT, into the text */
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 18% 100%, 0 50%);
  /* warm-up the photo with a forest-tinted overlay using box-shadow inset */
  box-shadow: inset 0 0 0 9999px rgba(15,31,23,.10);
}
.next-race-image-clip::after {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: inherit;
  background: linear-gradient(110deg, rgba(15,31,23,.45) 0%, rgba(15,31,23,0) 40%);
}

/* ----------------------------------------------------------------
   BUTTONS
---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-condensed);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 13.5px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: all .2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--amber-500);
  color: var(--forest-900);
}
.btn-primary:hover {
  background: #e8b95a;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(212,165,68,.35);
}
.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.55);
}
.btn-ghost-light:hover {
  background: #fff;
  color: var(--forest-900);
  border-color: #fff;
}
.btn-outline-dark {
  background: transparent;
  color: var(--forest-800);
  border-color: var(--forest-800);
  padding: 16px 32px;
}
.btn-outline-dark:hover {
  background: var(--forest-800);
  color: var(--cream);
}
/* Use this on outline buttons whose label reads better in title case
   (full sentences, not single action words). */
.btn-titlecase {
  text-transform: none;
  letter-spacing: .02em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
}

/* ----------------------------------------------------------------
   HEY THERE
---------------------------------------------------------------- */
.hey-there {
  background: var(--cream);
  padding: clamp(48px, 6vw, 72px) var(--pad);
}
.hey-there-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.section-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -.015em;
  margin: 0 0 22px;
  color: var(--forest-800);
}
.hey-there-body {
  text-align: left;
  font-size: 17px;
  line-height: 1.7;
  color: #2a342d;
  margin-bottom: 26px;
}
.hey-there-body p { margin: 0 0 18px; }
.hey-there-body strong { color: var(--forest-800); }
.inline-link {
  color: var(--amber-600);
  border-bottom: 1px solid var(--amber-600);
  transition: color .2s, border-color .2s;
}
.inline-link:hover {
  color: var(--forest-800);
  border-color: var(--forest-800);
}

/* ================================================================
   RACES INDEX PAGE
   ================================================================ */

.race-blocks {
  background: var(--cream);
  padding: clamp(40px, 6vw, 64px) 0;
  overflow: hidden;
}
.race-block {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.race-block + .race-block {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line-dark);
}
.race-block-image {
  position: relative;
  align-self: stretch;
  min-height: clamp(280px, 32vw, 420px);
}
.race-block-image-clip {
  position: absolute;
  inset: 0;
  background-size: cover;
  box-shadow: inset 0 0 0 9999px rgba(15,31,23,.04);
}
.race-block-image-clip::after {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: inherit;
}
.race-block-text { max-width: 540px; }

/* LEFT: image left, arrow points right into text */
.race-block-left {
  grid-template-columns: 1fr 1.1fr;
  padding-right: var(--pad);
}
.race-block-left .race-block-image { margin-left: -1px; }
.race-block-left .race-block-image-clip {
  clip-path: polygon(0 0, 82% 0, 100% 50%, 82% 100%, 0 100%);
}
.race-block-left .race-block-image-clip::after {
  background: linear-gradient(250deg, rgba(15,31,23,.20) 0%, rgba(15,31,23,0) 50%);
}

/* RIGHT: image right, arrow points left into text */
.race-block-right {
  grid-template-columns: 1.1fr 1fr;
  padding-left: var(--pad);
}
.race-block-right .race-block-image { order: 2; margin-right: -1px; }
.race-block-right .race-block-text  { order: 1; justify-self: end; }
.race-block-right .race-block-image-clip {
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 18% 100%, 0 50%);
}
.race-block-right .race-block-image-clip::after {
  background: linear-gradient(110deg, rgba(15,31,23,.20) 0%, rgba(15,31,23,0) 50%);
}

/* Status pill */
.race-block-status {
  display: inline-block;
  font-family: var(--font-condensed);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 11.5px;
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 16px;
  border: 1px solid;
}
.status-open {
  background: rgba(212,165,68,.12);
  color: var(--amber-600);
  border-color: rgba(184,138,48,.35);
}
.status-soon {
  background: var(--plum-50);
  color: var(--plum-600);
  border-color: rgba(110,74,131,.30);
}

.race-block-kicker {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 6px;
}
.race-block-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -.018em;
  margin: 0 0 18px;
  color: var(--forest-800);
}
.race-block-title { font-variation-settings: "opsz" 144, "SOFT" 60; }

.race-block-meta {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 6px;
}
.race-block-meta li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  font-size: 14.5px;
  line-height: 1.5;
  color: #2a342d;
  padding: 8px 0;
  border-top: 1px solid var(--line-dark);
}
.race-block-meta li:last-child { border-bottom: 1px solid var(--line-dark); }
.race-block-meta li > span {
  font-family: var(--font-condensed);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  color: var(--amber-600);
}
.race-block-blurb {
  font-size: 16px;
  line-height: 1.65;
  color: #2a342d;
  margin: 0 0 22px;
}
.race-block-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Coming later band */
.coming-later {
  background: var(--forest-800);
  color: #fff;
  padding: clamp(44px, 6vw, 68px) var(--pad);
  text-align: center;
}
.coming-later-inner {
  max-width: 760px;
  margin: 0 auto;
}
.coming-later .section-kicker { color: var(--amber-500); }
.coming-later .section-headline { color: #fff; margin-bottom: 14px; }
.coming-later-lede {
  margin: 0 0 22px;
  font-size: 16.5px;
  line-height: 1.6;
  opacity: .88;
}
.coming-later-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.coming-later-actions .btn-outline-dark {
  color: #fff;
  border-color: rgba(255,255,255,.55);
}
.coming-later-actions .btn-outline-dark:hover {
  background: #fff;
  color: var(--forest-900);
}

/* Races responsive */
@media (max-width: 960px) {
  .race-block,
  .race-block-left,
  .race-block-right {
    grid-template-columns: 1fr;
    padding: 0 var(--pad);
  }
  .race-block-left .race-block-image,
  .race-block-right .race-block-image {
    order: -1;
    min-height: clamp(220px, 50vw, 320px);
    margin-left: calc(var(--pad) * -1);
    margin-right: calc(var(--pad) * -1);
  }
  .race-block-right .race-block-text { order: 2; justify-self: stretch; }
  .race-block-left  .race-block-image-clip,
  .race-block-right .race-block-image-clip {
    clip-path: polygon(0 0, 100% 0, 100% 82%, 50% 100%, 0 82%);
  }
}
@media (max-width: 540px) {
  .race-block-meta li { grid-template-columns: 1fr; gap: 2px; }
}

/* ================================================================
   EVENT / RACE PAGES
   ================================================================ */

/* Race hero — full-bleed photo with title overlay */
.race-hero {
  position: relative;
  color: #fff;
  min-height: clamp(440px, 70vh, 640px);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
}
.race-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 45%;
  z-index: -2;
}
.race-hero-overlay {
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(15,31,23,.35) 0%, rgba(15,31,23,.18) 38%, rgba(15,31,23,.90) 100%);
}
.race-hero-content {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: clamp(60px, 8vw, 100px) var(--pad) clamp(48px, 6vw, 72px);
}
.race-breadcrumb {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: .25em;
  font-size: 12.5px;
  opacity: .82;
  margin: 0 0 14px;
}
.race-breadcrumb a {
  color: var(--amber-500);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.race-breadcrumb a:hover { border-color: var(--amber-500); }
.race-hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(54px, 9vw, 132px);
  line-height: .98;
  letter-spacing: -.022em;
  margin: 0 0 14px;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.race-hero-tagline {
  font-size: clamp(16px, 2vw, 22px);
  max-width: 660px;
  margin: 0 0 26px;
  opacity: .92;
  line-height: 1.5;
}
.race-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Coming-soon variant — subtle "muted" stripe */
.race-status-flag {
  display: inline-block;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  font-family: var(--font-condensed);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .25em;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 14px;
}

/* Quick-facts strip — overlapping the hero into the next section */
.race-facts {
  background: var(--forest-900);
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.06);
}
.race-facts-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.race-fact {
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid rgba(255,255,255,.08);
}
.race-fact:last-child { border-right: none; }
.race-fact-label {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 11px;
  color: var(--amber-500);
}
.race-fact-value {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  line-height: 1.3;
}

/* "Three things to know" — the hook */
.three-things {
  background: var(--cream);
  padding: clamp(44px, 6vw, 68px) var(--pad);
  border-bottom: 1px solid var(--line-dark);
}
.three-things-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.three-things-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(28px, 4vw, 40px);
}
.three-things-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.three-thing {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 18px;
  border-left: 3px solid var(--amber-500);
}
.three-thing-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--amber-600);
  line-height: 1;
}
.three-thing h3 {
  font-family: var(--font-condensed);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 17px;
  color: var(--forest-800);
  margin: 0;
}
.three-thing p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: #3a463d;
}

/* Course description — text plus side photo */
.course-section {
  background: var(--cream);
  padding: clamp(48px, 6vw, 76px) 0;
  overflow: hidden;
}
.course-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.course-text { max-width: 580px; }
.course-text p {
  margin: 0 0 16px;
  font-size: 16.5px;
  line-height: 1.7;
  color: #2a342d;
}
.course-image {
  position: relative;
  align-self: stretch;
  min-height: clamp(280px, 32vw, 420px);
  margin-right: -1px;
}
.course-image-clip {
  position: absolute;
  inset: 0;
  background-size: cover;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 18% 100%, 0 50%);
}
.course-image-clip::after {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: inherit;
  background: linear-gradient(110deg, rgba(15,31,23,.25) 0%, rgba(15,31,23,0) 45%);
}

/* Distance options — horizontal cards */
.distances-section {
  background: var(--forest-800);
  color: #fff;
  padding: clamp(48px, 6vw, 76px) var(--pad);
}
.distances-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.distances-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(28px, 4vw, 40px);
}
.distances-headline {
  color: #fff;
}
.distances-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.distance-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: 24px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background .25s, border-color .25s, transform .25s;
}
.distance-card:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(212,165,68,.55);
  transform: translateY(-3px);
}
.distance-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4vw, 48px);
  line-height: 1;
  color: var(--amber-500);
  letter-spacing: -.018em;
}
.distance-title {
  font-family: var(--font-condensed);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 16px;
  margin: 0;
  color: #fff;
}
.distance-meta {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,.78);
  margin: 0;
}
.distance-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.10);
}
.distance-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.distance-stat-label {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 10.5px;
  color: var(--amber-500);
}
.distance-stat-value {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

/* Course map embed slot */
.map-section {
  background: var(--cream);
  padding: clamp(48px, 6vw, 76px) var(--pad);
}
.map-inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}
.map-embed-wrap {
  margin-top: clamp(24px, 3vw, 36px);
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: var(--forest-50);
  aspect-ratio: 16 / 9;
  min-height: 360px;
}
/* When you paste the Mapbox iframe/HTML inside .map-embed-wrap, it will
   fill the container. Until then, the .map-embed-placeholder is visible. */
.map-embed-wrap > iframe,
.map-embed-wrap > .mapboxgl-map,
.map-embed-wrap > div[class*="mapbox"] {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}
.map-embed-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px;
  text-align: center;
  background:
    repeating-linear-gradient(45deg, transparent 0 22px, rgba(23,48,36,.05) 22px 23px),
    var(--forest-50);
  color: var(--forest-800);
}
.map-embed-placeholder svg {
  width: 48px; height: 48px; opacity: .55;
}
.map-embed-placeholder h3 {
  font-family: var(--font-condensed);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 14px;
  margin: 0;
}
.map-embed-placeholder p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 440px;
  line-height: 1.55;
}
.map-embed-placeholder code {
  font-family: 'SF Mono', 'Menlo', Consolas, monospace;
  font-size: 12.5px;
  background: rgba(23,48,36,.08);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--forest-800);
}

/* Logistics timeline — Friday / Saturday split */
.logistics-section {
  background: var(--forest-800);
  color: #fff;
  padding: clamp(48px, 6vw, 76px) var(--pad);
}
.logistics-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(28px, 4vw, 44px);
}
.logistics-headline { color: #fff; }
.logistics-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.logistics-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: clamp(22px, 3vw, 32px);
}
.logistics-day {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 11.5px;
  color: var(--amber-500);
  margin: 0 0 6px;
}
.logistics-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.05;
  letter-spacing: -.012em;
  margin: 0 0 18px;
  color: #fff;
}
.logistics-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.logistics-list li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,.10);
  align-items: baseline;
}
.logistics-list li:first-child { border-top: none; padding-top: 0; }
.logistics-list .l-time {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  color: var(--amber-500);
}
.logistics-list .l-event {
  font-size: 14.5px;
  line-height: 1.55;
  color: #fff;
}
.logistics-list .l-event strong { color: #fff; }
.logistics-list .l-event small {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,.65);
  margin-top: 2px;
}

/* Whats included */
.included-section {
  background: var(--cream);
  padding: clamp(44px, 6vw, 68px) var(--pad);
}
.included-inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}
.included-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: clamp(24px, 3vw, 36px);
  text-align: left;
}
.included-item {
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
}
.included-item .check {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--forest-800);
  color: var(--amber-500);
  display: inline-flex;
  align-items: center; justify-content: center;
  margin-top: 1px;
}
.included-item .check svg { width: 14px; height: 14px; }
.included-item strong {
  display: block;
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 14px;
  color: var(--forest-800);
  margin-bottom: 2px;
}

/* Previous races */
.previous-section {
  background: var(--forest-50);
  padding: clamp(44px, 6vw, 68px) var(--pad);
  border-top: 1px solid var(--line-dark);
}
.previous-inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}
.previous-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: clamp(20px, 3vw, 32px);
  text-align: left;
}
.previous-card {
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.previous-year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--forest-800);
  letter-spacing: -.012em;
}
.previous-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.previous-link {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 10px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--forest-800);
  transition: background .2s, color .2s, border-color .2s;
}
.previous-link:hover {
  background: var(--forest-800);
  color: var(--amber-500);
  border-color: var(--forest-800);
}
.previous-link.is-empty {
  color: var(--muted);
  background: transparent;
  border-style: dashed;
  pointer-events: none;
}

/* Bottom race CTA */
.race-cta {
  background: var(--forest-900);
  color: #fff;
  padding: clamp(52px, 7vw, 84px) var(--pad);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.race-cta::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  top: -260px; right: -180px;
  background: radial-gradient(closest-side, rgba(212,165,68,.16), rgba(212,165,68,0) 70%);
  pointer-events: none;
}
.race-cta-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}
.race-cta h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.04;
  letter-spacing: -.018em;
  margin: 0 0 14px;
  color: #fff;
}
.race-cta p {
  margin: 0 0 22px;
  font-size: 16.5px;
  line-height: 1.6;
  opacity: .85;
}
.race-cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Event responsive */
@media (max-width: 960px) {
  .race-facts-inner { grid-template-columns: repeat(2, 1fr); }
  .race-fact { border-bottom: 1px solid rgba(255,255,255,.08); }
  .race-fact:nth-child(2n) { border-right: none; }
  .race-fact:nth-last-child(-n+2) { border-bottom: none; }

  .three-things-grid { grid-template-columns: 1fr; gap: 18px; }

  .course-grid {
    grid-template-columns: 1fr;
    padding-left: var(--pad);
    padding-right: var(--pad);
  }
  .course-text { max-width: none; }
  .course-image {
    order: -1;
    min-height: clamp(220px, 50vw, 320px);
    margin-left: calc(var(--pad) * -1);
    margin-right: calc(var(--pad) * -1);
  }
  .course-image-clip {
    clip-path: polygon(0 0, 100% 0, 100% 82%, 50% 100%, 0 82%);
  }

  .logistics-grid { grid-template-columns: 1fr; }
  .map-embed-wrap { aspect-ratio: 4 / 3; min-height: 320px; }
}
@media (max-width: 540px) {
  .race-facts-inner { grid-template-columns: 1fr; }
  .race-fact { border-right: none; }
  .race-fact:last-child { border-bottom: none; }
  .logistics-list li { grid-template-columns: 1fr; gap: 2px; }
}

/* ================================================================
   ABOUT PAGE
   ================================================================ */

/* Story — text + arrow-clipped photo */
.story-section {
  background: var(--cream);
  padding: clamp(48px, 6vw, 76px) 0;
  overflow: hidden;
}
.story-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.story-text { max-width: 580px; }
.story-text p {
  margin: 0 0 16px;
  font-size: 16.5px;
  line-height: 1.7;
  color: #2a342d;
}
.story-text em {
  font-style: italic;
  color: var(--forest-700);
}
.story-image {
  position: relative;
  align-self: stretch;
  min-height: clamp(280px, 32vw, 420px);
  margin-right: -1px;
}
.story-image-clip {
  position: absolute;
  inset: 0;
  background-size: cover;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 18% 100%, 0 50%);
  box-shadow: inset 0 0 0 9999px rgba(15,31,23,.05);
}
.story-image-clip::after {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: inherit;
  background: linear-gradient(110deg, rgba(15,31,23,.25) 0%, rgba(15,31,23,0) 45%);
}

/* Values band */
.values-section {
  background: var(--forest-800);
  color: #fff;
  padding: clamp(48px, 6vw, 72px) var(--pad);
}
.values-intro {
  max-width: 760px;
  margin: 0 auto clamp(28px, 4vw, 44px);
  text-align: center;
}
.values-kicker { color: var(--amber-500); }
.values-headline { color: #fff; margin-bottom: 8px; }
.values-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.value-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background .25s, border-color .25s, transform .25s;
}
.value-card:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(212,165,68,.55);
  transform: translateY(-3px);
}
.value-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--amber-500);
  line-height: 1;
  letter-spacing: -.015em;
}
.value-card h3 {
  font-family: var(--font-condensed);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 18px;
  margin: 0;
  color: #fff;
}
.value-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255,255,255,.78);
}

/* By the numbers */
.numbers-section {
  background: var(--cream);
  padding: clamp(40px, 5vw, 60px) var(--pad);
  border-bottom: 1px solid var(--line-dark);
}
.numbers-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.number-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 8px clamp(12px, 2vw, 24px);
  border-right: 1px solid var(--line-dark);
}
.number-block:last-child { border-right: none; }
.number-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 7vw, 84px);
  line-height: 1;
  color: var(--forest-800);
  letter-spacing: -.02em;
}
.number-label {
  font-family: var(--font-condensed);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}

/* Team — compact */
.team-section {
  background: var(--cream);
  padding: clamp(44px, 6vw, 72px) var(--pad);
}
.team-inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}
.team-lede {
  max-width: 540px;
  margin: 0 auto clamp(28px, 4vw, 40px);
  font-size: 16px;
  color: #3a463d;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 820px;
  margin: 0 auto clamp(28px, 4vw, 40px);
}
.team-card {
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.team-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15,31,23,.12);
}
.team-photo {
  height: 240px;
  background-size: cover;
}
.team-card-body { padding: 20px 22px 22px; }
.team-role {
  font-family: var(--font-condensed);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 12px;
  color: var(--amber-600);
  margin: 0 0 4px;
}
.team-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 38px);
  color: var(--forest-800);
  margin: 0 0 8px;
  line-height: 1.05;
  letter-spacing: -.012em;
}
.team-email {
  font-size: 14.5px;
  color: var(--ink);
  border-bottom: 1px solid var(--amber-600);
  transition: color .2s, border-color .2s;
}
.team-email:hover {
  color: var(--amber-600);
}
.team-cta { margin: 0; }

/* CTA band */
.cta-band {
  background: var(--forest-800);
  color: #fff;
  padding: clamp(44px, 6vw, 68px) var(--pad);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-band::before {
  content: '';
  position: absolute;
  width: 520px; height: 520px;
  bottom: -260px; left: -160px;
  background: radial-gradient(closest-side, rgba(212,165,68,.16), rgba(212,165,68,0) 70%);
  pointer-events: none;
}
.cta-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}
.cta-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -.018em;
  margin: 0 0 14px;
  color: #fff;
}
.cta-blurb {
  margin: 0 0 22px;
  font-size: 16.5px;
  line-height: 1.6;
  opacity: .85;
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* About responsive */
@media (max-width: 960px) {
  .story-grid {
    grid-template-columns: 1fr;
    padding-left: var(--pad);
    padding-right: var(--pad);
  }
  .story-text { max-width: none; }
  .story-image {
    order: -1;
    min-height: clamp(220px, 50vw, 320px);
    margin-left: calc(var(--pad) * -1);
    margin-right: calc(var(--pad) * -1);
  }
  .story-image-clip {
    clip-path: polygon(0 0, 100% 0, 100% 82%, 50% 100%, 0 82%);
  }

  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .number-block:nth-child(2n) { border-right: none; }
  .number-block:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); padding-bottom: 16px; margin-bottom: 16px; }
}
@media (max-width: 540px) {
  .values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   CONTACT PAGE
   ================================================================ */

/* Current-page indicator on nav.
   Stays amber for color continuity, plus a small plum dot prefix
   so the active page reads as more than just a color tint. */
.nav-links a.is-current {
  color: var(--amber-500);
  position: relative;
  padding-left: 14px;
}
.nav-links a.is-current::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--plum-400);
  transform: translateY(-50%);
}
.nav-links a.is-current::after {
  transform: scaleX(1);
}

/* Subpage hero — shorter, no background photo, dark forest band */
.subhero {
  background: var(--forest-800);
  color: #fff;
  padding: clamp(48px, 6vw, 72px) var(--pad) clamp(40px, 5vw, 60px);
  position: relative;
  overflow: hidden;
}
.subhero::before {
  /* subtle radial accent in the corner */
  content: '';
  position: absolute;
  width: 520px; height: 520px;
  top: -180px; right: -180px;
  background: radial-gradient(closest-side, rgba(212,165,68,.18), rgba(212,165,68,0) 70%);
  pointer-events: none;
}
.subhero-inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  text-align: center;
}
.subhero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(52px, 8vw, 112px);
  line-height: 1.02;
  margin: 6px 0 22px;
  letter-spacing: -.022em;
}
.subhero-blurb {
  max-width: 620px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.6;
  opacity: .88;
}

/* Inquiry routes section */
.inquiry-section {
  background: var(--cream);
  padding: clamp(44px, 6vw, 68px) var(--pad);
}
.inquiry-inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}
.section-kicker {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: .32em;
  font-size: 12.5px;
  color: var(--amber-600);
  margin: 0 0 12px;
}
.inquiry-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: left;
}
.inquiry-card {
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--ink);
  position: relative;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.inquiry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15,31,23,.12);
  border-color: rgba(15,31,23,.2);
}
.inquiry-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--forest-800);
  color: var(--amber-500);
  display: flex; align-items: center; justify-content: center;
}
.inquiry-card h3 {
  font-family: var(--font-condensed);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 19px;
  margin: 6px 0 2px;
  color: var(--forest-800);
}
.inquiry-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: #3a463d;
}
.inquiry-link {
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--amber-600);
  border-top: 1px solid var(--line-dark);
  display: inline-block;
  width: 100%;
  transition: color .2s;
}
.inquiry-card:hover .inquiry-link { color: var(--forest-800); }

/* Directors section — Kelby + Stephen, alternating sides */
.directors-section {
  background: var(--forest-800);
  color: #fff;
  padding: clamp(44px, 6vw, 68px) 0;
  overflow: hidden;
}
.directors-intro {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  text-align: center;
}
.directors-intro .section-kicker { color: var(--amber-500); }
.directors-headline {
  color: #fff;
  margin-bottom: 16px;
}
.directors-lede {
  max-width: 620px;
  margin: 0 auto clamp(28px, 4vw, 44px);
  font-size: 16.5px;
  line-height: 1.6;
  opacity: .85;
}
.director {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.director + .director {
  margin-top: clamp(40px, 5vw, 56px);
}
.director-image {
  position: relative;
  align-self: stretch;
  min-height: clamp(320px, 32vw, 440px);
}
.director-image-clip {
  position: absolute;
  inset: 0;
  background-size: cover;
  box-shadow: inset 0 0 0 9999px rgba(15,31,23,.08);
}
.director-image-clip::after {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: inherit;
}
.director-text { max-width: 540px; }
/* LEFT variant: image on left, arrow points right into the text */
.director-left {
  grid-template-columns: 1fr 1.1fr;
  padding-right: var(--pad);
}
.director-left .director-image { margin-left: -1px; }
.director-left .director-image-clip {
  clip-path: polygon(0 0, 82% 0, 100% 50%, 82% 100%, 0 100%);
}
.director-left .director-image-clip::after {
  background: linear-gradient(250deg, rgba(15,31,23,.35) 0%, rgba(15,31,23,0) 45%);
}
/* RIGHT variant: image on right, arrow points left into the text */
.director-right {
  grid-template-columns: 1.1fr 1fr;
  padding-left: var(--pad);
}
.director-right .director-image { order: 2; margin-right: -1px; }
.director-right .director-text  { order: 1; justify-self: end; }
.director-right .director-image-clip {
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 18% 100%, 0 50%);
}
.director-right .director-image-clip::after {
  background: linear-gradient(110deg, rgba(15,31,23,.35) 0%, rgba(15,31,23,0) 45%);
}
.director-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 5.6vw, 72px);
  line-height: 1.02;
  margin: 0 0 6px;
  letter-spacing: -.018em;
}
.director-role {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: .25em;
  font-size: 13px;
  opacity: .7;
  margin: 0 0 22px;
}
.director-bio {
  font-size: 16.5px;
  line-height: 1.7;
  opacity: .9;
  margin: 0 0 16px;
}

/* Collapsible "Read more" bio block.
   Open/close height is animated by site.js — CSS only styles. */
.bio-more {
  margin: 0 0 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.bio-more summary {
  font-family: var(--font-condensed);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12.5px;
  color: var(--amber-500);
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: color .2s;
}
.bio-more summary::-webkit-details-marker { display: none; }
.bio-more summary::after {
  content: '';
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 450ms cubic-bezier(.2,.7,.2,1);
}
.bio-more[open] summary::after {
  transform: rotate(-135deg);
  color: var(--plum-400);   /* subtle plum on open */
}
.bio-more summary:hover { color: #fff; }
.bio-more-body {
  font-size: 15.5px;
  line-height: 1.7;
  opacity: .88;
  /* max-height, opacity, and overflow are owned by site.js */
}
.bio-more-body > *:first-child { margin-top: 4px; }
.bio-more-body > *:last-child  { margin-bottom: 18px; }
.bio-more-body p { margin: 0 0 12px; }
.owner-details {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.owner-details li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,.12);
}
.owner-details li:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.detail-label {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 12px;
  color: var(--amber-500);
}
.detail-value {
  font-size: 16px;
  color: #fff;
  word-break: break-word;
}
a.detail-value {
  border-bottom: 1px solid rgba(255,255,255,.3);
  transition: color .2s, border-color .2s;
}
a.detail-value:hover {
  color: var(--amber-500);
  border-color: var(--amber-500);
}

/* Contact form */
.form-section {
  background: var(--cream);
  padding: clamp(44px, 6vw, 68px) var(--pad) clamp(48px, 6vw, 76px);
}
.form-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.form-lede {
  max-width: 540px;
  margin: 0 auto 22px;
  font-size: 16px;
  color: #3a463d;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 18px 50px rgba(15,31,23,.06);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-field > span {
  font-family: var(--font-condensed);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  color: var(--forest-800);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15.5px;
  color: var(--ink);
  background: #fbf8f1;
  border: 1.5px solid var(--line-dark);
  border-radius: 10px;
  padding: 13px 14px;
  transition: border-color .2s, background .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}
.form-field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
}
.form-field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23173024' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='1 1 6 6 11 1'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--forest-800);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(23,48,36,.10);
}
.btn-form-submit {
  align-self: flex-start;
  margin-top: 4px;
  padding-left: 36px;
  padding-right: 36px;
}
.form-note {
  margin: 4px 0 0;
  font-size: 13px;
  color: #6a7269;
  line-height: 1.55;
}

/* Compact directors block on the contact page.
   Small photos, modest type, two side-by-side cards. */
.contact-team {
  background: var(--cream);
  padding: clamp(36px, 5vw, 56px) var(--pad) clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--line-dark);
}
.contact-team-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.contact-team-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.05;
  letter-spacing: -.012em;
  font-variation-settings: "opsz" 144, "SOFT" 60;
  color: var(--forest-800);
  margin: 0 0 8px;
}
.contact-team-lede {
  margin: 0 auto 26px;
  font-size: 15px;
  line-height: 1.55;
  color: #3a463d;
  max-width: 480px;
}
.contact-team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: left;
}
.contact-team-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 16px 18px;
  color: var(--ink);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.contact-team-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15,31,23,.22);
  box-shadow: 0 12px 28px rgba(15,31,23,.10);
}
.contact-team-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex: none;
  display: block;
}
.contact-team-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.contact-team-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.1;
  color: var(--forest-800);
  letter-spacing: -.008em;
  font-variation-settings: "opsz" 144, "SOFT" 60;
}
.contact-team-role {
  font-family: var(--font-condensed);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 10.5px;
  color: var(--amber-600);
  margin-top: 1px;
}
.contact-team-blurb {
  font-size: 13.5px;
  line-height: 1.45;
  color: #3a463d;
  margin-top: 6px;
}
.contact-team-email {
  font-size: 13px;
  color: var(--amber-600);
  border-bottom: 1px solid var(--amber-600);
  align-self: start;
  width: fit-content;
  margin-top: 4px;
  transition: color .2s, border-color .2s;
}
.contact-team-card:hover .contact-team-email {
  color: var(--forest-800);
  border-color: var(--forest-800);
}

@media (max-width: 720px) {
  .contact-team-grid { grid-template-columns: 1fr; }
  .contact-team-card { grid-template-columns: 60px 1fr; gap: 14px; }
  .contact-team-photo { width: 60px; height: 60px; }
}

/* Form highlight pulse — triggered when an inquiry card pre-fills topic */
.form-section { scroll-margin-top: 24px; }
.form-section.is-highlighted .contact-form {
  box-shadow: 0 0 0 4px rgba(212,165,68,.55), 0 18px 50px rgba(15,31,23,.08);
  transition: box-shadow .35s ease;
}
.contact-form { transition: box-shadow .35s ease; }

/* Contact page responsive */
@media (max-width: 960px) {
  .inquiry-grid { grid-template-columns: repeat(2, 1fr); }

  .director,
  .director-left,
  .director-right {
    grid-template-columns: 1fr;
    padding: 0 var(--pad);
  }
  .director-left .director-image,
  .director-right .director-image {
    order: -1;
    min-height: clamp(220px, 50vw, 320px);
    margin-left: calc(var(--pad) * -1);
    margin-right: calc(var(--pad) * -1);
  }
  .director-right .director-text { order: 2; justify-self: stretch; }
  .director-left  .director-image-clip,
  .director-right .director-image-clip {
    clip-path: polygon(0 0, 100% 0, 100% 82%, 50% 100%, 0 82%);
  }

  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .inquiry-grid { grid-template-columns: 1fr; }
  .owner-details li { grid-template-columns: 1fr; gap: 4px; }
}

/* ----------------------------------------------------------------
   RACE LIST BAND
---------------------------------------------------------------- */
.race-list-band {
  background: var(--forest-50);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.race-list-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.race-list-inner a {
  padding: 20px 18px;
  text-align: center;
  border-right: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background .25s, color .25s;
}
.race-list-inner a:last-child { border-right: none; }
.race-list-inner a:hover {
  background: var(--forest-800);
  color: #fff;
}
.race-name {
  font-family: var(--font-condensed);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 18px;
  color: var(--forest-800);
}
.race-list-inner a:hover .race-name { color: var(--amber-500); }
.race-distance {
  font-size: 12.5px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
}
.race-list-inner a:hover .race-distance { color: rgba(255,255,255,.85); }

/* ----------------------------------------------------------------
   FOOTER
---------------------------------------------------------------- */
.footer {
  background: var(--forest-900);
  color: #d8dad3;
  padding: clamp(36px, 5vw, 56px) var(--pad) 22px;
}
.footer-top {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo img {
  height: 64px;
  width: auto;
}
.footer-nav {
  display: flex;
  gap: 32px;
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 14px;
  font-weight: 600;
}
.footer-nav a { transition: color .2s; }
.footer-nav a:hover { color: var(--amber-500); }

.footer-sponsors {
  max-width: var(--max);
  margin: 40px auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 28px 56px;
}
.sponsor-placeholder {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 13px;
  color: rgba(255,255,255,.55);
  padding: 14px 22px;
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 4px;
}

.footer-bottom {
  max-width: var(--max);
  margin: 22px auto 0;
  padding-top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p {
  margin: 0;
  font-size: 13px;
  opacity: .7;
  letter-spacing: .04em;
}
.footer-socials {
  display: flex;
  gap: 16px;
}
.footer-socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: inline-flex;
  align-items: center; justify-content: center;
  color: rgba(255,255,255,.85);
  transition: all .2s;
}
.footer-socials a:hover {
  background: var(--amber-500);
  color: var(--forest-900);
  border-color: var(--amber-500);
}

/* ----------------------------------------------------------------
   RESPONSIVE
---------------------------------------------------------------- */
@media (max-width: 960px) {
  .featured-strip { grid-template-columns: 1fr; }
  .featured-card { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .featured-card:last-child { border-bottom: none; }
  .race-list-inner a:nth-child(3n) { border-right: none; }

  .next-race-grid {
    grid-template-columns: 1fr;
    padding-left: var(--pad);
    padding-right: var(--pad);
    gap: 28px;
  }
  .next-race-text { text-align: left; max-width: none; }
  .next-race-image {
    order: -1;                    /* image on top when stacked */
    min-height: clamp(180px, 38vw, 260px);
    margin-right: calc(var(--pad) * -1);
    margin-left: calc(var(--pad) * -1);
  }
  .next-race-image-clip {
    /* Down-pointing arrow on mobile so it leads into the text */
    clip-path: polygon(0 0, 100% 0, 100% 82%, 50% 100%, 0 82%);
  }
}

@media (max-width: 720px) {
  .top-bar-tag { display: none; }
  .top-bar-inner { justify-content: center; }

  .header-inner {
    grid-template-columns: auto auto;
    gap: 14px;
  }
  .logo-link img { height: 46px; }
  .nav-links {
    order: 3;
    grid-column: 1 / -1;
    justify-content: center;
    gap: 22px;
    padding-top: 4px;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .header-cta { padding: 9px 16px; font-size: 12px; }

  .hero-content {
    padding-bottom: clamp(260px, 36vw, 320px);
  }
  .featured-strip {
    grid-template-columns: 1fr;
    padding: 0;
  }
  .featured-card {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.1);
    padding: 16px 22px;
  }

  .race-list-inner { grid-template-columns: repeat(2, 1fr); }
  .race-list-inner a {
    border-right: 1px solid var(--line-dark) !important;
    border-bottom: 1px solid var(--line-dark);
  }
  .race-list-inner a:nth-child(2n) { border-right: none !important; }

  .footer-top { flex-direction: column; text-align: center; }
}
