/* ============================================================
   CECELIA MARGULES LEGACY — MAIN STYLESHEET
   Design System: Dark / Gold / Cream / Historical
   ============================================================ */

/* ── CUSTOM PROPERTIES ──────────────────────────────────────── */
:root {
  /* Colors */
  --black:       #090909;
  --dark:        #111111;
  --dark-mid:    #1A1A1A;
  --dark-card:   #1E1D18;
  --dark-border: rgba(200, 165, 94, 0.18);
  --gold:        #C8A55E;
  --gold-light:  #D4B87A;
  --gold-bright: #E8CC96;
  --gold-dark:   #8B6A1E;
  --cream:       #F2EBD9;
  --cream-mid:   #DDD4BC;
  --cream-dark:  #C4B89E;
  --text-light:  #EDE8DC;
  --text-muted:  #9A8C78;
  --text-dim:    #5E574A;

  /* Fonts */
  --font-display: 'Cinzel Decorative', 'Trajan Pro', serif;
  --font-heading: 'Cinzel', 'Trajan Pro', serif;
  --font-body:    'Cormorant Garamond', 'EB Garamond', Georgia, serif;

  /* Spacing */
  --sp-xs:  8px;
  --sp-sm:  16px;
  --sp-md:  32px;
  --sp-lg:  64px;
  --sp-xl:  96px;
  --sp-2xl: 128px;

  /* Border radius */
  --r-sm: 4px;
  --r-md: 8px;

  /* Transition */
  --ease-gold: cubic-bezier(0.23, 1, 0.32, 1);
  --t-fast:   0.2s var(--ease-gold);
  --t-base:   0.45s var(--ease-gold);
  --t-slow:   0.8s var(--ease-gold);
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--dark);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.75;
  overflow-x: hidden;
  cursor: default;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; }

/* Custom cursor — only hide native when JS confirms it's active */
.custom-cursor-active,
.custom-cursor-active a,
.custom-cursor-active button,
.custom-cursor-active .archive-card,
.custom-cursor-active .category-card,
.custom-cursor-active .story-card,
.custom-cursor-active .visual-card,
.custom-cursor-active .tl-card,
.custom-cursor-active .filter-tab,
.custom-cursor-active .sidebar-btn,
.custom-cursor-active .page-btn,
.custom-cursor-active .view-btn {
  cursor: none !important;
}

/* ── SCROLLBAR ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
.section-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-light);
  margin-bottom: 20px;
}
.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}
.body-text {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1.05rem;
  font-weight: 300;
}
.gold-rule {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-bottom: 28px;
}

/* ── LAYOUT ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-md);
}
.section-header {
  text-align: center;
  margin-bottom: var(--sp-lg);
}
.section-footer {
  text-align: center;
  margin-top: var(--sp-lg);
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: var(--r-sm);
  position: relative;
  overflow: hidden;
  transition: var(--t-base);
  cursor: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--black);
}
.btn-primary:hover { background: var(--gold-bright); }
.btn-primary .btn-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,220,130,0.4) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.btn-primary:hover .btn-glow { opacity: 1; }
.btn-ghost {
  border: 1px solid var(--dark-border);
  color: var(--text-muted);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(200,165,94,0.06);
}
.btn-gold {
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn-gold:hover {
  background: var(--gold);
  color: var(--black);
}
.btn-ghost-small {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--dark-border);
  padding: 8px 20px;
  border-radius: var(--r-sm);
  transition: var(--t-fast);
  cursor: none;
}
.btn-ghost-small:hover {
  border-color: var(--gold);
  background: rgba(200,165,94,0.1);
}

/* ── LOADER ─────────────────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 50000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.loader-logo {
  width: 280px;
  height: auto;
  opacity: 0;
  transform: translateY(12px);
  filter: brightness(1.18) contrast(1.08);
}
.loader-bar-wrap {
  width: 200px;
  height: 1px;
  background: rgba(200,165,94,0.15);
  overflow: hidden;
}
.loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: width 1.8s var(--ease-gold);
}
.loader-text {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ── CURSOR ─────────────────────────────────────────────────── */
#cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 40000;
  transform: translate(-50%, -50%);
  transition: transform 0.1s;
}
#cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(200,165,94,0.5);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 39999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, opacity 0.3s, border-color 0.3s;
}
#cursor-ring.hovering {
  width: 54px;
  height: 54px;
  border-color: var(--gold);
  background: rgba(200,165,94,0.05);
}

