/* ========================================================
   BMW M3 HERO — LUXURY CINEMATIC STYLESHEET
   ======================================================== */

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

:root {
  --black: #050505;
  --midnight: #081A33;
  --blue: #2563EB;
  --gold: #D4AF37;
  --white: #FFFFFF;
  --text-secondary: #C7D2FE;
  --border: rgba(255,255,255,.08);
  --glow-blue: rgba(37,99,235,.35);
  --glow-blue-strong: rgba(37,99,235,.6);
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html {
  scroll-behavior: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Lenis Smooth Scroll Engine Base */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }

/* --- LOADER --- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: opacity;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.loader-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.loader-m {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 900;
  letter-spacing: -2px;
  color: var(--white);
  line-height: 1;
}

.loader-stripes {
  display: flex;
  gap: 4px;
  height: 48px;
  align-items: center;
}

.loader-stripes span {
  width: 6px;
  height: 100%;
  border-radius: 3px;
  opacity: 0;
  transform: scaleY(0);
}

.loader-text {
  overflow: hidden;
}

.loader-label {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 12px;
  color: var(--text-secondary);
  opacity: 0;
  display: block;
  text-indent: 12px;
}

.loader-bar-track {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,.06);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  border-radius: 2px;
  will-change: width;
}

/* --- NAVBAR --- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 clamp(24px, 4vw, 64px);
  height: 80px;
  display: flex;
  align-items: center;
  background: transparent;
  will-change: transform, opacity;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
}

.logo-text {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 3px;
  opacity: .7;
}

.logo-m {
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  transition: color .3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--blue);
  transition: width .3s ease;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 10px 28px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 100px;
  position: relative;
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease;
}

.nav-cta:hover {
  border-color: rgba(37,99,235,.5);
  box-shadow: 0 0 30px rgba(37,99,235,.15);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-audio-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(8, 12, 22, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-audio-toggle:hover {
  color: var(--white);
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
}

.nav-audio-toggle.is-active {
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.8);
  background: rgba(37, 99, 235, 0.15);
  box-shadow: 0 0 24px rgba(37, 99, 235, 0.3);
}

/* --- HERO --- */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
}

/* Ambient Orbs */
.hero-ambient {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.ambient-orb-1 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(37,99,235,.18) 0%, rgba(37,99,235,.06) 45%, transparent 70%);
  top: -15%;
  right: -10%;
}

.ambient-orb-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(8,26,51,.35) 0%, rgba(8,26,51,.12) 45%, transparent 70%);
  bottom: -20%;
  left: -10%;
}

.ambient-orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(37,99,235,.12) 0%, rgba(37,99,235,.03) 45%, transparent 70%);
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
}

/* Particles */
#particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
}

/* Video */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  opacity: 0;
  will-change: transform, opacity;
}

#heroCanvas,
#heroVideo {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.video-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(5,5,5,.65) 100%);
  pointer-events: none;
}

.video-grain {
  position: absolute;
  inset: 0;
  opacity: .03;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* Lens Bloom */
.lens-bloom {
  position: absolute;
  z-index: 4;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.14) 0%, rgba(37,99,235,.03) 45%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  will-change: transform;
  padding: 0 24px;
}

/* Eyebrow */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  opacity: 0;
}

.eyebrow-line {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.eyebrow-text {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 6px;
  color: var(--gold);
  text-transform: uppercase;
}

/* Title */
.hero-title {
  font-family: var(--font-display);
  line-height: 1;
  margin-bottom: 28px;
}

.title-line {
  display: block;
  overflow: hidden;
}

.title-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  will-change: transform, opacity;
}

.title-line[data-line="0"] {
  font-size: clamp(64px, 12vw, 160px);
  font-weight: 900;
  letter-spacing: -3px;
}

.title-line[data-line="0"] .title-word {
  margin-right: 20px;
}

.title-accent {
  background: linear-gradient(135deg, var(--blue) 0%, #60a5fa 50%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-sub {
  font-size: clamp(16px, 2.8vw, 36px);
  font-weight: 300;
  letter-spacing: clamp(6px, 1.5vw, 20px);
  margin-top: 12px;
  color: var(--text-secondary);
  -webkit-text-fill-color: var(--text-secondary);
}

.title-sub .title-word {
  margin-right: 8px;
}

/* Description */
.hero-desc {
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 300;
  line-height: 1.8;
  color: rgba(199,210,254,.6);
  max-width: 520px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
}

/* CTA */
.hero-cta-wrap {
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(20px);
}

.hero-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 48px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(255,255,255,.04);
  border-radius: 100px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s ease;
  will-change: transform;
}

