/* ============================================
   The Consciousness Project — Premium Dark Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
  --bg-deep: #030711;
  --bg: #0a1128;
  --bg-card: rgba(12, 22, 52, 0.75);
  --bg-card-hover: rgba(18, 32, 72, 0.85);

  --blue: #3b82f6;
  --blue-bright: #60a5fa;
  --blue-dim: #1d4ed8;
  --cyan: #22d3ee;
  --purple: #a855f7;
  --accent: #f43f5e;
  --green: #10b981;
  --amber: #f59e0b;
  --indigo: #6366f1;
  --rose: #f43f5e;

  --text: #cbd5e1;
  --text-bright: #f1f5f9;
  --text-dim: #64748b;

  --border: rgba(59, 130, 246, 0.15);
  --border-bright: rgba(59, 130, 246, 0.35);
  --glass: rgba(255, 255, 255, 0.03);
  --glass-strong: rgba(255, 255, 255, 0.06);

  --radius: 16px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse at 15% 0%, rgba(59, 130, 246, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 100%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
  overflow-x: hidden;
}

/* === Ambient Starfield === */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 15%, rgba(59, 130, 246, 0.4), transparent),
    radial-gradient(1px 1px at 25% 60%, rgba(168, 85, 247, 0.3), transparent),
    radial-gradient(1.5px 1.5px at 50% 10%, rgba(96, 165, 250, 0.35), transparent),
    radial-gradient(1px 1px at 65% 75%, rgba(59, 130, 246, 0.3), transparent),
    radial-gradient(1px 1px at 82% 30%, rgba(168, 85, 247, 0.25), transparent),
    radial-gradient(1.5px 1.5px at 15% 85%, rgba(96, 165, 250, 0.3), transparent),
    radial-gradient(1px 1px at 42% 42%, rgba(59, 130, 246, 0.2), transparent),
    radial-gradient(1.5px 1.5px at 88% 52%, rgba(96, 165, 250, 0.3), transparent),
    radial-gradient(1px 1px at 3% 48%, rgba(168, 85, 247, 0.25), transparent),
    radial-gradient(1px 1px at 58% 30%, rgba(59, 130, 246, 0.2), transparent),
    radial-gradient(1px 1px at 72% 8%, rgba(168, 85, 247, 0.25), transparent),
    radial-gradient(1.5px 1.5px at 35% 78%, rgba(96, 165, 250, 0.25), transparent);
  animation: starfield 30s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(59, 130, 246, 0.04), transparent 40%);
}

@keyframes starfield {
  0% { opacity: 0.4; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(-20px); }
}

/* === Floating Orbs === */
.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(100px);
  opacity: 0.5;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent 70%);
  top: 5%;
  left: -8%;
  animation: orbFloat1 22s ease-in-out infinite;
}

.orb-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15), transparent 70%);
  bottom: 5%;
  right: -8%;
  animation: orbFloat2 28s ease-in-out infinite;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.12), transparent 70%);
  top: 45%;
  left: 45%;
  animation: orbFloat3 20s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(50px, 40px); }
  66% { transform: translate(-30px, 60px); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-40px, -50px); }
  66% { transform: translate(25px, -25px); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(-50%, -50%); }
  33% { transform: translate(-42%, -58%); }
  66% { transform: translate(-58%, -42%); }
}

/* ============================================
   NAVIGATION — Glass morphism
   ============================================ */
nav {
  background: rgba(3, 7, 17, 0.85);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  box-shadow:
    0 1px 0 rgba(59, 130, 246, 0.06),
    0 4px 30px rgba(0, 0, 0, 0.4),
    0 0 50px rgba(59, 130, 246, 0.04);
}

nav .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

/* === GLOWING SITE TITLE — matches bluetoothdefense brand-text-glow === */
nav .site-title {
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow:
    0 0 10px #3b82f6cc,
    0 0 20px #3b82f699,
    0 0 30px #3b82f666,
    0 0 40px #3b82f64d,
    -2px -2px 0 #3b82f680,
    2px -2px 0 #3b82f680,
    -2px 2px 0 #3b82f680,
    2px 2px 0 #3b82f680,
    0 4px 15px rgba(0, 0, 0, 0.3);
  -webkit-text-stroke: 0.5px rgba(59, 130, 246, 0.5);
  filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.5));
  transition: all 0.3s;
}