/* ── FILM GRAIN ──────────────────────────────────────────────── */
.film-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0.035;
  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-size: 200px;
}

/* ── NAVBAR ─────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--t-base), border-bottom var(--t-base), padding var(--t-base);
  padding: 24px 0;
}
#navbar.scrolled {
  background: rgba(9,9,9,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--dark-border);
  padding: 16px 0;
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img {
  height: 72px;
  width: auto;
  transition: opacity var(--t-fast);
  filter: brightness(1.18) contrast(1.08) drop-shadow(0 1px 6px rgba(200,165,94,0.18));
}
.nav-logo:hover img { opacity: 0.8; }

/* Typographic logo — "The Last Survivor" + small "Cecelia Margules Legacy" */
.brand-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity var(--t-fast);
}
.brand-logo .brand-main {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--text-light);
  text-transform: uppercase;
}
.brand-logo .brand-sub {
  font-family: var(--font-heading);
  font-size: 0.42rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 5px;
  opacity: 0.85;
}
.nav-logo:hover .brand-logo { opacity: 0.85; }
.brand-logo--lg .brand-main { font-size: 1.7rem; letter-spacing: 0.22em; }
.brand-logo--lg .brand-sub  { font-size: 0.68rem; margin-top: 10px; }
.brand-logo--md .brand-main { font-size: 1.15rem; }
.brand-logo--md .brand-sub  { font-size: 0.5rem; margin-top: 6px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-link {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--t-fast);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--t-base);
  transform-origin: left;
}
.nav-link:hover { color: var(--gold); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-cta {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  padding: 10px 24px;
  border-radius: var(--r-sm);
  transition: background var(--t-fast);
}
.nav-cta:hover { background: var(--gold-bright); }
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
}
.menu-toggle span {
  display: block;
  height: 1px;
  background: var(--gold);
  transition: transform var(--t-base), opacity var(--t-fast);
}
/* Hide close button on desktop */
.nav-close-item { display: none; }

/* ── HERO ────────────────────────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 30% 60%, #1c1508 0%, var(--black) 60%);
}

/* ── Hero background video (YouTube loop, behind overlay) ──
   The iframe is intentionally over-scaled so YouTube's title overlay
   (top-right) and the centered Play button get cropped off the visible area. */
.hero-video {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.hero-video #hero-video-player,
.hero-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;
  min-width: 100%;
  height: 56.25vw;
  min-height: 100%;
  /* scale(1.35) crops ~17.5% from each edge of the iframe, hiding the
     YouTube watermark at the top-right and the Play button on load. */
  transform: translate(-50%, -50%) scale(1.35);
  transform-origin: center;
  border: 0;
  pointer-events: none;
}
/* Extra hard-cover for top edge (where the video title chip appears) */
.hero-video::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(180deg, rgba(10,8,4,0.95) 0%, rgba(10,8,4,0.6) 60%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}
/* Extra hard-cover for bottom edge (where the YouTube logo / progress lives) */
.hero-video::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(0deg, rgba(10,8,4,0.95) 0%, rgba(10,8,4,0.6) 60%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

#particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* +40% darker total — the video reads as a quiet atmospheric texture */
  background: linear-gradient(
    to bottom,
    rgba(10,8,4,0.96) 0%,
    rgba(10,8,4,0.92) 50%,
    rgba(10,8,4,1) 90%,
    var(--dark) 100%
  );
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 var(--sp-md);
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-ornament-top, .hero-ornament-bottom {
  width: 260px;
  margin: 0 auto 18px;
  opacity: 0.85;
}
.hero-ornament-bottom { margin: 18px auto 0; }
/* Hero eyebrow — sits well above the constellation logo, balanced spacing */
.hero-eyebrow {
  font-family: 'Cormorant Garamond', 'Garamond', serif;
  font-style: italic;
  font-size: clamp(0.85rem, 1.3vw, 1.05rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: clamp(20px, 3vw, 40px);
  opacity: 0.92;
  text-align: center;
  position: relative;
  z-index: 5;
}
/* Delicate gold hairline above the eyebrow for refinement */
.hero-eyebrow::before {
  content: "";
  display: block;
  width: 64px;
  height: 1px;
  margin: 0 auto 18px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.7;
}
/* ── Hero emblem (Star + flame, ignites and flickers) ────── */
.hero-emblem {
  width: clamp(72px, 8vw, 108px);
  height: clamp(72px, 8vw, 108px);
  margin: 0 auto 14px;
  display: block;
  filter: drop-shadow(0 0 28px rgba(244,200,80,0.22));
}
.hero-emblem svg { width: 100%; height: 100%; display: block; }
.hero-emblem .he-wisp   { transform-origin: 40px 40px; animation: heroFlicker 3.6s ease-in-out infinite; }
.hero-emblem .he-glow   { transform-origin: 40px 42px; animation: heroGlow    3.6s ease-in-out infinite; }
.hero-emblem .he-halo   { transform-origin: 40px 40px; animation: heroHalo    4.6s ease-in-out infinite; }
@keyframes heroFlicker {
  0%, 100% { opacity: 0.75; transform: scaleY(1)    scaleX(1); }
  18%      { opacity: 0.95; transform: scaleY(1.10) scaleX(0.94); }
  46%      { opacity: 0.85; transform: scaleY(0.94) scaleX(1.05); }
  72%      { opacity: 1;    transform: scaleY(1.07) scaleX(0.97); }
}
@keyframes heroGlow {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}
@keyframes heroHalo {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.04); }
}

