/* ============================================================
   BOTBUHDY EYE — A BotBuhdy Exploration
   Third Eye: Inner Vision, Pineal Gland & Spiritual Awakening
   Space Grotesk · Inter · JetBrains Mono
   Indigo/Violet primary · Gold accent · Deep dark
   ============================================================ */

:root {
  /* Core palette */
  --bg-deep:       #04030f;
  --bg-mid:        #07060f;
  --bg-card:       #0a0917;
  --bg-card-hover: #0f0d20;

  /* Third-eye themed: violet/indigo primary */
  --eye-violet:    #7C3AED;
  --eye-indigo:    #6366F1;
  --eye-lavender:  #A78BFA;
  --eye-deep:      #4C1D95;
  --eye-light:     #C4B5FD;

  /* Gold/amber accent */
  --eye-gold:      #F59E0B;
  --eye-amber:     #FBBF24;
  --eye-warm:      #D97706;

  /* Soft teal/cyan for harmony */
  --calm-teal:     #0891B2;
  --calm-light:    #22D3EE;

  /* Text */
  --text-primary:  #E8E5F8;
  --text-muted:    #8880B0;
  --text-dim:      #3E3860;

  /* Fonts */
  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-body:    'Inter', -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;
  --font-serif:   Georgia, 'Times New Roman', serif;

  /* Glows */
  --glow-violet:   0 0 30px rgba(124, 58, 237, 0.40);
  --glow-indigo:   0 0 30px rgba(99, 102, 241, 0.35);
  --glow-lavender: 0 0 30px rgba(167, 139, 250, 0.35);
  --glow-gold:     0 0 30px rgba(245, 158, 11, 0.30);

  /* Borders */
  --border-subtle: rgba(124, 58, 237, 0.10);
  --border-glow:   rgba(124, 58, 237, 0.45);

  /* Transitions */
  --transition-base: 0.4s ease-out;
  --transition-fast: 0.2s ease-out;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: 
    radial-gradient(ellipse 80% 60% at 15% 25%, rgba(124,58,237,0.16), transparent 60%),
    radial-gradient(ellipse 70% 50% at 85% 75%, rgba(99,102,241,0.13), transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(76,29,149,0.11), transparent 60%),
    radial-gradient(ellipse 50% 40% at 70% 15%, rgba(245,158,11,0.07), transparent 60%),
    var(--bg-deep);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.85;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: body-fade-in 0.6s ease-out both;
}

@keyframes body-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Grain Overlay ── */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ── Grid Background ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.018) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ── Layout ── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* ============================================================
   HEADER
   ============================================================ */
.eye-topbar {
  background: rgba(4, 3, 15, 0.98);
  border-bottom: 1px solid rgba(124, 58, 237, 0.05);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.3rem 1.5rem;
}
.topbar-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
}

/* ── Site Header ── */
.site-header {
  background: rgba(4, 3, 15, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(124, 58, 237, 0.09);
  position: sticky;
  top: 0;
  z-index: 500;
  padding: 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.logo-pulse {
  font-size: 1.5rem;
  animation: pulse-eye 5s ease-in-out infinite;
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--eye-lavender);
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.logo-sub {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Mobile back button */
.mobile-back-btn {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  transition: all 0.2s;
}
.mobile-back-btn:hover { color: var(--eye-lavender); border-color: var(--eye-lavender); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.hamburger:hover { border-color: var(--eye-violet); }
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--eye-lavender);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Navigation Bar ── */
.eye-nav {
  background: rgba(5, 4, 14, 0.95);
  border-bottom: 1px solid rgba(124, 58, 237, 0.07);
  position: sticky;
  top: 50px;
  z-index: 499;
  overflow-x: auto;
  scrollbar-width: none;
}
.eye-nav::-webkit-scrollbar { display: none; }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
  white-space: nowrap;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--eye-lavender);
  background: rgba(124, 58, 237, 0.04);
}
.nav-link.active {
  color: var(--eye-lavender);
  border-bottom-color: var(--eye-lavender);
}
.nav-icon { font-size: 0.85rem; }

/* ── Mobile Nav Overlay ── */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 3, 15, 0.99);
  z-index: 600;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.mobile-nav-overlay.open { opacity: 1; visibility: visible; }
