/* ==========================================================================
   AURELIA ONE — EXPERIMENTAL ELECTRIC SUPERCAR
   Identidad: Cinematográfica, minimalista, oscura, precisa, sofisticada.
   Secuencia de 240 fotogramas WebP controlada frame por frame vía canvas scroll.
   ========================================================================== */

:root {
  --color-black: #050505;
  --color-dark: #111113;
  --color-surface: #171719;
  --color-surface-light: #222226;
  --color-white: #F4F4F2;
  --color-metal: #8D9092;
  --color-metal-light: #B4B6B8;
  --color-red: #D51F26;
  --color-red-glow: rgba(213, 31, 38, 0.4);

  --font-display: 'Syne', -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-mono: 'Space Mono', monospace;

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

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

html {
  scroll-behavior: auto; /* Required for precise scrubbing without scroll animation lag */
  background-color: var(--color-black);
  color: var(--color-white);
}

body.theme-aurelia {
  font-family: var(--font-body);
  background-color: var(--color-black);
  color: var(--color-white);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* --------------------------------------------------------------------------
   Minimal Elegant Loader HUD
   -------------------------------------------------------------------------- */
.aurelia-loader {
  position: fixed;
  inset: 0;
  background-color: var(--color-black);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s var(--ease-out);
}

.aurelia-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  width: 90%;
  max-width: 380px;
  text-align: center;
}

.loader-brand {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 6px;
  display: block;
  margin-bottom: 24px;
}

.loader-bar-wrap {
  width: 100%;
  height: 2px;
  background-color: #222226;
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
}

.loader-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background-color: var(--color-white);
  box-shadow: 0 0 10px rgba(244, 244, 242, 0.8);
  transition: width 0.15s ease-out;
}

.loader-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-metal);
  letter-spacing: 1px;
}

.loader-pct {
  color: var(--color-red);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Global Floating Navigation
   -------------------------------------------------------------------------- */
.aurelia-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 24px 36px;
  mix-blend-mode: difference;
  pointer-events: none;
}

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

.brand-aurelia {
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}

.brand-monogram {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-white);
  border: 1px solid var(--color-white);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--color-white);
}

.nav-links {
  display: flex;
  gap: 32px;
  pointer-events: auto;
}

.nav-item {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-white);
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-item:hover {
  opacity: 1;
  color: var(--color-red);
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 1px;
  color: var(--color-white);
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-red);
  box-shadow: 0 0 8px var(--color-red);
}

/* --------------------------------------------------------------------------
   01 // SCROLL SEQUENCE CANVAS TRACK (FRAME-BY-FRAME)
   -------------------------------------------------------------------------- */
.scroll-sequence-track {
  position: relative;
  height: 600vh; /* 600vh allows luxurious smooth scrubbing across 240 frames */
  background-color: var(--color-black);
}

.sticky-viewport {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background-color: var(--color-black);
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

.cinema-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 45%, rgba(5, 5, 5, 0.75) 100%),
              linear-gradient(180deg, rgba(5, 5, 5, 0.5) 0%, transparent 20%, transparent 80%, rgba(5, 5, 5, 0.8) 100%);
}

.fallback-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* --------------------------------------------------------------------------
   Narrative Overlay Scenes
   -------------------------------------------------------------------------- */
.narrative-container {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.scene-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  opacity: 0;
  visibility: hidden;
  will-change: opacity, transform;
}

.scene-layer.active {
  visibility: visible;
}

.scene-content {
  max-width: 1300px;
  width: 100%;
  text-align: center;
}

.scene-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: var(--color-metal);
  text-transform: uppercase;
  margin-bottom: 16px;
}

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

/* Scene 01: Hero Intro */
.scene-01 .hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8.5vw, 8.5rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 0.95;
  margin-bottom: 20px;
  color: var(--color-white);
}

.scene-01 .hero-sub {
  font-size: clamp(1.1rem, 2vw, 1.8rem);
  color: var(--color-metal-light);
  letter-spacing: 4px;
  font-weight: 300;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.scroll-hint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-metal);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 2px;
}

.hint-arrow {
  font-size: 1.4rem;
  animation: bounceHint 2s infinite;
}

@keyframes bounceHint {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* Scene 02: Split Editorial */
.split-editorial {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 40px;
}

.editorial-col {
  text-align: left;
}

.editorial-col.right {
  text-align: right;
}

.spec-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 2.5px;
  color: var(--color-metal);
  margin-bottom: 10px;
}

.spec-giant {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 7.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -2px;
  color: var(--color-white);
  margin-bottom: 8px;
}

.spec-giant small {
  font-size: 0.4em;
  color: var(--color-red);
  letter-spacing: 0;
  font-weight: 700;
}

.spec-detail {
  font-size: 0.95rem;
  color: var(--color-metal-light);
}

/* Scene 03: Aerodynamics */
.aero-scene {
  text-align: left;
  max-width: 900px;
}

.scene-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
  margin-bottom: 30px;
}

.aero-callouts {
  display: flex;
  gap: 40px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.callout-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.co-line {
  width: 40px;
  height: 1px;
  background-color: var(--color-red);
}

.co-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--color-white);
}

/* Scene 04: Cinematic Quote */
.quote-scene {
  max-width: 850px;
}

.cinematic-quote {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.quote-sub {
  font-size: 1.15rem;
  color: var(--color-metal-light);
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto;
}

/* Scene 05: Monumental Specs Grid */
.monumental-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.m-spec-box {
  background-color: rgba(23, 23, 25, 0.4);
  backdrop-filter: blur(8px);
  border-left: 2px solid var(--color-red);
  padding: 24px 20px;
  text-align: left;
}

.ms-val {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  color: var(--color-white);
  margin-bottom: 8px;
}

.ms-val small {
  font-size: 0.45em;
  color: var(--color-metal-light);
}

.ms-lbl {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  color: var(--color-metal);
  text-transform: uppercase;
}

/* Scene 06: Finale */
.finale-scene {
  text-align: center;
}

.finale-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 12px;
}