/* ════════ HERO MARK — main tree logo image ════════ */
.hero-mark {
  position: relative;
  text-align: center;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Dark atmospheric vignette behind the tree — barely there, blends with bg */
.hero-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(320px, 52vw, 640px);
  height: clamp(220px, 32vw, 400px);
  background: radial-gradient(ellipse at center,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0.18) 45%,
    rgba(0,0,0,0.06) 70%,
    transparent 90%);
  pointer-events: none;
  z-index: 0;
  filter: blur(28px);
}

/* Stage holds the logo + sparkle layer */
.hero-logo-stage {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.hero-logo-img {
  position: relative;
  z-index: 2;
  width: clamp(260px, 38vw, 460px);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: brightness(1.02) contrast(1.04)
          drop-shadow(0 8px 28px rgba(0,0,0,0.85));
  animation: heroLogoEntry 2.4s cubic-bezier(0.16, 1, 0.3, 1) both,
             heroLogoSway 9s ease-in-out 2.4s infinite;
  transform-origin: 50% 92%;
}

@keyframes heroLogoEntry {
  0%   { opacity: 0; transform: translateY(28px) scale(0.94); filter: brightness(0.35) blur(5px); }
  60%  { opacity: 1; filter: brightness(1.1) blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: brightness(1.02) contrast(1.04) drop-shadow(0 8px 28px rgba(0,0,0,0.85)); }
}

@keyframes heroLogoSway {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-3px) rotate(-0.25deg); }
}

/* ── Sparkles: gentle pinpoints of warm light over the tree ─────────── */
.hero-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  animation: sparklesFadeIn 1s ease-out 2.6s forwards;
}

@keyframes sparklesFadeIn {
  to { opacity: 1; }
}

.spark {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 244, 210, 1) 0%,
    rgba(255, 220, 140, 0.85) 35%,
    rgba(255, 200, 100, 0) 100%);
  box-shadow:
    0 0 4px rgba(255, 240, 200, 0.9),
    0 0 10px rgba(255, 220, 140, 0.55),
    0 0 18px rgba(255, 200, 100, 0.25);
  opacity: 0;
  animation: sparkTwinkle 5s ease-in-out infinite;
  transform-origin: center;
  will-change: opacity, transform;
}

@keyframes sparkTwinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  45%      { opacity: 0.9; transform: scale(1.4); }
  55%      { opacity: 1; transform: scale(1.6); }
}

/* Scatter sparkles across the canopy and branches (percentage-positioned over the logo box).
   Each gets its own delay so they twinkle out of phase. */
