/* ==========================================================================
   ENZO VEGA #27 - IMMERSIVE MOTORSPORT WEB EXPERIENCE
   Centered Driver Hero with Black & White Racing Track Background
   Apex GT Hypercup & Professional Speed Pilot
   ========================================================================== */

:root {
  --bg-primary: #050608;
  --bg-secondary: #0a0d13;
  --bg-card: rgba(12, 16, 23, 0.72);
  --bg-card-border: rgba(255, 255, 255, 0.1);
  
  /* Racing Brand Colors */
  --neon-volt: #d8ff00;       /* Lando Norris signature electric lime/volt */
  --neon-volt-glow: rgba(216, 255, 0, 0.5);
  --neon-cyan: #00f0ff;
  --neon-cyan-glow: rgba(0, 240, 255, 0.4);
  --racing-red: #ff2a4b;
  --racing-orange: #ff8c00;
  
  --text-main: #f5f7fa;
  --text-muted: #95a2b3;
  --text-dim: #546073;

  /* Typography */
  --font-race: 'Chakra Petch', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-heading);
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  background-color: var(--bg-primary);
  overflow-x: clip; /* clip keeps position: sticky working (hidden breaks it) */
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.text-neon {
  color: var(--neon-volt) !important;
}

/* ==========================================================================
   HIGH-OCTANE MOTION & IMMERSION UPGRADE
   Screen Shake, Tire Smoke/Sparks Canvas, Holographic HUD, Ambient Lights
   ========================================================================== */

/* Screen Shake removed to keep video and UI perfectly steady and smooth */
body.screen-revving {
  /* No trembling / screen shake */
}

/* Speed Lines Canvas Overlay */
.speed-canvas-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99990;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.speed-active .speed-canvas-overlay {
  opacity: 1;
}

/* Redline Warning Flash Overlay */
.redline-warning-flash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99995;
  background: radial-gradient(circle at 50% 50%, transparent 40%, rgba(255, 42, 75, 0.28) 100%);
  opacity: 0;
  transition: opacity 0.08s ease;
}

body.in-redline .redline-warning-flash {
  opacity: 1;
  animation: redline-pulse 0.12s infinite alternate;
}

@keyframes redline-pulse {
  0% { opacity: 0.2; }
  100% { opacity: 0.75; }
}

/* Section Header Racing Badges with Glitch / Pulse */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(216, 255, 0, 0.08);
  border: 1px solid rgba(216, 255, 0, 0.2);
  padding: 0.3rem 0.85rem;
  border-radius: 4px;
}

.section-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-volt);
  box-shadow: 0 0 8px var(--neon-volt);
  animation: pulse-dot 1s infinite alternate;
}

/* Enhanced 3D Perspective for comparison section */
.quick-overview-section {
  position: relative;
  padding: 7rem 0;
  background: radial-gradient(circle at 50% 30%, rgba(15, 23, 34, 0.7) 0%, #05070b 80%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 10;
  perspective: 1400px;
}

/* Floating interactive telemetry HUD in background */
.cockpit-hud-dashboard {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

body.screen-revving .cockpit-hud-dashboard {
  box-shadow: 
    0 35px 90px rgba(0, 0, 0, 0.9), 
    0 0 45px rgba(216, 255, 0, 0.25), 
    inset 0 0 40px rgba(216, 255, 0, 0.08);
}

/* Exhaust Flame / Turbo Spool Glow on the Rev Pedal */
.rev-pedal-btn {
  position: relative;
  overflow: hidden;
}

.rev-pedal-btn::after {
  content: '';
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.6), transparent 30%);
  animation: rotate-conic 2.5s linear infinite;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.rev-pedal-btn:hover::after,
body.screen-revving .rev-pedal-btn::after {
  opacity: 1;
}

@keyframes rotate-conic {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Timeline, Stats and Cards Scroll Reveal Transitions */
.stat-counter-card,
.timeline-item,
.race-round-card,
.sponsor-brand-box {
  opacity: 0;
  transform: translateY(35px) scale(0.96);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.stat-counter-card.revealed,
.timeline-item.revealed,
.race-round-card.revealed,
.sponsor-brand-box.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger delays for grid items */
.career-stats-counter-grid .stat-counter-card:nth-child(1) { transition-delay: 0.05s; }
.career-stats-counter-grid .stat-counter-card:nth-child(2) { transition-delay: 0.15s; }
.career-stats-counter-grid .stat-counter-card:nth-child(3) { transition-delay: 0.25s; }
.career-stats-counter-grid .stat-counter-card:nth-child(4) { transition-delay: 0.35s; }

.calendar-cards-grid .race-round-card:nth-child(1) { transition-delay: 0.05s; }
.calendar-cards-grid .race-round-card:nth-child(2) { transition-delay: 0.12s; }
.calendar-cards-grid .race-round-card:nth-child(3) { transition-delay: 0.19s; }
.calendar-cards-grid .race-round-card:nth-child(4) { transition-delay: 0.26s; }
.calendar-cards-grid .race-round-card:nth-child(5) { transition-delay: 0.33s; }

/* Interactive Cursor Spark Trail effect */
.cursor-particle {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  z-index: 99997;
  mix-blend-mode: screen;
  transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

/* Custom Racing Steering Wheel Cursor */
.racing-wheel-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%) rotate(0deg);
  will-change: transform;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 10px var(--neon-volt-glow));
  transition: width 0.2s ease, height 0.2s ease, filter 0.2s ease;
}

.racing-wheel-cursor .wheel-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  display: block;
}