nav .site-title:hover {
  filter: drop-shadow(0 0 25px rgba(59, 130, 246, 0.7));
  text-shadow:
    0 0 12px #3b82f6ee,
    0 0 25px #3b82f6bb,
    0 0 40px #3b82f688,
    0 0 60px #3b82f655,
    -2px -2px 0 #3b82f6aa,
    2px -2px 0 #3b82f6aa,
    -2px 2px 0 #3b82f6aa,
    2px 2px 0 #3b82f6aa;
}

nav a {
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.7rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.3s, text-shadow 0.3s;
  position: relative;
}

nav a:hover {
  color: var(--blue-bright);
  text-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

nav a.active {
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.6);
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.7);
  border-radius: 1px;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  position: relative;
  z-index: 1;
}

/* ============================================
   HERO — dramatic, 3D, cinematic
   ============================================ */
.hero {
  background:
    linear-gradient(135deg, #030711 0%, #0c1a3d 35%, #15083a 60%, #0a1128 100%);
  color: #fff;
  padding: 7rem 1.5rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background:
    radial-gradient(circle at 25% 35%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 75% 65%, rgba(168, 85, 247, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 50% 85%, rgba(96, 165, 250, 0.08) 0%, transparent 30%);
  animation: heroGlow 12s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to top, var(--bg-deep), transparent);
  z-index: 2;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  100% { transform: translate(-4%, 4%) scale(1.1) rotate(1.5deg); }
}

/* === AUTHOR NAME — the lead of this project === */
.hero .author-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 8px;
  text-transform: uppercase;
  line-height: 1;
  color: #fff;
  margin: 0 0 0.75rem;
  position: relative;
  z-index: 3;
  text-shadow:
    0 0 10px #3b82f6cc,
    0 0 20px #3b82f688,
    0 0 35px #3b82f644,
    0 3px 10px rgba(0, 0, 0, 0.4);
  -webkit-text-stroke: 0.4px rgba(59, 130, 246, 0.35);
  filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.35));
  animation: fadeSlideUp 0.85s ease-out both;
  border-bottom: none;
  padding-bottom: 0;
}

.hero .author-name::after { display: none; }

/* "presents" connector */
.hero .presents {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 5px;
  text-transform: lowercase;
  color: rgba(148, 163, 184, 0.5);
  margin: 0 0 1.75rem;
  position: relative;
  z-index: 3;
  animation: fadeSlideUp 0.85s ease-out 0.06s both;
}

/* Project title */
.hero .project-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3.4rem;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 1.25rem;
  position: relative;
  z-index: 3;
  text-shadow:
    0 0 10px #3b82f6cc,
    0 0 25px #3b82f699,
    0 0 50px #3b82f655,
    0 0 80px #3b82f633,
    0 4px 12px rgba(0, 0, 0, 0.5);
  -webkit-text-stroke: 0.5px rgba(59, 130, 246, 0.4);
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.4));
  border-bottom: none;
  padding-bottom: 0;
  animation: fadeSlideUp 0.9s ease-out 0.12s both;
}

.hero .project-title::after { display: none; }

/* Badge */
.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 2rem;
  position: relative;
  z-index: 3;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 0.45rem 1.4rem;
  border-radius: 100px;
  backdrop-filter: blur(8px);
  animation: fadeSlideUp 0.8s ease-out 0.05s both;
}

.hero .badge::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  animation: statusPulse 2s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.7);
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.7); }
}

/* === HERO TITLE — heavy 3D glow === */
.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3.8rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: -2px;
  line-height: 1.1;
  color: #fff;
  text-shadow:
    0 0 10px #3b82f6cc,
    0 0 25px #3b82f699,
    0 0 50px #3b82f655,
    0 0 80px #3b82f633,
    0 4px 12px rgba(0, 0, 0, 0.5);
  -webkit-text-stroke: 0.5px rgba(59, 130, 246, 0.4);
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.4));
  position: relative;
  z-index: 3;
  animation: fadeSlideUp 0.9s ease-out 0.1s both;
}

