/* ============================================================
   AVAREX CORE — Complete Design System
   style.css | v3.0 | avxcore.com
   Where Investors Are Built
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Gold — the guide, not the identity */
  --gold:          #C9A84C;
  --gold-light:    #E8C97A;
  --gold-dark:     #9A7A2E;
  --gold-dim:      rgba(201, 168, 76, 0.15);
  --gold-faint:    rgba(201, 168, 76, 0.06);

  /* Ink — warm near-black */
  --ink:           #0D0C0B;
  --ink-soft:      #1A1917;
  --ink-medium:    #2E2C29;
  --ink-warm:      #3D3A36;

  /* Paper — warm white */
  --paper:         #F7F4EF;
  --paper-dim:     #EDE9E1;
  --paper-faint:   rgba(247, 244, 239, 0.08);

  /* Stone — neutral midtones */
  --stone:         #7A7568;
  --stone-light:   #B5B0A6;
  --stone-dark:    #504D48;

  /* Glass — frosted panels */
  --glass:         rgba(247, 244, 239, 0.05);
  --glass-border:  rgba(201, 168, 76, 0.14);
  --glass-strong:  rgba(247, 244, 239, 0.10);

  /* Status colors */
  --status-live:   #4ade80;
  --status-beta:   #f59e0b;
  --status-soon:   #94a3b8;
  --status-dev:    #818cf8;

  /* Method step colors */
  --learn-color:   #4A90D9;
  --practice-color:#7ED8A4;
  --think-color:   #C9A84C;
  --reflect-color: #D4845A;
  --apply-color:   #8B6FE8;
  --levels-color:  #E8A44C;

  /* Typography */
  --font-heading:  'Outfit', sans-serif;
  --font-body:     'Inter', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;

  /* Motion */
  --ease-smooth:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:      cubic-bezier(0.0, 0.0, 0.2, 1);
  --t-fast:        0.2s;
  --t-smooth:      0.4s;
  --t-slow:        0.7s;

  /* Layout */
  --hud-height:    68px;
  --max-content:   1280px;
  --scene-pad:     clamp(1.5rem, 5vw, 5rem);

  /* Atmosphere defaults (morning) */
  --atm-bg:        #0D0C0B;
  --atm-light:     rgba(255, 220, 120, 0.08);
  --atm-tint:      rgba(201, 168, 76, 0.04);
}

/* ============================================================
   ATMOSPHERE THEMES
   ============================================================ */
body.morning {
  --atm-bg:     #0D0C0B;
  --atm-light:  rgba(255, 220, 120, 0.08);
  --atm-tint:   rgba(201, 168, 76, 0.04);
}

body.golden-hour {
  --atm-bg:     #1A100A;
  --atm-light:  rgba(255, 160, 60, 0.12);
  --atm-tint:   rgba(220, 120, 40, 0.06);
}

body.night {
  --atm-bg:     #080B12;
  --atm-light:  rgba(80, 100, 180, 0.06);
  --atm-tint:   rgba(60, 80, 160, 0.03);
}

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

html {
  height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--hud-height);
  -webkit-text-size-adjust: 100%;
}

body {
  height: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--paper);
  background-color: var(--atm-bg);
  overflow-x: hidden;
  transition: background-color 1.2s var(--ease-smooth);
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(201, 168, 76, 0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(201, 168, 76, 0.55); }

/* ============================================================
   TYPOGRAPHY SCALE
   ============================================================ */
.display-xl {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.display-lg {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.display-md {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.heading-1 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.heading-2 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.2vw, 1.9rem);
  font-weight: 600;
  line-height: 1.25;
}

.heading-3 {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  font-weight: 600;
  line-height: 1.3;
}

.body-lg {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-weight: 400;
  line-height: 1.8;
  color: var(--stone-light);
}

.body-md {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
}

.body-sm {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.6;
}

.label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

/* Gold eyebrow — always readable over any background */
.gold-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.gold-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1.5px;
  background: var(--gold);
  flex-shrink: 0;
}

