/* ─── ANAMNESIS — SHARED STYLES ────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

:root {
  --bg:              #0c0a08;
  --surface:         #161210;
  --surface-raised:  #1e1a14;
  --border:          #2c261e;
  --border-light:    #3d3428;
  --accent:          #c9963a;
  --accent-dim:      #7a5c22;
  --accent-glow:     rgba(201,150,58,0.12);
  --text:            #d8c9b0;
  --text-muted:      #8a7a64;
  --text-faint:      #4a4030;
  --serif:           'Cormorant Garamond', 'Georgia', serif;
  --sans:            'Inter', system-ui, sans-serif;
  --max-w:           1100px;
  --section-pad:     clamp(80px, 10vw, 140px);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Grain */
body::before {
  content: '';
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 9999;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent-dim); border-radius: 2px; }

/* Typography */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; }

.label {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin: 1.5rem 0;
}

/* Nav */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.4rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, border-color 0.4s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
  background: rgba(12,10,8,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--border);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--text);
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
footer .footer-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--text-faint);
}
footer .footer-logo span { color: var(--accent-dim); }
footer p {
  font-size: 0.72rem;
  color: var(--text-faint);
  letter-spacing: 0.08em;
}

/* Page hero (inner pages) */
.page-hero {
  padding: calc(var(--section-pad) + 60px) 2.5rem var(--section-pad);
  max-width: var(--max-w);
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.page-hero .label { margin-bottom: 1.5rem; }
.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  margin-bottom: 1rem;
  max-width: 720px;
}
.page-hero .intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.85;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.2rem;
  background: var(--accent);
  color: #0c0a08;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: #d4a848; transform: translateY(-2px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.2rem;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s;
  background: none;
  cursor: pointer;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* Scroll animations */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.delay-1 { transition-delay: 0.12s; }
.fade-up.delay-2 { transition-delay: 0.24s; }
.fade-up.delay-3 { transition-delay: 0.36s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  nav { padding: 1.2rem 1.5rem; }
  .nav-links { display: none; }
  footer { flex-direction: column; gap: 1rem; text-align: center; }
  .page-hero { padding: calc(var(--section-pad) + 40px) 1.5rem var(--section-pad); }
}
