/**
 * Oregon Coast AI - H² Deep Tech Physics Lab
 * Main Stylesheet - Immersive Experience
 * "Calculated at the Speed of Nature" (α ≈ 1/137)
 * 
 * Design Philosophy: Physics meets Pacific Northwest
 * Color System: Deep ocean → Amber resonance → Pure light
 */

/* ========================================
   CSS Custom Properties (Design Tokens)
   ======================================== */
:root {
  /* Primary Palette - High Contrast Dark */
  --color-void: #000000;
  --color-deep: #050a14;
  --color-ocean: #0a1525;
  --color-current: #102040;
  --color-surface: #1a3055;
  
  /* Accent Palette - Bright Vibrant */
  --color-amber: #ffb347;
  --color-copper: #ff8c42;
  --color-gold: #ffd700;
  --color-warm: #fff2cc;
  
  /* Neutral Palette - Brighter */
  --color-text-primary: #ffffff;
  --color-text-secondary: #c8c8cc;
  --color-text-muted: #8e8e93;
  --color-border: rgba(255, 255, 255, 0.15);
  --color-border-active: rgba(255, 179, 71, 0.5);
  
  /* Semantic Colors - Vivid */
  --color-success: #00d68f;
  --color-failure: #ff6b6b;
  
  /* Gradients */
  --gradient-hero: linear-gradient(180deg, var(--color-void) 0%, var(--color-deep) 50%, var(--color-ocean) 100%);
  --gradient-card: linear-gradient(135deg, rgba(26, 58, 92, 0.4) 0%, rgba(13, 33, 55, 0.6) 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(255, 179, 71, 0.25) 0%, transparent 70%);
  --gradient-resonance: linear-gradient(90deg, var(--color-copper) 0%, var(--color-amber) 50%, var(--color-gold) 100%);
  
  /* Typography Scale (Perfect Fourth - 1.333) */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;
  
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.333rem;
  --text-2xl: 1.777rem;
  --text-3xl: 2.369rem;
  --text-4xl: 3.157rem;
  --text-5xl: 4.209rem;
  --text-6xl: 5.61rem;
  
  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  
  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --max-width-wide: 1400px;
  
  /* Animation Timing - Based on α rhythm */
  --duration-instant: 100ms;
  --duration-fast: 200ms;
  --duration-normal: 400ms;
  --duration-slow: 800ms;
  --duration-slower: 1200ms;
  --duration-resonance: 7300ms; /* ~1/137 of a minute, conceptually */
  
  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 60px rgba(212, 165, 116, 0.2);
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-void);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Selection */
::selection {
  background: rgba(212, 165, 116, 0.3);
  color: var(--color-text-primary);
}

/* Focus States - Accessible */
:focus-visible {
  outline: 2px solid var(--color-amber);
  outline-offset: 2px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-amber);
  color: var(--color-void);
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top var(--duration-fast) var(--ease-out);
}

.skip-link:focus {
  top: var(--space-md);
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(var(--text-4xl), 8vw, var(--text-6xl)); }
h2 { font-size: clamp(var(--text-2xl), 5vw, var(--text-4xl)); }
h3 { font-size: clamp(var(--text-xl), 3vw, var(--text-2xl)); }
h4 { font-size: var(--text-xl); }

p {
  max-width: 65ch;
}

.text-gradient {
  background: var(--gradient-resonance);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

/* Mathematical Typography */
.math {
  font-family: var(--font-mono);
  font-style: italic;
  color: var(--color-amber);
}

.alpha-symbol {
  font-size: 1.2em;
  color: var(--color-amber);
}

/* ========================================
   Layout Containers
   ======================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.container--wide {
  max-width: var(--max-width-wide);
}

/* Sections */
section {
  position: relative;
  padding-block: var(--space-5xl);
}

/* ========================================
   Header & Navigation
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-lg);
  background: linear-gradient(180deg, var(--color-void) 0%, transparent 100%);
  transition: background var(--duration-normal) var(--ease-out);
}

.site-header.scrolled {
  background: rgba(3, 5, 8, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width-wide);
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--color-text-primary);
}

.logo-mark {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-amber);
}

.logo-text {
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* Navigation */
.main-nav {
  display: flex;
  gap: var(--space-xl);
}

.nav-link {
  position: relative;
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--duration-fast) var(--ease-out);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-amber);
  transition: width var(--duration-normal) var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  transition: all var(--duration-fast) var(--ease-out);
}

/* ========================================
   Hero Section - Immersive Animated
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: var(--space-5xl);
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}

/* Video Background Container */
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  filter: saturate(1.2) brightness(1.1);
}

