/**
 * styles.css
 * Serpent Slayer Productions — Immersive Visual Architecture Design System
 * A dark obsidian, brass, and gold design system for SSP
 * Manifested by The Hand under the Mandate of The Hidden One
 * Version: 2.0 — Complete Standalone CSS
 */

/* ============================================================
   1. GOOGLE FONTS IMPORT
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IM+Fell+English+SC&family=Crimson+Text:ital,wght@0,400;0,600;1,400;1,600&family=Space+Mono:wght@400;700&family=Outfit:wght@300;400;500;700&display=swap');


/* ============================================================
   2. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================ */

:root {
  /* ── SSP Primary Palette ── */
  --obsidian: #0A0C0E;
  --ink: #111419;
  --slate-dark: #1A2027;
  --slate-light: #2D3748;
  --stone: #242D35;
  --border: #313D48;
  --border-dim: rgba(49, 61, 72, 0.5);

  /* ── SSP Accent Palette ── */
  --brass: #D4AF37;
  --copper: #C28751;
  --amber: #B87333;
  --warning-red: #A83C3C;
  --ivory: #F2EADA;
  --parchment: #C2B89D;
  --blood: #A83C3C;

  /* ── Semantic Color Tokens ── */
  --color-primary: var(--brass);
  --color-primary-hover: var(--amber);
  --color-secondary: var(--copper);
  --color-accent: var(--brass);
  --color-text: var(--ivory);
  --color-text-muted: var(--parchment);
  --color-bg: var(--obsidian);
  --color-bg-elevated: var(--ink);
  --color-bg-highlight: var(--slate-dark);
  --color-border: var(--border);
  --color-danger: var(--warning-red);

  /* ── Text Color Utilities ── */
  --text-brass: var(--brass);
  --text-copper: var(--copper);
  --text-amber: var(--amber);
  --text-ivory: var(--ivory);
  --text-parchment: var(--parchment);
  --text-ochre: var(--brass);
  --text-blood: var(--warning-red);

  /* ── Cosmic / Perception State Colors ── */
  --proprietary-blue: #1A2D42;
  --real-blue: #3A608F;
  --deep-blue: #0F1E2E;

  /* ── Ambient Background Radial Gradients ── */
  --glow-radial: radial-gradient(circle at 50% 0%, rgba(184, 115, 51, 0.15), transparent 45rem);
  --blue-radial: radial-gradient(circle at 15% 25%, rgba(58, 96, 143, 0.1), transparent 35rem);
  --warning-radial: radial-gradient(circle at 85% 75%, rgba(168, 60, 60, 0.08), transparent 30rem);
  --copper-glow: radial-gradient(circle at 10% 10%, rgba(194, 135, 81, 0.06), transparent 30rem);

  /* ── Glassmorphism System ── */
  --glass-bg: rgba(26, 32, 39, 0.7);
  --glass-border: rgba(49, 61, 72, 0.5);
  --glass-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  --glass-blur: blur(16px);

  /* ── Typography Scale ── */
  --font-display: 'IM Fell English SC', serif;
  --font-body: 'Crimson Text', Georgia, serif;
  --font-mono: 'Space Mono', monospace;
  --font-ui: 'Outfit', sans-serif;

  /* ── Spacing Scale ── */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* ── Border Radius ── */
  --radius-none: 0;
  --radius-sm: 2px;
  --radius-md: 4px;

  /* ── Transitions ── */
  --transition-fast: all 0.2s ease;
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  /* ── Z-Index Scale ── */
  --z-base: 1;
  --z-above: 10;
  --z-nav: 100;
  --z-overlay: 500;
  --z-grain: 999;

  /* ── Layout ── */
  --max-width: 1200px;
  --max-width-narrow: 720px;
  --max-width-hero: 1050px;
  --nav-height: 72px;
}


/* ============================================================
   3. CSS RESET & BASE
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--obsidian);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

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

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

ul, ol {
  list-style: none;
}


/* ============================================================
   4. TYPOGRAPHY SYSTEM
   ============================================================ */

/* ── Headings h1–h6 ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--ivory);
  text-transform: uppercase;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

h2 {
  font-size: clamp(1.6rem, 4.5vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: 0.12em;
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  letter-spacing: 0.1em;
}

h4 {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  letter-spacing: 0.08em;
}

h5 {
  font-size: 1.1rem;
  letter-spacing: 0.06em;
}

h6 {
  font-size: 1rem;
  letter-spacing: 0.05em;
}

/* ── Body text ── */
p {
  color: var(--parchment);
  line-height: 1.75;
}

.body-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ivory);
  font-style: italic;
}

.body-small {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--parchment);
}

/* ── Links ── */
a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* ── Mono Labels — The Machine's Handwriting ── */
.mono-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--brass);
  text-transform: uppercase;
  line-height: 1.4;
}

