:root {
  /* Palette: heritage premium, nudged toward the bright vermilion + cobalt of the race logo */
  --ink: #0c1f3d;          /* cobalt-leaning navy (was deep neutral navy) */
  --ink-2: #142b5c;         /* lifted cobalt */
  --paper: #ffffff;
  --cream: #f6f1e7;         /* warm off-white */
  --cream-2: #efe7d6;       /* slightly deeper cream divider */
  --red: #c4302a;           /* vermilion, closer to logo red */
  --red-deep: #9d201a;
  --blue: #1e3a8a;          /* cobalt accent — matches logo blue */
  --gold: #b08a3e;          /* heritage gold accent */
  --rule: #d9cfb9;          /* warm hairline */
  --rule-on-dark: rgba(255, 255, 255, 0.18);
  --muted: #54606b;
  --muted-on-dark: rgba(255, 255, 255, 0.72);

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  --serif: 'Fraunces', 'Iowan Old Style', 'Georgia', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background-color 240ms ease, border-color 240ms ease,
    box-shadow 240ms ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}
.site-header[data-elevated='true'] {
  background: rgba(13, 27, 42, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom-color: var(--rule-on-dark);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 76px;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  color: var(--paper);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  margin-right: auto;
}

.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
  background: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-text-line {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.005em;
  white-space: nowrap;
}
.brand-text-sub {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  margin-top: 0.2rem;
  white-space: nowrap;
}

.nav-list {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-list a {
  text-decoration: none;
  color: var(--paper);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 160ms ease;
}
.nav-list a:hover {
  opacity: 1;
}

@media (max-width: 880px) {
  .nav-list {
    display: none;
  }
}

@media (max-width: 520px) {
  .nav {
    min-height: 64px;
    gap: 0.75rem;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
  }
  .brand-text-line {
    font-size: 0.95rem;
  }
  .brand-text-sub {
    font-size: 0.6rem;
    letter-spacing: 0.16em;
  }
  .nav-cta {
    padding: 0.55rem 0.9rem;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.85rem 1.4rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, background-color 160ms ease,
    color 160ms ease, border-color 160ms ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn--primary {
  background: var(--red);
  color: var(--paper);
  border-color: var(--red);
}
.btn--primary:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn--ghost.btn--on-dark {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn--ghost.btn--on-dark:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.btn--lg {
  padding: 1.05rem 1.7rem;
  font-size: 0.9rem;
}
.btn--xl {
  padding: 1.25rem 2.2rem;
  font-size: 0.95rem;
}
.nav-cta {
  padding: 0.65rem 1.1rem;
  font-size: 0.78rem;
}

/* ---------- Typography helpers ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--red);
  margin: 0 0 1.5rem;
  white-space: nowrap;
}
@media (max-width: 520px) {
  .eyebrow {
    letter-spacing: 0.18em;
    white-space: normal;
  }
}
.eyebrow--on-dark {
  color: var(--gold);
}
.eyebrow-rule {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: currentColor;
}

.serif {
  font-family: var(--serif);
}

.display {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(3rem, 8.5vw, 6.5rem);
  line-height: 0.96;
  letter-spacing: -0.018em;
  margin: 0;
  color: var(--paper);
  font-variation-settings: 'opsz' 144;
}

.h-display {
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
  font-variation-settings: 'opsz' 96;
}

.lede {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 1.25rem;
  font-weight: 400;
}
.lede--on-dark {
  color: rgba(255, 255, 255, 0.92);
}

p {
  margin: 0 0 1.1rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  margin-top: -76px;
  padding-top: 76px;
  min-height: clamp(640px, 92vh, 880px);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-fallback {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      ellipse 110% 80% at 75% 18%,
      rgba(176, 138, 62, 0.22),
      transparent 60%
    ),
    radial-gradient(
      ellipse 90% 70% at 18% 85%,
      rgba(196, 48, 42, 0.28),
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 50% at 90% 70%,
      rgba(30, 58, 138, 0.32),
      transparent 70%
    ),
    linear-gradient(180deg, #0c1f3d 0%, #142b5c 55%, #091a36 100%);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      180deg,
      rgba(13, 27, 42, 0.55) 0%,
      rgba(13, 27, 42, 0.25) 30%,
      rgba(13, 27, 42, 0.7) 100%
    ),
    radial-gradient(
      ellipse 100% 60% at 50% 100%,
      rgba(13, 27, 42, 0.75),
      transparent 70%
    );
}

.hero-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(5rem, 8vw, 7rem);
  max-width: 980px;
  color: var(--paper);
}

.hero-tagline {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.86);
  margin: 1.75rem 0 0;
  max-width: 36ch;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 2.75rem 0 0;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--rule-on-dark);
  max-width: 760px;
}
.hero-meta > div + div {
  border-left: 1px solid var(--rule-on-dark);
  padding-left: 1.25rem;
}
.hero-meta > div {
  padding-right: 1rem;
}
.hero-meta dt {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  margin-bottom: 0.35rem;
  font-weight: 500;
}
.hero-meta dd {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--paper);
}

.meta-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 2px;
  transition: border-color 160ms ease, color 160ms ease;
}
.meta-link:hover {
  border-bottom-color: var(--gold);
  color: var(--gold);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

.hero-logo {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: max(2.5rem, calc((100vw - 1180px) / 2 + 2.5rem));
  transform: translateY(-46%);
  width: clamp(220px, 24vw, 320px);
  height: clamp(220px, 24vw, 320px);
  border-radius: 50%;
  object-fit: cover;
  background: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.04),
    0 35px 80px -25px rgba(0, 0, 0, 0.7),
    0 0 60px -10px rgba(196, 48, 42, 0.25);
  pointer-events: none;
}
@media (max-width: 1100px) {
  .hero-logo {
    display: none;
  }
}

.hero-stripe {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  height: 4px;
  z-index: 1;
}
.hero-stripe span {
  flex: 1;
}
.hero-stripe span:nth-child(1) {
  background: var(--red);
}
.hero-stripe span:nth-child(2) {
  background: var(--cream);
}
.hero-stripe span:nth-child(3) {
  background: var(--blue);
}

@media (max-width: 720px) {
  .hero-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1rem;
  }
  .hero-meta > div + div {
    border-left: none;
    padding-left: 0;
  }
  .hero-meta > div:nth-child(3) {
    border-top: 1px solid var(--rule-on-dark);
    padding-top: 1.25rem;
  }
  .hero-meta > div:nth-child(4) {
    border-top: 1px solid var(--rule-on-dark);
    padding-top: 1.25rem;
  }
}

/* ---------- Marquee strip ---------- */

.marquee {
  background: var(--ink);
  color: var(--paper);
  padding: 1.4rem 0;
  border-top: 1px solid var(--rule-on-dark);
}
.marquee-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  align-items: center;
}
.marquee-label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.2rem;
  font-weight: 600;
}
.marquee-value {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.02rem;
  margin: 0;
  color: var(--paper);
}
@media (max-width: 720px) {
  .marquee-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}
.section--paper {
  background: var(--paper);
}
.section--cream {
  background: var(--cream);
}
.section--ink {
  background: var(--ink);
  color: var(--paper);
}
.section--feature {
  background:
    linear-gradient(
      180deg,
      rgba(13, 27, 42, 0.96),
      rgba(13, 27, 42, 0.96)
    ),
    radial-gradient(
      ellipse 60% 80% at 80% 20%,
      rgba(176, 138, 62, 0.55),
      transparent 70%
    );
  color: var(--paper);
}

.section-head {
  max-width: 760px;
  margin-bottom: 3rem;
}

/* Two-column layout */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.two-col--align-center {
  align-items: center;
}
@media (max-width: 880px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
}

.col-head .h-display {
  margin-top: 0.5rem;
}

.bullets {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.bullets li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.55rem;
  font-size: 1rem;
}
.bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 0.7rem;
  height: 1px;
  background: var(--red);
}

/* ---------- Course section ---------- */

.stat-row {
  list-style: none;
  padding: 1.5rem 0 0;
  margin: 1.5rem 0 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  border-top: 1px solid var(--rule-on-dark);
}
.stat-row--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stat-row li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.stat-num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.85rem;
  line-height: 1;
  color: var(--paper);
  letter-spacing: -0.01em;
}
.stat-cap {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}
@media (max-width: 640px) {
  .stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.course-map {
  margin: 0;
}
.course-map img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--cream);
  border-radius: 4px;
  padding: 1.25rem;
  box-shadow: 0 22px 60px -28px rgba(0, 0, 0, 0.6);
}
.course-map figcaption {
  margin-top: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  text-align: center;
}