.spark.s1  { top: 18%; left: 32%; animation-delay: 0s;    }
.spark.s2  { top: 12%; left: 58%; animation-delay: 0.7s; width: 4px; height: 4px; }
.spark.s3  { top: 28%; left: 22%; animation-delay: 1.4s; }
.spark.s4  { top: 22%; left: 71%; animation-delay: 2.1s; }
.spark.s5  { top: 38%; left: 14%; animation-delay: 2.8s; width: 2px; height: 2px; }
.spark.s6  { top: 8%;  left: 48%; animation-delay: 3.5s; width: 4px; height: 4px; }
.spark.s7  { top: 32%; left: 84%; animation-delay: 0.4s; }
.spark.s8  { top: 50%; left: 50%; animation-delay: 1.8s; width: 4px; height: 4px; }
.spark.s9  { top: 44%; left: 28%; animation-delay: 2.5s; }
.spark.s10 { top: 24%; left: 45%; animation-delay: 3.2s; }
.spark.s11 { top: 16%; left: 78%; animation-delay: 4.1s; width: 2px; height: 2px; }
.spark.s12 { top: 36%; left: 62%; animation-delay: 4.6s; }

@media (max-width: 720px) {
  .hero-logo-img { width: clamp(220px, 75vw, 360px); }
  .hero-mark::after { width: clamp(260px, 85vw, 420px); height: clamp(180px, 50vw, 280px); }
  .spark { width: 2px; height: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo-img { animation: heroLogoEntry 1s ease-out both; }
  .spark { animation: none; opacity: 0.55; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
/* Constellation lines — staggered shimmer of light */
.hc-l {
  animation: hcLineShimmer 5.5s ease-in-out infinite;
}
.hc-l1 { animation-delay: 0s;    }
.hc-l2 { animation-delay: 0.9s;  }
.hc-l3 { animation-delay: 1.8s;  }
.hc-l4 { animation-delay: 2.7s;  }
.hc-l5 { animation-delay: 3.6s;  }
.hc-l6 { animation-delay: 4.5s;  }
@keyframes hcLineShimmer {
  0%, 100% { opacity: 0.40; filter: drop-shadow(0 0 0 rgba(255,225,140,0)); }
  50%      { opacity: 0.95; filter: drop-shadow(0 0 4px rgba(255,225,140,0.65)); }
}

/* Constellation dots — staggered twinkle (offset from the line wave) */
.hc-d {
  transform-origin: center;
  transform-box: fill-box;
  animation: hcTwinkle 4.8s ease-in-out infinite;
}
.hc-d1 { animation-delay: 0.3s; }
.hc-d2 { animation-delay: 1.1s; }
.hc-d3 { animation-delay: 1.9s; }
.hc-d4 { animation-delay: 2.7s; }
.hc-d5 { animation-delay: 3.5s; }
.hc-d6 { animation-delay: 4.3s; }
@keyframes hcTwinkle {
  0%, 100% { opacity: 0.75; filter: drop-shadow(0 0 0 rgba(255,225,140,0)); }
  50%      { opacity: 1;    filter: drop-shadow(0 0 12px rgba(255,225,140,0.95)); }
}
@media (max-width: 720px) {
  .hero-wordmark { font-size: clamp(1.5rem, 7vw, 2.4rem); letter-spacing: 0.06em; white-space: normal; }
  .hero-constellation { width: clamp(260px, 80vw, 380px); }
  .hero-mark::before { width: 88%; height: 38%; }
}
@media (prefers-reduced-motion: reduce) {
  .hc-d, .hc-l { animation: none; }
}

/* ════════ HERO LOCKUP — Study 2 · Stacked Magazine Nameplate ════════
   THE / LAST / SURVIVOR stacked vertically with hairline rules above
   and below. Only the centre word "Last" carries any motion. */
.hero-lockup {
  text-align: center;
  margin: 0 auto 14px;
  max-width: 720px;
}
.hero-lockup .hero-rule {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  width: clamp(220px, 56%, 480px);
  margin: 6px auto;
  opacity: 0.85;
}
.lockup-the {
  font-family: 'Bodoni Moda', 'Bodoni 72', 'Didot', serif;
  font-size: clamp(0.78rem, 1.5vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.65em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
  line-height: 1;
  margin: 14px 0 8px;
}
.lockup-last {
  font-family: 'Bodoni Moda', 'Bodoni 72', 'Didot', serif;
  font-size: clamp(4.2rem, 11vw, 9.5rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--text-light);
  line-height: 1;
  text-transform: uppercase;
  margin: 0;
  text-shadow: 0 0 60px rgba(200,165,94,0.25);
  /* The only animation on the hero — a slow warm gold breath */
  animation: lastBreathe 6s ease-in-out infinite;
  will-change: filter, text-shadow;
}
@keyframes lastBreathe {
  0%, 100% {
    filter: drop-shadow(0 0 0 rgba(255,225,140,0));
    text-shadow: 0 0 60px rgba(200,165,94,0.25);
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(255,225,140,0.45));
    text-shadow: 0 0 90px rgba(244,200,80,0.45);
  }
}
.lockup-survivor {
  font-family: 'Bodoni Moda', 'Bodoni 72', 'Didot', serif;
  font-size: clamp(1.4rem, 3.2vw, 2.4rem);
  font-weight: 500;
  letter-spacing: 0.6em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1;
  margin: 8px 0 14px;
}
@media (max-width: 720px) {
  .lockup-the      { font-size: clamp(0.7rem, 2.5vw, 0.9rem); letter-spacing: 0.55em; }
  .lockup-last     { font-size: clamp(3rem, 13vw, 5rem); }
  .lockup-survivor { font-size: clamp(1rem, 4vw, 1.6rem); letter-spacing: 0.5em; }
  .hero-lockup .hero-rule { width: 70%; }
}
@media (prefers-reduced-motion: reduce) {
  .lockup-last { animation: none; }
}
.hero-brand-subtitle {
  font-family: 'Cormorant Garamond', 'Garamond', 'Times New Roman', serif;
  font-style: italic;
  font-size: clamp(0.92rem, 1.3vw, 1.1rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: none;
  color: var(--gold);
  margin-top: 12px;
  margin-bottom: 4px;
  opacity: 0.92;
  text-align: center;
}
.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 16px 0;
  width: 100%;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.divider-line {
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark));
}
.hero-divider .divider-line:last-child {
  background: linear-gradient(90deg, var(--gold-dark), transparent);
}
.divider-diamond {
  color: var(--gold);
  font-size: 0.7rem;
}
.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(0.7rem, 1.3vw, 0.82rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 30px;
  text-align: center;
  max-width: 620px;
  line-height: 1.7;
  opacity: 0.9;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
}
.scroll-label {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.scroll-line-wrap {
  width: 1px;
  height: 50px;
  background: rgba(200,165,94,0.15);
  overflow: hidden;
}
.scroll-line-inner {
  width: 100%;
  height: 100%;
  background: var(--gold);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* ── QUOTE BAND ──────────────────────────────────────────────── */
#quote-band {
  background: var(--dark-mid);
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
  padding: var(--sp-xl) 0;
}
.main-quote {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.quote-mark {
  display: block;
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--gold);
  line-height: 0.6;
  margin-bottom: 20px;
  opacity: 0.5;
}
.main-quote p {
  font-family: var(--font-body);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 20px;
}
.main-quote cite {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
}

/* ── ABOUT ───────────────────────────────────────────────────── */
#about {
  padding: var(--sp-2xl) 0;
  background: var(--dark);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: center;
}
.about-text { padding-right: var(--sp-md); }
.about-text .section-label { margin-bottom: 12px; }
.about-text .section-title { margin-bottom: 20px; }
.about-text .btn { margin-top: 12px; }
.about-visual { position: relative; }
.visual-frame {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.visual-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--r-md);
  padding: 24px 20px;
  text-align: center;
  transition: var(--t-base);
  position: relative;
  overflow: hidden;
}
.visual-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(200,165,94,0.06), transparent 70%);
  opacity: 0;
  transition: opacity var(--t-base);
}
.visual-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.visual-card:hover::before { opacity: 1; }
.visual-card-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  color: var(--gold);
  opacity: 0.8;
}
.visual-card span {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.visual-card strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}
.visual-card.v1 { animation: floatCard 5s ease-in-out infinite; }
.visual-card.v2 { animation: floatCard 5s ease-in-out infinite 0.8s; }
.visual-card.v3 { animation: floatCard 5s ease-in-out infinite 1.6s; }
.visual-card.v4 { animation: floatCard 5s ease-in-out infinite 2.4s; }
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ── ARCHIVE PREVIEW ─────────────────────────────────────────── */
#archive-preview {
  padding: var(--sp-2xl) 0;
  background: var(--dark-mid);
  position: relative;
}
.section-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(200,165,94,0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(200,165,94,0.03) 0%, transparent 50%);
  pointer-events: none;
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.archive-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: none;
  transition: var(--t-base);
  position: relative;
}
.archive-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(200,165,94,0.1);
}
.archive-card-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--dark);
  position: relative;
  overflow: hidden;
  display: block;
}
/* Direct img inside thumb */
.archive-card-thumb > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.archive-card:hover .archive-card-thumb > img {
  transform: scale(1.04);
}
/* Ensure any photo-sim-real or photo-sim also fills */
.archive-card-thumb .photo-sim-real,
.archive-card-thumb .photo-sim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.archive-card-thumb-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
}
.archive-card-thumb-placeholder svg {
  width: 36px;
  height: 36px;
  color: var(--gold);
  opacity: 0.4;
}
.archive-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9,9,9,0.9) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--t-base);
}
.archive-card:hover .archive-card-thumb::after { opacity: 1; }
.archive-card-type {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  padding: 4px 10px;
  border-radius: 2px;
  z-index: 1;
}
.archive-card-body {
  padding: 20px;
}
.archive-card-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 8px;
  line-height: 1.4;
}
.archive-card-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}
.archive-card-meta span {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.archive-card-meta span::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  opacity: 0.7;
}
.archive-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.archive-tag {
  font-family: var(--font-heading);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(200,165,94,0.08);
  border: 1px solid rgba(200,165,94,0.15);
  padding: 3px 10px;
  border-radius: 2px;
}