.gold-text { color: var(--gold); }
.paper-text { color: var(--paper); }
.stone-text { color: var(--stone-light); }

/* ============================================================
   LAYOUT — SCENES
   ============================================================ */
.scene {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--hud-height) + 3rem) 0 4rem;
}

.scene-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--scene-pad);
}

/* Gold separator line between scenes */
.scene + .scene::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, 60%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  z-index: 10;
}

/* Scene background utility */
.scene-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.scene-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 12, 11, 0.72) 0%,
    rgba(13, 12, 11, 0.55) 40%,
    rgba(13, 12, 11, 0.82) 100%
  );
  z-index: 1;
}

/* ============================================================
   ENTRANCE OVERLAY
   ============================================================ */
.entrance-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  transition: opacity var(--t-slow) var(--ease-smooth);
  overflow: hidden;
}

.entrance-overlay.exit {
  opacity: 0;
  pointer-events: none;
}

.entrance-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/arrival_mist.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.45;
}

#mist-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.entrance-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  gap: 0;
}

.entrance-mark {
  width: 72px;
  height: 54px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeInUp 0.9s var(--ease-out) 0.3s forwards;
}

.arrival-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 6.5rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--paper);
  line-height: 1;
  opacity: 0;
  animation: fadeInUp 0.9s var(--ease-out) 0.6s forwards;
}

.arrival-tagline {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 1rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeInUp 0.9s var(--ease-out) 0.9s forwards;
}

.entrance-line {
  width: 64px;
  height: 1.5px;
  background: var(--gold);
  margin: 0 auto 2.5rem;
  opacity: 0;
  animation: expandLine 0.8s var(--ease-out) 1.1s forwards;
}

@keyframes expandLine {
  from { width: 0; opacity: 0; }
  to   { width: 64px; opacity: 1; }
}

.btn-enter {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 3rem;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  transition: all var(--t-smooth) var(--ease-smooth);
  opacity: 0;
  animation: fadeInUp 0.9s var(--ease-out) 1.4s forwards;
}

.btn-enter:hover {
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-2px);
}

.entrance-skip-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.3);
  opacity: 0;
  animation: fadeIn 0.5s ease 3.5s forwards;
  pointer-events: none;
  white-space: nowrap;
}

/* ============================================================
   HUD HEADER
   ============================================================ */
.hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--hud-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 3vw, 3rem);
  background: rgba(13, 12, 11, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: background var(--t-slow) var(--ease-smooth);
}

.hud-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.hud-logo-mark {
  width: 32px;
  height: 24px;
  flex-shrink: 0;
}

.hud-logo-text {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--paper);
  line-height: 1;
}

.hud-logo-text span {
  color: var(--gold);
}

.hud-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .hud-nav { display: flex; }
}

.hud-nav-link {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--stone-light);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: color var(--t-fast) ease, background var(--t-fast) ease;
  white-space: nowrap;
}

.hud-nav-link:hover,
.hud-nav-link.active {
  color: var(--paper);
  background: rgba(247, 244, 239, 0.06);
}

.hud-nav-link.active {
  color: var(--gold);
}

.hud-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Atmosphere switcher pills */
.atmosphere-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(247, 244, 239, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 3px;
}

.atm-pill {
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  color: var(--stone);
  transition: all var(--t-fast) ease;
  cursor: pointer;
  white-space: nowrap;
}

.atm-pill.active {
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
}

.atm-pill:not(.active):hover {
  color: var(--stone-light);
  background: rgba(247, 244, 239, 0.05);
}

.hud-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stone-light);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--t-fast) ease;
  font-size: 0.85rem;
}

.hud-icon-btn:hover {
  color: var(--paper);
  border-color: var(--glass-border);
  background: var(--glass);
}

.hud-icon-btn.active {
  color: var(--gold);
  border-color: var(--gold-dim);
}

/* Mobile hamburger */
.hud-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}

.hud-burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--stone-light);
  transition: all var(--t-fast) ease;
}

@media (min-width: 1024px) {
  .hud-burger { display: none; }
}

