/* ==========================================================================
   WHOOSH DYNAMICS — SPATIAL WEBGL & SWISS MOTORSPORT DESIGN SYSTEM (v8)
   Typography: `Clash Display` Variable (Headers & Metrics) + `Satoshi` Variable (UI & Body)
   Palette: Sunlit Architectural White (#F7F7F9) · Racing Crimson (#D61525) · Obsidian (#0B0C10)
   ========================================================================== */

@font-face {
  font-family: 'Clash Display';
  src: url('../assets/fonts/ClashDisplay-Variable.woff2') format('woff2');
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('../assets/fonts/Satoshi-Variable.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('../assets/fonts/JetBrainsMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-day: #F7F7F9;
  --bg-pure: #FFFFFF;
  --bg-stone: #EFEFF3;
  --bg-obsidian: #0B0C10;
  --bg-obsidian-card: rgba(255, 255, 255, 0.045);

  --crimson: #D61525;
  --crimson-bright: #E5192B;
  --crimson-soft: rgba(214, 21, 37, 0.08);

  --ink: #0D0D11;
  --ink-body: #464652;
  --ink-muted: #7E7E8C;

  --rule: rgba(13, 13, 17, 0.085);
  --rule-strong: rgba(13, 13, 17, 0.16);
  --rule-dark: rgba(255, 255, 255, 0.10);

  --font-display: 'Clash Display', 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-code: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background-color: var(--bg-day);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  background-color: var(--bg-day);
  color: var(--ink);
  overflow-x: clip;
  font-size: 16.5px;
  line-height: 1.65;
  font-weight: 400;
}

::selection {
  background: var(--crimson);
  color: #FFFFFF;
}

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

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

img, svg, canvas {
  display: block;
  max-width: 100%;
}

/* ==========================================================================
   CONTINUOUS FULL-VIEWPORT 3D WEBGL WORLD (`#world-stage`)
   ========================================================================== */
.world-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.6s var(--ease-expo);
}

.world-stage.is-interactive {
  pointer-events: auto;
}

#world-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Subtle Architectural Horizon Hairlines behind 3D Aircraft */
.world-grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(13, 13, 17, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13, 13, 17, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle 75vw at 55% 48%, rgba(0,0,0,0.85), transparent 82%);
  -webkit-mask-image: radial-gradient(circle 75vw at 55% 48%, rgba(0,0,0,0.85), transparent 82%);
  transition: opacity 0.6s ease;
}

/* Real-Time 3D-to-2D Projected World-Space Callout Pins */
.spatial-pins-layer {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.3s ease;
}

.spatial-pins-layer.is-hidden {
  opacity: 0 !important;
  visibility: hidden;
}

.spatial-pin {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translate3d(-999px, -999px, 0);
  transition: opacity 0.35s ease;
  will-change: transform, opacity;
}

.spatial-pin.is-visible {
  opacity: 1;
}

.spatial-pin__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 0 4px rgba(214, 21, 37, 0.18);
  flex-shrink: 0;
}

.spatial-pin__card {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(13, 13, 17, 0.10);
  padding: 7px 13px;
  border-radius: 999px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(13, 13, 17, 0.06);
  white-space: nowrap;
}

.spatial-pin__card strong {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.spatial-pin__card span {
  font-size: 12px;
  color: var(--ink-body);
}

/* Context-Aware Morphing Spatial Cursor (Desktop Only) */
.spatial-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3000;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  margin-top: -5px;
  border-radius: 999px;
  background: var(--crimson);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: width 0.32s var(--ease-expo), height 0.32s var(--ease-expo),
              margin 0.32s var(--ease-expo), background 0.25s ease, opacity 0.25s ease;
  opacity: 0;
}

.spatial-cursor.is-active {
  opacity: 1;
}

.spatial-cursor.is-pill {
  width: 96px;
  height: 32px;
  margin-left: -48px;
  margin-top: -16px;
  background: rgba(13, 13, 17, 0.88);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.spatial-cursor span {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.spatial-cursor.is-pill span {
  opacity: 1;
}

@media (hover: none), (max-width: 1024px) {
  .spatial-cursor { display: none !important; }
}

/* ==========================================================================
   TOP SCROLL RIBBON & FLOATING CAPSULE NAVIGATION DOCK (Zero SaaS Header!)
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--crimson);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 2100;
  pointer-events: none;
}

.floating-header {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 1500;
  pointer-events: none;
}

.floating-header__inner {
  width: min(1380px, 92vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(13, 13, 17, 0.08);
  box-shadow: 0 8px 28px rgba(13, 13, 17, 0.04);
  transition: transform 0.25s var(--ease-expo), background 0.3s ease;
}

.brand-pill:hover {
  transform: translateY(-1px);
}

.brand-pill img {
  height: 16px;
  width: auto;
}

.nav-capsule {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(13, 13, 17, 0.085);
  box-shadow: 0 10px 32px rgba(13, 13, 17, 0.05);
}

.nav-capsule__link {
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 480;
  color: var(--ink-body);
  transition: color 0.2s ease, background 0.25s var(--ease-expo);
  white-space: nowrap;
}

.nav-capsule__link:hover {
  color: var(--ink);
}

.nav-capsule__link.is-active {
  background: var(--ink);
  color: #FFFFFF;
}

.header-cta-group {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(16px);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ==========================================================================
   EDITORIAL TYPOGRAPHY & SCULPTURAL SCALE CONTRAST
   Clear, breathable, pleasing — never crammed or flashy
   ========================================================================== */
.container {
  width: min(1360px, 91vw);
  margin: 0 auto;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  width: 18px;
  height: 1.5px;
  background: currentColor;
}

.h-monolith {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.75vw, 84px);
  font-weight: 600;
  line-height: 0.99;
  letter-spacing: -0.024em;
  color: var(--ink);
}

.serif-accent,
.sport-accent {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 600;
  color: var(--crimson);
  letter-spacing: -0.024em;
}

.section--obsidian .serif-accent,
.section--obsidian .sport-accent {
  color: #FF2E40;
}

.section--crimson .serif-accent,
.section--crimson .sport-accent {
  color: #FFFFFF;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.h-editorial {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.0vw, 58px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.022em;
}

.p-lead {
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.18vw, 19px);
  line-height: 1.66;
  color: var(--ink-body);
  max-width: 50ch;
  font-weight: 450;
}