.btn-border {
  position: absolute;
  inset: 0;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,.12);
  transition: border-color .4s ease;
  pointer-events: none;
}

.hero-btn:hover .btn-border {
  border-color: rgba(37,99,235,.5);
}

.hero-btn:hover {
  box-shadow:
    0 0 40px rgba(37,99,235,.2),
    0 0 80px rgba(37,99,235,.08),
    inset 0 0 40px rgba(37,99,235,.05);
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212,175,55,.08) 30%,
    rgba(212,175,55,.2) 50%,
    rgba(212,175,55,.08) 70%,
    transparent 100%
  );
  transition: none;
  pointer-events: none;
}

.hero-btn:hover .btn-shine {
  animation: shineSweep .8s ease forwards;
}

@keyframes shineSweep {
  to { left: 100%; }
}

.btn-text {
  position: relative;
  z-index: 2;
}

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 40px;
  opacity: 0;
  transform: translateY(20px);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--white);
}

.stat-unit {
  font-size: 0.6em;
  font-weight: 400;
  opacity: .5;
  margin-left: 2px;
}

.stat-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(199,210,254,.4);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, var(--border), transparent);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
}

.scroll-mouse {
  width: 24px;
  height: 40px;
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  position: relative;
  box-shadow: 0 0 15px rgba(37,99,235,.15);
}

.scroll-dot {
  width: 3px;
  height: 8px;
  border-radius: 3px;
  background: var(--blue);
  animation: scrollBounce 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--glow-blue);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: .3; }
}

.scroll-text {
  font-size: 10px;
  letter-spacing: 3px;
  color: rgba(255,255,255,.25);
  text-transform: uppercase;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .nav-links { gap: 28px; }
  .hero-stats { gap: 28px; }
  .stat-divider { height: 32px; }
}

@media (max-width: 768px) {
  #navbar { height: 64px; }

  .nav-links { display: none; }

  .nav-cta {
    font-size: 11px;
    padding: 8px 20px;
    letter-spacing: 2px;
  }

  .title-line[data-line="0"] .title-word {
    margin-right: 12px;
  }

  .title-sub {
    margin-top: 8px;
  }

  .hero-desc {
    font-size: 14px;
    max-width: 90%;
    margin-bottom: 32px;
  }

  .hero-btn {
    padding: 16px 36px;
    font-size: 12px;
  }

  .hero-stats { gap: 20px; }

  .stat-value { font-size: 26px; }
  .stat-label { font-size: 10px; letter-spacing: 1.5px; }
  .stat-divider { height: 28px; }

  .hero-eyebrow { margin-bottom: 16px; }
  .eyebrow-text { font-size: 10px; letter-spacing: 4px; }
  .eyebrow-line { width: 24px; }

  .scroll-indicator { bottom: 24px; }
}

@media (max-width: 480px) {
  .title-line[data-line="0"] {
    font-size: 56px;
  }

  .title-sub {
    font-size: 13px;
    letter-spacing: 4px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
  }

  .stat-divider {
    display: none;
  }

  .hero-desc {
    font-size: 13px;
    line-height: 1.7;
  }
}

/* GPU acceleration hints */
.hero-video-wrap,
.hero-content,
#heroVideo,
.ambient-orb,
.loader-stripes span {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ========================================================
   HERITAGE SECTION — CINEMATIC ALTERNATING TIMELINE
   ======================================================== */
.heritage-section {
  position: relative;
  width: 100%;
  background: var(--black);
  padding: 160px 0 220px;
  overflow: hidden;
  z-index: 10;
}

/* Ambient Backdrops */
.heritage-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.heritage-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.6;
}

.heritage-glow-1 {
  width: 900px;
  height: 900px;
  top: 15%;
  left: -200px;
  background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 65%);
}

.heritage-glow-2 {
  width: 1000px;
  height: 1000px;
  bottom: 10%;
  right: -250px;
  background: radial-gradient(circle, rgba(8,26,51,0.4) 0%, rgba(37,99,235,0.05) 40%, transparent 70%);
}