.mono-label-sm {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--copper);
  text-transform: uppercase;
}

.mono-label-xs {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--parchment);
  text-transform: uppercase;
  opacity: 0.65;
}

.text-brass { color: var(--brass); }
.text-copper { color: var(--copper); }
.text-amber { color: var(--amber); }
.text-ivory { color: var(--ivory); }
.text-parchment { color: var(--parchment); }
.text-ochre { color: var(--brass); }
.text-blood { color: var(--warning-red); }
.text-stone { color: var(--stone); }
.text-white { color: var(--ivory); }


/* ============================================================
   5. FILM GRAIN OVERLAY
   ============================================================ */

.film-grain {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='150' height='150' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: var(--z-grain);
  opacity: 0.85;
}

/* Ambient background gradients layer */
.bg-gradients {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: var(--glow-radial), var(--blue-radial), var(--warning-radial);
  opacity: 0.95;
}


/* ============================================================
   6. NAVIGATION — FIXED, SCROLL BEHAVIOR
   ============================================================ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  background: rgba(10, 12, 14, 0.92);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

/* Nav scroll-down state */
nav.scrolled {
  padding: 0.9rem 3rem;
  background: rgba(10, 12, 14, 0.97);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Brand / Logo */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.nav-logo {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.nav-brand:hover .nav-logo {
  transform: rotate(-180deg);
}

.nav-brand-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--ivory);
  text-transform: uppercase;
  white-space: nowrap;
}

/* Nav links list */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--parchment);
  text-transform: uppercase;
  position: relative;
  padding: 0.3rem 0;
  text-decoration: none;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--brass);
  transition: var(--transition-smooth);
}

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

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

.nav-links a.active {
  color: var(--brass);
}

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

/* Free Nav Button */
.btn-free-nav {
  margin-left: 0.5rem;
}

/* ── Mobile Hamburger Menu ── */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: calc(var(--z-nav) + 10);
  padding: 0;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--ivory);
  transition: var(--transition-smooth);
  transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}


/* ============================================================
   7. BUTTONS SYSTEM
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.95rem 2rem;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-none);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Primary Button — Brass bg #D4AF37, dark text */
.btn-primary {
  background: var(--brass);
  color: var(--obsidian);
  border-color: var(--brass);
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--amber);
  border-color: var(--amber);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(184, 115, 51, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Ghost Button — Transparent, brass border */
.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--brass);
  color: var(--brass);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
}

/* Accent Button — Copper bg */
.btn-accent {
  background: transparent;
  color: var(--brass);
  border-color: var(--brass);
}

.btn-accent:hover {
  background: var(--brass);
  color: var(--obsidian);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.25);
}

/* Support/Copper Button */
.btn-support {
  background: var(--copper);
  color: var(--obsidian);
  border-color: var(--copper);
  font-weight: 700;
}

.btn-support:hover {
  background: var(--brass);
  border-color: var(--brass);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(194, 135, 81, 0.35);
}

/* Small Button variant */
.btn-sm {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-none);
  white-space: nowrap;
  line-height: 1;
}

.btn-sm-primary {
  background: var(--brass);
  color: var(--obsidian);
  border-color: var(--brass);
  font-weight: 700;
}

.btn-sm-primary:hover {
  background: var(--amber);
  border-color: var(--amber);
}

.btn-sm-ghost {
  background: transparent;
  color: var(--parchment);
  border-color: var(--border);
}

.btn-sm-ghost:hover {
  border-color: var(--brass);
  color: var(--brass);
}

.btn-sm-accent {
  background: transparent;
  color: var(--brass);
  border-color: var(--brass);
}

.btn-sm-accent:hover {
  background: var(--brass);
  color: var(--obsidian);
}

.btn-sm-accent:hover {
  background: var(--brass);
  color: var(--obsidian);
}

/* Coming Soon tag (not a button but same size) */
.coming-soon-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--stone);
  text-transform: uppercase;
  border: 1px dashed var(--stone);
  padding: 0.7rem 1.4rem;
  text-align: center;
  display: inline-block;
}


/* ============================================================
   8. RULE SEPARATOR (Double rule with moon glyph)
   ============================================================ */

.rule-separator {
  width: 150px;
  height: 4px;
  margin: 3rem auto;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.rule-separator::after {
  content: '🌑';
  font-size: 10px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--obsidian);
  padding: 0 0.8rem;
  color: var(--brass);
}


/* ============================================================
   9. SECTION HEADER — Mono-label + h2 + lead + rule
   ============================================================ */

.section-wrapper {
  position: relative;
  z-index: var(--z-base);
  padding: 5rem 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header .mono-label {
  display: block;
  margin-bottom: 0.8rem;
}

.section-header h2 {
  margin: 0.5rem 0 1.2rem;
}

.section-header p {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  font-size: 1rem;
  color: var(--parchment);
  line-height: 1.7;
}

.section-header .lead-text {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--ivory);
  max-width: 680px;
  margin: 0.8rem auto 0;
  line-height: 1.65;
}