/* Fallback Image Background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  filter: saturate(1.2) brightness(1.1);
}

/* Animated Wave Overlay */
.hero-waves {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-wave {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  opacity: 0.3;
  background: radial-gradient(ellipse at center, transparent 0%, transparent 50%, var(--color-amber) 50.5%, transparent 51%);
  background-size: 60px 60px;
  animation: waveExpand 8s ease-in-out infinite;
}

.hero-wave:nth-child(2) {
  animation-delay: -2.67s;
  opacity: 0.2;
}

.hero-wave:nth-child(3) {
  animation-delay: -5.33s;
  opacity: 0.15;
}

@keyframes waveExpand {
  0% {
    transform: scale(0.5) rotate(0deg);
    opacity: 0.2;
  }
  50% {
    opacity: 0.1;
  }
  100% {
    transform: scale(1.5) rotate(180deg);
    opacity: 0;
  }
}

/* Floating Particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--color-gold);
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 10px var(--color-amber), 0 0 20px var(--color-gold);
  animation: particleFloat 12s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 1.5s; }
.particle:nth-child(3) { left: 30%; animation-delay: 3s; }
.particle:nth-child(4) { left: 40%; animation-delay: 4.5s; }
.particle:nth-child(5) { left: 50%; animation-delay: 6s; }
.particle:nth-child(6) { left: 60%; animation-delay: 7.5s; }
.particle:nth-child(7) { left: 70%; animation-delay: 9s; }
.particle:nth-child(8) { left: 80%; animation-delay: 10.5s; }
.particle:nth-child(9) { left: 90%; animation-delay: 12s; }

@keyframes particleFloat {
  0% {
    bottom: -10%;
    opacity: 0;
    transform: translateX(0) scale(1);
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    bottom: 110%;
    opacity: 0;
    transform: translateX(50px) scale(0.5);
  }
}

/* Resonance Lines */
.hero-resonance {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resonance-ring {
  position: absolute;
  border: 2px solid var(--color-gold);
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 15px var(--color-amber);
  animation: resonancePulse 4s ease-out infinite;
}

.resonance-ring:nth-child(1) {
  width: 100px;
  height: 100px;
  animation-delay: 0s;
}

.resonance-ring:nth-child(2) {
  width: 200px;
  height: 200px;
  animation-delay: 1s;
}

.resonance-ring:nth-child(3) {
  width: 300px;
  height: 300px;
  animation-delay: 2s;
}

.resonance-ring:nth-child(4) {
  width: 400px;
  height: 400px;
  animation-delay: 3s;
}

@keyframes resonancePulse {
  0% {
    transform: scale(0.5);
    opacity: 0.6;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width-narrow);
  padding-inline: var(--space-lg);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  margin-bottom: var(--space-xl);
  background: rgba(212, 165, 116, 0.1);
  border: 1px solid var(--color-border-active);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-amber);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-title {
  margin-bottom: var(--space-lg);
  font-weight: 700;
}

.hero-subtitle {
  margin-bottom: var(--space-sm);
  font-size: clamp(var(--text-xl), 2.8vw, var(--text-2xl));
  color: var(--color-text-primary);
  font-weight: 400;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-tagline {
  margin-top: var(--space-xs);
  font-size: clamp(var(--text-xl), 2.8vw, var(--text-2xl));
  color: var(--color-text-primary);
  font-weight: 400;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-equation {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  background: rgba(212, 165, 116, 0.08);
  border: 1px solid var(--color-border-active);
  border-radius: var(--radius-lg);
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  color: var(--color-amber);
  letter-spacing: 0.1em;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: float 3s ease-in-out infinite;
}

.scroll-indicator::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--color-text-muted) 0%, transparent 100%);
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

/* ========================================
   Section Headers
   ======================================== */
.section-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.section-label {
  display: inline-block;
  margin-bottom: var(--space-md);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-amber);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-title {
  margin-bottom: var(--space-lg);
}

.section-description {
  max-width: 60ch;
  margin-inline: auto;
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
}

/* ========================================
   Thesis Section
   ======================================== */
.thesis-section {
  background: var(--color-deep);
}

.thesis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
}

.thesis-card {
  position: relative;
  padding: var(--space-2xl);
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: all var(--duration-normal) var(--ease-out);
}

.thesis-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--gradient-glow);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.thesis-card:hover {
  border-color: var(--color-border-active);
  transform: translateY(-4px);
}

.thesis-card:hover::before {
  opacity: 1;
}

.thesis-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-lg);
  background: rgba(212, 165, 116, 0.1);
  border-radius: var(--radius-lg);
  font-size: var(--text-2xl);
}

.thesis-card h3 {
  position: relative;
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
}

