/* ==========================================================================
   Splash / loading da capa
   ========================================================================== */
html.is-booting {
  overflow: hidden;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
  background:
    radial-gradient(900px 480px at 50% 18%, rgba(246, 208, 74, 0.16), transparent 58%),
    radial-gradient(700px 420px at 80% 90%, rgba(31, 111, 122, 0.1), transparent 55%),
    linear-gradient(165deg, #eef6f5 0%, #f4efe6 48%, #fffcf8 100%);
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}

.splash.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 22rem;
  animation: splash-rise 1s var(--ease) both;
}

.splash__rings {
  width: min(6.75rem, 32vw);
  margin-bottom: 1.65rem;
  animation: splash-rings-spin 8s linear infinite;
}

.splash__rings-svg {
  width: 100%;
  height: auto;
  overflow: visible;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(58, 40, 20, 0.12));
}

.splash__lead {
  margin: 0 0 0.85rem;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #12343f;
}

.splash__names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
  margin: 0;
  font-family: var(--font-script);
  font-size: clamp(2.1rem, 8vw, 3.1rem);
  line-height: 1.05;
  color: var(--gold);
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.55))
    drop-shadow(0 6px 14px rgba(255, 255, 255, 0.35));
}

.splash__name {
  display: block;
}

.splash__amp {
  display: block;
  margin: -0.12em 0;
  font-size: 0.55em;
  line-height: 1;
  color: var(--gold-deep);
}

@media (prefers-reduced-motion: reduce) {
  .splash__inner,
  .splash__rings {
    animation: none;
  }
}


.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--sea-deep);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--sea);
  text-decoration: none;
}

.hero {
  --hero-video-h: min(70vw, 100svh);
  --hero-fade-h: max(7rem, calc(var(--hero-video-h) * 0.34));
  --hero-tail: max(11rem, calc(var(--hero-video-h) * 0.28));
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(var(--hero-video-h) + var(--hero-tail));
  color: var(--white);
  background: var(--mist);
}

.hero__media {
  position: relative;
  z-index: 0;
  width: 100%;
  height: var(--hero-video-h);
  flex: 0 0 auto;
  pointer-events: none;
  /* O próprio vídeo some na base — evita corte seco em qualquer proporção */
  -webkit-mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 calc(100% - var(--hero-fade-h)),
    rgba(0, 0, 0, 0.55) calc(100% - (var(--hero-fade-h) * 0.45)),
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 calc(100% - var(--hero-fade-h)),
    rgba(0, 0, 0, 0.55) calc(100% - (var(--hero-fade-h) * 0.45)),
    transparent 100%
  );
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  opacity: 1;
  /* iOS: o botão nativo de play precisa receber o toque (pai tem pointer-events: none) */
  pointer-events: auto;
}

/* Esconde o botão gigante do iOS quando o JS já consegue tocar (evita overlay “morto”) */
.hero__video.is-playing::-webkit-media-controls-start-playback-button,
.historia__video.is-playing::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

/* Leve escurecida só para o texto continuar legível */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 1;
  background: linear-gradient(
    180deg,
    rgba(10, 40, 48, 0.1) 0%,
    rgba(10, 40, 48, 0.05) 48%,
    rgba(10, 40, 48, 0.1) 72%,
    transparent 100%
  );
}

/* Fade inferior: mistura com o fundo claro (--mist) */
.hero__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--hero-fade-h);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(232, 242, 241, 0) 0%,
    rgba(232, 242, 241, 0.35) 28%,
    var(--mist) 78%,
    var(--mist) 100%
  );
}

/* Título: sobe ao rolar; em ≥1180px começa transparente e mais embaixo */
.hero__content {
  --hero-copy-reveal: 0;
  --hero-copy-fade: 1;
  --hero-copy-rise: 0.7rem;
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin-top: calc(var(--hero-fade-h) * -0.3);
  margin-bottom: auto;
  padding: 0 var(--space-4, 1.25rem) 0.75rem;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  pointer-events: none;
  opacity: var(--hero-copy-fade);
  transform: translate3d(0, calc((1 - var(--hero-copy-reveal)) * var(--hero-copy-rise)), 0);
  will-change: transform, opacity;
}

.hero__content > * {
  pointer-events: auto;
}