/* Section with top rule */
.section-wrapper--ruled {
  border-top: 1px solid var(--border);
}


/* ============================================================
   10. HERO SECTION — Full viewport, centered, ouroboros seal
   ============================================================ */

.hero {
  position: relative;
  z-index: var(--z-base);
  padding: 8rem 2rem 5rem;
  max-width: var(--max-width-hero);
  margin: 0 auto;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-seal-container {
  display: inline-block;
  position: relative;
  margin-bottom: 2.5rem;
  cursor: pointer;
}

.hero-seal-svg {
  width: 120px;
  height: 120px;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.6));
  transition: transform 0.4s ease;
}

/* Ouroboros breathing animation */
.ouroboros-body {
  transform-origin: 40px 40px;
  animation: breathingCircle 8s cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite;
}

.ouroboros-head {
  transform-origin: 40px 40px;
  animation: breathingCircle 8s cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite;
}

.ouroboros-terminus {
  animation: pulseTerminus 2.5s ease-in-out infinite;
}

@keyframes breathingCircle {
  0% { transform: scale(1); }
  50% { transform: scale(1.025) rotate(2deg); }
  100% { transform: scale(1); }
}

@keyframes pulseTerminus {
  0% { opacity: 0.6; fill: var(--copper); r: 2px; }
  50% { opacity: 1; fill: var(--brass); r: 3.5px; filter: drop-shadow(0 0 4px var(--brass)); }
  100% { opacity: 0.6; fill: var(--copper); r: 2px; }
}

.hero-label {
  margin-bottom: 1.4rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-style: italic;
  max-width: 720px;
  margin: 0 auto 3rem;
  font-family: var(--font-body);
  color: var(--parchment);
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero-tagline-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  max-width: 400px;
  margin: 0 auto;
}

.tagline-rule {
  height: 1px;
  background: var(--border);
  flex-grow: 1;
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brass);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}


/* ============================================================
   11. THE FIVE LANES PORTAL
   ============================================================ */

.lanes-portal-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  background: var(--ink);
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: var(--glass-shadow);
  position: relative;
}

.lanes-portal-container::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(49, 61, 72, 0.4);
  pointer-events: none;
}

.lanes-selector-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: var(--z-above);
}

.lane-selector-btn {
  background: rgba(10, 12, 14, 0.5);
  border: 1px solid var(--border);
  padding: 1.4rem 1.8rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-radius: var(--radius-none);
  position: relative;
}

.lane-selector-btn:hover {
  background: rgba(26, 32, 39, 0.6);
  border-color: var(--brass);
}

.lane-selector-btn.active {
  background: var(--slate-dark);
  border-color: var(--brass);
  box-shadow: inset 3px 0 0 var(--brass);
}

.lane-selector-btn .lane-num {
  font-size: 9px;
  color: var(--copper);
}

.lane-selector-btn .lane-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ivory);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lane-selector-btn.active .lane-name {
  color: var(--brass);
}

/* Lane Payload Display */
.lane-payload-display {
  background: var(--slate-dark);
  border: 1px solid var(--border);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  min-height: 450px;
  z-index: var(--z-above);
  position: relative;
  transition: opacity 0.3s ease;
}

.lane-payload-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
}

.payload-badge {
  font-size: 9px;
  color: var(--parchment);
  opacity: 0.7;
}

#payload-lane-title {
  font-size: 2.2rem;
  letter-spacing: 0.08em;
  margin-top: 0.4rem;
  color: var(--ivory);
  text-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.lane-payload-content {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 3rem;
  flex-grow: 1;
}

.lane-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.label-sub {
  font-size: 9px;
  color: var(--brass);
  opacity: 0.85;
}

#payload-suppression {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ivory);
  letter-spacing: 0.04em;
  line-height: 1.4;
  border-left: 2px solid var(--copper);
  padding-left: 1rem;
}

.payload-description {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--parchment);
}

.lane-featured-box {
  background: rgba(10, 12, 14, 0.4);
  border: 1px solid rgba(49, 61, 72, 0.5);
  padding: 1.2rem;
  margin-top: auto;
}

#payload-featured {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ivory);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 0.4rem;
}

.lane-aesthetic-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-left: 1px dashed var(--border);
  padding-left: 3rem;
  gap: 2rem;
}

