/* ============================================================
   DRIVEN AS ONE — The Art of Endurance Racing
   A Pindare Films original series · drivenasone.com

   Design system notes
   -------------------
   Sibling to dataatspeed.com (shared: near-black ground, race red,
   Inter body copy) but with its own identity:

   * THE LIGHT ARC — the signature device. A gold -> red -> dusk ->
     midnight gradient standing in for six hours of racing that begin
     in daylight and end in the dark. It rules the section dividers,
     the scroll progress bar, and every accent edge.
   * CINEMA FRAMING — Montserrat, wide-tracked, matching the series'
     own title card. Letterboxed media, vignettes, and a film-grain
     veil over the whole page.
   ============================================================ */

:root {
  /* Ground — deeper and cooler than the book site's black */
  --ink:      #06070b;
  --ink-1:    #0b0e14;
  --ink-2:    #11151d;
  --ink-3:    #191e28;
  --line:     #242a36;
  --line-soft: rgba(255,255,255,0.08);

  /* Race red — the family tie to Data at Speed */
  --red:      #b01822;
  --red-br:   #d21f2b;

  /* Golden hour — this series' own accent */
  --sun:      #e8933a;
  --sun-br:   #ffb95e;
  --dusk:     #6b2450;

  --white:    #ffffff;
  --grey:     #98a0b0;
  --grey-lt:  #d5dae3;

  --display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* The light arc: six hours, left to right */
  --arc: linear-gradient(90deg,
          #ffc266 0%, #e8933a 16%, #d76a2c 30%,
          #d21f2b 46%, #8f2140 60%, #4a2358 74%,
          #221f3e 86%, #0b0e14 100%);

  --shell: 1200px;
}

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

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

body {
  font-family: var(--body);
  background: var(--ink);
  color: var(--grey-lt);
  line-height: 1.75;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sun-br); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--white); }

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

:focus-visible {
  outline: 2px solid var(--sun-br);
  outline-offset: 3px;
}

/* ---------- Film grain veil ---------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 900;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainshift 0.9s steps(4) infinite;
  will-change: transform;
}
@keyframes grainshift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2%, 1%); }
  50%  { transform: translate(1%, -2%); }
  75%  { transform: translate(-1%, -1%); }
  100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.12;
  font-weight: 700;
}
h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  letter-spacing: 0.06em;
  margin-bottom: 1.4rem;
}
h3 { font-size: 1.15rem; letter-spacing: 0.14em; }
p + p { margin-top: 1.1rem; }
strong { color: var(--white); font-weight: 600; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }
.shell-narrow { max-width: 820px; }
.center { text-align: center; }

.section { padding: clamp(72px, 11vw, 132px) 0; position: relative; }
.section-1 { background: var(--ink-1); }

.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.68rem;
  color: var(--sun);
  margin-bottom: 1.3rem;
}
.eyebrow-red { color: var(--red-br); }

.lede {
  font-size: clamp(1.05rem, 1.9vw, 1.28rem);
  line-height: 1.68;
  color: var(--grey-lt);
  max-width: 44ch;
}
.center .lede, .lede.center { margin-left: auto; margin-right: auto; }
.muted { color: var(--grey); }

/* ---------- The light arc ---------- */
.arc {
  height: 3px;
  background: var(--arc);
  border: 0;
}
.arc-rule {
  width: 96px;
  height: 3px;
  background: var(--arc);
  margin-bottom: 1.8rem;
}
.center .arc-rule, .arc-rule.center { margin-left: auto; margin-right: auto; }

/* The hour scale — the six-hour light arc, labelled */
.arcbar { margin-top: clamp(40px, 5vw, 62px); }
.arcbar-track {
  height: 6px;
  background: var(--arc);
  position: relative;
  border-radius: 3px;
}
.arcbar-track::after {
  content: "";
  position: absolute;
  inset: -14px 0 -14px 0;
  background: var(--arc);
  filter: blur(22px);
  opacity: 0.4;
  z-index: -1;
}
.arcbar-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-family: var(--display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--grey);
}
.arcbar-labels span:last-child { color: var(--grey-lt); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  font-size: 0.76rem;
  padding: 15px 30px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease,
              border-color 0.25s ease, transform 0.25s ease;
}
.btn-sun {
  background: var(--white);
  color: var(--ink);
  position: relative;
}
.btn-sun:hover { background: var(--sun-br); color: var(--ink); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,0.35); color: var(--white); }
.btn-ghost:hover {
  border-color: var(--sun-br);
  color: var(--white);
  background: rgba(232,147,58,0.1);
  transform: translateY(-2px);
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-br); color: var(--white); transform: translateY(-2px); }
.btn svg { width: 13px; height: 13px; fill: currentColor; flex: none; }