@media (min-width: 1180px) {
  .hero__content {
    --hero-copy-fade: 0;
    --hero-copy-rise: 2.75rem;
    /* Nomes empilhados: sobe o bloco pra não colidir com a cabeça dos noivos */
    margin-top: calc(var(--hero-fade-h) * -0.52);
  }

  .couple-dock {
    margin-top: calc(-0.5rem + 56px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__content {
    --hero-copy-reveal: 1;
    --hero-copy-fade: 1;
    opacity: 1;
    transform: none;
    will-change: auto;
  }
}

@media (max-width: 720px) and (orientation: portrait) {
  .hero {
    /* +30% sobre o tamanho anterior deste breakpoint */
    --hero-video-h: min(118vw, 75svh);
    --hero-fade-h: max(8rem, calc(var(--hero-video-h) * 0.36));
    --hero-tail: max(18rem, calc(var(--hero-video-h) * 0.55));
  }

  .hero__content {
    /* Começa bem mais abaixo; sobe ao rolar */
    --hero-copy-rise: min(22vw, 5.75rem);
    margin-top: calc(var(--hero-fade-h) * -0.08);
    padding-top: 1.25rem;
  }
}

.hero__title {
  --hero-gold: #e8b82a;
  --hero-gold-hi: #f6d04a;
  --hero-gold-shine: #fff4b0;
  --hero-bronze: #2e1f0e;
  margin: 0;
  color: var(--hero-gold);
  text-align: center;
  text-wrap: balance;
}

.hero__title-lead {
  display: block;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(0.8rem, 1.85vw, 0.98rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: -0.85rem 0 1.35rem;
  color: #000;
}

/* Contorno só por fora (drop-shadow) — text-stroke comeria a letra por dentro */
.hero__name {
  filter:
    drop-shadow(0.4px 0 0 rgba(46, 31, 14, 0.35))
    drop-shadow(-0.4px 0 0 rgba(46, 31, 14, 0.35))
    drop-shadow(0 0.4px 0 rgba(46, 31, 14, 0.35))
    drop-shadow(0 -0.4px 0 rgba(46, 31, 14, 0.35))
    drop-shadow(0 1px 2px rgba(255, 255, 255, 0.55))
    drop-shadow(1px 3px 8px rgba(255, 255, 255, 0.7))
    drop-shadow(2px 6px 16px rgba(255, 255, 255, 0.45));
}

.hero__lead-word + .hero__lead-word::before {
  content: "\00a0";
}

.hero__title-names {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-family: var(--font-script);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(2.35rem, 7.2vw, 4.35rem);
  line-height: 1.05;
  letter-spacing: 0.03em;
  color: var(--hero-gold);
}

.hero__name {
  color: var(--hero-gold);
  background-image: linear-gradient(
    115deg,
    var(--hero-gold) 0%,
    var(--hero-gold) 40%,
    var(--hero-gold-shine) 49%,
    var(--hero-gold-hi) 52%,
    var(--hero-gold) 60%,
    var(--hero-gold) 100%
  );
  background-size: 240% 100%;
  background-position: 100% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Contorno leve pra dentro — afina um pouco a letra */
  -webkit-text-stroke: 0.12px rgba(46, 31, 14, 0.4);
  paint-order: stroke fill;
  animation: hero-gold-shine 5.5s ease-in-out infinite 0.15s;
}

.hero__amp {
  display: inline-block;
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 400;
  font-size: 0.32em;
  line-height: 1;
  transform: none;
  margin: -0.35em 0;
  color: var(--hero-gold);
  background-image: linear-gradient(
    115deg,
    var(--hero-gold) 0%,
    var(--hero-gold) 40%,
    var(--hero-gold-shine) 49%,
    var(--hero-gold-hi) 52%,
    var(--hero-gold) 60%,
    var(--hero-gold) 100%
  );
  background-size: 240% 100%;
  background-position: 100% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.12px rgba(46, 31, 14, 0.4);
  paint-order: stroke fill;
  filter: none;
  animation: hero-gold-shine 5.5s ease-in-out infinite 0.3s;
}

.countdown-block {
  --countdown-reveal: 0;
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin: calc(-0.25rem - 90px) auto 1.75rem;
  padding: 0 var(--space-4, 1.25rem);
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 200;
  opacity: var(--countdown-reveal);
  transform: translate3d(0, calc((1 - var(--countdown-reveal)) * 1.375rem), 0);
  will-change: opacity, transform;
  pointer-events: none;
}

.countdown-block__units {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 4.35rem;
  padding: 0.7rem 0.55rem 0.55rem;
  border-radius: 12px;
  background: rgba(232, 184, 42, 0.06);
  border: 1px solid rgba(232, 184, 42, 0.28);
  box-shadow: none;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.countdown-unit__value {
  font-family: var(--font-sans);
  font-weight: 200;
  font-size: clamp(1.45rem, 4.5vw, 1.9rem);
  line-height: 1;
  color: var(--sea-deep);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.countdown-unit__label {
  margin-top: 0.35rem;
  font-size: 0.68rem;
  font-weight: 200;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(46, 31, 14, 0.62);
}

.countdown-block__caption {
  margin: 0.35rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 200;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sea-deep);
}

@media (prefers-reduced-motion: reduce) {
  .countdown-block {
    --countdown-reveal: 1;
    opacity: 1;
    transform: none;
    will-change: auto;
  }
}

/* Mobile: só ajusta a contagem; título fica no mesmo formato do desktop */
@media (max-width: 720px) and (orientation: portrait) {
  .countdown-block {
    /* Desce 80px em relação à margem base (-90px) */
    margin: calc(-0.25rem - 10px) auto 1.75rem;
  }

  .countdown-block__units {
    gap: 0.4rem;
  }

  .countdown-unit {
    min-width: 3.7rem;
    padding: 0.55rem 0.4rem 0.45rem;
  }

  .countdown-unit__value {
    font-size: clamp(1.2rem, 5.5vw, 1.55rem);
  }

  .countdown-unit__label {
    font-size: 0.62rem;
  }
}

/* Mobile: contorno do título da capa mais fino */
@media (max-width: 720px) {
  .hero__name {
    filter:
      drop-shadow(0.25px 0 0 rgba(46, 31, 14, 0.28))
      drop-shadow(-0.25px 0 0 rgba(46, 31, 14, 0.28))
      drop-shadow(0 0.25px 0 rgba(46, 31, 14, 0.28))
      drop-shadow(0 -0.25px 0 rgba(46, 31, 14, 0.28))
      drop-shadow(0 1px 2px rgba(255, 255, 255, 0.5))
      drop-shadow(1px 3px 8px rgba(255, 255, 255, 0.65))
      drop-shadow(2px 5px 14px rgba(255, 255, 255, 0.4));
    -webkit-text-stroke: 0.08px rgba(46, 31, 14, 0.35);
  }
}

/* Casal: ocultos no topo; no scroll entram dos lados e pousam no dock (abaixo do título) */
.couple-dock {
  position: relative;
  z-index: 4;
  height: clamp(11rem, 32vw, 17rem);
  margin-top: calc(-2.75rem + 40px);
  margin-bottom: 0.35rem;
  pointer-events: none;
}

.couple-stage {
  --couple-p: 0;
  --couple-gap: clamp(3.25rem, 5.5vw, 4.75rem);
  /* Noiva um pouco menor que o noivo */
  --couple-bride-scale: 0.92;
  pointer-events: none;
}

/* Antes do JS: não flutuam na viewport (evita bug no reload no fim da página) */
.couple-stage:not(.is-flying):not(.is-parked) .couple-figure {
  opacity: 0;
}

.couple-stage.is-flying {
  position: fixed;
  inset: 0;
  z-index: 3;
}

.couple-stage.is-parked {
  position: absolute;
  inset: 0;
  z-index: 4;
  --couple-p: 1;
}

.couple-figure {
  position: absolute;
  left: 50%;
  /* Desktop: ~20px mais baixo que o original (não cobre o título) */
  bottom: calc(1% - 20px + (var(--couple-p) * 1.5%));
  height: min(78vh, 680px);
  width: auto;
  max-width: min(52vw, 480px);
  object-fit: contain;
  object-position: bottom center;
  transform-origin: bottom center;
  filter: drop-shadow(0 12px 28px rgba(10, 40, 48, 0.28));
  opacity: clamp(0, calc(var(--couple-p) * 9), 1);
  will-change: transform, opacity;
}

.couple-stage.is-parked .couple-figure {
  /* Pouso — não cobre o título */
  bottom: 20px;
  height: calc(min(78vh, 680px) * 0.5);
  max-width: calc(min(52vw, 480px) * 0.5);
  opacity: 1;
}

.couple-figure--bride {
  height: calc(min(78vh, 680px) * var(--couple-bride-scale));
  max-width: calc(min(52vw, 480px) * var(--couple-bride-scale));
  transform:
    translate3d(calc(-50% + ((1 - var(--couple-p)) * -58vw) - (var(--couple-p) * var(--couple-gap))), 0, 0)
    scale(calc(1 - var(--couple-p) * 0.5));
}

.couple-figure--groom {
  transform:
    translate3d(calc(-50% + ((1 - var(--couple-p)) * 58vw) + (var(--couple-p) * var(--couple-gap))), 0, 0)
    scale(calc(1 - var(--couple-p) * 0.5));
}

.couple-stage.is-parked .couple-figure--bride {
  height: calc(min(78vh, 680px) * 0.5 * var(--couple-bride-scale));
  max-width: calc(min(52vw, 480px) * 0.5 * var(--couple-bride-scale));
  transform: translate3d(calc(-50% - var(--couple-gap)), 0, 0) scale(1);
}

.couple-stage.is-parked .couple-figure--groom {
  transform: translate3d(calc(-50% + var(--couple-gap)), 0, 0) scale(1);
}

@media (max-width: 720px) {
  .couple-dock {
    height: clamp(9rem, 40vw, 13rem);
    margin-top: -5.5rem;
  }

  .couple-stage {
    /* Podem quase encostar; só sem avançar demais um sob o outro */
    --couple-gap: clamp(3.25rem, 12vw, 4.75rem);
    /* Noiva um pouco mais baixa que no desktop */
    --couple-bride-scale: 0.87;
  }

  .couple-figure {
    /* Mobile: sobe um pouco enquanto encolhe — evita “afundar” antes do pouso */
    bottom: calc(8% + (var(--couple-p) * 8%));
    height: min(64vh, 520px);
    max-width: min(54vw, 300px);
  }

  .couple-stage.is-parked .couple-figure {
    height: calc(min(64vh, 520px) * 0.6);
    max-width: calc(min(54vw, 300px) * 0.6);
  }

  .couple-figure--bride {
    height: calc(min(64vh, 520px) * var(--couple-bride-scale));
    max-width: calc(min(54vw, 300px) * var(--couple-bride-scale));
    transform:
      translate3d(calc(-50% + ((1 - var(--couple-p)) * -64vw) - (var(--couple-p) * var(--couple-gap))), 0, 0)
      scale(calc(1 - var(--couple-p) * 0.4));
  }

  .couple-figure--groom {
    transform:
      translate3d(calc(-50% + ((1 - var(--couple-p)) * 64vw) + (var(--couple-p) * var(--couple-gap))), 0, 0)
      scale(calc(1 - var(--couple-p) * 0.4));
  }

  .couple-stage.is-parked .couple-figure--bride {
    height: calc(min(64vh, 520px) * 0.6 * var(--couple-bride-scale));
    max-width: calc(min(54vw, 300px) * 0.6 * var(--couple-bride-scale));
    transform: translate3d(calc(-50% - var(--couple-gap)), 0, 0) scale(1);
  }

  .couple-stage.is-parked .couple-figure--groom {
    transform: translate3d(calc(-50% + var(--couple-gap)), 0, 0) scale(1);
  }
}

/* Mobile retrato: dock + figuras mais abaixo (margin sozinha era anulada pelo FLIP) */
@media (max-width: 720px) and (orientation: portrait) {
  .couple-dock {
    margin-top: calc(-5.5rem + 70px);
  }

  .couple-figure {
    bottom: calc(8% - 30px + (var(--couple-p) * 8%));
  }

  .couple-stage.is-parked .couple-figure {
    bottom: -30px;
  }
}

/* Mobile paisagem: texto some→aparece; noivos mais rápidos, maiores e mais juntos */
@media (orientation: landscape) and (max-height: 520px) {
  .hero__content {
    --hero-copy-fade: 0;
    --hero-copy-rise: 2.25rem;
    margin-top: calc(var(--hero-fade-h) * -0.55);
  }

  .couple-dock {
    margin-top: calc(-1rem + 68px);
    height: clamp(7.5rem, 42vh, 11rem);
  }

  .countdown-block {
    margin: calc(-0.25rem + 60px) auto 1.75rem;
  }

  .couple-stage {
    --couple-gap: clamp(3.5rem, 7.5vw, 5rem);
    --couple-bride-scale: 0.9;
  }

  .couple-figure {
    /* Animação ~65px mais abaixo neste formato (−85 + 20) */
    bottom: calc(4% - 65px + (var(--couple-p) * 3%));
    height: min(90vh, 400px);
    max-width: min(40vw, 260px);
  }

  .couple-figure--bride {
    height: calc(min(90vh, 400px) * var(--couple-bride-scale));
    max-width: calc(min(40vw, 260px) * var(--couple-bride-scale));
    transform:
      translate3d(calc(-50% + ((1 - var(--couple-p)) * -50vw) - (var(--couple-p) * var(--couple-gap))), 0, 0)
      scale(calc(1 - var(--couple-p) * 0.22));
  }

  .couple-figure--groom {
    transform:
      translate3d(calc(-50% + ((1 - var(--couple-p)) * 50vw) + (var(--couple-p) * var(--couple-gap))), 0, 0)
      scale(calc(1 - var(--couple-p) * 0.22));
  }

  .couple-stage.is-parked .couple-figure {
    bottom: -65px;
    height: calc(min(90vh, 400px) * 0.78);
    max-width: calc(min(40vw, 260px) * 0.78);
  }

  .couple-stage.is-parked .couple-figure--bride {
    height: calc(min(90vh, 400px) * 0.78 * var(--couple-bride-scale));
    max-width: calc(min(40vw, 260px) * 0.78 * var(--couple-bride-scale));
    transform: translate3d(calc(-50% - var(--couple-gap)), 0, 0) scale(1);
  }

  .couple-stage.is-parked .couple-figure--groom {
    transform: translate3d(calc(-50% + var(--couple-gap)), 0, 0) scale(1);
  }
}

@media (max-width: 720px) and (orientation: landscape) {
  .hero__content {
    margin-top: calc(var(--hero-fade-h) * -0.48);
  }

  .couple-dock {
    margin-top: calc(-3.5rem + 28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .couple-stage {
    --couple-p: 1;
  }

  .couple-stage.is-flying {
    position: absolute;
    inset: 0;
  }

  .couple-stage.is-flying .couple-figure,
  .couple-stage.is-parked .couple-figure {
    bottom: 0;
    height: calc(min(78vh, 680px) * 0.48);
    max-width: calc(min(52vw, 480px) * 0.48);
    opacity: 1;
  }

  .couple-stage.is-flying .couple-figure--bride,
  .couple-stage.is-parked .couple-figure--bride {
    height: calc(min(78vh, 680px) * 0.48 * var(--couple-bride-scale));
    max-width: calc(min(52vw, 480px) * 0.48 * var(--couple-bride-scale));
    transform: translate3d(calc(-50% - var(--couple-gap)), 0, 0) scale(1);
  }

  .couple-stage.is-flying .couple-figure--groom,
  .couple-stage.is-parked .couple-figure--groom {
    transform: translate3d(calc(-50% + var(--couple-gap)), 0, 0) scale(1);
  }
}

#festa,
#historia,
#convite,
#presentes,
#momentos {
  position: relative;
  z-index: 5;
  scroll-margin-top: 1.25rem;
}

.festa-intro {
  text-align: center;
}

.festa-intro .section__lead {
  margin-inline: auto;
  max-width: 36rem;
}

.festa-board {
  max-width: 34rem;
  margin-inline: auto;
  padding: 1.5rem 1.35rem 1.65rem;
  background:
    linear-gradient(165deg, rgba(255, 252, 248, 0.92) 0%, rgba(232, 242, 241, 0.72) 100%);
  border: 1px solid rgba(15, 61, 72, 0.08);
  border-radius: calc(var(--radius-lg) + 6px);
  box-shadow: 0 18px 40px rgba(18, 52, 63, 0.06);
}

.festa-kicker {
  margin: 0 0 0.45rem;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.festa-when {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  padding-bottom: 1.35rem;
  margin-bottom: 1.35rem;
  border-bottom: 1px solid rgba(232, 184, 42, 0.35);
  text-align: center;
}

.festa-when__rule {
  display: none;
}

.festa-when__value {
  margin: 0;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(1.55rem, 4.2vw, 2rem);
  line-height: 1.2;
  color: var(--sea-deep);
}

@media (min-width: 640px) {
  .festa-when {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
  }

  .festa-when__rule {
    display: block;
    width: 1px;
    height: 3.25rem;
    background: linear-gradient(180deg, transparent, rgba(232, 184, 42, 0.7), transparent);
  }
}

.festa-venue {
  text-align: center;
  padding-bottom: 1.35rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid rgba(15, 61, 72, 0.08);
}

.festa-venue__name {
  margin: 0 0 0.45rem;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(1.2rem, 3.2vw, 1.45rem);
  line-height: 1.3;
  color: var(--sea-deep);
  letter-spacing: -0.01em;
}

.festa-venue__address {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.festa-venue__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1rem;
  margin-top: 1rem;
}

.festa-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.35rem 1rem;
  border: 1px solid rgba(232, 184, 42, 0.55);
  border-radius: 999px;
  background: rgba(255, 252, 248, 0.7);
  color: var(--sea-deep);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.festa-link:hover {
  background: linear-gradient(45deg, #f8e48a 0%, var(--gold-soft) 55%, var(--gold) 100%);
  border-color: rgba(201, 150, 32, 0.55);
  color: var(--sea-deep);
  text-decoration: none;
  transform: translateY(-1px);
}

.festa-note {
  text-align: center;
  padding: 0.85rem 0.25rem 0;
}

.festa-note + .festa-note {
  margin-top: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 61, 72, 0.08);
}

.festa-note__text {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  text-wrap: pretty;
}

.festa-note__text strong {
  font-weight: 500;
  color: var(--sea-deep);
}

/* Nossa história — mural / masonry + molduras */
.historia__intro {
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
}

.historia__intro .section__lead {
  margin-inline: auto;
}

.historia__mural {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 0;
  column-count: 2;
  column-gap: clamp(0.75rem, 2.5vw, 1.35rem);
}

@media (min-width: 720px) {
  .historia__mural {
    column-count: 3;
  }
}

@media (min-width: 1100px) {
  .historia__mural {
    column-count: 4;
  }
}

.historia__piece {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin: 0 0 clamp(0.85rem, 2.5vw, 1.4rem);
  opacity: 0;
  transform: translate3d(0, 1.1rem, 0) rotate(var(--historia-tilt, 0deg));
  transition:
    opacity 0.75s var(--ease),
    transform 0.75s var(--ease);
}

.historia__piece.is-in {
  opacity: 1;
  transform: rotate(var(--historia-tilt, 0deg));
}

.historia__piece--sm {
  width: 88%;
  margin-inline: auto;
}

.historia__piece--md {
  width: 100%;
}

.historia__piece--lg {
  width: 100%;
}

@media (min-width: 720px) {
  .historia__piece--sm {
    width: 82%;
  }

  .historia__piece--lg {
    width: 100%;
    transform: translate3d(0, 1.1rem, 0) rotate(var(--historia-tilt, 0deg)) scale(1.02);
  }

  .historia__piece--lg.is-in {
    transform: rotate(var(--historia-tilt, 0deg)) scale(1.02);
  }
}

.historia__figure {
  margin: 0;
}

.historia__mat {
  overflow: hidden;
  background: #1a1210;
}

.historia__img {
  width: 100%;
  height: auto;
  max-height: none;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.historia__piece--lg .historia__img {
  aspect-ratio: 3 / 4;
}

.historia__piece--sm .historia__img {
  aspect-ratio: 1 / 1;
}

/* Retrato em movimento (vídeo na moldura) */
.historia__piece--video {
  --historia-tilt: 1.1deg;
}

.historia__mat--video {
  position: relative;
}

.historia__video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 3 / 4;
  background: #1a1210;
  /* Toque no iOS para retomar se o autoplay for bloqueado (Low Power Mode etc.) */
  pointer-events: auto;
}

.historia__piece--video .historia__video {
  aspect-ratio: 3 / 4;
}

.historia__piece--landscape .historia__img,
.historia__piece--landscape .historia__video {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.historia__piece--landscape.historia__piece--video .historia__video {
  aspect-ratio: 3 / 2;
}

.historia__piece--landscape {
  width: 100%;
}

/* Sequência nome-1 / nome-2… (JS controla o avanço; vídeo espera o fim) */
.historia__mat--stack {
  --stack-n: 2;
  position: relative;
}

.historia__mat--stack .historia__img--stack {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.historia__mat--stack .historia__img--stack-base {
  position: relative;
  z-index: 1;
}

.historia__mat--stack [data-stack-item] {
  opacity: 0;
  z-index: 1;
  transform: translate3d(0, 4%, 0) scale(1.06);
  transform-origin: center center;
  transition:
    opacity 0.85s cubic-bezier(0.45, 0, 0.2, 1),
    transform 0.85s cubic-bezier(0.45, 0, 0.2, 1);
  pointer-events: none;
}

.historia__mat--stack [data-stack-item].is-active {
  opacity: 1;
  z-index: 3;
  transform: translate3d(0, 0, 0) scale(1);
}

.historia__mat--stack [data-stack-item]:not(.historia__img--stack-base) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .historia__mat--stack [data-stack-item] {
    transition: none;
    transform: none;
  }

  .historia__mat--stack [data-stack-item]:not(.is-active) {
    opacity: 0;
  }

  .historia__mat--stack [data-stack-item].is-active {
    opacity: 1;
  }
}

.historia__caption {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.55rem;
  padding: 0 0.2rem;
}

.historia__date {
  font-family: var(--font-classic);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sea);
}

.historia__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  line-height: 1.3;
  color: var(--sea-deep);
}

/* Molduras de porta-retrato */
.historia__frame {
  --historia-tilt: -1.1deg;
  padding: 0.55rem;
  background: #f3ebe0;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 14px 28px rgba(18, 40, 48, 0.14);
}

.historia__piece:nth-child(3n) {
  --historia-tilt: 1.25deg;
}

.historia__piece:nth-child(4n) {
  --historia-tilt: -0.55deg;
}

.historia__piece:nth-child(5n) {
  --historia-tilt: 0.85deg;
}

.historia__frame--gilt {
  padding: 0.7rem;
  background:
    linear-gradient(145deg, #f6d04a 0%, #e8b82a 42%, #c99620 78%, #f6d04a 100%);
  box-shadow:
    0 0 0 1px rgba(58, 40, 20, 0.35),
    0 0 0 4px rgba(232, 184, 42, 0.35) inset,
    0 16px 30px rgba(18, 40, 48, 0.16);
}

.historia__frame--gilt .historia__mat {
  box-shadow: inset 0 0 0 3px #fffcf8;
}

.historia__frame--matte {
  padding: 0.85rem 0.85rem 1rem;
  background: #fffcf8;
  box-shadow:
    0 0 0 1px rgba(15, 61, 72, 0.16),
    0 12px 26px rgba(18, 40, 48, 0.1);
}

.historia__frame--matte .historia__mat {
  box-shadow: inset 0 0 0 1px rgba(15, 61, 72, 0.12);
}

.historia__frame--polaroid {
  padding: 0.45rem 0.45rem 1.15rem;
  background: #fffcf8;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 14px 28px rgba(18, 40, 48, 0.14);
}

.historia__frame--polaroid .historia__caption {
  margin-top: 0.55rem;
  text-align: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.historia__frame--ink {
  padding: 0.4rem;
  background: #12343f;
  box-shadow:
    0 0 0 2px #fffcf8,
    0 0 0 5px #12343f,
    0 14px 28px rgba(18, 40, 48, 0.16);
}

.historia__frame--gilt .historia__text,
.historia__frame--gilt .historia__date,
.historia__frame--bronze .historia__text,
.historia__frame--bronze .historia__date,
.historia__frame--ink .historia__text,
.historia__frame--ink .historia__date {
  color: #fffcf8;
}

.historia__frame--sand {
  padding: 0.65rem;
  background:
    linear-gradient(160deg, #efe4d2 0%, #d9cbb6 55%, #cbb89a 100%);
  box-shadow:
    0 0 0 1px rgba(90, 70, 40, 0.28),
    inset 0 0 0 3px rgba(255, 252, 248, 0.35),
    0 14px 28px rgba(18, 40, 48, 0.12);
}

.historia__frame--foam {
  padding: 0.55rem;
  background: #e8f2f1;
  box-shadow:
    0 0 0 1px rgba(31, 111, 122, 0.28),
    0 0 0 6px rgba(184, 221, 216, 0.65),
    0 12px 24px rgba(18, 40, 48, 0.1);
}

.historia__frame--bronze {
  padding: 0.6rem;
  background:
    linear-gradient(145deg, #6a4a2a 0%, #3a2814 48%, #8a6238 100%);
  box-shadow:
    0 0 0 1px rgba(26, 16, 8, 0.5),
    inset 0 0 0 2px rgba(232, 184, 42, 0.35),
    0 16px 30px rgba(18, 40, 48, 0.18);
}

.historia__frame--bronze .historia__mat {
  box-shadow: inset 0 0 0 2px rgba(255, 252, 248, 0.2);
}

/* Pais dos noivos — legenda rica + moldura herança */
.historia__piece--pais {
  width: 100%;
}

.historia__piece--pais .historia__img {
  aspect-ratio: 3 / 4;
}

.historia__mat--flip {
  position: relative;
}

/* Foto de casamento fica embaixo; a atual cresce como triângulo no canto */
.historia__mat--flip .historia__img--wedding {
  position: relative;
  z-index: 1;
}

/*
 * Máscara em triângulo contínuo.
 * Borda branca = camada .historia__peek um pouco à frente + drop-shadow.
 * Troca automática em loop (sem hover/clique).
 */
.historia__mat--flip .historia__img--atual {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  clip-path: polygon(100% 100%, 100% 100%, 100% 100%);
  filter: drop-shadow(-1px -1px 0 #fff);
  animation: historia-peek-wipe 12s linear infinite;
  animation-delay: 1s;
  will-change: clip-path;
}

/* Régua branca: mesmo wipe, um pouco maior que a foto */
.historia__peek {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: #fff;
  clip-path: polygon(100% 100%, 100% 100%, 100% 100%);
  animation: historia-peek-ruler 12s linear infinite;
  animation-delay: 1s;
  will-change: clip-path;
}

/* Segunda foto dos pais: começa depois da primeira (não simultâneo) */
.historia__piece--pais ~ .historia__piece--pais .historia__img--atual,
.historia__piece--pais ~ .historia__piece--pais .historia__peek {
  animation-delay: 6.5s;
}

/*
 * linear = movimento uniforme da “régua”.
 * Abre/fecha rápido; segura a foto atual alguns segundos.
 */
@keyframes historia-peek-wipe {
  0%,
  4% {
    clip-path: polygon(100% 100%, 100% 100%, 100% 100%);
    filter: drop-shadow(-1px -1px 0 #fff);
  }
  10% {
    clip-path: polygon(100% 100%, 100% -120%, -120% 100%);
    filter: none;
  }
  32% {
    clip-path: polygon(100% 100%, 100% -120%, -120% 100%);
    filter: none;
  }
  38%,
  100% {
    clip-path: polygon(100% 100%, 100% 100%, 100% 100%);
    filter: drop-shadow(-1px -1px 0 #fff);
  }
}

@keyframes historia-peek-ruler {
  0%,
  4% {
    clip-path: polygon(100% 100%, 100% 100%, 100% 100%);
    opacity: 1;
  }
  10% {
    /* Só um fio à frente da foto → borda bem fina */
    clip-path: polygon(100% 100%, 100% -122%, -122% 100%);
    opacity: 1;
  }
  12%,
  30% {
    clip-path: polygon(100% 100%, 100% -122%, -122% 100%);
    opacity: 0;
  }
  32% {
    clip-path: polygon(100% 100%, 100% -122%, -122% 100%);
    opacity: 1;
  }
  38%,
  100% {
    clip-path: polygon(100% 100%, 100% 100%, 100% 100%);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .historia__mat--flip .historia__img--atual,
  .historia__peek {
    animation: none;
  }

  .historia__mat--flip .historia__img--atual {
    clip-path: polygon(100% 100%, 100% 55%, 55% 100%);
    filter: drop-shadow(-1px -1px 0 #fff);
  }

  .historia__mat--flip .historia__peek {
    clip-path: polygon(100% 100%, 100% 53%, 53% 100%);
    opacity: 1;
  }
}

.historia__frame--heirloom {
  --historia-tilt: -0.8deg;
  padding: 0.75rem 0.75rem 0.9rem;
  background:
    linear-gradient(150deg, #f0e2c8 0%, #d7c19a 40%, #b8955c 72%, #e8d5b0 100%);
  box-shadow:
    0 0 0 1px rgba(70, 48, 20, 0.4),
    inset 0 0 0 3px rgba(255, 248, 230, 0.45),
    inset 0 0 0 6px rgba(184, 149, 92, 0.35),
    0 18px 34px rgba(18, 40, 48, 0.16);
}

.historia__frame--heirloom .historia__mat {
  box-shadow: inset 0 0 0 3px rgba(255, 252, 248, 0.75);
}

.historia__caption--pais {
  gap: 0.4rem;
  margin-top: 0.7rem;
  padding: 0.15rem 0.35rem 0.1rem;
  text-align: center;
  align-items: center;
}

.historia__pais-label {
  font-family: var(--font-script);
  font-size: clamp(1.15rem, 2.9vw, 1.45rem);
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-transform: none;
  color: var(--sea-deep);
}

.historia__pais-names {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0.05rem;
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(0.92rem, 2.2vw, 1.1rem);
  line-height: 1.3;
  color: var(--ink-soft);
  text-align: center;
}

.historia__pais-amp {
  display: none;
}

.historia__pais-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.15rem 0.35rem;
  font-family: var(--font-script);
  font-size: clamp(0.82rem, 2vw, 0.98rem);
  line-height: 1.3;
  color: var(--ink-soft);
  text-align: center;
}

.historia__pais-sep {
  opacity: 0.55;
}

@media (prefers-reduced-motion: reduce) {
  .historia__piece {
    opacity: 1;
    transform: rotate(var(--historia-tilt, 0deg));
    transition: none;
  }

  .historia__piece--lg,
  .historia__piece--lg.is-in {
    transform: rotate(var(--historia-tilt, 0deg)) scale(1.02);
  }
}

.panel {
  background: rgba(255, 252, 248, 0.72);
  border: 1px solid rgba(15, 61, 72, 0.08);
  border-radius: calc(var(--radius-lg) + 4px);
  padding: var(--space-5);
  box-shadow: var(--shadow-soft);
}

.fact {
  padding: var(--space-4) 0;
  border-bottom: 1px solid rgba(15, 61, 72, 0.08);
}

.fact:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.fact__label {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sea);
}

.fact__value {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--sea-deep);
}

.fact__note {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* RSVP cards — interação, não “card decorativo” */
.guest-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.guest {
  background: rgba(255, 252, 248, 0.82);
  border: 0;
  border-radius: calc(var(--radius-lg) + 2px);
  padding: 1.1rem 1.15rem 1rem;
}

.guest__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.guest__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--sea-deep);
}

.guest__choices {
  --choice-w: 6.4rem;
  --choice-h: 2.75rem;
  --choice-gap: 0.55rem;
  position: relative;
  width: calc(var(--choice-w) * 3 + var(--choice-gap) * 2);
  height: var(--choice-h);
  margin-inline: auto;
}

.guest__choices .choice--yes,
.guest__choices .choice--no {
  position: absolute;
  top: 0;
  width: var(--choice-w);
  height: var(--choice-h);
  z-index: 1;
}

/*
 * Par [Sim][Não] centralizado:
 * ponto médio do par em 50%. Sim não se move.
 */
.guest__choices .choice--yes {
  left: calc(50% - var(--choice-w) - (var(--choice-gap) / 2));
  transform: none;
}

.guest__choices .choice--no {
  left: calc(50% + (var(--choice-gap) / 2));
  transform: none;
  z-index: 2;
  transition: left 0.28s var(--ease);
}

.guest__choices.is-swapped .choice--no {
  left: calc(50% - (var(--choice-w) * 2) - (var(--choice-gap) * 1.5));
}

.choice--no.is-escaping {
  pointer-events: none;
}

.choice--no.is-shaking {
  animation: no-shake 0.28s ease;
}

.choice--no.is-settling {
  animation: no-pulse 0.95s var(--ease);
}

.choice-laugh {
  position: absolute;
  left: 50%;
  top: -1.35rem;
  transform: translate(-50%, 0);
  font-size: 1.25rem;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(18, 52, 63, 0.12));
  z-index: 3;
}

.choice-laugh.is-show {
  animation: laugh-up 1.05s var(--ease) forwards;
}

@keyframes no-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-3px) rotate(-1.2deg); }
  45% { transform: translateX(3px) rotate(1.2deg); }
  70% { transform: translateX(-2px) rotate(-0.8deg); }
}

@keyframes no-pulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.07); }
  75% { transform: scale(0.985); }
  100% { transform: scale(1); }
}

@keyframes laugh-up {
  0% {
    opacity: 0;
    transform: translate(-50%, 0.2rem) scale(0.85);
  }
  30% {
    opacity: 1;
    transform: translate(-50%, -0.35rem) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -1.35rem) scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .guest__choices .choice--no {
    transition: none;
  }

  .choice--no.is-settling,
  .choice--no.is-shaking,
  .choice-laugh.is-show {
    animation: none;
  }
}

.deadline-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  justify-content: center;
  font-size: 0.95rem;
}

.deadline-banner strong {
  color: var(--ink);
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
}

.qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  max-width: 36rem;
  margin-inline: auto;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-lg, 12px);
  background: #0a0a0a;
  color: #fff;
  text-align: center;
}

.qr-block__media {
  flex: 0 0 auto;
}

.qr-block__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  width: 100%;
}