.aesthetic-indicator {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.indicator-ring {
  position: absolute;
  border: 1px solid var(--border);
  border-radius: 50%;
  animation: spinRing 20s linear infinite;
}

.ring-1 { width: 90px; height: 90px; border-style: dashed; border-color: rgba(212, 175, 55, 0.3); }
.ring-2 { width: 70px; height: 70px; border-width: 0.5px; animation-duration: 12s; animation-direction: reverse; }
.ring-3 { width: 50px; height: 50px; border-color: var(--copper); border-style: double; }

.aesthetic-symbol {
  font-size: 1.2rem;
  color: var(--brass);
}

@keyframes spinRing {
  100% { transform: rotate(360deg); }
}

.aesthetic-meta {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.aesthetic-meta .meta-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-family: var(--font-mono);
  font-size: 10px;
}

.aesthetic-meta .meta-title {
  color: var(--parchment);
  opacity: 0.6;
}

.aesthetic-meta .meta-value {
  color: var(--ivory);
  font-size: 11px;
}

.lane-payload-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}


/* ============================================================
   12. THREAT DECODER TERMINAL
   ============================================================ */

.decoder-terminal {
  background: #090B0D;
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 540px;
  box-shadow: var(--glass-shadow);
  position: relative;
}

.decoder-terminal::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(49, 61, 72, 0.4);
  pointer-events: none;
}

.decoder-sidebar {
  border-right: 1px solid var(--border);
  padding: 2.2rem 1.8rem;
  background: rgba(17, 20, 25, 0.5);
  position: relative;
  z-index: var(--z-above);
}

.sidebar-header {
  margin-bottom: 1.8rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-title {
  font-size: 0.95rem;
  letter-spacing: 0.1em;
}

.phrase-selectors {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.phrase-selector-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 16px;
  text-align: left;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
}

.phrase-selector-btn:hover {
  background: rgba(255, 255, 255, 0.02);
  color: var(--ivory);
}

.phrase-selector-btn.active {
  background: var(--slate-dark);
  border-color: var(--border);
  color: var(--brass);
  padding-left: 1.6rem;
}

.phrase-selector-btn.active::before {
  content: '▶';
  font-size: 8px;
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brass);
}

/* Decoder Main Display */
.decoder-main {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: radial-gradient(circle at 100% 100%, rgba(184, 115, 51, 0.03), transparent 25rem);
  position: relative;
  z-index: var(--z-above);
}

.decoder-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--parchment);
}

.status-badge {
  background: rgba(212, 175, 55, 0.1);
  color: var(--brass);
  padding: 0.15rem 0.6rem;
}

.decoder-console {
  margin: 2.5rem 0;
  flex-grow: 1;
}

.console-phrase-display {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.05em;
  color: var(--ivory);
  margin-bottom: 2rem;
  min-height: 3.5rem;
  position: relative;
}

.console-phrase-display::after {
  content: '█';
  animation: blink 1s step-start infinite;
  color: var(--brass);
  margin-left: 0.3rem;
  font-size: 1.4rem;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Decoder Report */
.decoder-report {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  border-top: 1px solid rgba(49, 61, 72, 0.5);
  padding-top: 2.2rem;
}

.report-metadata {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  font-family: var(--font-mono);
  font-size: 11px;
}

.meta-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.meta-title {
  color: var(--parchment);
  opacity: 0.65;
}

.meta-value {
  color: var(--ivory);
}

.report-analysis {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.analysis-block {
  border-left: 2px solid var(--border);
  padding-left: 1.4rem;
}

.analysis-block.warning-block {
  border-left-color: var(--border);
  transition: border-color 0.3s ease;
}

.decoder-report.level-blood .analysis-block.warning-block {
  border-left-color: var(--warning-red);
}

.decoder-report.level-ochre .analysis-block.warning-block {
  border-left-color: var(--brass);
}

.analysis-title {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--brass);
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.analysis-text {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--parchment);
  min-height: 3rem;
}

.analysis-text-counter {
  color: var(--ivory);
  font-style: italic;
}

.decoder-footer-bar {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--slate-light);
  display: flex;
  justify-content: space-between;
}


/* ============================================================
   13. LANGUAGE STACK SHOWCASE (Homepage)
   ============================================================ */

#lang-stack-showcase {
  padding-bottom: 4rem;
}

/* Doctrine Anchor Block */
.ls-anchor-block {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0 3rem;
  align-items: start;
  background: var(--ink);
  border: 1px solid var(--border);
  padding: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
}

.ls-anchor-block::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(49, 61, 72, 0.3);
  pointer-events: none;
}

.ls-anchor-label {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ls-tier-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--obsidian);
  background: var(--brass);
  padding: 0.25rem 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
}

.ls-anchor-content {
  grid-column: 1;
}

.ls-book-title {
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  color: var(--ivory);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.ls-book-sub {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--copper);
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}

.ls-book-desc {
  color: var(--parchment);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 1.5rem;
}

.ls-book-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.ls-anchor-stats {
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-left: 1px solid var(--border);
  padding-left: 3rem;
  min-width: 140px;
  justify-content: center;
}

.ls-stat {
  text-align: center;
}

