/* =========================================================
   CRÓNICAS DEL MIEDO — Homepage
   Color tokens locked to brief palette + gold accent toggle
========================================================= */

:root {
  --bg: #000000;
  --bg-section: #0d0d0d;
  --card: #1a1a1a;
  --border: #2d2d2d;
  --text-2: #888888;
  --text: #e0e0e0;
  --title: #ffffff;
  --gold: #c8a84b;
  --gold-soft: rgba(200, 168, 75, 0.5);
  --type-scale: 1;
  --fog-opacity: 0.55;
  --particle-count: 60;
}

[data-gold="off"] {
  --gold: #e0e0e0;
  --gold-soft: rgba(224, 224, 224, 0.4);
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'EB Garamond', 'Iowan Old Style', Georgia, serif;
  font-size: calc(17px * var(--type-scale));
  line-height: 1.6;
  cursor: none;
  overflow-x: hidden;
}

/* Global abyss — beneath everything, a slow infinite depth gradient */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 50% at 50% 110%, rgba(40, 30, 20, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% -10%, rgba(20, 20, 30, 0.4) 0%, transparent 70%),
    radial-gradient(circle at 50% 50%, #050505 0%, #000 80%);
}

body { min-height: 100vh; }

::selection { background: var(--gold); color: #000; }

h1, h2, h3, h4, .display, .nav-brand {
  font-family: 'Cinzel Decorative', 'Cinzel', 'Trajan Pro', serif;
  color: var(--title);
  font-weight: 700;
  letter-spacing: 0.04em;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* ---------- Custom cursor (candle flame) ---------- */
.cursor-candle {
  position: fixed;
  width: 14px;
  height: 22px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -75%);
  mix-blend-mode: screen;
  transition: opacity 0.2s;
}
.cursor-candle .flame {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 70%,
    rgba(255, 220, 140, 1) 0%,
    rgba(255, 170, 80, 0.85) 25%,
    rgba(220, 90, 30, 0.4) 55%,
    rgba(120, 30, 10, 0) 75%);
  border-radius: 50% 50% 45% 45% / 70% 70% 30% 30%;
  filter: blur(0.4px);
  animation: flicker 0.18s infinite alternate;
}
.cursor-candle .glow {
  position: absolute;
  inset: -28px;
  background: radial-gradient(circle, rgba(255, 180, 100, 0.18) 0%, transparent 60%);
  animation: flicker-glow 0.22s infinite alternate;
}
@keyframes flicker {
  0%   { transform: scale(1, 1) translate(0, 0); opacity: 0.95; }
  50%  { transform: scale(0.96, 1.05) translate(0.4px, -0.6px); opacity: 1; }
  100% { transform: scale(1.02, 0.97) translate(-0.3px, 0.4px); opacity: 0.9; }
}
@keyframes flicker-glow {
  0%   { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0.95; transform: scale(1.08); }
}

/* ---------- Atmosphere — fog + particles + vignette ---------- */
.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  perspective: 1200px;
  transform-style: preserve-3d;
}
.atmosphere::after {
  /* heavy vignette */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%,
    transparent 0%,
    transparent 40%,
    rgba(0, 0, 0, 0.6) 90%,
    rgba(0, 0, 0, 0.95) 100%);
}

.fog-layer {
  position: absolute;
  width: 200%;
  height: 60vh;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='600'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='0.012' numOctaves='3' seed='3'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23f)'/></svg>");
  background-size: 1200px 600px;
  opacity: var(--fog-opacity);
  mix-blend-mode: screen;
  filter: blur(8px) brightness(0.6);
}
/* Three Z-depth fog layers — near (sharp, fast), mid, far (soft, slow) */
.fog-layer.f1 {
  bottom: -10vh;
  animation: drift 50s linear infinite;
  opacity: calc(var(--fog-opacity) * 1);
  filter: blur(4px) brightness(0.7);
}
.fog-layer.f2 {
  bottom: -25vh;
  animation: drift 95s linear infinite reverse;
  opacity: calc(var(--fog-opacity) * 0.55);
  height: 80vh;
  filter: blur(12px) brightness(0.55);
}
.fog-layer.f3 {
  top: -20vh;
  animation: drift 140s linear infinite;
  opacity: calc(var(--fog-opacity) * 0.28);
  height: 90vh;
  filter: blur(28px) brightness(0.4);
}

@keyframes drift {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0%); }
}

.particles {
  position: absolute;
  inset: 0;
}
.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(220, 200, 160, 0.6);
  border-radius: 50%;
  animation: float linear infinite;
  filter: blur(0.5px);
}
@keyframes float {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-110vh) translateX(40px); opacity: 0; }
}