.qr-block .help {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  line-height: 1.45;
}

.qr-block img {
  display: block;
  width: 9.5rem;
  height: auto;
  margin: 0;
  padding: 0.45rem;
  border-radius: 8px;
  background: #fff;
  border: 0;
}

.presentes__pix-info {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.92rem;
  color: #fff;
}

.presentes__pix-info p {
  margin: 0;
}

.presentes__pix-label {
  font-weight: 500;
  color: #fff;
}

.presentes__pix-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 0.75rem;
}

.presentes__pix-copy {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  padding: 0.3rem 0.7rem;
  margin: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.78rem;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.presentes__pix-copy:hover,
.presentes__pix-copy.is-copied {
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
}

@media (min-width: 640px) {
  .qr-block {
    flex-direction: row;
    align-items: center;
    gap: 1.35rem;
    padding: 1.25rem 1.4rem;
    text-align: left;
  }

  .qr-block__copy {
    width: auto;
    flex: 1 1 auto;
    align-items: flex-start;
  }

  .presentes__pix-info {
    align-items: flex-start;
  }

  .presentes__pix-row {
    justify-content: flex-start;
  }
}

.presentes__intro {
  text-align: center;
  max-width: 34rem;
  margin-inline: auto;
}

.presentes__intro .section__lead {
  margin-inline: auto;
}

.presentes__cotas {
  max-width: 28rem;
  margin-inline: auto;
}

.presentes__cotas-label {
  margin: 0 0 1.1rem;
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.presentes__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.presentes__item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(15, 61, 72, 0.1);
}

.presentes__item:first-child {
  border-top: 1px solid rgba(15, 61, 72, 0.1);
}

.presentes__thumb {
  flex: 0 0 auto;
  width: 3.25rem;
  height: 3.25rem;
  object-fit: cover;
  border-radius: 4px;
  background: rgba(15, 61, 72, 0.06);
}

.presentes__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 0;
}

