/* ═══════════════════════════════════════════════
   BASE STYLES — Shared across all pages
   Sphaerotheriida — Giant Pill Millipedes
   ═══════════════════════════════════════════════ */

/* ─── VARIABLES ─── */
:root {
  --bg: #0b1410;
  --bg2: #111c16;
  --bg3: #162018;
  --card: #142018;
  --gold: #c9952b;
  --gold2: #e8b84b;
  --sage: #6faa85;
  --sage2: #9ecfb2;
  --cream: #e6dcc8;
  --cream2: #f2ece0;
  --muted: #7a9080;
  --border: rgba(111,170,133,0.18);
  --border2: rgba(201,149,43,0.25);
  --red: #e07070;
  --purple: #a78bfa;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* ─── NOISE OVERLAY ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  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)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--sage); border-radius: 3px; }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2.5rem;
  background: linear-gradient(to bottom, rgba(11,20,16,0.97) 60%, transparent);
  transition: padding 0.3s;
}
nav.scrolled { padding: 0.6rem 2.5rem; background: rgba(11,20,16,0.97); border-bottom: 1px solid var(--border); }
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 500;
  text-transform: uppercase;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold2); }
.nav-cross-link {
  color: var(--gold) !important;
  border-left: 1px solid var(--border);
  padding-left: 2rem;
  opacity: 0.85;
}
.nav-cross-link:hover { opacity: 1; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: 2rem;
}
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 800px; }
.hero-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.2rem;
  animation: fadeUp 1s ease both;
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--cream2);
  margin-bottom: 0.3rem;
  animation: fadeUp 1s 0.15s ease both;
}
.hero h1 em {
  font-style: italic;
  color: var(--sage2);
}
.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
  margin: 1.2rem 0 2.5rem;
  animation: fadeUp 1s 0.3s ease both;
}

.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--muted); font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  animation: fadeUp 1s 1s ease both;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--sage), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { 0%,100%{transform:scaleY(1);opacity:1} 50%{transform:scaleY(0.4);opacity:0.4} }

/* ─── SECTION BASE ─── */
section { padding: 6rem 2rem; position: relative; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.8rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.section-label::before {
  content: ''; width: 2rem; height: 1px; background: var(--gold); display: block;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--cream2);
  margin-bottom: 1.5rem;
}
.section-title em { font-style: italic; color: var(--sage2); }
.section-body {
  font-size: 1rem; line-height: 1.85; color: var(--cream);
  max-width: 680px;
}
.section-body p { margin-bottom: 1rem; }

/* ─── DIVIDER ─── */
.divider {
  width: 100%; height: 1px;
  background: linear-gradient(to right, transparent, var(--border), var(--border), transparent);
  margin: 0;
}

/* ─── FOOTER ─── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
}
footer p { font-size: 0.78rem; letter-spacing: 0.12em; color: var(--muted); line-height: 2; }
footer em { font-style: italic; color: var(--sage); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%,100%{opacity:0.4;} 50%{opacity:0.8;}
}

.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: none; }
