/* ==========================================================================
   2022 VIBE // ANTI-AI DESIGN SYSTEM STYLESHEET
   Aesthetic Thesis: Electric Amber & Tinted Obsidian
   Adheres to anti-ai-frontend craft standard & WCAG AAA/AA contrast
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES (TOKENS)
   -------------------------------------------------------------------------- */
:root {
  /* Canvas & Surface Layers (Tinted Obsidian & Warm Charcoal) */
  --bg-canvas: #0b0a08;              /* Deep tinted obsidian base (35° hue tint) */
  --bg-canvas-subtle: #100f0c;       /* Alternating section background */
  --bg-sunken: #070605;              /* Recessed telemetry logs, terminal wells */
  --bg-surface: #141310;             /* Base card surface (warm graphite charcoal) */
  --bg-surface-raised: #1c1a15;      /* Raised card surface on hover/focus */
  --bg-surface-floating: #24221b;    /* Modals, tooltips, sticky navigation */
  --bg-card-overlay: rgba(20, 19, 16, 0.88); /* Frosted backdrop with blur */

  /* Primary Accents (Electric Gold / Radiant Amber / Cadmium Yellow) */
  --accent-yellow: #f5c000;          /* Core brand electric gold (vibrant, energetic) */
  --accent-yellow-bright: #ffd52c;   /* Radiant hover highlight */
  --accent-yellow-acid: #ffee55;     /* Live status pulses, spark highlights */
  --accent-amber: #e59f00;           /* Deep burnished gold for borders & buttons */
  --accent-amber-deep: #b37a00;      /* Dark gold grounding tone */
  --accent-bronze: #735314;          /* Subdued structural accent for timeline rail */
  
  /* Tinted Alpha Accents */
  --accent-yellow-dim: rgba(245, 192, 0, 0.08);   /* Subtle card glow, tag fill */
  --accent-yellow-badge: rgba(245, 192, 0, 0.14); /* Pill tag background */
  --accent-yellow-border: rgba(245, 192, 0, 0.28);/* Focused/active highlight border */
  --accent-yellow-glow: rgba(245, 192, 0, 0.20);  /* Atmospheric radial spotlight */

  /* Semantic & Cultural Accents */
  --semantic-danger: #ef4444;        /* Twitch incident ban alert */
  --semantic-warning: #f97316;       /* Audio failure warning */
  --semantic-success: #22c55e;       /* Successful stream recovery, CEO promotion */
  --semantic-discord: #5865f2;       /* Discord official brand blurple (widget tag) */
  --accent-cream: #f4edd9;           /* Warm antique cream for editorial callouts */

  /* Typography Contrast Scale */
  --text-display: #fffdf5;           /* Ivory stark contrast for titles (16.8:1) */
  --text-primary: #ede8dc;           /* Warm crisp white for body reading (13.5:1) */
  --text-secondary: #a39c8c;         /* Muted warm taupe for narrative prose (6.2:1) */
  --text-muted: #6e6758;             /* Warm graphite for dates, metadata, HUD (4.6:1) */
  --text-accent: #f5c000;            /* Primary gold emphasis text (10.8:1) */
  --text-on-accent: #0b0a08;         /* Tinted obsidian text on yellow buttons (11.2:1) */

  /* Hairline Borders & Dividers */
  --border-hairline: rgba(245, 192, 0, 0.08);  /* 1px micro-border default */
  --border-subtle: rgba(245, 192, 0, 0.16);    /* Card borders, horizontal rules */
  --border-strong: rgba(245, 192, 0, 0.38);    /* Interactive hover states */
  --border-accent: #f5c000;                    /* Active tab, high-priority focus */

  /* Multi-Layer Tinted Shadows (Warm Obsidian Cast) */
  --shadow-sm: 0 1px 2px rgba(11, 10, 8, 0.6);
  --shadow-md: 
    0 2px 4px rgba(11, 10, 8, 0.4),
    0 6px 14px -2px rgba(11, 10, 8, 0.5);
  --shadow-lg: 
    0 4px 6px -1px rgba(11, 10, 8, 0.4),
    0 14px 28px -4px rgba(11, 10, 8, 0.6),
    0 24px 48px -8px rgba(0, 0, 0, 0.7);
  --shadow-glow: 
    0 0 24px -4px rgba(245, 192, 0, 0.25);
  --shadow-inset-highlight: 
    inset 0 1px 0 rgba(245, 192, 0, 0.12);    /* Top tactile edge rim */

  /* Typography Stack */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;

  /* Physics & Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Analog CRT Noise Grain Overlay */
.noise-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Background Ambient Dot Grid */
.bg-ambient-grid {
  background-color: var(--bg-canvas);
  background-image: radial-gradient(rgba(245, 192, 0, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY SYSTEM
   -------------------------------------------------------------------------- */
.type-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.2vw, 4.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text-display);
}

.type-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-display);
}

