:root {
  --green-950: #04100b;
  --green-900: #0f2e23;
  --green-800: #1e4b3a;
  --leaf: #3a6b4c;
  --gold: #b99648;
  --gold-light: #e1c979;
  --paper: #f6f0e2;
  --paper-strong: #fff8e8;
  --ink: #2b241d;
  --shadow: 0 34px 110px rgba(4, 16, 11, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Scroll Snapping para Desktop - Experiência de Filme por Atos */
@media (min-width: 1061px) {
  html {
    scroll-snap-type: y mandatory;
  }
  .scene {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
}

body { 
  margin: 0; 
  font-family: "Cormorant Garamond", Georgia, serif; 
  font-size: 20px; 
  line-height: 1.55; 
  color: var(--ink); 
  background: var(--green-950); 
}
body.preloading, body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

/* --- 1. PRELOADER CINEMATOGRÁFICO --- */
.preloader { 
  position: fixed; 
  inset: 0; 
  z-index: 1000; 
  display: grid; 
  place-content: center; 
  gap: 24px; 
  text-align: center; 
  overflow: hidden;
  background: #020806;
  color: var(--paper); 
  transition: opacity .9s cubic-bezier(0.25, 1, 0.5, 1), visibility .9s cubic-bezier(0.25, 1, 0.5, 1); 
}
.preloader::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(185, 150, 72, .18), transparent 34%),
    linear-gradient(90deg, rgba(2, 8, 6, .92), rgba(2, 8, 6, .48) 48%, rgba(2, 8, 6, .9)),
    linear-gradient(180deg, rgba(2, 8, 6, .58), rgba(2, 8, 6, .9)),
    url("../backgrounds/fundo_castelo.png") center/cover no-repeat;
  transform: scale(1.04);
  animation: preloaderCastleDrift 4s ease-in-out both;
}
.preloader::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 38%, rgba(255,255,255,.08) 46%, transparent 56% 100%);
  opacity: .34;
  transform: translateX(-28%);
  animation: preloaderLightSweep 3.2s ease-in-out both;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; }
.preloader__gate { 
  position: relative; 
  z-index: 1;
  width: clamp(220px, 20vw, 280px); 
  height: clamp(220px, 20vw, 280px); 
  display: grid; 
  place-items: center; 
  margin: 0 auto;
}
.preloader p { 
  position: relative;
  z-index: 1;
  margin: 0; 
  font-family: "Inter", sans-serif; 
  font-size: clamp(14px, 1.4vw, 18px); 
  font-weight: 700; 
  letter-spacing: .2em; 
  line-height: 1.6;
  text-transform: uppercase; 
  color: var(--gold-light); 
  text-shadow: 0 8px 24px rgba(0,0,0,.75);
  animation: pulseLettering 3s ease infinite;
}
/* Animações Monograma SVG Preloader */
.monograma-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 14px 30px rgba(0,0,0,0.5));
}
.monograma-text-names, .monograma-text-initial-l, .monograma-text-initial-r {
  fill: #f6f0e2;
}
.monograma-path-thin {
  stroke: #f6f0e2;
}
.monograma-circle {
  stroke-dasharray: 1420;
  stroke-dashoffset: 1420;
  animation: drawCircle 2.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.monograma-line-horiz, .monograma-line-vert {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: drawLine 2.2s cubic-bezier(0.25, 1, 0.5, 1) forwards 0.6s;
}
.monograma-path-thin {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawLine 2s cubic-bezier(0.25, 1, 0.5, 1) forwards 1s;
}
.monograma-text-names, .monograma-text-initial-l, .monograma-text-initial-r, .monograma-gold-dot {
  opacity: 0;
  animation: fadeInMonogram 1.8s ease forwards 1.4s;
}

/* --- 2. NOVO TOPO ESTILO HOGWARTS LEGACY --- */
.site-header { 
  position: fixed; 
  top: 24px; 
  left: 50%; 
  z-index: 80; 
  width: min(1200px, calc(100vw - 48px)); 
  min-height: 60px; 
  display: grid; 
  grid-template-columns: 1fr auto 1fr; 
  align-items: center; 
  justify-items: center; 
  transform: translateX(-50%); 
  color: var(--paper); 
  pointer-events: none; 
}
.site-header a, .site-header button {
  pointer-events: auto;
}

/* Botão de Retorno Padronizado */
.btn-back {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  transition: color 0.3s ease;
}
.btn-back::before {
  content: "←";
  font-size: 14px;
}
.btn-back:hover {
  color: #ffffff;
}

.header-logo { 
  display: block; 
  pointer-events: auto; 
  transition: transform 0.3s ease; 
  background: transparent; 
  border: 0; 
  box-shadow: none; 
  padding: 0 12px;
}
.header-logo:hover { transform: scale(1.06); }
.header-logo img { 
  height: 58px; 
  width: auto; 
  object-fit: contain; 
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.35)); 
}