.hero .subtitle {
  font-size: 1.3rem;
  font-weight: 300;
  font-style: italic;
  max-width: 650px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
  color: var(--text);
  line-height: 1.8;
  letter-spacing: 0.02em;
  animation: fadeSlideUp 0.9s ease-out 0.2s both;
}

.hero .hero-cta {
  margin-top: 3rem;
  position: relative;
  z-index: 3;
  animation: fadeSlideUp 0.9s ease-out 0.35s both;
}

.hero .hero-cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Space Grotesk', sans-serif;
  background: linear-gradient(135deg, var(--blue), var(--blue-dim));
  color: #fff;
  padding: 0.9rem 2.4rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.8px;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid rgba(59, 130, 246, 0.4);
  box-shadow:
    0 0 25px rgba(59, 130, 246, 0.3),
    0 4px 20px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero .hero-cta a:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 0 40px rgba(59, 130, 246, 0.45),
    0 8px 30px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  text-shadow: none;
}

/* ============================================
   ENTRANCE ANIMATIONS
   ============================================ */
@keyframes fadeSlideUp {
  0% { opacity: 0; transform: translateY(30px); filter: blur(8px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(35px);
  filter: blur(6px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.3s; }
.stagger-7 { transition-delay: 0.35s; }
.stagger-8 { transition-delay: 0.4s; }
.stagger-9 { transition-delay: 0.45s; }
.stagger-10 { transition-delay: 0.5s; }
.stagger-11 { transition-delay: 0.55s; }

/* ============================================
   TYPOGRAPHY — Space Grotesk headings, Inter body
   ============================================ */
h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-bright);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 700;
}

h1 {
  font-size: 2.4rem;
  margin-bottom: 1.25rem;
  color: #fff;
  text-shadow:
    0 0 15px rgba(59, 130, 246, 0.5),
    0 0 35px rgba(59, 130, 246, 0.2),
    0 3px 8px rgba(0, 0, 0, 0.4);
  -webkit-text-stroke: 0.3px rgba(59, 130, 246, 0.3);
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.25));
}

h2 {
  font-size: 1.6rem;
  margin: 3.5rem 0 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
  color: #fff;
  text-shadow:
    0 0 12px rgba(59, 130, 246, 0.6),
    0 0 24px rgba(59, 130, 246, 0.25),
    0 2px 6px rgba(0, 0, 0, 0.3);
  -webkit-text-stroke: 0.3px rgba(59, 130, 246, 0.25);
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 70px;
  height: 2px;
  background: linear-gradient(to right, var(--blue), transparent);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

h3 {
  font-size: 1.25rem;
  margin: 1.75rem 0 0.75rem;
  color: var(--text-bright);
  letter-spacing: -0.02em;
  text-shadow: 0 0 8px rgba(59, 130, 246, 0.15);
}

p {
  margin-bottom: 1.25rem;
  letter-spacing: 0.01em;
  line-height: 1.75;
}

strong { color: var(--text-bright); font-weight: 600; }
em { color: var(--text-bright); }

/* ============================================
   LINKS
   ============================================ */
a {
  color: var(--blue-bright);
  text-decoration: none;
  transition: color 0.25s, text-shadow 0.25s;
}

a:hover {
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

/* ============================================
   CARD GRID
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

/* ============================================
   CARDS — floating glass panels
   ============================================ */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.2),
    0 0 1px rgba(59, 130, 246, 0.1),
    inset 0 1px 0 var(--glass-strong);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

/* Top shimmer line */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(255, 255, 255, 0.08) 50%, transparent 90%);
}

.card:hover {
  border-color: var(--border-bright);
  box-shadow:
    0 8px 40px rgba(59, 130, 246, 0.15),
    0 20px 60px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-6px);
  background: var(--bg-card-hover);
}

.card h3 { margin-top: 0; transition: all 0.3s; }
.card h3 a { text-decoration: none; transition: all 0.3s; }

