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

/* ── Tokens ── */
:root {
  --ink:   #0e0e0d;
  --paper: #f5f2ec;
  --gold:  #b89a5e;
  --muted: #8a8072;
  --rule:  #d6cfc3;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Jost', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Noise texture */
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.5;
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 60px;
  background: transparent;
  transition: background 0.4s, border-color 0.4s;
}

nav.scrolled {
  background: rgba(245,242,236,0.97);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(4px);
}

/* On interior pages (non-hero), always show background */
nav.solid {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}

.nav-links { display: flex; gap: 40px; list-style: none; }

.nav-links a {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }
.nav-links a.active { border-bottom: 1px solid var(--gold); padding-bottom: 2px; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  text-decoration: none;
  padding: 16px 32px;
  transition: background 0.3s;
}
.btn-primary:hover { background: var(--gold); }

.btn-secondary {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}
.btn-secondary:hover { color: var(--ink); border-color: var(--gold); }

/* ── Section rule ── */
.rule-section {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 60px;
  margin: 80px 0;
}
.rule-section .label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.rule-line { flex: 1; height: 1px; background: var(--rule); }

/* ── Page hero (interior pages) ── */
.page-hero {
  padding: 160px 60px 80px;
  border-bottom: 1px solid var(--rule);
}

.page-hero-eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.1s forwards;
}

.page-hero-title {
  font-family: var(--serif);
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--ink);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.25s forwards;
}
.page-hero-title em { font-style: italic; color: var(--gold); }

.page-hero-desc {
  margin-top: 32px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--muted);
  max-width: 560px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}

/* ── Footer ── */
footer {
  background: var(--ink);
  border-top: 1px solid rgba(245,242,236,0.06);
  padding: 28px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 300;
  color: rgba(245,242,236,0.28);
  letter-spacing: 0.04em;
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.footer-links a {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.25);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold); }

.footer-copy {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: rgba(245,242,236,0.18);
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

/* ── Responsive ── */
@media (max-width: 960px) {
  nav { padding: 22px 28px; }
  .rule-section { padding: 0 28px; margin: 60px 0; }
  .page-hero { padding: 120px 28px 60px; }
  footer { padding: 24px 28px; flex-direction: column; gap: 12px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}