.presentes__amount {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--gold-deep);
}

.presentes__title {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.98rem;
  line-height: 1.35;
  color: var(--ink);
}

.presentes__pix-code {
  margin-top: 0.75rem;
  text-align: center;
}

.presentes__pix-code .field {
  margin-top: 0.65rem;
}

.presentes__pix-payload {
  width: 100%;
  min-height: 5.5rem;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.4;
  word-break: break-all;
}

.page-center {
  text-align: center;
}

.page-center .section__lead {
  margin-inline: auto;
}

.page-center .alert,
.page-center .panel,
.page-center .field,
.page-center .guest-list,
.page-center .deadline-banner {
  text-align: left;
}

.page-center .deadline-banner {
  justify-content: center;
  text-align: center;
}

.page-center .guest__top {
  justify-content: center;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-center .disclose {
  text-align: center;
}

.page-center .disclose .field {
  text-align: left;
}

.page-center .field > label {
  text-align: center;
}

.site-footer {
  color: var(--ink-soft);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: end;
  gap: var(--space-5);
  text-align: center;
}

.site-footer__copy {
  max-width: 34rem;
  grid-column: 1;
  grid-row: 1;
}

.site-footer__text {
  margin-inline: auto;
  max-width: 34rem;
}

.site-footer__figure {
  width: auto;
  height: clamp(9.5rem, 42vw, 13rem);
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 14px 28px rgba(10, 40, 48, 0.18));
  pointer-events: none;
  opacity: 0;
  /* Mobile: sobe de baixo */
  transform: translate3d(0, 3.5rem, 0);
  transition:
    opacity 1.5s var(--ease),
    transform 1.5s var(--ease);
  will-change: opacity, transform;
}