.thesis-card p {
  position: relative;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ========================================
   Scientific Foundation Section
   ======================================== */
.foundation-section {
  background: linear-gradient(180deg, var(--color-deep) 0%, var(--color-ocean) 100%);
}

.foundation-content {
  display: grid;
  gap: var(--space-4xl);
}

.foundation-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.foundation-block:nth-child(even) {
  direction: rtl;
}

.foundation-block:nth-child(even) > * {
  direction: ltr;
}

.foundation-text {
  padding: var(--space-xl);
}

.foundation-text h3 {
  margin-bottom: var(--space-lg);
  color: var(--color-amber);
}

.foundation-text p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

.foundation-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.foundation-visual img {
  width: 100%;
  height: auto;
  display: block;
}

/* Coherence Comparison */
.coherence-comparison {
  margin-top: var(--space-3xl);
}

.comparison-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.comparison-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.comparison-labels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  text-align: center;
}

.comparison-label {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
}

.comparison-label--failure {
  background: rgba(139, 79, 90, 0.2);
  border: 1px solid rgba(139, 79, 90, 0.3);
}

.comparison-label--success {
  background: rgba(74, 144, 121, 0.2);
  border: 1px solid rgba(74, 144, 121, 0.3);
}

.comparison-label h4 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-sm);
}

.comparison-label--failure h4 {
  color: var(--color-failure);
}

.comparison-label--success h4 {
  color: var(--color-success);
}

.comparison-label p {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

/* ========================================
   Four Pillars Section
   ======================================== */
.pillars-section {
  background: var(--color-ocean);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl);
}

.pillar-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--duration-slow) var(--ease-out);
}

.pillar-card:hover {
  border-color: var(--color-border-active);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(-8px);
}

.pillar-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.pillar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.pillar-card:hover .pillar-image img {
  transform: scale(1.05);
}

.pillar-number {
  position: absolute;
  top: var(--space-lg);
  left: var(--space-lg);
  padding: var(--space-sm) var(--space-md);
  background: rgba(3, 5, 8, 0.8);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-amber);
  letter-spacing: 0.1em;
}

.pillar-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--space-2xl);
}

.pillar-category {
  margin-bottom: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-amber);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pillar-title {
  margin-bottom: var(--space-md);
  font-size: var(--text-xl);
}

.pillar-philosophy {
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background: rgba(212, 165, 116, 0.08);
  border-left: 3px solid var(--color-amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--color-warm);
  font-size: var(--text-sm);
}

.pillar-details {
  flex: 1;
}

.pillar-item {
  margin-bottom: var(--space-lg);
}

.pillar-item-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pillar-item p {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.pillar-proof {
  margin-top: auto;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.pillar-proof-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-success);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pillar-proof p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* ========================================
   FAQ Section (Voice Search Optimized)
   ======================================== */
.faq-section {
  background: linear-gradient(180deg, var(--color-ocean) 0%, var(--color-deep) 100%);
}

.faq-list {
  max-width: var(--max-width-narrow);
  margin-inline: auto;
}

.faq-item {
  margin-bottom: var(--space-md);
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--duration-fast) var(--ease-out);
}

.faq-item:hover,
.faq-item.active {
  border-color: var(--color-border-active);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-family: inherit;
  font-size: var(--text-lg);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out);
}

.faq-question:hover {
  color: var(--color-amber);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-amber);
  transition: transform var(--duration-normal) var(--ease-out);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-normal) var(--ease-out);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 0 var(--space-xl) var(--space-xl);
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* Voice-optimized class for screen readers and voice assistants */
.voice-optimized {
  /* Ensures content is properly indexed for voice search */
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  padding: var(--space-4xl) var(--space-lg);
  background: var(--color-void);
  border-top: 1px solid var(--color-border);
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.footer-logo {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-amber);
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
}

.footer-legal {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.footer-link {
  color: var(--color-amber);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-link:hover {
  color: var(--color-gold);
  text-decoration: underline;
}

/* ========================================
   Animations
   ======================================== */

/* Fade In Up */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children animation */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 100ms; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 200ms; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 300ms; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Pulse Animation */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.pulse {
  animation: pulse 3s ease-in-out infinite;
}

/* Wave Animation - Inspired by resonance */
@keyframes wave {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.wave-line {
  position: relative;
  overflow: hidden;
}

.wave-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.3), transparent);
  animation: wave var(--duration-resonance) linear infinite;
}

/* Glow Pulse */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(212, 165, 116, 0.2); }
  50% { box-shadow: 0 0 40px rgba(212, 165, 116, 0.4); }
}

.glow-pulse {
  animation: glowPulse 4s ease-in-out infinite;
}