/* ---------- Race week strip ----------
   Rides inside the fixed header, above the nav bar, until the race has
   run — then the markup gets deleted and nothing else changes. */
.racestrip {
  position: relative;
  background: rgba(17, 21, 29, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.racestrip-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 11px clamp(20px, 5vw, 40px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  text-align: center;
}
.racestrip p { font-size: 0.83rem; color: var(--grey-lt); }
.racestrip strong { color: var(--sun-br); }
.racestrip-tag {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.6rem;
  color: var(--ink);
  background: var(--sun-br);
  padding: 4px 10px;
  white-space: nowrap;
}
.racestrip a {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.63rem;
  color: var(--grey-lt);
  white-space: nowrap;
}
.racestrip a:hover { color: var(--sun-br); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.nav.scrolled {
  background: rgba(6, 7, 11, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-soft), 0 12px 40px rgba(0,0,0,0.6);
}
.nav-progress {
  height: 2px;
  width: 100%;
  background: var(--arc);
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform 0.1s linear;
}
.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px clamp(20px, 5vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: padding 0.35s ease;
}
.nav.scrolled .nav-inner { padding-top: 11px; padding-bottom: 11px; }
.nav-logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  color: var(--white);
  white-space: nowrap;
}
.nav-logo:hover { color: var(--white); }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 32px); }
.nav-links a:not(.btn) {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--grey-lt);
  position: relative;
  padding: 4px 0;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0;
  background: var(--arc);
  transition: width 0.28s ease;
}
.nav-links a:not(.btn):hover { color: var(--white); }
.nav-links a:not(.btn):hover::after { width: 100%; }
.nav-links .btn { padding: 11px 22px; font-size: 0.68rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
  width: 40px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  margin: 5px auto;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  text-align: center;
  padding: 120px 0 96px;
}
.hero-media { position: absolute; inset: 0; }
.hero-media picture { display: block; width: 100%; height: 100%; }
.hero-media video,
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}
/* Vignette + floor gradient so the type always sits on darkness */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(110% 70% at 50% 44%, rgba(6,7,11,0.34) 0%, rgba(6,7,11,0.74) 58%, rgba(6,7,11,0.96) 100%),
    linear-gradient(180deg, rgba(6,7,11,0.82) 0%, rgba(6,7,11,0.34) 30%, rgba(6,7,11,0.6) 70%, var(--ink) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(20px, 5vw, 40px);
  width: 100%;
  max-width: 1240px;
}

.hero-kicker {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  font-size: clamp(0.56rem, 1.35vw, 0.72rem);
  color: var(--grey-lt);
  margin-bottom: clamp(22px, 4vw, 34px);
  text-indent: 0.42em;
}

/* The wordmark — matched to the series' own title card */
.hero-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.75rem, 6.6vw, 5rem);
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  line-height: 1.04;
  color: var(--white);
  text-shadow: 0 6px 60px rgba(0,0,0,0.75);
}
.hero-sub {
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  font-size: clamp(0.58rem, 1.7vw, 0.9rem);
  color: var(--grey-lt);
  margin-top: clamp(16px, 2.6vw, 24px);
}
.hero-arc {
  width: min(560px, 80%);
  height: 2px;
  background: var(--arc);
  margin: clamp(26px, 4.4vw, 40px) auto clamp(24px, 4vw, 34px);
  opacity: 0.95;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-badge {
  position: relative;
  z-index: 2;
  margin-top: clamp(34px, 5vw, 52px);
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  font-size: 0.66rem;
  color: var(--sun-br);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.hero-badge::before, .hero-badge::after {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.hero-scroll {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 24px; height: 40px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 13px;
}
.hero-scroll::after {
  content: "";
  position: absolute;
  top: 7px; left: 50%;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  background: var(--sun-br);
  border-radius: 2px;
  animation: scrollcue 1.9s ease-out infinite;
}
@keyframes scrollcue {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(15px); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- Trailer ---------- */
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  width: 100%;
}
.player-glow {
  position: relative;
  margin-top: 3rem;
}
/* The light arc, blurred, blooming out from behind the player */
.player-glow::before {
  content: "";
  position: absolute;
  inset: 24% 6% -4% 6%;
  background: var(--arc);
  filter: blur(60px);
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}
.player-glow .player { position: relative; z-index: 1; }
.player img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease, filter 0.5s ease;
  filter: brightness(0.78);
}
.player:hover img { transform: scale(1.03); filter: brightness(0.9); }
.player iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: linear-gradient(180deg, rgba(6,7,11,0.1), rgba(6,7,11,0.55));
}
.player-play span.disc {
  width: clamp(62px, 9vw, 88px);
  height: clamp(62px, 9vw, 88px);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6);
  background: rgba(6,7,11,0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.player:hover .player-play span.disc {
  background: var(--white);
  border-color: var(--white);
  transform: scale(1.06);
}
.player-play svg {
  width: 22px; height: 22px;
  fill: var(--white);
  margin-left: 4px;
  transition: fill 0.3s ease;
}
.player:hover .player-play svg { fill: var(--ink); }
.player-play em {
  font-family: var(--display);
  font-style: normal;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  font-size: 0.68rem;
  color: var(--white);
}
.player-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 1.2rem;
  font-family: var(--display);
  font-size: 0.64rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--grey);
}