/* Mobile nav drawer */
.hud-mobile-nav {
  position: fixed;
  top: var(--hud-height);
  left: 0;
  right: 0;
  background: rgba(13, 12, 11, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 999;
  padding: 1.5rem var(--scene-pad);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--t-smooth) var(--ease-smooth), opacity var(--t-fast) ease;
}

.hud-mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.hud-mobile-nav a {
  display: block;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--glass-border);
  color: var(--stone-light);
  font-size: 0.95rem;
  transition: color var(--t-fast) ease;
}

.hud-mobile-nav a:last-child { border-bottom: none; }

.hud-mobile-nav a:hover { color: var(--gold); }

/* ============================================================
   GOLD THREAD RAIL
   ============================================================ */
.gold-thread-rail {
  position: fixed;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  height: 60vh;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

@media (max-width: 767px) {
  .gold-thread-rail { display: none; }
}

.gold-thread-line {
  width: 1px;
  height: 100%;
  background: rgba(201, 168, 76, 0.15);
  position: relative;
  border-radius: 1px;
}

.gold-thread-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--gold);
  height: 0%;
  transition: height 0.1s linear;
  border-radius: 1px;
}

.thread-markers {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.thread-marker {
  width: 6px;
  height: 6px;
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 1px;
  transform: rotate(45deg);
  background: transparent;
  transition: all var(--t-fast) ease;
  cursor: pointer;
  position: relative;
}

.thread-marker.active,
.thread-marker:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.thread-marker[title]:hover::after {
  content: attr(title);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  pointer-events: none;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2.5rem;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 4px;
  border: 1.5px solid var(--gold);
  cursor: pointer;
  transition: all var(--t-smooth) var(--ease-smooth);
  min-height: 48px;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.25);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2.5rem;
  background: transparent;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  border-radius: 4px;
  border: 1.5px solid var(--gold);
  cursor: pointer;
  transition: all var(--t-smooth) var(--ease-smooth);
  min-height: 48px;
  text-decoration: none;
  white-space: nowrap;
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: transparent;
  color: var(--stone-light);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  border-radius: 4px;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: all var(--t-smooth) var(--ease-smooth);
  min-height: 48px;
  text-decoration: none;
}

.btn-ghost:hover {
  color: var(--paper);
  border-color: rgba(247, 244, 239, 0.2);
  background: var(--glass);
}

/* Coming-soon state — applied by config.js */
[data-coming-soon="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  position: relative;
}

[data-coming-soon="true"]::after {
  content: "Coming Soon";
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--stone);
  text-transform: uppercase;
  white-space: nowrap;
  font-family: var(--font-body);
}

/* ============================================================
   SCENE 1 — ARRIVAL
   ============================================================ */
#scene-arrival {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--ink);
}

.arrival-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/arrival_mist.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}

.arrival-scene-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.arrival-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.04;
  z-index: 1;
  pointer-events: none;
}

.arrival-mark-large {
  width: 64px;
  height: 48px;
  margin-bottom: 2rem;
}

.arrival-main-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--paper);
  line-height: 1;
  margin-bottom: 1rem;
}

.arrival-brand-tagline {
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
}

.arrival-desc {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--stone-light);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 3rem;
}

/* ============================================================
   SCENE 2 — THE WALK IN (HERO)
   ============================================================ */
#scene-hero {
  min-height: 100vh;
  background: var(--ink);
  padding: 0;
}