.header-nav { 
  display: flex; 
  align-items: center; 
  gap: 40px; 
  pointer-events: auto; 
}
.header-nav a { 
  font-family: "Cormorant Garamond", serif; 
  font-size: 14px; 
  font-weight: 500; 
  letter-spacing: .2em; 
  text-transform: uppercase; 
  color: rgba(246, 240, 226, 0.88); 
  position: relative; 
  padding: 6px 0; 
  transition: color 0.3s ease; 
}
.header-nav a::after {
  content: ""; 
  position: absolute; 
  bottom: 0; 
  left: 50%; 
  width: 0; 
  height: 1px; 
  background: var(--gold-light); 
  transform: translateX(-50%); 
  transition: width 0.3s ease;
}
.header-nav a:hover { color: #fff; }
.header-nav a:hover::after { width: 100%; }

.menu-toggle, .menu-close { 
  position: absolute; 
  right: 0; 
  top: 50%; 
  transform: translateY(-50%); 
  border: 0; 
  background: transparent; 
  color: var(--gold-light); 
  font-family: "Inter", sans-serif; 
  font-size: 11px; 
  font-weight: 600; 
  letter-spacing: .14em; 
  text-transform: uppercase; 
  cursor: pointer; 
  transition: all 0.3s ease;
  pointer-events: auto; 
  padding: 9px 14px; 
}
.menu-toggle:hover, .menu-close:hover { color: #fff; background: rgba(185, 150, 72, 0.18); }

/* --- 3. MENU LATERAL MAPA --- */
.story-menu { 
  position: fixed; 
  inset: 0; 
  z-index: 120; 
  visibility: hidden; 
  opacity: 0; 
  background: rgba(2,8,6,.82); 
  backdrop-filter: blur(20px); 
  -webkit-backdrop-filter: blur(20px);
  transition: opacity .35s ease, visibility .35s ease; 
}
body.menu-open .story-menu { visibility: visible; opacity: 1; }
.story-menu__panel { 
  position: absolute; 
  right: 0; 
  top: 0; 
  width: min(520px, 100vw); 
  height: 100%; 
  display: grid; 
  align-content: center; 
  gap: 12px; 
  padding: clamp(30px, 6vw, 74px); 
  background: linear-gradient(180deg, rgba(15,46,35,.98), rgba(4,16,11,.99)); 
  border-left: 1px solid rgba(185,150,72,.25); 
  color: var(--paper); 
  box-shadow: -30px 0 90px rgba(0,0,0,.45); 
  transform: translateX(100%); 
  transition: transform .45s cubic-bezier(0.25, 1, 0.5, 1); 
}
body.menu-open .story-menu__panel { transform: translateX(0); }
.menu-close { justify-self: end; border: 1px solid rgba(185,150,72,.34); }
.story-menu__panel a { 
  display: grid; 
  grid-template-columns: 54px 1fr; 
  align-items: baseline; 
  gap: 18px; 
  padding: 12px 0; 
  border-bottom: 1px solid rgba(185,150,72,.14); 
  font-family: "Cormorant Garamond", serif; 
  font-size: clamp(20px, 3.5vw, 36px); 
  font-weight: 500; 
  text-transform: uppercase; 
  color: var(--paper-strong); 
  transition: color 0.3s ease;
}
.story-menu__panel a span { color: var(--gold-light); font-size: 13px; font-family: "Inter", sans-serif; }
.story-menu__panel a:hover { color: var(--gold-light); }

/* Barra de Progresso Superior */
.story-progress { 
  position: fixed; 
  left: 0; 
  top: 0; 
  z-index: 90; 
  width: 100%; 
  height: 3px; 
  background: rgba(246,240,226,.08); 
}
.story-progress span { 
  display: block; 
  width: 0; 
  height: 100%; 
  background: linear-gradient(90deg, var(--gold), var(--gold-light)); 
}

/* --- 4. TIMELINE VERTICAL (LINHA DO TEMPO) --- */
.story-timeline {
  position: fixed;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.story-timeline__dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--timeline-dot-bg, rgba(246, 240, 226, 0.28));
  border: 1px solid var(--timeline-dot-border, transparent);
  box-shadow: 0 0 0 1px var(--timeline-dot-ring, transparent);
  transition: background 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.story-timeline__dot:hover, .story-timeline__dot.active {
  background: var(--gold-light);
  transform: scale(1.4);
  box-shadow: 0 0 10px rgba(225, 201, 121, 0.6);
}
.timeline-on-dark {
  --timeline-dot-bg: rgba(246, 240, 226, 0.34);
  --timeline-dot-border: rgba(246, 240, 226, 0.26);
  --timeline-dot-ring: rgba(4, 16, 11, 0.28);
}
.timeline-on-light {
  --timeline-dot-bg: rgba(4, 16, 11, 0.38);
  --timeline-dot-border: rgba(4, 16, 11, 0.42);
  --timeline-dot-ring: rgba(255, 248, 232, 0.72);
}
.timeline-on-light .story-timeline__dot:hover,
.timeline-on-light .story-timeline__dot.active {
  background: var(--green-900);
  border-color: rgba(255, 248, 232, 0.68);
  box-shadow: 0 0 0 2px rgba(255, 248, 232, 0.8), 0 0 12px rgba(4, 16, 11, 0.34);
}
.story-timeline__tooltip {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: rgba(4, 16, 11, 0.88);
  border: 1px solid rgba(185, 150, 72, 0.4);
  color: var(--paper-strong);
  padding: 6px 14px;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  border-radius: 2px;
}
.story-timeline__dot:hover .story-timeline__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* --- 5. SCENES & CENAS --- */
.story { overflow: hidden; }
.scene { 
  position: relative; 
  min-height: 100svh; 
  display: grid; 
  place-items: center; 
  isolation: isolate; 
  overflow: hidden; 
  padding: 120px 0 88px; 
}

.scene[data-act]::before {
  content: "ATO " attr(data-act);
  position: absolute;
  z-index: 14;
  left: clamp(18px, 3.2vw, 52px);
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
  font-family: "Inter", sans-serif;
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 800;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(185, 150, 72, .82);
  padding: 10px 14px;
  border-left: 2px solid currentColor;
  background: rgba(255, 248, 232, .46);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
}
.bg-dark.scene[data-act]::before,
.bg-castle.scene[data-act]::before,
.hero-scene.scene[data-act]::before {
  color: var(--gold-light);
  background: rgba(4, 16, 11, .48);
  text-shadow: 0 2px 14px rgba(0,0,0,.38);
}
.scene-content { 
  position: relative; 
  z-index: 10; 
  width: min(1180px, calc(100vw - 72px)); 
  margin: auto; 
}

/* --- HERO SCENE (ATO 00) --- */
.hero-scene { min-height: 100svh; color: var(--paper); perspective: 1000px; }
.magic-canvas { position: absolute; inset: 0; z-index: 6; width: 100%; height: 100%; opacity: .48; pointer-events: none; }

/* Contêiner de Vídeo de Fundo em Loop (Object-fit: cover em iframe) */
.video-background-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.38; /* Mistura perfeita com o gradiente e fundo */
}
.video-background-container iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 Ratio */
  min-height: 100vh;
  min-width: 177.78vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
@media (min-aspect-ratio: 16/9) {
  .video-background-container iframe {
    height: 56.25vw;
  }
}
@media (max-aspect-ratio: 16/9) {
  .video-background-container iframe {
    width: 177.78vh;
  }
}

.hero-layer--castle { 
  position: absolute; 
  inset: 0; 
  z-index: 0; 
  background: url("../backgrounds/fundo_castelo.png") center/cover no-repeat; 
  transform: scale(1.04); 
  filter: saturate(1.02) contrast(1.04); 
  animation: kenBurns 48s ease-in-out infinite;
}
.hero-gradient { 
  position: absolute; 
  inset: 0; 
  z-index: 5; 
  background: radial-gradient(circle at 74% 44%, rgba(225,201,121,.1), transparent 30%), 
              linear-gradient(90deg, rgba(4,16,11,.92), rgba(4,16,11,.66) 38%, rgba(4,16,11,.14) 64%, rgba(4,16,11,.58)), 
              linear-gradient(180deg, rgba(4,16,11,.24), rgba(4,16,11,.06) 48%, rgba(4,16,11,.92)); 
  pointer-events: none; 
}
.hero-gradient::after { 
  content: ""; 
  position: absolute; 
  inset: auto 0 0; 
  height: 20vh; 
  background: linear-gradient(180deg, transparent, var(--paper)); 
}
.hero-layer--mist { 
  position: absolute; 
  left: -10%; 
  right: -10%; 
  height: 32vh; 
  z-index: 4; 
  opacity: .54; 
  filter: blur(14px); 
  background: radial-gradient(ellipse at 20% 55%, rgba(246,240,226,.5), transparent 32%), 
              radial-gradient(ellipse at 70% 42%, rgba(246,240,226,.4), transparent 36%), 
              linear-gradient(90deg, transparent, rgba(246,240,226,.25), transparent); 
  pointer-events: none; 
}
.hero-layer--mist-a { bottom: 0; animation: mistFlow 22s ease-in-out infinite; }
.hero-layer--mist-b { top: 18%; opacity: .22; animation: mistFlowReverse 28s ease-in-out infinite; }
.hero-mark--masonic { 
  position: absolute; 
  right: 7vw; 
  top: 22vh; 
  z-index: 7; 
  width: min(190px, 20vw); 
  opacity: .14; 
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.22)); 
  animation: floatSoft 9s ease-in-out infinite; 
}
.hero-couple { 
  position: absolute; 
  right: 6vw; 
  bottom: -2vh; 
  z-index: 8; 
  width: clamp(340px, 36vw, 560px); 
  filter: drop-shadow(0 34px 72px rgba(0,0,0,0.5)); 
  pointer-events: none; 
  animation: kenBurnsCouple 48s ease-in-out infinite;
}
.hero-grid { min-height: calc(100svh - 120px); display: grid; grid-template-columns: minmax(0, 660px) minmax(220px, 1fr); align-items: center; gap: 54px; }
.hero-copyblock { max-width: 660px; text-shadow: 0 10px 30px rgba(0,0,0,.45); }
.hero-crest-header { margin-bottom: 20px; text-align: left; }
.hero-crest-header img { 
  width: 90px; 
  height: 90px; 
  object-fit: contain; 
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.32)); 
}

