/* ============================================================
   CONNERWEDDELL.COM — design system
   Palette drawn from the #8 Seven Seas / Turner Mobile Marine
   Late Model Stock: royal blue, white, steel, night-track navy.
   ============================================================ */

:root {
  --navy-950: #05080f;
  --navy-900: #080d1b;
  --navy-850: #0b1226;
  --navy-800: #101a36;
  --navy-700: #17244d;
  --blue-700: #16337f;
  --blue-600: #1c44ad;
  --blue-500: #2b5fd9;
  --blue-400: #4f83f0;
  --blue-300: #8db1f8;
  --white: #ffffff;
  --paper: #eef2fa;
  --silver: #a9b4cb;
  --steel: #6b7690;
  --gold: #e8b84b;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55);
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --header-h: 76px;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--navy-950);
  color: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

::selection { background: var(--blue-500); color: #fff; }

/* ---------- type ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.94;
  letter-spacing: 0.01em;
}

.eyebrow {
  font-family: var(--font-cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 13px;
  color: var(--blue-300);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--blue-500);
  transform: skewX(-20deg);
}

.section-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(34px, 5.2vw, 62px);
  line-height: 0.96;
  margin: 14px 0 18px;
}

.section-title .thin { color: var(--steel); }

.lead {
  color: var(--silver);
  font-size: clamp(16px, 1.4vw, 19px);
  max-width: 62ch;
}

/* ---------- layout ---------- */

.container { width: min(1220px, calc(100% - 48px)); margin: 0 auto; }
.container.wide { width: min(1400px, calc(100% - 40px)); }

.section { padding: clamp(70px, 9vw, 130px) 0; position: relative; }
.section.tight { padding: clamp(50px, 6vw, 84px) 0; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}

/* grid items default to min-width:auto, which lets a wide child (e.g. a
   min-width table) force the column open instead of scrolling inside it */
.split > * { min-width: 0; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}

/* ---------- header / nav ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.scrolled {
  background: rgba(5, 8, 15, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 18px 40px rgba(0, 0, 0, 0.35);
}

.header-inner {
  width: min(1400px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

/* The mark is the car's own door/roof numeral (assets/logo-8.svg), matching the
   favicon. The tile's skew supplies the italic, so the SVG is drawn upright. */
.brand-number {
  background-image: url("../logo-8.svg"), linear-gradient(135deg, var(--blue-600), var(--blue-500));
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto 58%, cover;
  width: 46px;
  height: 46px;
  transform: skewX(-8deg);
  border-radius: 7px;
  box-shadow: 0 6px 18px rgba(43, 95, 217, 0.45);
  flex: none;
}

.brand-number span { display: none; }

.brand-name {
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 21px;
  line-height: 1.05;
  white-space: nowrap;
}

.brand-name small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.34em;
  color: var(--blue-300);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  list-style: none;
}

.nav-links a {
  font-family: var(--font-cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 14px;
  color: var(--silver);
  padding: 8px 2px;
  position: relative;
  transition: color 0.25s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 2px;
  background: var(--blue-400);
  transition: right 0.28s ease;
  transform: skewX(-20deg);
}

.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }

.nav-cta {
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  padding: 12px 22px;
  transform: skewX(-8deg);
  border-radius: 6px;
  transition: filter 0.25s, transform 0.25s;
  white-space: nowrap;
}

.nav-cta span { display: inline-block; transform: skewX(8deg); }
.nav-cta:hover { filter: brightness(1.15); transform: skewX(-8deg) translateY(-1px); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
  z-index: 130;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  margin: 6px auto;
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  /* the CTA rides inside the fullscreen menu rather than disappearing on mobile */
  .nav-cta {
    position: fixed;
    left: 50%;
    bottom: 12vh;
    transform: translateX(-50%) skewX(-8deg);
    z-index: 125;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    font-size: 16px;
    padding: 16px 30px;
  }
  body.nav-open .nav-cta { opacity: 1; pointer-events: auto; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 15, 0.97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 120;
  }
  .nav-links a { font-size: 30px; letter-spacing: 0.22em; padding: 12px; }
  body.nav-open .nav-links { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- buttons ---------- */

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.btn {
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 15px;
  display: inline-block;
  padding: 16px 34px;
  transform: skewX(-8deg);
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter 0.25s, transform 0.25s, background 0.25s, color 0.25s;
}

.btn > span { display: inline-block; transform: skewX(8deg); }

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-500) 100%);
  box-shadow: 0 14px 34px rgba(43, 95, 217, 0.35);
}