.cursor-hover .racing-wheel-cursor {
  transform: translate(-50%, -50%) scale(1.18);
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 16px var(--neon-volt));
}

.custom-cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 58px;
  height: 58px;
  border: 1px dashed rgba(216, 255, 0, 0.45);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.2s, width 0.2s, height 0.2s;
  box-shadow: 0 0 14px rgba(216, 255, 0, 0.2);
}

.cursor-hover .custom-cursor-follower {
  width: 72px;
  height: 72px;
  border-color: #fff;
  border-style: solid;
  background: rgba(216, 255, 0, 0.08);
}

/* Ambient Radial Glow */
.ambient-glow {
  position: fixed;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 85vh;
  background: radial-gradient(circle, rgba(216, 255, 0, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.race-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 75px;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(5, 6, 8, 0.95) 0%, rgba(5, 6, 8, 0.5) 80%, transparent 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-container {
  max-width: 1700px;
  height: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand Badge */
.brand-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-race);
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

.brand-monogram {
  color: #fff;
  letter-spacing: 0.05em;
}

.brand-number {
  color: var(--neon-volt);
  background: rgba(216, 255, 0, 0.12);
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  border: 1px solid var(--neon-volt);
  font-size: 1.1rem;
  box-shadow: 0 0 12px var(--neon-volt-glow);
}

.brand-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--neon-volt);
  box-shadow: 0 0 8px var(--neon-volt);
  animation: pulse-dot 1.8s infinite;
  margin-left: 0.2rem;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.6; }
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-race);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-item .nav-num {
  color: var(--neon-volt);
  font-size: 0.65rem;
  margin-right: 0.25rem;
  font-family: var(--font-mono);
}

.nav-item:hover,
.nav-item.active {
  color: #fff;
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--neon-volt);
  box-shadow: 0 0 10px var(--neon-volt);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(20, 26, 36, 0.85);
  border: 1px solid rgba(216, 255, 0, 0.3);
  padding: 2px 6px;
  border-radius: 20px;
  gap: 4px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 3px 6px;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn.active {
  background: var(--neon-volt);
  color: #000;
  box-shadow: 0 0 10px var(--neon-volt-glow);
}

.lang-divider {
  color: var(--text-dim);
  font-size: 0.75rem;
}

/* Camera Switcher */
.camera-switch-pill {
  display: flex;
  background: rgba(20, 26, 36, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 3px;
  border-radius: 30px;
}

.cam-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cam-btn.active {
  background: #fff;
  color: #000;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

/* Sound Button */
.sound-toggle-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  transition: all var(--transition-fast);
}

.sound-toggle-btn:hover {
  border-color: var(--neon-volt);
  color: var(--neon-volt);
}

.sound-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.sound-bars .bar {
  width: 2px;
  background: var(--text-muted);
  height: 4px;
  border-radius: 1px;
  transition: height 0.2s ease, background 0.2s ease;
}

.sound-toggle-btn.sound-on .sound-bars .bar {
  background: var(--neon-volt);
  animation: sound-eq 0.8s ease-in-out infinite alternate;
}

.sound-toggle-btn.sound-on .sound-bars .bar:nth-child(1) { animation-delay: 0.1s; }
.sound-toggle-btn.sound-on .sound-bars .bar:nth-child(2) { animation-delay: 0.3s; }
.sound-toggle-btn.sound-on .sound-bars .bar:nth-child(3) { animation-delay: 0.2s; }

@keyframes sound-eq {
  0% { height: 3px; }
  100% { height: 12px; }
}

/* ==========================================================================
   IMMERSIVE HERO SECTION
   ========================================================================== */
.hero-scroll-track {
  position: relative;
  height: 260vh;
}

.hero-section {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 75px;
  padding-bottom: 44px;
}

/* B&W Cinematic Moving Race Background */
.hero-bg-bw-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* Background Race Video in Motion */
.hero-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 110%;
  min-height: 110%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%) scale(1.04);
  object-fit: cover;
  filter: grayscale(100%) contrast(1.45) brightness(0.48);
  opacity: 0.85;
  z-index: 1;
  pointer-events: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}

