/* ============================================================
   VESPER FILMS — Shared Stylesheet
   ============================================================ */

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

:root {
  --cream: #E8DFC8;
  --cream-dim: #b8ac93;
  --cream-ghost: rgba(232, 223, 200, 0.12);
  --dark: #0a0906;
  --char: #1a1712;
  --ember: #8c5c2a;
  --ember-warm: #c07a3a;
  --border: rgba(232, 223, 200, 0.08);
  --border-hover: rgba(232, 223, 200, 0.18);
}

html, body {
  height: 100%;
  background: var(--dark);
  color: var(--cream);
  font-family: 'EB Garamond', Georgia, serif;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* Vignette */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(0,0,0,0.72) 100%);
  pointer-events: none;
  z-index: 10;
}

/* Grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9;
  opacity: 0.8;
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 40% at 30% 60%, rgba(60, 35, 10, 0.35) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 70% 30%, rgba(30, 20, 5, 0.4) 0%, transparent 70%),
    var(--dark);
  animation: breathe 9s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ── NAV ─────────────────────────────────────── */
nav {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.2rem 4rem;
  border-bottom: 0.5px solid var(--border);
  animation: fadeDown 1.4s ease forwards;
  opacity: 0;
}

.nav-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-dim);
  text-decoration: none;
  transition: color 0.4s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 0.5px;
  background: var(--ember-warm);
  transition: width 0.4s ease;
}

.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--cream); }
.nav-links a.active::after { width: 100%; }

/* ── FOOTER ──────────────────────────────────── */
footer {
  position: relative;
  z-index: 20;
  text-align: center;
  padding: 2.5rem 4rem;
  border-top: 0.5px solid var(--border);
  margin-top: auto;
}

footer p {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(184, 172, 147, 0.35);
}

/* ── PAGE SHELL ──────────────────────────────── */
.page-main {
  position: relative;
  z-index: 20;
  flex: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 6rem 2rem 5rem;
  width: 100%;
  animation: fadeUp 1.6s ease 0.3s forwards;
  opacity: 0;
}

/* ── TYPOGRAPHY ──────────────────────────────── */
.page-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ember-warm);
  margin-bottom: 1.6rem;
}

.page-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 0.92;
  color: var(--cream);
  margin-bottom: 3rem;
}

.rule {
  width: 60px;
  height: 0.5px;
  background: var(--ember);
  margin-bottom: 3rem;
  opacity: 0.6;
}

.page-body {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--cream-dim);
  max-width: 580px;
}

.page-body p + p {
  margin-top: 1.4rem;
}

/* ── ORNAMENT ────────────────────────────────── */
.ornament {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 3rem 0;
}

.ornament-line {
  width: 50px;
  height: 0.5px;
  background: var(--ember);
  opacity: 0.4;
}

.ornament-diamond {
  width: 6px;
  height: 6px;
  background: var(--ember-warm);
  transform: rotate(45deg);
  animation: flicker 4s ease-in-out infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  22%  { opacity: 0.5; }
  24%  { opacity: 1; }
  60%  { opacity: 0.8; }
  62%  { opacity: 1; }
  78%  { opacity: 0.3; }
  80%  { opacity: 1; }
}

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

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 640px) {
  nav { padding: 1.6rem 1.5rem; }
  .nav-links { gap: 1.4rem; }
  footer { padding: 2rem 1.5rem; }
  .page-main { padding: 4rem 1.5rem 4rem; }
}