.finale-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 4px;
  color: var(--color-red);
  margin-bottom: 34px;
}

.btn-aurelia-discrete {
  display: inline-block;
  pointer-events: auto;
  border: 1px solid var(--color-white);
  color: var(--color-white);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 28px;
  transition: all 0.25s var(--ease-out);
}

.btn-aurelia-discrete:hover {
  background-color: var(--color-white);
  color: var(--color-black);
}

/* --------------------------------------------------------------------------
   Scrubbing HUD Telemetry
   -------------------------------------------------------------------------- */
.scrub-hud {
  position: absolute;
  bottom: 24px;
  left: 36px;
  right: 36px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.hud-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hud-badge {
  background-color: var(--color-surface);
  border: 1px solid #333338;
  color: var(--color-metal-light);
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 1px;
}

.hud-mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  color: var(--color-white);
}

.hud-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hud-progress-track {
  width: 140px;
  height: 2px;
  background-color: #222226;
  position: relative;
  overflow: hidden;
}

.hud-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background-color: var(--color-red);
  box-shadow: 0 0 8px var(--color-red);
  transition: width 0.05s linear;
}

/* --------------------------------------------------------------------------
   02 // SECTION DESIGN (LIGHT BACKGROUND EDITORIAL)
   -------------------------------------------------------------------------- */
.section-editorial-light {
  background-color: var(--color-white);
  color: #111111;
  padding: 130px 40px;
  position: relative;
  z-index: 30;
}

.sec-container {
  max-width: 1360px;
  margin: 0 auto;
}

.light-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 80px;
  align-items: start;
}

.editorial-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: #666666;
  display: block;
  margin-bottom: 20px;
}

.editorial-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 5.2rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -2px;
  color: #111111;
}

.p-lead {
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.5;
  color: #111111;
  margin-bottom: 24px;
}

.p-body {
  font-size: 1.05rem;
  color: #555555;
  line-height: 1.7;
  margin-bottom: 50px;
}

.light-specs-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  border-top: 1px solid #D0D0CE;
  padding-top: 30px;
}

.ls-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: #111111;
  line-height: 1;
  margin-bottom: 6px;
}

.ls-lbl {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 1px;
  color: #666666;
}

/* --------------------------------------------------------------------------
   03 // SECTION ENGINEERING (DARK TECHNICAL SCHEMATICS)
   -------------------------------------------------------------------------- */
.section-tech-dark {
  background-color: var(--color-surface);
  color: var(--color-white);
  padding: 130px 40px;
  border-top: 1px solid #2B2B30;
  border-bottom: 1px solid #2B2B30;
  position: relative;
  z-index: 30;
}

.tech-header {
  max-width: 800px;
  margin-bottom: 60px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--color-red);
  display: block;
  margin-bottom: 14px;
}

.tech-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.tech-sub {
  font-size: 1.1rem;
  color: var(--color-metal);
  line-height: 1.6;
}

.powertrain-blueprint {
  background-color: var(--color-dark);
  border: 1px solid #28282E;
  border-radius: 8px;
  padding: 30px 20px;
  margin-bottom: 60px;
}

.tech-specs-table {
  border-top: 1px solid #28282E;
}

.t-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  padding: 20px 0;
  border-bottom: 1px solid #28282E;
  align-items: center;
}

.t-key {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  color: var(--color-metal);
}

.t-val {
  font-size: 1rem;
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   04 // SECTION FINAL MANIFESTO (PURE BLACK)
   -------------------------------------------------------------------------- */
.section-manifesto-black {
  background-color: var(--color-black);
  padding: 160px 40px 100px;
  text-align: center;
  position: relative;
  z-index: 30;
}

.sec-container-narrow {
  max-width: 860px;
  margin: 0 auto;
}

.manifesto-monogram {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 8px;
  color: var(--color-red);
  display: block;
  margin-bottom: 30px;
}

.manifesto-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 5.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 30px;
}

.manifesto-paragraph {
  font-size: 1.2rem;
  color: var(--color-metal);
  line-height: 1.7;
  margin-bottom: 60px;
}

.manifesto-credits {
  padding-top: 40px;
  border-top: 1px solid #1C1C20;
}

.credit-main {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 2px;
  color: var(--color-white);
  display: block;
  margin-bottom: 6px;
}

.credit-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 1px;
  color: var(--color-metal);
  display: block;
  margin-bottom: 12px;
}

.credit-note {
  font-size: 0.82rem;
  color: #55555A;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.aurelia-footer {
  background-color: var(--color-black);
  border-top: 1px solid #141416;
  padding: 24px 40px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #55555A;
  position: relative;
  z-index: 30;
}

.footer-wrap {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.back-to-top {
  color: var(--color-metal);
  transition: color 0.15s ease;
}

.back-to-top:hover {
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .light-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .monumental-specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .t-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 768px) {
  .aurelia-nav {
    padding: 16px 20px;
  }

  .nav-links {
    display: none;
  }

  .split-editorial {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    padding: 0;
  }

  .editorial-col.right {
    text-align: left;
  }

  .light-specs-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .monumental-specs-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .scrub-hud {
    left: 20px;
    right: 20px;
    bottom: 16px;
  }

  .hud-progress-track {
    width: 80px;
  }

  .section-editorial-light,
  .section-tech-dark,
  .section-manifesto-black {
    padding: 80px 24px;
  }
}

/* --------------------------------------------------------------------------
   Reduced Motion Accessibility
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hint-arrow {
    animation: none !important;
  }
}

