/* Convite de casamento — villa, papel marfim, ouro envelhecido */

@font-face { font-family: "Beau Rivage"; src: url("../fonts/beau-rivage.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Ovo"; src: url("../fonts/ovo.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3.woff") format("woff"); font-weight: 400; font-display: swap; }

:root {
  --ivory: #fbf7ef;
  --paper: #f3ead9;
  --sand: #ebe0cc;
  --gold: #b8975a;
  --gold-ink: #7e6330;
  --ink: #2f3b46;
  --muted: #59636d;
  --dust: #5f86a0;
  --line: rgba(184, 151, 90, .5);
  --err: #a23b3b;

  --script: "Beau Rivage", "Snell Roundhand", cursive;
  --serif: "Ovo", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 24px;
  --col: 560px;
  --pad: 0px;
  --ease: cubic-bezier(.22, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.is-locked, html.no-scroll { overflow: hidden; }
body {
  margin: 0;
  font: 400 1.0625rem/1.7 var(--sans);
  color: var(--muted);
  background:
    radial-gradient(900px 520px at 0% 0%, #fff 0, transparent 65%),
    radial-gradient(800px 480px at 100% 55%, #f4ead7 0, transparent 65%),
    var(--ivory);
}
img, video, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--dust); outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: fixed; z-index: 300; left: 12px; top: -60px; padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--ivory); text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }

/* ---------- ENVELOPE ---------- */

/* Mesma lógica do template 3: o frame do envelope aparece parado com "toque para abrir";
   ao tocar o vídeo roda e, ~0,8s antes do fim, a camada inteira some em fade de 1,4s revelando o convite. */
.splash {
  position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
  background: #f9f0e0; transition: opacity 1.4s ease, visibility 1.4s;
}
.js .splash { display: flex; }
.is-returning .splash { display: none; }
.splash.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }

.splash__frame {
  position: relative; width: 100%; height: 100vh; height: 100svh; max-width: calc(100svh * 9 / 16);
  overflow: hidden; background: #f9f0e0;
}
@media (min-aspect-ratio: 3/5) {
  .splash__frame { box-shadow: 0 40px 90px -30px rgba(80, 58, 24, .4); }
}
.splash__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.splash__open {
  position: absolute; inset: 0; width: 100%; border: 0; background: none; padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.splash__tap {
  position: absolute; left: 50%; bottom: 30%; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 7px;
  animation: tapIn 1.2s .8s both; transition: opacity .6s;
}
.splash__chevron {
  width: 10px; height: 10px; border-top: 1.5px solid rgba(110, 76, 38, .75); border-right: 1.5px solid rgba(110, 76, 38, .75);
  transform: rotate(-45deg); animation: chevron 2.4s 1.9s ease-in-out infinite;
}
.splash__label {
  font: 400 .78rem/1.3 var(--serif); letter-spacing: .26em; text-transform: uppercase; white-space: nowrap; color: rgba(96, 64, 30, .9);
  text-shadow: 0 0 10px rgba(249, 240, 224, .95);
  animation: pulse 2.4s 1.6s ease-in-out infinite;
}
.splash.is-opening .splash__tap { opacity: 0; }
.splash.is-opening .splash__open { cursor: default; pointer-events: none; }

@keyframes tapIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: .55; letter-spacing: .26em; } 50% { opacity: 1; letter-spacing: .3em; } }
@keyframes chevron { 0%, 100% { transform: rotate(-45deg) translate(0, 0); opacity: .6; } 50% { transform: rotate(-45deg) translate(2px, -2px); opacity: 1; } }

/* ---------- LAYOUT ---------- */

.page { position: relative; }

/* ---------- ABERTURA (vídeo da villa) ---------- */

.stage {
  position: relative; height: 100vh; height: 100svh; min-height: 560px; container-type: inline-size;
  overflow: hidden; background: var(--sky, #cfdbe4); isolation: isolate;
}
.stage__media { position: absolute; inset: var(--pad); overflow: hidden; z-index: -1; }
.stage__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  transition: opacity .9s linear;
}
.stage__video.is-on { opacity: 1; }
.stage__veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(251, 247, 239, .62) 0, rgba(251, 247, 239, .24) 22%, rgba(251, 247, 239, 0) 42%),
    linear-gradient(to top, var(--ivory) 0, rgba(251, 247, 239, .96) 7%, rgba(251, 247, 239, 0) 30%);
}