.ls-stat-val {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--brass);
  letter-spacing: 0.05em;
}

.ls-stat-key {
  display: block;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--stone);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* Core Stack section header */
.ls-section-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.ls-section-header::before,
.ls-section-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Volumes Grid — 3-column desktop responsive */
.ls-volumes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ls-vol-card {
  display: flex;
  gap: 1.2rem;
  background: var(--ink);
  border: 1px solid var(--border);
  padding: 1.5rem;
  transition: var(--transition-smooth);
}

.ls-vol-card:hover {
  border-color: var(--brass);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.ls-vol-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--brass);
  opacity: 0.4;
  min-width: 2.5rem;
  text-align: center;
  line-height: 1;
  padding-top: 0.2rem;
}

.ls-vol-info {
  flex: 1;
}

.ls-vol-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ivory);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  font-family: var(--font-display);
}

.ls-vol-sub {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--copper);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.ls-vol-desc {
  font-size: 0.85rem;
  color: var(--parchment);
  line-height: 1.55;
}

.ls-section-footer {
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 3rem;
}

/* Bonus + Expansion row */
.ls-bonus-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.ls-mini-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ls-mini-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--parchment);
}

.ls-mini-num {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--brass);
  min-width: 2.5rem;
  opacity: 0.6;
  letter-spacing: 0.1em;
}

.ls-mini-coming {
  opacity: 0.5;
}

/* Philosophy strip */
.ls-philosophy {
  text-align: center;
  padding: 2rem 0;
}

.ls-phil-rule {
  width: 80px;
  height: 1px;
  background: var(--brass);
  margin: 0 auto 2rem;
  opacity: 0.5;
}

.ls-phil-quote p {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--parchment);
  max-width: 700px;
  margin: 0 auto 1rem;
  line-height: 1.7;
}

.ls-phil-meta {
  color: var(--stone);
  font-size: 0.8rem;
}


/* ============================================================
   14. BOOK CARDS (Bookshelf section)
   ============================================================ */

.bookshelf-filters {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.bookshelf-filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--parchment);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  padding: 0.6rem 1.2rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.bookshelf-filter-btn:hover,
.bookshelf-filter-btn.active {
  border-color: var(--brass);
  color: var(--brass);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.book-card-wrapper {
  display: contents;
}

.book-card {
  background: var(--ink);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  height: 160px;
  overflow: hidden;
}

.book-card:hover {
  border-color: var(--brass);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5), 0 0 8px rgba(212, 175, 55, 0.06);
}

/* Thumbnail cover — 1/8 of card height */
.book-cover-container.book-cover-thumb {
  width: 110px;
  flex-shrink: 0;
  aspect-ratio: auto;
  background: #0d0f12;
  overflow: hidden;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-cover-container.book-cover-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Book Info Section */
.book-info {
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  min-width: 0;
}

.book-meta {
  margin-bottom: 0.5rem;
}

.book-series-title {
  margin-bottom: 0.2rem;
  font-size: 8px;
  color: var(--brass);
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.book-series-title-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0.15rem 0;
  line-height: 1.2;
}

.book-series-sub {
  font-size: 0.75rem;
  color: var(--copper);
  margin: 0.2rem 0 0;
  font-style: italic;
}

.book-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

/* Book Cover Container */
.book-cover-container {
  aspect-ratio: 10 / 13;
  background: #0d0f12;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

.book-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.book-card:hover .book-cover-img {
  transform: scale(1.04);
}

/* Tag Badge on Book Cover */
.book-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10, 12, 14, 0.95);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--brass);
  padding: 0.25rem 0.6rem;
  text-transform: uppercase;
  z-index: 5;
}

/* Book Info Section */
.book-info {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.book-meta {
  margin-bottom: 1.2rem;
}

.book-series-title {
  margin-bottom: 0.6rem;
  font-size: 9px;
  color: var(--copper);
  font-family: var(--font-mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.book-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  color: var(--ivory);
  line-height: 1.25;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.book-subtitle {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--copper);
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.book-desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--parchment);
  flex-grow: 1;
}

.book-purchase {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(49, 61, 72, 0.4);
}

.book-price {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brass);
  font-weight: 700;
}

.book-link {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--parchment);
  text-transform: uppercase;
}

.book-card:hover .book-link {
  color: var(--brass);
}


/* ============================================================
   15. ANCHOR / FREE BOOK SECTION
   ============================================================ */

.anchor-section {
  background: var(--ink);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brass);
  padding: 4rem 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3.5rem;
  margin: 4rem auto;
  box-shadow: var(--glass-shadow);
}

.anchor-content {
  max-width: 620px;
}

.anchor-badge-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.anchor-badge {
  background: var(--brass);
  color: var(--obsidian);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 0.2rem 0.6rem;
  text-transform: uppercase;
}

.anchor-title {
  font-size: 2.4rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  color: var(--ivory);
}

