:root {
  color-scheme: dark;
  --ink: #f5ebe1;
  --muted: #bfb0a5;
  --gold: #e6aa70;
  --gold-light: #ffe6bb;
  --copper: #80603d;
  --line: #49352b;
  --surface: #100e0d;
  --panel: #171210;
  --frame: 78rem;
  font-family: system-ui, sans-serif;
  background: var(--surface);
  color: var(--ink);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body, figure, dl, dd { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }
a, summary { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 6rem; }
.frame { width: min(var(--frame), calc(100% - 8rem)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 10; top: 1rem; left: 1rem; translate: 0 -200%; background: var(--gold-light); padding: .75rem 1rem; color: var(--surface); }
.skip-link:focus { translate: 0; }

.site-header { position: sticky; top: 0; z-index: 5; background: #100e0df7; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 4.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .85rem; color: var(--ink); text-decoration: none; white-space: nowrap; font-size: 1.03rem; font-weight: 850; font-style: italic; text-transform: uppercase; letter-spacing: .04em; }
.brand b { color: var(--gold); }
.compass { display: inline-grid; place-items: center; flex: none; width: 2rem; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--copper); background: #1f1510; }
.compass::before { content: ""; width: 76%; aspect-ratio: 1; background: var(--gold); clip-path: polygon(50% 0,59% 37%,79% 21%,63% 41%,100% 50%,63% 59%,79% 79%,59% 63%,50% 100%,41% 63%,21% 79%,37% 59%,0 50%,37% 41%,21% 21%,41% 37%); }
.site-nav, .footer-inner nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.75rem); }
.site-nav a, .footer-inner nav a { color: var(--muted); white-space: nowrap; text-decoration: none; font-size: .875rem; font-weight: 650; }
.site-nav a:hover, .footer-inner nav a:hover { color: var(--gold-light); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.15rem; padding: .65rem 1.35rem; border: 1px solid #e1a76e; border-radius: 3px; background: #da9c63; color: #1c120d; font-size: .92rem; font-weight: 775; text-decoration: none; white-space: nowrap; }
.button:hover { background: #f1b982; border-color: #f1b982; }
.button-small { min-height: 2.45rem; padding-inline: 1.05rem; font-size: .875rem; }
.button-quiet { background: #1b1410c9; color: var(--ink); border-color: #a77c57; }
.button-quiet:hover { background: #39261a; border-color: var(--gold); }

.hero { position: relative; isolation: isolate; display: grid; min-height: clamp(34rem, 48vw, 45rem); overflow: clip; align-items: center; background: #15110e; }
.hero-art, .hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art { z-index: -2; }
.hero-art img { object-fit: cover; object-position: center 53%; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #100d0bf2 0%, #100d0bdc 22%, #100d0b75 48%, #100d0b0a 70%), linear-gradient(0deg, #100e0d 0%, transparent 28%); }
.hero-inner { padding-block: 4.5rem 5.4rem; }
.hero-copy { max-width: 44rem; }
.eyebrow { margin: 0 0 .8rem; color: var(--gold); font-size: .875rem; font-weight: 760; line-height: 1.45; letter-spacing: .15em; text-transform: uppercase; }
.hero-kicker { display: flex; align-items: center; gap: .8rem; }
.hero-kicker::before { content: ""; width: 1.75rem; height: 1px; background: var(--gold); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-weight: 900; text-transform: uppercase; letter-spacing: -.045em; }
h1 { font-size: clamp(3.65rem, 7.1vw, 7.45rem); line-height: .91; }
h1 em { color: var(--gold); font-weight: inherit; }
.hero-copy > p:not(.eyebrow) { margin-top: 1.5rem; max-width: 24rem; color: #e0cfc2; font-size: 1.05rem; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }

.quick-strip { border-block: 1px solid var(--line); background: #1a1410; }
.quick-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.quick-inner a { display: flex; justify-content: center; align-items: center; gap: .7rem; padding: 1rem .4rem; min-height: 3.5rem; color: #d4c0af; text-decoration: none; font-size: .875rem; font-weight: 670; }
.quick-inner a + a { border-left: 1px solid var(--line); }
.quick-inner a:hover { color: var(--gold-light); background: #251b15; }
.strip-light { width: .48rem; aspect-ratio: 1; border: 1px solid #c08b63; rotate: 45deg; flex: none; }

.section { padding-block: clamp(3.25rem, 6vw, 6rem); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.75rem; }
h2 { font-size: clamp(2.15rem, 4.8vw, 4.2rem); line-height: .98; }
.section-heading > p, .garage-grid p:not(.eyebrow), .release-card p:not(.eyebrow), .questions p { color: var(--muted); line-height: 1.65; }
.section-heading > p { max-width: 25rem; }
.race-explorer { display: grid; grid-template-columns: minmax(10rem, .33fr) minmax(0, 1fr); border: 1px solid var(--line); background: var(--panel); }
.mode-picker { align-self: stretch; display: grid; grid-template-rows: repeat(3, 1fr); }
.mode-picker a { display: grid; align-content: center; gap: .24rem; min-height: 4.35rem; padding: .95rem 1.15rem; border-left: 3px solid transparent; color: var(--ink); text-decoration: none; }
.mode-picker a + a { border-top: 1px solid var(--line); }
.mode-picker a:hover, .mode-picker a[aria-selected="true"] { color: var(--gold-light); background: #2a1d16; border-left-color: var(--gold); }
.mode-picker a:focus-visible { position: relative; z-index: 2; outline-offset: -3px; }
.mode-picker a > span { font-size: 1.06rem; font-weight: 760; }
.mode-picker small { font-size: .875rem; color: var(--muted); }
.mode-display { position: relative; isolation: isolate; display: grid; align-items: center; min-height: 18rem; border-left: 1px solid var(--line); }
.mode-display > img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.mode-display::after { position: absolute; z-index: -1; content: ""; inset: 0; background: linear-gradient(90deg, #15100efc, #15100ec9 55%, #15100e43); }
.mode-content { padding: clamp(1.4rem, 4vw, 2.6rem); }
.mode-panel + .mode-panel { margin-top: 1.5rem; }
.enhanced .mode-panel { margin-top: 0; }
h3 { font-size: clamp(1.3rem, 3vw, 2.2rem); line-height: 1.05; }
.mode-panel > p { color: #dfd0c4; max-width: 31rem; min-height: 4.8em; margin-top: .65rem; line-height: 1.6; }
.mode-panel dl { display: flex; flex-wrap: wrap; column-gap: 2rem; row-gap: .65rem; margin-top: .9rem; }
.mode-panel dt { font-size: .875rem; color: #e5b78e; font-weight: 720; }
.mode-panel dd { margin-top: .22rem; font-size: .91rem; }

.garage-section { border-block: 1px solid var(--line); background: #16110f; }
.garage-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(1.5rem, 6vw, 5.5rem); }
.garage-shot { border: 1px solid var(--line); background: #1b1512; }
.garage-shot a { display: block; }
.garage-shot img { width: 100%; height: auto; }
.garage-shot a:hover { filter: brightness(1.12); }
.garage-shot figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; padding: .85rem 1rem; font-size: .875rem; font-weight: 665; }
.garage-shot figcaption span { font-weight: 480; color: var(--muted); }
.garage-grid p:not(.eyebrow) { margin-top: .9rem; }
.feature-list { display: flex; flex-wrap: wrap; gap: .5rem 1rem; padding: 0; margin: 1.25rem 0 0; list-style: none; }
.feature-list li { color: var(--gold-light); border-top: 1px solid var(--copper); padding-top: .45rem; font-size: .875rem; }

.release-section { padding-bottom: clamp(1.5rem, 4vw, 3.5rem); }
.release-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1.6rem; padding: clamp(1.4rem, 4.7vw, 3.75rem); border: 1px solid #715139; background: linear-gradient(120deg, #241811, var(--panel) 72%); }
.release-card p:not(.eyebrow) { max-width: 31rem; margin-top: .9rem; }
.release-status { display: flex; align-items: start; gap: .8rem; padding: 1rem 1.25rem; border: 1px solid var(--line); background: #110e0c; }
.release-status strong { font-size: .93rem; }
.release-card .release-status p { margin-top: .2rem; font-size: .875rem; }
.status-dot { flex: none; margin-top: .43rem; width: .5rem; aspect-ratio: 1; border-radius: 50%; background: var(--gold); }

.faq-section { display: grid; grid-template-columns: .45fr 1fr; gap: clamp(1.2rem, 6vw, 5rem); padding-top: clamp(1.5rem, 4vw, 3.5rem); }
.questions { border-top: 1px solid var(--line); }
.questions details { border-bottom: 1px solid var(--line); }
.questions summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; min-height: 3.4rem; cursor: pointer; list-style-type: none; font-weight: 680; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: ""; flex: none; width: .52rem; height: .52rem; margin-right: .25rem; border: solid var(--gold); border-width: 0 1px 1px 0; rotate: 45deg; }
.questions details[open] summary::after { rotate: 225deg; }
.questions summary:hover, .questions a { color: var(--gold-light); }
.questions p { padding: 0 1.5rem 1rem 0; max-width: 40rem; }
.site-footer { border-top: 1px solid var(--line); background: #0c0a09; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5.2rem; }

@media (max-width: 1050px) {
  .frame { width: calc(100% - 4rem); }
  .hero-art img { object-position: 57% 55%; }
}

@media (max-width: 740px) {
  .frame { width: calc(100% - 2.5rem); }
  .header-inner { flex-wrap: wrap; gap: .25rem 1rem; padding-top: .55rem; min-height: auto; }
  .site-nav { width: 100%; order: 3; gap: 1.25rem; }
  .site-nav a { min-height: 2.35rem; display: inline-flex; align-items: center; }
  [id] { scroll-margin-top: 7rem; }
  .hero::after { background: linear-gradient(90deg, #100d0be8 0%, #100d0b9c 50%, #100d0b18 90%), linear-gradient(0deg, #100e0d, transparent 30%); }
  .section-heading { display: grid; }
  .garage-grid { grid-template-columns: 1fr; }
  .garage-grid > div { grid-row: 1; }
  .faq-section { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { min-height: 0; align-items: end; }
  .hero-inner { padding-block: clamp(13.4rem, 55vw, 19rem) 2.3rem; }
  .hero-art img { object-fit: contain; object-position: center top; }
  .hero::after { background: linear-gradient(0deg, #100e0d 0%, #100e0d 42%, #100e0d90 62%, transparent 85%); }
  .hero-copy > p:not(.eyebrow) { margin-top: 1rem; }
  h1 { font-size: clamp(2.5rem, 11vw, 4.2rem); }
  .hero-actions { margin-top: 1.15rem; }
  .quick-inner { grid-template-columns: repeat(2, 1fr); }
  .quick-inner a { justify-content: flex-start; padding-left: .65rem; }
  .quick-inner a:nth-child(n+3) { border-top: 1px solid var(--line); }
  .quick-inner a:nth-child(3) { border-left: 0; }
  .race-explorer { grid-template-columns: 1fr; }
  .mode-picker { grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr; }
  .mode-picker a, .mode-picker a[aria-selected="true"], .mode-picker a:hover { border-left: 0; border-bottom: 2px solid transparent; }
  .mode-picker a { padding: .7rem .45rem; text-align: center; }
  .mode-picker a + a { border-top: 0; border-left: 1px solid var(--line); }
  .mode-picker a[aria-selected="true"], .mode-picker a:hover { border-bottom-color: var(--gold); }
  .mode-picker a > span { font-size: .95rem; }
  .mode-picker small { font-size: .78rem; }
  .mode-display { border: 0; border-top: 1px solid var(--line); min-height: 16rem; }
  .mode-panel > p { min-height: 0; }
  .release-card { grid-template-columns: 1fr; }
  .release-status { justify-self: start; }
  .footer-inner { flex-wrap: wrap; padding-block: 1rem; }
}

@media (max-width: 370px) {
  .frame { width: calc(100% - 1.6rem); }
  .brand { font-size: .875rem; gap: .42rem; }
  .button-small { padding-inline: .6rem; }
  .hero-actions .button { padding-inline: .75rem; }
}

@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }

.header-actions { display: flex; align-items: center; gap: .6rem; }
.text-link { color: var(--gold-light); text-underline-offset: .2em; }
@media (max-width: 740px) { .header-actions { margin-left: auto; } }