.chapter { margin: 0 0 16px; font-family: "Inter", sans-serif; font-size: clamp(13px, 1.05vw, 16px); font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light); line-height: 1.35; }
.signature { max-width: 620px; margin: 0 0 4px; font-family: "Great Vibes", cursive; font-size: clamp(54px, 6.2vw, 84px); line-height: .88; color: var(--paper-strong); white-space: nowrap; }

h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { 
  max-width: 640px; 
  margin: 0; 
  font-family: "Cormorant Garamond", serif; 
  font-size: clamp(42px, 6vw, 76px); 
  font-weight: 300; 
  line-height: .98; 
  letter-spacing: .04em; 
  color: #fff8e8; 
  text-transform: uppercase; 
  text-wrap: balance; 
}
.hero-line { margin: 22px 0 0; font-family: "Inter", sans-serif; font-size: clamp(14px, 1.25vw, 18px); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); line-height: 1.45; }
.hero-copy { width: min(580px, 100%); margin: 18px 0 32px; font-size: clamp(20px, 2.3vw, 26px); font-family: "Cormorant Garamond", serif; color: rgba(255,248,232,.95); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-cue { position: absolute; left: 50%; bottom: 24px; z-index: 12; width: 28px; height: 46px; transform: translateX(-50%); border: 1px solid rgba(225,201,121,.52); border-radius: 999px; }
.scroll-cue span { display: block; width: 4px; height: 8px; margin: 9px auto 0; border-radius: 99px; background: var(--gold-light); animation: scrollCue 1.6s ease-in-out infinite; }

/* Botões Modernos e Cleans */
.btn { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  min-height: 50px; 
  padding: 13px 26px; 
  border: 1px solid var(--gold); 
  font-family: "Inter", sans-serif; 
  font-size: 11px; 
  font-weight: 600; 
  letter-spacing: .15em; 
  text-transform: uppercase; 
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease; 
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(185, 150, 72, 0.15); }
.btn--gold { background: var(--gold); color: var(--green-950); }
.btn--gold:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn--glass { background: rgba(246,240,226,.08); color: var(--paper); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: rgba(246, 240, 226, 0.25); }
.btn--glass:hover { background: rgba(246, 240, 226, 0.2); border-color: var(--gold); }
.btn--paper { color: var(--green-900); background: rgba(255,255,255,.32); border-color: rgba(185,150,72,.34); }
.btn--paper:hover { background: rgba(255,255,255,.68); }
.btn--small { min-height: 40px; padding: 8px 16px; font-size: 10px; }

/* --- 6. BACKGROUND SECTIONS IN PERGAMINHO / ESMEralda --- */
.bg-gold { background: linear-gradient(90deg, rgba(246,240,226,.94), rgba(246,240,226,.76)), url("../backgrounds/fundo_dourado.png") center/cover; }
.bg-cinza { background: linear-gradient(110deg, rgba(246,240,226,.88), rgba(221,228,223,.78)), url("../backgrounds/fundo_cinza.png") center/cover; }
.bg-dark { background: linear-gradient(110deg, rgba(4,16,11,.94), rgba(15,46,35,.72)), url("../backgrounds/fundo_cinza.png") center/cover; color: var(--paper); }
.bg-castle { background: linear-gradient(90deg, rgba(4,16,11,.88), rgba(15,46,35,.55), rgba(4,16,11,.76)), url("../backgrounds/fundo_castelo.png") center/cover; color: var(--paper); }

/* --- 7. CARDS E PAINÉIS GLASSMORPHISM (VIDRO CLEAN) --- */
.copy-block, .ritual-form, .glass-card, .family-crest-panel { 
  border: 1px solid rgba(185, 150, 72, 0.16); 
  background: rgba(255, 248, 232, 0.45); 
  box-shadow: var(--shadow); 
  backdrop-filter: blur(24px); 
  -webkit-backdrop-filter: blur(24px);
  border-radius: 4px;
}
.copy-block { position: relative; padding: clamp(28px, 4.5vw, 54px); }
.copy-block::before { 
  content: ""; 
  position: absolute; 
  inset: 12px; 
  border: 1px solid rgba(185,150,72,.14); 
  pointer-events: none; 
}
.copy-block h2, .center-copy h2, .family-copy h2 { margin: 0 0 20px; font-family: "Cormorant Garamond", serif; font-size: clamp(34px, 4.5vw, 64px); font-weight: 300; line-height: 1.05; color: var(--green-900); text-transform: uppercase; }
.copy-block p, .center-copy p, .family-copy p { font-family: "Inter", sans-serif; font-size: clamp(16px, 1.8vw, 20px); color: rgba(15, 46, 35, 0.88); line-height: 1.6; }
.copy-block--dark { background: rgba(4,16,11,.64); border-color: rgba(185,150,72,.2); color: var(--paper); }
.copy-block--dark::before { border-color: rgba(185, 150, 72, 0.18); }
.copy-block--dark h2 { color: var(--paper-strong); }
.copy-block--dark p { color: rgba(246, 240, 226, 0.88); }

.center-copy { width: min(860px, 100%); margin: 0 auto 46px; text-align: center; }
.center-copy p { margin-left: auto; margin-right: auto; max-width: 760px; }
.center-copy--dark h2 { color: var(--paper-strong); }
.center-copy--dark p { color: rgba(246, 240, 226, 0.88); }

.symbol-watermark { position: absolute; z-index: 1; right: 6vw; bottom: 5vh; width: min(310px, 36vw); opacity: .1; pointer-events: none; }

/* --- 8. ATO I - NOVO LAYOUT EDITORIAL SEM QUADRO PESADO --- */
.chapter-layout-new {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
}
.chapter-left {
  position: relative;
  display: flex;
  flex-direction: column;
}
.chapter-huge-number {
  position: absolute;
  left: -20px;
  top: -70px;
  z-index: 1;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(140px, 20vw, 280px);
  line-height: 0.8;
  font-weight: 300;
  color: rgba(185, 150, 72, 0.12);
  pointer-events: none;
}
.copy-block-clean {
  position: relative;
  z-index: 2;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
}
.copy-block-clean h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(34px, 4.5vw, 60px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--green-900);
  text-transform: uppercase;
  margin: 0 0 24px 0;
  letter-spacing: 0.02em;
}
.copy-block-clean p.chapter {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin: 0 0 10px 0;
}
.narrative-text {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(21px, 2.3vw, 26px);
  line-height: 1.6;
  color: rgba(15, 46, 35, 0.88);
  margin: 0 0 18px 0;
  text-align: justify;
}


