:root {
  --ink: #111111;
  --paper: #f4f3ed;
  --white: #ffffff;
  --accent: #d9ff24;
  --accent-2: #ff7a00;
  --muted: #8e8e88;
  --line: rgba(17,17,17,.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(17,17,17,.96);
  color: white;
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
}

.brand { display: flex; align-items: center; gap: 12px; font-family: "Barlow Condensed", sans-serif; font-weight: 900; letter-spacing: .03em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: var(--accent);
  transform: skew(-7deg);
  font-size: 20px;
}
.brand-name { font-size: 20px; }
.brand-name strong { color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 700; }
.site-nav a:not(.nav-cta) { opacity: .86; }
.site-nav a:hover { opacity: 1; }
.nav-cta {
  padding: 10px 16px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 800;
}

.menu-toggle { display: none; background: transparent; border: 0; padding: 8px; }
.menu-toggle span { display: block; width: 26px; height: 2px; margin: 5px 0; background: white; }

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr);
  gap: 40px;
  align-items: end;
  padding: clamp(56px, 9vw, 130px) clamp(20px, 6vw, 88px) 72px;
  background:
    radial-gradient(circle at 68% 24%, rgba(217,255,36,.22), transparent 22%),
    linear-gradient(135deg, #0d0d0d 0%, #171717 58%, #252525 100%);
  color: white;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 62px 62px;
  transform: perspective(600px) rotateX(60deg) scale(1.4);
  transform-origin: center bottom;
  pointer-events: none;
}

.hero-content, .next-race-card { position: relative; z-index: 1; }

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .15em;
}

.hero .eyebrow { color: var(--accent); }

h1, h2, h3 {
  font-family: "Barlow Condensed", sans-serif;
  margin-top: 0;
  line-height: .92;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(64px, 9vw, 138px);
  letter-spacing: -.035em;
  max-width: 900px;
}

h1 span { color: var(--accent); }

.hero-copy {
  max-width: 720px;
  margin: 0 0 30px;
  color: #d1d1cc;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .025em;
  transition: transform .18s ease, opacity .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-secondary { background: transparent; color: white; border: 1px solid rgba(255,255,255,.3); }
.btn-dark { background: var(--ink); color: white; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin-top: 54px;
}
.hero-stats div { display: grid; }
.hero-stats strong { font-family: "Barlow Condensed"; font-size: 26px; }
.hero-stats span { color: #9f9f99; font-size: 12px; text-transform: uppercase; }

.next-race-card {
  align-self: center;
  max-width: 460px;
  justify-self: end;
  padding: 30px;
  background: var(--accent);
  color: var(--ink);
  box-shadow: 14px 14px 0 rgba(255,255,255,.08);
}
.card-kicker {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 9px;
  background: var(--ink);
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}
.next-race-card h2 { margin-bottom: 10px; font-size: clamp(40px, 5vw, 64px); }
.race-location { margin: 0 0 26px; font-weight: 600; }
.race-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,.18);
}
.race-details div { display: grid; gap: 3px; }
.race-details span { font-size: 11px; text-transform: uppercase; opacity: .65; }
.race-details strong { font-size: 14px; }

.ticker {
  overflow: hidden;
  padding: 14px 20px;
  background: var(--accent-2);
  color: var(--ink);
  font-family: "Barlow Condensed";
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: .06em;
  white-space: nowrap;
}
.ticker div { display: flex; justify-content: center; gap: 22px; }

.section { padding: clamp(72px, 9vw, 130px) clamp(20px, 6vw, 88px); }
.section-heading { margin-bottom: 50px; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(52px, 7vw, 96px); letter-spacing: -.025em; }
.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.section-note { max-width: 380px; color: var(--muted); }
.text-link { font-weight: 800; }

.intro {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 80px;
  align-items: center;
}
.intro .section-heading { margin: 0; }
.intro-copy { font-size: clamp(18px, 2vw, 24px); }
.intro-copy p:first-child { font-weight: 700; }