.site-footer.is-in .site-footer__figure {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.site-footer__figure--bride {
  height: calc(clamp(9.5rem, 42vw, 13rem) * 0.9);
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  margin-left: clamp(1.25rem, 6vw, 2.5rem);
}

.site-footer__figure--groom {
  grid-column: 1;
  grid-row: 2;
  justify-self: end;
  margin-right: clamp(1.25rem, 6vw, 2.5rem);
}

@media (min-width: 860px) {
  .site-footer__inner {
    grid-template-columns: minmax(8rem, 1fr) minmax(18rem, 28rem) minmax(8rem, 1fr);
    align-items: center;
    gap: var(--space-5);
    text-align: center;
  }

  .site-footer__copy {
    grid-column: 2;
    grid-row: 1;
    max-width: none;
    width: 100%;
  }

  .site-footer__figure {
    height: clamp(13rem, 22vw, 17rem);
  }

  .site-footer__figure--groom {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    margin: 0;
    transform: translate3d(-6.5rem, 0, 0);
  }

  .site-footer__figure--bride {
    grid-column: 3;
    grid-row: 1;
    justify-self: start;
    margin: 0;
    height: calc(clamp(13rem, 22vw, 17rem) * 0.9);
    /* Parte da direita; pouso com −73px */
    transform: translate3d(calc(-73px + 6.5rem), 0, 0);
  }

  .site-footer.is-in .site-footer__figure--groom {
    transform: translate3d(0, 0, 0);
  }

  .site-footer.is-in .site-footer__figure--bride {
    transform: translate3d(-73px, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer__figure,
  .site-footer.is-in .site-footer__figure,
  .site-footer.is-in .site-footer__figure--groom,
  .site-footer.is-in .site-footer__figure--bride {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }

  @media (min-width: 860px) {
    .site-footer__figure--bride,
    .site-footer.is-in .site-footer__figure--bride {
      transform: translate3d(-73px, 0, 0);
    }
  }
}

.page-title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-script);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(2.35rem, 5.5vw, 3.5rem);
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--gold);
}
