/* ==========================================================================
   ISABELLA LOWENSTEIN — XV · BAILE DE INVERNO (INVERNO ENCANTADO)
   Direção de arte editorial cinematográfica · Mobile-first + Widescreen orgânico
   Paleta oficial: #0B1627 · #233C59 · #8CA9C6 · #C9D8E8 · #F1EFF4
   ========================================================================== */

:root {
  --c-midnight: #0B1627;
  --c-midnight-deep: #07101E;
  --c-slate: #233C59;
  --c-ice: #8CA9C6;
  --c-silver: #C9D8E8;
  --c-pearl: #F1EFF4;
  --c-ink-on-pearl: #0E1C33;
  --c-ink-muted: rgba(14, 28, 51, 0.78);

  --f-serif: 'Cormorant Garamond', 'Didot', 'Bodoni MT', 'Palatino Linotype', Georgia, serif;
  --f-roman: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  --f-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease-cinema: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-silk: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  background-color: var(--c-midnight);
  color: var(--c-pearl);
  font-family: var(--f-serif);
  font-size: 16px;
  line-height: 1.45;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body {
  min-height: 100svh;
  background-color: var(--c-midnight);
  color: var(--c-pearl);
  overflow-x: clip;
  position: relative;
}

body.is-locked {
  overflow: hidden;
  height: 100svh;
}

[hidden] {
  display: none !important;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

button,
a {
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 1.5px solid var(--c-silver);
  outline-offset: 4px;
}

/* ==========================================================================
   CAMADA GLOBAL DE NEVE E POEIRA CRISTALINA
   ========================================================================== */
.snow-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 35;
  opacity: 0.72;
  mix-blend-mode: screen;
}

/* ==========================================================================
   ORNAMENTOS EDITORIAIS E MONOGRAMA XV
   ========================================================================== */
.monogram-crest {
  width: clamp(92px, 24vw, 126px);
  height: auto;
  aspect-ratio: 160 / 144;
  margin-inline: auto;
}

.monogram-light {
  color: var(--c-pearl);
  filter: drop-shadow(0 2px 14px rgba(7, 16, 30, 0.65));
}

.monogram-ink {
  color: var(--c-ink-on-pearl);
  filter: drop-shadow(0 1px 8px rgba(255, 255, 255, 0.65));
}

.monogram-closing {
  width: clamp(82px, 20vw, 108px);
}

.editorial-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: min(230px, 64vw);
  margin-inline: auto;
}

.editorial-rule.rule-compact {
  width: min(176px, 50vw);
}

.editorial-rule .rule-wing {
  flex: 1;
  height: 1px;
}

.rule-light {
  color: var(--c-silver);
}

.rule-light .rule-wing {
  background: linear-gradient(90deg, transparent, rgba(201, 216, 232, 0.72), rgba(241, 239, 244, 0.92));
}

.rule-light .rule-wing:last-child {
  background: linear-gradient(90deg, rgba(241, 239, 244, 0.92), rgba(201, 216, 232, 0.72), transparent);
}

.rule-ink {
  color: var(--c-ink-on-pearl);
}

.rule-ink .rule-wing {
  background: linear-gradient(90deg, transparent, rgba(14, 28, 51, 0.45), rgba(14, 28, 51, 0.78));
}

.rule-ink .rule-wing:last-child {
  background: linear-gradient(90deg, rgba(14, 28, 51, 0.78), rgba(14, 28, 51, 0.45), transparent);
}

/* ==========================================================================
   BOTÕES DE PLACA DE CRISTAL CHANFRADA (REFERÊNCIA OFICIAL)
   ========================================================================== */
.crystal-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.85rem 2.35rem;
  border: none;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  isolation: isolate;
  clip-path: polygon(
    10px 0,
    calc(100% - 10px) 0,
    100% 10px,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    10px 100%,
    0 calc(100% - 10px),
    0 10px
  );
  transition: transform 0.45s var(--ease-cinema), filter 0.45s var(--ease-cinema);
}

.crystal-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  transition: background-color 0.45s var(--ease-cinema), opacity 0.45s var(--ease-cinema);
}

/* Reflexo especular lento ao passar/tocar */
.crystal-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    112deg,
    transparent 20%,
    rgba(241, 239, 244, 0.24) 48%,
    transparent 76%
  );
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease-cinema);
}

.crystal-btn:hover::after,
.crystal-btn:focus-visible::after {
  transform: translateX(120%);
}

.crystal-btn:hover {
  transform: translateY(-1.5px);
}

.crystal-btn:active {
  transform: translateY(0.5px);
}