.bw-race-layer {
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  background-image: url('assets/race-bw-1.jpg');
  background-size: cover;
  background-position: center 40%;
  filter: grayscale(100%) contrast(1.4) brightness(0.42);
  animation: bg-pan-slow 22s ease-in-out infinite alternate;
  transition: opacity 0.8s ease, filter 0.8s ease, transform 0.8s ease;
  z-index: 2;
  opacity: 0.2; /* Subtly blends with video */
}

@keyframes bg-pan-slow {
  0% { transform: scale(1) translate(0%, 0%); }
  50% { transform: scale(1.05) translate(-1.2%, 0.8%); }
  100% { transform: scale(1.02) translate(1.2%, -0.8%); }
}

/* Mouse-following cinematic spotlight */
.bg-spotlight {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 520px at var(--mx, 50%) var(--my, 45%), rgba(255, 255, 255, 0.16) 0%, rgba(216, 255, 0, 0.06) 35%, transparent 70%);
  mix-blend-mode: screen;
  transition: background 0.1s linear;
}

/* Volumetric light rays rotating behind the pilot */
.light-rays {
  position: absolute;
  left: 50%;
  top: 38%;
  width: 170vmax;
  height: 170vmax;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0.07) 0deg 4deg,
    transparent 4deg 13deg,
    rgba(216, 255, 0, 0.05) 13deg 15deg,
    transparent 15deg 26deg
  );
  mask-image: radial-gradient(circle, black 0%, rgba(0, 0, 0, 0.5) 22%, transparent 48%);
  -webkit-mask-image: radial-gradient(circle, black 0%, rgba(0, 0, 0, 0.5) 22%, transparent 48%);
  filter: blur(6px);
  animation: rays-spin 60s linear infinite;
  mix-blend-mode: screen;
}

@keyframes rays-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Slow horizontal light beam */
.light-beam {
  position: absolute;
  top: -20%;
  left: -40%;
  width: 35%;
  height: 140%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09), rgba(216, 255, 0, 0.07), transparent);
  transform: skewX(-18deg);
  filter: blur(30px);
  mix-blend-mode: screen;
  animation: beam-pass 9s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}

@keyframes beam-pass {
  0% { left: -40%; opacity: 0; }
  15% { opacity: 1; }
  60% { left: 110%; opacity: 1; }
  61%, 100% { left: 110%; opacity: 0; }
}

.bw-vignette-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 50% 50%, rgba(5, 6, 8, 0.15) 0%, rgba(5, 6, 8, 0.82) 75%, #050608 100%),
    linear-gradient(180deg, rgba(5,6,8,0.7) 0%, transparent 20%, transparent 70%, #050608 100%);
}

.hero-bokeh-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
}

/* ==========================================================================
   GIANT BACKDROP TYPOGRAPHY (BEHIND PILOT)
   ========================================================================== */
.hero-backdrop-typography {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 1800px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  pointer-events: none;
  z-index: 2;
  user-select: none;
}

.typo-half {
  font-family: var(--font-race);
  font-size: clamp(6rem, 15vw, 15rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
  opacity: 0.85;
  line-height: 0.8;
  text-transform: uppercase;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.95);
  transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1);
  animation: typo-reveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.typo-right {
  animation-name: typo-reveal-right;
}

@keyframes typo-reveal {
  from { clip-path: inset(0 100% 0 0); opacity: 0; letter-spacing: 0.1em; }
  to { clip-path: inset(0 0 0 0); opacity: 0.85; letter-spacing: -0.04em; }
}

@keyframes typo-reveal-right {
  from { clip-path: inset(0 0 0 100%); opacity: 0; letter-spacing: 0.1em; }
  to { clip-path: inset(0 0 0 0); opacity: 0.85; letter-spacing: -0.04em; }
}

.typo-left {
  text-align: left;
}

.typo-right {
  text-align: right;
}

/* ==========================================================================
   ANIMATED #27 (SVG LAYERS)
   ========================================================================== */
