:root {
  --black: #0b0b0c;
  --ink: #171719;
  --graphite: #252528;
  --steel: #787b80;
  --line: #d9d9da;
  --surface: #f4f4f2;
  --white: #ffffff;
  --red: #d6001c;
  --red-dark: #a80017;
  --green: #147d64;
  --amber: #b36a00;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
  --page: min(1240px, calc(100% - 64px));
  --header-height: 74px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
}

button,
a,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.disclosure-bar {
  position: relative;
  z-index: 31;
  min-height: 26px;
  padding: 5px 20px;
  background: var(--graphite);
  color: #d8d8da;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  min-height: var(--header-height);
  padding: 0 32px;
  background: rgba(11, 11, 12, 0.96);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  justify-self: start;
  line-height: 1;
}

.wordmark-main {
  font-size: 21px;
  font-weight: 700;
}

.wordmark-sub {
  margin-top: 6px;
  color: #b8b8ba;
  font-size: 9px;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.desktop-nav a {
  position: relative;
  padding: 26px 0;
  color: #d0d0d2;
  font-size: 13px;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  height: 2px;
  background: var(--red);
  content: "";
  opacity: 0;
  transform: scaleX(0.3);
  transition: opacity 180ms ease, transform 180ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 12px;
}

.language-control {
  display: flex;
  align-items: center;
  height: 38px;
  padding-left: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ddd;
}

.language-control svg {
  width: 16px;
  height: 16px;
}

.language-select {
  width: 65px;
  height: 36px;
  padding: 0 8px;
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-size: 12px;
  outline: none;
}

.language-select option {
  background: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-left: 12px;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  background: var(--red);
  color: var(--white);
}

.button-primary:hover {
  background: var(--red-dark);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.button-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.button-light {
  background: var(--white);
  color: var(--ink);
}

.button-large {
  min-height: 54px;
  padding: 0 26px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  color: inherit;
  cursor: pointer;
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

.mobile-menu-button,
.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height) - 26px);
  max-height: 920px;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}

.hero-media,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
  object-position: center 56%;
  animation: hero-reveal 900ms ease-out both;
}

.hero-scrim {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.52) 32%, rgba(0, 0, 0, 0.12) 56%, rgba(0, 0, 0, 0.03) 78%), linear-gradient(0deg, rgba(0, 0, 0, 0.48) 0%, transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: var(--page);
  min-height: inherit;
  margin: 0 auto;
  padding: 110px 0 120px;
}

.eyebrow {
  margin: 0 0 18px;
  color: #d2d2d4;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.eyebrow-dark {
  color: var(--red-dark);
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: 74px;
  font-weight: 500;
  line-height: 0.98;
}

.hero-copy {
  max-width: 640px;
  margin: 28px 0 0;
  color: #e0e0e2;
  font-size: 19px;
  line-height: 1.55;
}

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

.hero-scroll {
  position: absolute;
  z-index: 2;
  right: 32px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ddd;
  font-size: 11px;
  text-transform: uppercase;
}

.hero-scroll svg {
  width: 18px;
  animation: scroll-bob 1.6s ease-in-out infinite;
}

.race-facts {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: var(--page);
  margin: -28px auto 0;
  background: var(--white);
  box-shadow: var(--shadow);
}

.fact {
  min-width: 0;
  padding: 24px 28px;
  border-right: 1px solid var(--line);
}

.fact:last-child {
  border-right: 0;
}

.fact-label {
  display: block;
  margin-bottom: 8px;
  color: var(--steel);
  font-size: 11px;
  text-transform: uppercase;
}

.fact strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 21px;
  font-weight: 500;
}

.section {
  padding: 120px 0;
}

.section-inner {
  width: var(--page);
  margin: 0 auto;
}

.section h2 {
  margin: 0;
  font-size: 52px;
  font-weight: 500;
  line-height: 1.06;
}

.section-intro {
  max-width: 620px;
}

.lead {
  margin: 28px 0;
  color: #4f4f52;
  font-size: 18px;
  line-height: 1.7;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.text-link svg {
  width: 16px;
}

.event-section {
  padding-top: 142px;
}

.event-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 80px;
}

.feature-media {
  margin: 0;
}

.feature-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.feature-media figcaption {
  margin-top: 12px;
  color: var(--steel);
  font-size: 11px;
  text-transform: uppercase;
}

.team-section {
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}

.team-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 80px;
  align-items: end;
}

.team-copy {
  margin: 0;
  color: #bfc0c3;
  line-height: 1.7;
}

.team-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 62px 0 40px;
  border-top: 1px solid #3b3b3e;
  border-bottom: 1px solid #3b3b3e;
}

.team-specs div {
  padding: 24px 22px;
  border-right: 1px solid #3b3b3e;
}

.team-specs div:last-child {
  border-right: 0;
}

