:root {
  --bg: #0b0c0f;
  --ink: #f6f1e8;
  --muted: #b8b1a5;
  --accent: #ff5a1f;
  --accent-2: #ffc857;
  --line: rgba(246, 241, 232, 0.14);
  --panel: rgba(18, 20, 26, 0.78);
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255, 90, 31, 0.18), transparent 60%),
    radial-gradient(900px 500px at 0% 30%, rgba(255, 200, 87, 0.08), transparent 55%),
    var(--bg);
  min-height: 100vh;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 8;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.4rem;
  backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(11,12,15,0.82), rgba(11,12,15,0.08));
}

.brand, .brand-hero {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
}
.brand { font-size: 1.45rem; }
.brand span, .brand-hero em {
  color: var(--accent);
  font-style: normal;
}

.top nav {
  display: flex;
  gap: 1rem;
}
.top a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}
.top a:hover { color: var(--ink); }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 10px;
  padding: 0.35rem 0.55rem;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  background:
    url("https://images.unsplash.com/photo-1568605117036-5fe5e7bab0b7?auto=format&fit=crop&w=1920&q=80")
    center/cover no-repeat;
  transform: scale(1.05);
  animation: drift 20s ease-in-out infinite alternate;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(11,12,15,0.94) 10%, rgba(11,12,15,0.5) 52%, rgba(11,12,15,0.28) 100%),
    linear-gradient(180deg, rgba(11,12,15,0.2), rgba(11,12,15,0.9));
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 7rem 1.4rem 3.4rem;
  max-width: 44rem;
}
.eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  color: var(--accent-2);
  font-weight: 800;
}
.brand-hero {
  font-size: clamp(4rem, 14vw, 7.6rem);
  line-height: 0.88;
  margin: 0 0 1rem;
}
.lead {
  margin: 0 0 1.45rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 34rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: #140d09; }
.btn.ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255,255,255,0.03);
}

.section {
  padding: 4.4rem 1.4rem;
  max-width: 1080px;
  margin: 0 auto;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.5rem);
  margin: 0 0 0.45rem;
  letter-spacing: 0.03em;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 38rem;
}

.news-grid {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1rem;
}
.news-feature, .news-item {
  border-top: 1px solid var(--line);
  padding: 1.15rem 0.1rem 0.4rem;
}
.news-feature {
  grid-row: span 3;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.25rem;
  background:
    linear-gradient(160deg, rgba(255,90,31,0.16), transparent 55%),
    var(--panel);
}
.tag {
  margin: 0 0 0.55rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.news-feature h3, .news-item h3 {
  margin: 0 0 0.55rem;
  font-size: 1.25rem;
  line-height: 1.25;
}
.news-feature p, .news-item p {
  margin: 0 0 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}
.news-feature time, .news-item time {
  color: #8f897f;
  font-size: 0.82rem;
  font-weight: 700;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.4rem 0 1rem;
}
.chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-weight: 700;
  cursor: pointer;
}
.chip.active, .chip:hover {
  color: #140d09;
  background: var(--accent);
  border-color: var(--accent);
}

.calendar { display: grid; gap: 0.55rem; }
.cal-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0.2rem;
  border-bottom: 1px solid var(--line);
}
.cal-row time {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  color: var(--accent-2);
  font-size: 1.05rem;
}
.cal-row h3 { margin: 0 0 0.2rem; font-size: 1.08rem; }
.cal-row p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cal-row.is-hidden { display: none; }

.teams {
  margin-top: 1.7rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.team {
  padding: 1.15rem 0.1rem 1rem;
  border-top: 1px solid var(--line);
}
.team h3 { margin: 0 0 0.3rem; }
.team .meta {
  margin: 0 0 0.55rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.team p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.table-wrap {
  margin-top: 1.5rem;
  overflow-x: auto;
  border-top: 1px solid var(--line);
}
.drivers {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.drivers th, .drivers td {
  text-align: left;
  padding: 0.85rem 0.55rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}
.drivers th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.drivers tbody tr {
  transition: background 0.2s ease;
}
.drivers tbody tr:hover {
  background: rgba(255, 90, 31, 0.08);
}

.about { padding-bottom: 2rem; }

footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.4rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.88rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@keyframes drift {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.6%, -1.1%, 0); }
}

@media (max-width: 860px) {
  .news-grid, .teams { grid-template-columns: 1fr; }
  .news-feature { grid-row: auto; }
  .cal-row { grid-template-columns: 1fr; gap: 0.35rem; }
  .top nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    padding: 0.85rem;
    background: rgba(12, 13, 16, 0.96);
    border: 1px solid var(--line);
    border-radius: 14px;
  }
  .top nav.open { display: flex; }
  .nav-toggle { display: inline-flex; }
}