code {
  font-family: var(--font-code);
  font-size: 0.9em;
}

.mono-num {
  font-family: var(--font-sans);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Giant Whisper-Subtle Architectural Watermark Index behind Spreads */
.bg-index-mark {
  position: absolute;
  right: 0;
  top: -34px;
  font-family: var(--font-display);
  font-size: clamp(104px, 15vw, 230px);
  font-weight: 600;
  line-height: 0.85;
  letter-spacing: -0.035em;
  color: rgba(13, 13, 17, 0.032);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.section--obsidian .bg-index-mark {
  color: rgba(255, 255, 255, 0.035);
}

/* ==========================================================================
   TACTILE BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 25px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.28s var(--ease-expo), background 0.25s ease,
              border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.btn--crimson {
  background: var(--crimson);
  color: #FFFFFF;
  box-shadow: 0 10px 28px rgba(214, 21, 37, 0.24);
}

.btn--crimson:hover {
  background: var(--crimson-bright);
  box-shadow: 0 14px 34px rgba(214, 21, 37, 0.34);
}

.btn--glass {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  color: var(--ink);
  border-color: var(--rule-strong);
}

.btn--glass:hover {
  background: #FFFFFF;
  border-color: var(--ink);
}

.btn--white {
  background: #FFFFFF;
  color: var(--crimson);
  font-weight: 560;
}

.btn--white:hover {
  background: #F4F4F7;
}

.btn--dark-glass {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.18);
}

.btn--dark-glass:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #FFFFFF;
}

.btn--sm {
  padding: 9px 18px;
  font-size: 13px;
}

/* ==========================================================================
   ACT I — MONOLITH SPATIAL HERO (Full-Viewport 3D Stage)
   ========================================================================== */
.spatial-main {
  position: relative;
  z-index: 3;
  pointer-events: none; /* Let pointer pass through empty space to 3D aircraft! */
}

.spatial-main a,
.spatial-main button,
.spatial-main input,
.spatial-main select,
.spatial-main textarea,
.spatial-main label,
.opaque-chapter {
  pointer-events: auto;
}

.hero-monolith {
  min-height: 100vh;
  padding: 124px 0 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.hero-monolith__top {
  max-width: 680px;
}

.hero-monolith__bottom {
  display: grid;
  grid-template-columns: 1.05fr 1.35fr;
  gap: 40px;
  align-items: end;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-telemetry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.telemetry-cell {
  border-left: 1px solid var(--rule);
  padding-left: 18px;
}

.telemetry-cell__val {
  font-family: var(--font-display);
  font-variant-numeric: proportional-nums lining-nums;
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}

.telemetry-cell__val span {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--crimson);
  margin-left: 4px;
  font-weight: 600;
}

.telemetry-cell__lbl {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 4px;
}

/* ==========================================================================
   ACT II — SCROLL-CHOREOGRAPHED 3D DECONSTRUCTION THEATRE (`#aircraft`)
   Full-screen borderless 3D aircraft in center/right, floating glass beats on left!
   ========================================================================== */
.scrolly-theatre {
  position: relative;
  padding: 6vh 0 14vh;
}

.scrolly-beat {
  min-height: 92vh;
  display: flex;
  align-items: center;
}

.scrolly-beat--right {
  justify-content: flex-end;
}

.beat-panel {
  pointer-events: auto;
  width: min(440px, 90vw);
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(24px) saturate(165%);
  -webkit-backdrop-filter: blur(24px) saturate(165%);
  border: 1px solid rgba(13, 13, 17, 0.085);
  border-radius: 22px;
  padding: 34px 34px 30px;
  box-shadow: 0 24px 64px rgba(13, 13, 17, 0.06);
}

.beat-panel__index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--crimson);
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}

.beat-panel h2 {
  font-size: clamp(24px, 2.3vw, 32px);
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: -0.032em;
  margin-bottom: 14px;
}

.beat-panel p {
  font-size: 15.5px;
  color: var(--ink-body);
  line-height: 1.66;
  margin-bottom: 22px;
}

.beat-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.beat-specs span {
  display: block;
  font-size: 11.5px;
  color: var(--ink-muted);
}

.beat-specs strong {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 560;
  color: var(--ink);
}

/* Floating Bottom-Center Interactive 3D Mode Dock during Spatial Acts */
.stage-dock {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(13, 13, 17, 0.10);
  box-shadow: 0 16px 44px rgba(13, 13, 17, 0.09);
  transition: opacity 0.35s ease, transform 0.35s var(--ease-expo);
}

.stage-dock.is-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  pointer-events: none;
}

