:root {
  color-scheme: dark;
  --ink: #f4f7f2;
  --muted: #a8b0aa;
  --paper: #090b0a;
  --panel: #111512;
  --panel-2: #181d19;
  --line: #2b332c;
  --green: #98ff19;
  --green-soft: #c3ff7b;
  --black: #050605;
  --warning: #ffd84d;
  --danger: #ff7468;
  --radius: 1.25rem;
  --max: 1180px;
  --shadow: 0 24px 80px rgb(0 0 0 / 36%);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 8%, rgb(152 255 25 / 10%), transparent 28rem),
    var(--paper);
  font-family: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgb(255 255 255 / 2%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 2%) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: var(--black);
  background: var(--green);
  font-weight: 900;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  background: rgb(5 6 5 / 86%);
  backdrop-filter: blur(18px);
}

.header-inner,
.wrap {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  min-height: 4.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.event-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}
.event-brand img {
  width: clamp(3.65rem, 8vw, 5rem);
  height: auto;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
}
.event-brand-details {
  display: grid;
  gap: 0.12rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.14;
}
.event-brand-details strong {
  color: var(--green);
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 1000;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  color: var(--black);
  background: var(--green);
  clip-path: polygon(12% 0, 100% 0, 84% 100%, 0 100%);
  font-size: 0.83rem;
  font-weight: 1000;
}

.site-nav { display: flex; align-items: center; gap: 0.2rem; }
.site-nav a {
  padding: 0.55rem 0.7rem;
  color: var(--muted);
  border-radius: 0.4rem;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.055em;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--green); background: rgb(152 255 25 / 8%); }
.nav-cta { border: 1px solid var(--green) !important; color: var(--green) !important; }

.menu-button {
  display: none;
  height: 2.8rem;
  flex-shrink: 0;
  padding: 0 0.65rem;
  align-items: center;
  gap: 0.35rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--panel);
  font-size: 0.875rem;
  font-weight: 800;
}
.menu-button svg { width: 1.35rem; }

main { overflow: hidden; }
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section-tight { padding: 2.2rem 0; }
.section-rule { border-top: 1px solid var(--line); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1rem;
  color: var(--green);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}
.eyebrow::before { width: 2rem; height: 0.2rem; background: var(--green); content: ""; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  font-stretch: condensed;
  text-transform: uppercase;
  line-height: 0.94;
  letter-spacing: -0.055em;
}
h1 { max-width: 12ch; margin-bottom: 1.5rem; font-size: clamp(4rem, 12vw, 9.5rem); font-style: italic; }
h2 { max-width: 15ch; margin-bottom: 1.2rem; font-size: clamp(2.7rem, 7vw, 5.8rem); }
h3 { margin-bottom: 0.75rem; font-size: clamp(1.35rem, 3vw, 2rem); }
.lead { max-width: 42rem; color: #d3d8d3; font-size: clamp(1.1rem, 2.4vw, 1.35rem); line-height: 1.55; }
.muted { color: var(--muted); }
.green { color: var(--green); }

.hero { padding: clamp(1.25rem, 5vw, 4rem) 0 1.5rem; }
.hero-grid { display: grid; align-items: center; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(1.2rem, 4vw, 3rem); }
.hero-date { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.65rem; margin-bottom: 0.7rem; color: var(--green); font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 900; line-height: 1; text-transform: uppercase; }
.hero-date strong { font-size: clamp(3rem, 5.8vw, 5.8rem); letter-spacing: -0.04em; }
.hero-date span { color: var(--ink); }
.hero-venue { margin-bottom: 0.45rem; font-size: clamp(1.15rem, 2.3vw, 1.6rem); font-weight: 900; }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.hero-actions { margin-top: 1rem; }

.button {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.15rem;
  color: var(--black);
  border: 1px solid var(--green);
  border-radius: 0.45rem;
  background: var(--green);
  box-shadow: 0 0 0 0 rgb(152 255 25 / 0%);
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.86rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.button:hover { box-shadow: 0 0 30px rgb(152 255 25 / 22%); transform: translateY(-2px); }
.button-secondary { color: var(--ink); border-color: var(--line); background: var(--panel); }
.button-ghost { color: var(--green); background: transparent; }

.hero-art {
  max-width: none;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #030303;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-art img { width: 100%; height: auto; }

.home-directory { padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 7vw, 6rem); }
.home-directory h2 { max-width: none; font-size: clamp(2rem, 5vw, 3.8rem); }
.home-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-links a {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 0.35rem;
  padding: clamp(0.85rem, 2.2vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--panel);
  text-decoration: none;
}
.home-links a:hover, .home-links li:target a { border-color: var(--green); background: var(--panel-2); }
.home-links strong { color: var(--green-soft); font-size: clamp(1rem, 2vw, 1.3rem); line-height: 1.2; }
.home-links span { color: var(--muted); line-height: 1.4; }

#event-artwork { scroll-margin-top: 4.75rem; }
.artwork-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1rem, 3vw, 2rem);
}
.artwork-grid figure { margin: 0; min-width: 0; }
.artwork-grid figure > a {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.artwork-grid img { width: 100%; height: auto; }
.artwork-grid figcaption { padding-top: 1rem; color: var(--muted); }
.artwork-grid figcaption h2 { color: var(--ink); font-size: clamp(1.35rem, 3vw, 2rem); }
.artwork-grid figcaption a { color: var(--green-soft); }

.driver-index { padding: clamp(1.5rem, 4vw, 3rem) 0; background: var(--panel); }
.driver-index .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.driver-index h1 { max-width: none; margin: 0; font-size: clamp(2rem, 5vw, 4rem); }
.driver-jumps { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.driver-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  scroll-margin-top: 5.75rem;
}
.driver-hero { padding-block: clamp(2rem, 6vw, 5rem); }
.driver-feature h2 { margin-bottom: 1rem; }
.driver-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem; }
.driver-photo { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 0.75rem; background: var(--panel); }
.driver-photo:hover { border-color: var(--green); }
.driver-photo img { width: 100%; height: auto; }