.btn.primary:hover { filter: brightness(1.15); transform: skewX(-8deg) translateY(-2px); }

.btn.ghost {
  color: #fff;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

.btn.ghost:hover { background: rgba(255, 255, 255, 0.09); transform: skewX(-8deg) translateY(-2px); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: max(640px, 92svh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; object-position: center; }

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, var(--navy-950) 4%, rgba(5, 8, 15, 0.55) 38%, rgba(5, 8, 15, 0.25) 62%, rgba(5, 8, 15, 0.55) 100%),
    linear-gradient(100deg, rgba(5, 8, 15, 0.82) 0%, rgba(5, 8, 15, 0.1) 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1400px, calc(100% - 48px));
  margin: 0 auto;
  padding: calc(var(--header-h) + 40px) 0 clamp(48px, 7vw, 90px);
}

.hero-kicker {
  font-family: var(--font-cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: clamp(12px, 1.3vw, 15px);
  color: var(--blue-300);
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(52px, 10.5vw, 140px);
  line-height: 0.9;
  letter-spacing: 0.005em;
  /* type carries its own contrast so the footage can stay bright behind it */
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 2px 18px rgba(5, 8, 15, 0.6);
}

.hero-title .accent {
  color: transparent;
  -webkit-text-stroke: 2.5px #ffffff;
  paint-order: stroke fill;
}

.hero-sub {
  margin-top: 20px;
  max-width: 56ch;
  color: #e6ebf5;
  font-size: clamp(16px, 1.5vw, 19px);
  text-shadow: 0 2px 14px rgba(5, 8, 15, 0.85), 0 1px 4px rgba(5, 8, 15, 0.75);
}

.hero-kicker { text-shadow: 0 2px 10px rgba(5, 8, 15, 0.8); }

.hero .btn-row { margin-top: 32px; }

.hero-stats {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  background: rgba(5, 8, 15, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* ---------- stat band ---------- */

.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-band .stat {
  padding: 26px 30px;
  border-left: 1px solid var(--line);
}

.stat-band .stat:first-child { border-left: 0; }

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  color: #fff;
}

.stat-num .unit { color: var(--blue-400); }

.stat-label {
  font-family: var(--font-cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  color: var(--steel);
  margin-top: 8px;
}

@media (max-width: 820px) {
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .stat-band .stat:nth-child(odd) { border-left: 0; }
  .stat-band .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- cards ---------- */

.card {
  background: linear-gradient(160deg, var(--navy-850), var(--navy-900));
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

.card-pad { padding: clamp(24px, 3vw, 40px); }

/* ---------- schedule ---------- */

.race-list { display: grid; gap: 14px; }

.race-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 20px 26px;
  background: linear-gradient(160deg, var(--navy-850), var(--navy-900));
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.25s, transform 0.25s;
}

.race-row:hover { border-color: rgba(79, 131, 240, 0.5); transform: translateX(4px); }

.race-row.next { border-color: rgba(79, 131, 240, 0.65); box-shadow: 0 0 0 1px rgba(79, 131, 240, 0.35), 0 18px 44px rgba(28, 68, 173, 0.25); }

.race-date {
  font-family: var(--font-cond);
  text-transform: uppercase;
  text-align: center;
  border-right: 1px solid var(--line);
  padding-right: 18px;
}

.race-date .m { font-size: 13px; letter-spacing: 0.3em; color: var(--blue-300); font-weight: 600; display: block; }
.race-date .d { font-family: var(--font-display); font-size: 34px; color: #fff; display: block; line-height: 1.1; }

.race-info h3 {
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 21px;
  color: #fff;
}

.race-info p {
  font-family: var(--font-cond);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 13px;
  color: var(--steel);
  margin-top: 3px;
}

.race-meta { text-align: right; }

.race-tag {
  display: inline-block;
  font-family: var(--font-cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--blue-300);
  border: 1px solid rgba(79, 131, 240, 0.4);
  border-radius: 100px;
  padding: 5px 13px;
}

.race-result {
  font-family: var(--font-display);
  font-size: 26px;
  color: #fff;
}

.race-result.win { color: var(--gold); }

@media (max-width: 700px) {
  .race-row { grid-template-columns: 84px 1fr; }
  .race-meta { grid-column: 1 / -1; text-align: left; border-top: 1px solid var(--line); padding-top: 12px; }
  .race-date { padding-right: 12px; }
  .race-date .d { font-size: 27px; }
}

/* ---------- tables ---------- */

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }

table.results {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: var(--navy-900);
}

table.results th {
  font-family: var(--font-cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--steel);
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

table.results td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
  color: var(--silver);
  white-space: nowrap;
}

table.results tr:last-child td { border-bottom: 0; }
table.results td.strong { color: #fff; font-weight: 600; }
table.results tr:hover td { background: rgba(79, 131, 240, 0.05); }

.pos {
  font-family: var(--font-display);
  font-size: 19px;
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 34px;
  padding: 0 8px;
  border-radius: 7px;
  background: var(--navy-700);
  color: #fff;
}

.pos.p1 { background: linear-gradient(135deg, #b8860b, var(--gold)); color: #191102; }
.pos.p2 { background: linear-gradient(135deg, #7e8aa4, #cdd6e6); color: #10141d; }
.pos.p3 { background: linear-gradient(135deg, #7a4a21, #b87333); color: #1c0f04; }
.pos.top5 { background: linear-gradient(135deg, var(--blue-700), var(--blue-500)); }

/* ---------- timeline (career) ---------- */

.timeline { position: relative; padding-left: 34px; }

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue-500), rgba(43, 95, 217, 0.05));
}

.tl-item { position: relative; padding: 0 0 46px 26px; }

.tl-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--navy-950);
  border: 3px solid var(--blue-500);
  box-shadow: 0 0 0 5px rgba(43, 95, 217, 0.18);
  margin-left: 8px;
}

.tl-years {
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 14px;
  color: var(--blue-300);
}

.tl-item h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(24px, 2.6vw, 34px);
  margin: 8px 0 10px;
}

.tl-item p { color: var(--silver); max-width: 70ch; }

.tl-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.badge {
  font-family: var(--font-cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 100px;
  border: 1px solid rgba(232, 184, 75, 0.45);
  color: var(--gold);
  background: rgba(232, 184, 75, 0.07);
}

.badge.blue { border-color: rgba(79, 131, 240, 0.45); color: var(--blue-300); background: rgba(79, 131, 240, 0.08); }

/* ---------- gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.gallery-grid a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  grid-column: span 4;
  aspect-ratio: 3 / 2;
}

.gallery-grid a.tall { aspect-ratio: 3 / 3.6; }
.gallery-grid a.wide { grid-column: span 8; }

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.gallery-grid a:hover img { transform: scale(1.05); }

@media (max-width: 860px) {
  .gallery-grid a, .gallery-grid a.wide { grid-column: span 6; }
}

@media (max-width: 560px) {
  .gallery-grid a, .gallery-grid a.wide { grid-column: span 12; }
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 6, 12, 0.94);
  display: none;
  place-items: center;
  padding: 4vmin;
}

.lightbox.open { display: grid; }
.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 10px; box-shadow: var(--shadow-lg); }

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
}

.lightbox-close:hover { opacity: 1; }

/* ---------- partners ---------- */

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.partner-card {
  background: linear-gradient(160deg, var(--navy-850), var(--navy-900));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 28px;
  transition: border-color 0.25s, transform 0.25s;
}

.partner-card:hover { border-color: rgba(79, 131, 240, 0.5); transform: translateY(-4px); }

.partner-card h3 {
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 20px;
  color: #fff;
}

.partner-card p { color: var(--steel); font-size: 15px; margin-top: 6px; }

@media (max-width: 860px) { .partner-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .partner-grid { grid-template-columns: 1fr; } }

/* ---------- photo sections ---------- */

.photo-panel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.photo-panel img { width: 100%; height: 100%; object-fit: cover; }

.photo-panel .credit {
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* full-bleed banner */
.banner {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.banner .banner-bg, .banner .banner-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.banner .banner-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 8, 15, 0.92) 8%, rgba(5, 8, 15, 0.45) 55%, rgba(5, 8, 15, 0.2) 100%);
}

.banner .container { position: relative; z-index: 2; }

/* ---------- misc ---------- */

.divider-slant {
  height: 6px;
  background: repeating-linear-gradient(-45deg, var(--blue-600) 0 18px, transparent 18px 36px);
  opacity: 0.5;
}

.checker {
  background-image:
    linear-gradient(45deg, rgba(255,255,255,0.05) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.05) 75%),
    linear-gradient(45deg, rgba(255,255,255,0.05) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.05) 75%);
  background-size: 28px 28px;
  background-position: 0 0, 14px 14px;
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* page hero (interior pages) */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(60px, 9vw, 110px)) 0 clamp(44px, 6vw, 80px);
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(28, 68, 173, 0.35), transparent 60%),
    linear-gradient(to bottom, var(--navy-900), var(--navy-950));
  border-bottom: 1px solid var(--line);
}

.page-hero .ghost-number {
  position: absolute;
  right: -1vw;
  top: 50%;
  transform: translateY(-46%);
  font-family: var(--font-display);
  font-size: clamp(220px, 34vw, 480px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.07);
  user-select: none;
  pointer-events: none;
}

.page-hero h1 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(42px, 7.5vw, 92px);
  line-height: 0.95;
  margin-top: 12px;
}