.card:hover h3,
.card:hover h3 a {
  color: var(--blue-bright);
  text-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

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

/* Card icon */
.card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card-icon {
  transform: scale(1.2) rotate(5deg);
}

/* === Color-coded card variants via data-topic === */
.card[data-topic="hard-problem"]  { --card-accent: #f43f5e; }
.card[data-topic="theories"]      { --card-accent: #a855f7; }
.card[data-topic="free-will"]     { --card-accent: #f59e0b; }
.card[data-topic="altered-states"]{ --card-accent: #10b981; }
.card[data-topic="cosmos"]        { --card-accent: #6366f1; }
.card[data-topic="split-brain"]   { --card-accent: #ec4899; }
.card[data-topic="boundaries"]    { --card-accent: #14b8a6; }
.card[data-topic="illusions"]     { --card-accent: #8b5cf6; }
.card[data-topic="experiment"]    { --card-accent: #06b6d4; }
.card[data-topic="machine-minds"] { --card-accent: #3b82f6; }
.card[data-topic="sources"]       { --card-accent: #64748b; }

.card[data-topic] {
  border-color: color-mix(in srgb, var(--card-accent) 20%, transparent);
}

.card[data-topic]:hover {
  border-color: color-mix(in srgb, var(--card-accent) 50%, transparent);
  box-shadow:
    0 8px 40px color-mix(in srgb, var(--card-accent) 15%, transparent),
    0 20px 60px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.card[data-topic]:hover h3,
.card[data-topic]:hover h3 a {
  color: var(--card-accent);
  text-shadow: 0 0 15px color-mix(in srgb, var(--card-accent) 40%, transparent);
}

/* Highlight & green card variants */
.card.highlight {
  border-color: rgba(244, 63, 94, 0.2);
  background: rgba(40, 15, 25, 0.6);
  box-shadow: 0 4px 24px rgba(244, 63, 94, 0.08), inset 0 1px 0 var(--glass-strong);
}

.card.highlight:hover {
  border-color: rgba(244, 63, 94, 0.45);
  box-shadow: 0 8px 40px rgba(244, 63, 94, 0.15), 0 20px 60px rgba(0, 0, 0, 0.3);
}

.card.green {
  border-color: rgba(16, 185, 129, 0.2);
  background: rgba(10, 40, 30, 0.6);
  box-shadow: 0 4px 24px rgba(16, 185, 129, 0.08), inset 0 1px 0 var(--glass-strong);
}

.card.green:hover {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 8px 40px rgba(16, 185, 129, 0.15), 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Subtle idle glow pulse */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 var(--glass); }
  50% { box-shadow: 0 4px 30px rgba(59, 130, 246, 0.08), inset 0 1px 0 var(--glass-strong); }
}

.card:not(:hover) {
  animation: glowPulse 5s ease-in-out infinite;
}

/* ============================================
   BLOCKQUOTES
   ============================================ */
blockquote {
  border-left: 3px solid var(--blue);
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: rgba(59, 130, 246, 0.04);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-bright);
  box-shadow:
    -4px 0 30px rgba(59, 130, 246, 0.12),
    0 4px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
  position: relative;
}

blockquote::before {
  content: '\201C';
  position: absolute;
  top: -15px;
  left: 15px;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: var(--blue);
  opacity: 0.12;
  line-height: 1;
}

blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.3px;
}

/* ============================================
   STAT GRID
   ============================================ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0;
}

.stat-box {
  text-align: center;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  padding: 2rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.stat-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0;
  transition: opacity 0.5s;
}

.stat-box:hover {
  border-color: var(--border-bright);
  box-shadow: 0 8px 40px rgba(59, 130, 246, 0.12), 0 20px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(-4px);
}

.stat-box:hover::before { opacity: 1; }

.stat-box .number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  display: block;
  letter-spacing: -1px;
  text-shadow:
    0 0 12px rgba(59, 130, 246, 0.7),
    0 0 30px rgba(59, 130, 246, 0.3),
    0 0 50px rgba(59, 130, 246, 0.15);
  -webkit-text-stroke: 0.5px rgba(59, 130, 246, 0.4);
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
}

.stat-box .label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 500;
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
  position: relative;
  padding-left: 2.5rem;
  margin: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue), var(--purple), var(--cyan));
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.3);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 1.25rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.85rem;
  top: 0.5rem;
  width: 14px;
  height: 14px;
  background: var(--blue);
  border: 3px solid var(--bg-deep);
  border-radius: 50%;
  box-shadow:
    0 0 14px rgba(59, 130, 246, 0.6),
    0 0 30px rgba(59, 130, 246, 0.2);
  transition: all 0.3s;
}

.timeline-item:hover::before {
  background: var(--cyan);
  box-shadow:
    0 0 18px rgba(34, 211, 238, 0.7),
    0 0 35px rgba(34, 211, 238, 0.3);
  transform: scale(1.4);
}

.timeline-item .year {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--blue-bright);
  font-size: 0.9rem;
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
  letter-spacing: 0.5px;
}

/* ============================================
   LISTS
   ============================================ */
ul, ol { margin: 0.75rem 0 1.25rem 1.5rem; }
li { margin-bottom: 0.5rem; }
li::marker { color: var(--blue); }

/* ============================================
   TABLES
   ============================================ */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  color: var(--text);
  font-size: 0.9rem;
}

th {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-bright);
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--border);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

tr:hover td { background: rgba(59, 130, 246, 0.03); }

/* ============================================
   SOURCES
   ============================================ */
.sources {
  background: rgba(12, 22, 52, 0.5);
  border: 1px solid var(--border);
  padding: 1.75rem;
  border-radius: var(--radius);
  margin-top: 2.5rem;
  font-size: 0.85rem;
  backdrop-filter: blur(12px);
}

.sources h3 { margin-top: 0; font-size: 1rem; }
.sources ol { margin-left: 1.25rem; }
.sources li { margin-bottom: 0.5rem; color: var(--text-dim); }

/* ============================================
   PAGE NAV (prev/next)
   ============================================ */
.page-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.page-nav a {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--blue-bright);
  transition: all 0.35s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid transparent;
  letter-spacing: 0.3px;
}

.page-nav a:hover {
  color: #fff;
  text-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
  border-color: var(--border);
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
}

/* ============================================
   SECTION DIVIDER
   ============================================ */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-bright), transparent);
  margin: 3.5rem 0;
  position: relative;
}

.section-divider::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -4px;
  width: 9px;
  height: 9px;
  background: var(--blue);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
}

/* ============================================
   TAGS / BADGES
   ============================================ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  margin-bottom: 0.6rem;
}

.tag.philosophy   { background: rgba(244, 63, 94, 0.1); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.2); }
.tag.science      { background: rgba(59, 130, 246, 0.1); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.2); }
.tag.neuroscience { background: rgba(16, 185, 129, 0.1); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.2); }
.tag.psychology   { background: rgba(245, 158, 11, 0.1); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.2); }
.tag.physics      { background: rgba(99, 102, 241, 0.1); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.2); }
.tag.technology   { background: rgba(6, 182, 212, 0.1); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.2); }
.tag.interactive  { background: rgba(168, 85, 247, 0.1); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.2); }

/* ============================================
   FOOTER
   ============================================ */
footer {
  margin-top: 4rem;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
  position: relative;
  z-index: 1;
  background: linear-gradient(to top, rgba(3, 7, 17, 0.6), transparent);
}

footer a { color: var(--blue-bright); }

.license-box {
  background: rgba(59, 130, 246, 0.04);
  border: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 1rem;
  backdrop-filter: blur(8px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero .author-name { font-size: 1.1rem; letter-spacing: 5px; }
  .hero .project-title { font-size: 2rem; letter-spacing: -1px; }
  .hero h1 { font-size: 2.2rem; letter-spacing: -1px; }
  .hero .subtitle { font-size: 1.05rem; }
  .hero { padding: 5rem 1.25rem 4rem; }
  .stat-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  nav .nav-inner { flex-direction: column; align-items: flex-start; }
  nav a { padding: 0.45rem 1.25rem; font-size: 0.72rem; }
  .container { padding: 2rem 1rem 3rem; }
  .page-nav { flex-direction: column; gap: 0.75rem; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.35rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .card { padding: 1.25rem; }
  .stat-box .number { font-size: 2.2rem; }
}

@media print {
  body { background: #fff; color: #000; }
  .orb, body::before, body::after { display: none; }
  nav { position: static; }
  .card { box-shadow: none; border: 1px solid #ccc; }
}
