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

    :root {
      --red: #E10600;
      --green: #00C853;
      --white: #FFFFFF;
      --black: #000000;
      --surface: #0D0D0D;
      --muted: rgba(255,255,255,0.5);
    }

    html { scroll-behavior: smooth; }

    body {
      background: var(--black);
      color: var(--white);
      font-family: 'Orbitron', sans-serif;
      min-height: 100vh;
      overflow-x: hidden;
    }

    /* ══════════════════════════════
       LIGHTS OUT INTRO
    ══════════════════════════════ */
    #lights-screen {
      position: fixed;
      inset: 0;
      background: #000;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 40px;
      z-index: 1000;
      transition: opacity .7s ease;
    }
    #lights-screen.hidden { opacity: 0; pointer-events: none; }

    .lights-row { display: flex; gap: 28px; }

    .light {
      width: 64px; height: 64px;
      border-radius: 50%;
      background: #1a0000;
      border: none;
      transition: background .12s, box-shadow .12s;
    }
    .light.on {
      background: var(--red);
      box-shadow: 0 0 28px 10px rgba(225,6,0,.8), 0 0 56px 22px rgba(225,6,0,.35);
    }
    .light.go {
      background: var(--green);
      box-shadow: 0 0 28px 10px rgba(0,200,83,.8), 0 0 56px 22px rgba(0,200,83,.35);
    }
    .lights-label {
      font-family: "Racing Sans One", sans-serif;
      font-size: 1rem;
      letter-spacing: .38em;
      color: rgba(255,255,255,.35);
    }

    /* ══════════════════════════════
       MAIN
    ══════════════════════════════ */
    /* Fade-in is part of the lights-out intro — scope to the front page only.
       body.apex-intro is added via body_class filter (see inc/theme-setup.php),
       so inner pages stay readable instead of being permanently invisible. */
    body.apex-intro main { opacity: 0; transition: opacity .9s ease; }
    body.apex-intro main.visible { opacity: 1; }

    /* ══════════════════════════════
       HERO
    ══════════════════════════════ */
    .hero {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 48px 24px 80px;
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    /* ── HELMET — layered cinematic stage (streaks + halo + image) ── */
    .hero-helmet {
      position: absolute;
      inset: 0;
      z-index: 0;
      overflow: hidden;
      pointer-events: none;
    }

    /* Horizontal speed streaks — entry choreography */
    .helmet-streaks { position: absolute; inset: 0; }
    .helmet-streaks i {
      position: absolute;
      top: var(--y);
      left: 0;
      width: 100%;
      height: 1px;
      background: linear-gradient(90deg,
        transparent 0%,
        rgba(225,6,0,.0) 8%,
        rgba(225,6,0,.45) 50%,
        rgba(255,255,255,.7) 88%,
        transparent 100%);
      opacity: 0;
      transform: scaleX(0);
      transform-origin: left center;
      filter: blur(.6px);
      will-change: transform, opacity;
    }

    /* Radial halo behind the helmet — heartbeat glow */
    .helmet-halo {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 75vmin;
      height: 75vmin;
      transform: translate(-50%, -50%);
      background: radial-gradient(circle,
        rgba(225,6,0,.20) 0%,
        rgba(225,6,0,.07) 32%,
        transparent 70%);
      opacity: 0;
      filter: blur(24px);
      pointer-events: none;
      will-change: transform, opacity;
    }

    /* Stage — fills the hero so the image acts as a true backdrop */
    .helmet-stage {
      position: absolute;
      inset: 0;
      will-change: transform;
      perspective: 1400px;
    }

    .helmet-stage img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center 38%;
      /* FALLBACK: visible by default, GSAP overrides for entry choreography.
         If GSAP fails to load (offline, CDN blocked) the helmet still shows. */
      opacity: 1;
      transform: scale(1.08);
      filter: brightness(.85);
      will-change: transform, opacity, filter;
      user-select: none;
      -webkit-user-drag: none;
    }

    /* Halo also has a soft fallback opacity so the scene reads if JS doesn't run */
    .helmet-halo { opacity: .65; }

    /* Vignette + darken overlay — readable text without smothering the helmet */
    .hero-helmet::after {
      content: '';
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse 82% 72% at 50% 45%, rgb(0 0 0 / 93%) 0%, rgba(0, 0, 0, .38) 62%, rgba(0, 0, 0, .78) 100%), linear-gradient(to bottom, rgb(0 0 0) 0%, rgb(0 0 0 / 58%) 22%, rgba(0, 0, 0, .22) 60%, rgba(0, 0, 0, .92) 94%, rgba(0, 0, 0, 1) 100%);
      pointer-events: none;
    }

    @media (max-width: 768px) {
      .helmet-stage img { object-position: center 30%; }
      .helmet-halo {
        width: 95vmin;
        height: 95vmin;
        top: 38%;
      }
    }

    /* All hero content sits ABOVE the helmet backdrop.
       :not(.hero-helmet) is critical — otherwise this rule (same specificity,
       defined later than .hero-helmet) overrides `position: absolute` on the
       backdrop and collapses it to a 0-height inline element, hiding the image. */
    .hero > *:not(.hero-helmet) { position: relative; z-index: 1; }

    /* ══════════════════════════════
       LOGO — ANIMATED, F1 CAR DRIVES PAST
    ══════════════════════════════ */
    .logo-wrap {
      margin-bottom: 32px;
      position: relative;
      display: inline-block;
      min-height: 1.2em;
    }

    /* Track line the car drives on, aligned with logo vertical center */
    .car-track {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 100vw;
      height: 0;
      transform: translate(-50%, -50%);
      pointer-events: none;
      overflow: visible;
    }

    /* F1 car SVG — viewBox 400x90 (4.4:1, true F1 proportions).
       Animation gated by .intro-running so GSAP syncs it with the foreground stagger. */
    .f1-car {
      position: absolute;
      top: 50%;
      left: -380px;
      width: 340px;
      height: auto;
      /* scaleX(-1) flips the SVG horizontally so the car faces the direction it drives (left → right). */
      transform: translateY(-52%) scaleX(-1);
      filter: drop-shadow(0 6px 18px rgba(225,6,0,.55)) drop-shadow(0 2px 6px rgba(0,0,0,.8));
    }
    .intro-running .f1-car {
      animation: carDriveBy 1.2s cubic-bezier(.4,0,.2,1) 0s both;
    }

    @keyframes carDriveBy {
      0%   { left: -380px; opacity: 0; }
      6%   { opacity: 1; }
      94%  { opacity: 1; }
      100% { left: 115vw; opacity: 0; }
    }

    /* Motion blur streaks — wider and more dramatic */
    .car-track::before {
      content: '';
      position: absolute;
      top: 50%;
      left: -300px;
      width: 200px;
      height: 2px;
      transform: translateY(-50%);
      background: linear-gradient(90deg,
        transparent 0%,
        rgba(225,6,0,.3) 30%,
        rgba(225,6,0,.7) 60%,
        rgba(255,255,255,.5) 85%,
        transparent 100%);
      filter: blur(1.5px);
    }
    .intro-running .car-track::before {
      animation: trailDriveBy 1.2s cubic-bezier(.4,0,.2,1) 0.01s both;
    }
    .car-track::after {
      content: '';
      position: absolute;
      top: 50%;
      left: -300px;
      width: 140px;
      height: 1px;
      transform: translateY(calc(-50% + 12px));
      background: linear-gradient(90deg,
        transparent 0%,
        rgba(225,6,0,.2) 40%,
        rgba(255,255,255,.3) 80%,
        transparent 100%);
      filter: blur(2px);
    }
    .intro-running .car-track::after {
      animation: trailDriveBy 1.2s cubic-bezier(.4,0,.2,1) 0.01s both;
    }
    @keyframes trailDriveBy {
      0%   { left: -320px; opacity: 0; }
      6%   { opacity: 1; }
      94%  { opacity: 1; }
      100% { left: 113vw; opacity: 0; }
    }

    .logo {
      font-family: "Racing Sans One", sans-serif;
      font-size: clamp(3rem, 8vw, 5rem);
      letter-spacing: 25px;
      padding: 8px 22px;
      border-radius: 5px;
      color: var(--white);
      display: block;
      text-align: center;
      position: relative;
      text-shadow: 0 0 0px rgba(225, 6, 0, 0);
    }

    @keyframes logoEntry {
      0% {
        opacity: 0;
        transform: translateX(-30px) scaleX(1.1);
        filter: blur(6px) brightness(2.2);
        text-shadow: 12px 0 26px rgba(225,6,0,1), -6px 0 18px rgba(255,255,255,.6);
      }
      50% {
        filter: blur(1px) brightness(1.4);
        text-shadow: 4px 0 14px rgba(225,6,0,.6);
      }
      100% {
        opacity: 1;
        transform: translateX(0) scaleX(1);
        filter: blur(0) brightness(1);
        text-shadow: 0 0 0 transparent;
      }
    }

    /* Underline dash — entry handled by GSAP */
    .logo-dash {
      display: block;
      width: 38px;
      height: 3px;
      background: var(--red);
      margin: 8px auto 0;
      transform-origin: center;
    }
    @keyframes dashEntry {
      0% { width: 0; opacity: 0; }
      100% { width: 38px; opacity: 1; }
    }

    /* Chromatic aberration flicker on hover */
    .logo:hover {
      animation: glitch .35s steps(2) both;
    }
    @keyframes glitch {
      0%   { text-shadow: 3px 0 var(--red), -3px 0 rgba(0,200,255,.7); transform: translateX(-2px); }
      25%  { text-shadow: -3px 0 var(--red), 3px 0 rgba(0,200,255,.7); transform: translateX(2px); }
      50%  { text-shadow: 2px 0 var(--red), -2px 0 rgba(0,200,255,.7); transform: translateX(-1px); }
      75%  { text-shadow: -1px 0 var(--red); transform: translateX(1px); }
      100% { text-shadow: none; transform: translateX(0); }
    }

    /* ══════════════════════════════
       HEADLINE
    ══════════════════════════════ */
    h1 {
      font-family: "Racing Sans One", sans-serif;
      font-size: clamp(2.6rem, 4.5vw, 5.5rem);
      line-height: 1.0;
      letter-spacing: .02em;
      max-width: 80%;
      margin-bottom: 24px;
      text-transform: uppercase;
      /* slight text shadow to pop over helmet */
      text-shadow: 0 2px 24px rgba(0,0,0,.8), 0 0 60px rgba(0,0,0,.6);
      /* Entry handled by GSAP */
    }
    h1 span { color: var(--red); }

    .subtitle {
      font-size: clamp(.88rem, 2vw, 1.05rem);
      font-weight: 300;
      color: rgba(255,255,255,.80);
      max-width: 100%;
      white-space: nowrap;
      line-height: 1.75;
      letter-spacing: 1.2px;
      margin-bottom: 20px;
      text-shadow: 0 1px 8px rgba(0,0,0,.9);
      /* Entry handled by GSAP */
    }

    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(22px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* ══════════════════════════════
       URGENCY BADGE
    ══════════════════════════════ */
    .urgency {
      display: inline-flex;
      align-items: center;
      flex-wrap: wrap;
      justify-content: center;
      gap: 8px 14px;
      max-width: 100%;
      background: rgba(0,0,0,.22);
      backdrop-filter: blur(6px);
      border: none;
      border-radius: 4px;
      padding: 10px 20px;
      font-size: .8rem;
      font-weight: 500;
      letter-spacing: .06em;
      color: rgba(255,255,255,.8);
      margin-bottom: 32px;
      /* Entry handled by GSAP */
    }
    .urgency .pct { color: var(--red); font-weight: 700; }
    .urgency-item {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      white-space: nowrap;
    }
    .urgency-icon { color: rgba(255,255,255,.8); flex-shrink: 0; }
    .urgency-sep { color: rgba(255,255,255,.3); user-select: none; }

    /* ══════════════════════════════
       CTA BUTTON
    ══════════════════════════════ */
    .cta-wrap {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      /* Entry handled by GSAP */
    }

    #cta-btn {
      display: flex;
      align-items: center;
      gap: 14px;
      background: var(--red);
      color: #fff;
      border: none;
      border-radius: 4px;
      padding: 18px 44px;
      font-family: 'Orbitron', sans-serif;
      font-size: 1.25rem;
      letter-spacing: .18em;
      font-weight: 500;
      cursor: pointer;
      transition: background .3s, transform .15s, box-shadow .3s;
    }
    #cta-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 32px rgba(225,6,0,.5);
    }
    #cta-btn:active { transform: translateY(0); }
    #cta-btn.activated {
      background: var(--green);
      box-shadow: 0 0 32px rgba(0,200,83,.45);
      pointer-events: none;
    }
    .btn-dot {
      width: 11px; height: 11px;
      border-radius: 50%;
      background: rgba(255,255,255,.5);
      flex-shrink: 0;
      transition: background .3s;
    }
    #cta-btn.activated .btn-dot { background: #fff; }

    .cta-note {
      font-size: .72rem;
      color: var(--muted);
      letter-spacing: .04em;
    }

    /* ══════════════════════════════
       FORM SECTION
    ══════════════════════════════ */
    #form-section {
      background: var(--surface);
      padding: 72px 24px 96px;
      display: none;
    }
    #form-section.show { display: block; transition:0.5s ease-in-out; height: 100vh; }

    .form-inner { max-width: 80%; margin: 0 auto; }

    .form-eyebrow {
      font-family: "Racing Sans One", sans-serif;
      font-size: .85rem;
      letter-spacing: 0;
      color: var(--red);
      margin-bottom: 10px;
    }
    .form-title {
      font-family: "Racing Sans One", sans-serif;
      font-size: clamp(1.3rem, 5vw, 2.5rem);
      letter-spacing: 0;
      margin-bottom: 8px;
    }
    .form-sub {
      font-size: .88rem;
      color: var(--muted);
      margin-bottom: 36px;
      line-height: 1.65;
    }

    .field { margin-bottom: 18px; }
    .field label {
      display: block;
      font-size: .72rem;
      letter-spacing: .1em;
      color: var(--muted);
      text-transform: uppercase;
      margin-bottom: 7px;
    }
    .field input {
      width: 100%;
      background: #141414;
      border: 1px solid #2a2a2a;
      border-radius: 4px;
      color: #fff;
      font-family: 'Orbitron', sans-serif;
      font-size: .95rem;
      padding: 14px 16px;
      outline: none;
      transition: border-color .2s;
    }
    .field input:focus { border-color: var(--red); }
    .field input::placeholder { color: #3a3a3a; }

    /* Honeypot — invisible to humans (off-screen + zero-size + no pointer)
       but a regular DOM input that naive bots will dutifully fill in. The
       server rejects any submission where this field is non-empty.
       Multiple isolation strategies on purpose: don't rely on a single rule
       a bot could detect by reading the computed style. */
    .apex-hp {
      position: absolute !important;
      left: -10000px !important;
      top: auto !important;
      width: 1px !important;
      height: 1px !important;
      overflow: hidden !important;
      opacity: 0 !important;
      pointer-events: none !important;
    }
    .apex-hp input { width: 1px; height: 1px; }

    .vip-label {
      font-size: .72rem;
      letter-spacing: .1em;
      color: var(--muted);
      text-transform: uppercase;
      margin-bottom: 10px;
    }
    .vip-group { display: flex; gap: 12px; margin-bottom: 30px; }
    .vip-opt { flex: 1; position: relative; }
    .vip-opt input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
    .vip-opt label {
      display: flex; align-items: center; justify-content: center; gap: 8px;
      padding: 13px 16px;
      border: 1px solid #2a2a2a;
      border-radius: 4px;
      cursor: pointer;
      font-size: .88rem;
      color: var(--muted);
      transition: border-color .2s, color .2s, background .2s;
      user-select: none;
    }
    .vip-opt input:checked + label {
      border-color: var(--red);
      color: #fff;
      background: rgba(225,6,0,.08);
    }

    #submit-btn {
      width: 100%;
      background: var(--red);
      color: #fff;
      border: none;
      border-radius: 4px;
      padding: 16px;
      font-family: "Racing Sans One", sans-serif;
      font-size: 1.15rem;
      letter-spacing: .18em;
      cursor: pointer;
      transition: background .2s, box-shadow .2s;
    }
    #submit-btn:hover {
      background: #c80500;
      box-shadow: 0 6px 24px rgba(225,6,0,.4);
    }

    #success-msg { display: none; text-align: center; padding: 48px 24px; }
    #success-msg .checkmark { font-size: 3rem; margin-bottom: 16px; }
    #success-msg h3 {
      font-family: "Racing Sans One", sans-serif;
      font-size: clamp(3.2rem, 13vw, 6.2rem);
      letter-spacing: .05em;
      line-height: 1.05;
      margin-bottom: 14px;
      color: var(--red);
    }
    #success-msg p { color: var(--muted); font-size: .9rem; }

    /* ══════════════════════════════
       MULTI-STEP WIZARD
    ══════════════════════════════ */
    .progress-track {
      display: flex;
      gap: 5px;
      margin-bottom: 32px;
    }
    .progress-seg {
      flex: 1;
      height: 3px;
      background: #262626;
      border-radius: 2px;
      overflow: hidden;
    }
    .progress-seg .fill {
      height: 100%;
      width: 0%;
      background: var(--red);
      transition: width .4s ease;
    }
    .progress-seg.done .fill { width: 100%; }
    .progress-seg.active .fill { width: 100%; transition: width .5s ease; }

    .step-counter {
      font-size: .7rem;
      letter-spacing: .12em;
      color: var(--muted);
      text-transform: uppercase;
      margin-bottom: 10px;
    }

    .wizard-step { display: none; }
    .wizard-step.active { display: block; animation: stepIn .35s ease both; }
    @keyframes stepIn {
      from { opacity: 0; transform: translateX(16px); }
      to   { opacity: 1; transform: translateX(0); }
    }

    .step-title {
      font-family: "Racing Sans One", sans-serif;
      font-size: clamp(1.5rem, 4vw, 2.1rem);
      letter-spacing: .05em;
      margin-bottom: 26px;
      color: #fff;
      text-transform: uppercase;
      line-height: 1.05;
    }

    .step-question {
      font-family: "Racing Sans One", sans-serif;
      font-size: clamp(1rem, 2.4vw, 1.25rem);
      letter-spacing: .02em;
      margin-bottom: 14px;
      line-height: 1.2;
      color: rgba(255,255,255,.92);
    }

    .q-block { margin-bottom: 30px; }
    .q-block:last-of-type { margin-bottom: 6px; }
    .q-block .choice-list { margin-bottom: 0; }
    .q-block .team-select-wrap select { margin-bottom: 0; }
    .q-block .vip-group { margin-bottom: 0; }

    .choice-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
    .choice-opt { position: relative; }
    .choice-opt input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
    .choice-opt input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
    .choice-opt label {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 15px 18px;
      border: 1px solid #2a2a2a;
      border-radius: 6px;
      cursor: pointer;
      font-size: .92rem;
      color: rgba(255,255,255,.75);
      transition: border-color .2s, color .2s, background .2s, transform .15s;
      user-select: none;
    }
    .choice-opt label:hover { border-color: #444; transform: translateX(2px); }
    .choice-opt input:checked + label {
      border-color: var(--red);
      color: #fff;
      background: rgba(225,6,0,.08);
    }
    .choice-opt .radio-dot-ui {
      width: 16px; height: 16px;
      border-radius: 50%;
      border: 1.5px solid #444;
      flex-shrink: 0;
      position: relative;
      transition: border-color .2s;
    }
    .choice-opt input:checked + label .radio-dot-ui {
      border-color: var(--red);
    }
    .choice-opt input:checked + label .radio-dot-ui::after {
      content: '';
      position: absolute;
      inset: 3px;
      border-radius: 50%;
      background: var(--red);
    }
    /* Multi-select variant (checkbox look: rounded square instead of dot) */
    .choice-opt.multi .radio-dot-ui { border-radius: 4px; }
    .choice-opt.multi input:checked + label .radio-dot-ui::after { border-radius: 2px; }
    .multi-hint {
      font-size: .76rem;
      letter-spacing: .04em;
      color: rgba(255,255,255,.4);
      margin: -8px 0 14px;
    }

    .step-nav {
      display: flex;
      gap: 12px;
    }
    .btn-back {
      background: transparent;
      border: 1px solid #2a2a2a;
      color: var(--muted);
      border-radius: 4px;
      padding: 14px 22px;
      font-family: "Racing Sans One", sans-serif;
      font-size: .95rem;
      letter-spacing: .12em;
      cursor: pointer;
      transition: border-color .2s, color .2s;
    }
    .btn-back:hover { border-color: #555; color: #fff; }
    .btn-next {
      flex: 1;
      background: var(--red);
      color: #fff;
      border: none;
      border-radius: 4px;
      padding: 14px;
      font-family: "Racing Sans One", sans-serif;
      font-size: 1rem;
      letter-spacing: .14em;
      cursor: pointer;
      transition: background .2s, box-shadow .2s, opacity .2s;
    }
    .btn-next:hover { background: #c80500; box-shadow: 0 6px 20px rgba(225,6,0,.35); }
    .btn-next:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }

    /* Loading state — spinner inline, button non-interactive, ~85% opacity.
       The spinner is a pure-CSS rotating ring so it works without GSAP. */
    .btn-next.is-loading {
      pointer-events: none;
      opacity: .85;
    }
    .btn-next.is-loading::before {
      content: '';
      display: inline-block;
      width: 14px; height: 14px;
      border: 2px solid currentColor;
      border-right-color: transparent;
      border-radius: 50%;
      animation: apex-spin .7s linear infinite;
      margin-right: 10px;
      vertical-align: -2px;
    }
    @keyframes apex-spin { to { transform: rotate(360deg); } }

    /* Inline step error — replaces native alert() for validation + server
       failures. role="alert" + aria-live="assertive" set in the template. */
    .step-error {
      background: rgba(225,6,0,.10);
      border: 1px solid rgba(225,6,0,.5);
      border-left: 3px solid var(--red);
      color: #ffb1ac;
      padding: 12px 16px;
      border-radius: 4px;
      margin-bottom: 20px;
      font-size: .88rem;
      line-height: 1.5;
    }
    .step-error[hidden] { display: none; }

    /* Visible focus ring — keyboard users need to see where they are.
       Browser default outline is suppressed by many resets; restore it. */
    .field input:focus-visible,
    .team-select-wrap select:focus-visible,
    .choice-opt input:focus-visible + label,
    .vip-opt input:focus-visible + label,
    .btn-next:focus-visible,
    .btn-back:focus-visible,
    #cta-btn:focus-visible,
    #radio-close-btn:focus-visible {
      outline: 2px solid #fff;
      outline-offset: 2px;
    }

    /* Team select (step 8) */
    .team-select-wrap select {
      width: 100%;
      background: #141414;
      border: 1px solid #2a2a2a;
      border-radius: 4px;
      color: #fff;
      font-family: 'Orbitron', sans-serif;
      font-size: .95rem;
      padding: 14px 16px;
      outline: none;
      cursor: pointer;
      margin-bottom: 28px;
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 14px center;
      background-size: 18px;
    }
    .team-select-wrap select:focus { border-color: var(--red); }
    .team-select-wrap option { background: #141414; color: #fff; }

    /* ══════════════════════════════
       TEAM RADIO OVERLAY
    ══════════════════════════════ */
    #radio-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,.92);
      backdrop-filter: blur(4px);
      z-index: 900;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 24px;
      opacity: 0;
      transition: opacity .4s ease;
    }
    #radio-overlay.show { display: flex; opacity: 1; }

    .radio-card {
      max-width: 540px;
      width: 100%;
      --team-color: var(--red);
      background: linear-gradient(160deg, #141414, #0a0a0a);
      border: 1px solid color-mix(in srgb, var(--team-color) 35%, transparent);
      border-radius: 8px;
      padding: 36px 32px;
      position: relative;
      transform: translateY(24px) scale(.97);
      transition: transform .45s cubic-bezier(.16,1,.3,1);
      box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04);
    }
    #radio-overlay.show .radio-card { transform: translateY(0) scale(1); }

    .radio-header {
      display: flex;
      flex-direction: column;
      gap: 14px;
      margin-bottom: 24px;
    }
    .radio-title-row {
      display: flex;
      align-items: baseline;
      gap: 10px;
      flex-wrap: wrap;
    }
    .radio-title-team {
      font-family: "Racing Sans One", sans-serif;
      font-size: clamp(1.6rem, 6vw, 2.3rem);
      letter-spacing: .04em;
      color: var(--team-color);
      text-shadow: 0 0 18px color-mix(in srgb, var(--team-color) 70%, transparent);
      text-transform: uppercase;
      line-height: 1;
    }
    .radio-title-radio {
      font-family: "Racing Sans One", sans-serif;
      font-size: clamp(1.6rem, 6vw, 2.3rem);
      letter-spacing: .04em;
      color: #fff;
      text-transform: uppercase;
      line-height: 1;
    }
    .radio-meta-row {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .radio-dot {
      width: 9px; height: 9px;
      border-radius: 50%;
      background: var(--team-color);
      box-shadow: 0 0 10px color-mix(in srgb, var(--team-color) 80%, transparent);
      animation: pulseDot 1s ease-in-out infinite;
      flex-shrink: 0;
    }
    @keyframes pulseDot {
      0%, 100% { opacity: 1; }
      50% { opacity: .3; }
    }
    .radio-label {
      font-family: "Racing Sans One", sans-serif;
      font-size: .8rem;
      letter-spacing: .25em;
      color: rgba(255,255,255,.55);
    }

    /* Speaker icon — signals "the Team Principal is speaking" */
    .radio-speaker-icon {
      margin-left: auto;
      flex-shrink: 0;
      width: 54px; height: 54px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--team-color);
      background: color-mix(in srgb, var(--team-color) 12%, transparent);
      border: 1.5px solid color-mix(in srgb, var(--team-color) 40%, transparent);
      border-radius: 50%;
    }
    .radio-speaker-icon svg { width: 32px; height: 32px; }

    .radio-waveform {
      display: flex;
      align-items: center;
      gap: 3px;
      height: 26px;
      padding-bottom: 10px;
      border-bottom: 1px solid color-mix(in srgb, var(--team-color) 45%, transparent);
    }
    .radio-waveform span {
      width: 3px;
      background: var(--team-color);
      box-shadow: 0 0 6px color-mix(in srgb, var(--team-color) 60%, transparent);
      border-radius: 2px;
      animation: wave 0.9s ease-in-out infinite;
    }
    .radio-waveform span:nth-child(1)  { height: 6px;  animation-delay: 0s; }
    .radio-waveform span:nth-child(2)  { height: 11px; animation-delay: .08s; }
    .radio-waveform span:nth-child(3)  { height: 8px;  animation-delay: .16s; }
    .radio-waveform span:nth-child(4)  { height: 16px; animation-delay: .24s; }
    .radio-waveform span:nth-child(5)  { height: 10px; animation-delay: .32s; }
    .radio-waveform span:nth-child(6)  { height: 20px; animation-delay: .4s; }
    .radio-waveform span:nth-child(7)  { height: 13px; animation-delay: .48s; }
    .radio-waveform span:nth-child(8)  { height: 22px; animation-delay: .56s; }
    .radio-waveform span:nth-child(9)  { height: 14px; animation-delay: .64s; }
    .radio-waveform span:nth-child(10) { height: 9px;  animation-delay: .72s; }
    .radio-waveform span:nth-child(11) { height: 17px; animation-delay: .8s; }
    .radio-waveform span:nth-child(12) { height: 7px;  animation-delay: .88s; }
    @keyframes wave {
      0%, 100% { transform: scaleY(.4); }
      50% { transform: scaleY(1); }
    }

    /* Team badge — shown when user selected a favorite F1 team */
    #radio-team-badge-wrap {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .team-badge {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 8px 16px;
      border-radius: 5px;
      font-family: "Racing Sans One", sans-serif;
      font-size: 1rem;
      letter-spacing: .1em;
      animation: badgePop .4s cubic-bezier(.34,1.56,.64,1) both;
    }
    .team-badge .badge-dot {
      width: 10px; height: 10px;
      border-radius: 50%;
      flex-shrink: 0;
      position: relative;
      z-index: 1;
    }
    @keyframes badgePop {
      0% { opacity: 0; transform: scale(.7); }
      100% { opacity: 1; transform: scale(1); }
    }

    /* Distinctive background motifs per team — abstract geometric patterns
       (color/shape only, never reproducing an official logo) */
    .team-badge {
      position: relative;
      overflow: hidden;
      background-repeat: repeat;
      background-size: 14px 14px;
    }
    .team-badge.pattern-diag-thin {
      background-image: repeating-linear-gradient(45deg, currentColor 0, currentColor 1px, transparent 1px, transparent 7px);
      background-blend-mode: overlay;
    }
    .team-badge.pattern-diag-bold {
      background-image: repeating-linear-gradient(-45deg, currentColor 0, currentColor 3px, transparent 3px, transparent 10px);
      background-blend-mode: overlay;
    }
    .team-badge.pattern-dots {
      background-image: radial-gradient(currentColor 1.3px, transparent 1.6px);
      background-size: 10px 10px;
      background-blend-mode: overlay;
    }
    .team-badge.pattern-chevron {
      background-image:
        linear-gradient(135deg, currentColor 25%, transparent 25.5%),
        linear-gradient(-135deg, currentColor 25%, transparent 25.5%);
      background-size: 12px 12px;
      background-blend-mode: overlay;
    }
    .team-badge .badge-label {
      position: relative;
      z-index: 1;
    }

    .radio-position {
      font-family: "Racing Sans One", sans-serif;
      font-size: clamp(2.2rem, 7vw, 3.2rem);
      letter-spacing: .04em;
      line-height: 1.05;
      margin-bottom: 18px;
      text-transform: uppercase;
    }
    .radio-position .name { color: var(--team-color); }

    .radio-transcript {
      font-size: 1rem;
      line-height: 1.8;
      color: rgba(255,255,255,.85);
      min-height: 90px;
      font-style: italic;
      display: flex;
      flex-wrap: wrap;
    }
    .radio-transcript .word {
      opacity: 0;
      filter: blur(3px);
      display: inline-block;
      animation: wordIn .35s ease-out forwards;
      margin-right: 0.32em;
      white-space: pre;
    }
    @keyframes wordIn {
      to { opacity: 1; filter: blur(0); }
    }

    .radio-footer {
      margin-top: 28px;
      padding-top: 20px;
      border-top: 1px solid rgba(255,255,255,.08);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }
    .radio-footer .tag {
      font-size: .7rem;
      letter-spacing: .15em;
      color: var(--muted);
      text-transform: uppercase;
    }
    #radio-close-btn {
      background: var(--team-color);
      color: var(--team-text-color, #fff);
      border: none;
      border-radius: 4px;
      padding: 10px 22px;
      font-family: "Racing Sans One", sans-serif;
      font-size: .95rem;
      letter-spacing: .12em;
      cursor: pointer;
      opacity: 0;
      transition: opacity .3s, filter .2s;
    }
    #radio-close-btn.ready { opacity: 1; }
    #radio-close-btn:hover { filter: brightness(.85); }

    /* ══════════════════════════════
       RESPONSIVE — phones (< 768px) & small phones (< 400px)
       Hero stacks cleanly: urgency badge becomes a vertical column,
       subtitle wraps naturally, CTA goes full-width, type sizes tighten.
    ══════════════════════════════ */
    @media (max-width: 768px) {
      .hero { padding: 56px 18px 70px; }

      .logo { font-size: clamp(2.4rem, 11vw, 3.4rem); letter-spacing: .45em; padding-left: .45em; }
      .logo-wrap { margin-bottom: 36px; }

      h1 {
        font-size: clamp(1.85rem, 8.4vw, 3rem);
        max-width: 100%;
        margin-bottom: 18px;
        line-height: 1.05;
      }

      /* Subtitle MUST wrap on mobile — desktop nowrap was clipping content */
      .subtitle {
        white-space: normal;
        font-size: clamp(.85rem, 3.2vw, 1rem);
        line-height: 1.5;
        margin-bottom: 26px;
        padding: 0 6px;
      }

      /* Urgency: vertical stack, hide bullet separators */
      .urgency {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding: 12px 22px;
        max-width: calc(100vw - 36px);
        text-align: center;
        line-height: 1.4;
        margin-bottom: 26px;
      }
      .urgency-sep { display: none; }
      .urgency-item { white-space: normal; }

      /* CTA: full-width within a constrained wrap, balanced text */
      .cta-wrap { width: 100%; max-width: 380px; }
      #cta-btn {
        width: 100%;
        padding: 16px 20px;
        font-size: 1rem;
        letter-spacing: .14em;
        justify-content: center;
      }

      /* F1 car drive-by — scale down so the proportions stay punchy */
      .f1-car { width: 240px; left: -260px; }
    }

    @media (max-width: 400px) {
      .hero { padding: 48px 14px 60px; }
      .logo { font-size: clamp(2rem, 11vw, 2.8rem); }
      h1 { font-size: clamp(1.6rem, 8vw, 2.2rem); }
      .urgency { font-size: .74rem; padding: 11px 16px; }
      #cta-btn { font-size: .92rem; padding: 14px 16px; letter-spacing: .12em; }
      .f1-car { width: 200px; left: -220px; }
    }

    @media (max-width: 480px) {
      .light { width: 46px; height: 46px; }
      .lights-row { gap: 18px; }
    }
    @media (prefers-reduced-motion: reduce) {
      #lights-screen { display: none !important; }
      main { opacity: 1 !important; }
      .logo, .logo-dash, h1, .subtitle, .urgency, .cta-wrap {
        animation: none !important; opacity: 1 !important;
      }
    }