.heritage-container {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 64px);
  z-index: 1;
}

/* Section Header */
.heritage-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.heritage-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.eyebrow-dash {
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.eyebrow-tag {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 5px;
  color: var(--gold);
  text-transform: uppercase;
}

.heritage-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.5vw, 64px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 24px;
}

.heritage-subtitle {
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 300;
  line-height: 1.8;
  color: rgba(199,210,254,0.65);
}

/* Timeline Layout */
.heritage-timeline {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 160px;
}

/* Central Timeline Spine */
.timeline-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.06);
  z-index: 1;
}

.timeline-tracer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--blue) 0%, #60a5fa 70%, var(--gold) 100%);
  box-shadow: 0 0 16px rgba(37,99,235,0.8), 0 0 32px rgba(37,99,235,0.4);
  will-change: height;
}

/* Timeline Entry */
.timeline-entry {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 100px 1fr;
  align-items: center;
  width: 100%;
  z-index: 2;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-entry.is-subdued {
  opacity: 0.35;
  filter: blur(0.5px);
}

.timeline-entry.is-active {
  opacity: 1;
  filter: none;
}

/* Central Node */
.entry-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Horizontal connecting arm to media */
.entry-left .entry-node::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 50%;
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, rgba(37,99,235,0.4), rgba(255,255,255,0.15));
  transform: translateY(-50%);
  pointer-events: none;
  transition: all 0.5s ease;
}

.entry-right .entry-node::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.15), rgba(37,99,235,0.4));
  transform: translateY(-50%);
  pointer-events: none;
  transition: all 0.5s ease;
}

.timeline-entry.is-active.entry-left .entry-node::before {
  background: linear-gradient(90deg, var(--blue), rgba(96,165,250,0.9));
  box-shadow: 0 0 8px rgba(37,99,235,0.5);
}

.timeline-entry.is-active.entry-right .entry-node::before {
  background: linear-gradient(90deg, rgba(96,165,250,0.9), var(--blue));
  box-shadow: 0 0 8px rgba(37,99,235,0.5);
}

.node-ring {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(5,5,5,0.85);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.node-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.node-number {
  position: absolute;
  top: -26px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.3);
  transition: color 0.4s ease;
}

.timeline-entry.is-active .node-ring {
  border-color: var(--blue);
  box-shadow: 0 0 24px rgba(37,99,235,0.7), inset 0 0 12px rgba(37,99,235,0.3);
  transform: scale(1.15);
}

.timeline-entry.is-active .node-dot {
  background: var(--blue);
  box-shadow: 0 0 12px var(--blue);
}

.timeline-entry.is-active .node-number {
  color: var(--text-secondary);
}

/* Image Frames - Floating Transparent Car Assets */
.entry-media {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-frame::after {
  content: '';
  position: absolute;
  bottom: 4%;
  left: 10%;
  width: 80%;
  height: 24px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.85) 0%, rgba(37, 99, 235, 0.08) 35%, transparent 70%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
  transition: all 0.6s ease;
}

.image-frame img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  z-index: 1;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.85)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
  transform: scale(1.0);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
  will-change: transform, filter;
}

.timeline-entry.is-active .image-frame {
  transform: translateY(-4px);
}

.timeline-entry.is-active .image-frame::after {
  opacity: 1;
  transform: scale(1.06);
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.95) 0%, rgba(37, 99, 235, 0.2) 40%, transparent 70%);
}

.timeline-entry.is-active .image-frame img {
  filter: drop-shadow(0 26px 40px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 28px rgba(37, 99, 235, 0.22));
  transform: scale(1.03);
}

.image-overlay {
  display: none;
}

/* Content Area */
.entry-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 20px;
}

.entry-left .entry-content {
  padding-left: 40px;
}

.entry-right .entry-content {
  padding-right: 40px;
}

.entry-tag {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.entry-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 18px;
}

.entry-desc {
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(199,210,254,0.7);
  margin-bottom: 28px;
}

/* Metadata Badges (Subtle square architectural borders) */
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 2px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.timeline-entry.is-active .meta-item {
  border-color: rgba(37,99,235,0.25);
  background: rgba(37,99,235,0.04);
}