.type-h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-display);
}

.type-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.35rem, 2.5vw, 2.1rem);
  line-height: 1.35;
  color: var(--accent-cream);
}

.type-body {
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.68;
  color: var(--text-primary);
  max-width: 68ch;
}

.type-body-sm {
  font-family: var(--font-body);
  font-size: 0.9375rem; /* 15px */
  line-height: 1.6;
  color: var(--text-secondary);
}

.type-mono-hud {
  font-family: var(--font-mono);
  font-size: 0.75rem; /* 12px */
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-yellow);
}

.text-accent { color: var(--accent-yellow); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-danger { color: var(--semantic-danger); }
.text-warning { color: var(--semantic-warning); }
.text-success { color: var(--semantic-success); }

/* --------------------------------------------------------------------------
   4. TACTILE CARD ARCHITECTURE (ANTI-AI ELEVATION)
   -------------------------------------------------------------------------- */
.card-tactile {
  position: relative;
  background: linear-gradient(180deg, #181612 0%, #13120f 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md), var(--shadow-inset-highlight);
  padding: 32px;
  overflow: hidden;
  transition: transform 0.22s var(--ease-spring),
              border-color 0.2s ease,
              box-shadow 0.22s var(--ease-spring);
}

.card-tactile:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg), 0 0 24px -4px rgba(245, 192, 0, 0.16), var(--shadow-inset-highlight);
}

/* --------------------------------------------------------------------------
   5. BUTTONS & MICRO-INTERACTIONS
   -------------------------------------------------------------------------- */
.btn-shimmer-gold {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-on-accent);
  background: var(--accent-yellow);
  border: 1px solid var(--accent-yellow-bright);
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(245, 192, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.18s var(--ease-spring), box-shadow 0.18s ease;
  overflow: hidden;
}

.btn-shimmer-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: none;
}

.btn-shimmer-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(245, 192, 0, 0.45);
}

.btn-shimmer-gold:hover::before {
  left: 100%;
  transition: left 0.65s ease-in-out;
}

.btn-shimmer-gold:focus-visible {
  outline: 2px solid var(--accent-yellow-acid);
  outline-offset: 2px;
}

.btn-shimmer-gold:active {
  transform: translateY(0) scale(0.98);
}

.btn-large {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn-secondary-tactile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm), var(--shadow-inset-highlight);
  transition: transform 0.18s var(--ease-spring), border-color 0.18s ease, color 0.18s ease;
}

.btn-secondary-tactile:hover {
  transform: translateY(-2px);
  border-color: var(--accent-yellow);
  color: var(--accent-yellow);
}

.btn-secondary-tactile:active {
  transform: translateY(0) scale(0.98);
}

.btn-arrow-icon, .btn-icon-svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   6. AMBIENT PLAYER BAR & STICKY NAVIGATION
   -------------------------------------------------------------------------- */
.ambient-bar {
  background: var(--bg-sunken);
  border-bottom: 1px solid var(--border-hairline);
  padding: 6px 24px;
}

.ambient-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ambient-track {
  display: flex;
  align-items: center;
  gap: 10px;
}