/* Subtle screen flicker */
.flicker-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: rgba(255, 255, 255, 0);
  animation: screen-flicker 7s infinite;
}
@keyframes screen-flicker {
  0%, 92%, 96%, 100% { background: rgba(255,255,255,0); }
  93%   { background: rgba(255,255,255,0.015); }
  94%   { background: rgba(0,0,0,0.04); }
  95%   { background: rgba(255,255,255,0.012); }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 48px;
  background: linear-gradient(180deg, rgba(8, 8, 10, 0.78) 0%, rgba(0, 0, 0, 0.55) 100%);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border-bottom: 1px solid var(--border);
  /* Embossed inner glow — light from above, shadow below */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.6),
    0 1px 0 rgba(200, 168, 75, 0.04),
    0 20px 40px -20px rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav::before {
  /* Faint specular sweep along the top edge */
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 50%, transparent 100%);
  pointer-events: none;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--title);
  flex-shrink: 0;
}
.nav-brand .seal {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  position: relative;
  display: grid;
  place-items: center;
  font-family: 'Cinzel Decorative', serif;
  font-size: 11px;
  color: var(--text-2);
  letter-spacing: 0;
}
.nav-brand .seal::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 1px dashed rgba(200, 168, 75, 0.25);
}
.nav-logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  font-family: 'EB Garamond', serif;
  font-size: 15px;
  letter-spacing: 0.08em;
}
.nav-links a {
  color: var(--text-2);
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--title); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--title);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-links a.gold {
  color: var(--gold);
  text-shadow: 0 0 12px var(--gold-soft);
  animation: gold-pulse 3.5s ease-in-out infinite;
}
@keyframes gold-pulse {
  0%, 100% { text-shadow: 0 0 8px var(--gold-soft); }
  50%      { text-shadow: 0 0 20px var(--gold-soft), 0 0 4px var(--gold); }
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  font-family: 'Cinzel Decorative', serif;
  font-size: 11px;
  letter-spacing: 0.15em;
}
.lang-toggle button {
  background: transparent;
  border: 0;
  color: var(--text-2);
  padding: 6px 14px;
  cursor: none;
  transition: all 0.3s;
  font-family: inherit;
  letter-spacing: inherit;
}
.lang-toggle button.active {
  background: var(--title);
  color: #000;
}

.hamburger {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: none;
  transition: border-color 0.3s;
}
.hamburger:hover { border-color: var(--title); }
.hamburger span {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--text);
  position: relative;
}
.hamburger span::before,
.hamburger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 16px;
  height: 1px;
  background: var(--text);
}
.hamburger span::before { top: -5px; }
.hamburger span::after { top: 5px; }

/* ============================================
   DRAWER — materializes from fog & darkness
   ============================================ */

/* Backdrop is a breathing fog, not a flat scrim */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease-out;
  background:
    radial-gradient(ellipse 60% 80% at 100% 50%, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.7) 100%),
    radial-gradient(ellipse 40% 60% at 50% 50%, rgba(20, 20, 25, 0.4) 0%, transparent 70%);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}
.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: backdrop-breath 5s ease-in-out infinite;
}
.drawer-backdrop::before {
  /* drifting fog pattern in the backdrop */
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='800'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='0.008' numOctaves='3' seed='7'/><feColorMatrix values='0 0 0 0 0.6  0 0 0 0 0.55  0 0 0 0 0.5  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23f)'/></svg>");
  background-size: 1200px 800px;
  opacity: 0;
  mix-blend-mode: screen;
  filter: blur(20px);
  transition: opacity 0.8s;
  animation: drift-bg 80s linear infinite;
}
.drawer-backdrop.open::before { opacity: 0.18; }
@keyframes backdrop-breath {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.15); }
}
@keyframes drift-bg {
  0%   { background-position: 0% 0%; }
  100% { background-position: 100% 50%; }
}

/* Drawer panel */
.drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(420px, 90vw);
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(40, 30, 18, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 100% 40% at 50% 100%, rgba(40, 30, 18, 0.2) 0%, transparent 60%),
    linear-gradient(180deg, #08070a 0%, #050505 50%, #08070a 100%);
  border-left: 1px solid var(--border);
  z-index: 201;
  padding: 80px 48px 48px;
  overflow-y: auto;
  /* Materialization */
  transform: translateX(40px);
  opacity: 0;
  filter: blur(20px);
  transition:
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.7s ease-out,
    filter 0.85s ease-out,
    box-shadow 1.2s ease-out;
  box-shadow:
    inset 0 0 0 1px rgba(200, 168, 75, 0),
    0 0 60px -10px rgba(0, 0, 0, 0.95);
  pointer-events: none;
}
.drawer.open {
  transform: translateX(0);
  opacity: 1;
  filter: blur(0px);
  pointer-events: auto;
  /* Border glow ramps up then dims */
  animation: drawer-glow 1.4s ease-out forwards;
}
@keyframes drawer-glow {
  0%   { box-shadow: inset 0 0 0 1px rgba(200, 168, 75, 0),    0 0 60px -10px rgba(200,168,75,0); }
  35%  { box-shadow: inset 0 0 0 1px rgba(200, 168, 75, 0.5),  0 0 80px -10px rgba(200,168,75,0.35); }
  100% { box-shadow: inset 0 0 0 1px rgba(200, 168, 75, 0.12), 0 0 40px -10px rgba(200,168,75,0.05); }
}

/* Mist wisps that drift inward from the edges as drawer materializes */
.drawer-mist {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.drawer-mist span {
  position: absolute;
  width: 200%;
  height: 60%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='800' height='400'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='0.015' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 0.85  0 0 0 0 0.8  0 0 0 0 0.7  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23f)'/></svg>");
  background-size: 800px 400px;
  opacity: 0;
  mix-blend-mode: screen;
  filter: blur(14px);
}
.drawer-mist span:nth-child(1) { top: -10%; left: -50%; }
.drawer-mist span:nth-child(2) { bottom: -10%; left: -50%; }
.drawer.open .drawer-mist span {
  animation: mist-wisp 1.6s ease-out forwards;
}
.drawer.open .drawer-mist span:nth-child(2) { animation-delay: 0.15s; transform-origin: bottom; }
@keyframes mist-wisp {
  0%   { opacity: 0; transform: translateX(-30%) scale(1.2); }
  35%  { opacity: 0.65; }
  100% { opacity: 0; transform: translateX(20%) scale(1); }
}

.drawer > * { position: relative; z-index: 1; }

