/* Fonts are stored locally so the header never jumps while they load */
@font-face { font-family: "Anton"; font-weight: 400; font-style: normal; font-display: block; src: url("fonts/anton-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: block; src: url("fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: block; src: url("fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: block; src: url("fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-style: normal; font-display: block; src: url("fonts/barlow-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: block; src: url("fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: block; src: url("fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: block; src: url("fonts/barlow-condensed-800.woff2") format("woff2"); }

:root {
  --red: #e0282e;
  --red-deep: #8e1b1f;
  --ink: #0e0e0f;
  --ink-2: #161618;
  --ink-3: #202023;
  --paper: #f6f4ef;
  --sand: #e9c58f;
  --muted: #a3a09a;
  --line: rgba(255, 255, 255, 0.09);
  --radius: 14px;
  --display: "Anton", Impact, sans-serif;
  --condensed: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--paper);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

h1, h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 0.95; letter-spacing: 0.01em; }
h3 { font-family: var(--condensed); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.1; }
.h-sm { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 0.8rem; }
.h-xs { font-size: 1.1rem; color: var(--muted); letter-spacing: 0.12em; margin: 1.6rem 0 0.8rem; }

.eyebrow {
  font-family: var(--condensed); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.2em; font-size: 0.85rem; color: var(--red); margin-bottom: 0.75rem;
}
.note { margin-top: 2rem; color: var(--muted); font-size: 0.95rem; }
.note a { color: var(--paper); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--condensed); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 1.05rem; text-decoration: none; text-align: center;
  color: #fff; background: var(--red); border: 2px solid var(--red);
  padding: 0.85rem 1.8rem; border-radius: 6px; cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px var(--red); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.3); }
.btn-ghost:hover { border-color: var(--paper); box-shadow: none; }
.btn-block { display: block; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 3px solid var(--red);
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   trap the full-screen mobile menu inside the header's 76px height */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(14, 14, 15, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; min-height: 76px; max-height: 76px; }
.logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.logo img { flex: none; width: 52px; height: 52px; border-radius: 50%; background: #fff; object-fit: contain; }
.logo-text { font-family: var(--display); font-size: 1.8rem; letter-spacing: 0.05em; }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a {
  font-family: var(--condensed); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  text-decoration: none; font-size: 0.98rem; color: #d9d6cf; position: relative; padding: 0.3rem 0;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--red); transition: width 0.25s;
}
.site-nav a:hover, .site-nav a.active { color: #fff; }
.site-nav a:hover::after, .site-nav a.active::after { width: 100%; }
.nav-fb { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink-3); }
.nav-fb::after { display: none; }
.nav-fb:hover { background: #1877f2; }
.nav-fb svg { width: 18px; height: 18px; }

.nav-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--paper); transition: 0.3s; }
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-open .nav-toggle span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: calc(100svh - 76px); display: flex; align-items: center; padding: 80px 0; overflow: hidden; }
.hero-photo {
  position: absolute; inset: 0;
  background: url("img/hero.jpg") center 70% / cover no-repeat;
  animation: drift 24s ease-in-out infinite alternate;
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14,14,15,0.95) 0%, rgba(14,14,15,0.78) 45%, rgba(14,14,15,0.2) 100%),
    linear-gradient(0deg, var(--ink) 0%, transparent 30%);
}
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.12) translateX(-1.5%); } }
.hero-content { position: relative; }
.hero h1 { font-size: clamp(2.2rem, 9.5vw, 6.6rem); margin-bottom: 1.6rem; max-width: 900px; }
.hero h1 span { color: var(--red); }
.hero-lead { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 560px; color: #e4e1da; }
.hero-lead strong { color: #fff; }
.hero-tagline { font-family: var(--condensed); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.25rem; color: var(--sand); margin: 0.8rem 0 1.6rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.2rem; }
.hero-points li {
  font-family: var(--condensed); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.45rem 0.95rem 0.45rem 2rem; border-radius: 999px; position: relative;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15); backdrop-filter: blur(6px);
}
.hero-points li::before {
  content: ""; position: absolute; left: 0.8rem; top: 50%; width: 10px; height: 10px; margin-top: -5px;
  border-radius: 2px;
  background: conic-gradient(#fff 25%, #111 0 50%, #fff 0 75%, #111 0) 0 0 / 5px 5px;
}

/* Next race band */
.next-race-band { background: var(--red); color: #fff; }
.next-race { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding: 1.6rem 0; }
.next-race-label { font-family: var(--condensed); font-weight: 800; text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.85rem; opacity: 0.85; }
.next-race-title { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.05; }
.next-race-when { font-family: var(--condensed); font-weight: 700; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.04em; }
.countdown { display: flex; gap: 0.5rem; }
.cd-unit { display: flex; flex-direction: column; align-items: center; min-width: 4.2rem; padding: 0.55rem 0.4rem; background: rgba(0, 0, 0, 0.22); border-radius: 10px; }
.cd-num { font-family: var(--display); font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1; font-variant-numeric: tabular-nums; }
.cd-label { font-family: var(--condensed); font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; opacity: 0.85; margin-top: 0.25rem; }
.cd-now { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.6rem, 4vw, 2.2rem); }
@media (max-width: 520px) { .countdown { width: 100%; } .cd-unit { flex: 1; min-width: 0; } }
.next-race .btn { background: var(--ink); border-color: var(--ink); }
.next-race .btn:hover { box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.7); }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; padding: 84px 0 64px; border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, var(--ink) 30%, rgba(14,14,15,0.7)),
    url("img/hero.jpg") center 75% / cover;
}
.page-hero::after {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 120px;
  background: conic-gradient(rgba(255,255,255,0.12) 25%, transparent 0 50%, rgba(255,255,255,0.12) 0 75%, transparent 0) 0 0 / 40px 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000);
  mask-image: linear-gradient(90deg, transparent, #000);
}
.page-hero h1 { font-size: clamp(2.4rem, 9vw, 5.2rem); overflow-wrap: anywhere; }
.page-lead { color: #d6d3cc; font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 620px; margin-top: 0.9rem; }

.section { padding: clamp(56px, 8vw, 96px) 0; }

/* ---------- Schedule ---------- */
.schedule-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 3rem; align-items: start; }
.next-feature {
  padding: 1.6rem; border-radius: 14px; border: 1px solid var(--red);
  background: linear-gradient(135deg, rgba(224, 40, 46, 0.22), var(--ink-2) 65%);
  box-shadow: 0 24px 60px -34px var(--red);
}
.next-feature .next-race-label { color: var(--red); }
.next-feature-main { display: grid; grid-template-columns: 90px 1fr; gap: 1.2rem; align-items: center; margin: 0.8rem 0 1.2rem; }
.next-feature-main .race-date .day { font-size: 3rem; }
.next-feature h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.05; }
.next-feature-when { font-family: var(--condensed); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.04em; margin: 0.2rem 0; }
.next-feature .cd-unit { background: var(--ink-3); }
.next-feature .cd-label { color: var(--muted); opacity: 1; }
.season-heading { font-size: 1.3rem; margin: 2.2rem 0 1rem; color: var(--muted); letter-spacing: 0.06em; }
.race-list { display: grid; gap: 0.8rem; }
.race {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 1.4rem; align-items: center;
  background: var(--ink-2); border: 1px solid var(--line); border-left: 4px solid var(--red);
  border-radius: 10px; padding: 1.1rem 1.4rem; transition: transform 0.2s, background 0.2s;
}
.race:hover { transform: translateX(4px); background: var(--ink-3); }
.race-date { text-align: center; line-height: 1; }
.race-date .day { display: block; font-family: var(--display); font-size: 2.3rem; }
.race-date .mon { display: block; font-family: var(--condensed); font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--red); margin-top: 0.3rem; }
.race h3 { font-size: 1.4rem; }
.race-where { color: var(--muted); }
.race-time { font-family: var(--condensed); font-weight: 700; letter-spacing: 0.04em; color: var(--sand); }
.race-time::before { content: "🕘 "; }
.race-extras { margin-top: 0.4rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.race-extras li { font-size: 0.85rem; padding: 0.15rem 0.6rem; border-radius: 4px; background: var(--ink-3); color: #d6d3cc; }
.tag {
  font-family: var(--condensed); font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem;
  padding: 0.3rem 0.7rem; border-radius: 4px; white-space: nowrap;
}
.tag-next { background: var(--red); color: #fff; }
.tag-live { background: var(--sand); color: var(--ink); }
.tag-new { color: var(--red); border: 1px solid var(--red); }
.tag-done { color: var(--muted); border: 1px solid var(--line); }
.race.is-past { opacity: 0.45; border-left-color: var(--ink-3); }
.race.is-next { background: linear-gradient(90deg, rgba(224, 40, 46, 0.18), var(--ink-2) 60%); box-shadow: 0 20px 50px -30px var(--red); }
.poster { position: sticky; top: 100px; display: grid; gap: 1rem; }
.poster img { border-radius: var(--radius); box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.8); transition: transform 0.3s; }
.poster a:hover img { transform: scale(1.02); }

/* ---------- Forms ---------- */
.doc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.doc {
  display: flex; flex-direction: column; text-decoration: none; overflow: hidden;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.doc:hover { border-color: var(--red); transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(224, 40, 46, 0.7); }
.doc-photo { position: relative; display: block; aspect-ratio: 16 / 8; overflow: hidden; background: var(--ink-3); }
.doc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.doc:hover .doc-photo img { transform: scale(1.05); }
.doc-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(22, 22, 24, 0.85), transparent 55%); }
.doc-badge {
  position: absolute; left: 1.2rem; bottom: 1rem; z-index: 1;
  font-family: var(--condensed); font-weight: 800; letter-spacing: 0.12em; font-size: 0.8rem;
  padding: 0.25rem 0.6rem; border-radius: 4px; background: var(--red); color: #fff;
}
.doc-body { flex: 1; padding: 1.1rem 1.4rem 0.4rem; }
.doc h2 { font-family: var(--condensed); font-weight: 700; font-size: 1.45rem; letter-spacing: 0.02em; line-height: 1.15; }
.doc p { color: var(--muted); font-size: 0.95rem; margin-top: 0.2rem; }
.doc-dl { padding: 0.6rem 1.4rem 1.3rem; font-family: var(--condensed); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.95rem; color: var(--red); }
.callout {
  margin-top: 2rem; padding: 1.2rem 1.4rem; border-radius: 10px;
  background: rgba(233, 197, 143, 0.1); border: 1px solid rgba(233, 197, 143, 0.35); color: var(--sand);
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.contact-cards { display: grid; gap: 1rem; }
.contact-card {
  display: grid; gap: 0.2rem; text-decoration: none; padding: 1.6rem;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.2s;
}
.contact-card:hover { border-color: var(--red); }
.contact-label { font-family: var(--condensed); font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.8rem; color: var(--red); }
.contact-value { font-size: 1.25rem; font-weight: 600; overflow-wrap: anywhere; }
.contact-form { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; display: grid; gap: 1.1rem; }
.contact-form label { display: grid; gap: 0.4rem; font-family: var(--condensed); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: 400 1rem var(--body); color: var(--paper); background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 8px; padding: 0.8rem 0.9rem; transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--red); }
.contact-form textarea { resize: vertical; }
.contact-form .btn { justify-self: start; }
.contact-form .btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.form-status:empty { display: none; }
.form-status { padding: 0.9rem 1rem; border-radius: 8px; font-size: 0.98rem; }
.form-status.is-ok { background: rgba(61, 220, 74, 0.12); border: 1px solid rgba(61, 220, 74, 0.4); color: #8ff09a; }
.form-status.is-error { background: rgba(224, 40, 46, 0.12); border: 1px solid rgba(224, 40, 46, 0.45); color: #ff9b9e; }
.form-status a { color: inherit; }

/* ---------- Sponsorship ---------- */
.overview { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; margin-bottom: 3.5rem; }
.overview p { color: #d6d3cc; }
.class-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.class-chips li { font-family: var(--condensed); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.35rem 0.8rem; border-radius: 4px; background: var(--ink-3); border: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.stats li { background: var(--ink-2); padding: 1.4rem; }
.stats strong { display: block; font-family: var(--display); font-weight: 400; font-size: 2.8rem; line-height: 1; color: var(--red); }
.stats span { font-family: var(--condensed); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; color: var(--muted); }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: center; }
.tier { position: relative; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem 1.8rem; }
.tier h2 { font-family: var(--condensed); font-weight: 800; font-size: 1.2rem; letter-spacing: 0.15em; }
.tier.bronze h2 { color: #d79a5b; }
.tier.silver h2 { color: #c9d1d9; }
.tier.gold h2 { color: #f2c94c; }
.price { font-family: var(--display); font-size: 3.4rem; line-height: 1.1; margin: 0.4rem 0 1.4rem; }
.tier ul { display: grid; gap: 0.7rem; }
.tier li { padding-left: 1.7rem; position: relative; color: #d6d3cc; font-size: 0.98rem; }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.tier.featured { padding: 3rem 1.8rem; border: 2px solid #f2c94c; background: linear-gradient(170deg, rgba(242, 201, 76, 0.1), var(--ink-2) 50%); box-shadow: 0 30px 80px -30px rgba(242, 201, 76, 0.3); }
.donation {
  margin-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.8rem;
}
.donation h2 span { font-family: var(--condensed); font-weight: 700; font-size: 1rem; letter-spacing: 0.1em; color: var(--red); vertical-align: middle; margin-left: 0.4rem; }
.donation p { color: var(--muted); max-width: 640px; }

/* ---------- Gallery ---------- */
.gallery-item { display: block; position: relative; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--ink-2); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s, filter 0.4s; filter: saturate(0.9); }
.gallery-item:hover img { transform: scale(1.06); filter: saturate(1.1); }

.gallery-feature { aspect-ratio: 2 / 1; border-radius: var(--radius); box-shadow: 0 30px 80px -40px rgba(224, 40, 46, 0.6); }
.gallery-feature img { filter: none; }
.gallery-feature:hover img { transform: scale(1.03); filter: none; }
.gallery-feature::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(14, 14, 15, 0.75) 0%, transparent 45%);
}
.feature-label {
  position: absolute; left: clamp(14px, 3vw, 32px); bottom: clamp(14px, 3vw, 28px); z-index: 1;
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--display); text-transform: uppercase; font-size: clamp(1.4rem, 4vw, 2.6rem); line-height: 1; color: #fff;
  padding: 0.5rem 1rem 0.5rem 0.8rem; background: var(--red); border-radius: 6px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
}
.feature-crown { font-size: 0.8em; }
.feature-num { color: var(--ink); }

.gallery-heading { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 3rem 0 1.2rem; }
.gallery-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 3rem 0 1.2rem; }
.gallery-top .gallery-heading { margin: 0; }
.gallery-filter { display: inline-flex; gap: 0.3rem; padding: 0.3rem; border-radius: 999px; background: var(--ink-2); border: 1px solid var(--line); }
.gallery-filter button {
  padding: 0.5rem 1.1rem; border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer;
  font-family: var(--condensed); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.9rem;
}
.gallery-filter button:hover { color: #fff; }
.gallery-filter button[aria-pressed="true"] { background: var(--red); color: #fff; }
.gallery-grid li[hidden], .gallery-feature[hidden] { display: none; }
.gallery-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-item.is-video { cursor: pointer; }
.video-badge {
  position: absolute; left: 10px; bottom: 10px; display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 50%; background: rgba(224, 40, 46, 0.92); color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.video-sound { position: absolute; right: 10px; bottom: 10px; font-size: 1.1rem; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)); }
.gallery-empty { text-align: center; padding: 3rem 1.5rem; border: 1px dashed var(--line); border-radius: 14px; background: var(--ink-2); color: var(--muted); }
.gallery-empty[hidden] { display: none; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); grid-auto-flow: dense; gap: 0.8rem; }
.gallery-grid .wide { grid-column: span 2; grid-row: span 2; }
.gallery-grid .tall { grid-row: span 2; }
.gallery-grid .wide .gallery-item, .gallery-grid .tall .gallery-item { aspect-ratio: auto; height: 100%; }
.gallery-grid .tall img { object-position: 50% 62%; }

.got-photos {
  position: relative; overflow: hidden; margin-top: 3rem;
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.6rem; align-items: center;
  padding: 2rem 2.2rem; border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(224, 40, 46, 0.22), var(--ink-2) 55%);
  border: 1px solid rgba(224, 40, 46, 0.45);
}
.got-photos::before {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 90px; pointer-events: none;
  background: conic-gradient(rgba(255,255,255,0.08) 25%, transparent 0 50%, rgba(255,255,255,0.08) 0 75%, transparent 0) 0 0 / 30px 30px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000);
}
.got-photos-icon {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 2.4rem;
  background: var(--ink); border: 3px solid var(--red); transform: rotate(-8deg);
}
.got-photos h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 0.6rem; }
.got-photos h2 span { color: var(--red); display: block; font-size: 0.62em; margin-top: 0.2rem; }
.got-photos-body p { color: #d6d3cc; max-width: 640px; }
.got-photos-body strong { color: #fff; }
.got-photos-tagline { font-family: var(--condensed); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--sand) !important; margin-top: 0.7rem; }
.got-photos-tags { font-family: var(--condensed); font-weight: 700; font-size: 0.92rem; letter-spacing: 0.03em; color: var(--muted) !important; margin-top: 0.4rem; word-spacing: 0.4em; }
.got-photos-btn { position: relative; display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.got-photos-btn svg { width: 20px; height: 20px; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, 0.92); display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1200px, 100%); max-height: 88vh; min-width: min(420px, 100%); object-fit: contain; border-radius: 10px; }
.lightbox video { width: min(1200px, 100%); max-height: 88vh; aspect-ratio: 16 / 9; border-radius: 10px; background: #000; }
.lightbox [hidden] { display: none; }
.lightbox-close { position: absolute; top: 16px; right: 20px; background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; line-height: 1; }

/* ---------- Footer ---------- */
.sponsors { padding: 3.5rem 0 3rem; text-align: center; background: var(--ink-2); border-top: 1px solid var(--line); }
.sponsor-logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin-top: 1.2rem; }
.sponsor-logos li { background: #fff; border-radius: 10px; height: 96px; display: flex; align-items: center; justify-content: center; padding: 0.8rem; transition: transform 0.2s; }
.sponsor-logos li:has(a):hover { transform: translateY(-3px); box-shadow: 0 10px 24px -10px rgba(224, 40, 46, 0.7); }
.sponsor-logos a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.sponsor-logos img { max-height: 60px; } .sponsor-logos img[src*="preppro"] { max-height: 74px; } .sponsor-logos img { max-width: 88%; width: auto; height: auto; object-fit: contain; }
.sponsor-cta { display: inline-block; margin-top: 1.4rem; font-family: var(--condensed); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); text-decoration: none; }
.sponsor-cta:hover { color: var(--red); }
.checker-band { height: 24px; background: conic-gradient(#fff 25%, #111 0 50%, #fff 0 75%, #111 0) 0 0 / 24px 24px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.8rem 0; color: var(--muted); font-size: 0.92rem; }
.footer-fb { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.footer-fb svg { width: 18px; height: 18px; }
.footer-fb:hover { color: #fff; }
.site-credit { text-align: center; font-size: 0.7rem; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.22); padding: 0 16px 1.1rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .site-nav { gap: 1.1rem; }
  .site-nav a { font-size: 0.9rem; }
}

@media (max-width: 980px) {
  .nav-toggle { display: block; z-index: 2; }
  .site-nav {
    position: fixed; inset: 0; height: 100vh; height: 100dvh; flex-direction: column; justify-content: center; gap: 1.4rem;
    background: var(--ink); opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
  }
  .site-nav a { font-size: 1.6rem; }
  .nav-open .site-nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }

  .schedule-layout, .contact-grid, .overview { grid-template-columns: 1fr; }
  .poster { position: static; max-width: 420px; }
  .tiers { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .tier.featured { order: -1; }
  .sponsor-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .got-photos { grid-template-columns: 1fr; gap: 1rem; }
  .got-photos-btn { justify-self: start; }
}

@media (max-width: 640px) {
  .hero { min-height: auto; padding: 64px 0 56px; }
  .hero-photo::after { background: linear-gradient(0deg, rgba(14,14,15,0.95) 20%, rgba(14,14,15,0.6)); }
  .doc-list { grid-template-columns: 1fr; }
  .race { grid-template-columns: 64px 1fr; gap: 1rem; padding: 1rem; }
  .race .tag { grid-column: 2; justify-self: start; }
  .sponsor-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-form { padding: 1.4rem; }
  .page-hero::after { display: none; }
  .gallery-feature { aspect-ratio: 4 / 3.4; }
  .gallery-feature img { object-position: 58% 50%; }
  .feature-label { font-size: 1.15rem; padding: 0.4rem 0.7rem 0.4rem 0.6rem; gap: 0.35rem; }
  .got-photos { padding: 1.5rem; }
  .got-photos-icon { width: 64px; height: 64px; font-size: 1.8rem; }
}

/* ---------- Newsletter ---------- */
.newsletter { max-width: 760px; }
.nl-head { padding-bottom: 1.4rem; margin-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.nl-meta { font-family: var(--condensed); font-weight: 800; text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.85rem; color: var(--red); }
.nl-issue { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; margin: 0.3rem 0 0.8rem; }
.nl-intro { font-size: 1.15rem; color: #d6d3cc; }
.nl-download {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.1rem 1.3rem; margin-bottom: 2.2rem; border-radius: 12px; border: 1px solid var(--line); background: var(--ink-2);
  text-decoration: none; color: inherit;
}
.nl-download:hover { border-color: var(--red); }
.nl-download-sub { color: var(--muted); font-size: 0.95rem; }
.nl-section { margin-bottom: 2.2rem; }
.nl-section h2 { font-size: 1.6rem; margin-bottom: 0.7rem; }
.nl-section p { margin-bottom: 0.9rem; color: #d6d3cc; line-height: 1.7; }
.nl-section h2 { padding-bottom: 0.5rem; border-bottom: 3px solid var(--red); display: inline-block; }
.nl-section h3 { font-family: var(--condensed); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.15rem; color: var(--sand); margin: 1.4rem 0 0.5rem; }
.nl-section strong { color: #fff; }
.nl-section a { color: #fff; }
.nl-list, .nl-checklist { display: grid; gap: 0.45rem; margin-bottom: 1rem; }
.nl-list li { padding: 0.6rem 0.9rem; border-radius: 8px; background: var(--ink-2); color: #d6d3cc; }
.nl-checklist li { color: #d6d3cc; padding-left: 1.8rem; position: relative; }
.nl-checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 800; }
.nl-empty { text-align: center; padding: 3rem 1.5rem; border: 1px dashed var(--line); border-radius: 14px; background: var(--ink-2); }
.nl-empty h2 { font-size: 1.8rem; margin-bottom: 0.6rem; }
.nl-empty p { color: var(--muted); }
.nl-empty a { color: #fff; }
.nl-past { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.nl-past h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.nl-past-list { display: grid; gap: 0.7rem; }
.nl-past-card {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.2rem 1rem;
  padding: 1rem 1.2rem; border-radius: 12px; border: 1px solid var(--line); background: var(--ink-2);
  text-decoration: none; color: inherit; transition: border-color 0.2s, transform 0.2s;
}
.nl-past-card:hover { border-color: var(--red); transform: translateX(4px); }
.nl-past-card .nl-meta { grid-column: 1; }
.nl-past-title { grid-column: 1; font-family: var(--display); text-transform: uppercase; font-size: 1.3rem; }
.nl-past-read { grid-column: 2; grid-row: 1 / span 2; font-family: var(--condensed); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--red); }
.nl-back { display: inline-block; margin-bottom: 1rem; font-family: var(--condensed); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); text-decoration: none; }
.nl-back:hover { color: #fff; }
.nl-archived { margin-bottom: 1.4rem; padding: 0.7rem 1rem; border-radius: 8px; background: var(--ink-2); border-left: 3px solid var(--sand); color: #d6d3cc; }
@media (max-width: 520px) { .nl-past-read { grid-column: 1; grid-row: auto; } }

/* ---------- Season champions ---------- */
.champs { border-top: 1px solid var(--line); background: radial-gradient(ellipse at top, rgba(233, 197, 143, 0.08), transparent 60%); }
.champs-title { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0.3rem 0 0.6rem; }
.champs-lead { color: var(--muted); max-width: 640px; margin-bottom: 2rem; }
.champ-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; margin-bottom: 2rem; }
.champ-card { padding: 1.2rem 1.3rem; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); }
.champ-card h3 { font-size: 1.3rem; margin-bottom: 0.8rem; }
.champ-podium { display: grid; gap: 0.45rem; }
.champ-podium li { display: grid; grid-template-columns: 3.2rem 1fr auto; align-items: center; gap: 0.2rem 0.6rem; padding: 0.5rem 0.7rem; border-radius: 8px; background: var(--ink-3); }
.champ-place { font-family: var(--condensed); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; text-align: center; padding: 0.15rem 0.4rem; border-radius: 6px; color: var(--ink); }
.champ-gold .champ-place { background: #e8c35a; }
.champ-silver .champ-place { background: #c9ccd1; }
.champ-bronze .champ-place { background: #c98a5a; }
.champ-podium .champ-gold { border: 1px solid rgba(232, 195, 90, 0.5); background: linear-gradient(90deg, rgba(232, 195, 90, 0.16), var(--ink-3) 70%); }
.champ-name { font-weight: 600; }
.champ-num { font-family: var(--display); color: var(--red); }

.champs-gallery { margin-bottom: 3rem; }
.champs-gallery .gallery-heading { margin-top: 0.3rem; }
.champ-classes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 2rem 1.6rem; }
.champ-class { padding: 1.1rem; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); }
.champ-class h3 { font-size: 1.4rem; margin-bottom: 0.8rem; }
.champ-shots { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 0.8rem; align-items: end; }
.champ-shot { margin: 0; }
.champ-shot .gallery-item, .champ-photo-empty { aspect-ratio: 1; }
.champ-gold .gallery-item, .champ-gold .champ-photo-empty { aspect-ratio: 1 / 1.12; box-shadow: 0 0 0 3px #e8c35a, 0 20px 50px -25px #e8c35a; }
.champ-silver .gallery-item, .champ-silver .champ-photo-empty { box-shadow: 0 0 0 2px #c9ccd1; }
.champ-bronze .gallery-item, .champ-bronze .champ-photo-empty { box-shadow: 0 0 0 2px #c98a5a; }
.champ-photo-empty { font-size: clamp(1.3rem, 3vw, 2rem) !important; }
.champ-photo-empty { display: grid; place-items: center; border-radius: 10px; background: var(--ink-3); font-family: var(--display); font-size: clamp(1.6rem, 5vw, 3rem); color: var(--muted); }
.champ-shot figcaption { margin-top: 0.55rem; display: flex; align-items: center; gap: 0.4rem; font-weight: 600; flex-wrap: wrap; font-size: 0.92rem; line-height: 1.2; }
@media (max-width: 520px) { .champ-shots { grid-template-columns: 1fr 1fr; } .champ-shots .champ-gold { grid-column: 1 / -1; } }
.champs[hidden], .champs-gallery[hidden] { display: none; }
.champ-pts { grid-column: 2 / -1; font-size: 0.85rem; color: var(--sand); font-family: var(--condensed); font-weight: 700; letter-spacing: 0.03em; }
.champ-gap { color: var(--muted); font-weight: 600; }
.champ-gap::before { content: "· "; }
.champ-shot figcaption .champ-pts { flex-basis: 100%; }
.event-gallery { margin-top: 3rem; }
.event-gallery .gallery-heading { margin: 0.3rem 0 0.3rem; }
.photo-credit { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.2rem; }
.photo-credit a { color: var(--muted); text-decoration: none; } .photo-credit strong { color: #fff; }
.photo-credit a:hover { color: var(--red); }

/* ---------- Phone-friendly extras ---------- */
html { scroll-padding-top: 90px; }
.race-list .race[hidden] { display: none; }
.show-done {
  display: block; width: 100%; margin-bottom: 0.8rem; padding: 0.8rem 1rem; border-radius: 10px; cursor: pointer;
  background: var(--ink-2); border: 1px dashed var(--line); color: var(--muted);
  font-family: var(--condensed); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.95rem;
}
.show-done:hover, .show-done.is-open { color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.gallery-jump { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.gallery-jump a {
  padding: 0.55rem 1rem; border-radius: 999px; background: var(--ink-2); border: 1px solid var(--line); color: #fff; text-decoration: none;
  font-family: var(--condensed); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.9rem;
}
.gallery-jump a:hover { border-color: var(--red); color: var(--red); }
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 50; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--red); color: #fff; text-decoration: none; font-size: 1.4rem; font-weight: 800;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.7); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity 0.2s, transform 0.2s;
}
.to-top.is-shown { opacity: 1; pointer-events: auto; transform: none; }
.sponsor-logos { display: flex !important; flex-wrap: wrap; justify-content: center; }
.sponsor-logos li { flex: 0 1 calc((100% - 4rem) / 5); min-width: 0; }
@media (max-width: 980px) { .sponsor-logos li { flex-basis: calc((100% - 2rem) / 3); } }
@media (max-width: 640px) { .sponsor-logos li { flex-basis: calc((100% - 1rem) / 2); } }

/* ---------- Phone-friendly extras ---------- */
html { scroll-padding-top: 90px; }
.race-list .race[hidden] { display: none; }
.show-done {
  display: block; width: 100%; margin-bottom: 0.8rem; padding: 0.8rem 1rem; border-radius: 10px; cursor: pointer;
  background: var(--ink-2); border: 1px dashed var(--line); color: var(--muted);
  font-family: var(--condensed); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.95rem;
}
.show-done:hover, .show-done.is-open { color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.gallery-jump { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.gallery-jump a {
  padding: 0.55rem 1rem; border-radius: 999px; background: var(--ink-2); border: 1px solid var(--line); color: #fff; text-decoration: none;
  font-family: var(--condensed); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.9rem;
}
.gallery-jump a:hover { border-color: var(--red); color: var(--red); }
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 50; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--red); color: #fff; text-decoration: none; font-size: 1.4rem; font-weight: 800;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.7); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity 0.2s, transform 0.2s;
}
.to-top.is-shown { opacity: 1; pointer-events: auto; transform: none; }
.sponsor-logos { display: flex; flex-wrap: wrap; justify-content: center; }
.sponsor-logos li { flex: 0 1 calc((100% - 4rem) / 5); min-width: 0; }
@media (max-width: 980px) { .sponsor-logos li { flex-basis: calc((100% - 2rem) / 3); } }
@media (max-width: 640px) { .sponsor-logos li { flex-basis: calc((100% - 1rem) / 2); } }
.times-note { margin-bottom: 1.2rem; padding: 0.75rem 1rem; border-radius: 10px; background: rgba(233, 197, 143, 0.08); border: 1px solid rgba(233, 197, 143, 0.3); color: #d6d3cc; font-size: 0.95rem; }
.times-note strong { color: var(--sand); }
.demo-bar { padding: 0.45rem 16px; text-align: center; background: var(--sand); color: var(--ink); font-size: 0.85rem; line-height: 1.35; }
.demo-bar strong { font-weight: 800; }
.demo-bar summary { cursor: pointer; list-style: none; }
.demo-bar summary::-webkit-details-marker { display: none; }
.demo-more { display: inline-block; margin-left: 0.3rem; text-decoration: underline; font-weight: 700; white-space: nowrap; }
.demo-more::after { content: " ▾"; }
.demo-bar[open] .demo-more::after { content: " ▴"; }
.demo-bar ul { max-width: 520px; margin: 0.5rem auto 0.2rem; padding: 0; list-style: none; text-align: left; display: grid; gap: 0.3rem; }
.demo-bar li { padding: 0.45rem 0.7rem 0.45rem 1.9rem; border-radius: 8px; background: rgba(14, 14, 15, 0.1); position: relative; }
.demo-bar li::before { content: "☐"; position: absolute; left: 0.65rem; }