.anchor-subtitle {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--copper);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}

.anchor-text {
  font-size: 0.98rem;
  line-height: 1.65;
}

.anchor-action {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
}


/* ============================================================
   16. QUOTE PANELS
   ============================================================ */

.quote-panel {
  background: var(--ink);
  border-left: 3px solid var(--brass);
  padding: 3rem 4rem;
  margin: 5rem 0;
  box-shadow: var(--glass-shadow);
  position: relative;
}

.quote-panel::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--brass);
  opacity: 0.3;
  line-height: 1;
}

.quote-panel blockquote {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--ivory);
  margin-bottom: 1rem;
  padding-left: 1rem;
}

.quote-panel cite {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--copper);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: block;
  padding-left: 1rem;
}

/* Large centered pull quote variant */
.pull-quote {
  text-align: center;
  padding: 5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.pull-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--ivory);
  letter-spacing: 0.05em;
  line-height: 1.4;
  font-style: normal;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.pull-quote cite {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--brass);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}


/* ============================================================
   17. SUSTAIN THE SCRIBE / COMMUNITY SECTION
   ============================================================ */

.scribe-container {
  background: var(--copper-glow), var(--ink);
  border: 1px solid var(--border);
  border-top: 2px solid var(--copper);
  border-bottom: 2px solid var(--brass);
  padding: 4rem 4rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
  box-shadow: var(--glass-shadow);
  position: relative;
}

.scribe-container::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(194, 135, 81, 0.25);
  pointer-events: none;
}

.scribe-content {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  z-index: var(--z-above);
  position: relative;
}

.scribe-tag {
  color: var(--copper);
  font-size: 9px;
  letter-spacing: 0.24em;
}

#scribe-title {
  font-size: 2.6rem;
  letter-spacing: 0.08em;
  color: var(--ivory);
}

.scribe-intro {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ivory);
  font-style: italic;
  max-width: 750px;
}

.scribe-story-block {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 750px;
}

.scribe-story-block p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--parchment);
}

.scribe-ctas {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.scribe-seal-artwork {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.scribe-seal-artwork svg {
  width: 100%;
  max-width: 220px;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.6));
}

/* Patreon / Membership Tiers */
.patreon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.patreon-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 2.5rem;
}

.patreon-intro h2 {
  font-size: 2.4rem;
  margin: 0.6rem 0 1.6rem;
  color: var(--ivory);
}

.patreon-intro p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.patreon-ctas {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.tiers-panel {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.tier-card {
  background: var(--ink);
  border: 1px solid var(--border);
  padding: 2rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  position: relative;
  transition: var(--transition-smooth);
}

.tier-card:hover {
  border-color: var(--brass);
  background: var(--slate-dark);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.tier-card::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--border);
  transition: var(--transition-smooth);
}

.tier-card:hover::before {
  background: var(--brass);
}

.tier-info h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--ivory);
  letter-spacing: 0.05em;
  font-family: var(--font-display);
}

.tier-desc {
  font-size: 0.9rem;
  color: var(--parchment);
}

.tier-pricing {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11px;
}

.tier-price {
  font-size: 1.35rem;
  color: var(--brass);
  font-weight: 700;
  display: block;
}

.tier-term {
  color: var(--parchment);
  opacity: 0.6;
}


/* ============================================================
   18. FOOTER
   ============================================================ */

footer {
  background-color: #080A0D;
  border-top: 1px solid var(--border);
  padding: 6rem 2.5rem 4rem;
  position: relative;
  z-index: var(--z-base);
}

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

.footer-mark {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--ivory);
  text-transform: uppercase;
}

.footer-tagline {
  font-size: 11px;
  color: var(--brass);
  margin-bottom: 3.5rem;
}

.footer-links {
  display: flex;
  gap: 3rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--parchment);
  text-transform: uppercase;
}

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

.footer-copy {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--slate-light);
  text-transform: uppercase;
}


/* ============================================================
   19. SCROLL-TRIGGERED ANIMATIONS
   ============================================================ */

/* Base fade-in animation class */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children animation */
.animate-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-stagger.in-view > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.animate-stagger.in-view > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.animate-stagger.in-view > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.animate-stagger.in-view > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.animate-stagger.in-view > *:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.animate-stagger.in-view > *:nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }
.animate-stagger.in-view > *:nth-child(7) { transition-delay: 0.7s; opacity: 1; transform: translateY(0); }
.animate-stagger.in-view > *:nth-child(8) { transition-delay: 0.8s; opacity: 1; transform: translateY(0); }