.historia-scene .chapter-layout-new { min-height: calc(100svh - 220px); }
.historia-carousel__copy {
  opacity: 0;
  transform: translate3d(20px, 18px, 0);
  filter: blur(7px);
  transition: opacity .9s ease, transform .9s ease, filter .9s ease;
}
.historia-carousel__copy.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}
.historia-text {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(21px, 2.15vw, 26px);
  line-height: 1.56;
  color: rgba(15, 46, 35, 0.9);
  max-width: 760px;
}
.historia-text strong { color: var(--green-900); font-weight: 700; }
.historia-carousel__controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}
.historia-arrow {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(185,150,72,.55);
  background: rgba(255,248,232,.36);
  color: var(--green-900);
  font-size: 20px;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .25s ease, border-color .25s ease;
}
.historia-arrow:hover { background: var(--green-900); color: var(--paper); border-color: var(--green-900); transform: translateY(-2px); }
.historia-arrow--continue { border-color: var(--green-900); background: rgba(15, 46, 35, .88); color: var(--paper); box-shadow: 0 12px 28px rgba(15, 46, 35, .18); }
.historia-counter {
  min-width: 86px;
  display: inline-flex;
  justify-content: center;
  gap: 7px;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--gold);
}

/* --- 9. DETALHES DE ATO --- */
.chapter-layout { display: grid; grid-template-columns: .45fr minmax(0, .9fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.chapter-number { font-family: "Cormorant Garamond", serif; font-size: clamp(96px, 16vw, 240px); line-height: .8; font-weight: 300; color: rgba(185,150,72,.18); }
.split-layout, .venue-layout, .family-layout, .court-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(34px, 6vw, 78px); align-items: center; }
.court-layout { grid-template-columns: 1.12fr .88fr; }

/* Retratos Aquarela Transparentes (Ken Burns Suave) */
.portrait-duo { 
  position: relative; 
  min-height: 520px; 
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.portrait-duo img { 
  position: absolute; 
  filter: drop-shadow(0 20px 40px rgba(4,16,11,.16)); 
  transition: transform 0.4s ease; 
}
.portrait-duo__jady { left: 4%; bottom: 0; width: min(310px, 45vw); z-index: 2; animation: floatSoft 12s ease-in-out infinite; }
.portrait-duo__jeff { right: 4%; bottom: 0; width: min(310px, 45vw); z-index: 1; animation: floatSoft 14s ease-in-out infinite reverse; }
.portrait-duo__seal { left: 50%; top: 8%; width: min(200px, 34vw); transform: translateX(-50%); opacity: .72; z-index: 3; }

.family-crest-panel { min-height: 520px; display: grid; place-items: center; padding: clamp(26px, 4vw, 44px); }
.family-crest-panel img { width: min(410px, 80vw); filter: drop-shadow(0 28px 58px rgba(4,16,11,.24)); transform-origin: center; }
.family-crest-panel.is-visible img { animation: crestArrival 1.35s cubic-bezier(0.22, 1, 0.36, 1) .12s both, crestGlow 2.8s ease-in-out 1.2s infinite; }
.family-copy { padding: clamp(20px, 3vw, 36px); }
.family-tags, .venue-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.family-tags span, .venue-facts span { padding: 10px 14px; border: 1px solid rgba(185,150,72,.42); font-family: "Inter", sans-serif; font-size: clamp(12px, .95vw, 14px); font-weight: 800; letter-spacing: .11em; text-transform: uppercase; color: var(--gold); background: rgba(255, 255, 255, 0.18); }

/* --- 10. CORTE & MANUAIS --- */
.court-stage { position: relative; min-height: 580px; }
.court-stage img { position: absolute; bottom: 0; max-height: 540px; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); }
.court-stage__madrinhas { left: 4%; width: min(350px, 48vw); z-index: 2; }
.court-stage__padrinhos { right: 4%; width: min(350px, 48vw); z-index: 1; }

.manuals-download-block {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(185, 150, 72, 0.18);
}
.manuals-download-block h3 {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0 0 14px 0;
}
.manual-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- 11. FORMULÁRIOS CLEANS --- */
.ritual-form { display: grid; gap: 20px; padding: clamp(24px, 4.5vw, 46px); }
.ritual-form label { display: grid; gap: 6px; }
.ritual-form span { font-family: "Inter", sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green-800); }
.ritual-form input, .ritual-form select, .ritual-form textarea { 
  width: 100%; 
  min-height: 52px; 
  border: 0;
  border-bottom: 1px solid rgba(15, 46, 35, 0.22); 
  background: rgba(255, 255, 255, 0.28); 
  color: var(--green-900); 
  padding: 12px 8px; 
  outline: none;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  transition: all 0.3s ease;
}
.ritual-form input:focus, .ritual-form select:focus, .ritual-form textarea:focus {
  border-bottom-color: var(--gold);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 4px 12px rgba(185, 150, 72, 0.06);
}
.ritual-form textarea { min-height: 120px; resize: vertical; }