.team-specs span,
.team-specs strong {
  display: block;
}

.team-specs span {
  margin-bottom: 7px;
  color: #8b8b8f;
  font-size: 11px;
  text-transform: uppercase;
}

.team-specs strong {
  font-size: 14px;
  font-weight: 500;
}

.driver-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.driver-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #171719;
  border-radius: 2px;
}

.driver-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.06);
  transition: transform 500ms ease, filter 500ms ease;
}

.driver-card:hover img {
  transform: scale(1.02);
  filter: saturate(1) contrast(1.03);
}

.driver-meta {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
  align-items: center;
  padding: 22px 24px 26px;
  border-top: 3px solid var(--red);
}

.driver-number {
  color: #606064;
  font-size: 46px;
  font-weight: 300;
  line-height: 1;
}

.driver-meta p,
.driver-meta h3,
.driver-meta span {
  margin: 0;
}

.driver-meta p {
  color: #86868a;
  font-size: 10px;
  text-transform: uppercase;
}

.driver-meta h3 {
  margin-top: 3px;
  font-size: 22px;
  font-weight: 500;
}

.driver-meta div > span {
  color: #a8a8ab;
  font-size: 12px;
}

.weekend-section {
  background: var(--surface);
}

.compact-intro {
  margin-bottom: 58px;
}

.schedule {
  border-top: 1px solid var(--ink);
}

.schedule-day {
  display: grid;
  grid-template-columns: 170px 1fr;
  border-bottom: 1px solid #bfc0c2;
}

.schedule-date {
  display: grid;
  grid-template-columns: 36px 70px 1fr;
  align-items: center;
  min-height: 130px;
  padding: 20px 20px 20px 0;
  border-right: 1px solid #bfc0c2;
}

.schedule-date span,
.schedule-date small {
  color: var(--steel);
  font-size: 11px;
  font-weight: 700;
}

.schedule-date strong {
  font-size: 54px;
  font-weight: 300;
  line-height: 1;
}

.schedule-sessions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.schedule-sessions > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-height: 130px;
  padding: 24px 36px;
  border-right: 1px solid #bfc0c2;
}

.schedule-sessions > div:last-child {
  border-right: 0;
}

.schedule-sessions span {
  color: #5c5c60;
  font-size: 13px;
}

.schedule-sessions time {
  font-size: 28px;
  font-weight: 500;
}

.schedule-race {
  background: var(--ink);
  color: var(--white);
  border-bottom-color: var(--ink);
}

.schedule-race .schedule-date,
.schedule-race .schedule-sessions > div {
  border-color: #3b3b3e;
}

.schedule-race .schedule-sessions span {
  color: #bbbcc0;
}

.source-note {
  margin: 18px 0 0;
  color: var(--steel);
  font-size: 11px;
}

.access-section {
  background: #1a1a1c;
  color: var(--white);
}

.access-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: 100px;
}

.access-heading {
  align-self: start;
  position: sticky;
  top: 120px;
}

.access-heading p:not(.eyebrow) {
  margin: 28px 0 32px;
  color: #bfc0c3;
  line-height: 1.7;
}

.rules-list {
  border-top: 1px solid #4b4b4f;
}

.rules-list details {
  border-bottom: 1px solid #4b4b4f;
}

.rules-list summary {
  display: grid;
  grid-template-columns: 52px 1fr 24px;
  align-items: center;
  min-height: 86px;
  cursor: pointer;
  list-style: none;
}

.rules-list summary::-webkit-details-marker {
  display: none;
}

.rules-list summary span {
  color: #747479;
  font-size: 12px;
}

.rules-list summary strong {
  font-size: 17px;
  font-weight: 500;
}

.rules-list summary svg {
  width: 19px;
  transition: transform 180ms ease;
}

.rules-list details[open] summary svg {
  transform: rotate(45deg);
}

.rules-list details p {
  max-width: 630px;
  margin: -4px 40px 30px 52px;
  color: #aaaab0;
  line-height: 1.65;
}

.final-cta {
  padding: 84px 0;
  background: var(--red);
  color: var(--white);
}

.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.final-cta .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.final-cta h2 {
  max-width: 760px;
}

.site-footer {
  padding: 60px 32px 24px;
  background: var(--black);
  color: #9a9a9e;
}

.footer-main {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) auto;
  align-items: start;
  gap: 50px;
  width: var(--page);
  margin: 0 auto;
}

.footer-wordmark {
  color: var(--white);
}

.footer-main p {
  max-width: 700px;
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
}

.admin-link {
  padding-bottom: 4px;
  border-bottom: 1px solid #5d5d61;
  color: #c7c7c9;
  font-size: 12px;
}

.photo-credits {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  width: var(--page);
  margin: 48px auto 0;
  padding-top: 18px;
  border-top: 1px solid #2d2d30;
  font-size: 10px;
}