.crystal-btn-frame {
  position: absolute;
  inset: 3px;
  pointer-events: none;
  clip-path: polygon(
    8px 0,
    calc(100% - 8px) 0,
    100% 8px,
    100% calc(100% - 8px),
    calc(100% - 8px) 100%,
    8px 100%,
    0 calc(100% - 8px),
    0 8px
  );
}

.crystal-btn-label {
  font-family: var(--f-roman);
  font-size: clamp(0.76rem, 2.2vw, 0.85rem);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  white-space: nowrap;
}

/* Variante gelo translúcido (Portal e Localização) */
.crystal-btn-frost {
  color: var(--c-pearl);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 34px rgba(7, 16, 30, 0.5);
}

.crystal-btn-frost::before {
  background: linear-gradient(180deg, rgba(201, 216, 232, 0.22), rgba(11, 22, 39, 0.68));
  border: 1px solid rgba(225, 235, 246, 0.65);
}

.crystal-btn-frost .crystal-btn-frame {
  border: 1px solid rgba(241, 239, 244, 0.36);
}

/* Variante azul-noturno profundo (Confirmação sobre seda pérola) */
.crystal-btn-midnight {
  color: var(--c-pearl);
  box-shadow: 0 14px 32px rgba(11, 22, 39, 0.28);
}

.crystal-btn-midnight::before {
  background: linear-gradient(180deg, #132540 0%, #0B1627 100%);
  border: 1px solid rgba(11, 22, 39, 0.95);
}

.crystal-btn-midnight .crystal-btn-frame {
  border: 1px solid rgba(201, 216, 232, 0.52);
}

.subtle-text-link {
  display: inline-block;
  background: none;
  border: none;
  padding: 0.45rem 0.85rem;
  font-family: var(--f-sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(201, 216, 232, 0.82);
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 216, 232, 0.28);
  transition: color 0.35s ease, border-color 0.35s ease;
}

.subtle-text-link:hover,
.subtle-text-link:focus-visible {
  color: var(--c-pearl);
  border-color: rgba(241, 239, 244, 0.72);
}

/* ==========================================================================
   CONTROLES HUD (FILME E BARRA DE ÁUDIO DISCRETA)
   ========================================================================== */
.hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 36px;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 216, 232, 0.32);
  background: rgba(11, 22, 39, 0.52);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(241, 239, 244, 0.92);
  font-family: var(--f-sans);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

.hud-pill:hover,
.hud-pill:focus-visible {
  background: rgba(35, 60, 89, 0.68);
  border-color: rgba(241, 239, 244, 0.65);
}

.hud-pill[aria-pressed="false"].cc-off {
  opacity: 0.62;
}

.hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-silver);
  box-shadow: 0 0 8px rgba(201, 216, 232, 0.85);
  transition: opacity 0.3s ease, background-color 0.3s ease;
}

.ambient-bar {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  z-index: 45;
}

.ambient-bar .hud-pill[aria-pressed="true"] .hud-dot {
  background: rgba(140, 169, 198, 0.4);
  box-shadow: none;
}

/* ==========================================================================
   SISTEMA DE MÍDIA DE SEÇÃO (MOBILE FULL-BLEED + WIDESCREEN ORGÂNICO)
   ========================================================================== */
.stage-media,
.section-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  background-color: var(--c-midnight);
}

.bg-atmosphere {
  display: none;
}

.media-fullbleed picture,
.media-fullbleed img,
.bg-focal,
.bg-focal img {
  width: 100%;
  height: 100%;
}

.media-fullbleed img,
.bg-focal img {
  object-fit: cover;
  object-position: center center;
}

.parallax-subtle {
  will-change: transform;
  transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.03);
  transition: transform 0.12s linear;
}

/* Em telas widescreen (desktop/tablet paisagem), aproveita toda a largura organicamente
   com atmosfera contínua desfocada + plano fotográfico integrado por máscara óptica suave,
   sem coluna estreita, sem caixa e sem decapitar assuntos verticais! */