.mobile-nav-inner {
  max-width: 400px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
}
.mobile-nav-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}
.mobile-nav-title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--eye-lavender);
}
.mobile-nav-close {
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
}
.mobile-nav-close:hover { color: var(--eye-lavender); border-color: var(--eye-violet); }
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-nav-links a {
  display: block;
  padding: 0.85rem 0.6rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(124, 58, 237, 0.07);
  transition: all 0.15s;
}
.mobile-nav-links a:hover {
  color: var(--eye-lavender);
  padding-left: 1.2rem;
  background: rgba(124, 58, 237, 0.03);
}
.mobile-nav-links a.active {
  color: var(--eye-lavender);
  font-weight: 600;
  border-left: 3px solid var(--eye-lavender);
  padding-left: 0.8rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  margin-top: 7rem;
  position: relative;
  background: linear-gradient(180deg, transparent 0%, rgba(124,58,237,0.015) 100%);
}
.footer-wave {
  position: relative;
  height: 60px;
  overflow: hidden;
}
.footer-wave svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 3rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2.5rem;
}
.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-logo-mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.footer-pulse {
  font-size: 1.8rem;
  animation: pulse-eye 5s ease-in-out infinite;
}
.footer-brand-text {
  display: flex;
  flex-direction: column;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--eye-lavender);
}
.footer-brand-sub {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-description {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.footer-disclaimer-text {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  padding: 0.6rem 0.8rem;
  background: rgba(124,58,237,0.03);
  border: 1px solid rgba(124,58,237,0.07);
  border-radius: 6px;
}
.footer-nav-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--eye-violet);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding-bottom: 0.5rem;
  margin-bottom: 0.2rem;
  border-bottom: 1px solid rgba(124,58,237,0.12);
}
.footer-col a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.2rem 0;
  transition: all 0.2s;
}
.footer-col a:hover {
  color: var(--eye-lavender);
  padding-left: 0.4rem;
}
.footer-bottom-bar {
  border-top: 1px solid rgba(124,58,237,0.08);
  background: rgba(0,0,0,0.2);
}
.footer-bottom-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}
.footer-bottom-inner strong { color: var(--text-muted); }
.footer-sep { color: var(--eye-gold); opacity: 0.4; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 6rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-bg-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%,
    rgba(124, 58, 237, 0.12) 0%,
    rgba(99, 102, 241, 0.07) 50%,
    transparent 100%);
}
.hero > *:not(.hero-bg-placeholder) {
  position: relative;
  z-index: 1;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(transparent, var(--bg-deep));
  pointer-events: none;
  z-index: 2;
}
.hero-icon {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 1.5rem;
  animation: float-eye 7s ease-in-out infinite;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  background: linear-gradient(270deg, var(--eye-lavender), var(--eye-violet), var(--eye-gold), var(--eye-lavender));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer-gradient 9s ease-in-out infinite;
}
@keyframes shimmer-gradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-subtitle {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.9;
  font-style: italic;
}
.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--eye-gold);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 0.45rem 1.2rem;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.05);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: pulse-gold 5s ease-in-out infinite;
}