/* --- 12. LISTA DE PRESENTES --- */
.gift-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gift-card {
  min-height: 280px; 
  display: grid; 
  align-content: center; 
  justify-items: center; 
  gap: 12px; 
  padding: 34px; 
  text-align: center; 
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}
.gift-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-light);
  background: rgba(255, 248, 232, 0.64);
}
.gift-card span { 
  display: grid; 
  place-items: center; 
  width: 70px; 
  height: 70px; 
  border-radius: 50%; 
  border: 1px solid rgba(185,150,72,.48); 
  font-family: "Cormorant Garamond", serif; 
  font-size: 20px;
  font-weight: 500; 
  color: var(--gold); 
}
.gift-card h3 { margin: 0; font-family: "Cormorant Garamond", serif; color: var(--green-900); font-size: 22px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.02em; }
.gift-card strong { display: block; margin: 4px 0 12px; font-size: 28px; color: var(--leaf); font-family: "Cormorant Garamond", serif; font-weight: 300; }

/* --- 13. LOCAL & COUNTDOWN --- */
.venue-facts span { color: var(--gold-light); }
.venue-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 26px;
}
.venue-actions .btn {
  width: 100%;
  min-height: 42px;
  padding-inline: 16px;
  font-size: 10px;
  text-align: center;
}
.venue-side { display: grid; gap: 22px; }
.countdown-card { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 12px; 
  padding: 28px; 
  border: 1px solid rgba(185,150,72,.28); 
  background: rgba(4,16,11,.76); 
  box-shadow: var(--shadow); 
  backdrop-filter: blur(16px); 
  -webkit-backdrop-filter: blur(16px);
  text-align: center; 
  border-radius: 4px;
}
.countdown-card strong { display: block; font-family: "Cormorant Garamond", serif; font-size: clamp(40px, 5.5vw, 80px); line-height: .9; color: var(--gold-light); font-weight: 300; }
.countdown-card small { display: block; margin-top: 8px; font-family: "Inter", sans-serif; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--paper); }
.venue-photos { display: grid; grid-template-columns: 1.2fr .8fr; gap: 12px; }
.venue-photos img { width: 100%; height: 190px; object-fit: cover; border: 1px solid rgba(185,150,72,.22); box-shadow: 0 20px 40px rgba(0,0,0,.35); border-radius: 2px; }
.venue-photos img:first-child { grid-row: span 2; height: 392px; }