@media (min-width: 960px) {
  .stage-media .bg-atmosphere,
  .media-panoramic .bg-atmosphere {
    display: block;
    position: absolute;
    inset: -6%;
    background-size: cover;
    background-position: center center;
    filter: blur(40px) saturate(1.08) brightness(0.44);
    transform: scale(1.08);
    opacity: 0.95;
  }

  .stage-media .bg-focal,
  .media-panoramic .bg-focal {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: min(68vw, 920px);
    transform: translateX(-50%);
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 0, 0, 0.45) 9%,
      #000 22%,
      #000 78%,
      rgba(0, 0, 0, 0.45) 91%,
      transparent 100%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 0, 0, 0.45) 9%,
      #000 22%,
      #000 78%,
      rgba(0, 0, 0, 0.45) 91%,
      transparent 100%
    );
  }

  .media-panoramic .bg-focal.parallax-subtle {
    transform: translate3d(-50%, var(--parallax-y, 0px), 0) scale(1.02);
  }

  /* Composições editoriais assimétricas no desktop (Mensagem, Localização, Traje) */
  .media-panoramic.subject-left-desktop .bg-focal {
    left: 33%;
    width: min(58vw, 820px);
  }

  .media-panoramic.subject-right-desktop .bg-focal {
    left: 67%;
    width: min(58vw, 820px);
  }

  /* Preserva 100% da altura da ampulheta sem bordas verticais visíveis e sem tocar o título */
  .section-contagem {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .section-contagem .contagem-lockup {
    min-height: calc(100svh - 3rem);
  }

  .section-contagem .media-panoramic .bg-focal {
    top: 4%;
    bottom: 3%;
    width: min(60vw, calc(100svh * 0.55));
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 0, 0, 0.52) 14%,
      #000 30%,
      #000 70%,
      rgba(0, 0, 0, 0.52) 86%,
      transparent 100%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 0, 0, 0.52) 14%,
      #000 30%,
      #000 70%,
      rgba(0, 0, 0, 0.52) 86%,
      transparent 100%
    );
  }

  .section-contagem .media-panoramic .bg-focal img {
    object-fit: cover;
    object-position: center 50%;
  }

  .section-mensagem .media-panoramic .bg-focal img {
    object-position: center 22%;
  }

  .section-localizacao .media-panoramic .bg-focal img {
    object-position: center 32%;
  }

  .section-encerramento .media-panoramic .bg-focal img {
    object-position: center 26%;
  }
}

/* ==========================================================================
   01 · PORTAL DE ENTRADA
   ========================================================================== */
.portal-stage {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100svh;
  padding: max(3.2rem, 8.5vh) 1.5rem max(2.6rem, 7vh);
  transition: opacity 0.95s var(--ease-cinema), visibility 0.95s var(--ease-cinema), filter 0.95s var(--ease-cinema);
}

.portal-stage.is-exiting {
  opacity: 0;
  filter: blur(8px) brightness(1.08);
  visibility: hidden;
  pointer-events: none;
}

.portal-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 68% 44% at 50% 24%, rgba(11, 22, 39, 0.58) 0%, transparent 72%),
    linear-gradient(
      180deg,
      rgba(7, 16, 30, 0.62) 0%,
      rgba(11, 22, 39, 0.16) 42%,
      rgba(11, 22, 39, 0.22) 64%,
      rgba(7, 16, 30, 0.82) 100%
    );
}

.portal-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

.portal-crest-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-top: clamp(0.5rem, 3vh, 2.2rem);
}

.portal-title {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  font-family: var(--f-roman);
  font-weight: 400;
  font-size: clamp(1.35rem, 5.2vw, 2.05rem);
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  line-height: 1.25;
  color: var(--c-pearl);
  text-shadow: 0 2px 22px rgba(7, 16, 30, 0.85);
}

.portal-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* ==========================================================================
   02 · FILME CINEMATOGRÁFICO
   ========================================================================== */
.film-stage {
  position: fixed;
  inset: 0;
  z-index: 50;
  background-color: var(--c-midnight);
  transition: opacity 1.05s var(--ease-cinema), filter 1.05s var(--ease-cinema);
}

/* Dissolução óptica final de 1.05s para a Capa (0.8s–1.2s conforme especificação) */
.film-stage.is-dissolving-to-cover {
  opacity: 0;
  filter: blur(10px) brightness(1.08);
  pointer-events: none;
}

.film-viewport {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--c-midnight);
}

.film-ambilight {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  filter: blur(44px) saturate(1.12) brightness(0.48);
  opacity: 0.92;
  pointer-events: none;
}

.film-plane {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

@media (min-width: 960px) {
  .film-plane {
    width: min(64vw, 840px);
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 0, 0, 0.55) 8%,
      #000 20%,
      #000 80%,
      rgba(0, 0, 0, 0.55) 92%,
      transparent 100%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 0, 0, 0.55) 8%,
      #000 20%,
      #000 80%,
      rgba(0, 0, 0, 0.55) 92%,
      transparent 100%
    );
  }
}

.film-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.film-video {
  opacity: 0;
  transition: opacity 0.9s var(--ease-silk);
  will-change: opacity;
}

.film-video.is-active {
  opacity: 1;
  z-index: 2;
}

.film-video.is-outgoing {
  opacity: 0;
  z-index: 1;
}

.film-fallback {
  z-index: 1;
  animation: slowOpticalDrift 10s ease-in-out infinite alternate;
}