/* ── Page Header (inner pages) ── */
.page-header {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 3.5rem;
  position: relative;
  overflow: hidden;
}
.page-header-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 70% 80% at 10% 50%,
    rgba(124, 58, 237, 0.06) 0%,
    transparent 70%);
  pointer-events: none;
}
.page-header > *:not(.page-header-bg) { position: relative; z-index: 1; }
.page-icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  display: block;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--eye-lavender), var(--eye-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
  line-height: 1.1;
}
.page-header .subtitle {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-muted);
  font-style: italic;
  max-width: 640px;
  line-height: 1.8;
}
.page-header .page-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.page-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.8rem;
  border-radius: 4px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.20);
  color: var(--eye-violet);
}
.page-tag.tag-gold {
  background: rgba(245, 158, 11, 0.07);
  border-color: rgba(245, 158, 11, 0.22);
  color: var(--eye-gold);
}
.page-tag.tag-lavender {
  background: rgba(167, 139, 250, 0.07);
  border-color: rgba(167, 139, 250, 0.18);
  color: var(--eye-lavender);
}

/* ============================================================
   SECTIONS & CARDS
   ============================================================ */
.section { margin-bottom: 4.5rem; }

.section-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--eye-violet);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-title::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--eye-violet);
  opacity: 0.6;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-subtle), transparent);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.5rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.55), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(124, 58, 237, 0.28);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 8px 40px rgba(124, 58, 237, 0.09);
  transform: translateY(-3px);
}
.card:hover::before { opacity: 1; }

.card-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--eye-lavender);
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}
.card-body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  display: block;
}

/* Card Grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* ── Stat Cards ── */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}
.stat-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--eye-violet), var(--eye-lavender));
  opacity: 0.5;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(124,58,237,0.10); }
.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--eye-lavender), var(--eye-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.2rem;
}
.stat-context {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}

/* ── Nav Cards (home page) ── */
.nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.nav-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.5rem;
  text-decoration: none;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.nav-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.45), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}
.nav-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(167, 139, 250, 0.30);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(124, 58, 237, 0.12);
}
.nav-card:hover::before { opacity: 1; }
.nav-card-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 0.75rem;
}
.nav-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--eye-lavender);
  margin-bottom: 0.5rem;
}
.nav-card-desc {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   PROSE (article content)
   ============================================================ */
.prose {
  max-width: 780px;
}
.prose p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.85;
}
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text-primary); font-weight: 600; }
.prose em { color: var(--text-muted); font-style: italic; }
.prose a { color: var(--eye-violet); text-decoration: none; border-bottom: 1px solid rgba(124,58,237,0.3); transition: all 0.2s; }
.prose a:hover { color: var(--eye-lavender); border-color: var(--eye-lavender); }

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}
.prose h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--eye-lavender);
  margin: 1.75rem 0 0.5rem;
}
.prose h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--eye-violet);
  margin: 1.25rem 0 0.4rem;
}
.prose ul, .prose ol {
  margin: 0.75rem 0 1.25rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
}
.prose li {
  margin-bottom: 0.4rem;
  font-size: 0.97rem;
  line-height: 1.75;
}
.prose li strong { color: var(--text-primary); }

/* ── Blockquotes ── */
.prose blockquote {
  margin: 2rem 0;
  padding: 1.5rem 1.5rem 1.5rem 2.5rem;
  border-left: 3px solid var(--eye-lavender);
  background: rgba(167, 139, 250, 0.04);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-muted);
}
.prose blockquote p { margin-bottom: 0.5rem; }
.prose blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--eye-lavender);
  opacity: 0.8;
  letter-spacing: 0.08em;
}

/* ── Code / Mono ── */
.prose code {
  font-family: var(--font-mono);
  font-size: 0.87em;
  color: var(--eye-lavender);
  background: rgba(167, 139, 250, 0.06);
  border: 1px solid rgba(167, 139, 250, 0.12);
  border-radius: 4px;
  padding: 0.1em 0.45em;
}