/* --- 14. EPÍLOGO & FOTOS --- */
.epilogue-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.epilogue-actions .btn { min-width: 220px; }
.photo-ribbon { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; transform: rotate(-1deg); }
.photo-ribbon img { width: 100%; height: 360px; object-fit: cover; border: 1px solid rgba(185,150,72,.24); background: rgba(246,240,226,.05); box-shadow: var(--shadow); border-radius: 2px; transition: transform 0.4s ease; }
.photo-ribbon img:hover { transform: scale(1.03) rotate(1deg); z-index: 10; border-color: var(--gold); }

/* --- 15. ANIMAÇÕES --- */
.reveal { 
  opacity: 0; 
  transform: translateY(32px) scale(.985); 
  transition: opacity 1.1s cubic-bezier(0.215, 0.61, 0.355, 1), transform 1.1s cubic-bezier(0.215, 0.61, 0.355, 1); 
}
.reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); }
[data-depth] { transition: transform .18s cubic-bezier(0.1, 0.8, 0.2, 1); }

@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes fadeInMonogram { to { opacity: 1; } }

@keyframes pulseLettering {
  0%, 100% { letter-spacing: .2em; opacity: .9; }
  50% { letter-spacing: .23em; opacity: 1; color: #fff; }
}
@keyframes preloaderCastleDrift {
  0% { transform: scale(1.08); filter: saturate(.88) brightness(.8); }
  100% { transform: scale(1.02); filter: saturate(1.06) brightness(1); }
}
@keyframes preloaderLightSweep {
  0%, 24% { transform: translateX(-38%); opacity: 0; }
  58% { opacity: .34; }
  100% { transform: translateX(38%); opacity: 0; }
}
@keyframes mistFlow { 0%, 100% { transform: translateX(-3vw); } 50% { transform: translateX(5vw); } }
@keyframes mistFlowReverse { 0%, 100% { transform: translateX(5vw); } 50% { transform: translateX(-4vw); } }
@keyframes floatSoft { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(12px) rotate(1.5deg); } }
@keyframes crestArrival { 0% { opacity: 0; transform: scale(.82) rotate(-1.8deg); filter: blur(8px) drop-shadow(0 8px 18px rgba(4,16,11,.12)); } 64% { opacity: 1; transform: scale(1.045) rotate(.7deg); filter: blur(0) drop-shadow(0 32px 62px rgba(4,16,11,.28)); } 100% { opacity: 1; transform: scale(1) rotate(0deg); filter: blur(0) drop-shadow(0 28px 58px rgba(4,16,11,.24)); } }
@keyframes crestGlow { 0%, 100% { filter: drop-shadow(0 28px 58px rgba(4,16,11,.24)); } 50% { filter: drop-shadow(0 34px 68px rgba(185,150,72,.34)); } }
@keyframes scrollCue { 50% { transform: translateY(15px); opacity: .28; } }