@keyframes slowOpticalDrift {
  from { transform: scale(1.0); }
  to { transform: scale(1.035); }
}

.film-bloom-veil {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(circle at 50% 46%, rgba(241, 239, 244, 0.34), rgba(201, 216, 232, 0.12) 58%, transparent 85%);
  opacity: 0;
  transition: opacity 1.1s var(--ease-silk);
}

.film-bloom-veil.is-blooming {
  opacity: 1;
}

.film-vignette {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(7, 16, 30, 0.52) 0%,
    transparent 20%,
    transparent 70%,
    rgba(7, 16, 30, 0.78) 100%
  );
}

.film-hud-top {
  position: absolute;
  top: max(0.85rem, env(safe-area-inset-top));
  left: max(0.75rem, env(safe-area-inset-left));
  right: max(0.75rem, env(safe-area-inset-right));
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.film-hud-top .hud-pill {
  min-height: 32px;
  padding: 0.32rem 0.68rem;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .film-hud-top {
    top: max(1.1rem, env(safe-area-inset-top));
    left: max(1.25rem, env(safe-area-inset-left));
    right: max(1.25rem, env(safe-area-inset-right));
  }

  .film-hud-top .hud-pill {
    min-height: 36px;
    padding: 0.4rem 0.9rem;
    font-size: 0.65rem;
    letter-spacing: 0.16em;
  }
}

.film-hud-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.film-captions-wrap {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: clamp(2.4rem, 7vh, 4.2rem);
  z-index: 10;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.film-caption {
  max-width: 34rem;
  padding: 0.55rem 1.15rem;
  text-align: center;
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.18rem, 4.2vw, 1.58rem);
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--c-pearl);
  text-shadow: 0 2px 16px rgba(7, 16, 30, 0.95), 0 0 28px rgba(7, 16, 30, 0.85);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.65s var(--ease-cinema), transform 0.65s var(--ease-cinema);
}

.film-caption.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.film-stage.captions-muted .film-caption {
  opacity: 0 !important;
}

.film-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(201, 216, 232, 0.16);
  z-index: 10;
}

.film-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--c-ice), var(--c-pearl));
  box-shadow: 0 0 10px rgba(241, 239, 244, 0.7);
  transition: width 0.15s linear;
}

/* ==========================================================================
   ESTRUTURA COMUM DAS SEÇÕES DO CONVITE (03 A 10)
   ========================================================================== */
.invitation-flow {
  position: relative;
  z-index: 10;
}

.inv-section {
  position: relative;
  min-height: 100svh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(3.5rem, 8vh, 6rem) clamp(1.35rem, 5vw, 4.5rem);
  overflow: clip;
}

/* Máscaras suaves nas transições entre seções escuras e seções claro-pérola */
.inv-section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  pointer-events: none;
  z-index: 3;
}

.section-mensagem::after,
.section-data::after,
.section-localizacao::after,
.section-traje::after {
  background: linear-gradient(180deg, transparent, rgba(11, 22, 39, 0.78));
}

.section-capa::after {
  background: linear-gradient(180deg, transparent, rgba(11, 22, 39, 0.24));
}

.section-content {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
}

/* Revelação óptica progressiva ao entrar na viewport */
.reveal-block {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.05s var(--ease-cinema), transform 1.05s var(--ease-cinema);
}

.reveal-block.is-inview {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   03 · CAPA (REFERÊNCIA: 03_REFINAMENTO_CAPA_DATA_COUNTDOWN.png)
   ========================================================================== */
.section-capa {
  color: var(--c-ink-on-pearl);
  text-align: center;
}

.silk-shimmer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 62% 52% at 50% 48%, rgba(246, 246, 250, 0.56) 0%, rgba(241, 239, 244, 0.16) 62%, transparent 100%);
  pointer-events: none;
}

.capa-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.85rem, 2.2vh, 1.35rem);
  max-width: 540px;
}

.capa-name {
  display: flex;
  flex-direction: column;
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(3.05rem, 11.8vw, 5.15rem);
  line-height: 0.96;
  letter-spacing: -0.01em;
  color: var(--c-ink-on-pearl);
  text-shadow: 0 1px 24px rgba(255, 255, 255, 0.85);
}

.capa-age {
  font-family: var(--f-roman);
  font-size: clamp(1.05rem, 3.6vw, 1.35rem);
  font-weight: 400;
  letter-spacing: 0.36em;
  text-indent: 0.36em;
  color: var(--c-ink-on-pearl);
}

.capa-theme {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  font-family: var(--f-roman);
  font-size: clamp(0.98rem, 3.3vw, 1.24rem);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  line-height: 1.35;
  color: var(--c-ink-on-pearl);
}