/* ---------- Schedule timeline ---------- */

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 820px;
}
.timeline li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
}
.timeline li:last-child {
  border-bottom: 1px solid var(--rule);
}
.timeline-time {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--red);
  letter-spacing: 0.01em;
}
.timeline h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
  letter-spacing: -0.005em;
}
.timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}
@media (max-width: 640px) {
  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* ---------- Cards (What's included) ---------- */

.cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--cream-2);
  padding: 1.75rem;
  border-radius: 4px;
  position: relative;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  opacity: 0.7;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -28px rgba(13, 27, 42, 0.35);
}
.card-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 0.85rem;
}
.card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0 0 0.65rem;
  line-height: 1.2;
}
.card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.55;
}
@media (max-width: 980px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

/* ---------- Logistics grid ---------- */

.logistics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 3rem;
}
.logistics-grid article {
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
.logistics-grid h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 0.6rem;
}
.logistics-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}
@media (max-width: 880px) {
  .logistics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .logistics-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- MCRRC feature section ---------- */

.muted-on-dark {
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Final CTA ---------- */

.section--cta {
  background: var(--cream);
  border-top: 1px solid var(--cream-2);
  border-bottom: 1px solid var(--cream-2);
}
.cta {
  text-align: center;
  max-width: 720px;
  padding-top: 1rem;
}
.cta-logo {
  display: block;
  width: 110px;
  height: 110px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper);
  border: 1px solid var(--cream-2);
  box-shadow: 0 18px 40px -22px rgba(13, 27, 42, 0.35);
}
.cta .eyebrow {
  justify-content: center;
}
.cta-headline {
  margin: 0 0 1.25rem;
}
.cta-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 2rem;
}
.cta-fine {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule-on-dark);
}
.footer-brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}
.footer-line {
  color: var(--muted-on-dark);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.55;
}
.footer-address {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-on-dark);
  padding-bottom: 1px;
  transition: border-color 160ms ease, color 160ms ease;
}
.footer-address:hover {
  border-bottom-color: var(--gold);
  color: var(--gold);
}
.footer-head {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 1rem;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li {
  margin-bottom: 0.5rem;
}
.site-footer a {
  color: var(--paper);
  text-decoration: none;
  font-size: 0.92rem;
  opacity: 0.82;
  transition: opacity 160ms ease;
}
.site-footer a:hover {
  opacity: 1;
}
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.78rem;
  color: var(--muted-on-dark);
}
.footer-base p {
  margin: 0;
}
.footer-meta {
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-base {
    flex-direction: column;
  }
}