/* ========================================
   Utility Classes
   ======================================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.no-scroll {
  overflow: hidden;
}

/* ========================================
   Media Queries
   ======================================== */
@media (max-width: 1024px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  
  .foundation-block {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .foundation-block:nth-child(even) {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  :root {
    --space-5xl: 5rem;
    --space-4xl: 4rem;
    --space-3xl: 3rem;
  }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: var(--space-lg);
    background: rgba(3, 5, 8, 0.98);
    backdrop-filter: blur(20px);
    gap: var(--space-md);
  }
  
  .main-nav.open {
    display: flex;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .comparison-labels {
    grid-template-columns: 1fr;
  }
  
  .hero-equation {
    font-size: var(--text-xl);
    padding: var(--space-sm) var(--space-lg);
  }
  
  section {
    padding-block: var(--space-4xl);
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: var(--space-md);
  }
  
  .pillar-content {
    padding: var(--space-lg);
  }
  
  .thesis-card {
    padding: var(--space-lg);
  }
}

/* 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;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Print Styles */
@media print {
  .site-header,
  .scroll-indicator,
  .nav-toggle {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  section {
    page-break-inside: avoid;
  }
}

/* ========================================
   Contact Section - Resonance Theme
   ======================================== */
.contact-section {
  padding-block: var(--space-5xl);
  background: linear-gradient(180deg, var(--color-ocean) 0%, var(--color-deep) 100%);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(255, 179, 71, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.contact-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.contact-card {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  max-width: 600px;
  width: 100%;
  text-align: center;
  position: relative;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), 0 0 80px rgba(255, 179, 71, 0.3);
}

.contact-icon {
  font-size: 3rem;
  margin-bottom: var(--space-lg);
  display: block;
  animation: pulse 2s ease-in-out infinite;
}

.contact-title {
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-bottom: var(--space-md);
  background: var(--gradient-resonance);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-description {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
  max-width: 100%;
}

.contact-info {
  margin-bottom: var(--space-2xl);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-2xl);
  background: rgba(255, 179, 71, 0.1);
  border: 2px solid var(--color-amber);
  border-radius: var(--radius-full);
  color: var(--color-amber);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.contact-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-resonance);
  transition: left var(--duration-normal) var(--ease-out);
  z-index: -1;
}

.contact-link:hover {
  color: var(--color-void);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 179, 71, 0.3);
}

.contact-link:hover::before {
  left: 0;
}

.contact-link-icon {
  font-size: 1.2em;
}

.contact-link-text {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
}

.contact-cta {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.contact-cta-text {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-md);
  font-style: italic;
}

.contact-equation {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  color: var(--color-amber);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Responsive Contact Section */
@media (max-width: 768px) {
  .contact-card {
    padding: var(--space-2xl);
    margin-inline: var(--space-md);
  }
  
  .contact-icon {
    font-size: 2.5rem;
  }
  
  .contact-title {
    font-size: var(--text-xl);
  }
  
  .contact-link {
    padding: var(--space-md) var(--space-lg);
  }
  
  .contact-link-text {
    font-size: var(--text-base);
  }
}

@media (max-width: 480px) {
  .contact-card {
    padding: var(--space-xl);
  }
  
  .contact-link {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

/* ========================================
   Content Sections
   ======================================== */
.content-section {
  padding: var(--space-4xl) 0;
  border-bottom: 1px solid var(--color-border);
}

.content-section:last-of-type {
  border-bottom: none;
}

.content-section .section-title {
  font-size: var(--text-3xl);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xl);
  font-weight: 600;
}

.content-section .section-title--small {
  font-size: var(--text-2xl) !important;
}

.subsection-title {
  font-size: var(--text-2xl);
  color: var(--color-text-primary);
  margin-bottom: var(--space-lg);
  font-weight: 600;
}

.section-content {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: var(--max-width-narrow);
}

.content-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: var(--max-width-narrow);
}

.content-list li {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  padding-left: var(--space-lg);
  position: relative;
}

.content-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-amber);
  font-size: var(--text-xl);
}

.content-list--numbered {
  counter-reset: item;
  list-style: none;
}

.content-list--numbered li {
  counter-increment: item;
  padding-left: var(--space-2xl);
}

.content-list--numbered li::before {
  content: counter(item) ".";
  position: absolute;
  left: 0;
  color: var(--color-amber);
  font-weight: 600;
  font-size: var(--text-lg);
}

.content-list strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

.content-note {
  margin-top: var(--space-xl);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  font-style: italic;
}

.content-section a {
  color: var(--color-amber);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.content-section a:hover {
  color: var(--color-gold);
  text-decoration: underline;
}