/* Revelação suave do nome somente após a dissolução óptica do filme concluir */
.section-capa.is-awaiting-reveal .capa-stagger-1,
.section-capa.is-awaiting-reveal .capa-stagger-2,
.section-capa.is-awaiting-reveal .capa-stagger-3,
.section-capa.is-awaiting-reveal .capa-stagger-4,
.section-capa.is-awaiting-reveal .capa-stagger-5 {
  opacity: 0;
  transform: translateY(12px);
}

.section-capa .capa-stagger-1,
.section-capa .capa-stagger-2,
.section-capa .capa-stagger-3,
.section-capa .capa-stagger-4,
.section-capa .capa-stagger-5 {
  transition: opacity 1.1s var(--ease-cinema), transform 1.1s var(--ease-cinema);
}

.section-capa.is-revealed .capa-stagger-1 { transition-delay: 0.08s; }
.section-capa.is-revealed .capa-stagger-2 { transition-delay: 0.28s; }
.section-capa.is-revealed .capa-stagger-3 { transition-delay: 0.52s; }
.section-capa.is-revealed .capa-stagger-4 { transition-delay: 0.72s; }
.section-capa.is-revealed .capa-stagger-5 { transition-delay: 0.95s; }

.scroll-whisper {
  position: absolute;
  bottom: max(1.4rem, 3.5vh);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  text-decoration: none;
}

.scroll-whisper-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, rgba(14, 28, 51, 0.65), transparent);
  animation: whisperPulse 2.8s ease-in-out infinite;
}

@keyframes whisperPulse {
  0%, 100% { opacity: 0.35; transform: scaleY(0.85); }
  50% { opacity: 0.9; transform: scaleY(1.08); }
}

/* ==========================================================================
   04 · MENSAGEM (SEM COBRIR ISABELLA EM NENHUM VIEWPORT)
   ========================================================================== */
.section-mensagem {
  justify-content: flex-start;
  padding-top: clamp(2.6rem, 6.2vh, 5rem);
}

/* No mobile, Isabella inicia em y ≈ 29% da imagem; posicionamos o texto na abóbada
   noturna superior (y = 5%..26%) com véu atmosférico sutil para legibilidade total sem tocá-la */
.section-mensagem .bg-focal img {
  object-position: 54% 38%;
}

.mensagem-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(7, 16, 30, 0.84) 0%,
      rgba(11, 22, 39, 0.56) 22%,
      rgba(11, 22, 39, 0.06) 36%,
      transparent 78%,
      rgba(11, 22, 39, 0.72) 100%
    );
}

.mensagem-layout {
  display: flex;
  justify-content: center;
  text-align: center;
}

.poetic-quote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  max-width: 22rem;
}

.quote-lead {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.42rem, 5.1vw, 2.25rem);
  line-height: 1.22;
  color: var(--c-pearl);
  text-shadow: 0 2px 18px rgba(7, 16, 30, 0.92);
}

.quote-coda {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.18rem, 4.2vw, 1.72rem);
  line-height: 1.28;
  color: var(--c-silver);
  text-shadow: 0 2px 16px rgba(7, 16, 30, 0.92);
}

@media (min-width: 960px) {
  .section-mensagem {
    justify-content: center;
    padding-top: 4rem;
  }

  .mensagem-shade {
    background:
      linear-gradient(
        90deg,
        rgba(7, 16, 30, 0.35) 0%,
        transparent 38%,
        rgba(7, 16, 30, 0.72) 66%,
        rgba(7, 16, 30, 0.88) 100%
      );
  }

  .mensagem-layout {
    justify-content: flex-end;
    padding-right: clamp(2rem, 6vw, 6rem);
  }

  .poetic-quote {
    max-width: 27rem;
  }
}

/* ==========================================================================
   05 · DATA (NUMERAL 15 DE CRISTAL TRANSPARENTE MONUMENTAL + HTML REAL)
   ========================================================================== */
.section-data {
  text-align: center;
}

.data-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 64% 52% at 50% 56%, rgba(11, 22, 39, 0.34) 0%, transparent 75%),
    linear-gradient(
      180deg,
      rgba(7, 16, 30, 0.38) 0%,
      transparent 30%,
      rgba(7, 16, 30, 0.56) 72%,
      rgba(7, 16, 30, 0.86) 100%
    );
}

.data-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-top: clamp(1rem, 4vh, 2.5rem);
}

.crystal-15-stage {
  position: relative;
  width: clamp(248px, 68vw, 430px);
  margin-inline: auto;
}

.crystal-15-main img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 32px rgba(7, 16, 30, 0.62)) drop-shadow(0 0 22px rgba(201, 216, 232, 0.26));
}