.fact-strip { display: grid; margin-top: 3rem; border-block: 1px solid var(--line); grid-template-columns: repeat(4, 1fr); }
.fact { padding: 1.2rem 1rem; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact strong { display: block; color: var(--ink); text-transform: uppercase; font-size: 1.05rem; }
.fact span { color: var(--muted); font-size: 0.83rem; }

.two-col { display: grid; align-items: start; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 7vw, 7rem); }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.card {
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgb(255 255 255 / 3%), transparent), var(--panel);
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card-accent { border-color: rgb(152 255 25 / 45%); box-shadow: inset 0 0 50px rgb(152 255 25 / 4%); }
.tag {
  display: inline-flex;
  margin-bottom: 1.2rem;
  padding: 0.35rem 0.55rem;
  color: var(--green);
  border: 1px solid rgb(152 255 25 / 35%);
  border-radius: 99px;
  background: rgb(152 255 25 / 7%);
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}
.tag-warning { color: var(--warning); border-color: rgb(255 216 77 / 38%); background: rgb(255 216 77 / 7%); }

.page-hero { padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 7vw, 5rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 10ch; font-size: clamp(3.6rem, 10vw, 8rem); }
.page-hero-grid { display: grid; align-items: end; grid-template-columns: 1fr 0.65fr; gap: 2rem; }
.page-aside { padding: 1.4rem; border-left: 4px solid var(--green); background: var(--panel); }
.page-aside p:last-child { margin-bottom: 0; }

.timeline { position: relative; display: grid; gap: 1rem; }
.timeline::before { position: absolute; top: 0; bottom: 0; left: 1.45rem; width: 1px; background: var(--line); content: ""; }
.timeline-item { position: relative; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; }
.timeline-dot { z-index: 1; display: grid; width: 3rem; height: 3rem; place-items: center; color: var(--black); border: 5px solid var(--paper); border-radius: 50%; background: var(--green); font-weight: 1000; }
.timeline-body { padding: 1.3rem 1.5rem; border: 1px solid var(--line); border-radius: 0 var(--radius) var(--radius) var(--radius); background: var(--panel); }
.timeline-body .time { color: var(--green); text-transform: uppercase; font-size: 0.8rem; font-weight: 900; letter-spacing: 0.1em; }

.pairing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5rem, 1fr));
  gap: 0.4rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.pairing-grid li {
  padding: 0.4rem 0.25rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: var(--panel);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.price-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); background: var(--panel); }
.price-table th, .price-table td { padding: 1rem; border-bottom: 1px solid var(--line); text-align: left; }
.price-table th { color: var(--muted); text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.08em; }
.price-table td:last-child { color: var(--green); font-size: 1.35rem; font-weight: 1000; }
.price-table tr:last-child td { border-bottom: 0; }