.track-indicator {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.eq-bar {
  width: 3px;
  background: var(--accent-yellow);
  border-radius: 1px;
  height: 4px;
  transition: height 0.2s ease;
}

.is-playing .bar-1 { animation: eqPulse 0.6s infinite ease-in-out alternate; }
.is-playing .bar-2 { animation: eqPulse 0.8s infinite ease-in-out 0.2s alternate; }
.is-playing .bar-3 { animation: eqPulse 0.5s infinite ease-in-out 0.1s alternate; }
.is-playing .bar-4 { animation: eqPulse 0.7s infinite ease-in-out 0.3s alternate; }

@keyframes eqPulse {
  0% { height: 3px; }
  100% { height: 14px; }
}

.btn-icon-hud {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xs);
  padding: 4px 10px;
  color: var(--accent-yellow);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.btn-icon-hud:hover {
  border-color: var(--accent-yellow);
  background: var(--accent-yellow-dim);
}

.icon-hud {
  width: 14px;
  height: 14px;
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 10, 8, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-hairline);
  padding: 14px 0;
}

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-crest {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm), var(--shadow-inset-highlight);
}

.crest-svg {
  width: 22px;
  height: 22px;
  color: var(--accent-yellow);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--text-display);
  line-height: 1.1;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--accent-yellow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  position: relative;
  transition: color 0.18s ease;
}

.nav-link:hover {
  color: var(--accent-yellow);
}

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

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xs);
  padding: 4px 8px;
}

.lang-btn {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 2px;
  transition: color 0.15s ease;
}

.lang-btn.is-active {
  color: var(--accent-yellow);
}

.lang-btn:hover {
  color: var(--text-display);
}

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

.btn-header-discord {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-display);
  text-decoration: none;
  box-shadow: var(--shadow-sm), var(--shadow-inset-highlight);
  transition: transform 0.18s var(--ease-spring), border-color 0.18s ease;
}

.btn-header-discord:hover {
  transform: translateY(-1px);
  border-color: var(--accent-yellow);
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--semantic-success);
  box-shadow: 0 0 8px var(--semantic-success);
  animation: pulseLive 2s infinite ease-in-out;
  flex-shrink: 0;
}

.live-pulse-dot.small {
  width: 6px;
  height: 6px;
}

@keyframes pulseLive {
  0% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); box-shadow: 0 0 12px var(--semantic-success); }
  100% { opacity: 0.6; transform: scale(0.9); }
}

/* --------------------------------------------------------------------------
   7. HERO SECTION
   -------------------------------------------------------------------------- */
.section-hero {
  padding: 72px 0 60px;
  position: relative;
  overflow: hidden;
}

.section-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse 650px 320px at 50% 0%, rgba(245, 192, 0, 0.12), transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 1;
}

.hero-hud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hud-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xs);
  padding: 5px 12px;
}

.hud-tag-gold {
  border-color: var(--accent-yellow-border);
  background: var(--accent-yellow-dim);
}

.hud-spark {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-yellow);
  box-shadow: 0 0 6px var(--accent-yellow);
}

.hero-title {
  margin-bottom: 24px;
}

.title-line {
  display: block;
}

.hero-quote {
  margin-bottom: 28px;
  padding-left: 20px;
  border-left: 2px solid var(--accent-yellow);
  max-width: 780px;
}

.hero-desc {
  margin-bottom: 40px;
  color: var(--text-secondary);
}

.hero-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-sm), var(--shadow-inset-highlight);
  transition: transform 0.2s var(--ease-spring), border-color 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-subtle);
}

.metric-card-highlight {
  border-color: var(--accent-yellow-border);
  background: linear-gradient(180deg, #1f1b13 0%, #15130d 100%);
}

.metric-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-display);
}

.metric-unit {
  font-size: 1.25rem;
  color: var(--accent-yellow);
}

.metric-label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   8. SECTION: NARRATIVE PROSE (B-ZONE ORIGIN)
   -------------------------------------------------------------------------- */
.section-narrative {
  padding: 80px 0;
  background: var(--bg-canvas-subtle);
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
}

.section-header {
  margin-bottom: 48px;
}

.hud-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-yellow);
}

.narrative-layout {
  display: block;
  max-width: 860px;
  margin: 0 auto;
}

.narrative-article {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.narrative-block {
  padding: 32px;
}

.block-badge-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.narrative-block h3 {
  margin-bottom: 16px;
}

.prose-content p {
  margin-bottom: 16px;
  color: var(--text-primary);
}

.prose-content p:last-child {
  margin-bottom: 0;
}

.story-pullquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--accent-cream);
  padding: 16px 20px;
  margin: 20px 0;
  background: var(--accent-yellow-dim);
  border-left: 3px solid var(--accent-yellow);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
}