/* Reflexo óptico invertido sobre o mármore invernal (fiel ao refinamento oficial) */
.crystal-15-reflection {
  position: absolute;
  left: 0;
  right: 0;
  top: 99%;
  transform: scaleY(-0.28);
  transform-origin: top center;
  opacity: 0.22;
  filter: blur(4px);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78) 0%, transparent 64%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78) 0%, transparent 64%);
}

.data-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.65rem, 1.8vh, 1rem);
  margin-top: clamp(0.6rem, 2vh, 1.4rem);
}

.data-month-year {
  font-family: var(--f-roman);
  font-size: clamp(1.16rem, 4.1vw, 1.62rem);
  font-weight: 400;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: var(--c-pearl);
  text-shadow: 0 2px 18px rgba(7, 16, 30, 0.9);
}

.data-weekday-hour {
  font-family: var(--f-roman);
  font-size: clamp(0.84rem, 2.8vw, 1.04rem);
  font-weight: 400;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: var(--c-silver);
  text-shadow: 0 2px 16px rgba(7, 16, 30, 0.9);
}

.mid-dot {
  opacity: 0.72;
}

/* ==========================================================================
   06 · LOCALIZAÇÃO (CASTELO DA ALVORADA · ALDEIA)
   ========================================================================== */
.section-localizacao {
  justify-content: flex-end;
  padding-bottom: clamp(2.8rem, 7vh, 5rem);
  text-align: center;
}

.section-localizacao .bg-focal img {
  object-position: center 26%;
}

.local-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 16, 30, 0.22) 0%,
    transparent 38%,
    rgba(7, 16, 30, 0.68) 64%,
    rgba(7, 16, 30, 0.92) 100%
  );
}

.local-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  max-width: 480px;
}

.section-eyebrow {
  font-family: var(--f-sans);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--c-ice);
  text-transform: uppercase;
}

.local-venue {
  display: flex;
  flex-direction: column;
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(2.45rem, 9vw, 3.8rem);
  line-height: 1.02;
  color: var(--c-pearl);
  text-shadow: 0 2px 22px rgba(7, 16, 30, 0.9);
}

.local-region {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.32rem, 4.4vw, 1.75rem);
  letter-spacing: 0.06em;
  color: var(--c-silver);
}

.local-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.45rem;
}

.micro-disclaimer {
  font-family: var(--f-sans);
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(201, 216, 232, 0.68);
}

@media (min-width: 960px) {
  .section-localizacao {
    justify-content: center;
    padding-bottom: 4rem;
  }

  .local-shade {
    background: linear-gradient(
      90deg,
      rgba(7, 16, 30, 0.25) 0%,
      transparent 38%,
      rgba(7, 16, 30, 0.76) 66%,
      rgba(7, 16, 30, 0.92) 100%
    );
  }

  .local-lockup {
    margin-left: auto;
    margin-right: clamp(2rem, 6vw, 6rem);
  }
}

/* ==========================================================================
   07 · TRAJE E PALETA (OS TECIDOS SÃO AS AMOSTRAS PRINCIPAIS)
   ========================================================================== */
.section-traje {
  justify-content: space-between;
  padding-top: clamp(2.8rem, 6.5vh, 4.8rem);
  padding-bottom: clamp(2rem, 5vh, 3.8rem);
  text-align: center;
}

.section-traje .bg-focal img {
  object-position: center bottom;
}

.traje-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 16, 30, 0.86) 0%,
    rgba(11, 22, 39, 0.58) 34%,
    rgba(11, 22, 39, 0.08) 54%,
    rgba(7, 16, 30, 0.56) 88%,
    rgba(7, 16, 30, 0.84) 100%
  );
}

.traje-lockup {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: calc(100svh - clamp(4.8rem, 11.5vh, 8.6rem));
  gap: 2rem;
}

.traje-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  max-width: 26rem;
}

.traje-title {
  display: flex;
  flex-direction: column;
  font-family: var(--f-roman);
  font-weight: 400;
  font-size: clamp(1.85rem, 6.8vw, 2.85rem);
  line-height: 1.15;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  color: var(--c-pearl);
  text-shadow: 0 2px 20px rgba(7, 16, 30, 0.9);
}

.traje-poetic {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.28rem, 4.4vw, 1.72rem);
  line-height: 1.3;
  color: var(--c-silver);
  text-shadow: 0 2px 16px rgba(7, 16, 30, 0.9);
}

.paleta-editorial {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  max-width: 34rem;
}

.paleta-caption {
  font-family: var(--f-sans);
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  color: rgba(241, 239, 244, 0.82);
  text-shadow: 0 1px 10px rgba(7, 16, 30, 0.95);
}

.paleta-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 0.95rem;
}