.dock-btn {
  border: none;
  background: transparent;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-body);
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.dock-btn:hover {
  color: var(--ink);
}

.dock-btn.is-active {
  background: var(--ink);
  color: #FFFFFF;
}

.dock-divider {
  width: 1px;
  height: 18px;
  background: var(--rule-strong);
}

.dock-slider {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-body);
}

.dock-slider input[type="range"] {
  width: 84px;
  accent-color: var(--crimson);
  cursor: pointer;
}

/* ==========================================================================
   ACT III — DRAMATIC OBSIDIAN WIND-TUNNEL & 20.00m FLIGHT LAB (`#physics`)
   ("A bit of black, not too much" — 1 high-contrast Rorelse cinema spread!)
   ========================================================================== */
.opaque-chapter {
  position: relative;
  z-index: 6;
}

.section--obsidian {
  background: var(--bg-obsidian);
  color: #FFFFFF;
  padding: clamp(110px, 12vw, 172px) 0;
  position: relative;
  overflow: hidden;
}

.section--obsidian::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 720px at 78% 18%, rgba(214, 21, 37, 0.16), transparent 68%);
}

.section--obsidian .p-lead {
  color: rgba(255, 255, 255, 0.70);
}

.editorial-head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(56px, 6vw, 84px);
  position: relative;
  z-index: 2;
}

/* Obsidian Wind-Tunnel Trajectory Instrument */
.wind-lab-panel {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--rule-dark);
  border-radius: 24px;
  padding: clamp(24px, 3.5vw, 44px);
  backdrop-filter: blur(20px);
  position: relative;
  z-index: 2;
}

.trajectory-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.trajectory-controls {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.clean-slider {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 195px;
}

.clean-slider__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
  color: var(--ink-body);
}

.section--obsidian .clean-slider__head {
  color: rgba(255, 255, 255, 0.68);
}

.clean-slider__head output {
  font-family: var(--font-mono);
  font-weight: 560;
  color: var(--ink);
}

.section--obsidian .clean-slider__head output {
  color: #FFFFFF;
}

.clean-slider input[type="range"] {
  accent-color: var(--crimson-bright);
  cursor: pointer;
}

#trajectory-canvas {
  width: 100%;
  height: 330px;
  border-radius: 14px;
  background: #0F1117;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.trajectory-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-dark);
}

.section--obsidian .telemetry-cell {
  border-left-color: var(--rule-dark);
}

.section--obsidian .telemetry-cell__val {
  color: #FFFFFF;
}

.section--obsidian .telemetry-cell__lbl {
  color: rgba(255, 255, 255, 0.52);
}

/* Cinema Engineering Gallery Strip inside Wind-Tunnel Lab */
.cinema-gallery {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 22px;
  margin-top: 28px;
}

.cinema-plate {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--rule-dark);
  background: #07080B;
  height: 360px;
  cursor: zoom-in;
}

.cinema-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-expo), opacity 0.4s ease;
  opacity: 0.90;
}

.cinema-plate:hover img {
  transform: scale(1.04);
  opacity: 1.0;
}

.cinema-plate__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 36px 26px 22px;
  background: linear-gradient(to top, rgba(7, 8, 11, 0.92), rgba(7, 8, 11, 0.45) 60%, transparent);
}

.cinema-plate__caption span {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #FF4252;
  display: block;
  margin-bottom: 4px;
}

.cinema-plate__caption h3 {
  font-size: 19px;
  font-weight: 550;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.cinema-plate__caption p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.5;
}

.cinema-strip-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.cinema-thumb {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--rule-dark);
  background: #090B10;
  cursor: zoom-in;
  transition: border-color 0.25s ease, transform 0.3s var(--ease-expo);
}

.cinema-thumb:hover {
  border-color: var(--crimson-bright);
  transform: translateY(-3px);
}

.cinema-thumb img {
  width: 100%;
  height: 128px;
  object-fit: cover;
}

.cinema-thumb__lbl {
  padding: 10px 14px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================================
   ACT IV — SUNLIT SWISS ARCHITECTURAL LEDGER (`#tracking`, `#team`, `#partners`)
   Zero SaaS Boxes — Hairline Architectural Grids & Sculptural Precision
   ========================================================================== */
.section--daylight {
  background: var(--bg-day);
  color: var(--ink);
  padding: clamp(110px, 11vw, 168px) 0;
  border-top: 1px solid var(--rule);
  position: relative;
}

.section--pure {
  background: var(--bg-pure);
  color: var(--ink);
  padding: clamp(110px, 11vw, 168px) 0;
  border-top: 1px solid var(--rule);
  position: relative;
}

/* Architectural Horizon Score & Countdown Ledger (Borderless Swiss Grid!) */
.architectural-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1px solid var(--rule-strong);
  margin-bottom: 44px;
}

.arch-cell {
  padding: 32px 0;
}

.arch-cell + .arch-cell {
  border-left: 1px solid var(--rule-strong);
  padding-left: 44px;
}

.countdown-giant {
  display: flex;
  gap: 28px;
  align-items: baseline;
  margin-top: 10px;
}

.countdown-giant div strong {
  font-family: var(--font-mono);
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 560;
  letter-spacing: -0.04em;
  line-height: 1;
}

.countdown-giant div span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-left: 4px;
}

.score-bar {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  gap: 3px;
  margin: 14px 0 12px;
}