/* ---------- Beats (the trailer's own three lines) ---------- */
.beats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.6vw, 32px);
  margin-top: 3.4rem;
}
.beat {
  background: var(--ink-2);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.beat:hover { transform: translateY(-6px); border-color: #333a48; }
.beat-img { aspect-ratio: 16 / 9; overflow: hidden; }
.beat-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.86);
  transition: transform 0.7s ease, filter 0.5s ease;
}
.beat:hover .beat-img img { transform: scale(1.05); filter: saturate(1) brightness(1); }
.beat-body { padding: 30px 28px 34px; flex: 1; }
.beat-body h3 {
  font-size: 0.92rem;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  line-height: 1.5;
}
.beat-body p { color: var(--grey); font-size: 0.94rem; }
.beat-index {
  display: block;
  font-family: var(--display);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: var(--sun);
  margin-bottom: 0.9rem;
}

/* ---------- Quote band ---------- */
.quote-band {
  position: relative;
  padding: clamp(88px, 13vw, 150px) 0;
  background: url("../assets/images/sunset-mountains.jpg") center 62% / cover no-repeat;
  overflow: hidden;
}
.quote-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    var(--ink) 0%, rgba(6,7,11,0.82) 16%, rgba(6,7,11,0.68) 48%,
    rgba(6,7,11,0.88) 84%, var(--ink) 100%);
}
.quote-band .shell { position: relative; }
.quote-band blockquote { max-width: 900px; margin: 0 auto; text-align: center; }
.quote-band p {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.15rem, 3vw, 2.05rem);
  line-height: 1.42;
  color: var(--white);
  letter-spacing: 0.01em;
  text-transform: none;
}
.quote-band cite {
  display: block;
  margin-top: 2rem;
  font-style: normal;
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--sun-br);
}

/* ---------- The setup: three facts ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 3.2rem;
  background: var(--line);
  border: 1px solid var(--line);
}
.fact {
  background: var(--ink-1);
  padding: clamp(30px, 4vw, 46px) clamp(24px, 3vw, 36px);
  position: relative;
}
.fact::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--arc);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.5s ease;
}
.fact:hover::before { transform: scaleX(1); }
.fact-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1;
  color: var(--white);
  letter-spacing: 0.02em;
  margin-bottom: 0.3rem;
}
.fact-label {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.64rem;
  color: var(--sun);
  margin-bottom: 1.3rem;
}
.fact p { color: var(--grey); font-size: 0.94rem; }

/* ---------- Frames / stills grid ---------- */
.frames {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 3.2rem;
}
.frames a {
  display: block;
  overflow: hidden;
  position: relative;
  background: var(--ink-2);
}
.frames img {
  width: 100%; height: 100%;
  aspect-ratio: 2.35 / 1;   /* the trailer's own crop — true frames */
  object-fit: cover;
  filter: saturate(0.82) brightness(0.82);
  transition: transform 0.6s ease, filter 0.4s ease;
}
.frames a:hover img { transform: scale(1.06); filter: saturate(1) brightness(1); }
.frames a.wide { grid-column: span 2; }

/* ---------- The race ---------- */
.race {
  position: relative;
  padding: clamp(76px, 11vw, 128px) 0;
  background:
    linear-gradient(90deg, rgba(6,7,11,0.97) 0%, rgba(6,7,11,0.88) 45%, rgba(6,7,11,0.58) 100%),
    url("../assets/images/sunset-circuit.jpg") right 42% / cover no-repeat;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.race-grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: clamp(36px, 5vw, 68px);
  align-items: center;
}
.race-copy p { color: var(--grey-lt); }
.race-copy h2 { margin-bottom: 1.5rem; }