.page-hero .lead { margin-top: 16px; }

/* ---------- news ---------- */

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.news-card { display: flex; flex-direction: column; }

.news-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1); }
.news-card:hover .thumb img { transform: scale(1.06); }

.news-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.news-date {
  font-family: var(--font-cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  color: var(--blue-300);
}

.news-card h3 {
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 21px;
  line-height: 1.2;
  color: #fff;
}

.news-card p { color: var(--steel); font-size: 15px; }

@media (max-width: 860px) { .news-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--navy-900);
  position: relative;
  overflow: hidden;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  padding: clamp(50px, 7vw, 90px) 0 40px;
  position: relative;
  z-index: 1;
}

.footer-word {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 0.95;
}

.footer-word .accent { color: var(--blue-400); }

.footer-col h4 {
  font-family: var(--font-cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 13px;
  color: var(--steel);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col a { color: var(--silver); font-size: 15.5px; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 0 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: var(--steel);
  position: relative;
  z-index: 1;
}

.footer-ghost {
  position: absolute;
  right: -30px;
  bottom: -60px;
  font-family: var(--font-display);
  font-size: 340px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.045);
  pointer-events: none;
  user-select: none;
}

@media (max-width: 860px) { .footer-main { grid-template-columns: 1fr; } }

/* socials */
.socials { display: flex; gap: 12px; margin-top: 20px; }

.socials a {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.socials a:hover { background: var(--blue-600); border-color: var(--blue-500); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; fill: #fff; }

/* countdown */
.countdown { display: flex; gap: 18px; margin-top: 24px; }

.cd-cell { text-align: center; min-width: 74px; }

.cd-num {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 52px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 8px 6px;
  line-height: 1;
}

.cd-label {
  font-family: var(--font-cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
  color: var(--steel);
  margin-top: 8px;
}

/* ---------- hero video rotator ---------- */

.hero-media { position: absolute; inset: 0; overflow: hidden; }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-slide.active { opacity: 1; }

.hero-slide img, .hero-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* photos are shot tall; bias the crop toward the action. clips are pre-cropped to frame. */
.hero-slide img { object-position: center 38%; }
.hero-slide video { object-position: center center; }

/* Scrim is kept light so the footage reads bright; the left-hand wash carries
   just enough density to hold white type over a sunlit track. */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, var(--navy-950) 2%, rgba(5, 8, 15, 0.34) 26%, rgba(5, 8, 15, 0.04) 55%, rgba(5, 8, 15, 0.28) 88%, rgba(5, 8, 15, 0.62) 100%),
    linear-gradient(100deg, rgba(5, 8, 15, 0.74) 0%, rgba(5, 8, 15, 0.34) 40%, rgba(5, 8, 15, 0) 72%);
}

.hero-slide img, .hero-slide video { filter: brightness(1.1) saturate(1.04); }

.hero-credit {
  position: absolute;
  right: 18px;
  bottom: 14px;
  z-index: 3;
  font-family: var(--font-cond);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

/* vertical featured video (reel style) */
.reel-frame {
  aspect-ratio: 9 / 16;
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(43, 95, 217, 0.18);
  position: relative;
  background: #000;
}

.reel-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* quote */
.pull-quote {
  border-left: 4px solid var(--blue-500);
  padding: 6px 0 6px 26px;
  margin: 26px 0;
}

.pull-quote p {
  font-family: var(--font-cond);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.35;
  color: #fff;
}

.pull-quote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-family: var(--font-cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12.5px;
  color: var(--blue-300);
}

/* era cards (journey teaser) */
.era-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.era-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: flex-end;
  background: var(--navy-850);
}

.era-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: transform 0.6s cubic-bezier(0.2,0.6,0.2,1), opacity 0.4s; }
.era-card:hover img { transform: scale(1.06); opacity: 1; }

.era-card .era-label {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 18px;
  background: linear-gradient(to top, rgba(5,8,15,0.92), rgba(5,8,15,0.0));
}

.era-card .era-label .yrs {
  font-family: var(--font-cond);
  font-weight: 600;
  letter-spacing: 0.24em;
  font-size: 12px;
  color: var(--blue-300);
  text-transform: uppercase;
}

.era-card .era-label h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 21px;
  color: #fff;
  margin-top: 4px;
}