/* ── Callout boxes ── */
.callout {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}
.callout::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
}
.callout-violet  { background: rgba(124, 58, 237, 0.04);  border-color: rgba(124, 58, 237, 0.18); }
.callout-violet::before { background: var(--eye-violet); }
.callout-indigo  { background: rgba(99, 102, 241, 0.04);  border-color: rgba(99, 102, 241, 0.18); }
.callout-indigo::before { background: var(--eye-indigo); }
.callout-gold    { background: rgba(245, 158, 11, 0.04);  border-color: rgba(245, 158, 11, 0.18); }
.callout-gold::before { background: var(--eye-gold); }
.callout-lavender{ background: rgba(167, 139, 250, 0.04); border-color: rgba(167, 139, 250, 0.18); }
.callout-lavender::before { background: var(--eye-lavender); }
.callout-warn    { background: rgba(239, 68, 68, 0.04);   border-color: rgba(239, 68, 68, 0.18); }
.callout-warn::before { background: #ef4444; }

.callout-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eye-violet);
  margin-bottom: 0.6rem;
}
.callout-indigo .callout-title  { color: var(--eye-indigo); }
.callout-gold .callout-title    { color: var(--eye-gold); }
.callout-lavender .callout-title{ color: var(--eye-lavender); }
.callout-warn .callout-title    { color: #ef4444; }

.callout p { font-size: 0.93rem; color: var(--text-muted); margin: 0; line-height: 1.7; }
.callout p + p { margin-top: 0.5rem; }
.callout p strong { color: var(--text-primary); }

/* ── Key facts box ── */
.finding-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 2rem;
  margin: 2rem 0;
}
.finding-box h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--eye-lavender);
  margin-bottom: 1rem;
}
.finding-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
}
.finding-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.finding-list li::before {
  content: '▸';
  color: var(--eye-violet);
  flex-shrink: 0;
  margin-top: 0.1rem;
  font-size: 0.8rem;
}

/* ── Timeline ── */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin: 2rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--eye-violet), rgba(124,58,237,0.1));
}
.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding: 1.25rem 1.25rem 1.25rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  transition: border-color 0.3s;
}
.timeline-item:hover { border-color: rgba(124,58,237,0.25); }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 1.4rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--eye-violet);
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.7), 0 0 20px rgba(124, 58, 237, 0.3);
  border: 2px solid var(--bg-deep);
}
.timeline-item::after {
  content: '';
  position: absolute;
  left: -1.35rem;
  top: 1.8rem;
  width: 1rem;
  height: 1px;
  background: var(--border-subtle);
}
.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--eye-gold);
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}
.timeline-culture {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--eye-violet);
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.18);
  border-radius: 3px;
  padding: 0.1rem 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.timeline-event {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.timeline-event strong { color: var(--text-primary); }

/* ── Reference items ── */
.ref-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.ref-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  transition: border-color 0.2s;
}
.ref-item:hover { border-color: rgba(124, 58, 237, 0.25); }
.ref-authors {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}
.ref-title {
  font-family: var(--font-body);
  font-size: 0.93rem;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0.25rem;
  font-style: italic;
}
.ref-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--eye-violet);
  letter-spacing: 0.04em;
}
.ref-link {
  color: var(--eye-violet);
  text-decoration: none;
  border-bottom: 1px solid rgba(124,58,237,0.3);
  transition: color 0.2s;
}
.ref-link:hover { color: var(--eye-lavender); }

/* ── Wave separator ── */
.wave-sep {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--eye-violet), transparent);
  margin: 3rem 0;
  opacity: 0.18;
}

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes float-eye {
  0%, 100% { transform: translateY(0) scale(1); }
  33%       { transform: translateY(-8px) scale(1.04); }
  66%       { transform: translateY(-4px) scale(1.02); }
}
@keyframes pulse-eye {
  0%, 100% { filter: brightness(1) drop-shadow(0 0 8px rgba(124,58,237,0.5)); }
  50%       { filter: brightness(1.3) drop-shadow(0 0 22px rgba(167,139,250,0.7)); }
}
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 8px rgba(245,158,11,0.2); }
  50%       { box-shadow: 0 0 22px rgba(245,158,11,0.4); }
}