.score-seg {
  height: 100%;
  border-radius: 999px;
}

.score-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 12.5px;
  color: var(--ink-body);
}

.score-legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 6px;
}

/* Segmented Tabs */
.toolbar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.seg-tabs {
  display: inline-flex;
  background: var(--bg-stone);
  padding: 4px;
  border-radius: 999px;
  gap: 4px;
}

.seg-tab {
  border: none;
  background: transparent;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-body);
  cursor: pointer;
  transition: all 0.25s var(--ease-expo);
}

.seg-tab.is-active {
  background: var(--ink);
  color: #FFFFFF;
}

.tab-panel {
  display: none;
  animation: panelReveal 0.38s var(--ease-expo);
}

.tab-panel.is-active {
  display: block;
}

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

/* Swiss Hairline Accordion Ledger (Zero Boxy Borders — Pure Horizontal Hairlines!) */
.swiss-ledger {
  border-top: 1px solid var(--rule-strong);
}

.track-row {
  border-bottom: 1px solid var(--rule);
  transition: background 0.25s ease;
}

.track-row__main {
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  padding: 22px 12px;
  display: grid;
  grid-template-columns: 88px 1.35fr 1fr 0.65fr 154px 28px;
  gap: 16px;
  align-items: center;
  cursor: pointer;
  transition: padding-left 0.28s var(--ease-expo);
}

.track-row__main:hover {
  padding-left: 20px;
  background: rgba(13, 13, 17, 0.018);
}

.track-code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--crimson);
  font-weight: 560;
}

.track-title {
  font-size: 17.5px;
  font-weight: 550;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.track-sub {
  font-size: 13.5px;
  color: var(--ink-body);
}

.track-pts {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 560;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  width: fit-content;
}

.status-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-pill--ready {
  background: rgba(21, 128, 61, 0.09);
  color: #15803D;
}

.status-pill--active {
  background: var(--crimson-soft);
  color: var(--crimson);
}

.status-pill--scheduled {
  background: var(--bg-stone);
  color: var(--ink-body);
}

.track-chev {
  font-size: 14px;
  color: var(--ink-muted);
  transition: transform 0.28s var(--ease-expo);
  text-align: right;
}

.track-row.is-open .track-chev {
  transform: rotate(180deg);
  color: var(--crimson);
}

.track-detail {
  display: none;
  padding: 2px 12px 26px 104px;
  font-size: 15px;
  color: var(--ink-body);
  line-height: 1.66;
}

.track-row.is-open .track-detail {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 28px;
}

.track-meta-box {
  border-left: 2px solid var(--crimson);
  padding: 6px 0 6px 18px;
  font-size: 13px;
  color: var(--ink);
}

/* R1–R8 Airworthiness Matrix Rows */
.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filter-chip {
  border: 1px solid var(--rule-strong);
  background: transparent;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-body);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #FFFFFF;
}

.rule-row {
  display: grid;
  grid-template-columns: 92px 1.25fr 1fr 1.05fr 100px;
  gap: 16px;
  padding: 18px 12px;
  border-bottom: 1px solid var(--rule);
  align-items: center;
  font-size: 14.5px;
}

.rule-row--head {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  border-bottom: 1.5px solid var(--ink);
}

.margin-meter {
  height: 4px;
  background: var(--bg-stone);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
  max-width: 150px;
}

.margin-meter > span {
  display: block;
  height: 100%;
  background: var(--crimson);
}

/* ==========================================================================
   SCULPTURAL RACING CRIMSON VENTURE SPREAD
   ========================================================================== */
.section--crimson {
  background: var(--crimson);
  color: #FFFFFF;
  padding: clamp(104px, 11vw, 156px) 0;
  position: relative;
  overflow: hidden;
}

.section--crimson .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.section--crimson .p-lead {
  color: rgba(255, 255, 255, 0.86);
}

/* ==========================================================================
   ARCHITECTURAL EDITORIAL CREW ROSTER (`#team`)
   ========================================================================== */
.roster-list {
  border-top: 1.5px solid var(--ink);
}

.roster-row {
  display: grid;
  grid-template-columns: 72px 1.05fr 1.05fr 1.3fr;
  gap: 24px;
  align-items: baseline;
  padding: 28px 8px;
  border-bottom: 1px solid var(--rule);
  transition: padding-left 0.3s var(--ease-expo), background 0.25s ease;
}

.roster-row:hover {
  padding-left: 20px;
  background: rgba(214, 21, 37, 0.025);
}

.roster-row__num {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--crimson);
}

.roster-row__name {
  font-size: clamp(20px, 1.9vw, 25px);
  font-weight: 560;
  letter-spacing: -0.028em;
}

.roster-row__title {
  font-size: 14.5px;
  font-weight: 520;
  color: var(--ink);
}

.roster-row__focus {
  font-size: 14.5px;
  color: var(--ink-body);
  line-height: 1.62;
}

/* ==========================================================================
   ARCHITECTURAL STRUCTURAL COLUMNS (Partners & Sponsorships — NOT SaaS Boxes!)
   ========================================================================== */
.arch-columns-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1.5px solid var(--ink);
  border-bottom: 1px solid var(--rule-strong);
}

.arch-col {
  padding: 40px 36px 40px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  position: relative;
}

.arch-col + .arch-col {
  border-left: 1px solid var(--rule-strong);
  padding-left: 36px;
}