.number-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(95vw, 1300px);
  aspect-ratio: 3 / 2;
  transform: translate(-50%, -50%) scale(calc(0.92 + var(--p, 0) * 0.22));
  z-index: -1;
  pointer-events: none;
  animation: number-enter 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

@keyframes number-enter {
  from { opacity: 0; filter: blur(20px); }
  to { opacity: 1; filter: blur(0); }
}

.number-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.num-skew {
  transform: skewX(-10deg);
  transform-origin: 600px 400px;
}

.num-text {
  font-family: var(--font-race);
  font-size: 760px;
  font-weight: 900;
  font-style: italic;
  text-anchor: middle;
  dominant-baseline: central;
  letter-spacing: -20px;
}

.num-fill {
  fill: url(#numFillGrad);
  opacity: calc(0.04 + var(--p, 0) * 0.42);
}

.num-ghost {
  fill: none;
  stroke-width: 2;
  opacity: 0.35;
  mix-blend-mode: screen;
}

.num-ghost-a {
  stroke: #00f0ff;
  transform: translate(calc(var(--gx, 0px) * -1 - var(--p, 0) * 18px), calc(var(--gy, 0px) * -1));
}

.num-ghost-b {
  stroke: #ff2a4b;
  transform: translate(calc(var(--gx, 0px) + var(--p, 0) * 18px), var(--gy, 0px));
}

.num-outline {
  fill: none;
  stroke: rgba(216, 255, 0, 0.22);
  stroke-width: 2.5;
}

.num-runner {
  fill: none;
  stroke: var(--neon-volt);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 180 900;
  animation: num-run 5s linear infinite;
}

@keyframes num-run {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -2160; }
}

.num-shine {
  fill: url(#numShineGrad);
  opacity: 0.1;
  mix-blend-mode: overlay;
}

/* ==========================================================================
   CENTER STAGE: PILOT STANDING IN THE MIDDLE
   ========================================================================== */
.hero-center-driver-stage {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 640px;
  height: calc(100vh - 110px);
  max-height: 860px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 5;
  pointer-events: none;
}

.driver-figure-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: auto;
  transform-origin: center bottom;
  transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1);
}

.driver-img-shell {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  mask-image: radial-gradient(ellipse closest-side at 50% 50%, black 58%, transparent 100%),
              linear-gradient(to top, transparent 0%, black 18%, black 100%);
  -webkit-mask-image: radial-gradient(ellipse closest-side at 50% 50%, black 58%, transparent 100%),
                      linear-gradient(to top, transparent 0%, black 18%, black 100%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
  animation: pilot-enter 1.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes pilot-enter {
  0% { opacity: 0; transform: translateY(60px) scale(1.06); filter: blur(18px) brightness(2.2); }
  60% { filter: blur(0) brightness(1.3); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0) brightness(1); }
}

.driver-cutout-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: contrast(1.08) brightness(1.05) saturate(1.05);
  user-select: none;
  display: block;
}

.driver-helmet {
  position: absolute;
  left: 0;
  bottom: 0;
  clip-path: inset(0 0 calc((1 - var(--reveal, 0)) * 100%) 0);
}

.helmet-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--reveal, 0) * 100%);
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--neon-volt) 20%, #fff 50%, var(--neon-volt) 80%, transparent);
  box-shadow: 0 0 18px var(--neon-volt), 0 0 50px rgba(216, 255, 0, 0.6);
  opacity: var(--scan-o, 0);
  pointer-events: none;
}

.helmet-scan-line::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 90px;
  background: linear-gradient(to top, rgba(216, 255, 0, 0.22), transparent);
  mix-blend-mode: screen;
}

.driver-light-sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.55) 48%, rgba(216, 255, 0, 0.35) 52%, transparent 65%);
  background-size: 250% 100%;
  background-repeat: no-repeat;
  mix-blend-mode: overlay;
  animation: pilot-sweep 7s ease-in-out 1.6s infinite;
  pointer-events: none;
}

@keyframes pilot-sweep {
  0% { background-position: 150% 0; }
  45%, 100% { background-position: -60% 0; }
}

.driver-rim-light {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 40% 60% at var(--rim-x, 50%) 35%, rgba(216, 255, 0, 0.28), transparent 70%);
  mix-blend-mode: soft-light;
  pointer-events: none;
  transition: background 0.2s ease;
}