.hero-bg-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg-layer {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.hero-bg-layer-1 {
  background-image: url('assets/forest_gate_hero.jpg');
  z-index: 1;
}

.hero-bg-layer-2 {
  z-index: 2;
  background: radial-gradient(ellipse at top, transparent 40%, rgba(13,12,11,0.5) 100%);
}

.hero-bg-layer-3 {
  z-index: 3;
  /* Foreground dark vignette / tree silhouette overlay */
  background:
    linear-gradient(to bottom, rgba(13,12,11,0.3) 0%, transparent 30%, transparent 60%, rgba(13,12,11,0.9) 100%),
    linear-gradient(to right, rgba(13,12,11,0.5) 0%, transparent 20%, transparent 80%, rgba(13,12,11,0.5) 100%);
}

.hero-fog {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(to top, rgba(13,12,11,0.7) 0%, transparent 100%);
  z-index: 4;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-fog::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 120% 60% at 50% 100%, rgba(201,168,76,0.04) 0%, transparent 70%);
    animation: fogPulse 8s ease-in-out infinite alternate;
  }

  @keyframes fogPulse {
    0%   { opacity: 0.5; transform: scaleX(0.95); }
    100% { opacity: 1;   transform: scaleX(1.05); }
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 6;
  width: 100%;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: calc(var(--hud-height) + 8rem) var(--scene-pad) 12rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--paper);
  max-width: 680px;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(247, 244, 239, 0.7);
  max-width: 480px;
  line-height: 1.75;
  margin-bottom: 3rem;
}

/* First-person hands canvas */
#hero-hands-canvas {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 55vh;
  z-index: 7;
  pointer-events: none;
}

/* ============================================================
   SCENE 3 — THE NOISE → STRUCTURE
   ============================================================ */
#scene-noise {
  background: var(--ink-soft);
  padding-top: calc(var(--hud-height) + 4rem);
  padding-bottom: 5rem;
  align-items: flex-start;
}

.noise-intro {
  max-width: 600px;
  margin-bottom: 4rem;
}

.noise-intro p {
  font-size: 1.1rem;
  color: var(--stone-light);
  line-height: 1.8;
}

/* Chaos-Clarity comparison */
.chaos-clarity-container {
  display: flex;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  height: 420px;
  margin-bottom: 5rem;
}

.comparison-panel {
  flex: 1;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow: hidden;
  transition: flex 0.05s linear;
}

.chaos-panel {
  background: rgba(248, 113, 113, 0.03);
  border-right: none;
}

.structure-panel {
  background: rgba(201, 168, 76, 0.03);
}

.panel-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.chaos-panel .panel-label { color: rgba(248, 113, 113, 0.7); }
.structure-panel .panel-label { color: var(--gold); }

.chaos-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  background: rgba(248, 113, 113, 0.06);
  border-radius: 6px;
  border: 1px solid rgba(248, 113, 113, 0.12);
  font-size: 0.875rem;
  color: rgba(247, 244, 239, 0.65);
  line-height: 1.4;
}

.chaos-item::before {
  content: '×';
  color: rgba(248, 113, 113, 0.6);
  font-size: 0.9rem;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.structure-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  background: rgba(201, 168, 76, 0.05);
  border-radius: 6px;
  border: 1px solid rgba(201, 168, 76, 0.12);
  font-size: 0.875rem;
  color: rgba(247, 244, 239, 0.8);
  line-height: 1.4;
}

.structure-item::before {
  content: '→';
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* Draggable divider */
.panel-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--gold);
  cursor: ew-resize;
  z-index: 10;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.divider-handle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.35);
  cursor: ew-resize;
  user-select: none;
  flex-shrink: 0;
}

/* Social Proof Block */
.social-proof-block {
  padding: 3rem 0 0;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.proof-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 2rem;
}

.proof-card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 1rem;
}

.proof-zone-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.proof-zone-item {
  font-size: 0.82rem;
  color: var(--stone-light);
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(247, 244, 239, 0.05);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.proof-zone-item:last-child { border-bottom: none; }

.proof-zone-step {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  white-space: nowrap;
}

.tracker-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.tracker-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--stone-light);
}

.tracker-status {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  flex-shrink: 0;
}

.tracker-status.done { background: rgba(74, 222, 128, 0.15); color: #4ade80; }
.tracker-status.active { background: var(--gold-dim); color: var(--gold); }
.tracker-status.locked { background: rgba(247, 244, 239, 0.05); color: var(--stone); }

.app-dev-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.app-dev-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--stone-light);
  padding: 0.3rem 0;
}