.drawer-close {
  position: absolute;
  top: 28px;
  right: 28px;
  background: transparent;
  border: 1px solid var(--border);
  width: 38px; height: 38px;
  color: var(--text);
  cursor: none;
  font-family: 'Cinzel Decorative', serif;
  z-index: 2;
  transition: border-color 0.4s, color 0.4s, transform 0.4s;
}
.drawer-close:hover { border-color: var(--gold); color: var(--gold); transform: rotate(90deg); }

.drawer h4 {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--text-2);
  margin-bottom: 18px;
  font-weight: 400;
  /* Heading also fades in from shadow */
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  transition-delay: 0.3s;
}
.drawer.open h4 { opacity: 1; transform: translateY(0); }

.drawer ul { list-style: none; }

.drawer li {
  border-bottom: 1px solid var(--border);
  /* Each item starts in shadow, lifts up + fades in with stagger */
  opacity: 0;
  transform: translateY(14px);
  filter: blur(6px);
  transition:
    opacity 0.6s ease-out,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.7s ease-out;
}
.drawer.open li {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
/* Stagger — 80ms each, after panel begins to solidify */
.drawer.open li:nth-child(1) { transition-delay: 0.40s; }
.drawer.open li:nth-child(2) { transition-delay: 0.48s; }
.drawer.open li:nth-child(3) { transition-delay: 0.56s; }
.drawer.open li:nth-child(4) { transition-delay: 0.64s; }
.drawer.open li:nth-child(5) { transition-delay: 0.72s; }
.drawer.open li:nth-child(6) { transition-delay: 0.80s; }
.drawer.open li:nth-child(7) { transition-delay: 0.88s; }
.drawer.open li:nth-child(8) { transition-delay: 0.96s; }

.drawer li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-family: 'Cinzel Decorative', serif;
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--title);
  transition: padding-left 0.3s, color 0.3s;
  position: relative;
}
.drawer li a:hover { padding-left: 12px; color: var(--gold); }
.drawer li a span.idx { color: var(--text-2); font-size: 11px; }

/* Active item — candle-flicker shimmer */
.drawer li.active a {
  color: var(--gold);
  padding-left: 12px;
}
.drawer li.active a::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold), 0 0 16px var(--gold-soft);
  animation: candle-flicker 0.18s infinite alternate;
}
.drawer li.active a::after {
  /* Sound-wave / shimmer sweep across the active row */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(200, 168, 75, 0.18) 30%,
    rgba(255, 220, 140, 0.32) 50%,
    rgba(200, 168, 75, 0.18) 70%,
    transparent 100%);
  background-size: 200% 100%;
  background-position: -100% 0;
  animation: shimmer-sweep 3.2s ease-in-out infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}
@keyframes candle-flicker {
  0%   { opacity: 0.85; transform: translateY(-50%) scale(1);   }
  100% { opacity: 1;    transform: translateY(-50%) scale(1.25); box-shadow: 0 0 14px var(--gold), 0 0 24px var(--gold-soft); }
}
@keyframes shimmer-sweep {
  0%   { background-position: -100% 0; }
  60%  { background-position: 100% 0; }
  100% { background-position: 100% 0; }
}

/* Closing state — items dissolve to mist FIRST, then panel fades */
.drawer.closing {
  /* Panel still visible but begins to dissolve back to fog */
  transform: translateX(0);
  opacity: 0.4;
  filter: blur(14px);
  transition:
    transform 0.6s ease-in 0.18s,
    opacity 0.6s ease-in 0.18s,
    filter 0.6s ease-in 0.18s,
    box-shadow 0.5s ease-in;
  box-shadow:
    inset 0 0 0 1px rgba(200, 168, 75, 0),
    0 0 40px -10px rgba(0, 0, 0, 0.95);
}
.drawer.closing li {
  opacity: 0;
  transform: translateY(-8px);
  filter: blur(8px);
  transition:
    opacity 0.25s ease-in,
    transform 0.3s ease-in,
    filter 0.3s ease-in;
}
.drawer.closing li:nth-child(1) { transition-delay: 0.16s; }
.drawer.closing li:nth-child(2) { transition-delay: 0.14s; }
.drawer.closing li:nth-child(3) { transition-delay: 0.12s; }
.drawer.closing li:nth-child(4) { transition-delay: 0.10s; }
.drawer.closing li:nth-child(5) { transition-delay: 0.08s; }
.drawer.closing li:nth-child(6) { transition-delay: 0.06s; }
.drawer.closing li:nth-child(7) { transition-delay: 0.04s; }
.drawer.closing li:nth-child(8) { transition-delay: 0.02s; }
.drawer.closing h4 { opacity: 0; transition: opacity 0.2s ease-in; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 45vh;
  display: grid;
  place-items: center;
  padding: 50px 24px 30px;
  overflow: hidden;
  z-index: 3;
  perspective: 1600px;
  transform-style: preserve-3d;
}

/* Procedural forest silhouette built with CSS gradients */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform-style: preserve-3d;
}

/* Cathedral arch silhouette receding into distance — applied to all variants for depth */
.hero-arch {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateZ(var(--arch-z, -200px));
  width: 70%;
  max-width: 900px;
  height: 75%;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}
.hero-arch .arch {
  position: absolute;
  inset: 0;
  background:
    /* arch opening — vignette-cut window of slightly lighter sky */
    radial-gradient(ellipse 50% 75% at 50% 100%, rgba(40, 35, 30, 0.0) 0%, rgba(0, 0, 0, 0.0) 55%, #000 56%);
  filter: blur(0.5px);
}
.hero-arch .arch.far {
  inset: 12% 18% 0 18%;
  opacity: 0.85;
  filter: blur(1.5px);
}
.hero-arch .arch.mid {
  inset: 22% 28% 0 28%;
  opacity: 0.95;
  filter: blur(0.8px);
}
.hero-arch .arch.near {
  inset: 32% 38% 0 38%;
  opacity: 1;
}
.hero-arch .arch::after {
  /* faint rim of moonlit stone on arch edge */
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 75% at 50% 100%, transparent 53%, rgba(180, 170, 150, 0.06) 56%, transparent 60%);
}
.hero-arch .floor {
  position: absolute;
  bottom: 0; left: -20%; right: -20%;
  height: 35%;
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(40, 35, 25, 0.25) 0%, transparent 60%),
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.6) 50%, #000 100%);
}