.driver-floor-glow {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 90px;
  background: radial-gradient(ellipse at 50% 50%, rgba(216, 255, 0, 0.35) 0%, rgba(216, 255, 0, 0.08) 40%, transparent 70%);
  filter: blur(14px);
  pointer-events: none;
  z-index: -1;
  animation: floor-pulse 3.5s ease-in-out infinite alternate;
}

.driver-floor-glow::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-volt), transparent);
  box-shadow: 0 0 18px var(--neon-volt);
  filter: blur(0.5px);
}

@keyframes floor-pulse {
  0% { opacity: 0.6; transform: translateX(-50%) scaleX(0.9); }
  100% { opacity: 1; transform: translateX(-50%) scaleX(1.05); }
}

.driver-spec-halo {
  position: absolute;
  bottom: 22%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 255, 0, 0.25) 0%, rgba(216, 255, 0, 0.05) 50%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  filter: blur(25px);
  animation: pulse-halo 4s ease-in-out infinite alternate;
}

@keyframes pulse-halo {
  0% { transform: translateX(-50%) scale(0.92); opacity: 0.55; }
  100% { transform: translateX(-50%) scale(1.1); opacity: 0.9; }
}

.hud-target-reticle {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.driver-figure-wrapper:hover .hud-target-reticle {
  opacity: 1;
}

.reticle-ring {
  width: 44px;
  height: 44px;
  border: 1px dashed var(--neon-volt);
  border-radius: 50%;
  animation: spin-reticle 8s linear infinite;
  box-shadow: 0 0 10px var(--neon-volt-glow);
}

@keyframes spin-reticle {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.reticle-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--neon-volt);
  background: rgba(0, 0, 0, 0.85);
  padding: 0.15rem 0.55rem;
  border-radius: 3px;
  margin-top: 0.4rem;
  letter-spacing: 0.1em;
  border: 1px solid rgba(216, 255, 0, 0.35);
}

/* ==========================================================================
   MODE HUD + SCROLL HINT
   ========================================================================== */
.hero-mode-hud {
  position: absolute;
  top: 105px;
  left: 2.5rem;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--text-main);
  background: rgba(5, 6, 8, 0.55);
  border: 1px solid rgba(216, 255, 0, 0.25);
  padding: 0.5rem 0.9rem;
  border-radius: 40px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mode-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--racing-orange);
  box-shadow: 0 0 8px var(--racing-orange);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.hero-mode-hud.race-ready .mode-dot {
  background: var(--neon-volt);
  box-shadow: 0 0 10px var(--neon-volt);
  animation: pulse-dot 1s infinite;
}

.mode-bar {
  width: 70px;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.mode-bar-fill {
  display: block;
  height: 100%;
  width: calc(var(--p, 0) * 100%);
  background: var(--neon-volt);
  box-shadow: 0 0 8px var(--neon-volt);
}

.scroll-hint {
  position: absolute;
  right: 2.5rem;
  bottom: 80px;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  opacity: calc(1 - var(--p, 0) * 4);
  pointer-events: none;
}

.scroll-hint-mouse {
  width: 20px;
  height: 32px;
  border: 1.5px solid var(--neon-volt);
  border-radius: 12px;
  position: relative;
  box-shadow: 0 0 10px rgba(216, 255, 0, 0.3);
}

.scroll-hint-wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--neon-volt);
  animation: wheel-scroll 1.6s ease-in-out infinite;
}

@keyframes wheel-scroll {
  0% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ==========================================================================
   RACING TICKER / MARQUEE
   ========================================================================== */
.racing-ticker {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #000;
  border-top: 1px solid rgba(216, 255, 0, 0.25);
  border-bottom: 1px solid rgba(216, 255, 0, 0.25);
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 44px;
  z-index: 20;
}

.ticker-badge {
  background: var(--neon-volt);
  color: #000;
  font-family: var(--font-race);
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  z-index: 2;
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
}

.ticker-track {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  animation: marquee-anim 28s linear infinite;
  font-family: var(--font-race);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-main);
  text-transform: uppercase;
}

.ticker-content .separator {
  color: var(--neon-volt);
  font-weight: 900;
}

@keyframes marquee-anim {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   SECTION 02: MACHINES & COMPARISON (APEX GT + KART PRO)
   ========================================================================== */
.quick-overview-section {
  position: relative;
  padding: 6.5rem 0;
  background: #07090e;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 10;
  perspective: 1200px;
}

.section-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 4rem auto;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--neon-volt);
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.section-title {
  font-family: var(--font-race);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2.5rem;
  perspective: 1500px;
}

/* Base Machine Card with Motion States */
.machine-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
  opacity: 0;
  visibility: hidden;
  transition: 
    border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.15s ease-out;
}