.highlight-danger-text {
  color: #fca5a5 !important;
  border-left: 2px solid var(--semantic-danger);
  padding-left: 12px;
}

/* Sidebar Dossier */
.narrative-sidebar {
  position: sticky;
  top: 96px;
}

.artifact-box {
  padding: 24px;
}

.artifact-photo-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-sunken);
}

.artifact-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) brightness(0.95);
}

.artifact-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-display);
  margin: 6px 0 12px;
}

.artifact-facts {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fact-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.fact-key {
  color: var(--text-muted);
}

.fact-val {
  color: var(--accent-yellow);
  text-align: right;
}

/* --------------------------------------------------------------------------
   9. SECTION: INTERACTIVE 9-STEP STREAM TIMELINE
   -------------------------------------------------------------------------- */
.section-timeline {
  padding: 80px 0;
}

.hud-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-sunken);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xs);
  padding: 8px 16px;
  margin-bottom: 24px;
}

.timeline-header-block {
  margin-bottom: 36px;
}

/* 9-Step Stepper Rail */
.timeline-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 28px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-yellow) var(--bg-surface);
}

.step-node {
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 88px;
  transition: transform 0.18s var(--ease-spring),
              border-color 0.18s ease,
              background-color 0.18s ease;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.step-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.step-node:hover {
  background: var(--bg-surface-raised);
  transform: translateY(-2px);
}

.step-node.is-active {
  background: var(--accent-yellow-dim);
  border-color: var(--accent-yellow);
  box-shadow: 0 0 12px -2px rgba(245, 192, 0, 0.3);
}

.step-node.is-active .step-num {
  color: var(--accent-yellow);
}

.step-node.is-active .step-label {
  color: var(--text-display);
}

.step-node.is-warn.is-active {
  border-color: var(--semantic-warning);
}
.step-node.is-danger.is-active {
  border-color: var(--semantic-danger);
  box-shadow: 0 0 12px -2px rgba(239, 68, 68, 0.4);
}
.step-node.is-recovery.is-active {
  border-color: var(--accent-yellow-bright);
}
.step-node.is-success.is-active,
.step-node.is-ceo.is-active {
  border-color: var(--semantic-success);
  box-shadow: 0 0 12px -2px rgba(34, 197, 94, 0.3);
}

.step-line {
  flex-grow: 1;
  height: 1px;
  background: var(--border-hairline);
  min-width: 12px;
  margin: 0 4px;
}

/* Timeline Stage */
.timeline-stage {
  padding: 36px;
}

.stage-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 36px;
  align-items: start;
}

.stage-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.badge-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  background: var(--accent-yellow-dim);
  color: var(--accent-yellow);
  border: 1px solid var(--accent-yellow-border);
}

.stage-time {
  color: var(--text-muted);
}

.stage-title {
  margin-bottom: 16px;
}

.stage-desc {
  margin-bottom: 20px;
}

.stage-quote-box {
  padding: 16px 20px;
  background: var(--bg-sunken);
  border-left: 2px solid var(--accent-yellow);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
}

.stage-quote {
  font-size: 1.15rem;
  line-height: 1.4;
}

/* Terminal Console Box */
.stage-telemetry {
  background: var(--bg-sunken);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #0f0e0b;
  border-bottom: 1px solid var(--border-hairline);
}

.terminal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #f59e0b; }
.terminal-dot.green { background: #10b981; }

.terminal-title {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-left: 4px;
}

.terminal-screen {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--text-secondary);
  min-height: 180px;
}

.term-line {
  margin-bottom: 4px;
  word-break: break-all;
}

.term-dim { color: var(--text-muted); }
.term-gold { color: var(--accent-yellow); }
.term-danger { color: var(--semantic-danger); font-weight: 700; }
.term-success { color: var(--semantic-success); font-weight: 700; }

.term-prompt {
  color: var(--accent-yellow);
  animation: blinkPrompt 1s infinite;
}

@keyframes blinkPrompt {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Timeline Controls Footer */
.timeline-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-hairline);
}

.btn-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: transform 0.18s var(--ease-spring), border-color 0.18s ease;
}