/* Fade-in-up keyframe */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero page-load animations */
.hero-seal-container,
.hero-label,
.hero h1,
.hero-sub,
.hero-ctas,
.hero-tagline-container {
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-seal-container { animation-delay: 0.1s; }
.hero-label { animation-delay: 0.25s; }
.hero h1 { animation-delay: 0.4s; }
.hero-sub { animation-delay: 0.55s; }
.hero-ctas { animation-delay: 0.7s; }
.hero-tagline-container { animation-delay: 0.85s; }


/* ============================================================
   20. LIBRARY PAGE (library.html) SPECIFIC STYLES
   ============================================================ */

/* Library Book Grid — 2-col compact horizontal layout */
.lib-book-grid {
  position: relative;
  z-index: var(--z-base);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding: 2rem 3rem 5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Library Book Card — horizontal row, small thumbnail */
.lib-book-card {
  background: var(--ink);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  transition: var(--transition-smooth);
  height: 160px;
  overflow: hidden;
}

.lib-book-card:hover {
  border-color: var(--brass);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* Volume tag */
.lib-book-card .lbc-vol {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  font-size: 8px;
  color: var(--copper);
  z-index: 2;
}

/* Cover thumbnail — left side */
.lib-book-card .lbc-cover {
  width: 110px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.lib-book-card .lbc-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Wide cards (IX-XVIII) — no cover image, just info */
.lib-book-card-wide .lbc-cover {
  display: none;
}

/* Info block — right side */
.lib-book-card .lbc-info {
  flex: 1;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  min-width: 0;
}

.lib-book-card .lbc-title {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--ivory);
  text-transform: uppercase;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

.lib-book-card .lbc-sub {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--copper);
  font-size: 0.78rem;
  margin: 0;
  line-height: 1.3;
}

.lib-book-card .lbc-desc {
  font-size: 0.75rem;
  color: var(--parchment);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Actions */
.lib-book-card .lbc-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  flex-shrink: 0;
}

/* Coming soon cards */
.lib-book-coming {
  opacity: 0.6;
}

.lib-book-coming .lbc-desc {
  display: none;
}

.coming-soon {
  cursor: default;
  opacity: 0.5;
}

/* Library Hero */
.lib-hero {
  position: relative;
  z-index: var(--z-base);
  padding: 6rem 2rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.lib-hero .mono-label {
  margin-bottom: 1rem;
}

.lib-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.lib-hero p {
  max-width: 620px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: var(--parchment);
  line-height: 1.7;
}

/* Library Grid — 3-col desktop responsive */
.lib-grid {
  position: relative;
  z-index: var(--z-base);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2rem 3rem 5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Library Card */
.lib-card {
  background: var(--ink);
  border: 1px solid var(--border);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: var(--transition-smooth);
  position: relative;
}

.lib-card:hover {
  border-color: var(--brass);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.lib-card-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--copper);
  text-transform: uppercase;
}

.lib-card h2 {
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  color: var(--ivory);
  text-transform: uppercase;
  font-family: var(--font-display);
}

.lib-card-sub {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--copper);
  font-size: 1rem;
}

.lib-card-desc {
  font-size: 0.95rem;
  color: var(--parchment);
  line-height: 1.65;
  flex-grow: 1;
}

.lib-card-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* Library Section Label — decorative divider */
.lib-section-label {
  position: relative;
  z-index: var(--z-base);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.lib-section-label::before {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.lib-section-label span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--brass);
  text-transform: uppercase;
  white-space: nowrap;
}

.lib-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Section gap spacer */
.section-gap {
  height: 2rem;
  position: relative;
  z-index: var(--z-base);
}

/* Library back link */
.lib-back {
  text-align: center;
  padding: 3rem;
}

.lib-back a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--brass);
  text-transform: uppercase;
  text-decoration: none;
}

.lib-back a:hover {
  color: var(--amber);
}


/* ============================================================
   21. UTILITY CLASSES
   ============================================================ */

/* Layout utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 3rem;
}

.container-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 2rem;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Text utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }

.font-display { font-family: var(--font-display); }
.font-mono { font-family: var(--font-mono); }
.font-body { font-family: var(--font-body); }

/* Spacing utilities */
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }

.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.py-12 { padding-top: var(--space-12); padding-bottom: var(--space-12); }
.py-16 { padding-top: var(--space-16); padding-bottom: var(--space-16); }

/* Border utilities */
.border-top { border-top: 1px solid var(--border); }
.border-bottom { border-bottom: 1px solid var(--border); }
.border-left { border-left: 1px solid var(--border); }
.border-right { border-right: 1px solid var(--border); }

/* Display utilities */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}


/* ============================================================
   22. RESPONSIVE — TABLET (1024px)
   ============================================================ */