/* Left Card (Kart Pro) initial entrance offset */
.machine-card.kart-card {
  transform: translate3d(-90px, 50px, -40px) rotateY(-15deg) rotateX(10deg) scale(0.9);
  filter: blur(12px) brightness(1.5);
}

/* Right Card (Apex GT) initial entrance offset */
.machine-card.stockcar-card {
  transform: translate3d(90px, 50px, -40px) rotateY(15deg) rotateX(10deg) scale(0.9);
  filter: blur(12px) brightness(1.5);
}

/* Animated Entrance Class when in viewport */
.machine-card.in-view {
  opacity: 1;
  visibility: visible;
  filter: blur(0px) brightness(1);
  transform: translate3d(0, 0, 0) rotateY(0deg) rotateX(0deg) scale(1);
  transition: 
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.machine-card.stockcar-card.in-view {
  transition-delay: 0.15s;
}

/* Holographic dynamic laser shine across the card */
.machine-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(216, 255, 0, 0.08) 45%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(216, 255, 0, 0.12) 55%,
    transparent 80%
  );
  transform: skewX(-25deg);
  pointer-events: none;
  z-index: 15;
  transition: none;
}

.machine-card.kart-card::before {
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(0, 240, 255, 0.08) 45%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(0, 240, 255, 0.12) 55%,
    transparent 80%
  );
}

.machine-card.in-view::before {
  animation: card-laser-sweep 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.machine-card.kart-card.in-view::before {
  animation-delay: 0.45s;
}

@keyframes card-laser-sweep {
  0% { left: -150%; }
  100% { left: 200%; }
}

/* Active Glare overlay that follows mouse cursor in 3D tilt */
.card-glare-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 320px at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.14) 0%,
    transparent 70%
  );
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.3s ease;
  mix-blend-mode: overlay;
}

.machine-card:hover .card-glare-overlay {
  opacity: 1;
}

/* Card Hover States */
.machine-card:hover {
  border-color: rgba(216, 255, 0, 0.5);
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.75), 
    0 0 35px rgba(216, 255, 0, 0.2),
    inset 0 0 20px rgba(216, 255, 0, 0.05);
}

.kart-card:hover {
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.75), 
    0 0 35px rgba(0, 240, 255, 0.2),
    inset 0 0 20px rgba(0, 240, 255, 0.05);
}

.machine-image-wrapper {
  position: relative;
  width: 100%;
  height: 290px;
  overflow: hidden;
  background: #020305;
}

.machine-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.7s ease;
}

.machine-card:hover .machine-img {
  transform: scale(1.08) translateZ(15px);
  filter: contrast(1.1) brightness(1.08);
}

/* Telemetry scan line inside image wrapper */
.card-telemetry-scan {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-volt), #fff, var(--neon-volt), transparent);
  box-shadow: 0 0 14px var(--neon-volt);
  opacity: 0;
  z-index: 5;
  pointer-events: none;
}

.kart-card .card-telemetry-scan {
  background: linear-gradient(90deg, transparent, var(--neon-cyan), #fff, var(--neon-cyan), transparent);
  box-shadow: 0 0 14px var(--neon-cyan);
}

.machine-card:hover .card-telemetry-scan {
  opacity: 0.85;
  animation: telemetry-scan-loop 2.4s linear infinite;
}

@keyframes telemetry-scan-loop {
  0% { top: 0%; opacity: 0; }
  15% { opacity: 0.85; }
  85% { opacity: 0.85; }
  100% { top: 100%; opacity: 0; }
}

.machine-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-race);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  color: #fff;
  z-index: 6;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: border-color 0.3s ease;
}

.machine-card:hover .machine-tag {
  border-color: var(--neon-volt);
  color: var(--neon-volt);
}