.meta-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(199,210,254,0.45);
}

.meta-val {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--white);
}

/* ========================================================
   RESPONSIVE TIMELINE ADAPTATIONS
   ======================================================== */
@media (max-width: 1024px) {
  .heritage-section {
    padding: 120px 0 160px;
  }
  .heritage-timeline {
    gap: 120px;
  }
  .timeline-entry {
    grid-template-columns: 1fr 70px 1fr;
  }
  .entry-left .entry-content {
    padding-left: 20px;
  }
  .entry-right .entry-content {
    padding-right: 20px;
  }
}

@media (max-width: 860px) {
  /* Single-column vertical timeline for tablet & mobile */
  .timeline-track {
    left: 24px;
    transform: none;
  }

  .timeline-entry {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 64px;
    gap: 24px;
  }

  .timeline-entry .entry-media {
    order: 2;
  }
  .timeline-entry .entry-content {
    order: 3;
    padding: 0;
  }

  .entry-node {
    position: absolute;
    left: 24px;
    top: 0;
    transform: translateX(-50%);
    width: auto;
    height: auto;
  }

  .entry-left .entry-node::before,
  .entry-right .entry-node::before {
    display: none;
  }

  .node-number {
    position: static;
    margin-bottom: 6px;
  }

  .heritage-header {
    margin-bottom: 80px;
    text-align: left;
    align-items: flex-start;
  }
  .heritage-eyebrow {
    justify-content: flex-start;
  }
}

/* ========================================================
   PERFORMANCE SECTION — 3D AUTOMOTIVE LABORATORY STYLES
   Cinematic Dark Stage · HUD Telemetry · Engineering Annotations
   ======================================================== */

.perf-section {
  position: relative;
  width: 100%;
  background: #020204;
  color: var(--white);
  z-index: 20;
}

.perf-sticky-wrap {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: radial-gradient(circle at 50% 60%, #060913 0%, #020204 70%, #000000 100%);
}

.perf-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  outline: none;
}

/* Atmospheric Overlays */
.perf-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle at 50% 50%, transparent 45%, rgba(2, 2, 4, 0.4) 75%, rgba(0, 0, 0, 0.85) 100%);
}

.perf-ambient-glow {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: 70vw;
  height: 35vh;
  background: radial-gradient(ellipse 60% 40% at center, rgba(37, 99, 235, 0.09), transparent 70%);
  pointer-events: none;
  z-index: 2;
  filter: blur(40px);
}

.perf-grid-floor {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40vh;
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 80%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 80%, black 20%, transparent 80%);
  opacity: 0.7;
}

/* Interactive Audio Controls */
.perf-audio-toggle {
  position: absolute;
  top: clamp(20px, 3.5vh, 36px);
  right: clamp(20px, 3.5vw, 48px);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(6, 10, 18, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.perf-audio-toggle:hover {
  color: #ffffff;
  border-color: rgba(59, 130, 246, 0.6);
  background: rgba(10, 16, 30, 0.88);
  box-shadow: 0 10px 36px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}

.perf-audio-toggle:active {
  transform: translateY(1px);
}

.perf-audio-toggle.is-active {
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.85);
  background: rgba(37, 99, 235, 0.18);
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.35);
}

/* Micro-Equalizer Waveform Bars */
.audio-waves {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 14px;
}

.wave-bar {
  display: inline-block;
  width: 2px;
  height: 5px;
  background-color: currentColor;
  border-radius: 2px;
  opacity: 0.45;
  transform-origin: bottom;
  transition: opacity 0.3s ease, height 0.2s ease;
}

.is-active .wave-bar {
  opacity: 1;
  animation: audioWaveBounce 1.1s ease-in-out infinite alternate;
}

.is-active .wave-bar.bar-1 {
  height: 10px;
  animation-delay: 0s;
}

.is-active .wave-bar.bar-2 {
  height: 14px;
  animation-delay: 0.22s;
}

.is-active .wave-bar.bar-3 {
  height: 8px;
  animation-delay: 0.12s;
}

.is-active .wave-bar.bar-4 {
  height: 12px;
  animation-delay: 0.34s;
}

@keyframes audioWaveBounce {
  0% {
    transform: scaleY(0.35);
  }
  50% {
    transform: scaleY(1.0);
  }
  100% {
    transform: scaleY(0.45);
  }
}