.stage__text {
  position: absolute; inset: var(--pad); display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(40px, 9svh, 92px) 20px calc(122px + env(safe-area-inset-bottom));
  color: var(--ink);
}
.eyebrow {
  margin: 0; font: 400 .78rem/1.4 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--gold-ink);
}
.stage .eyebrow { color: #4d4128; }
.guest { margin: 14px 0 0; font-family: var(--serif); font-size: 1.1rem; color: var(--ink); }

.names {
  margin: clamp(10px, 2.4svh, 24px) 0 0; font: 400 clamp(3.4rem, 20.5cqw, 6.8rem)/.86 var(--script);
  color: #2a3641; text-shadow: 0 1px 22px rgba(255, 255, 255, .7); text-wrap: balance;
}
.names__line { display: block; padding: .08em .04em; white-space: nowrap; }
.names__amp { display: block; margin: -.02em 0; font-size: .46em; line-height: 1; color: var(--gold-ink); }

.stage__date {
  margin: auto 0 0; font: 400 .98rem/1.4 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--ink);
  text-shadow: 0 0 14px rgba(251, 247, 239, .9);
}
.stage__venue { margin: 6px 0 0; font: 400 1.25rem/1.3 var(--serif); color: var(--ink); text-shadow: 0 0 14px rgba(251, 247, 239, .9); }

/* Convite para rolar: frase em letra cursiva que "respira" + fio dourado por onde desce uma pérola de luz.
   Aparece quando os nomes terminam de ser escritos e some na primeira rolagem. */
.cue { position: absolute; left: 0; right: 0; bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; justify-content: center; color: var(--gold-ink); text-decoration: none; }
.cue__in { display: flex; flex-direction: column; align-items: center; gap: 4px; transition: opacity .9s ease, transform .9s ease; }
.cue.is-gone { pointer-events: none; }
.cue.is-gone .cue__in { opacity: 0; transform: translateY(16px); }
.cue__text {
  font: 400 1.45rem/1.15 var(--script); letter-spacing: .02em; color: var(--gold-ink);
  text-shadow: 0 0 16px rgba(251, 247, 239, 1), 0 0 4px rgba(251, 247, 239, .9); animation: cueBreath 3.2s ease-in-out infinite;
}
.cue__track {
  position: relative; display: block; width: 1px; height: 46px;
  background: linear-gradient(to bottom, rgba(184, 151, 90, 0), rgba(184, 151, 90, .8) 28%, rgba(184, 151, 90, .8) 78%, rgba(184, 151, 90, 0));
}
.cue__track::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 9px; height: 9px; margin-left: -4.5px;
  border-right: 1.5px solid rgba(160, 125, 62, .95); border-bottom: 1.5px solid rgba(160, 125, 62, .95); transform: rotate(45deg); animation: cueChev 2.4s ease-in-out infinite;
}
.cue__pearl {
  position: absolute; left: 50%; top: 0; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0, #f6e4b3 45%, #c9a45c 100%); box-shadow: 0 0 10px 2px rgba(224, 190, 108, .7);
  animation: cueDrop 2.4s cubic-bezier(.55, .05, .4, 1) infinite;
}
@keyframes cueBreath { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
@keyframes cueDrop { 0% { transform: translateY(0); opacity: 0; } 16% { opacity: 1; } 78% { opacity: 1; } 100% { transform: translateY(34px); opacity: 0; } }
@keyframes cueChev { 0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: .6; } 50% { transform: rotate(45deg) translate(2px, 2px); opacity: 1; } }