.arch-col:last-child {
  padding-right: 0;
}

.arch-col__tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--crimson);
}

.arch-col__brand {
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 10px 0 14px;
}

.arch-col__foot {
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-muted);
}

/* ==========================================================================
   SUBPAGE FULL-BLEED 3D CONFIGURATOR STAGES (`sponsors.html` & `venture.html`)
   ========================================================================== */
.subpage-stage {
  position: relative;
  min-height: 92vh;
  padding: 120px 0 44px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle 760px at 72% 48%, rgba(214, 21, 37, 0.06), transparent 72%),
              var(--bg-day);
}

.subpage-stage__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  cursor: grab;
}

.subpage-stage__canvas:active {
  cursor: grabbing;
}

.subpage-stage__canvas canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.subpage-stage__ui {
  position: relative;
  z-index: 3;
  pointer-events: none;
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 40px;
  align-items: end;
  min-height: calc(92vh - 164px);
}

.subpage-stage__copy {
  pointer-events: auto;
  align-self: center;
  background: rgba(247, 247, 249, 0.76);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 32px;
  border-radius: 24px;
  border: 1px solid rgba(13, 13, 17, 0.07);
}

.subpage-stage__hud {
  pointer-events: auto;
  justify-self: end;
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.hud-caption-glass {
  max-width: 340px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(20px);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: 0 14px 36px rgba(13, 13, 17, 0.06);
}

/* Architectural 4-Column Sponsorship Matrix (`sponsors.html`) */
.tiers-architectural {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1.5px solid var(--ink);
  border-bottom: 1px solid var(--rule-strong);
}

.tier-col {
  padding: 38px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  border-right: 1px solid var(--rule-strong);
  transition: background 0.3s ease;
}

.tier-col:last-child {
  border-right: none;
}

.tier-col--flagship {
  background: var(--bg-pure);
  box-shadow: inset 0 3px 0 var(--crimson);
}

.tier-col:hover {
  background: var(--bg-pure);
}

.tier-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--crimson);
  display: block;
  margin-bottom: 12px;
}

.tier-name {
  font-size: 25px;
  font-weight: 580;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.tier-scope {
  font-size: 13.5px;
  color: var(--ink-muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 20px;
}

.tier-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-body);
  line-height: 1.55;
}

.tier-perks li {
  position: relative;
  padding-left: 16px;
}

.tier-perks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--crimson);
}

.tier-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

/* Allocation & Minimal Inquiry Form */
.split-2 {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.alloc-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1.5px solid var(--ink);
}

.alloc-item__head {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 8px;
}

.alloc-bar {
  height: 5px;
  background: var(--bg-stone);
  border-radius: 999px;
  overflow: hidden;
}

.alloc-bar > span {
  display: block;
  height: 100%;
  background: var(--crimson);
}

.form-architectural {
  background: var(--bg-pure);
  border: 1px solid var(--rule-strong);
  border-radius: 24px;
  padding: clamp(28px, 3.5vw, 44px);
}

.minimal-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 13px;
  font-weight: 520;
  color: var(--ink);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-width: 0;
  background: var(--bg-day);
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  padding: 13px 14px;
  font-size: 14.5px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--crimson);
  background: #FFFFFF;
}

/* Fullscreen BPP Presentation Deck (`venture.html`) */
.deck-overlay {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: var(--bg-day);
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 4vw, 48px);
}

.deck-overlay.is-open {
  display: flex;
}

.deck-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.deck-slide {
  display: none;
  width: min(1140px, 92vw);
  margin: auto;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.deck-slide.is-active {
  display: grid;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2600;
  background: rgba(11, 12, 16, 0.90);
  backdrop-filter: blur(18px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__inner {
  max-width: 1120px;
  width: 100%;
  background: #12141C;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  overflow: hidden;
}

.lightbox__img-wrap {
  background: #07080B;
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img-wrap img {
  max-height: 75vh;
  width: auto;
  object-fit: contain;
}

.lightbox__bar {
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

/* ==========================================================================
   ARCHITECTURAL OBSIDIAN FOOTER
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 6;
  background: var(--bg-obsidian);
  color: #FFFFFF;
  padding: 84px 0 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.82);
}

.footer-col ul a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1120px) {
  .tiers-architectural {
    grid-template-columns: repeat(2, 1fr);
  }
  .tier-col {
    border-bottom: 1px solid var(--rule-strong);
  }
  .cinema-strip-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .track-row__main {
    grid-template-columns: 76px 1.2fr 0.8fr 140px 24px;
  }
  .track-sub { display: none; }
}

@media (max-width: 1024px) {
  .nav-capsule {
    display: none;
    position: fixed;
    top: 74px;
    left: 5vw;
    right: 5vw;
    border-radius: 20px;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.96);
  }
  .nav-capsule.is-open {
    display: flex;
  }
  .nav-burger {
    display: inline-flex;
  }
  .hero-monolith__bottom,
  .editorial-head,
  .cinema-gallery,
  .architectural-band,
  .arch-columns-3,
  .subpage-stage__ui,
  .split-2,
  .deck-slide {
    grid-template-columns: 1fr;
  }
  .arch-cell + .arch-cell,
  .arch-col + .arch-col {
    border-left: none;
    border-top: 1px solid var(--rule-strong);
    padding-left: 0;
  }
  .arch-col {
    padding: 28px 0;
  }
  .roster-row {
    grid-template-columns: 48px 1fr;
    gap: 8px 16px;
  }
  .roster-row__title,
  .roster-row__focus {
    grid-column: 2;
  }
  .spatial-pins-layer {
    display: none;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .hero-telemetry,
  .trajectory-stats,
  .tiers-architectural,
  .minimal-form,
  .footer-top,
  .cinema-strip-4,
  .track-row.is-open .track-detail {
    grid-template-columns: 1fr;
  }
  .stage-dock .dock-slider {
    display: none;
  }
  .rule-row {
    grid-template-columns: 72px 1fr 92px;
  }
  .rule-row > div:nth-child(3),
  .rule-row > div:nth-child(4) .margin-meter {
    display: none;
  }
}


/* ==========================================================================
   v5 SPORTY MOTORSPORT × SPATIAL 3D FUSION MODULES
   ========================================================================== */

/* Hero Corner T-Minus Pill & Optional Night-Tunnel Mode */
.hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: nowrap;
}

.hero-hud-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 1180px) {
  .hero-top-row {
    flex-wrap: wrap;
  }
}

.tminus-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
  border: 1px solid var(--rule-strong);
  font-family: var(--font-mono);
  font-size: 12px;
  box-shadow: 0 10px 28px rgba(13, 13, 17, 0.05);
}

.tminus-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 0 4px rgba(214, 21, 37, 0.18);
  animation: pulseDot 1.8s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.65; }
}