.photo-credits a {
  color: #c6c6c8;
}

@keyframes hero-reveal {
  from { opacity: 0; transform: scale(1.03); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes scroll-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

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

@media (max-width: 1080px) {
  :root {
    --page: min(100% - 48px, 960px);
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

  .mobile-nav {
    position: fixed;
    z-index: 29;
    top: calc(26px + var(--header-height));
    right: 0;
    left: 0;
    display: grid;
    background: var(--black);
    color: var(--white);
    border-top: 1px solid #333;
    box-shadow: var(--shadow);
  }

  .mobile-nav[hidden] {
    display: none;
  }

  .mobile-nav a {
    padding: 18px 24px;
    border-bottom: 1px solid #2d2d30;
    font-size: 14px;
  }

  .hero h1 {
    font-size: 62px;
  }

  .event-layout,
  .access-layout {
    gap: 54px;
  }

  .team-heading {
    gap: 48px;
  }

  .section h2 {
    font-size: 44px;
  }
}

@media (max-width: 760px) {
  :root {
    --page: calc(100% - 32px);
    --header-height: 66px;
  }

  .disclosure-bar {
    min-height: 32px;
    padding: 6px 12px;
    line-height: 20px;
  }

  .site-header {
    padding: 0 16px;
  }

  .wordmark-main {
    font-size: 18px;
  }

  .wordmark-sub {
    font-size: 8px;
  }

  .header-apply {
    display: none;
  }

  .language-control {
    width: 75px;
  }

  .language-select {
    width: 48px;
    padding: 0 4px;
  }

  .mobile-nav {
    top: calc(32px + var(--header-height));
  }

  .hero {
    min-height: calc(88svh - var(--header-height) - 32px);
    max-height: none;
  }

  .hero-media {
    object-position: 58% center;
  }

  .hero-scrim {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.16)), linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 55%);
  }

  .hero-content {
    justify-content: flex-end;
    padding: 76px 0 66px;
  }

  .hero h1 {
    max-width: 540px;
    font-size: 44px;
    line-height: 1.02;
  }

  .hero-copy {
    margin-top: 20px;
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
    margin-top: 26px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-scroll {
    display: none;
  }

  .race-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
    box-shadow: none;
    border-bottom: 1px solid var(--line);
  }

  .fact {
    padding: 20px 16px;
    border-bottom: 1px solid var(--line);
  }

  .fact:nth-child(2) {
    border-right: 0;
  }

  .fact:nth-child(n + 3) {
    border-bottom: 0;
  }

  .fact strong {
    font-size: 18px;
  }

  .section {
    padding: 82px 0;
  }

  .section h2 {
    font-size: 36px;
  }

  .event-section {
    padding-top: 88px;
  }

  .event-layout,
  .team-heading,
  .access-layout {
    grid-template-columns: 1fr;
  }

  .event-layout {
    gap: 44px;
  }

  .lead {
    font-size: 16px;
  }

  .team-heading {
    gap: 24px;
  }

  .team-specs {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 42px;
  }

  .team-specs div:nth-child(2) {
    border-right: 0;
  }

  .team-specs div:nth-child(-n + 2) {
    border-bottom: 1px solid #3b3b3e;
  }

  .driver-grid {
    grid-template-columns: 1fr;
  }

  .driver-meta {
    grid-template-columns: 58px 1fr;
  }

  .driver-number {
    font-size: 38px;
  }

  .compact-intro {
    margin-bottom: 38px;
  }

  .schedule-day {
    grid-template-columns: 94px 1fr;
  }

  .schedule-date {
    grid-template-columns: 1fr;
    align-content: center;
    min-height: 160px;
    padding: 18px 14px;
    text-align: center;
  }

  .schedule-date strong {
    margin: 5px 0;
    font-size: 42px;
  }

  .schedule-sessions {
    grid-template-columns: 1fr;
  }

  .schedule-sessions > div {
    min-height: 80px;
    padding: 16px 20px;
    border-right: 0;
    border-bottom: 1px solid #bfc0c2;
  }

  .schedule-sessions > div:last-child {
    border-bottom: 0;
  }

  .schedule-sessions time {
    font-size: 20px;
  }

  .access-layout {
    gap: 56px;
  }

  .access-heading {
    position: static;
  }

  .rules-list summary {
    grid-template-columns: 40px 1fr 22px;
    min-height: 78px;
  }

  .rules-list summary strong {
    font-size: 15px;
  }

  .rules-list details p {
    margin: 0 30px 26px 40px;
    font-size: 14px;
  }

  .final-cta {
    padding: 64px 0;
  }

  .final-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .final-cta .button {
    width: 100%;
  }

  .site-footer {
    padding: 52px 16px 22px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .admin-link {
    justify-self: start;
  }
}