/* ── Stagger ── */
.stagger-children > * {
  transition-delay: 0s;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-nav-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .hero { padding: 4rem 0 3rem; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .card-grid, .card-grid-2, .card-grid-3 { grid-template-columns: 1fr; }
  .nav-cards { grid-template-columns: 1fr; }
  .mobile-back-btn { display: block; }
  .hamburger { display: flex; }
  .eye-nav { display: none; }
  .site-logo .logo-sub { display: none; }
  .footer-nav-cols { grid-template-columns: 1fr 1fr; }
  .page-header h1 { font-size: 1.75rem; }
  .prose h2 { font-size: 1.25rem; }
  .timeline-item { margin-left: 0.5rem; }
}

@media (max-width: 480px) {
  .footer-nav-cols { grid-template-columns: 1fr; }
  .stat-number { font-size: 2rem; }
  .card-grid-3 { grid-template-columns: 1fr; }
}


/* ── Section Hero Images ── */
.section-image-banner {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 2.5rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--glow-violet), 0 8px 40px rgba(0,0,0,0.6);
  border: 1px solid var(--border-subtle);
  aspect-ratio: 3/2;
}

.section-image-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease-out;
}

.section-image-banner:hover img {
  transform: scale(1.03);
}

.section-image-banner .image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 2rem;
  background: linear-gradient(transparent, rgba(4,3,15,0.85));
  pointer-events: none;
}

.section-image-banner .image-caption {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--eye-lavender);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Hero background image support */
.hero-with-bg {
  position: relative;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  filter: blur(2px);
  z-index: 0;
}

/* ── Full-page diffusion canvas sits behind grain ── */
#diffusion-canvas {
  z-index: 0 !important;
}

/* Ambient gradient base layer */
@keyframes ambient-drift {
  0%   { background-position: 0% 50%, 100% 50%; }
  25%  { background-position: 50% 0%, 50% 100%; }
  50%  { background-position: 100% 50%, 0% 50%; }
  75%  { background-position: 50% 100%, 50% 0%; }
  100% { background-position: 0% 50%, 100% 50%; }
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 700px at 10% 20%, rgba(124,58,237,0.40), transparent 65%),
    radial-gradient(ellipse 800px 600px at 90% 80%, rgba(99,102,241,0.35), transparent 65%),
    radial-gradient(ellipse 700px 600px at 50% 45%, rgba(76,29,149,0.30), transparent 65%),
    radial-gradient(ellipse 600px 500px at 75% 15%, rgba(245,158,11,0.15), transparent 65%),
    radial-gradient(ellipse 500px 400px at 30% 80%, rgba(8,145,178,0.12), transparent 65%);
  background-size: 200% 200%, 200% 200%, 180% 180%, 160% 160%, 170% 170%;
  animation: ambient-drift 20s ease-in-out infinite;
  opacity: 1;
}

/* ── Evidence level badges ── */
.evidence-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.evidence-strong {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.evidence-mixed {
  background: rgba(245, 158, 11, 0.15);
  color: var(--eye-amber);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.evidence-weak {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.evidence-unproven {
  background: rgba(107, 114, 128, 0.15);
  color: #9ca3af;
  border: 1px solid rgba(107, 114, 128, 0.25);
}

/* ── Inline image with text wrap ── */
.section-image-float {
  float: right;
  width: 340px;
  margin: 0 0 1.5rem 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--glow-indigo), 0 4px 20px rgba(0,0,0,0.5);
  border: 1px solid var(--border-subtle);
}

.section-image-float img {
  width: 100%;
  display: block;
}

@media (max-width: 768px) {
  .section-image-float {
    float: none;
    width: 100%;
    margin: 0 0 1.5rem 0;
  }
  .section-image-banner {
    border-radius: 12px;
  }
}

/* ── Claims grid ── */
.claims-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.claim-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  transition: var(--transition-base);
}

.claim-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--glow-violet);
}

.claim-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--eye-lavender);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