/* 3D Model Loading Bar */
.perf-model-loader {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 2, 4, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

.perf-model-loader.is-loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.perf-loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.perf-loader-spinner {
  width: 38px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: perfSpin 1s linear infinite;
}

@keyframes perfSpin {
  to { transform: rotate(360deg); }
}

.perf-loader-text {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  color: rgba(199, 210, 254, 0.7);
  text-transform: uppercase;
}

.perf-loader-bar {
  width: 180px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1px;
  overflow: hidden;
}

.perf-loader-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #0066B1, #2563EB, #E22718);
  transition: width 0.2s ease;
}

.perf-loader-percent {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1px;
}

/* HUD Overlay Layer */
.perf-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

/* Full-Screen State Views */
.perf-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}

/* 1. INTRO SCREEN */
.perf-intro {
  text-align: center;
  gap: 14px;
}

.perf-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 6px;
  color: rgba(199, 210, 254, 0.65);
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95);
}

.perf-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.05;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0, 0, 0, 0.9);
}

.perf-scroll-hint {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.perf-scroll-hint .hint-line {
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.perf-scroll-hint .hint-text {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  color: rgba(199, 210, 254, 0.4);
}

/* 4 & 5. ENGINEERING HUD ANNOTATIONS (DIRECT TYPOGRAPHY IN NEGATIVE SPACE) */
.perf-annotation {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  z-index: 15;
  will-change: opacity, transform;
  display: flex;
  flex-direction: column;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dedicated Negative-Space Staging */
.annot-pos-power {
  top: 15%;
  left: clamp(30px, 6vw, 90px);
  align-items: flex-start;
}

.annot-pos-displacement {
  top: 15%;
  right: clamp(30px, 6vw, 90px);
  align-items: flex-end;
  text-align: right;
}

.annot-pos-torque {
  top: 28%;
  left: clamp(30px, 6vw, 90px);
  align-items: flex-start;
}

.annot-direct {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 400px;
}

.annot-hairline {
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), transparent);
  margin-top: 10px;
}

.annot-pos-displacement .annot-hairline {
  margin-left: auto;
  background: linear-gradient(270deg, var(--blue), transparent);
}

.annot-tag {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #60a5fa;
  text-transform: uppercase;
  margin-bottom: 2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 0 16px rgba(37, 99, 235, 0.6);
}

.annot-val-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 0.9;
  margin-bottom: 6px;
}

.annot-pos-displacement .annot-val-row {
  justify-content: flex-end;
}

.annot-num {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -2px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 40px rgba(255, 255, 255, 0.3);
}

.annot-unit {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 800;
  color: #3b82f6;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95);
}

.annot-sub {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: rgba(220, 230, 255, 0.8);
  letter-spacing: 1px;
  line-height: 1.4;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
}

/* 6. ACCELERATION HUD (NEGATIVE SPACE - DOCKED BOTTOM-LEFT, NO CARDS) */
.perf-accel {
  justify-content: flex-end;
  align-items: flex-start;
  padding-left: clamp(30px, 6vw, 90px);
  padding-bottom: 70px;
}

.accel-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
  gap: 12px;
  max-width: 440px;
}

.accel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 28px;
}

.telemetry-badge {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(199, 210, 254, 0.65);
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
}

.accel-sprint-badge {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 1px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
}

.accel-sprint-badge strong {
  color: #E22718;
  font-weight: 700;
}

.accel-speed-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
  line-height: 0.9;
}

.accel-speed-num {
  font-family: var(--font-display);
  font-size: clamp(64px, 8vw, 100px);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -2px;
  min-width: 150px;
  text-align: right;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0, 0, 0, 0.9);
}

.accel-speed-unit {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #3b82f6;
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

.accel-speed-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.accel-speed-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #2563EB, #00C2FF, #E22718);
  transition: width 0.1s linear;
}

.accel-gear-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: rgba(199, 210, 254, 0.6);
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
}

.accel-gear-indicator strong {
  color: #ffffff;
}

.gear-dot {
  color: rgba(255, 255, 255, 0.3);
}

/* 7. RPM SEQUENCE HUD (NEGATIVE SPACE - DOCKED BOTTOM-LEFT, NO CARDS) */
.perf-rpm {
  justify-content: flex-end;
  align-items: flex-start;
  padding-left: clamp(30px, 6vw, 90px);
  padding-bottom: 70px;
}