.kart-card:hover .machine-tag {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.machine-body {
  padding: 2.2rem;
  position: relative;
  z-index: 4;
}

.machine-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.machine-title-row h3 {
  font-family: var(--font-race);
  font-size: 1.45rem;
  font-weight: 900;
  color: #fff;
  transition: color 0.3s ease;
}

.machine-card:hover .machine-title-row h3 {
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.machine-power {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--neon-volt);
  background: rgba(216, 255, 0, 0.1);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  border: 1px solid var(--neon-volt);
  box-shadow: 0 0 10px rgba(216, 255, 0, 0.15);
}

.kart-card .machine-power {
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.machine-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.spec-bars {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.spec-item .spec-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.bar-outer {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

/* Spec bar animated fill on entrance */
.bar-fill {
  height: 100%;
  width: 0%;
  background: var(--neon-volt);
  border-radius: 3px;
  box-shadow: 0 0 8px var(--neon-volt-glow);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.kart-card .bar-fill {
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan-glow);
}

.machine-card.in-view .bar-fill {
  width: var(--target-width, 80%);
}

/* ==========================================================================
   SECTION 03: LIVE COCKPIT TELEMETRY HUD
   ========================================================================== */
.telemetry-cockpit-section {
  position: relative;
  padding: 6.5rem 0;
  background: #05070b;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cockpit-hud-dashboard {
  background: rgba(10, 14, 20, 0.85);
  border: 1px solid rgba(216, 255, 0, 0.25);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), inset 0 0 30px rgba(216, 255, 0, 0.03);
}

.hud-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hud-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hud-dot.live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-volt);
  box-shadow: 0 0 8px var(--neon-volt);
  animation: pulse-dot 1.2s infinite;
}

.hud-clock {
  color: #fff;
}

/* Shift Lights LED Bar */
.shift-lights-container {
  padding: 1.8rem 0 1.2rem 0;
}

.tach-lights {
  display: flex;
  justify-content: center;
  gap: 8px;
  max-width: 900px;
  margin: 0 auto;
}

.tach-led {
  flex: 1;
  height: 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  transition: all 0.05s ease;
}

.tach-led.lit-green {
  background: #00ff66;
  box-shadow: 0 0 12px #00ff66;
}

.tach-led.lit-yellow {
  background: var(--neon-volt);
  box-shadow: 0 0 14px var(--neon-volt);
}

.tach-led.lit-red {
  background: #ff2a4b;
  box-shadow: 0 0 16px #ff2a4b;
}

.tach-led.lit-blue {
  background: #00f0ff;
  box-shadow: 0 0 20px #00f0ff;
  animation: flash-shift 0.1s infinite alternate;
}

@keyframes flash-shift {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Cluster Grid */
.hud-cluster-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 1.8rem;
  margin: 2rem 0;
}

.hud-gauge-card {
  background: rgba(5, 7, 11, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.gauge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hud-unit {
  color: var(--neon-volt);
  font-weight: 700;
}

.gauge-huge-number {
  font-family: var(--font-race);
  font-size: clamp(3.2rem, 5.5vw, 5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin: 1.2rem 0;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
}

.gauge-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.center-gear-card {
  border-color: rgba(216, 255, 0, 0.35);
  background: rgba(14, 20, 28, 0.85);
  box-shadow: inset 0 0 30px rgba(216, 255, 0, 0.05);
}

.gear-huge-display {
  font-family: var(--font-race);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.05em;
}

.rpm-huge-display {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

/* Rev Pedal Button */
.rev-pedal-wrapper {
  margin-top: 0.8rem;
}

.rev-pedal-btn {
  width: 100%;
  background: var(--neon-volt);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 0.85rem 1.2rem;
  font-family: var(--font-race);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  box-shadow: 0 0 20px var(--neon-volt-glow);
  user-select: none;
}

.rev-pedal-btn:active {
  transform: scale(0.97);
  box-shadow: 0 0 30px rgba(216, 255, 0, 0.8);
}

.rev-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-top: 0.75rem;
  overflow: hidden;
}

.rev-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--neon-volt);
  border-radius: 3px;
  transition: width 0.05s ease;
  box-shadow: 0 0 10px var(--neon-volt);
}

/* G-Meter Display */
.g-meter-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0.8rem 0;
}

.g-meter-circle {
  position: relative;
  width: 130px;
  height: 130px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
}

.g-crosshair-h, .g-crosshair-v {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
}

.g-crosshair-h { width: 100%; height: 1px; }
.g-crosshair-v { height: 100%; width: 1px; }

.g-ball {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--neon-volt);
  box-shadow: 0 0 12px var(--neon-volt);
  transition: transform 0.1s ease;
}

.g-numeric-row {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Bottom Sensors Row */
.hud-sensors-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sensor-pill {
  background: rgba(5, 7, 11, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sensor-name {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
}

.sensor-val {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ==========================================================================
   SECTION 04: CAREER & SPEED MILESTONES
   ========================================================================== */
.career-timeline-section {
  position: relative;
  padding: 6.5rem 0;
  background: #070a0f;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.career-stats-counter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.stat-counter-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.stat-counter-card:hover {
  transform: translateY(-5px);
  border-color: rgba(216, 255, 0, 0.35);
}

.counter-number {
  font-family: var(--font-race);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.counter-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* Timeline Layout */
.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 2.5rem;
  border-left: 2px solid rgba(216, 255, 0, 0.3);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 4px;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--neon-volt);
  box-shadow: 0 0 10px var(--neon-volt-glow);
}

.timeline-year {
  font-family: var(--font-race);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--neon-volt);
  margin-bottom: 0.4rem;
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1.5rem 2rem;
}

.timeline-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--neon-cyan);
  margin-bottom: 0.5rem;
}