/* Variant: forest */
.hero-bg.forest {
  background:
    /* moon glow */
    radial-gradient(ellipse 60% 40% at 50% 18%, rgba(180, 170, 200, 0.12) 0%, transparent 60%),
    radial-gradient(circle 80px at 50% 20%, rgba(220, 220, 240, 0.4) 0%, rgba(220,220,240,0.1) 40%, transparent 70%),
    /* sky gradient */
    linear-gradient(180deg, #050608 0%, #0a0a0d 40%, #0d0a08 70%, #050505 100%);
}
.hero-bg.forest::before {
  /* far tree silhouettes */
  content: '';
  position: absolute;
  bottom: 18%;
  left: 0; right: 0;
  height: 35%;
  background:
    radial-gradient(ellipse 60px 180px at 8% 100%, #0a0a0a 60%, transparent 65%),
    radial-gradient(ellipse 80px 220px at 18% 100%, #0a0a0a 60%, transparent 65%),
    radial-gradient(ellipse 50px 160px at 27% 100%, #080808 60%, transparent 65%),
    radial-gradient(ellipse 90px 240px at 38% 100%, #0a0a0a 60%, transparent 65%),
    radial-gradient(ellipse 70px 200px at 50% 100%, #060606 60%, transparent 65%),
    radial-gradient(ellipse 80px 220px at 62% 100%, #0a0a0a 60%, transparent 65%),
    radial-gradient(ellipse 55px 170px at 72% 100%, #080808 60%, transparent 65%),
    radial-gradient(ellipse 90px 240px at 84% 100%, #0a0a0a 60%, transparent 65%),
    radial-gradient(ellipse 60px 180px at 95% 100%, #060606 60%, transparent 65%);
  filter: blur(2px);
}
.hero-bg.forest::after {
  /* near tree silhouettes — sharper, taller */
  content: '';
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 55%;
  background:
    /* ground */
    linear-gradient(180deg, transparent 0%, transparent 20%, #020202 70%, #000 100%),
    /* trees */
    radial-gradient(ellipse 100px 320px at 5% 100%, #000 65%, transparent 68%),
    radial-gradient(ellipse 130px 380px at 15% 100%, #020202 65%, transparent 68%),
    radial-gradient(ellipse 80px 280px at 23% 100%, #000 65%, transparent 68%),
    radial-gradient(ellipse 140px 400px at 33% 100%, #020202 65%, transparent 68%),
    radial-gradient(ellipse 90px 300px at 42% 100%, #000 65%, transparent 68%),
    radial-gradient(ellipse 110px 340px at 55% 100%, #020202 65%, transparent 68%),
    radial-gradient(ellipse 80px 270px at 65% 100%, #000 65%, transparent 68%),
    radial-gradient(ellipse 140px 400px at 76% 100%, #020202 65%, transparent 68%),
    radial-gradient(ellipse 100px 320px at 88% 100%, #000 65%, transparent 68%),
    radial-gradient(ellipse 80px 270px at 98% 100%, #020202 65%, transparent 68%);
}

/* Variant: cathedral arch */
.hero-bg.cathedral {
  background:
    radial-gradient(ellipse 40% 60% at 50% 50%, rgba(180, 150, 100, 0.08) 0%, transparent 70%),
    radial-gradient(circle 200px at 50% 30%, rgba(255, 220, 160, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, #060606 0%, #0a0908 50%, #040404 100%);
}
.hero-bg.cathedral::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* arch shape via radial gradient */
    radial-gradient(ellipse 35% 55% at 50% 95%, transparent 55%, #000 60%);
}
.hero-bg.cathedral::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #000 0%, #000 28%, transparent 29%, transparent 71%, #000 72%, #000 100%);
}

/* Variant: void */
.hero-bg.void {
  background:
    radial-gradient(ellipse 80% 50% at 50% 60%, rgba(80, 30, 30, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 50% 30%, rgba(100, 80, 60, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 50% 50%, #0a0808 0%, #000 70%);
}

.hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  max-width: 1400px;
  width: 100%;
}

.hero-seal {
  width: 110px;
  height: 110px;
  margin: 0 auto 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 50% 50%, rgba(40,30,20,0.4) 0%, transparent 70%),
    var(--card);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero-seal-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}
.hero-seal::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px dashed rgba(200, 168, 75, 0.2);
}
.hero-seal::after {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid var(--border);
  opacity: 0.5;
}

.hero-title {
  font-size: clamp(22px, 3.5vw, 48px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--title);
  margin: 0;
  text-shadow: 0 0 60px rgba(0,0,0,0.8), 0 0 120px rgba(0,0,0,0.6);
  position: relative;
}
.hero-title .ampersand {
  display: block;
  font-style: italic;
  font-family: 'EB Garamond', serif;
  font-weight: 400;
  font-size: 0.32em;
  color: var(--text-2);
  letter-spacing: 0.5em;
  margin: 0.4em 0;
  text-transform: uppercase;
}

.hero-sub {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: clamp(16px, 1.4vw, 22px);
  color: var(--text);
  margin: 32px auto 48px;
  max-width: 640px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  font-family: 'Cinzel Decorative', serif;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--text-2);
  text-transform: uppercase;
  margin-bottom: 48px;
}
.hero-meta .dot {
  width: 4px; height: 4px; background: var(--text-2); border-radius: 50%;
}

.hero-ctas {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  font-family: 'Cinzel Decorative', serif;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 18px 36px;
  border: 1px solid var(--title);
  background: transparent;
  color: var(--title);
  cursor: none;
  position: relative;
  transition: all 0.4s;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--title);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: -1;
}
.btn:hover { color: #000; }
.btn:hover::before { transform: scaleY(1); }
.btn .arrow { display: inline-block; transition: transform 0.4s; }
.btn:hover .arrow { transform: translateX(6px); }

.btn.gold {
  border-color: var(--gold);
  color: var(--gold);
}
.btn.gold::before { background: var(--gold); }
.btn.gold:hover { color: #000; }

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Cinzel Decorative', serif;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--text-2);
  text-transform: uppercase;
  text-align: center;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: scroll-fade 4s ease-in-out infinite;
}
.scroll-indicator .line {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, transparent 0%, var(--text-2) 50%, transparent 100%);
  animation: scroll-pulse 2.5s ease-in-out infinite;
}
@keyframes scroll-fade {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
@keyframes scroll-pulse {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Section primitives ---------- */
.section {
  position: relative;
  z-index: 3;
  padding: 140px 48px;
  /* Layered gradients — abyssal vertical depth */
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(30, 25, 20, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(20, 15, 10, 0.2) 0%, transparent 50%),
    linear-gradient(180deg, #000 0%, #050505 50%, #000 100%);
}
.section.tinted {
  background:
    /* rim of light entering at top — as if a candle is just out of frame */
    linear-gradient(180deg, rgba(200, 168, 75, 0.025) 0%, transparent 8%),
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(40, 30, 20, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(20, 15, 10, 0.25) 0%, transparent 60%),
    linear-gradient(180deg, #0a0a0a 0%, #0f0e0d 50%, #080807 100%);
  border-top: 1px solid #161412;
  border-bottom: 1px solid #050404;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    inset 0 -1px 0 rgba(0, 0, 0, 0.8);
}

.section-head {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 80px;
}
.section-head .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 30%, var(--border) 70%, transparent);
}
.section-head .line.short { max-width: 120px; }
.section-head .ornament {
  width: 8px; height: 8px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 56px);
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
}
.section-head .roman {
  font-family: 'Cinzel Decorative', serif;
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--text-2);
  flex-shrink: 0;
}

/* ---------- Stories grid (asymmetric, 4 cards) ---------- */
.stories-2col { grid-template-columns: 1.3fr 1fr !important; }

.stories {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 32px;
  max-width: 1500px;
  margin: 0 auto;
  perspective: 2000px;
  perspective-origin: 50% 30%;
}
.story {
  position: relative;
  background:
    linear-gradient(180deg, #1c1a18 0%, #141210 100%);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: none;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.4s, box-shadow 0.6s;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  /* Embossed: light catches top, shadow on bottom — plus rim from below */
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 220, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.7),
    inset 0 -40px 60px -40px rgba(200, 168, 75, 0.04),
    0 1px 0 rgba(0, 0, 0, 0.6),
    0 8px 20px -10px rgba(0, 0, 0, 0.6);
  will-change: transform;
}
.story::after {
  /* Rim light — faint candle glow rising from bottom edge */
  content: '';
  position: absolute;
  left: 10%; right: 10%; bottom: -2px;
  height: 60%;
  background: radial-gradient(ellipse 100% 100% at 50% 100%,
    rgba(200, 168, 75, 0.1) 0%,
    rgba(200, 168, 75, 0.04) 25%,
    transparent 60%);
  pointer-events: none;
  opacity: 0.5;
  transition: opacity 0.5s;
  z-index: 3;
  mix-blend-mode: screen;
}
.story:hover::after { opacity: 1; }
.story:hover {
  transform:
    translateY(-14px)
    rotateX(var(--tilt-x, 3deg))
    rotateY(var(--tilt-y, -3deg))
    scale(1.01);
  border-color: rgba(200, 168, 75, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 220, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.8),
    inset 0 -60px 80px -50px rgba(200, 168, 75, 0.12),
    0 40px 80px -20px rgba(0,0,0,0.95),
    0 0 0 1px rgba(200, 168, 75, 0.25),
    0 0 100px -20px rgba(200, 168, 75, 0.25),
    0 -10px 40px -20px rgba(200, 168, 75, 0.08);
}
.story:hover .story-img { transform: scale(1.06); filter: brightness(0.85) contrast(1.05); }
.story:hover .story-readmore { color: var(--title); }
.story:hover .story-readmore .arrow { transform: translateX(8px); }

.story.feat { grid-column: span 1; grid-row: span 2; }
.story.tall { grid-column: span 1; grid-row: span 2; }

.story-img-wrap {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 280px;
  background: #0a0a0a;
}
.story.feat .story-img-wrap { min-height: 520px; }
.story.tall .story-img-wrap { min-height: 380px; }

.story-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.6) contrast(1.1);
  transition: transform 0.7s, filter 0.5s;
}
.story-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.85) 100%);
}

.story-meta {
  position: relative;
  z-index: 2;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.story-cat {
  font-family: 'Cinzel Decorative', serif;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--text-2);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}
.story-cat::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--text-2);
}
.story-title {
  font-size: clamp(20px, 2.4vw, 32px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--title);
}
.story.feat .story-title { font-size: clamp(28px, 3.4vw, 48px); }
.story-excerpt {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.55;
}
.story-readmore {
  font-family: 'Cinzel Decorative', serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--text-2);
  text-transform: uppercase;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 0.4s;
}
.story-readmore .arrow { transition: transform 0.4s; }

.stories-cta {
  text-align: center;
  margin-top: 64px;
}

/* Fallback art using CSS gradients - placeholder */
.art-1 { background: linear-gradient(135deg, #1a1410 0%, #0a0808 60%), repeating-linear-gradient(45deg, #050505, #050505 12px, #0a0907 12px, #0a0907 24px); }
.art-2 { background: radial-gradient(ellipse at 30% 70%, #1a0d0a 0%, #050505 70%); }
.art-3 { background: linear-gradient(180deg, #0a0a12 0%, #050508 100%), radial-gradient(circle at 70% 30%, #16161e 0%, transparent 60%); }
.art-4 { background: radial-gradient(circle at 50% 80%, #150d08 0%, #050504 70%); }
.art-5 { background: linear-gradient(225deg, #0d0a08 0%, #050505 50%, #0a0808 100%); }
.art-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.18);
  text-transform: uppercase;
}

/* ---------- Interactive experiences ---------- */
.experiences {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1500px;
  margin: 0 auto;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #100f0d 0%, #080706 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 220, 0.05),
    inset 0 -1px 0 rgba(0, 0, 0, 0.7),
    0 30px 60px -30px rgba(0, 0, 0, 0.9);
  position: relative;
}
.experiences::before {
  content: '';
  position: absolute;
  left: 5%; right: 5%; bottom: -20px;
  height: 40px;
  background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(200, 168, 75, 0.15) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(8px);
}
.exp {
  padding: 56px 44px;
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  cursor: none;
  transition: background 0.5s, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  /* Embossed top edge with light catch */
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 220, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}
.exp::after {
  /* Rim light from below */
  content: '';
  position: absolute;
  inset: auto 10% 0 10%;
  height: 50%;
  background: radial-gradient(ellipse 80% 100% at 50% 100%,
    rgba(200, 168, 75, 0.06) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s;
  z-index: 0;
}
.exp:hover::after { opacity: 1; }
.exp > * { position: relative; z-index: 1; }
.exp:last-child { border-right: 0; }
.exp::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(200,168,75,0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.6s;
}
.exp:hover { background: rgba(200, 168, 75, 0.03); }
.exp:hover::before { opacity: 1; }

.exp-num {
  font-family: 'Cinzel Decorative', serif;
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--text-2);
}
.exp-icon {
  width: 64px; height: 64px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  margin-bottom: 8px;
  transition: transform 0.6s, border-color 0.4s;
}
.exp:hover .exp-icon {
  transform: rotate(180deg);
  box-shadow: 0 0 40px var(--gold-soft);
}
.exp-icon svg { width: 28px; height: 28px; stroke: var(--gold); }

.exp h3 {
  font-size: 24px;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--title);
}
.exp h3 small {
  display: block;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: var(--text-2);
  letter-spacing: 0.02em;
  margin-top: 6px;
}
.exp p {
  font-family: 'EB Garamond', serif;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.55;
  flex: 1;
}
.exp-link {
  font-family: 'Cinzel Decorative', serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  transition: gap 0.4s;
}
.exp:hover .exp-link { gap: 20px; }

/* ---------- Videos ---------- */
.videos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1500px;
  margin: 0 auto;
  perspective: 1800px;
  perspective-origin: 50% 30%;
}
.video {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: none;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s, border-color 0.4s;
  transform-style: preserve-3d;
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 220, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.7),
    0 8px 24px -10px rgba(0, 0, 0, 0.7);
}
.video:hover {
  transform: translateY(-8px) scale(1.02) rotateX(2deg);
  border-color: var(--gold);
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 220, 0.12),
    0 30px 60px -15px rgba(0, 0, 0, 0.9),
    0 0 80px -10px var(--gold-soft),
    0 0 0 1px rgba(200, 168, 75, 0.3);
}
.video-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55);
  transition: filter 0.5s, transform 0.6s;
}
.video:hover .video-img { filter: brightness(0.75); transform: scale(1.08); }

.video-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
  background: rgba(0,0,0,0.3);
  transition: all 0.5s;
}
.video:hover .video-play {
  border-color: var(--gold);
  background: rgba(200, 168, 75, 0.15);
  transform: translate(-50%, -50%) scale(1.1);
}
.video-play::after {
  content: '';
  width: 0; height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}
.video-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 22px 24px;
  z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.95));
}
.video-info .dur {
  font-family: 'Cinzel Decorative', serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--text-2);
  margin-bottom: 8px;
}
.video-info .title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 16px;
  color: var(--title);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

/* ---------- Keziah quote block ---------- */
.keziah {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  padding: 80px 24px;
}
.keziah::before, .keziah::after {
  content: '';
  position: absolute;
  left: 50%; transform: translateX(-50%);
  width: 60px; height: 1px;
  background: var(--gold);
  opacity: 0.5;
}
.keziah::before { top: 0; }
.keziah::after { bottom: 0; }

.keziah-eyebrow {
  font-family: 'Cinzel Decorative', serif;
  font-size: 11px;
  letter-spacing: 0.5em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.keziah-eyebrow .pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

.keziah-quote {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1.4;
  color: var(--text);
  letter-spacing: 0.01em;
}
.keziah-quote .glyph {
  font-family: 'Cinzel Decorative', serif;
  font-style: normal;
  color: var(--gold);
  font-size: 1.4em;
  line-height: 0;
  vertical-align: -0.2em;
  margin: 0 0.1em;
}
.keziah-attr {
  font-family: 'Cinzel Decorative', serif;
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--text-2);
  text-transform: uppercase;
  margin-top: 32px;
}

/* ---------- Newsletter ---------- */
.newsletter {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.newsletter h2 {
  font-size: clamp(28px, 3.6vw, 48px);
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.newsletter p {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  color: var(--text-2);
  font-size: 17px;
  margin-bottom: 40px;
}
.newsletter-form {
  display: flex;
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color 0.4s;
}
.newsletter-form:focus-within { border-color: var(--gold); }
.newsletter-form input {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 22px 24px;
  font-family: 'EB Garamond', serif;
  color: var(--title);
  font-size: 16px;
  outline: none;
  cursor: none;
}
.newsletter-form input::placeholder { color: var(--text-2); font-style: italic; }
.newsletter-form button {
  background: var(--title);
  color: #000;
  border: 0;
  padding: 0 36px;
  font-family: 'Cinzel Decorative', serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  cursor: none;
  transition: background 0.3s;
}
.newsletter-form button:hover { background: var(--gold); }

.newsletter-fine {
  margin-top: 18px;
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: 0.05em;
}

/* ---------- Footer ---------- */
footer {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  padding: 80px 48px 40px;
  position: relative;
  z-index: 3;
}
.footer-ornament {
  text-align: center;
  margin-bottom: 60px;
  font-family: 'Cinzel Decorative', serif;
  color: var(--gold);
  letter-spacing: 0.5em;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.footer-ornament::before, .footer-ornament::after {
  content: '';
  flex: 1;
  max-width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.footer-grid {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 80px;
  align-items: start;
}
.footer-brand .seal-lg {
  width: 88px; height: 88px;
  border-radius: 50%;
  border: 1px solid var(--border);
  margin-bottom: 24px;
  display: grid; place-items: center;
  font-family: 'Cinzel Decorative', serif;
  color: var(--text-2);
  font-size: 10px;
  position: relative;
}
.footer-brand .seal-lg::before {
  content: '';
  position: absolute; inset: 5px;
  border-radius: 50%;
  border: 1px dashed rgba(200,168,75,0.25);
}
.footer-brand h4 {
  font-size: 14px;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
}
.footer-brand p {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  color: var(--text-2);
  font-size: 15px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-col h5 {
  font-family: 'Cinzel Decorative', serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--text-2);
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 400;
}
.footer-col ul { list-style: none; }
.footer-col li {
  font-family: 'EB Garamond', serif;
  margin-bottom: 12px;
}
.footer-col a {
  color: var(--text);
  font-size: 15px;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--gold); }

.footer-meta {
  text-align: right;
  font-family: 'EB Garamond', serif;
  color: var(--text-2);
  font-size: 13px;
  font-style: italic;
}
.footer-meta .lat {
  font-family: 'Cinzel Decorative', serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--text-2);
  font-style: normal;
  display: block;
  margin-bottom: 8px;
}

.footer-bottom {
  max-width: 1500px;
  margin: 60px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Cinzel Decorative', serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--text-2);
  text-transform: uppercase;
}

/* ---------- Story modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
  display: grid;
  place-items: center;
  padding: 40px;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  max-width: 900px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--border);
  position: relative;
  transform: translateY(40px);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal-backdrop.open .modal { transform: translateY(0); }
.modal-img {
  height: 320px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.modal-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, var(--card) 100%);
}
.modal-body { padding: 40px 56px 56px; }
.modal-cat {
  font-family: 'Cinzel Decorative', serif;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.modal-title {
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: 0.03em;
  line-height: 1.05;
  margin-bottom: 24px;
}
.modal-text {
  font-family: 'EB Garamond', serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 16px;
}
.modal-text:first-letter {
  font-family: 'Cinzel Decorative', serif;
  float: left;
  font-size: 4em;
  line-height: 0.8;
  margin: 6px 12px 0 0;
  color: var(--gold);
}
.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 40px; height: 40px;
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--border);
  color: var(--title);
  cursor: none;
  z-index: 2;
  font-family: 'Cinzel Decorative', serif;
}
.modal-close:hover { border-color: var(--title); }

/* ---------- Floating Keziah button ---------- */
.keziah-fab {
  position: fixed;
  bottom: 32px; right: 32px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px 14px 14px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Cinzel Decorative', serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  cursor: none;
  text-transform: uppercase;
  transition: all 0.4s;
}
.keziah-fab:hover {
  background: var(--gold);
  color: #000;
}
.keziah-fab .orb {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff5d8, var(--gold) 50%, #5a4520 100%);
  box-shadow: 0 0 20px var(--gold-soft);
  animation: orb-pulse 2.5s ease-in-out infinite;
}
@keyframes orb-pulse {
  0%, 100% { box-shadow: 0 0 20px var(--gold-soft); }
  50%      { box-shadow: 0 0 36px var(--gold), 0 0 0 4px rgba(200,168,75,0.15); }
}

/* Responsive */
@media (max-width: 980px) {
  .nav { padding: 14px 20px; gap: 16px; }
  .nav-links { display: none; }
  .section { padding: 80px 20px; }
  .section-head { gap: 16px; margin-bottom: 48px; }
  .stories { grid-template-columns: 1fr; }
  .story.feat, .story.tall { grid-column: span 1; grid-row: span 1; }
  .experiences { grid-template-columns: 1fr; }
  .exp { border-right: 0; border-bottom: 1px solid var(--border); }
  .exp:last-child { border-bottom: 0; }
  .videos { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-meta { text-align: left; }
  body { cursor: auto; }
  .cursor-candle { display: none; }
}

/* ─────────────────────────────────────────────
   GLOBAL ADDITIONS
─────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

/* Video cards as <a> need block display */
a.video { display: block; }

/* ─────────────────────────────────────────────
   FORM SECTIONS (Tu Historia / Contacto)
─────────────────────────────────────────────── */
.cdm-form-card {
  max-width: 780px;
  margin: 0 auto;
  border: 1px solid var(--border);
  padding: 56px;
  background: linear-gradient(180deg, #111 0%, #0a0a0a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,245,220,0.04),
    inset 0 -1px 0 rgba(0,0,0,0.7);
}
.cdm-form-tag {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 40px;
}
.cdm-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}
.cdm-form-group label {
  font-family: 'Cinzel Decorative', serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--text-2);
  text-transform: uppercase;
}
.cdm-form-group input,
.cdm-form-group textarea {
  background: #0a0a0a;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 18px;
  font-family: 'EB Garamond', serif;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s;
  resize: vertical;
  cursor: text;
}
.cdm-form-group input:focus,
.cdm-form-group textarea:focus { border-color: var(--gold); }
.cdm-form-group input::placeholder,
.cdm-form-group textarea::placeholder { color: var(--text-2); font-style: italic; }

.btn-submit { width: 100%; justify-content: center; }
.btn-submit:disabled { opacity: 0.5; pointer-events: none; }

.form-msg {
  margin-top: 14px;
  font-family: 'EB Garamond', serif;
  font-size: 15px;
  min-height: 22px;
  text-align: center;
}
.form-msg.ok  { color: #a3c9a8; }
.form-msg.err { color: #c96a6a; }

/* ─────────────────────────────────────────────
   CURSO CTA BLOCK
─────────────────────────────────────────────── */
.curso-cta-block {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid #3a1010;
  padding: 72px 48px;
  background: linear-gradient(180deg, #0d0505 0%, #0a0606 100%);
  position: relative;
}
.curso-cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(139,0,0,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.curso-cta-block > * { position: relative; }
.curso-eyebrow {
  font-family: 'EB Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.4em;
  color: #8b0000;
  text-transform: uppercase;
  border-bottom: 1px solid #3a1010;
  padding-bottom: 8px;
  display: inline-block;
  margin-bottom: 28px;
}
.curso-cta-block h2 {
  font-size: clamp(22px, 3.2vw, 42px);
  line-height: 1.15;
  margin-bottom: 20px;
}
.curso-cta-block > p {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  color: var(--text-2);
  font-size: 17px;
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.curso-cta-block .btn {
  border-color: #8b1a1a;
  color: var(--text);
}
.curso-cta-block .btn::before { background: #8b0000; }
.curso-cta-block .btn:hover { color: #fff; }
.curso-fine {
  margin-top: 20px;
  font-family: 'EB Garamond', serif;
  font-size: 13px;
  color: #4a3030;
  font-style: italic;
}

/* ─────────────────────────────────────────────
   RESPONSIVE ADDITIONS
─────────────────────────────────────────────── */
@media (max-width: 980px) {
  .cdm-form-card { padding: 32px 20px; }
  .curso-cta-block { padding: 48px 20px; }
  .footer-cols { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────
   MOBILE — 640px y menos
─────────────────────────────────────────────── */
@media (max-width: 640px) {

  /* NAV */
  .nav { padding: 12px 16px; }
  .nav-brand .brand-name { font-size: 11px; letter-spacing: 0.18em; }

  /* HERO */
  .hero { min-height: 100svh; padding: 0 16px; }
  .hero-content { padding: 20px 0 40px; }
  .hero-seal { width: 80px; height: 80px; margin-bottom: 20px; }
  .hero-seal-logo { width: 58px; height: 58px; }
  .hero-title { font-size: clamp(52px, 18vw, 90px); line-height: 0.95; }
  .hero-sub { font-size: 16px; margin: 20px auto 28px; padding: 0 8px; }
  .hero-meta { gap: 14px; font-size: 9px; flex-wrap: wrap; margin-bottom: 28px; }
  .hero-ctas { flex-direction: column; align-items: center; gap: 12px; padding: 0 24px; }
  .hero-ctas .btn { width: 100%; justify-content: center; padding: 16px 24px; font-size: 11px; }

  /* SECTION HEAD */
  .section-head { flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
  .section-head h2 { white-space: normal; font-size: clamp(22px, 7vw, 36px); text-align: center; width: 100%; order: -1; }
  .section-head .roman { display: none; }
  .section-head .line { display: none; }
  .section-head .ornament { display: none; }

  /* SECTION PADDING */
  .section { padding: 60px 16px; }

  /* STORIES — override inline style */
  .stories { grid-template-columns: 1fr !important; gap: 16px; }
  .story.feat, .story.tall { grid-column: span 1 !important; grid-row: span 1 !important; }
  .story-img { height: 200px; }

  /* RITUALES */
  .rituals { grid-template-columns: 1fr; gap: 12px; }
  .ritual { padding: 28px 20px; }

  /* VIDEOS */
  .videos { grid-template-columns: 1fr; gap: 16px; }

  /* EXPERIENCIAS */
  .experiences { grid-template-columns: 1fr; }

  /* FORMS */
  .cdm-form-card { padding: 28px 16px; }
  .cdm-form-card h2 { font-size: 20px; }

  /* CURSO CTA */
  .curso-cta-block { padding: 40px 16px; }
  .curso-cta-block h2 { font-size: clamp(22px, 6vw, 36px); }
  .curso-cta-block .btn { width: 100%; justify-content: center; }

  /* FOOTER */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
  footer { padding: 48px 16px 32px; }
  .footer-bottom { padding: 20px 16px; font-size: 10px; }

  /* DRAWER */
  .drawer { width: 100vw; }

  /* GENERAL BUTTONS */
  .btn { font-size: 11px; padding: 14px 20px; cursor: auto; }
}