.rpm-container {
  display: flex;
  flex-direction: column;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
  gap: 12px;
  max-width: 480px;
  width: 85vw;
}

.rpm-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.rpm-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(199, 210, 254, 0.65);
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
}

.rpm-readout {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.rpm-number {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -1px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.95);
}

.rpm-unit {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #E22718;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

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

.rpm-fill {
  height: 100%;
  width: 15%;
  background: linear-gradient(90deg, #2563EB 0%, #00C2FF 50%, #FFB800 80%, #E22718 100%);
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(226, 39, 24, 0.4);
  transition: width 0.08s linear;
}

.rpm-ticks {
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.rpm-ticks .tick {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
}

.rpm-ticks .tick-redline {
  color: #E22718;
  font-weight: 800;
}

.rpm-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 1px;
  color: rgba(199, 210, 254, 0.55);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
}

.rpm-status {
  font-weight: 700;
  color: #3b82f6;
  letter-spacing: 2px;
}

/* 8. CORNERING / G-FORCE HUD (NEGATIVE SPACE - DOCKED BOTTOM-RIGHT, NO CARDS) */
.perf-gforce {
  justify-content: flex-end;
  align-items: flex-end;
  padding-right: clamp(30px, 6vw, 90px);
  padding-bottom: 70px;
}

.gforce-widget {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
  gap: 14px;
}

.gforce-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
}

.gforce-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(199, 210, 254, 0.5);
  text-transform: uppercase;
}

.gforce-readout {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.5px;
}

.gforce-crosshair-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gforce-axis-y {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.12);
}

.gforce-axis-x {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.gforce-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.gforce-circle.c-1 { width: 44px; height: 44px; }
.gforce-circle.c-2 { width: 88px; height: 88px; }
.gforce-circle.c-3 { width: 132px; height: 132px; border-style: solid; border-color: rgba(37, 99, 235, 0.3); }

.gforce-target {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 12px var(--blue);
  transform: translate(-50%, -50%);
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.gforce-axis-label {
  position: absolute;
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1px;
  color: rgba(199, 210, 254, 0.35);
}

.gforce-axis-label.top { top: 2px; }
.gforce-axis-label.bottom { bottom: 2px; }
.gforce-axis-label.left { left: 4px; }
.gforce-axis-label.right { right: 4px; }

.gforce-chassis {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 1px;
  color: rgba(199, 210, 254, 0.45);
  text-align: center;
}

/* 9. SPEED BURST KINETIC TYPOGRAPHY (NEGATIVE SPACE - DOCKED TOP-LEFT, NO CARDS) */
.perf-speed-burst {
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: clamp(60px, 14vh, 130px);
  padding-left: clamp(30px, 6vw, 90px);
  text-align: left;
}

.speed-burst-typo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.burst-kicker {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 5px;
  color: #00C2FF;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(0, 194, 255, 0.6), 0 2px 8px rgba(0, 0, 0, 0.95);
}

.burst-num-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  line-height: 0.85;
}

.burst-num {
  font-family: var(--font-display);
  font-size: clamp(80px, 14vw, 150px);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -4px;
  text-shadow: 0 6px 32px rgba(0, 0, 0, 0.95), 0 0 50px rgba(37, 99, 235, 0.4);
}

.burst-unit {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 800;
  color: #E22718;
  letter-spacing: 2px;
  text-shadow: 0 2px 16px rgba(226, 39, 24, 0.7), 0 2px 6px rgba(0, 0, 0, 0.95);
}

.burst-sub {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(220, 230, 255, 0.75);
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95);
}

/* 10. FINAL PERFORMANCE COMPOSITION (DIRECT TYPOGRAPHY IN LOWER NEGATIVE SPACE) */
.perf-finale {
  justify-content: flex-end;
  align-items: center;
  padding-bottom: clamp(35px, 6vh, 60px);
  text-align: center;
  gap: clamp(14px, 2vh, 22px);
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  z-index: 25;
}

.finale-stats {
  display: flex;
  align-items: center;
  gap: clamp(24px, 5vw, 56px);
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.finale-stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.f-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95);
}

.f-label {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: rgba(199, 210, 254, 0.75);
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95);
}

