:root {
  --ac-red: #e31b2b;
  --ac-red-dark: #b80f1d;
  --ac-ink: #101113;
  --ac-asphalt: #1c1f23;
  --ac-steel: #69717a;
  --ac-line: #dfe1e2;
  --ac-paper: #f3f3f0;
  --ac-white: #fff;
  --ac-shell: 1280px;
  --ac-gutter: clamp(1.25rem, 4vw, 4rem);
  --ac-display: "Arial Narrow", "Roboto Condensed", Impact, Haettenschweiler, sans-serif;
  --ac-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ac-shadow: 0 24px 70px rgb(12 15 18 / 12%);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--ac-white);
  color: var(--ac-ink);
  font-family: var(--ac-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-is-open { overflow: hidden; }

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

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

button, input, textarea, select { font: inherit; }

:focus-visible { outline: 3px solid var(--ac-red); outline-offset: 4px; }

::selection { background: var(--ac-red); color: var(--ac-white); }

.shell {
  width: min(calc(100% - (var(--ac-gutter) * 2)), var(--ac-shell));
  margin-inline: auto;
}

.shell--narrow { max-width: 760px; }

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  position: fixed !important;
  z-index: 99999;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  clip: auto;
  padding: 0.8rem 1rem;
  background: var(--ac-white);
  color: var(--ac-ink);
  font-weight: 800;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--ac-display);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-transform: uppercase;
}

p { margin-top: 0; }

.eyebrow,
.card-meta {
  margin: 0 0 0.8rem;
  color: var(--ac-red);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.6rem;
  height: 2px;
  margin: 0 0.65rem 0.22rem 0;
  background: currentColor;
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover { transform: translateY(-2px); }
.button--red { background: var(--ac-red); color: var(--ac-white); }
.button--red:hover { background: var(--ac-red-dark); }
.button--ghost { border-color: rgb(255 255 255 / 48%); color: var(--ac-white); }
.button--ghost:hover { border-color: var(--ac-white); background: rgb(255 255 255 / 10%); }
.button--white { background: var(--ac-white); color: var(--ac-ink); }
.button--white:hover { background: var(--ac-ink); color: var(--ac-white); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border-bottom: 1px solid var(--ac-ink);
  padding-bottom: 0.3rem;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-link span { color: var(--ac-red); }
.text-link--light { border-color: rgb(255 255 255 / 55%); color: var(--ac-white); }

/* Header */
.site-header {
  position: relative;
  z-index: 100;
  border-bottom: 1px solid rgb(255 255 255 / 14%);
  background: var(--ac-ink);
  color: var(--ac-white);
}

.site-header--overlay {
  position: absolute;
  inset: 0 0 auto;
  background: linear-gradient(180deg, rgb(5 8 11 / 58%), transparent);
}

/* WordPress admin toolbar is fixed above the page for authenticated editors. */
.admin-bar .site-header--overlay { top: 32px; }

.site-header__inner {
  display: grid;
  min-height: 5.5rem;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 4rem);
}

.wordmark { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--ac-white); }
.wordmark__mark { display: flex; width: 2.15rem; height: 2.1rem; transform: skewX(-12deg); }
.wordmark__mark i { display: block; width: 0.65rem; background: var(--ac-red); clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%); }
.wordmark__mark i:nth-child(2) { opacity: 0.7; }
.wordmark__mark i:nth-child(3) { opacity: 0.4; }
.wordmark__text { display: grid; line-height: 1; }
.wordmark__text strong { font-family: var(--ac-display); font-size: 1.35rem; letter-spacing: 0.02em; line-height: 1; }
.wordmark__text small { max-width: 14rem; margin-top: 0.28rem; color: rgb(255 255 255 / 58%); font-size: 0.5rem; font-weight: 800; letter-spacing: 0.1em; line-height: 1.15; text-transform: uppercase; }
.custom-logo-link img { width: auto; max-height: 3.25rem; }