.btn-ctrl:hover:not(:disabled) {
  border-color: var(--accent-yellow);
  color: var(--accent-yellow);
  transform: translateY(-1px);
}

.btn-ctrl:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ctrl-icon {
  width: 14px;
  height: 14px;
}

.stepper-dots-indicator {
  display: flex;
  gap: 6px;
}

.stepper-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.stepper-dot.is-active {
  background: var(--accent-yellow);
  transform: scale(1.4);
}

/* --------------------------------------------------------------------------
   10. SECTION: 2022 VIBE PHILOSOPHY
   -------------------------------------------------------------------------- */
.section-philosophy {
  padding: 80px 0;
  background: var(--bg-canvas-subtle);
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.phil-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-icon-box {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--accent-yellow);
  margin-bottom: 6px;
}

.icon-svg {
  width: 22px;
  height: 22px;
}

/* --------------------------------------------------------------------------
   11. SECTION: 4-PILLAR MEME CULTURAL VAULT (ASYMMETRIC BENTO GRID)
   -------------------------------------------------------------------------- */
.section-meme-vault {
  padding: 80px 0;
}

.bento-vault-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-span-2 {
  grid-column: span 2;
}

.bento-span-1 {
  grid-column: span 1;
}

.bento-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.bento-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.tag-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.tag-safe {
  background: rgba(34, 197, 94, 0.12);
  color: var(--semantic-success);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.tag-danger {
  background: rgba(239, 68, 68, 0.12);
  color: var(--semantic-danger);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.tag-role {
  background: rgba(245, 192, 0, 0.12);
  color: var(--accent-yellow);
  border: 1px solid var(--accent-yellow-border);
}

.tag-verified {
  background: rgba(245, 192, 0, 0.14);
  color: var(--accent-yellow);
  border: 1px solid var(--accent-yellow-border);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Floppa Card Flex */
.floppa-visual-flex {
  display: flex;
  gap: 28px;
  align-items: center;
}

.floppa-art-box {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
  background: var(--bg-sunken);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease-spring);
}

.floppa-art-box:hover {
  transform: rotate(-3deg) scale(1.04);
}

.meme-svg-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.floppa-text-desc {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floppa-clicker-zone {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.btn-dumpling-feed {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-raised);
  border: 1px solid var(--accent-yellow-border);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-yellow);
  cursor: pointer;
  transition: transform 0.15s var(--ease-spring), background 0.15s ease;
}

.btn-dumpling-feed:hover {
  background: var(--accent-yellow-dim);
  transform: translateY(-2px);
}

.btn-dumpling-feed:active {
  transform: scale(0.95);
}

.icon-dumpling {
  width: 16px;
  height: 16px;
}

.dumpling-counter-box {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.dumpling-number {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-yellow);
}

.floppa-wisdom {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--accent-cream);
  min-height: 24px;
}

/* Flying Dumplings Container */
.dumpling-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.flying-dumpling {
  position: absolute;
  font-size: 24px;
  animation: flyPelmen 1.4s forwards ease-out;
  pointer-events: none;
}

@keyframes flyPelmen {
  0% { transform: translateY(0) scale(0.5); opacity: 1; }
  100% { transform: translateY(-160px) rotate(45deg) scale(1.2); opacity: 0; }
}

/* The Rock Card */
.rock-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rock-gif-frame {
  width: 100%;
  height: 160px;
  background: var(--bg-sunken);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 6px;
}

.rock-gif {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-shimmer-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #2b1111 0%, #1c0b0b 100%);
  border: 1px solid var(--semantic-danger);
  border-radius: var(--radius-pill);
  padding: 11px 20px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fca5a5;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.2);
  transition: transform 0.18s var(--ease-spring), box-shadow 0.18s ease;
  margin-top: 6px;
}

.btn-shimmer-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

.btn-shimmer-danger:active {
  transform: scale(0.96);
}

.rock-reaction-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--accent-cream);
  min-height: 28px;
}