.f-sep {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.15);
}

.finale-quote {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3.2vw, 42px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.95), 0 2px 8px rgba(0, 0, 0, 0.95);
}

.quote-accent {
  background: linear-gradient(135deg, #ffffff 0%, #93c5fd 50%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.95));
}

/* Responsive Adaptations */
@media (max-width: 768px) {
  .annot-card {
    min-width: 200px;
    padding: 12px 16px;
  }
  .accel-container,
  .rpm-container,
  .gforce-widget {
    padding: 18px 22px;
  }
  .finale-stats {
    gap: 16px;
    padding: 14px 20px;
  }
  .f-sep {
    height: 24px;
  }
}

/* ==========================================================================
   THE M3 COLLECTION — CINEMATIC FULL-SCREEN PINNED SECTION
   ========================================================================== */
.collection-section {
  position: relative;
  width: 100%;
  background: #020205;
  overflow: visible;
  z-index: 40;
}

.collection-sticky-wrap {
  position: sticky;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 60%, #070913 0%, #020205 75%, #000000 100%);
}

/* Subtle dark stage ambient light */
.collection-ambient-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 55%, rgba(37, 99, 235, 0.08) 0%, rgba(15, 23, 42, 0.03) 50%, rgba(2, 2, 5, 0.95) 85%);
  z-index: 1;
}

/* Minimal Editorial Counter */
.collection-counter {
  position: absolute;
  top: clamp(24px, 4vh, 44px);
  right: clamp(24px, 4vw, 56px);
  z-index: 30;
  font-family: var(--font-display);
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 700;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: baseline;
  gap: 6px;
  user-select: none;
}

.counter-curr {
  color: #ffffff;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}

.counter-sep {
  color: rgba(59, 130, 246, 0.7);
}

.counter-total {
  color: rgba(255, 255, 255, 0.35);
}

/* Editorial Typography Stage (Upper Negative Space) */
.collection-editorial-stage {
  position: absolute;
  top: clamp(24px, 4.5vh, 48px);
  left: 50%;
  transform: translateX(-50%);
  width: min(1000px, 88vw);
  z-index: 20;
  pointer-events: none;
  text-align: center;
}

.collection-editorial-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(5px, 0.9vh, 8px);
  pointer-events: none;
}

.col-badge {
  font-family: var(--font-body);
  font-size: clamp(9px, 0.75vw, 11px);
  font-weight: 700;
  letter-spacing: 3px;
  color: #3b82f6;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.col-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 58px);
  font-weight: 900;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.05;
  margin: 0;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.95);
}

.col-tagline {
  font-family: var(--font-display);
  font-size: clamp(11px, 1vw, 14px);
  font-weight: 700;
  letter-spacing: 4px;
  color: rgba(147, 197, 253, 0.9);
  text-transform: uppercase;
  margin: 0;
}

.col-desc {
  font-family: var(--font-body);
  font-size: clamp(12px, 0.95vw, 15px);
  color: rgba(203, 213, 225, 0.85);
  max-width: 600px;
  line-height: 1.45;
  margin: 0 auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.col-specs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.5vw, 36px);
  margin-top: clamp(6px, 1vh, 12px);
}

.col-spec {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.spec-val {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.4vw, 20px);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  line-height: 1;
}

.spec-lbl {
  font-family: var(--font-body);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(147, 197, 253, 0.7);
  text-transform: uppercase;
}

.col-spec-sep {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.15);
}

/* Vehicle Stage */
.collection-car-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
}

.collection-car-actor {
  position: absolute;
  top: 28vh;
  left: 0;
  width: 100%;
  height: 66vh;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  will-change: transform, opacity;
  opacity: 0;
  visibility: hidden;
}

.col-car-img {
  display: block;
  width: auto;
  max-width: min(1120px, 80vw);
  max-height: 58vh;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.95)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.8));
}

@media (max-width: 768px) {
  .collection-editorial-stage {
    top: 18px;
    width: 92vw;
  }
  .col-specs {
    gap: 12px;
  }
  .col-desc {
    display: none; /* keep clean on tiny screens */
  }
  .collection-car-actor {
    top: 32vh;
    height: 60vh;
  }
  .col-car-img {
    max-width: 90vw;
    max-height: 50vh;
  }
}