.timeline-content h3 {
  font-family: var(--font-race);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   SECTION 05: SEASON 2026 CALENDAR
   ========================================================================== */
.calendar-section {
  position: relative;
  padding: 6.5rem 0;
  background: #05070b;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.calendar-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.race-round-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.8rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.race-round-card:hover {
  transform: translateY(-6px);
}

.race-round-card.next-race {
  border-color: var(--neon-volt);
  background: rgba(20, 28, 36, 0.85);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 25px rgba(216, 255, 0, 0.15);
}

.round-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 0.3rem;
}

.round-badge.next {
  color: var(--neon-volt);
}

.round-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.round-status.done {
  color: #00ff66;
}

.round-status.live-now {
  color: var(--neon-volt);
  animation: pulse-dot 1.5s infinite;
}

.round-status.pending {
  color: var(--text-dim);
}

.round-circuit {
  font-family: var(--font-race);
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.3rem;
}

.round-country {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.round-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* ==========================================================================
   SECTION 06: PARTNERS & SPONSOR WALL
   ========================================================================== */
.partners-section {
  position: relative;
  padding: 6.5rem 0;
  background: #07090e;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sponsors-logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.sponsor-brand-box {
  background: rgba(12, 16, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 2.2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all var(--transition-fast);
}

.sponsor-brand-box:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.sponsor-brand-box.highlight {
  border-color: rgba(216, 255, 0, 0.35);
  box-shadow: 0 0 20px rgba(216, 255, 0, 0.08);
}

.sponsor-name {
  font-family: var(--font-race);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 0.3rem;
}

.sponsor-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}

/* Sponsor Contact CTA */
.sponsor-contact-box {
  background: linear-gradient(135deg, rgba(20, 28, 40, 0.9) 0%, rgba(10, 14, 20, 0.9) 100%);
  border: 1px solid rgba(216, 255, 0, 0.3);
  border-radius: 16px;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.contact-cta-info h3 {
  font-family: var(--font-race);
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.6rem;
}

.contact-cta-info p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 650px;
}

.sponsor-contact-btn {
  background: var(--neon-volt);
  color: #000;
  text-decoration: none;
  font-family: var(--font-race);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  padding: 1.1rem 2rem;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 0 25px var(--neon-volt-glow);
  transition: all var(--transition-fast);
}

.sponsor-contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(216, 255, 0, 0.8);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.race-footer {
  background: #020305;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3rem 0;
  color: var(--text-muted);
}

.footer-container {
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-monogram {
  font-family: var(--font-race);
  font-weight: 900;
  font-size: 1.1rem;
  color: #fff;
}

.footer-copy {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-socials {
  display: flex;
  gap: 1.8rem;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--neon-volt);
}

/* Audio Notice Float */
.audio-notice {
  position: fixed;
  bottom: 3.8rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(12, 16, 23, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(216, 255, 0, 0.35);
  color: #fff;
  padding: 0.65rem 1.4rem;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(216, 255, 0, 0.15);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.audio-notice.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
}

.notice-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.2rem;
}

.notice-close:hover {
  color: #fff;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1300px) {
  .typo-half { font-size: 10vw; }
}

@media (max-width: 1024px) {
  .hero-section {
    min-height: 600px;
  }
  .number-stage {
    width: 130vw;
  }
  .hero-center-driver-stage {
    height: calc(100vh - 140px);
  }
  .hud-cluster-grid {
    grid-template-columns: 1fr;
  }
  .sponsor-contact-box {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-container {
    padding: 0 1.25rem;
  }
  .camera-switch-pill {
    display: none;
  }
  .hero-center-driver-stage {
    height: 50vh;
  }
  .typo-half {
    font-size: 15vw;
  }
  .hero-mode-hud {
    left: 1rem;
    top: 90px;
  }
  .scroll-hint {
    right: 50%;
    transform: translateX(50%);
  }
  .scroll-hint > span:first-child {
    display: none;
  }
  .cockpit-hud-dashboard {
    padding: 1.2rem;
  }
}