@keyframes kenBurns {
  0% { transform: scale(1.04) translate(0, 0); }
  50% { transform: scale(1.08) translate(-1.5%, -1%); }
  100% { transform: scale(1.04) translate(0, 0); }
}
@keyframes kenBurnsCouple {
  0% { transform: scale(1.0) translate(0, 0); }
  50% { transform: scale(1.03) translate(0.5%, -0.5%); }
  100% { transform: scale(1.0) translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) { 
  *, *::before, *::after { 
    animation-duration: .001ms !important; 
    animation-iteration-count: 1 !important; 
    scroll-behavior: auto !important; 
    transition-duration: .001ms !important; 
  } 
}

/* --- 16. MEDIA QUERIES RESPONSIVAS --- */
@media (max-width: 1060px) { 
  .site-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: calc(100vw - 36px); 
    top: 16px; 
  } 
  .header-nav { display: none; }
  .header-logo img { height: 48px; }
  .menu-toggle { position: static; transform: none; }
  .story-timeline { display: none; }
  .scene[data-act]::before { top: 92px; left: 22px; transform: none; font-size: 12px; letter-spacing: .2em; padding: 8px 10px; border-left: 0; border-bottom: 2px solid currentColor; }
  .scene-content { width: min(100% - 36px, 980px); } 
  .hero-grid, .chapter-layout-new, .chapter-layout, .split-layout, .court-layout, .family-layout, .venue-layout, .gift-grid, .photo-ribbon { grid-template-columns: 1fr; }
  .historia-scene .chapter-layout-new { min-height: auto; } 
  .chapter-layout-new { gap: clamp(24px, 4vw, 44px); }
  .chapter-huge-number { top: -84px; right: 0; left: auto; font-size: clamp(112px, 26vw, 190px); color: rgba(185, 150, 72, 0.13); }
  .hero-copyblock { padding-top: 120px; } 
  .hero-couple { opacity: .35; right: -20px; bottom: 0; } 
  .portrait-duo { min-height: 620px; } 
  .court-stage { min-height: 780px; } 
  .photo-ribbon img { height: 300px; } 
}

