:root {
  --bg: #0d0f13;
  --bg-2: #151820;
  --bg-3: #1d212b;
  --text: #eef1f6;
  --muted: #a9b1bf;
  --light: #f3f4f6;
  --light-2: #ffffff;
  --ink: #12151b;
  --ink-muted: #4a5260;
  --accent: #ff5a1f;
  --accent-dark: #b93a0b;
  --line: rgba(255, 255, 255, 0.1);
  --line-dark: #dde0e6;
  --radius: 6px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6em; }
p { margin: 0 0 1em; }
a { color: inherit; }
address { font-style: normal; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 780px; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--accent); color: var(--ink);
  font-weight: 700; text-decoration: none; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 15, 19, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }

.brand { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; }
.brand-name {
  font-size: 1.55rem; font-weight: 800; font-style: italic;
  letter-spacing: -0.02em; text-transform: uppercase;
}
.brand-name em { font-style: italic; color: var(--accent); }
.brand-form {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em;
  color: var(--muted); border: 1px solid var(--line); padding: 1px 6px; border-radius: 3px;
}

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.site-nav a {
  display: block; padding: 8px 14px; text-decoration: none; font-weight: 600;
  font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text);
  border-radius: var(--radius);
}
.site-nav a:hover { color: var(--accent); }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; cursor: pointer;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
  position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute; left: 11px; width: 20px; height: 2px; background: var(--text);
  content: ""; transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bar { top: 20px; }
.nav-toggle-bar::before { left: 0; top: -6px; }
.nav-toggle-bar::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 767px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px 20px 16px; gap: 0; }
  .site-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; font-weight: 700; font-size: 1rem;
  text-decoration: none; text-transform: uppercase; letter-spacing: 0.05em;
  border-radius: var(--radius); border: 2px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: #ff7a47; }
.btn-ghost { border-color: var(--text); color: var(--text); }
.btn-ghost:hover { background: var(--text); color: var(--ink); }
.btn-link { padding: 0 8px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.btn-link:hover { color: var(--text); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 0.9rem; }

/* Racing details */
.kerb {
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 36px, #f3f4f6 36px 72px);
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(255, 90, 31, 0.18), transparent 60%),
    repeating-linear-gradient(115deg, transparent 0 46px, rgba(255, 255, 255, 0.025) 46px 48px),
    linear-gradient(160deg, #11141a 0%, var(--bg) 70%);
}
.hero::after {
  content: ""; position: absolute; right: -40px; top: 0; bottom: 10px; width: 120px;
  background: repeating-conic-gradient(rgba(255, 255, 255, 0.07) 0 25%, transparent 0 50%) 0 0 / 24px 24px;
  transform: skewX(-12deg); pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; gap: 40px; align-items: center;
  padding-top: 72px; padding-bottom: 80px;
}
.eyebrow, .section-kicker {
  font-family: var(--mono); font-size: 0.82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent); margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.8rem); font-weight: 800; font-style: italic;
  text-transform: uppercase; letter-spacing: -0.02em; max-width: 16ch;
}
.hero h1 .accent { color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 58ch; margin-bottom: 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.pitboard {
  background: var(--bg-2); border: 1px solid var(--line);
  border-left: 6px solid var(--accent); border-radius: var(--radius);
  padding: 24px 26px; font-family: var(--mono);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.pitboard-title {
  font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.pitboard dl { margin: 0; }
.pitboard dl div { padding: 10px 0; border-top: 1px solid var(--line); }
.pitboard dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.pitboard dd { margin: 2px 0 0; font-size: 1.02rem; font-weight: 600; color: var(--text); }

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.5fr 1fr; padding-top: 104px; padding-bottom: 112px; }
}

/* Sections */
.section { padding: 80px 0; }
.section h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; letter-spacing: -0.01em; }
.section-intro { max-width: 64ch; font-size: 1.1rem; }
.section-light { background: var(--light); color: var(--ink); }
.section-light .section-kicker { color: var(--accent-dark); }
.section-light .section-intro { color: var(--ink-muted); }
.section-dark { background: var(--bg); }
.section-dark .section-intro { color: var(--muted); }

.cards { display: grid; gap: 20px; margin-top: 36px; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative; background: var(--light-2); border: 1px solid var(--line-dark);
  border-radius: var(--radius); padding: 30px 26px 26px; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--accent) 0 60%, var(--ink) 60% 100%);
}
.card-num {
  display: inline-block; font-family: var(--mono); font-weight: 700; font-size: 0.85rem;
  color: var(--accent-dark); letter-spacing: 0.1em; margin-bottom: 10px;
}
.card h3 { font-size: 1.25rem; }
.card p { color: var(--ink-muted); margin: 0; }

.disciplines {
  background:
    repeating-linear-gradient(115deg, transparent 0 46px, rgba(255, 255, 255, 0.025) 46px 48px),
    var(--bg-2);
}
.chips { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.chips li {
  padding: 12px 20px; background: var(--bg-3); border: 1px solid var(--line);
  border-radius: 999px; font-weight: 600; font-size: 0.98rem;
}
.chips li::before { content: "▸"; color: var(--accent); margin-right: 10px; }

.about { display: grid; gap: 40px; align-items: start; }
.about p { color: var(--ink-muted); max-width: 62ch; }
@media (min-width: 900px) { .about { grid-template-columns: 1.4fr 1fr; } }
.facts {
  list-style: none; margin: 0; padding: 8px 24px; background: var(--ink); color: var(--text);
  border-radius: var(--radius); border-top: 5px solid var(--accent);
}
.facts li { padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.facts li:last-child { border-bottom: 0; }
.facts span {
  display: block; font-family: var(--mono); font-size: 0.75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted);
}

.contact-grid { display: grid; gap: 20px; margin-top: 36px; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.contact-card h3 {
  font-family: var(--mono); font-size: 0.82rem; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--accent);
}
.contact-card p:last-child { margin-bottom: 0; }
.contact-link { font-size: 1.3rem; font-weight: 700; text-decoration: none; }
.contact-link:hover { color: var(--accent); }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: 4px 0; }
.plain-list a { font-weight: 600; text-underline-offset: 4px; }
.plain-list a:hover { color: var(--accent); }

/* Legal pages */
.page-head {
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(255, 90, 31, 0.16), transparent 60%),
    linear-gradient(160deg, #11141a 0%, var(--bg) 70%);
}
.page-head .container { padding-top: 64px; padding-bottom: 48px; }
.page-head h1 {
  font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 800; font-style: italic;
  text-transform: uppercase; letter-spacing: -0.01em;
}
.page-head p { color: var(--muted); margin: 0; }

.legal { background: var(--light); color: var(--ink); padding: 56px 0 72px; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; padding-top: 0.2em; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.08rem; margin-top: 1.4em; }
.legal p, .legal li, .legal address { color: #2e3440; }
.legal ul { padding-left: 1.3em; margin: 0 0 1em; }
.legal address { margin-bottom: 1em; }
.legal a { color: var(--accent-dark); text-underline-offset: 3px; }

/* Footer */
.site-footer { background: #08090c; color: var(--muted); font-size: 0.95rem; border-top: 1px solid var(--line); }
.footer-inner { display: grid; gap: 28px; padding-top: 48px; padding-bottom: 32px; }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 1.2fr 1.2fr 1fr; } }
.footer-brand {
  color: var(--text); font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: 1.1rem; margin-bottom: 8px;
}
.site-footer a { color: var(--text); text-underline-offset: 3px; }
.site-footer a:hover { color: var(--accent); }
.site-footer p { margin: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 18px; padding-bottom: 24px; font-size: 0.88rem; }