.js .stage__in { opacity: 0; }
.stage.is-live .stage__in { animation: rise 1.1s var(--ease) both; animation-delay: calc(var(--i, 0) * .22s + .35s); }
.js .names__line { opacity: 0; }
.stage.is-live .names__line {
  opacity: 1; animation: write 2s cubic-bezier(.55, .1, .25, 1) both;
}
.stage.is-live .names__line--a { animation-delay: .5s; }
.stage.is-live .names__line--b { animation-delay: 1.45s; }
.js .names__amp { opacity: 0; }
.stage.is-live .names__amp { animation: rise 1s var(--ease) 1.15s both; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes write { from { clip-path: inset(-30% 100% -30% -10%); } to { clip-path: inset(-30% -10% -30% -10%); } }

/* ---------- SEÇÕES ---------- */

.content { position: relative; }
.sec { --pad-x: var(--gutter); padding: clamp(60px, 11vw, 104px) var(--pad-x); text-align: center; }
.sec > * { max-width: var(--col); margin-inline: auto; }
.sec > .btns, .sec > .carousel, .sec > .dots { max-width: none; }

.title {
  margin: 14px auto 0; font: 400 clamp(2rem, 7.4vw, 2.7rem)/1.18 var(--serif); color: var(--ink); text-wrap: balance;
}
.title--sm { font-size: clamp(1.7rem, 6vw, 2.2rem); }
.prose { margin: 22px auto 0; font-size: 1.08rem; }
.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }
.prose--note { font-size: .98rem; font-style: italic; }
.orn { margin: 38px auto; color: var(--gold); }

.btns { margin: 32px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border-radius: 999px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--ivory); font-size: .78rem; line-height: 1;
  letter-spacing: .2em; text-transform: uppercase; text-decoration: none; transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn:hover { background: #1f2a33; }
.btn:active { transform: scale(.98); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--gold); }
.btn--ghost:hover { background: rgba(184, 151, 90, .14); border-color: var(--gold-ink); }
.btn--link { border-color: transparent; background: none; color: var(--gold-ink); text-decoration: underline; text-underline-offset: 4px; }
.btn--link:hover { background: none; color: var(--ink); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }

/* cartão da data (arco) */
.datecard {
  position: relative; width: min(100%, 300px); margin: 12px auto 0; padding: 78px 24px 34px;
  border: 1px solid var(--line); border-radius: 999px 999px 20px 20px; background: rgba(255, 255, 255, .45);
}
.datecard::after { content: ""; position: absolute; inset: 6px; border: 1px solid var(--line); border-radius: 999px 999px 15px 15px; pointer-events: none; }
.datecard p { margin: 0; }
.datecard__dow { font-size: .78rem; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-ink); }
.datecard__day { font: 400 4.8rem/1 var(--serif); color: var(--ink); margin: 6px 0 2px !important; }
.datecard__month { font: 400 1.35rem/1.3 var(--serif); color: var(--ink); }
.datecard__month::first-letter { text-transform: uppercase; }
.datecard__time { margin-top: 14px !important; font-size: .95rem; letter-spacing: .1em; }

/* contagem */
.sec--count { background: linear-gradient(180deg, transparent, var(--paper) 22%, var(--paper) 78%, transparent); padding-block: clamp(56px, 9vw, 84px); }
.count { margin-top: 26px; display: flex; justify-content: center; align-items: flex-start; gap: clamp(4px, 2vw, 14px); }
.count__cell { min-width: clamp(58px, 17vw, 84px); display: flex; flex-direction: column; align-items: center; }
.count__n { font: 400 clamp(2.4rem, 11vw, 3.6rem)/1.05 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; }
.count__l { margin-top: 4px; font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-ink); }
.count__sep { font: 400 clamp(1.6rem, 7vw, 2.4rem)/1.35 var(--serif); color: var(--gold); }

/* programação */
.timeline { list-style: none; margin: 44px auto 0; padding: 0; position: relative; text-align: left; max-width: 440px; }
.timeline::before { content: ""; position: absolute; left: 96px; top: 12px; bottom: 36px; width: 1px; background: var(--line); }
.tl { position: relative; display: grid; grid-template-columns: 78px 1fr; column-gap: 36px; padding-bottom: 32px; }
.tl::before {
  content: ""; position: absolute; left: 91.5px; top: 9px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--ivory); border: 1.5px solid var(--gold);
}
.tl__time { text-align: right; font: 400 1.3rem/1.4 var(--serif); color: var(--gold-ink); }
.tl__title { margin: 0; font: 400 1.25rem/1.4 var(--serif); color: var(--ink); }
.tl__text { margin: 2px 0 0; font-size: .98rem; line-height: 1.55; }