.notice { padding: 1rem 1.15rem; color: #fff3be; border: 1px solid rgb(255 216 77 / 35%); border-radius: 0.75rem; background: rgb(255 216 77 / 8%); }
.notice strong { text-transform: uppercase; }
.notice-danger { color: #ffd0cc; border-color: rgb(255 116 104 / 38%); background: rgb(255 116 104 / 8%); }

.checklist { display: grid; margin: 0; padding: 0; list-style: none; gap: 0.75rem; }
.checklist li { position: relative; min-height: 2rem; padding-left: 2.65rem; }
.checklist li::before { position: absolute; top: 0.1rem; left: 0; display: grid; width: 1.7rem; height: 1.7rem; place-items: center; color: var(--green); border: 1px solid rgb(152 255 25 / 40%); border-radius: 0.3rem; content: "✓"; font-weight: 1000; }
.checklist.pending li::before { color: var(--warning); border-color: rgb(255 216 77 / 40%); content: "!"; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.field { display: grid; gap: 0.45rem; }
.field-full { grid-column: 1 / -1; }
label { color: #dce2dc; font-size: 0.9rem; font-weight: 800; }
input, select, textarea {
  width: 100%;
  min-height: 3.2rem;
  padding: 0.75rem 0.85rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--black);
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--green) 50%), linear-gradient(135deg, var(--green) 50%, transparent 50%); background-position: calc(100% - 1rem) 1.35rem, calc(100% - 0.7rem) 1.35rem; background-repeat: no-repeat; background-size: 0.3rem 0.3rem; }
textarea { min-height: 11rem; resize: vertical; }
.form-note { color: var(--muted); font-size: 0.84rem; }
.status-line { min-height: 1.5rem; margin-top: 0.75rem; color: var(--green-soft); font-weight: 800; }

.sponsor-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.8rem; }
.sponsor-card { min-width: 0; display: grid; grid-template-rows: 1fr auto auto; padding: 1rem; border: 1px solid var(--line); border-radius: 0.75rem; background: var(--panel); text-align: center; }
.sponsor-mark { display: grid; place-items: center; aspect-ratio: 1; }
.sponsor-mark img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.sponsor-card h2 { max-width: none; min-height: 2.5em; margin: 0.75rem 0 0; font-size: 1rem; letter-spacing: 0; line-height: 1.25; }
.sponsor-instagram { display: grid; min-height: 2.75rem; place-items: center; color: var(--green-soft); overflow-wrap: anywhere; font-size: 0.875rem; font-weight: 800; text-underline-offset: 0.2em; }
.sponsor-card { scroll-margin-top: 5.75rem; }
.sponsor-card:target { border-color: var(--green); }
.sponsor-driver-link { display: inline-block; padding: 0.3rem 0; font-size: 0.875rem; text-underline-offset: 0.2em; }

.contact-list { display: grid; margin: 0; padding: 0; list-style: none; gap: 0.7rem; }
.contact-list a { color: var(--green-soft); font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 0.2rem; }

.cta-band { position: relative; padding: clamp(2rem, 5vw, 4rem); border: 1px solid rgb(152 255 25 / 42%); border-radius: var(--radius); background: linear-gradient(110deg, rgb(152 255 25 / 14%), transparent 52%), var(--panel); overflow: hidden; }
.cta-band::after { position: absolute; top: -60%; right: -8%; width: 20rem; height: 20rem; border: 3rem solid rgb(152 255 25 / 8%); border-radius: 50%; content: ""; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { max-width: 12ch; font-size: clamp(2.3rem, 6vw, 4.5rem); }

.site-footer { padding: 3.5rem 0 2rem; border-top: 1px solid var(--line); background: var(--black); }
.footer-grid { display: grid; grid-template-columns: 1.1fr 0.7fr 0.7fr; gap: 2rem; }
.footer-title { color: var(--muted); text-transform: uppercase; font-size: 0.75rem; font-weight: 900; letter-spacing: 0.12em; }
.footer-links { display: grid; gap: 0.45rem; }
.footer-links a { color: #d6dbd6; text-decoration: none; }
.footer-links a:hover { color: var(--green); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.2rem; color: #7f8981; border-top: 1px solid var(--line); font-size: 0.8rem; }

@media (max-width: 1180px) {
  .menu-button { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 1rem;
    left: 1rem;
    display: none;
    max-height: calc(100vh - 6rem);
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 0 0 1rem 1rem;
    background: #0c0f0d;
    box-shadow: var(--shadow);
    overflow: auto;
  }
  .site-nav[data-open="true"] { display: grid; }
  .site-nav a { padding: 0.8rem; }
}

@media (max-width: 980px) {
  .hero-grid, .two-col, .page-hero-grid { grid-template-columns: 1fr; }
  .home-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .driver-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact-strip { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .three-col, .sponsor-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .header-inner, .wrap { width: min(calc(100% - 1.25rem), var(--max)); }
  h1 { font-size: clamp(3.7rem, 20vw, 6rem); }
  .fact-strip, .three-col, .card-grid, .form-grid, .artwork-grid, .footer-grid { grid-template-columns: 1fr; }
  .driver-feature { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: 0; }
  .field-full { grid-column: auto; }
  .price-table th, .price-table td { padding: 0.8rem 0.65rem; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