.transparency-note {
  font-style: italic;
  font-size: 0.82rem;
  color: var(--stone);
  line-height: 1.65;
  padding: 1.25rem 1.5rem;
  border-left: 2px solid var(--gold-dim);
  background: var(--gold-faint);
  border-radius: 0 6px 6px 0;
  margin-top: 1.5rem;
}

/* ============================================================
   SCENE 4 — THE AVX METHOD
   ============================================================ */
#scene-method {
  background: var(--ink);
  padding-top: calc(var(--hud-height) + 5rem);
  padding-bottom: 5rem;
  align-items: flex-start;
}

.method-intro {
  max-width: 600px;
  margin-bottom: 4rem;
}

/* Method track (JS populates .method-track-inner) */
.method-container {
  width: 100%;
}

.method-track {
  position: relative;
  width: 100%;
  margin-bottom: 3rem;
}

/* Gold connector line behind steps */
.method-connector-line {
  position: absolute;
  top: 2.5rem;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim) 10%, var(--gold-dim) 90%, transparent);
  z-index: 0;
  display: none;
}

@media (min-width: 1024px) {
  .method-connector-line { display: block; }
}

.method-track-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .method-track-inner {
    flex-direction: row;
    gap: 0.75rem;
    align-items: flex-start;
  }
}

/* Method step card — JS-generated */
.method-step-card {
  flex: 1;
  position: relative;
  z-index: 1;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 1.5rem 1.25rem;
  cursor: pointer;
  transition: all var(--t-smooth) var(--ease-smooth);
  min-height: 100px;
}

.method-step-card:hover,
.method-step-card.active {
  border-color: var(--gold);
  background: var(--gold-faint);
}

.method-step-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--stone);
  margin-bottom: 0.5rem;
}

.method-step-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

.method-step-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 0.4rem;
}

.method-step-tagline {
  font-size: 0.78rem;
  color: var(--stone-light);
  line-height: 1.4;
}

.method-step-card.active .method-step-name { color: var(--gold); }

/* Method detail panel */
.method-detail-panel {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 2.5rem;
  margin-top: 1.5rem;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  animation: fadeInUp 0.35s var(--ease-out);
}

.method-detail-panel.visible {
  display: grid;
}

@media (max-width: 767px) {
  .method-detail-panel { grid-template-columns: 1fr; }
}

.detail-group { display: flex; flex-direction: column; gap: 0.4rem; }

.detail-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.detail-value {
  font-size: 0.92rem;
  color: var(--paper);
  line-height: 1.6;
}

.detail-value.produces {
  font-style: italic;
  color: var(--stone-light);
}

/* Repeat indicator */
.method-repeat-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  gap: 1rem;
}

.method-repeat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--gold-dim);
  border-radius: 100px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-faint);
}

/* ============================================================
   SCENE 5 — THE ACADEMY
   ============================================================ */
#scene-academy {
  background: var(--ink-soft);
  padding-top: calc(var(--hud-height) + 5rem);
  padding-bottom: 5rem;
  align-items: flex-start;
}

.curriculum-badge {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border: 1px solid var(--gold-dim);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold);
  background: var(--gold-faint);
  margin-bottom: 3rem;
}

.tracks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.track-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 2rem;
  transition: border-color var(--t-smooth) ease;
  position: relative;
  overflow: hidden;
}

.track-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
}

.track-card:hover {
  border-color: var(--gold-dim);
}

.track-number {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.track-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.track-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 0.75rem;
}

.track-desc {
  font-size: 0.88rem;
  color: var(--stone-light);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.track-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.track-meta-pill {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  background: rgba(247, 244, 239, 0.05);
  border: 1px solid var(--glass-border);
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
}

.academy-photo-slot {
  width: 100%;
  max-width: 580px;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  margin: 3rem auto;
  border: 1px solid var(--glass-border);
}

.academy-photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.academy-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* ============================================================
   SCENE 6 — THE APP LAB
   ============================================================ */
#scene-apps {
  background: var(--ink);
  padding-top: calc(var(--hud-height) + 5rem);
  padding-bottom: 5rem;
  align-items: flex-start;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
  margin-bottom: 3rem;
}