/* local */
.arch { margin: 34px auto 0; width: min(100%, 300px); aspect-ratio: 3 / 4; position: relative; }
.arch img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px 14px 14px; }
.arch::after { content: ""; position: absolute; inset: -8px; border: 1px solid var(--line); border-radius: 999px 999px 20px 20px; pointer-events: none; }
.address { margin-top: 32px; display: flex; align-items: flex-start; justify-content: center; gap: 8px; color: var(--ink); }
.address svg { flex: none; margin-top: 4px; color: var(--gold-ink); }

/* traje */
.palette { list-style: none; margin: 30px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 12px; }
.palette li { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 74px; text-align: center; }
.sw { width: 58px; height: 58px; border-radius: 50%; background: var(--c, #ccc); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1), 0 8px 18px -10px rgba(40, 30, 14, .5); }
.palette span:last-child { font-size: .82rem; line-height: 1.3; }

/* galeria */
.sec--gallery { padding-inline: 0; overflow: hidden; }
.sec--gallery > .eyebrow, .sec--gallery > .title { padding-inline: var(--gutter); }
.carousel { position: relative; margin-top: 36px; --sw: min(68vw, 292px); }
.carousel__track {
  position: relative; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 10px calc(50% - var(--sw) / 2) 30px; scrollbar-width: none; cursor: grab; -webkit-overflow-scrolling: touch;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track.is-drag { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.slide {
  position: relative; flex: 0 0 var(--sw); aspect-ratio: 3 / 4; scroll-snap-align: center; margin: 0;
  opacity: .5; transform: scale(.9); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.slide.is-active { opacity: 1; transform: none; }
.slide::after { content: ""; position: absolute; inset: -7px; border: 1px solid var(--line); border-radius: 999px 999px 24px 24px; pointer-events: none; }
.slide__btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--paper); border-radius: 999px 999px 16px 16px; overflow: hidden; }
.slide__btn img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; pointer-events: none; }
.carousel__nav {
  position: absolute; top: calc(50% - 20px); z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
  border-radius: 50%; border: 1px solid var(--gold); background: rgba(251, 247, 239, .9); color: var(--ink); transition: background .2s, opacity .2s;
}
.carousel__nav:hover { background: #fff; }
.carousel__nav--prev { left: max(10px, calc(50% - var(--sw) / 2 - 62px)); }
.carousel__nav--next { right: max(10px, calc(50% - var(--sw) / 2 - 62px)); }
.carousel__nav[disabled] { opacity: .3; cursor: default; }
.dots { display: flex; justify-content: center; gap: 2px; margin-top: 4px; }
.dot { width: 24px; height: 24px; padding: 0; border: 0; background: none; display: grid; place-items: center; }
.dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(184, 151, 90, .35); transition: transform .3s, background .3s; }
.dot[aria-current="true"]::before { background: var(--gold-ink); transform: scale(1.35); }

/* presentes */
.gift-ico { margin: 0 auto; color: var(--gold-ink); }
.gift-ico + .title { margin-top: 12px; }

/* RSVP */
.sec--rsvp { background: linear-gradient(180deg, transparent, var(--paper) 14%, var(--paper) 100%); padding-bottom: clamp(80px, 14vw, 130px); }
.card {
  margin-top: 30px !important; max-width: 520px !important; padding: 30px 22px 26px; text-align: left; background: #fffdf8;
  border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 30px 60px -38px rgba(70, 50, 20, .45);
}
.field { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend, .lbl { display: block; padding: 0; margin: 0 0 8px; font-size: .86rem; letter-spacing: .08em; color: var(--ink); }
.req { color: var(--gold-ink); }
.opt { color: var(--muted); font-size: .8rem; letter-spacing: 0; }
.field input[type="text"], .field input[type="tel"], .field textarea {
  display: block; width: 100%; min-height: 50px; padding: 12px 14px; font-size: 1rem; border-radius: 12px;
  border: 1px solid #d6c8a8; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--dust); box-shadow: 0 0 0 3px rgba(95, 134, 160, .22); }
.field [aria-invalid="true"] { border-color: var(--err); }
.err { min-height: 0; margin: 6px 0 0; font-size: .88rem; line-height: 1.4; color: var(--err); }
.err:empty { display: none; }
.err--form { margin: 0 0 14px; text-align: center; }
.count-chars { margin: 4px 0 0; font-size: .78rem; text-align: right; color: var(--muted); }
.fine { margin: 14px 0 0; text-align: center; font-size: .82rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.choice { display: grid; gap: 10px; }
.choice legend { margin-bottom: 10px; }
.pill { position: relative; display: block; margin: 0 !important; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid #d6c8a8;
  background: #fff; color: var(--ink); font-size: 1rem; letter-spacing: 0; transition: border-color .2s, background .2s, box-shadow .2s;
}
.pill svg { color: var(--gold-ink); opacity: 0; transition: opacity .2s; }
.pill input:checked + span { border-color: var(--gold-ink); background: #fbf3e2; box-shadow: 0 0 0 1px var(--gold-ink); }
.pill input:checked + span svg { opacity: 1; }
.pill input:focus-visible + span { outline: 2px solid var(--dust); outline-offset: 3px; }

.stepper { display: inline-flex; align-items: center; border: 1px solid #d6c8a8; border-radius: 999px; background: #fff; }
.stepper button { width: 50px; height: 50px; border: 0; background: none; font-size: 1.5rem; line-height: 1; color: var(--ink); border-radius: 50%; }
.stepper button:hover { background: rgba(184, 151, 90, .14); }
.stepper button[disabled] { opacity: .3; cursor: default; }
.stepper output { min-width: 44px; text-align: center; font: 400 1.4rem/1 var(--serif); color: var(--ink); }
#companions { display: grid; gap: 10px; }

.btn__spin { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .8s linear infinite; }
.is-sending .btn__spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.thanks { text-align: center; padding: 12px 4px 6px; }
.thanks:focus { outline: none; }
.thanks__ico { margin: 0 auto 8px; padding: 10px; width: 64px; height: 64px; border-radius: 50%; color: var(--gold-ink); border: 1px solid var(--gold); }
.thanks__title { margin: 12px 0 0; font: 400 1.9rem/1.2 var(--serif); color: var(--ink); }

/* rodapé */
.foot { padding: 20px var(--gutter) calc(110px + env(safe-area-inset-bottom)); text-align: center; background: var(--paper); }
.foot .orn { margin: 0 auto 6px; }
.foot__names { margin: 0; font: 400 clamp(2.8rem, 12vw, 4.6rem)/1.1 var(--script); color: var(--ink); text-wrap: balance; }
.foot__date { margin: 6px 0 0; font-size: .82rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-ink); }
.foot__msg { margin: 18px 0 0; font: italic 400 1.05rem/1.5 var(--serif); }

/* flutuantes */
.music {
  position: fixed; z-index: 90; top: calc(14px + env(safe-area-inset-top)); right: 14px; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--gold); background: rgba(251, 247, 239, .88); color: var(--ink); backdrop-filter: blur(6px);
}
.fab {
  position: fixed; z-index: 90; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; min-height: 50px; padding: 0 26px;
  border-radius: 999px; background: var(--ink); color: var(--ivory); text-decoration: none; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 16px 34px -14px rgba(30, 24, 12, .6); transform: translate(-50%, 24px); opacity: 0; visibility: hidden;
  transition: transform .5s var(--ease), opacity .5s, visibility .5s;
}
.fab.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* lightbox */
.lb { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(22, 19, 14, .94); color: #fff; overscroll-behavior: contain; }
.lb[open] { display: grid; place-items: center; }
.lb::backdrop { background: rgba(22, 19, 14, .94); }
.lb__img { max-width: min(92vw, 900px); max-height: 82vh; max-height: 82svh; width: auto; height: auto; object-fit: contain; border-radius: 6px; touch-action: pan-y; user-select: none; -webkit-user-drag: none; }
.lb__btn {
  position: absolute; width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .08); color: #fff;
}
.lb__btn:hover { background: rgba(255, 255, 255, .2); }
.lb__close { top: calc(16px + env(safe-area-inset-top)); right: 16px; }
.lb__nav { top: 50%; translate: 0 -50%; }
.lb__nav--prev { left: 12px; }
.lb__nav--next { right: 12px; }
.lb__cap { position: absolute; left: 0; right: 0; bottom: calc(20px + env(safe-area-inset-bottom)); margin: 0; text-align: center; font-size: .85rem; letter-spacing: .2em; }

/* entrada ao rolar */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * .12s); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* entrada lenta, como na seção do local do template 3: sobe 50px em 2s */
.js .reveal--slow { transform: translateY(50px); transition: opacity 2s var(--ease), transform 2s var(--ease); transition-delay: calc(var(--d, 0) * .2s); }

/* ---------- local: carrossel de fotos + ornamentos que balançam ---------- */

#local { position: relative; isolation: isolate; overflow-x: clip; }
.sec > .venue-gallery { max-width: none; margin: 38px calc(var(--pad-x) * -1) 0; }
.carousel--wide { --sw: var(--venue-sw); margin-top: 0; }
.carousel--wide .carousel__track { padding-top: 0; }
.carousel--wide .slide { aspect-ratio: 1 / 1; opacity: .55; transform: scale(.94); }
.carousel--wide .slide.is-active { opacity: 1; transform: none; }
.carousel--wide .slide::after { display: none; }
.carousel--wide .slide__btn {
  border-radius: 26px 26px 0 0; background: var(--paper);
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%); mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
}
.carousel--wide .carousel__nav { top: calc(40% - 22px); }

/* Flores do template 3 (Group_303 e Group_304): uma no canto superior direito do título, outra sobre o canto inferior esquerdo da foto */
.venue-gallery { position: relative; --venue-sw: min(80vw, 440px); }
.flora { position: absolute; pointer-events: none; }
.flora__img { display: block; width: 100%; height: auto; animation: sway 7s ease-in-out infinite; }
.flora:not(.is-in) .flora__img { animation-play-state: paused; }
.flora--tr { z-index: -1; top: 34px; right: max(-30px, calc(50% - 318px)); width: clamp(96px, 29vw, 150px); }
.flora--tr .flora__img { transform-origin: 40% 95%; }
.flora--bl { z-index: 3; left: max(10px, calc(50% - var(--venue-sw) / 2 - 40px)); bottom: -4px; width: clamp(112px, 37vw, 190px); }
.flora--bl .flora__img { rotate: -40deg; transform-origin: 30% 70%; }
/* mesmo balanço do template 3: escala 1,02 e giro de ±2° em ciclos de ~7s, só depois que o bloco entra na tela */
@keyframes sway {
  0%, 100% { transform: none; }
  28% { transform: translate(1px, 0) scale(1.02) rotate(2deg); }
  43% { transform: none; }
  71% { transform: translate(-3px, -2px) scale(1.02) rotate(-2deg); }
}

/* ---------- DESKTOP: vídeo fixo à esquerda, conteúdo rolando à direita ---------- */

@media (min-width: 1000px) and (orientation: landscape) {
  :root { --pad: 24px; }
  .page { display: grid; grid-template-columns: calc((100svh - 48px) * 9 / 16 + 48px) minmax(0, 1fr); max-width: 1320px; margin: 0 auto; align-items: start; }
  .stage { position: sticky; top: 0; background: transparent; }
  .stage__media { border-radius: 22px; box-shadow: 0 40px 80px -40px rgba(60, 44, 18, .55); }
  .stage__veil {
    background:
      linear-gradient(to bottom, rgba(251, 247, 239, .6) 0, rgba(251, 247, 239, .2) 22%, rgba(251, 247, 239, 0) 42%),
      linear-gradient(to top, rgba(251, 247, 239, .96) 0, rgba(251, 247, 239, .9) 6%, rgba(251, 247, 239, 0) 26%);
  }
  .sec { --pad-x: clamp(32px, 5vw, 80px); }
  .sec--gallery { padding-inline: 0; }
  .sec--intro { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
  .cue { display: none; }
  .fab { left: auto; right: 32px; transform: translateY(24px); }
  .fab.is-on { transform: none; }
  .foot { padding-inline: 32px; }
}

@media (min-width: 700px) {
  .card { padding: 36px 34px 30px; }
}

/* De propósito, "reduzir movimento" NÃO desliga as animações do convite (vídeos, entrada das seções,
   flores que balançam): são o conteúdo, como no template 3, e todas são suaves (±2°, 1,02x, 50px).
   Para respeitar a preferência do sistema, descomente o bloco abaixo.
@media (prefers-reduced-motion: reduce) {
  .splash__chevron, .splash__label, .cue__text, .cue__pearl, .cue__track::after, .flora__img { animation: none; }
  .js .reveal, .js .reveal--slow { transform: none; }
}
*/
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