/* Screen Shake Effect */
.screen-shake, .vine-shaking {
  animation: vineShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes vineShake {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(4px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

/* Anonymous Card */
.anon-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.anon-mask-box {
  width: 100%;
  height: 120px;
  background: var(--bg-sunken);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.btn-terminal-decrypt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-sunken);
  border: 1px solid var(--accent-yellow-border);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-yellow);
  cursor: pointer;
  transition: transform 0.18s var(--ease-spring), border-color 0.18s ease;
  margin-top: 6px;
}

.btn-terminal-decrypt:hover {
  transform: translateY(-2px);
  border-color: var(--accent-yellow);
  background: var(--accent-yellow-dim);
}

.btn-terminal-decrypt:active {
  transform: scale(0.96);
}

.terminal-drawer {
  background: #080706;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xs);
  padding: 12px;
  min-height: 64px;
}

.terminal-typewriter {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--accent-yellow);
  word-break: break-word;
}

/* Tula Gingerbread Card */
.gingerbread-flex {
  display: flex;
  gap: 28px;
  align-items: center;
}

.gingerbread-art-box {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
  background: var(--bg-sunken);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steam-container {
  position: absolute;
  top: -24px;
  display: flex;
  gap: 8px;
}

.steam-line {
  width: 2px;
  height: 20px;
  background: rgba(245, 192, 0, 0.4);
  border-radius: 1px;
  opacity: 0;
}

.is-steaming .steam-1 { animation: steamRise 1.6s infinite ease-out; }
.is-steaming .steam-2 { animation: steamRise 1.8s infinite ease-out 0.3s; }
.is-steaming .steam-3 { animation: steamRise 1.5s infinite ease-out 0.6s; }

@keyframes steamRise {
  0% { transform: translateY(0) scaleY(0.4); opacity: 0; }
  50% { opacity: 0.7; }
  100% { transform: translateY(-24px) scaleY(1.2); opacity: 0; }
}

.gingerbread-desc-box {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tea-treat-zone {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.btn-tea-treat {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-raised);
  border: 1px solid var(--accent-yellow-border);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-yellow);
  cursor: pointer;
  transition: transform 0.18s var(--ease-spring), background 0.18s ease;
}

.btn-tea-treat:hover {
  background: var(--accent-yellow-dim);
  transform: translateY(-2px);
}

.btn-tea-treat:active {
  transform: scale(0.96);
}

.tea-chime-feedback {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--accent-cream);
}

/* --------------------------------------------------------------------------
   12. SECTION: DISCORD COMMUNITY PORTAL
   -------------------------------------------------------------------------- */
.section-discord-portal {
  padding: 80px 0;
  background: var(--bg-canvas-subtle);
  border-top: 1px solid var(--border-hairline);
}

.discord-portal {
  padding: 44px;
}

.portal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-hairline);
}

.portal-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-body {
  display: flex;
  gap: 32px;
  align-items: center;
  margin-bottom: 36px;
}

.server-avatar-frame {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.portal-crest {
  width: 44px;
  height: 44px;
  color: var(--accent-yellow);
}

.server-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.code-tag {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-sunken);
  border: 1px solid var(--border-hairline);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  color: var(--accent-yellow);
}

.telemetry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.icon-12 {
  width: 12px;
  height: 12px;
}

.portal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.btn-icon {
  width: 20px;
  height: 20px;
}

.portal-hint {
  font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
   13. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-sunken);
  border-top: 1px solid var(--border-hairline);
  padding: 48px 0 32px;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-hud-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meta-line {
  display: flex;
  gap: 12px;
  font-size: 0.75rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-hairline);
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--accent-yellow);
}

/* --------------------------------------------------------------------------
   14. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .narrative-layout {
    grid-template-columns: 1fr;
  }
  .narrative-sidebar {
    position: static;
  }
  .stage-grid {
    grid-template-columns: 1fr;
  }
  .bento-vault-grid {
    grid-template-columns: 1fr;
  }
  .bento-span-2 {
    grid-column: span 1;
  }
  .philosophy-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none; /* Mobile navigation simplicity */
  }
  .hero-metrics-grid {
    grid-template-columns: 1fr;
  }
  .portal-body {
    flex-direction: column;
    align-items: flex-start;
  }
  .floppa-visual-flex, .gingerbread-flex {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --------------------------------------------------------------------------
   15. ACCESSIBILITY & PREFERS-REDUCED-MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