/* ── CATEGORIES ─────────────────────────────────────────────── */
#categories {
  padding: var(--sp-2xl) 0;
  background: var(--dark);
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.category-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--r-md);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: var(--t-base);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.category-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform var(--t-base);
}
.category-card:hover {
  border-color: rgba(200,165,94,0.35);
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.category-card:hover::before { transform: scaleX(1); }
.cat-icon {
  width: 56px;
  height: 56px;
  color: var(--gold);
  opacity: 0.7;
  transition: opacity var(--t-fast);
}
.category-card:hover .cat-icon { opacity: 1; }
.category-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-light);
}
.category-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
.cat-count {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
}
.cat-arrow {
  position: absolute;
  top: 28px;
  right: 28px;
  color: var(--gold);
  opacity: 0;
  transition: opacity var(--t-fast), transform var(--t-fast);
  font-size: 1.1rem;
}
.category-card:hover .cat-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* ── TIMELINE ────────────────────────────────────────────────── */
#timeline {
  padding: var(--sp-2xl) 0;
  background: var(--dark-mid);
  overflow: hidden;
}
#timeline .section-header { padding: 0 var(--sp-md); }
.timeline-track-wrap {
  overflow-x: auto;
  padding: 0 var(--sp-md) var(--sp-md);
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dark) transparent;
}
.timeline-track {
  display: flex;
  gap: 0;
  align-items: flex-start;
  position: relative;
  min-width: max-content;
  padding: 60px var(--sp-xl) 40px;
}
.timeline-line {
  position: absolute;
  top: 78px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark) 10%, var(--gold-dark) 90%, transparent);
  transform-origin: left;
}
.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 220px;
  flex-shrink: 0;
}
.tl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--dark-mid);
  position: relative;
  z-index: 2;
  transition: var(--t-base);
  flex-shrink: 0;
}
.tl-dot--gold {
  background: var(--gold);
  box-shadow: 0 0 20px rgba(200,165,94,0.6);
}
.tl-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--r-md);
  padding: 20px;
  margin-top: 20px;
  text-align: center;
  width: 180px;
  transition: var(--t-base);
}
.tl-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}
.tl-card--gold { border-color: rgba(200,165,94,0.4); }
.tl-year {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 8px;
}
.tl-card h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 8px;
}
.tl-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── STORIES ─────────────────────────────────────────────────── */
#stories {
  padding: var(--sp-2xl) 0;
  background: var(--dark);
}
.stories-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.story-card {
  height: 380px;
  perspective: 1200px;
  cursor: none;
}
.story-card.featured { height: 420px; }
.story-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease-gold);
}
.story-card:hover .story-card-inner { transform: rotateY(180deg); }
.story-front, .story-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--dark-border);
  background: var(--dark-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 28px;
  text-align: center;
  gap: 16px;
}
.story-back {
  transform: rotateY(180deg);
  background: var(--dark-mid);
  border-color: rgba(200,165,94,0.3);
  justify-content: space-between;
}
.story-back p {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
  display: flex;
  align-items: center;
}
.story-photo-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: rgba(200,165,94,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.story-card.featured .story-photo-placeholder {
  width: 110px;
  height: 110px;
}
.photo-frame-ornament {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(200,165,94,0.3);
}
.photo-initials {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}
.story-portrait-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
}
.story-portrait-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-meta { text-align: center; }
.story-year {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.story-meta h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 6px;
}
.story-place {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
}