.app-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--t-smooth) ease, transform var(--t-smooth) var(--ease-spring);
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--step-color, var(--gold));
}

.app-card:hover {
  border-color: rgba(201, 168, 76, 0.25);
  transform: translateY(-3px);
}

.app-card-slot {
  border-style: dashed;
  border-color: var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--stone);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.app-card-slot::before { display: none; }

.app-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.app-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 0.3rem;
}

.app-method-tag {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--step-color, var(--gold));
  background: rgba(var(--step-color-rgb, 201, 168, 76), 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.app-desc {
  font-size: 0.82rem;
  color: var(--stone-light);
  line-height: 1.55;
  margin-bottom: 1rem;
}

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  font-weight: 500;
}

.status-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.status-live { background: rgba(74, 222, 128, 0.12); color: var(--status-live); }
.status-beta { background: rgba(245, 158, 11, 0.12); color: var(--status-beta); }
.status-soon { background: rgba(148, 163, 184, 0.1); color: var(--status-soon); }
.status-dev  { background: rgba(129, 140, 248, 0.12); color: var(--status-dev); }

/* ============================================================
   SCENE 7 — THE COMMUNITY
   ============================================================ */
#scene-community {
  background: var(--ink-soft);
  padding-top: calc(var(--hud-height) + 5rem);
  padding-bottom: 5rem;
  align-items: flex-start;
}

.community-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 2.5rem;
}

.community-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.community-zones {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 2.5rem 0;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  overflow: hidden;
}

.zone-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--glass-border);
  transition: background var(--t-fast) ease;
  cursor: default;
}

.zone-row:last-child { border-bottom: none; }

.zone-row:hover {
  background: var(--gold-faint);
}

.zone-row:hover .zone-name {
  color: var(--gold);
}

.zone-icon {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(247, 244, 239, 0.04);
  border-radius: 8px;
}

.zone-info { display: flex; flex-direction: column; gap: 0.25rem; }

.zone-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--paper);
  transition: color var(--t-fast) ease;
}

.zone-desc {
  font-size: 0.8rem;
  color: var(--stone-light);
  line-height: 1.4;
}

.zone-method-tag {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  white-space: nowrap;
  align-self: flex-start;
}

.community-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* ============================================================
   SCENE 8 — THE NEXUS (MEMBERSHIP)
   ============================================================ */
#scene-nexus {
  background: var(--ink);
  padding-top: calc(var(--hud-height) + 5rem);
  padding-bottom: 5rem;
  align-items: flex-start;
}

.nexus-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

@media (min-width: 1024px) {
  .nexus-layout { grid-template-columns: 1.2fr 1fr; align-items: center; }
}

.nexus-includes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 480px) {
  .nexus-includes-grid { grid-template-columns: 1fr; }
}

.nexus-include-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.1rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
}

.nexus-include-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.nexus-include-text {
  font-size: 0.88rem;
  color: var(--paper);
  line-height: 1.4;
}

.nexus-cta-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.nexus-promise {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gold);
  line-height: 1.5;
}

.nexus-future-note {
  font-size: 0.8rem;
  color: var(--stone);
  line-height: 1.6;
  font-style: italic;
}

.nexus-no-pricing-note {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ============================================================
   SCENE 9 — THE GATEWAYS
   ============================================================ */
#scene-gateways {
  background: var(--ink-soft);
  padding-top: calc(var(--hud-height) + 5rem);
  padding-bottom: 5rem;
  align-items: flex-start;
}

.gateway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.gateway-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  transition: all var(--t-smooth) var(--ease-smooth);
  text-decoration: none;
  min-height: 200px;
  position: relative;
  overflow: hidden;
}

.gateway-card::after {
  content: '→';
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-4px);
  transition: all var(--t-smooth) var(--ease-smooth);
  font-size: 0.9rem;
}

.gateway-card:hover {
  border-color: var(--gold-dim);
  background: var(--gold-faint);
  transform: translateY(-3px);
}