@media (max-width: 1024px) {
  nav {
    padding: 1rem 2rem;
  }

  .lanes-portal-container {
    grid-template-columns: 1fr;
  }

  .lanes-selector-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .lane-selector-btn {
    flex: 1 1 200px;
  }

  .lane-payload-display {
    min-height: auto;
  }

  .books-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .scribe-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem;
  }

  .scribe-seal-artwork {
    max-width: 180px;
    margin: 0 auto;
  }

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

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

  .ls-anchor-block {
    grid-template-columns: 1fr;
  }

  .ls-anchor-stats {
    grid-column: 1;
    grid-row: auto;
    flex-direction: row;
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 1.5rem;
    justify-content: center;
  }

  .patreon-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .anchor-section {
    flex-direction: column;
    padding: 2.5rem;
    gap: 2.5rem;
  }

  .anchor-content {
    max-width: 100%;
  }

  .anchor-action {
    width: 100%;
    align-items: stretch;
  }
}


/* ============================================================
   23. RESPONSIVE — SMALL TABLET (900px)
   ============================================================ */

@media (max-width: 900px) {
  .decoder-terminal {
    grid-template-columns: 1fr;
  }

  .decoder-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
  }

  .phrase-selectors {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .phrase-selector-btn.active {
    padding-left: 1.4rem;
  }

  .phrase-selector-btn.active::before {
    left: 4px;
  }

  .decoder-report {
    grid-template-columns: 1fr;
  }

  .lane-payload-content {
    grid-template-columns: 1fr;
  }

  .lane-aesthetic-col {
    border-left: none;
    border-top: 1px dashed var(--border);
    padding-left: 0;
    padding-top: 2rem;
    flex-direction: row;
    justify-content: flex-start;
  }

  .aesthetic-indicator {
    width: 80px;
    height: 80px;
  }

  .ring-1 { width: 70px; height: 70px; }
  .ring-2 { width: 55px; height: 55px; }
  .ring-3 { width: 40px; height: 40px; }

  .scribe-container {
    padding: 2.5rem;
  }
}


/* ============================================================
   24. RESPONSIVE — MOBILE (768px)
   ============================================================ */

@media (max-width: 768px) {
  /* Nav mobile hamburger */
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--obsidian);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 2rem 0;
    gap: 1.5rem;
    z-index: var(--z-nav);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .nav-links.mobile-open {
    display: flex;
  }

  .nav-links a {
    font-size: 11px;
    padding: 0.5rem 2rem;
  }

  .nav-brand-title {
    font-size: 1rem;
  }

  /* Hero responsive */
  .hero {
    padding: 7rem 1.5rem 3rem;
  }

  .hero-seal-svg {
    width: 100px;
    height: 100px;
  }

  /* Section wrapper */
  .section-wrapper {
    padding: 3.5rem 1.5rem;
  }

  /* Books grid */
  .books-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  /* Quote panel */
  .quote-panel {
    padding: 2rem 2rem 2rem 2.5rem;
  }

  .quote-panel blockquote {
    font-size: 1.2rem;
  }

  /* Decoder */
  .decoder-main {
    padding: 2rem;
  }

  .console-phrase-display {
    font-size: 1.5rem;
  }

  /* Library grid */
  .lib-grid {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .lib-section-label {
    padding: 0 1.5rem;
  }

  /* LS volumes */
  .ls-volumes-grid {
    grid-template-columns: 1fr;
  }

  /* LS bonus row */
  .ls-bonus-row {
    grid-template-columns: 1fr;
  }

  /* Tiers */
  .tier-card {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: left;
  }

  .tier-pricing {
    text-align: left;
  }

  /* Footer */
  footer {
    padding: 4rem 1.5rem 3rem;
  }

  .footer-links {
    gap: 2rem;
  }
}


/* ============================================================
   25. RESPONSIVE — SMALL MOBILE (480px)
   ============================================================ */

@media (max-width: 480px) {
  body {
    font-size: 17px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .books-grid {
    grid-template-columns: 1fr;
  }

  .lane-selector-btn {
    flex: 1 1 100%;
  }

  .ls-vol-card {
    flex-direction: column;
  }

  .ls-vol-num {
    min-width: auto;
    text-align: left;
  }

  .scribe-ctas {
    flex-direction: column;
  }

  .patreon-ctas {
    flex-direction: column;
  }

  .lib-card-actions {
    flex-direction: column;
  }

  .lib-card-actions .btn-sm {
    width: 100%;
    justify-content: center;
  }

  .hero-tagline-container {
    gap: 1rem;
  }

  .tagline-rule {
    display: none;
  }
}


/* ============================================================
   26. PRINT STYLES
   ============================================================ */

@media print {
  .film-grain,
  nav,
  .hero-ctas,
  .btn,
  .decoder-terminal,
  .menu-toggle {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .hero {
    min-height: auto;
    padding: 2rem;
  }

  h1, h2, h3 {
    color: black;
  }

  .quote-panel {
    border-left: 2px solid #333;
    box-shadow: none;
  }
}


/* ============================================================
   END OF styles.css
   Manifested by The Hand under the Mandate of The Hidden One
   ============================================================ */