.ig-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(16px);
  font-size: 12.5px;
  font-weight: 520;
  transition: all 0.22s ease;
}

.ig-pill:hover {
  border-color: var(--crimson);
  color: var(--crimson);
}

body.hero-tunnel-active {
  background-color: #090B10;
}

.hero-monolith.is-tunnel-dark .h-monolith,
.hero-monolith.is-tunnel-dark .telemetry-cell__val {
  color: #FFFFFF;
}

.hero-monolith.is-tunnel-dark .p-lead {
  color: rgba(255, 255, 255, 0.74);
}

.hero-monolith.is-tunnel-dark .telemetry-cell__lbl {
  color: rgba(255, 255, 255, 0.52);
}

.hero-monolith.is-tunnel-dark .hero-monolith__bottom,
.hero-monolith.is-tunnel-dark .telemetry-cell {
  border-color: rgba(255, 255, 255, 0.14);
}

.hero-monolith.is-tunnel-dark .tminus-pill {
  background: rgba(18, 20, 28, 0.84);
  border-color: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
}

/* Trim Preset Pills in #mission */
.trim-presets {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.trim-chip {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.78);
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.trim-chip:hover,
.trim-chip.is-active {
  background: var(--crimson);
  border-color: var(--crimson);
  color: #FFFFFF;
}

/* Interactive Dual-Mode Virtual Wind Tunnel (`#engineering`) */
.tunnel-shell {
  background: #0D1018;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.tunnel-topbar {
  padding: 18px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.02);
}

.tunnel-mode-pills {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px;
  border-radius: 999px;
  gap: 4px;
}

.tunnel-pill {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 560;
  cursor: pointer;
  transition: all 0.22s ease;
}

.tunnel-pill.is-active {
  background: var(--crimson);
  color: #FFFFFF;
}

.tunnel-controls-inline {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tunnel-badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
}

#wind-tunnel-canvas {
  width: 100%;
  height: 410px;
  display: block;
}

.tunnel-footer {
  padding: 22px 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
}

.tunnel-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* 10-Part SOLIDWORKS CAD Breakdown Stage (`#airframe`) */
.airframe-stage-box {
  position: relative;
  height: 540px;
  border-radius: 24px;
  overflow: hidden;
  background: radial-gradient(circle 540px at 60% 45%, rgba(214, 21, 37, 0.12), transparent 72%),
              #0B0E15;
  border: 1px solid rgba(255, 255, 255, 0.11);
}

#airframe-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

#airframe-3d-canvas:active {
  cursor: grabbing;
}

.airframe-hud-glass {
  position: absolute;
  top: 22px;
  left: 22px;
  width: min(360px, calc(100% - 44px));
  background: rgba(14, 17, 24, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  padding: 20px 22px;
  color: #FFFFFF;
  pointer-events: none;
}

.airframe-hud-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.airframe-pass-pill {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(229, 25, 43, 0.22);
  border: 1px solid rgba(255, 66, 82, 0.45);
  color: #FF6B78;
  font-weight: 600;
}

.airframe-corner-tags {
  position: absolute;
  top: 22px;
  right: 22px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  pointer-events: none;
}

.airframe-corner-tags span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(14, 17, 24, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.82);
}

.airframe-dock-bar {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(14, 17, 24, 0.88);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  max-width: calc(100% - 28px);
  flex-wrap: wrap;
  justify-content: center;
}