.dark-section {
  background: var(--ink);
  color: white;
}
.dark-section .section-note, .dark-section .text-link { color: #b8b8b2; }

.event-grid { display: grid; gap: 16px; }
.event-card {
  display: grid;
  grid-template-columns: 150px 1fr 60px;
  gap: 30px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.13);
  background: #171717;
}
.event-card.featured { border-color: rgba(217,255,36,.5); }
.event-date { display: grid; }
.event-date span { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.event-date strong { font-family: "Barlow Condensed"; font-size: 52px; }
.event-body h3 { margin: 8px 0 10px; font-size: 34px; }
.event-body p { max-width: 720px; color: #b8b8b2; }
.event-status { color: var(--accent); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.event-status.muted { color: #a1a19b; }
.event-meta { display: flex; flex-wrap: wrap; gap: 22px; color: #deded8; font-size: 13px; }
.event-arrow { font-family: "Barlow Condensed"; font-size: 44px; text-align: right; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.steps article { min-height: 260px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.step-number { display: block; margin-bottom: 62px; color: var(--accent-2); font-family: "Barlow Condensed"; font-size: 22px; font-weight: 900; }
.steps h3 { margin-bottom: 12px; font-size: 35px; }
.steps p { color: #66665f; }

.start-cta {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: center;
  margin-top: 38px;
  padding: 34px;
  background: var(--ink);
  color: white;
}
.start-cta h3 { margin: 0 0 8px; font-size: 38px; }
.start-cta p:not(.eyebrow) { max-width: 650px; margin-bottom: 0; color: #b8b8b2; }

.results-section { background: #e7e5dc; }
.results-table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 18px 12px; border-bottom: 1px solid rgba(0,0,0,.14); text-align: left; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #71716b; }
td { font-weight: 600; }
td:first-child { font-family: "Barlow Condensed"; font-size: 30px; font-weight: 900; }

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.product-image {
  aspect-ratio: 16/10;
  display: grid;
  place-content: center;
  background:
    linear-gradient(135deg, rgba(0,0,0,.06) 25%, transparent 25%) -18px 0/36px 36px,
    linear-gradient(225deg, rgba(0,0,0,.06) 25%, transparent 25%) -18px 0/36px 36px,
    linear-gradient(315deg, rgba(0,0,0,.06) 25%, transparent 25%) 0px 0/36px 36px,
    linear-gradient(45deg, rgba(0,0,0,.06) 25%, transparent 25%) 0px 0/36px 36px,
    var(--accent);
  text-align: center;
  transform: skew(-1deg);
}
.real-product-image {
  background: white;
  overflow: hidden;
  transform: none;
}

.real-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.product-image.alt { background-color: var(--accent-2); }
.product-image span { font-family: "Barlow Condensed"; font-size: clamp(24px, 3vw, 44px); font-weight: 900; }
.product-image strong { font-family: "Barlow Condensed"; font-size: clamp(48px, 7vw, 100px); line-height: .8; }
.product-info { display: flex; justify-content: space-between; gap: 20px; padding: 18px 4px; }
.product-info h3 { margin-bottom: 4px; font-size: 26px; }
.product-info p { margin: 0; color: var(--muted); font-size: 13px; }
.product-info > strong { font-size: 24px; }
.center-action { display: flex; justify-content: center; margin-top: 38px; }

.sponsor-section { background: var(--accent); }
.sponsor-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.sponsor-panel h2 { margin-bottom: 0; font-size: clamp(56px, 7vw, 100px); }
.sponsor-copy { align-self: end; font-size: 18px; }
.sponsor-copy ul { margin: 24px 0 30px; padding-left: 20px; }
.sponsor-logos {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 320px));
  gap: 24px;
  margin-top: 40px;
  align-items: center;
}

.sponsor-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  padding: 28px;
  background: rgba(255,255,255,.85);
  border: 2px solid rgba(0,0,0,.1);
}

.sponsor-logo img {
  width: 100%;
  max-width: 240px;
  max-height: 100px;
  object-fit: contain;
}

.gallery-grid { display: grid; grid-template-columns: 1.15fr .85fr .85fr; grid-auto-rows: 230px; gap: 14px; }
.gallery-placeholder {.gallery-photo {
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-photo.tall {
  grid-row: span 2;
}

.gallery-photo.wide {
  grid-column: span 2;
}
  display: grid;
  place-items: end start;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.04), rgba(0,0,0,.36)),
    repeating-linear-gradient(45deg, #2a2a2a, #2a2a2a 20px, #222 20px, #222 40px);
  color: white;
  font-family: "Barlow Condensed";
  font-size: 30px;
  font-weight: 900;
}
.gallery-placeholder.tall { grid-row: span 2; }
.gallery-placeholder.wide { grid-column: span 2; }
.gallery-photo {
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-photo.tall {
  grid-row: span 2;
}

.gallery-photo.wide {
  grid-column: span 2;
}
.contact-section {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 80px;
  background: #121212;
  color: white;
}
.contact-copy h2 { font-size: clamp(58px, 7vw, 100px); }
.contact-copy > p:last-child { max-width: 500px; color: #b5b5af; }
.contact-form { display: grid; gap: 18px; align-content: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 8px; color: #d5d5cf; font-size: 13px; font-weight: 700; }
input, select, textarea {
  width: 100%;
  border: 1px solid #3a3a3a;
  background: #1b1b1b;
  color: white;
  padding: 14px 15px;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; }
.form-note { margin: 0; color: #898983; font-size: 12px; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  padding: 30px clamp(20px, 6vw, 88px);
  background: #080808;
  color: #85857f;
  font-size: 12px;
}
.footer-brand { color: white; }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 22px;
    background: #111;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .site-nav .nav-cta { margin-top: 10px; text-align: center; border-bottom: 0; }

  .hero { grid-template-columns: 1fr; min-height: unset; }
  .next-race-card { justify-self: start; max-width: 620px; }
  .intro, .sponsor-panel, .contact-section { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
.gallery-placeholder.wide,
.gallery-photo.wide {
  grid-column: span 1;
}
}

@media (max-width: 680px) {
  .brand-name { font-size: 17px; }
  .hero { padding-top: 70px; }
  h1 { font-size: clamp(62px, 20vw, 94px); }
  .hero-stats { gap: 22px; }
  .race-details { grid-template-columns: 1fr; }
  .split-heading { align-items: start; flex-direction: column; gap: 18px; }
  .event-card { grid-template-columns: 1fr; gap: 14px; }
  .event-arrow { text-align: left; }
  .event-date { grid-template-columns: auto auto; gap: 8px; align-items: baseline; justify-content: start; }
  .event-date strong { font-size: 36px; }
  .steps, .product-grid, .form-row, .gallery-grid { grid-template-columns: 1fr; }
  .start-cta { align-items: stretch; flex-direction: column; }
.gallery-placeholder.tall,
.gallery-photo.tall {
  grid-row: span 1;
}
  .site-footer { align-items: flex-start; flex-direction: column; }
  .ticker div { justify-content: flex-start; }
}


/* Racer registration */
.registration-section {
  background: #e7e5dc;
}

.registration-heading {
  display: grid;
  grid-template-columns: 1fr minmax(320px, .7fr);
  gap: 50px;
  align-items: end;
  margin-bottom: 28px;
}

.registration-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(52px, 7vw, 96px);
  letter-spacing: -.025em;
}

.registration-location {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.registration-status {
  padding: 26px;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.registration-status.is-open {
  background: var(--accent);
}

.registration-status.is-closed {
  background: #d8d6ce;
}

.registration-status-label {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.registration-status strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(34px, 4vw, 52px);
  line-height: .95;
}

.registration-status p {
  margin: 10px 0 0;
}

.registration-window-note {
  margin-bottom: 22px;
  padding: 15px 18px;
  border-left: 5px solid var(--accent-2);
  background: rgba(255,255,255,.55);
}

.registration-locked {
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(0,0,0,.14);
  background: var(--paper);
  text-align: center;
}

.registration-locked h3 {
  margin-bottom: 12px;
  font-size: clamp(38px, 5vw, 62px);
}

.registration-locked p {
  max-width: 700px;
  margin: 0 auto;
  color: #66665f;
  font-size: 17px;
}

.racer-registration-form {
  padding: clamp(28px, 5vw, 52px);
  background: var(--ink);
  color: white;
}

.racer-registration-form[hidden] {
  display: none !important;
}

.registration-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.racer-registration-form label:not(.checkbox-label) {
  display: grid;
  gap: 8px;
  color: #d5d5cf;
  font-size: 13px;
  font-weight: 700;
}

.racer-registration-form input[type="text"],
.racer-registration-form input[type="number"] {
  width: 100%;
  border: 1px solid #3a3a3a;
  background: #1b1b1b;
  color: white;
  padding: 14px 15px;
  outline: none;
}

.racer-registration-form input:focus {
  border-color: var(--accent);
}

.division-preview {
  margin: 18px 0 0;
  padding: 13px 15px;
  background: rgba(255,255,255,.08);
  color: #d5d5cf;
  font-size: 13px;
  font-weight: 700;
}

.registration-consents {
  display: grid;
  gap: 14px;
  margin: 26px 0;
}

.checkbox-label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid #3a3a3a;
  background: #171717;
  color: #d5d5cf;
  font-size: 13px;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--accent);
}

.checkbox-label a {
  color: var(--accent);
  text-decoration: underline;
}

.checkbox-label strong {
  color: white;
}

.registration-form-note {
  margin: 12px 0 0;
  color: #898983;
  font-size: 12px;
}

@media (max-width: 980px) {
  .registration-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 680px) {
  .registration-form-grid {
    grid-template-columns: 1fr;
  }
}