@media (max-width: 620px) { 
  body { font-size: 18px; } 
  .site-header { top: 10px; width: calc(100vw - 20px); } 
  .header-logo img { height: 42px; }
  .menu-toggle { min-height: 44px; padding: 6px 10px; } 
  .scene { padding: 124px 0 64px; min-height: auto; } 
  .scene[data-act]::before { top: 74px; left: 12px; font-size: 11px; letter-spacing: .18em; background: rgba(255, 248, 232, .62); } 
  .bg-dark.scene[data-act]::before, .bg-castle.scene[data-act]::before, .hero-scene.scene[data-act]::before { background: rgba(4, 16, 11, .62); } 
  .hero-scene { min-height: 100svh; } 
  .hero-copyblock { padding-top: 120px; } 
  h1 { font-size: clamp(34px, 12vw, 54px); max-width: 90vw; } 
  .signature { font-size: clamp(48px, 13vw, 66px); white-space: normal; } 
  .hero-couple { width: 290px; opacity: .22; right: -70px; } 
  .hero-mark--masonic { width: 110px; right: 1vw; } 
  .hero-actions, .btn { width: 100%; } 
  .hero-actions { display: grid; } 
  .copy-block, .ritual-form { padding: 24px; } 
  .copy-block h2, .center-copy h2, .family-copy h2 { font-size: 30px; } 
  .copy-block p, .center-copy p, .family-copy p { font-size: 19px; } 
  .portrait-duo { min-height: 500px; } 
  .portrait-duo__jady, .portrait-duo__jeff { width: 210px; } 
  .court-stage { min-height: 560px; } 
  .court-stage img { width: 260px; } 
  .countdown-card, .venue-photos { grid-template-columns: 1fr; } 
  .venue-photos img, .venue-photos img:first-child { height: 220px; } 
}

/* Botão de Menu com Fundo Preto para Contraste */
.btn-menu-black {
  background: #000000 !important;
  border: 1px solid rgba(185, 150, 72, 0.44) !important;
  color: var(--gold-light) !important;
  box-shadow: 0 4px 18px rgba(0,0,0,0.5) !important;
  border-radius: 4px !important;
  padding: 10px 18px !important;
}
.btn-menu-black:hover {
  background: var(--green-900) !important;
  border-color: var(--gold-light) !important;
  color: #ffffff !important;
}