.site-navigation { justify-self: end; }
.site-navigation ul { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); padding: 0; margin: 0; list-style: none; }
.site-navigation a { position: relative; display: block; padding: 2.15rem 0; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.site-navigation a::after { content: ""; position: absolute; right: 0; bottom: 1.55rem; left: 0; height: 2px; background: var(--ac-red); transform: scaleX(0); transform-origin: right; transition: transform 180ms ease; }
.site-navigation a:hover::after,
.site-navigation .current-menu-item > a::after { transform: scaleX(1); transform-origin: left; }

.header-cta { display: inline-flex; min-height: 2.85rem; align-items: center; gap: 0.8rem; padding: 0 1rem; background: var(--ac-red); font-size: 0.68rem; font-weight: 900; letter-spacing: 0.09em; text-transform: uppercase; }
.menu-toggle { display: none; width: 3rem; height: 3rem; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span:not(.screen-reader-text) { display: block; width: 1.5rem; height: 2px; margin: 0.4rem auto; background: var(--ac-white); transition: transform 180ms ease; }

/* Hero */
.hero {
  position: relative;
  display: grid;
  min-height: min(56rem, 100svh);
  overflow: hidden;
  align-items: center;
  isolation: isolate;
  background: #0b1117;
  color: var(--ac-white);
}

.hero__background,
.hero__grid { position: absolute; inset: 0; z-index: -2; }
.hero__background {
  background-image: linear-gradient(90deg, rgb(5 10 15 / 92%) 0%, rgb(5 10 15 / 72%) 32%, rgb(5 10 15 / 14%) 68%, rgb(5 10 15 / 34%) 100%), linear-gradient(0deg, rgb(5 8 12 / 88%) 0%, transparent 38%), url("../images/hero-motorsport.webp");
  background-position: center;
  background-size: cover;
  transform: scale(1.005);
}

.hero__grid {
  z-index: -1;
  opacity: 0.11;
  background-image: linear-gradient(rgb(255 255 255 / 25%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 25%) 1px, transparent 1px);
  background-position: center;
  background-size: 5rem 5rem;
  mask-image: linear-gradient(90deg, #000, transparent 55%);
}

.hero__content { padding-top: 8.5rem; padding-bottom: 9.5rem; }
.hero__kicker { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 1.25rem; font-size: 0.7rem; font-weight: 900; letter-spacing: 0.17em; text-transform: uppercase; }
.hero__kicker span { width: 2.75rem; height: 3px; background: var(--ac-red); }
.hero h1 { max-width: 780px; font-size: clamp(4.25rem, 10vw, 8.75rem); line-height: 0.76; text-shadow: 0 4px 30px rgb(0 0 0 / 18%); }
.hero h1 em { color: var(--ac-red); font-style: normal; }
.hero__lead { max-width: 35rem; margin: 2rem 0 0; color: rgb(255 255 255 / 74%); font-size: clamp(1rem, 1.6vw, 1.18rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero__rail { position: absolute; bottom: 2rem; left: 50%; display: flex; gap: clamp(1rem, 4vw, 4rem); color: rgb(255 255 255 / 52%); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; transform: translateX(-50%); }
.hero__scroll { position: absolute; right: 1.5rem; bottom: 2rem; display: flex; align-items: center; gap: 0.9rem; color: rgb(255 255 255 / 62%); font-size: 0.58rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; transform: rotate(90deg); transform-origin: right bottom; }
.hero__scroll i { display: block; width: 3rem; height: 1px; background: currentColor; }

/* Shared sections */
.section { padding: clamp(5rem, 9vw, 8rem) 0; }
.section--dark { background: var(--ac-ink); color: var(--ac-white); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(2.25rem, 5vw, 4.5rem); }
.section-heading h2 { font-size: clamp(2.8rem, 6vw, 5.75rem); }
.section--dark .section-heading .text-link { border-color: rgb(255 255 255 / 45%); color: var(--ac-white); }
.home-editor-content { padding-block: 5rem; }

/* Events */
.events-section { position: relative; overflow: hidden; }
.events-section::before { content: "CALENDAR"; position: absolute; top: 0.3rem; right: -1rem; color: rgb(255 255 255 / 2.5%); font-family: var(--ac-display); font-size: min(19vw, 18rem); font-weight: 900; line-height: 1; }
.events-list { border-top: 1px solid rgb(255 255 255 / 16%); }
.event-row { display: grid; min-height: 8.5rem; grid-template-columns: 8rem minmax(0, 1fr) minmax(9rem, 0.6fr) auto; align-items: center; gap: clamp(1rem, 3vw, 3rem); border-bottom: 1px solid rgb(255 255 255 / 16%); transition: background 180ms ease, padding 180ms ease; }
.event-row:hover { padding-inline: 1rem; background: rgb(255 255 255 / 4%); }
.event-date { display: flex; align-items: baseline; gap: 0.65rem; }
.event-date strong { font-family: var(--ac-display); font-size: 3.9rem; line-height: 1; }
.event-date span { color: var(--ac-red); font-size: 0.66rem; font-weight: 900; letter-spacing: 0.12em; }
.event-info p,
.event-location { margin: 0 0 0.25rem; color: rgb(255 255 255 / 48%); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.event-info h3 { font-size: clamp(1.35rem, 2.3vw, 2rem); }
.event-info h3 a:hover { color: var(--ac-red); }
.round-link { display: grid; width: 3rem; height: 3rem; place-items: center; border: 1px solid rgb(255 255 255 / 24%); border-radius: 50%; color: var(--ac-red); transition: background 180ms ease, color 180ms ease; }
.round-link:hover { background: var(--ac-red); color: var(--ac-white); }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.news-card { min-width: 0; }
.news-card__media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #d9dbdb; }
.news-card__media img,
.news-card__media > .media-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms cubic-bezier(.2,.75,.25,1); }
.news-card:hover .news-card__media img { transform: scale(1.035); }
.news-card__media > span { position: absolute; right: 0; bottom: 0; padding: 0.5rem 0.65rem; background: var(--ac-red); color: var(--ac-white); font-size: 0.6rem; font-weight: 900; letter-spacing: 0.08em; }
.news-card__body { padding: 1.4rem 0.25rem 0; }
.news-card__body h3,
.news-card__body h2 { margin-bottom: 0.8rem; font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.06; }
.news-card__body h3 a:hover,
.news-card__body h2 a:hover { color: var(--ac-red); }
.news-card__body > p:last-child { margin: 0; color: var(--ac-steel); font-size: 0.9rem; }
.card-meta a { color: inherit; }
.media-placeholder { display: grid; place-items: center; overflow: hidden; background-color: #d9dada; background-image: linear-gradient(135deg, transparent 0 48%, rgb(255 255 255 / 45%) 48% 51%, transparent 51%), repeating-linear-gradient(90deg, transparent 0 5rem, rgb(16 17 19 / 4%) 5rem calc(5rem + 1px)); }
.media-placeholder span { color: rgb(16 17 19 / 15%); font-family: var(--ac-display); font-size: 4rem; font-weight: 900; font-style: italic; }

/* Manifesto */
.manifesto-section { position: relative; overflow: hidden; padding: clamp(6rem, 11vw, 11rem) 0; background-color: #1b1d20; background-image: linear-gradient(115deg, #111214 0%, rgb(17 18 20 / 96%) 45%, rgb(17 18 20 / 58%) 100%), url("../images/hero-motorsport-960.webp"); background-position: center; background-size: cover; color: var(--ac-white); }
.manifesto-section::after { content: ""; position: absolute; inset: 0; opacity: 0.08; background-image: repeating-linear-gradient(120deg, transparent 0 5rem, #fff 5rem calc(5rem + 1px)); pointer-events: none; }
.manifesto-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: end; gap: clamp(3rem, 10vw, 10rem); }
.manifesto-copy h2 { font-size: clamp(3.4rem, 7.5vw, 7rem); }
.manifesto-copy h2 em { color: var(--ac-red); font-style: normal; }
.manifesto-body { padding-bottom: 0.5rem; }
.manifesto-body > p { margin-bottom: 2rem; color: rgb(255 255 255 / 66%); font-size: clamp(1rem, 1.6vw, 1.2rem); }

/* Team */
.driver-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.driver-card { overflow: hidden; background: var(--ac-paper); }
.driver-card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #d9dada; }
.driver-card__media > img,
.driver-card__media > .media-placeholder { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.2); transition: filter 300ms ease, transform 450ms cubic-bezier(.2,.75,.25,1); }
.driver-card:hover img { filter: saturate(0.9); transform: scale(1.035); }
.driver-card__number { position: absolute; right: 0.65rem; bottom: -0.28rem; color: var(--ac-white); font-family: var(--ac-display); font-size: 4.8rem; font-weight: 900; font-style: italic; line-height: 1; text-shadow: 0 3px 18px rgb(0 0 0 / 35%); }
.driver-card__body { padding: 1.25rem; border-bottom: 3px solid transparent; transition: border-color 180ms ease; }
.driver-card:hover .driver-card__body { border-color: var(--ac-red); }
.driver-card__body h3 { font-size: 1.55rem; }
.driver-card__body p { margin: 0.35rem 0 0; color: var(--ac-steel); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

/* Results */
.results-section { background: var(--ac-paper); }
.results-table { border-top: 3px solid var(--ac-ink); }
.results-row { display: grid; min-height: 4.75rem; grid-template-columns: 4rem 1.2fr 1fr 0.8fr 4rem; align-items: center; gap: 1.25rem; border-bottom: 1px solid #cfd1d1; transition: background 160ms ease, padding 160ms ease; }
a.results-row:hover { padding-inline: 0.75rem; background: var(--ac-white); }
.results-row > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.results-row strong { color: var(--ac-red); font-family: var(--ac-display); font-size: 2rem; }
.results-row--head { min-height: 2.8rem; color: var(--ac-steel); font-size: 0.62rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.results-row--head > * { font-family: var(--ac-body); font-size: inherit; color: inherit; }

/* Gallery */
.gallery-grid { display: grid; min-height: 42rem; grid-template-columns: 1.25fr 0.75fr 0.75fr; grid-template-rows: repeat(2, 1fr); gap: 0.75rem; }
.gallery-tile { position: relative; min-height: 16rem; overflow: hidden; background: #d9dada; }
.gallery-tile:first-child { grid-row: 1 / 3; }
.gallery-tile img,
.gallery-tile > .media-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms cubic-bezier(.2,.75,.25,1); }
.gallery-tile:hover img { transform: scale(1.045); }
.gallery-tile::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgb(6 8 10 / 78%)); }
.gallery-tile > span { position: absolute; z-index: 1; right: 1.25rem; bottom: 1.2rem; left: 1.25rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; color: var(--ac-white); }
.gallery-tile strong { font-family: var(--ac-display); font-size: clamp(1.1rem, 2vw, 1.65rem); line-height: 1; text-transform: uppercase; }
.gallery-tile small { flex: 0 0 auto; color: rgb(255 255 255 / 62%); font-size: 0.58rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }

/* Partners and CTA */
.partners-section { padding: 3rem 0; border-top: 1px solid var(--ac-line); }
.partners-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem 4rem; margin-top: 1.5rem; }
.partners-list a { color: #777; font-family: var(--ac-display); font-size: 1.5rem; font-weight: 900; filter: grayscale(1); opacity: 0.68; }
.partners-list img { max-width: 10rem; max-height: 3rem; object-fit: contain; }
.partners-list a:hover { opacity: 1; }

.join-section { position: relative; overflow: hidden; padding: clamp(5rem, 10vw, 9rem) 0; background: var(--ac-red); color: var(--ac-white); }
.join-section__track { position: absolute; top: 1rem; left: -2rem; width: 110%; overflow: hidden; color: rgb(255 255 255 / 8%); font-family: var(--ac-display); font-size: clamp(5rem, 14vw, 13rem); font-weight: 900; line-height: 0.9; white-space: nowrap; transform: rotate(-3deg); }
.join-section__content { position: relative; display: grid; grid-template-columns: 1.3fr 0.7fr; align-items: end; gap: clamp(3rem, 10vw, 10rem); }
.join-section .eyebrow { color: var(--ac-white); }
.join-section h2 { font-size: clamp(3.7rem, 8vw, 7.5rem); }
.join-section__content > div:last-child p { color: rgb(255 255 255 / 80%); font-size: 1.06rem; }

/* Content and archives */
.page-shell { min-height: 55vh; padding: clamp(5rem, 9vw, 8rem) 0; }
.archive-hero { padding-bottom: 4rem; }
.archive-hero h1,
.single-entry__header h1 { max-width: 1050px; font-size: clamp(3.5rem, 8vw, 7rem); }
.archive-description { max-width: 42rem; margin-top: 1.5rem; color: var(--ac-steel); }
.archive-grid { row-gap: 3.5rem; }
.pagination { margin-top: 4rem; }
.nav-links { display: flex; gap: 0.5rem; }
.page-numbers { display: grid; width: 2.7rem; height: 2.7rem; place-items: center; border: 1px solid var(--ac-line); font-weight: 800; }
.page-numbers.current { border-color: var(--ac-red); background: var(--ac-red); color: var(--ac-white); }
.single-entry__header { padding-bottom: 3rem; }
.single-entry__meta { margin: 1.5rem 0 0; color: var(--ac-steel); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; }
.single-entry__image { margin-bottom: 4rem; }
.single-entry__image img { width: 100%; max-height: 70vh; object-fit: cover; }
.entry-content > * { margin-top: 0; margin-bottom: 1.5rem; }
.entry-content h2 { margin-top: 2.8rem; font-size: clamp(2rem, 5vw, 3.5rem); }
.entry-content h3 { margin-top: 2.2rem; font-size: 1.8rem; }
.entry-content a { color: var(--ac-red); text-decoration: underline; text-underline-offset: 0.2em; }
.entry-content .alignwide { width: min(100vw - (var(--ac-gutter) * 2), var(--ac-shell)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.error-page { display: grid; place-items: center; text-align: center; }
.error-page__code { margin: 0; color: var(--ac-paper); font-family: var(--ac-display); font-size: clamp(8rem, 28vw, 20rem); font-weight: 900; line-height: 0.6; }
.error-page h1 { margin-bottom: 1.5rem; font-size: clamp(2.8rem, 7vw, 5rem); }

/* Footer */
.site-footer { padding-top: 5rem; background: #0d0e10; color: var(--ac-white); }
.site-footer__top { display: grid; grid-template-columns: 1.2fr 1fr 0.8fr; gap: clamp(2.5rem, 7vw, 7rem); padding-bottom: 4rem; }
.footer-brand > p { max-width: 23rem; margin: 1.5rem 0 0; color: rgb(255 255 255 / 46%); font-size: 0.9rem; }
.footer-navigation ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 1.5rem; padding: 0; margin: 0; list-style: none; }
.footer-navigation a { color: rgb(255 255 255 / 68%); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; }
.footer-navigation a:hover,
.footer-contact a:hover { color: var(--ac-red); }
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 0.55rem; }
.footer-contact a { color: rgb(255 255 255 / 72%); font-size: 0.8rem; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 2rem; padding: 1.4rem 0; border-top: 1px solid rgb(255 255 255 / 10%); color: rgb(255 255 255 / 36%); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.site-footer__bottom p { margin: 0; }

@media (max-width: 1100px) {
  .site-navigation ul { gap: 1rem; }
  .site-navigation a { font-size: 0.62rem; }
  .header-cta { display: none; }
  .site-header__inner { grid-template-columns: auto 1fr; }
  .event-row { grid-template-columns: 7rem minmax(0, 1fr) auto; }
  .event-location { display: none; }
  .driver-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { min-height: 34rem; }
}

@media (max-width: 999px) {
  .site-header__inner { grid-template-columns: 1fr auto; min-height: 4.75rem; }
  .menu-toggle { z-index: 2; display: block; justify-self: end; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(3) { transform: translateY(-4px) rotate(-45deg); }
  .site-navigation { position: fixed; inset: 0; display: grid; visibility: hidden; place-items: center; background: rgb(12 13 15 / 98%); opacity: 0; transition: opacity 180ms ease, visibility 180ms ease; }
  .site-navigation.is-open { visibility: visible; opacity: 1; }
  .site-navigation ul { flex-direction: column; gap: 0.2rem; }
  .site-navigation a { padding: 0.55rem; font-family: var(--ac-display); font-size: clamp(1.8rem, 6vw, 3rem); }
  .site-navigation a::after { display: none; }
  .hero { min-height: 52rem; }
  .hero__content { padding-top: 8rem; }
  .hero__scroll { display: none; }
  .manifesto-grid,
  .join-section__content { grid-template-columns: 1fr; }
  .manifesto-body { max-width: 40rem; }
  .results-row { grid-template-columns: 3rem 1.3fr 1fr 0.6fr; }
  .results-row > *:nth-child(3) { display: none; }
  .gallery-grid { min-height: 48rem; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 1fr); }
  .gallery-tile:first-child { grid-row: 1 / 3; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --ac-gutter: 1.15rem; }
  .hero__background { background-image: linear-gradient(90deg, rgb(5 10 15 / 90%) 0%, rgb(5 10 15 / 42%) 90%), linear-gradient(0deg, rgb(5 8 12 / 90%) 0%, transparent 48%), url("../images/hero-motorsport-960.webp"); background-position: 62% center; }
  .hero__content { padding-bottom: 9rem; }
  .hero h1 { font-size: clamp(3.75rem, 18vw, 6.25rem); }
  .hero__lead { max-width: 82%; }
  .hero__rail { flex-wrap: wrap; gap: 0.5rem 1.5rem; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-heading h2 { font-size: clamp(2.7rem, 14vw, 4.2rem); }
  .event-row { min-height: 7rem; grid-template-columns: 5rem 1fr auto; gap: 0.8rem; }
  .event-row:hover { padding-inline: 0; }
  .event-date { display: block; }
  .event-date strong { display: block; font-size: 3rem; }
  .event-info h3 { font-size: 1.25rem; }
  .round-link { width: 2.5rem; height: 2.5rem; }
  .card-grid { grid-template-columns: 1fr; gap: 3rem; }
  .driver-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
  .driver-card__number { font-size: 3.6rem; }
  .driver-card__body { padding: 0.9rem; }
  .driver-card__body h3 { font-size: 1.15rem; }
  .results-table { overflow-x: auto; }
  .results-row { min-width: 38rem; }
  .gallery-grid { display: flex; min-height: 0; overflow-x: auto; scroll-snap-type: x mandatory; }
  .gallery-tile { flex: 0 0 82vw; aspect-ratio: 4 / 5; scroll-snap-align: center; }
  .partners-list { justify-content: flex-start; }
  .join-section h2 { font-size: clamp(3.4rem, 17vw, 5.5rem); }
  .site-footer__top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .site-footer__bottom { flex-direction: column; gap: 0.4rem; }
}

@media (max-width: 782px) {
  .admin-bar .site-header--overlay { top: 46px; }
}

@media (max-width: 430px) {
  .wordmark__text small { display: none; }
  .hero__actions { align-items: stretch; flex-direction: column; width: min(100%, 18rem); }
  .driver-grid { grid-template-columns: 1fr; }
  .driver-card__media { aspect-ratio: 4 / 4.4; }
}

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

@media print {
  .site-header, .site-footer, .hero__scroll, .hero__actions { display: none; }
  .hero { min-height: 0; color: #000; background: #fff; }
  .hero__background, .hero__grid { display: none; }
}