.cad-mode-btn {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 540;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cad-mode-btn:hover {
  color: #FFFFFF;
}

.cad-mode-btn.is-active {
  background: var(--crimson);
  color: #FFFFFF;
}

.cad-parts-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.cad-part-btn {
  text-align: left;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  padding: 13px 15px;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.22s var(--ease-expo);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cad-part-btn:hover {
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

.cad-part-btn.is-active {
  background: rgba(214, 21, 37, 0.16);
  border-color: #FF2E40;
  box-shadow: 0 8px 24px rgba(214, 21, 37, 0.18);
}

.cad-part-btn__top {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.52);
}

.cad-part-btn.is-active .cad-part-btn__top {
  color: #FF6B78;
}

.cad-part-btn__name {
  font-size: 13.5px;
  font-weight: 560;
  line-height: 1.25;
}

/* Validation in Motion Horizontal Cinema Reel (`#showcase`) */
.reel-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.reel-viewport {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(410px, 82vw);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 6px;
}

.reel-viewport::-webkit-scrollbar {
  display: none;
}

.reel-card {
  scroll-snap-align: start;
  border-radius: 20px;
  overflow: hidden;
  background: #10131C;
  border: 1px solid rgba(255, 255, 255, 0.10);
  cursor: zoom-in;
  transition: border-color 0.25s ease, transform 0.3s var(--ease-expo);
}

.reel-card:hover {
  border-color: #FF2E40;
  transform: translateY(-4px);
}

.reel-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.reel-card__cap {
  padding: 16px 20px;
}

.reel-card__cap span {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #FF4252;
  display: block;
  margin-bottom: 4px;
}

.reel-card__cap strong {
  font-size: 15.5px;
  font-weight: 560;
  color: #FFFFFF;
}

/* Built in Karachi Monolith + Sporty Crew Cards (`#team`) */
.team-monolith-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
  margin-bottom: 72px;
}

.monolith-frame {
  border-radius: 24px;
  overflow: hidden;
  background: #0A0C11;
  border: 1px solid var(--rule-strong);
  box-shadow: 0 28px 64px rgba(13, 13, 17, 0.12);
}

.monolith-frame img {
  width: 100%;
  max-height: 490px;
  object-fit: cover;
}

.monolith-frame figcaption {
  padding: 14px 22px;
  background: #0B0D13;
  color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.crew-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.crew-sport-card {
  background: var(--bg-day);
  border: 1px solid var(--rule-strong);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition: border-color 0.25s ease, transform 0.28s var(--ease-expo), background 0.25s ease;
}

.crew-sport-card:hover {
  background: #FFFFFF;
  border-color: var(--crimson);
  transform: translateY(-3px);
}

.crew-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.crew-tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(13, 13, 17, 0.055);
  color: var(--ink);
}

/* Obsidian Sponsor Logo Cards + Split-View 3D Livery Preview (`#sponsors`) */
.sponsor-obsidian-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 72px;
}

.sponsor-obsidian-card {
  background: radial-gradient(circle 280px at 50% 0%, rgba(214, 21, 37, 0.20), transparent 72%),
              #0B0D13;
  color: #FFFFFF;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  padding: 34px 30px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  transition: transform 0.3s var(--ease-expo), border-color 0.25s ease;
}

.sponsor-obsidian-card:hover {
  transform: translateY(-4px);
  border-color: #FF2E40;
}

.sponsor-logo-box {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sponsor-logo-box img {
  max-height: 52px;
  max-width: 230px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.sponsor-logo-box img.logo-ansys {
  height: 72px;
  max-height: 72px;
}

.sponsor-logo-box img.logo-solidworks {
  height: 38px;
  max-height: 38px;
}

.sponsor-logo-box img.logo-rorelse {
  height: 34px;
  max-height: 34px;
}

.sponsor-obsidian-foot {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.prospectus-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: stretch;
}

.tier-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.tier-select-card {
  text-align: left;
  background: #FFFFFF;
  border: 1.5px solid var(--rule-strong);
  border-radius: 18px;
  padding: 22px;
  cursor: pointer;
  transition: all 0.24s var(--ease-expo);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.tier-select-card:hover {
  border-color: var(--ink);
}

.tier-select-card.is-active {
  background: #0B0D13;
  color: #FFFFFF;
  border-color: #0B0D13;
  box-shadow: inset 0 3px 0 var(--crimson), 0 18px 40px rgba(13, 13, 17, 0.14);
}

.tier-select-card__top {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--crimson);
}

.tier-select-card.is-active .tier-select-card__top {
  color: #FF4D5E;
}

.tier-select-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-body);
}

.tier-select-card.is-active p {
  color: rgba(255, 255, 255, 0.74);
}

.livery-preview-card {
  background: #FFFFFF;
  border: 1px solid var(--rule-strong);
  border-radius: 22px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.livery-3d-viewport {
  position: relative;
  height: 270px;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(circle 280px at 55% 45%, rgba(214, 21, 37, 0.14), transparent 72%),
              #0B0D13;
}

#home-livery-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

.livery-cam-pill {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(11, 13, 19, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 11px;
  pointer-events: none;
}

@media (max-width: 1120px) {
  .cad-parts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .crew-cards-grid,
  .sponsor-obsidian-grid,
  .prospectus-split,
  .team-monolith-split,
  .tunnel-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .tier-stack,
  .cad-parts-grid,
  .tunnel-metrics {
    grid-template-columns: 1fr;
  }
  .airframe-hud-glass {
    position: static;
    width: 100%;
    border-radius: 0;
  }
  .airframe-stage-box {
    height: auto;
  }
  #airframe-3d-canvas {
    height: 360px;
  }
}


/* ==========================================================================
   v6 HERO FLY-IN, MOUSE-FLIGHT AURA & SCROLL LAUNCH CHOREOGRAPHY
   ========================================================================== */
.hero-track {
  position: relative;
  height: 152vh;
}

.hero-track .hero-monolith {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  --spot-x: 62%;
  --spot-y: 46%;
}

/* Mouse-reactive subtle crimson aerodynamic studio aura */
.hero-track .hero-monolith::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    circle 560px at var(--spot-x) var(--spot-y),
    rgba(214, 21, 37, 0.085),
    transparent 70%
  );
  transition: opacity 0.4s ease;
}