.race-card {
  background: rgba(11, 14, 20, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  padding: clamp(28px, 3.4vw, 40px);
}
.race-facts { display: grid; gap: 0; }
.race-facts > div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.race-facts > div:first-child { padding-top: 0; }
.race-facts dt {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.6rem;
  color: var(--sun);
}
.race-facts dd { color: var(--white); font-size: 0.94rem; line-height: 1.5; }
.race-facts dd span { color: var(--grey); font-size: 0.86rem; }
.race-note {
  margin-top: 22px;
  font-size: 0.8rem;
  color: var(--grey);
  line-height: 1.6;
}

/* ---------- Book crossover ---------- */
.split {
  display: grid;
  grid-template-columns: 4.6fr 6fr;
  gap: clamp(40px, 6vw, 76px);
  align-items: center;
}
.split-media img {
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
  border: 1px solid var(--line);
}
.split-copy p { color: var(--grey); }
.split-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 2.2rem; }

/* ---------- Notify ---------- */
.notify {
  position: relative;
  padding: clamp(80px, 12vw, 132px) 0;
  background: var(--ink-1);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.notify::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--arc);
}
.notify::after {
  content: "";
  position: absolute;
  top: -140px; left: 50%;
  transform: translateX(-50%);
  width: min(900px, 92%);
  height: 260px;
  background: var(--arc);
  filter: blur(90px);
  opacity: 0.22;
  pointer-events: none;
}
.notify .shell { position: relative; }
.notify-form {
  display: flex;
  gap: 12px;
  max-width: 540px;
  margin: 2.4rem auto 0;
  flex-wrap: wrap;
}
.notify-form input[type="email"] {
  flex: 1 1 260px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  color: var(--white);
  font-family: var(--body);
  font-size: 0.95rem;
  padding: 15px 18px;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.notify-form input[type="email"]::placeholder { color: #6d7484; }
.notify-form input[type="email"]:focus {
  outline: none;
  border-color: var(--sun);
  background: var(--ink-3);
}
.notify-form .btn { flex: 0 0 auto; }
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.notify-fine {
  margin-top: 1.6rem;
  font-size: 0.78rem;
  color: #6d7484;
}
.flash {
  max-width: 540px;
  margin: 2.2rem auto 0;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-left-width: 3px;
  background: var(--ink-2);
  font-size: 0.92rem;
  text-align: left;
}
.flash-ok  { border-left-color: var(--sun); color: var(--grey-lt); }
.flash-err { border-left-color: var(--red-br); color: var(--grey-lt); }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  padding: clamp(56px, 8vw, 84px) 0 44px;
  border-top: 1px solid var(--line);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.3em;
  color: var(--white);
}
.footer-logo small {
  display: block;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  color: var(--grey);
  margin-top: 8px;
}
.footer nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer nav a {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--grey);
}
.footer nav a:hover { color: var(--white); }

/* Production credits, set like an end-title card */
.credits {
  padding: 40px 0 34px;
  text-align: center;
  font-family: var(--display);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6d7484;
  line-height: 2.5;
}
.credits b { color: var(--grey-lt); font-weight: 600; letter-spacing: 0.2em; }
.credits .credits-lede { color: var(--grey); letter-spacing: 0.26em; }

.colophon {
  text-align: center;
  font-size: 0.76rem;
  color: #575e6d;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}
.colophon a { color: #7d8494; }
.colophon a:hover { color: var(--grey-lt); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(4,5,8,0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  box-shadow: 0 30px 100px rgba(0,0,0,0.9);
  border: 1px solid var(--line);
}
.lightbox-close {
  position: absolute;
  top: 16px; right: 24px;
  background: none;
  border: 0;
  color: var(--white);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1),
              transform 0.8s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .beats { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .race-grid { grid-template-columns: 1fr; }
  .race { background-position: center 30%; }
  .split-media { max-width: 380px; margin: 0 auto; }
  .frames { grid-template-columns: repeat(2, 1fr); }
  .frames a.wide { grid-column: span 2; }

  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 82vw);
    background: var(--ink-1);
    border-left: 1px solid var(--line);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
    box-shadow: -20px 0 60px rgba(0,0,0,0.7);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a:not(.btn) { font-size: 0.86rem; }
}
@media (max-width: 700px) {
  /* Keep race week to a single compact line so it never eats the hero */
  .racestrip-inner { gap: 9px; padding: 8px 16px; }
  .racestrip p { font-size: 0.72rem; line-height: 1.45; }
  .racestrip-tag { font-size: 0.53rem; padding: 3px 7px; }
  .racestrip a { font-size: 0.58rem; }
  .wide-only { display: none; }
}
@media (max-width: 560px) {
  .frames { grid-template-columns: 1fr; }
  .frames a.wide { grid-column: span 1; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .player-meta { justify-content: center; text-align: center; }
  .footer-top { flex-direction: column; }
}