.gateway-card:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.gateway-icon {
  font-size: 1.75rem;
}

.gateway-platform {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--paper);
}

.gateway-role {
  font-size: 0.82rem;
  color: var(--stone-light);
  line-height: 1.5;
  flex: 1;
}

.gateway-card.coming-soon-card {
  opacity: 0.5;
  border-style: dashed;
  cursor: default;
}

.gateway-card.coming-soon-card::after { display: none; }

/* ============================================================
   QR MODAL
   ============================================================ */
.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(13, 12, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-smooth) ease;
}

.qr-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.qr-modal-card {
  background: var(--ink-soft);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 3rem 2.5rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  position: relative;
}

.qr-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(247, 244, 239, 0.08);
  color: var(--stone-light);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--t-fast) ease;
}

.qr-modal-close:hover {
  background: rgba(247, 244, 239, 0.12);
  color: var(--paper);
}

.qr-placeholder {
  width: 180px;
  height: 180px;
  background: var(--paper);
  border-radius: 12px;
  margin: 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-medium);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 1rem;
}

/* ============================================================
   LEGAL FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--glass-border);
  padding: 3.5rem var(--scene-pad);
}

.footer-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--stone);
  line-height: 1.8;
  max-width: 720px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  transition: color var(--t-fast) ease;
}

.footer-links a:hover { color: var(--gold); }

.footer-divider {
  width: 1px;
  height: 12px;
  background: var(--stone-dark);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--stone-dark);
}

/* ============================================================
   INNER PAGES BASE
   ============================================================ */
.page-hero {
  min-height: 40vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--hud-height) + 5rem) var(--scene-pad) 4rem;
  background: var(--ink);
  border-bottom: 1px solid var(--glass-border);
}

.page-hero-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  width: 100%;
}

.page-content {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 5rem var(--scene-pad);
}

.page-section {
  margin-bottom: 5rem;
}

.page-section:last-child { margin-bottom: 0; }

/* Draft notice for legal pages */
.draft-notice {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f59e0b;
  margin-bottom: 3rem;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }
.text-center { text-align: center; }
.max-w-prose { max-width: 65ch; }

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

.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 2rem;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  @keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

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

  @keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to   { opacity: 1; transform: translateX(0); }
  }

  @keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }

  @keyframes goldPulse {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(201, 168, 76, 0.4)); }
    50%       { filter: drop-shadow(0 0 12px rgba(201, 168, 76, 0.8)); }
  }

  @keyframes walkBob {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
  }

  @keyframes candleFloat {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.5; }
    33%       { transform: translateY(-8px) translateX(3px); opacity: 0.8; }
    66%       { transform: translateY(4px) translateX(-3px); opacity: 0.6; }
  }

  .animate-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  }

  .animate-in.visible {
    opacity: 1;
    transform: none;
  }

  .animate-in-delay-1 { transition-delay: 0.1s; }
  .animate-in-delay-2 { transition-delay: 0.2s; }
  .animate-in-delay-3 { transition-delay: 0.3s; }
  .animate-in-delay-4 { transition-delay: 0.4s; }
  .animate-in-delay-5 { transition-delay: 0.5s; }
}

@media (prefers-reduced-motion: reduce) {
  .animate-in { opacity: 1; transform: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   RESPONSIVE HELPERS
   ============================================================ */
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
  .chaos-clarity-container { flex-direction: column; height: auto; }
  .panel-divider { display: none; }
  .comparison-panel { border-bottom: 1px solid var(--glass-border); }
  .tracks-grid { grid-template-columns: 1fr; }
  .apps-grid { grid-template-columns: 1fr; }
  .gateway-grid { grid-template-columns: 1fr 1fr; }
  .zone-row { grid-template-columns: 36px 1fr; }
  .zone-method-tag { display: none; }
}

@media (max-width: 480px) {
  .gateway-grid { grid-template-columns: 1fr; }
  .nexus-includes-grid { grid-template-columns: 1fr; }
}