.paleta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.paleta-pearl {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.55), var(--swatch) 62%);
  border: 1px solid rgba(241, 239, 244, 0.68);
  box-shadow: 0 2px 8px rgba(7, 16, 30, 0.65);
  flex-shrink: 0;
}

.paleta-name {
  font-family: var(--f-serif);
  font-size: clamp(0.95rem, 2.8vw, 1.08rem);
  letter-spacing: 0.04em;
  color: var(--c-pearl);
  text-shadow: 0 1px 12px rgba(7, 16, 30, 0.95);
}

@media (min-width: 960px) {
  .section-traje {
    justify-content: center;
  }

  .traje-shade {
    background: linear-gradient(
      90deg,
      rgba(7, 16, 30, 0.92) 0%,
      rgba(7, 16, 30, 0.76) 38%,
      transparent 66%,
      rgba(7, 16, 30, 0.28) 100%
    );
  }

  .traje-lockup {
    min-height: auto;
    align-items: flex-start;
    text-align: left;
    margin-right: auto;
    margin-left: clamp(2rem, 6vw, 6rem);
    max-width: 28rem;
    gap: 2.4rem;
  }

  .traje-header {
    align-items: flex-start;
  }

  .traje-header .editorial-rule {
    margin-inline: 0;
  }

  .traje-title {
    text-indent: 0;
  }

  .paleta-editorial {
    align-items: flex-start;
  }

  .paleta-caption {
    text-indent: 0;
  }

  .paleta-list {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   08 · CONTAGEM REGRESSIVA (AMPULHETA FOTOGRÁFICA + NUMERAIS SEM CAIXAS)
   ========================================================================== */
.section-contagem {
  justify-content: space-between;
  padding-top: clamp(2.2rem, 5vh, 3.6rem);
  padding-bottom: clamp(2rem, 4.8vh, 3.6rem);
  text-align: center;
}

.section-contagem .bg-focal img {
  object-position: center 44%;
}

.contagem-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 16, 30, 0.72) 0%,
    rgba(11, 22, 39, 0.14) 20%,
    transparent 68%,
    rgba(7, 16, 30, 0.68) 82%,
    rgba(7, 16, 30, 0.9) 100%
  );
}

/* Grãos discretos no gargalo da ampulheta fotográfica (sem redesenhar a ampulheta) */
.hourglass-glints {
  position: absolute;
  left: 50%;
  top: 47%;
  width: 8px;
  height: 11%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2;
}

.sand-grain {
  position: absolute;
  left: 50%;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--c-pearl);
  box-shadow: 0 0 6px rgba(241, 239, 244, 0.9);
  opacity: 0;
  animation: grainFall 2.8s linear infinite;
}

.sand-grain.g1 { animation-delay: 0s; margin-left: -1px; }
.sand-grain.g2 { animation-delay: 0.7s; margin-left: 0.5px; }
.sand-grain.g3 { animation-delay: 1.4s; margin-left: -0.5px; }
.sand-grain.g4 { animation-delay: 2.1s; margin-left: 0px; }

@keyframes grainFall {
  0% { top: 0%; opacity: 0; }
  20% { opacity: 0.85; }
  85% { opacity: 0.65; }
  100% { top: 100%; opacity: 0; }
}

.contagem-lockup {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: calc(100svh - clamp(4.2rem, 9.8vh, 7.2rem));
}

.contagem-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.contagem-title {
  display: flex;
  flex-direction: column;
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.32rem, 4.4vw, 1.85rem);
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  line-height: 1.3;
  color: var(--c-pearl);
  text-shadow: 0 2px 18px rgba(7, 16, 30, 0.92);
}

.contagem-spacer {
  flex: 1;
  min-height: clamp(260px, 50vh, 520px);
}

.contagem-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.75rem, 2vh, 1.15rem);
  width: 100%;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(58px, 1fr));
  gap: clamp(0.65rem, 3.8vw, 2.4rem);
  width: min(460px, 92vw);
  margin-inline: auto;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
}

.cd-number {
  font-family: var(--f-serif);
  font-weight: 400;
  font-variant-numeric: lining-nums tabular-nums;
  font-size: clamp(2.35rem, 8.6vw, 3.55rem);
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--c-pearl);
  text-shadow: 0 2px 20px rgba(7, 16, 30, 0.95);
}

.cd-label {
  font-family: var(--f-roman);
  font-size: clamp(0.64rem, 2vw, 0.76rem);
  font-weight: 400;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  color: var(--c-silver);
}

.countdown-arrived {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(1.85rem, 6vw, 2.6rem);
  color: var(--c-pearl);
  letter-spacing: 0.05em;
  text-shadow: 0 2px 20px rgba(7, 16, 30, 0.95);
}