@media (max-width: 900px) { .era-grid { grid-template-columns: repeat(2, 1fr); } }

/* contact cards */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.contact-card {
  background: linear-gradient(160deg, var(--navy-850), var(--navy-900));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
}

.contact-card .role {
  font-family: var(--font-cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  color: var(--blue-300);
}

.contact-card h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 26px;
  margin: 8px 0 14px;
}

.contact-card a { color: var(--silver); display: block; margin-top: 6px; font-size: 15.5px; }
.contact-card a:hover { color: #fff; }

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* standings mini */
.standing-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.standing-row:last-child { border-bottom: 0; }
.standing-row.me { background: rgba(79, 131, 240, 0.1); border-radius: 8px; }
.standing-row .name { font-family: var(--font-cond); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 17px; color: #fff; }
.standing-row .pts { font-family: var(--font-display); font-size: 20px; color: var(--silver); }

/* season selector tabs */
.tab-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0; }

.tab-btn {
  font-family: var(--font-cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 14px;
  color: var(--silver);
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 10px 22px;
  cursor: pointer;
  transition: all 0.25s;
}

.tab-btn:hover { color: #fff; border-color: var(--blue-400); }
.tab-btn.active { color: #fff; background: linear-gradient(135deg, var(--blue-600), var(--blue-500)); border-color: transparent; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- partner logo tiles ---------- */

.partner-card.spotlight { display: flex; flex-direction: column; gap: 18px; }

.logo-plate {
  background: #fff;
  border-radius: 10px;
  height: 118px;
  display: grid;
  place-items: center;
  padding: 20px 24px;
  flex: none;
}

.logo-plate.dark {
  background: linear-gradient(160deg, #0d1526, #060a14);
  border: 1px solid var(--line-strong);
}

/* fixed content height + contain: percentage max-height does not resolve
   reliably for a centered grid item, which let square logos overflow. */
.logo-plate img {
  width: 100%;
  height: 78px;
  object-fit: contain;
}

.partner-card .partner-link {
  font-family: var(--font-cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 13px;
  color: var(--blue-300);
  margin-top: auto;
  padding-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.partner-card:hover .partner-link { color: #fff; }

/* logo wall (compact) */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.logo-wall a {
  background: #fff;
  border-radius: 10px;
  height: 104px;
  display: grid;
  place-items: center;
  padding: 18px 22px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.logo-wall a.dark {
  background: linear-gradient(160deg, #0d1526, #060a14);
  border: 1px solid var(--line-strong);
}

.logo-wall a:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); }
.logo-wall img { width: 100%; height: 68px; object-fit: contain; }

/* package cards */
.package-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.package-card {
  background: linear-gradient(160deg, var(--navy-850), var(--navy-900));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 26px;
  position: relative;
  overflow: hidden;
}

.package-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-400));
}

.package-card h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 25px;
  margin-bottom: 12px;
}

.package-card ul { list-style: none; display: grid; gap: 9px; }

.package-card li {
  color: var(--silver);
  font-size: 15px;
  padding-left: 20px;
  position: relative;
}

.package-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--blue-500);
  transform: skewX(-20deg);
}

@media (max-width: 1000px) { .package-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .package-grid { grid-template-columns: 1fr; } }

/* reach metrics */
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.metric {
  text-align: center;
  padding: 34px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(160deg, var(--navy-850), var(--navy-900));
}

.metric .m-num {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.5vw, 58px);
  line-height: 1;
  color: #fff;
}

.metric .m-num .unit { color: var(--blue-400); }

.metric .m-label {
  font-family: var(--font-cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12.5px;
  color: var(--steel);
  margin-top: 10px;
}

@media (max-width: 800px) { .metric-grid { grid-template-columns: 1fr; } }

/* two-up partner grid (causes) — collapses like the default grid */
.partner-grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .partner-grid.two { grid-template-columns: 1fr; } }

/* two-up news grid — collapses like the default grid */
.news-grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .news-grid.two { grid-template-columns: 1fr; } }