.hero-monolith.is-tunnel-dark::before {
  background: radial-gradient(
    circle 620px at var(--spot-x) var(--spot-y),
    rgba(229, 25, 43, 0.24),
    transparent 72%
  );
}

/* Whisper-subtle oversized architectural parallax watermark in deep studio space */
.hero-bg-watermark {
  position: absolute;
  right: 4vw;
  top: 26%;
  font-family: var(--font-sans);
  font-size: clamp(120px, 19vw, 290px);
  font-weight: 760;
  letter-spacing: -0.06em;
  line-height: 0.85;
  color: rgba(13, 13, 17, 0.028);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  will-change: transform;
}

.hero-monolith.is-tunnel-dark .hero-bg-watermark {
  color: rgba(255, 255, 255, 0.036);
}

/* Masked Vertical Clip-Reveal on Hero Display Lines */
.hero-line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}

.hero-line-mask > span {
  display: inline-block;
  transform: translateY(108%);
  opacity: 0;
  transition: transform 0.95s var(--ease-expo), opacity 0.7s ease;
}

body.hero-booted .hero-line-mask:nth-child(1) > span {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.06s;
}

body.hero-booted .hero-line-mask:nth-child(2) > span {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.18s;
}

.attitude-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(16px);
  border: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-body);
}

.hero-monolith.is-tunnel-dark .attitude-pill {
  background: rgba(18, 20, 28, 0.80);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.78);
}

/* Minimal Scroll-Launch Progress Micro-Bar at Bottom Center of Hero */
.hero-scroll-cue {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
  pointer-events: none;
}

.hero-scroll-cue__bar {
  width: 56px;
  height: 2px;
  background: var(--rule-strong);
  border-radius: 99px;
  overflow: hidden;
}

.hero-scroll-cue__bar > span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--crimson);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

@media (max-width: 900px) {
  .hero-track {
    height: auto;
  }
  .hero-track .hero-monolith {
    position: relative;
    height: auto;
  }
  .attitude-pill,
  .hero-scroll-cue {
    display: none;
  }
}


/* ==========================================================================
   v7 MOBILE, TABLET & SMALL-VIEWPORT OPTIMIZATION POLISH
   ========================================================================== */
.hero-bg-watermark {
  font-family: var(--font-display);
  font-size: clamp(110px, 17.5vw, 265px);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.tminus-pill,
.attitude-pill,
.tunnel-badge,
.livery-cam-pill {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
}

.tminus-pill strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11.5px;
}

.countdown-giant div strong {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 600;
  letter-spacing: -0.022em;
}

@media (max-width: 1024px) {
  .ig-pill {
    display: none;
  }
  .hero-bg-watermark {
    display: none;
  }
}

@media (max-width: 900px) {
  .floating-header {
    top: 12px;
  }
  .brand-pill {
    padding: 9px 14px;
  }
  .brand-pill img {
    height: 14px;
  }
  /* Leave an open 30svh central window on phone so the full 3D WD-1 glider shines! */
  .hero-track .hero-monolith,
  .hero-monolith {
    min-height: 100svh;
    padding: 86px 0 28px;
    justify-content: space-between;
    gap: 28svh;
  }
  .hero-hud-pills {
    width: 100%;
    gap: 6px;
  }
  #hero-replay-flyin {
    display: none;
  }
  .hero-telemetry,
  .trajectory-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px 14px;
  }
  #trajectory-canvas {
    height: 240px;
  }
  #wind-tunnel-canvas {
    height: 265px;
  }
  .tunnel-topbar {
    padding: 14px 16px;
  }
  .tunnel-mode-pills {
    width: 100%;
    overflow-x: auto;
  }
  .tunnel-pill {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    font-size: 12px;
  }
  .airframe-corner-tags {
    display: none;
  }
  .airframe-dock-bar {
    position: static;
    transform: none;
    border-radius: 0;
    width: 100%;
    max-width: 100%;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 10px 12px;
  }
  .countdown-giant {
    gap: 16px;
    flex-wrap: wrap;
  }
}


/* Strict Zero-Horizontal-Overflow Mobile Fixes (360px - 680px Phones) */
html, body {
  max-width: 100%;
  overflow-x: clip;
}

.tminus-pill strong {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 12px;
}

.countdown-giant div strong {
  font-variant-numeric: proportional-nums lining-nums;
}

@media (max-width: 680px) {
  .world-stage {
    width: 100%;
  }
  .floating-header__inner {
    width: 92%;
  }
  .tminus-pill {
    padding: 7px 12px;
    font-size: 11px;
    white-space: nowrap;
  }
  .hero-hud-pills {
    flex-wrap: wrap;
  }
  .track-row__main {
    grid-template-columns: 64px 1fr auto !important;
    gap: 10px;
    padding: 16px 6px;
  }
  .track-pts {
    display: none;
  }
  .track-detail {
    padding: 4px 8px 20px 8px;
  }
  .clean-slider {
    min-width: 0 !important;
    width: 100%;
  }
  .tunnel-controls-inline {
    width: 100%;
  }
  .tunnel-badge {
    font-size: 10.5px;
    white-space: normal;
  }
  .airframe-hud-glass .beat-specs {
    grid-template-columns: 1fr 1fr;
  }
}