/* ==========================================================================
   09 · CONFIRMAÇÃO (SEDA PEROLADA + TIPOGRAFIA E BOTÃO AZUL-NOTURNO)
   ========================================================================== */
.section-confirmacao {
  color: var(--c-ink-on-pearl);
  text-align: center;
}

.confirmacao-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.85rem, 2.2vh, 1.3rem);
  max-width: 480px;
}

.confirmacao-title {
  display: flex;
  flex-direction: column;
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 9.2vw, 3.85rem);
  line-height: 1.02;
  color: var(--c-ink-on-pearl);
  text-shadow: 0 1px 22px rgba(255, 255, 255, 0.85);
}

.confirmacao-deadline {
  font-family: var(--f-roman);
  font-size: clamp(0.84rem, 2.8vw, 1.02rem);
  font-weight: 400;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  color: var(--c-ink-muted);
}

.confirmacao-cta {
  margin-top: 0.45rem;
}

/* ==========================================================================
   10 · ENCERRAMENTO (NOS VEMOS NO BAILE · MONOGRAMA XV · SEM COBRIR ISABELLA)
   ========================================================================== */
.section-encerramento {
  justify-content: flex-end;
  padding-bottom: clamp(1.5rem, 3.8vh, 3.2rem);
  text-align: center;
}

@media (max-width: 959px) {
  .section-encerramento .section-media {
    height: 82%;
    bottom: auto;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 76%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 76%, transparent 100%);
  }

  .section-encerramento .bg-focal img {
    object-position: center 22%;
  }
}

.encerramento-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 16, 30, 0.28) 0%,
    transparent 24%,
    transparent 68%,
    rgba(7, 16, 30, 0.78) 85%,
    rgba(7, 16, 30, 0.95) 100%
  );
}

.encerramento-lockup {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  min-height: calc(100svh - clamp(4.4rem, 11vh, 8rem));
}

.encerramento-spacer {
  flex: 1;
}

.encerramento-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.encerramento-phrase {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.05rem, 7.2vw, 3.1rem);
  line-height: 1.08;
  color: var(--c-pearl);
  text-shadow: 0 2px 22px rgba(7, 16, 30, 0.95);
}

.replay-wrap {
  margin-top: 0.25rem;
}

@media (min-width: 960px) {
  .section-encerramento {
    justify-content: center;
    padding-bottom: 4rem;
  }

  .encerramento-shade {
    background: linear-gradient(
      90deg,
      rgba(7, 16, 30, 0.22) 0%,
      transparent 38%,
      rgba(7, 16, 30, 0.74) 66%,
      rgba(7, 16, 30, 0.92) 100%
    );
  }

  .encerramento-lockup {
    min-height: auto;
    align-items: center;
    margin-left: auto;
    margin-right: clamp(2.5rem, 8vw, 7rem);
    max-width: 24rem;
  }

  .encerramento-spacer {
    display: none;
  }
}

/* ==========================================================================
   DIÁLOGO EDITORIAL HONESTO DE DEPENDÊNCIA DE RSVP
   ========================================================================== */
.editorial-dialog {
  margin: auto;
  border: 1px solid rgba(201, 216, 232, 0.42);
  background: linear-gradient(180deg, rgba(16, 31, 54, 0.96), rgba(9, 18, 33, 0.98));
  color: var(--c-pearl);
  padding: 0;
  width: min(440px, calc(100vw - 2rem));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75);
}

.editorial-dialog::backdrop {
  background: rgba(5, 11, 22, 0.76);
  backdrop-filter: blur(6px);
}

.dialog-surface {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 2.2rem 1.75rem;
}

.dialog-crest {
  width: 78px;
}

.dialog-title {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 1.85rem;
}

.dialog-copy {
  font-family: var(--f-serif);
  font-size: 1.15rem;
  color: var(--c-silver);
}

.dialog-dependency {
  font-family: var(--f-sans);
  font-size: 0.76rem;
  line-height: 1.6;
  color: rgba(201, 216, 232, 0.82);
  background: rgba(35, 60, 89, 0.34);
  border: 1px solid rgba(140, 169, 198, 0.28);
  padding: 0.85rem 1rem;
}

.dialog-dependency code {
  color: var(--c-pearl);
}

/* ==========================================================================
   ACESSIBILIDADE E REDUÇÃO DE MOVIMENTO (prefers-reduced-motion)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.15s !important;
  }

  .snow-canvas,
  .hourglass-glints {
    display: none !important;
  }

  .parallax-subtle {
    transform: none !important;
  }

  .reveal-block {
    opacity: 1 !important;
    transform: none !important;
  }
}