/* ── CTA BAND ────────────────────────────────────────────────── */
#cta-band {
  padding: var(--sp-xl) 0;
  background: linear-gradient(135deg, #0f0c03 0%, #1a1508 50%, #0f0c03 100%);
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
}
.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.cta-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--text-light);
  margin-bottom: 16px;
}
.cta-content p {
  color: var(--text-muted);
  margin-bottom: 36px;
  font-size: 1.05rem;
}
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
#footer {
  background: var(--black);
  border-top: 1px solid var(--dark-border);
}
.footer-top { padding: var(--sp-xl) 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--sp-lg);
}
.footer-brand { padding-right: var(--sp-md); }
.footer-logo { height: 110px; width: auto; max-width: 260px; margin-bottom: 20px; opacity: 0.95; filter: brightness(1.15) contrast(1.06); }
.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.7;
}
.footer-nav h4 {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a {
  font-size: 0.88rem;
  color: var(--text-dim);
  transition: color var(--t-fast);
}
.footer-nav a:hover { color: var(--gold); }
.footer-contact h4 {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-contact p { font-size: 0.88rem; color: var(--text-dim); margin-bottom: 10px; }
.footer-email {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: 24px;
  transition: color var(--t-fast);
}
.footer-email:hover { color: var(--gold-bright); }
.footer-social {
  display: flex;
  gap: 14px;
}
.social-link {
  width: 36px;
  height: 36px;
  border: 1px solid var(--dark-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: var(--t-fast);
}
.social-link svg { width: 16px; height: 16px; }
.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(200,165,94,0.08);
}
.footer-bottom {
  border-top: 1px solid var(--dark-border);
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.footer-credit {
  color: var(--gold);
  transition: color var(--t-fast);
}
.footer-credit:hover { color: var(--gold-bright); }

/* ── MODAL ───────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t-base);
}
.modal.open {
  opacity: 1;
  pointer-events: all;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
}
.modal-panel {
  position: relative;
  z-index: 1;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--r-md);
  max-width: 800px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  transform: scale(0.96) translateY(12px);
  transition: transform var(--t-base);
}
.modal.open .modal-panel { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--dark-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--t-fast);
  z-index: 2;
}
.modal-close svg { width: 16px; height: 16px; }
.modal-close:hover { border-color: var(--gold); color: var(--gold); }
.modal-content { padding: 48px; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-md); }
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-text { padding-right: 0; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .stories-grid { grid-template-columns: 1fr; }
  .story-card, .story-card.featured { height: 320px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    /* iOS Safari fallback */
    min-height: -webkit-fill-available;
    background: rgba(9, 9, 9, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    gap: 28px;
    /* Higher than navbar (1000) AND menu-toggle */
    z-index: 9999;
    overflow-y: auto;
    padding: 80px 24px 40px;
  }
  .nav-link {
    font-size: 1.1rem;
    letter-spacing: 0.3em;
    color: var(--text-muted);
  }
  .nav-cta {
    font-size: 0.9rem;
    padding: 14px 36px;
    margin-top: 8px;
  }
  /* Toggle button always on top */
  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 10000;
  }
  /* Close button inside the open menu */
  .nav-close-item { display: list-item; list-style: none; }
  .nav-close-btn {
    margin-top: 16px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(200,165,94,0.3);
    background: transparent;
    color: var(--text-muted);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
  }
  .nav-close-btn:hover { border-color: var(--gold); color: var(--gold); }
  .archive-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  :root { --sp-md: 20px; }
  .hero-actions { flex-direction: column; }
}

/* ════════════════════════════════════════════════════════════
   RISING SMOKE — slow memorial atmosphere for the quote band.
   Replaces the previous GSAP entrance with a continuous ambient effect.
   ════════════════════════════════════════════════════════════ */
#quote-band {
  position: relative;
  overflow: hidden;
}
#quote-band .container { position: relative; z-index: 2; }
.smoke-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.smoke-puff {
  position: absolute;
  bottom: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255,240,210,0.85) 0%,
    rgba(255,225,180,0.45) 30%,
    rgba(220,180,110,0.18) 60%,
    transparent 88%);
  filter: blur(22px);
  opacity: 0;
  animation: smokeRise linear infinite;
  will-change: transform, opacity;
  mix-blend-mode: screen;
}
.smoke-puff:nth-child(1) { left:  6%; width: 280px; height: 280px; animation-duration: 36s; animation-delay:  0s; }
.smoke-puff:nth-child(2) { left: 24%; width: 380px; height: 380px; animation-duration: 44s; animation-delay:  6s; }
.smoke-puff:nth-child(3) { left: 44%; width: 340px; height: 340px; animation-duration: 40s; animation-delay: 14s; }
.smoke-puff:nth-child(4) { left: 64%; width: 420px; height: 420px; animation-duration: 48s; animation-delay: 22s; }
.smoke-puff:nth-child(5) { left: 84%; width: 260px; height: 260px; animation-duration: 38s; animation-delay: 28s; }
.smoke-puff:nth-child(6) { left: 16%; width: 400px; height: 400px; animation-duration: 46s; animation-delay: 34s; }
.smoke-puff:nth-child(7) { left: 56%; width: 320px; height: 320px; animation-duration: 42s; animation-delay: 38s; }

@keyframes smokeRise {
  0%   { transform: translate(0, 0)        scale(0.55); opacity: 0;    }
  12%  {                                                opacity: 1;    }
  40%  { transform: translate(22px, -32vh) scale(1);    opacity: 0.85; }
  70%  { transform: translate(-26px, -60vh) scale(1.3); opacity: 0.5;  }
  92%  {                                                opacity: 0.1;  }
  100% { transform: translate(12px, -92vh) scale(1.6);  opacity: 0;    }
}

@media (prefers-reduced-motion: reduce) {
  .smoke-puff { animation: none; opacity: 0.2; }
}

/* ════════════════════════════════════════════════════════════
   MODERN SITE-WIDE POLISH
   Smooth transitions, luxurious hover states, page entrance.
   ════════════════════════════════════════════════════════════ */

/* Page entrance fade — feels intentional rather than abrupt */
body { animation: pageEnter 0.9s cubic-bezier(.22,.61,.36,1) both; }
@keyframes pageEnter {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Buttons — smoother, more lifted on hover, refined gold glow */
.btn {
  transition: transform .42s cubic-bezier(.22,.61,.36,1),
              box-shadow .42s cubic-bezier(.22,.61,.36,1),
              background  .35s ease,
              color       .35s ease,
              border-color .35s ease,
              letter-spacing .35s ease !important;
}
.btn:hover {
  transform: translateY(-2px);
  letter-spacing: 0.32em;
}
.btn-primary:hover {
  box-shadow: 0 14px 40px rgba(200,165,94,0.28),
              0 0 0 1px rgba(244,225,164,0.4) inset;
}
.btn-ghost:hover {
  box-shadow: 0 12px 32px rgba(200,165,94,0.12);
}

/* Archive / story / category cards — gentle lift on hover */
.archive-card, .category-card, .story-card, .press-row, .video-card, .timeline-item {
  transition: transform .42s cubic-bezier(.22,.61,.36,1),
              box-shadow .42s cubic-bezier(.22,.61,.36,1),
              border-color .42s ease,
              background  .42s ease;
}
.archive-card:hover, .category-card:hover, .story-card:hover, .video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(0,0,0,0.5),
              0 0 0 1px rgba(200,165,94,0.18);
}
.press-row:hover {
  transform: translateX(4px);
  background: rgba(200,165,94,0.04);
}

/* Smooth in-page links + nav */
a { transition: color .25s ease, opacity .25s ease; }
.nav-link {
  transition: color .35s ease, letter-spacing .35s ease, opacity .35s ease;
}
.nav-link:hover { letter-spacing: 0.35em; }

/* Refined nav-logo hover (image-based logo retains opacity transition) */
.nav-logo, .footer-logo { transition: opacity .45s ease, transform .45s ease; }
.nav-logo:hover { transform: translateY(-1px); }

/* Section title shimmer on reveal — slightly more elegant motion */
.section-label { transition: opacity .8s ease, letter-spacing .8s ease, color .6s ease; }

/* Smooth focus-visible accents for accessibility */
*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Refined gold highlight selection */
::selection {
  background: rgba(200,165,94,0.30);
  color: #fffbe8;
}

/* Reduce motion for users who request it (accessibility) */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
