/* =====================================================================
   Eu Disse Sim — convite
   Todas as cores e fontes vêm do JSON de cada casamento (variáveis :root).
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--f-texto);
  font-size: calc(1.2rem * var(--escala, 1));
  line-height: 1.6;
  font-feature-settings: "liga", "kern";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.travado { overflow: hidden; height: 100svh; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--tinta); color: var(--papel); }

/* Textura de papel (algodão) */
body.com-textura::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 60;
  opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Tipografia base ---------- */
.sobre {
  font-family: var(--f-rotulo); font-weight: 500;
  font-size: .62rem; letter-spacing: .34em; text-transform: uppercase;
  color: var(--suave); margin: 0 0 18px;
}
.titulo-sec {
  font-family: var(--f-titulo); font-weight: 400;
  font-size: clamp(2.5rem, 6.2vw, 4.3rem); line-height: 1.02;
  letter-spacing: -.01em; margin: 0;
}
.titulo-sec em, .texto-sec em, .destaque-txt em { font-style: italic; }
.orn { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 26px auto 0; color: var(--suave); }
.orn i { width: 46px; height: 1px; background: currentColor; opacity: .45; }
.orn b { width: 5px; height: 5px; transform: rotate(45deg); border: 1px solid currentColor; }
.cab { text-align: center; margin-bottom: clamp(40px, 7vw, 70px); }
.texto-sec { text-align: center; font-size: 1.22em; margin: 0 auto 30px; max-width: 34em; }
.aviso { text-align: center; font-style: italic; opacity: .8; }

/* ---------- Seções ---------- */
.sec { position: relative; padding: clamp(84px, 12vw, 150px) 22px; overflow: hidden; }
.sec__in { position: relative; max-width: 980px; margin: 0 auto; z-index: 1; }
.sec__in.estreito { max-width: 640px; }
.sec__in.largo { max-width: 1180px; }
.fundo-suave { background: color-mix(in srgb, var(--papel) 94%, var(--tinta)); }
.fundo-escuro { background: var(--escuro); color: var(--sobre-escuro); }
.fundo-escuro .sobre, .fundo-escuro .orn { color: color-mix(in srgb, var(--sobre-escuro) 62%, transparent); }
.fundo-escuro::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .16; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Monograma (máscara: assume a cor do tema) ---------- */
.mono { display: inline-block; }
.mono--img {
  width: 100%; aspect-ratio: 300 / 220;
  background: currentColor;
  -webkit-mask: var(--mono) center / contain no-repeat; mask: var(--mono) center / contain no-repeat;
}
.mono--txt { font-family: var(--f-script); font-size: 5.4rem; line-height: 1; }

/* ---------- Capa ---------- */
.sec--capa { min-height: 100svh; display: grid; place-items: center; padding-top: clamp(70px, 10vh, 110px); padding-bottom: clamp(70px, 10vh, 110px); }
.com-moldura .moldura { position: absolute; inset: clamp(10px, 2vw, 22px); border: 1px solid var(--linha); pointer-events: none; }
.com-moldura .moldura::after { content: ""; position: absolute; inset: 5px; border: 1px solid var(--linha); opacity: .7; }
.capa { text-align: center; width: 100%; }
.capa__mono { width: min(44vw, 200px); margin: 0 auto clamp(40px, 6vh, 64px); color: var(--tinta); }
.capa__mono .mono--txt { font-size: clamp(5rem, 14vw, 8rem); }
.pais {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 6vw, 80px);
  max-width: 760px; margin: 0 auto; position: relative;
  font-size: clamp(1.02rem, 2.3vw, 1.45rem); line-height: 1.35;
}
.pais p { margin: 0; }
.pais::after { content: ""; position: absolute; left: 50%; top: 10%; bottom: 10%; width: 1px; background: var(--linha); }
.convidam {
  font-style: italic; font-size: clamp(1.18rem, 2.6vw, 1.7rem); line-height: 1.3;
  max-width: 30em; margin: clamp(30px, 5vh, 44px) auto 0; color: color-mix(in srgb, var(--tinta) 85%, transparent);
}
.sec--capa .sec__in { max-width: 1240px; }
.nomes {
  font-family: var(--f-titulo); font-weight: 400;
  font-size: clamp(2.7rem, 5.6vw, 5.4rem); line-height: 1; letter-spacing: -.015em;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0;
  margin: clamp(26px, 5vh, 46px) 0 0;
}
.nomes .nome { white-space: nowrap; }
.nomes .conector { font-family: var(--f-script); font-size: .8em; color: var(--suave); letter-spacing: 0; padding: 0 .05em; margin: .02em 0 .08em; }
@media (min-width: 1000px) { .nomes { flex-direction: row; align-items: baseline; gap: .3em; } .nomes .conector { margin: 0; } }
.capa__data {
  display: flex; justify-content: center; align-items: center; gap: 16px;
  font-family: var(--f-rotulo); font-size: .78rem; letter-spacing: .38em; font-weight: 500;
  margin-top: clamp(32px, 6vh, 56px);
}
.capa__data i { width: 30px; height: 1px; background: currentColor; opacity: .35; }
.capa__cidade { font-family: var(--f-rotulo); font-size: .6rem; letter-spacing: .4em; text-transform: uppercase; color: var(--suave); margin: 12px 0 0; }
.rolar { display: block; width: 1px; height: 64px; margin: clamp(34px, 6vh, 60px) auto 0; background: color-mix(in srgb, var(--tinta) 18%, transparent); position: relative; overflow: hidden; }
.rolar span { position: absolute; left: 0; width: 1px; height: 22px; background: var(--tinta); animation: gota 2.4s cubic-bezier(.6, 0, .3, 1) infinite; }
@keyframes gota { from { top: -22px; } to { top: 64px; } }

/* Entrada especial da capa ao abrir */
.capa__mono .mono--img { clip-path: inset(0 0 0 0); }
body.aberto .sec--capa .capa__mono .mono { animation: desenhar 2.2s cubic-bezier(.65, 0, .25, 1) both; }
@keyframes desenhar { from { clip-path: inset(0 0 100% 0); opacity: .2; } to { clip-path: inset(0 0 0 0); opacity: 1; } }

/* ---------- Local / cerimônia ---------- */
.local {
  display: grid; grid-template-columns: minmax(220px, 300px) 1fr; align-items: stretch;
  background: var(--papel); border: 1px solid var(--linha);
  box-shadow: 0 30px 60px -40px color-mix(in srgb, var(--tinta) 35%, transparent);
}
.fundo-escuro .local { background: color-mix(in srgb, var(--escuro) 88%, #fff); border-color: color-mix(in srgb, var(--sobre-escuro) 18%, transparent); }
.local__data {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 48px 24px; border-right: 1px solid var(--linha);
}
.local__data .semana, .local__data .hora { font-family: var(--f-rotulo); font-size: .62rem; letter-spacing: .34em; text-transform: uppercase; color: var(--suave); }
.local__data .dia { font-family: var(--f-titulo); font-size: clamp(5.5rem, 12vw, 7.5rem); line-height: .9; margin: 14px 0 6px; }
.local__data .mes { font-style: italic; font-size: 1.35rem; margin-bottom: 18px; }
.local__info { padding: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.local__nome { font-family: var(--f-titulo); font-weight: 400; font-size: clamp(2rem, 4.2vw, 2.9rem); line-height: 1.05; margin: 0 0 14px; }
.local__end { margin: 0; color: var(--suave); font-size: 1.12em; }
.local__texto { margin: 20px 0 0; font-style: italic; font-size: 1.1em; }
.mapa { margin-top: 26px; border: 1px solid var(--linha); background: var(--papel); padding: 8px; }
.mapa iframe { width: 100%; height: 320px; border: 0; display: block; filter: grayscale(1) contrast(1.05) brightness(1.02); }

/* ---------- Botões ---------- */
.acoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.acoes--centro { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font-family: var(--f-rotulo); font-size: .64rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none; padding: 15px 22px; border: 1px solid var(--tinta);
  background: var(--tinta); color: var(--papel); border-radius: 0;
  transition: background .35s, color .35s, transform .35s;
}
.btn:hover { background: transparent; color: var(--tinta); }
.btn--linha { background: transparent; color: var(--tinta); }
.btn--linha:hover { background: var(--tinta); color: var(--papel); }
.fundo-escuro .btn { border-color: var(--sobre-escuro); background: var(--sobre-escuro); color: var(--escuro); }
.fundo-escuro .btn:hover, .fundo-escuro .btn--linha { background: transparent; color: var(--sobre-escuro); }
.fundo-escuro .btn--linha:hover { background: var(--sobre-escuro); color: var(--escuro); }
.btn--cheio { width: 100%; justify-content: center; padding: 18px; }
.ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.link-btn { background: none; border: 0; padding: 6px 0; cursor: pointer; font-family: var(--f-rotulo); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 5px; opacity: .8; }
.agenda { position: relative; }
.agenda summary { list-style: none; }
.agenda summary::-webkit-details-marker { display: none; }
.agenda__menu { position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; min-width: 220px; background: var(--papel); color: var(--tinta); border: 1px solid var(--linha); box-shadow: 0 20px 40px -20px rgba(0,0,0,.35); }
.agenda__menu a { display: block; padding: 14px 18px; text-decoration: none; font-size: .95em; border-bottom: 1px solid var(--linha); }
.agenda__menu a:last-child { border: 0; }
.agenda__menu a:hover { background: color-mix(in srgb, var(--papel) 92%, var(--tinta)); }

/* ---------- Contagem ---------- */
.marca-dagua { position: absolute; left: 50%; top: 50%; width: min(120vw, 900px); transform: translate(-50%, -50%); opacity: .045; color: var(--sobre-escuro); pointer-events: none; }
.fundo-papel .marca-dagua, .fundo-suave .marca-dagua { color: var(--tinta); }
.marca-dagua .mono--txt { font-size: 30rem; display: block; text-align: center; }
.contagem { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 720px; margin: 0 auto; }
.contagem__item { text-align: center; padding: 6px 8px; position: relative; }
.contagem__item + .contagem__item::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px; background: currentColor; opacity: .18; }
.contagem__num { display: block; font-family: var(--f-titulo); font-size: clamp(3rem, 10vw, 5.8rem); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.contagem__rot { display: block; margin-top: 12px; font-family: var(--f-rotulo); font-size: .58rem; letter-spacing: .32em; text-transform: uppercase; opacity: .62; }
.contagem__data { text-align: center; margin: 46px 0 0; font-family: var(--f-rotulo); font-size: .66rem; letter-spacing: .4em; opacity: .62; }
.contagem.fim { display: block; text-align: center; font-family: var(--f-script); font-size: clamp(2.6rem, 8vw, 4.5rem); }

/* ---------- Traje ---------- */
.destaque-txt { text-align: center; font-family: var(--f-titulo); font-size: clamp(1.55rem, 4vw, 2.35rem); line-height: 1.3; margin: 0 auto; max-width: 18em; }
.destaque-txt::before, .destaque-txt::after { content: ""; display: block; width: 1px; height: 40px; margin: 0 auto 26px; background: var(--linha); }
.destaque-txt::after { margin: 26px auto 0; }
.paleta { display: flex; justify-content: center; gap: 12px; margin-top: 36px; }
.paleta span { width: 38px; height: 38px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 0 0 4px var(--papel), 0 0 0 5px var(--linha); }
.lista-fina { list-style: none; padding: 0; margin: 36px auto 0; max-width: 30em; text-align: center; }
.lista-fina li { padding: 12px 0; border-top: 1px solid var(--linha); }
.lista-fina li:last-child { border-bottom: 1px solid var(--linha); }

/* ---------- História ---------- */
.linha-tempo { list-style: none; padding: 0; margin: 0 auto; max-width: 760px; position: relative; }
.linha-tempo::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--linha); }
.linha-tempo li { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 60px; position: relative; }
.linha-tempo li::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border: 1px solid var(--tinta); background: var(--papel); transform: translate(-50%, -50%) rotate(45deg); }
.linha-tempo li:nth-child(even) figure { order: 2; }
.linha-tempo li:not(:has(figure)) .lt__txt { grid-column: 1 / -1; text-align: center; background: var(--papel); position: relative; z-index: 1; padding: 10px; max-width: 420px; margin: 0 auto; }
.linha-tempo figure { margin: 0; }
.linha-tempo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.lt__data { font-family: var(--f-rotulo); font-size: .6rem; letter-spacing: .3em; text-transform: uppercase; color: var(--suave); }
.linha-tempo h3 { font-family: var(--f-titulo); font-weight: 400; font-size: 1.9rem; margin: 6px 0 8px; line-height: 1.1; }
.linha-tempo p { margin: 0; }

/* ---------- Galeria ---------- */
.galeria { columns: 3 260px; column-gap: 14px; }
.galeria__foto { display: block; margin-bottom: 14px; break-inside: avoid; overflow: hidden; }
.galeria__foto img { width: 100%; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1), filter .6s; }
.galeria__foto:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: color-mix(in srgb, var(--escuro) 94%, transparent); display: grid; place-items: center; padding: 30px; color: var(--sobre-escuro); }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 82vh; max-width: 92vw; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox p { text-align: center; font-style: italic; margin: 14px 0 0; }
.lightbox__fechar { position: absolute; top: 14px; right: 18px; background: none; border: 0; font-size: 2.4rem; cursor: pointer; color: inherit; }

/* ---------- Presentes / PIX ---------- */
.pix { display: flex; gap: 28px; align-items: center; justify-content: center; border: 1px solid var(--linha); padding: 28px; background: var(--papel); text-align: left; }
.fundo-escuro .pix { background: transparent; border-color: color-mix(in srgb, var(--sobre-escuro) 25%, transparent); }
.pix__qr { width: 132px; height: 132px; object-fit: contain; background: #fff; padding: 6px; }
.pix__rot { display: block; font-family: var(--f-rotulo); font-size: .58rem; letter-spacing: .3em; text-transform: uppercase; color: var(--suave); }
.pix__chave { display: block; font-family: var(--f-titulo); font-size: 1.45rem; margin: 6px 0 4px; word-break: break-all; }
.pix__info { display: block; font-style: italic; color: var(--suave); margin-bottom: 16px; }

/* ---------- Formulários (RSVP / recados) ---------- */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.rsvp, .recado-form { display: grid; gap: 22px; text-align: left; }
.rsvp__ola { text-align: center; font-size: 1.25em; margin: 0; }
.rsvp__opcoes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opcao { cursor: pointer; }
.opcao input { position: absolute; opacity: 0; pointer-events: none; }
.opcao span {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; padding: 14px;
  border: 1px solid color-mix(in srgb, currentColor 30%, transparent); text-align: center;
  font-family: var(--f-rotulo); font-size: .64rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  transition: background .3s, color .3s, border-color .3s;
}
.opcao input:checked + span { background: currentColor; }
.opcao input:checked + span { background: var(--tinta); color: var(--papel); border-color: var(--tinta); }
.fundo-escuro .opcao input:checked + span { background: var(--sobre-escuro); color: var(--escuro); border-color: var(--sobre-escuro); }
.opcao input:focus-visible + span { outline: 2px solid currentColor; outline-offset: 3px; }
.campo { display: grid; gap: 6px; }
.campo > span { font-family: var(--f-rotulo); font-size: .58rem; letter-spacing: .28em; text-transform: uppercase; opacity: .7; }
.campo em { text-transform: none; letter-spacing: 0; font-family: var(--f-texto); font-size: 1.3em; }
.campo input, .campo textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  padding: 10px 0; font-size: 1.15em; outline: none; border-radius: 0; transition: border-color .3s;
}
.campo input:focus, .campo textarea:focus { border-bottom-color: currentColor; }
.campo textarea { resize: vertical; min-height: 80px; }
.acomp { display: grid; gap: 8px; }
.acomp__linha { display: flex; gap: 10px; align-items: center; }
.acomp__linha input { flex: 1; }
.acomp__linha button { background: none; border: 0; cursor: pointer; font-size: 1.4rem; opacity: .6; }
.rsvp.nao .so-sim { display: none; }
.rsvp__status { margin: 0; text-align: center; min-height: 1.4em; font-style: italic; }
.rsvp__status.erro { color: #c2453a; }
.fundo-escuro .rsvp__status.erro { color: #f2a097; }
.rsvp__ok { text-align: center; padding: 20px 0; }
.rsvp__ok .ico { width: 38px; height: 38px; stroke-width: 1; margin: 0 auto 10px; display: block; }
.rsvp__ok p { font-size: 1.35em; font-style: italic; margin: 0 0 12px; }
.rsvp.enviado > :not(.rsvp__ok) { display: none; }
.rsvp.enviado .rsvp__ok { display: block; }
.prazo { font-weight: 600; white-space: nowrap; }

.mural { margin-top: 56px; columns: 2 280px; column-gap: 18px; }
.mural__item { break-inside: avoid; margin: 0 0 18px; padding: 26px 26px 22px; border: 1px solid var(--linha); background: var(--papel); position: relative; }
.mural__item::before { content: "“"; position: absolute; top: -6px; left: 18px; font-family: var(--f-titulo); font-size: 4rem; line-height: 1; color: var(--linha); }
.mural__item p { margin: 0 0 12px; font-style: italic; font-size: 1.08em; }
.mural__item cite { font-style: normal; font-family: var(--f-rotulo); font-size: .58rem; letter-spacing: .28em; text-transform: uppercase; color: var(--suave); }

/* ---------- Texto livre ---------- */
.texto-img { margin: 0 0 30px; }
.texto-img img { width: 100%; }

/* ---------- Despedida ---------- */
.despedida { text-align: center; }
.mono--pq { width: 86px; margin: 0 auto 30px; color: var(--tinta); }
.fundo-escuro .mono--pq { color: var(--sobre-escuro); }
.mono--pq.mono--txt { font-size: 3.2rem; width: auto; }
.script-grande { font-family: var(--f-script); font-weight: 400; font-size: clamp(3.2rem, 10vw, 5.8rem); line-height: 1.1; margin: 0 0 18px; }
.despedida__nomes { font-family: var(--f-rotulo); font-size: .64rem; letter-spacing: .4em; text-transform: uppercase; color: var(--suave); margin: 10px 0 18px; }
.link-site { font-style: italic; text-decoration: none; border-bottom: 1px solid var(--linha); padding-bottom: 2px; font-size: 1.05em; }

/* ---------- Flutuantes ---------- */
.flutuantes { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 70; display: grid; gap: 10px; }
.flut { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--linha); background: color-mix(in srgb, var(--papel) 88%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; cursor: pointer; color: var(--tinta); box-shadow: 0 10px 30px -12px rgba(0,0,0,.35); }
.flut .ico { width: 20px; height: 20px; }
.flut--som[aria-pressed="false"] .onda { opacity: .15; }
.aviso-flut { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 210; background: var(--tinta); color: var(--papel); padding: 12px 20px; font-family: var(--f-rotulo); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; transition: .4s; }
.aviso-flut.vis { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Revelação ao rolar ---------- */
.r { opacity: 0; transform: translateY(22px); transition: opacity 1.1s cubic-bezier(.2, .7, .2, 1), transform 1.1s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--atraso, 0s); }
.r.vis { opacity: 1; transform: none; }
.sem-animacao .r { opacity: 1; transform: none; transition: none; }
.sem-animacao.aberto .sec--capa .capa__mono .mono { animation: none; }

/* =====================================================================
   ABERTURA — vídeo
   ===================================================================== */
.abertura { position: fixed; inset: 0; z-index: 100; transition: opacity .9s ease, visibility .9s; }
.abertura.saiu { opacity: 0; visibility: hidden; pointer-events: none; }
.abertura--video { background: #0c0c0c; display: grid; place-items: center; overflow: hidden; }
.abertura__video { width: 100%; height: 100%; object-fit: cover; }
@media (min-aspect-ratio: 4/5) {
  .abertura__video { width: auto; height: 100%; max-width: none; -webkit-mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
}
.abertura--video::after { content: ""; position: absolute; inset: 0; background: var(--papel); opacity: 0; pointer-events: none; transition: opacity .8s ease; }
.abertura--video.clareando::after { opacity: 1; }
.abertura__veu {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  padding: 0 24px calc(9vh + env(safe-area-inset-bottom)); text-align: center; color: #f4efe6;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0) 46%);
  transition: opacity .6s;
}
.abertura.tocando .abertura__veu { opacity: 0; pointer-events: none; }
.abertura__texto { margin-bottom: 28px; min-height: 1em; }
.abertura__para { font-family: var(--f-rotulo); font-size: .58rem; letter-spacing: .4em; text-transform: uppercase; opacity: .7; margin: 0 0 4px; }
.abertura__nome { font-family: var(--f-script); font-size: clamp(2.3rem, 8vw, 3.4rem); line-height: 1.1; margin: 0; }
.abertura__nome--pq { font-family: var(--f-titulo); font-style: italic; font-size: clamp(1.25rem, 4vw, 1.6rem); opacity: .9; }
.abertura__btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px; cursor: pointer;
  background: rgba(255,255,255,.06); color: inherit; border: 1px solid rgba(255,255,255,.4);
  padding: 16px 26px 16px 20px; border-radius: 999px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-family: var(--f-rotulo); font-size: .64rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
}
.abertura__anel { width: 10px; height: 10px; border-radius: 50%; background: currentColor; position: relative; }
.abertura__anel::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid currentColor; animation: anel 2s ease-out infinite; }
@keyframes anel { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.abertura__pular {
  position: absolute; top: calc(18px + env(safe-area-inset-top)); right: 18px; background: none; border: 0; cursor: pointer;
  color: rgba(255,255,255,.62); font-family: var(--f-rotulo); font-size: .58rem; letter-spacing: .26em; text-transform: uppercase; padding: 10px;
}

/* =====================================================================
   ABERTURA — envelope (para casamentos sem vídeo)
   ===================================================================== */
.abertura--envelope {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px; padding: 24px;
  background: radial-gradient(ellipse at 50% 40%, var(--papel), color-mix(in srgb, var(--papel) 86%, var(--tinta)));
  color: var(--tinta);
}
.abertura__topo { text-align: center; min-height: 2em; }
.abertura--envelope .abertura__para { color: var(--suave); }
.abertura__chamada { font-family: var(--f-rotulo); font-size: .6rem; letter-spacing: .34em; text-transform: uppercase; color: var(--suave); margin: 0; animation: respira 2.6s ease-in-out infinite; }
@keyframes respira { 50% { opacity: .35; } }
.abrindo .abertura__chamada { animation: none; opacity: 0; transition: opacity .3s; }

.env { --w: min(84vw, 440px); position: relative; width: var(--w); aspect-ratio: 1.42; cursor: pointer; perspective: 1400px; outline: none; transition: transform 1s cubic-bezier(.6, 0, .2, 1); }
.env:focus-visible { outline: 2px solid var(--tinta); outline-offset: 10px; }
.env > div { position: absolute; }
.env__fundo { inset: 0; background: var(--escuro); border-radius: 3px; box-shadow: 0 40px 80px -36px rgba(0,0,0,.6), 0 10px 20px -12px rgba(0,0,0,.3); }
.env__fundo::after, .env__bolso::after, .env__aba-in::after { content: ""; position: absolute; inset: 0; opacity: .22; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.env__carta {
  left: 6%; right: 6%; top: 7%; bottom: 7%; z-index: 2; background: var(--papel); color: var(--tinta);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center;
  box-shadow: 0 1px 2px rgba(0,0,0,.15); transition: transform 1.1s cubic-bezier(.5, 0, .2, 1);
}
.mono--carta { width: 30%; }
.mono--carta.mono--txt { font-size: 2.6rem; width: auto; }
.env__nomes { font-family: var(--f-titulo); font-size: 1.15rem; margin: 8px 0 0; }
.env__data { font-family: var(--f-rotulo); font-size: .5rem; letter-spacing: .3em; margin: 0; color: var(--suave); }
.env__bolso { inset: 0; z-index: 3; background: color-mix(in srgb, var(--escuro) 92%, #fff); clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%); border-radius: 3px; filter: drop-shadow(0 -1px 0 rgba(255,255,255,.06)); }
.env__aba { left: 0; right: 0; top: 0; height: 60%; z-index: 4; transform-origin: 50% 0; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.5, 0, .2, 1), z-index 0s .45s; }
.env__aba-in { position: absolute; inset: 0; background: color-mix(in srgb, var(--escuro) 86%, #fff); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.env__selo {
  left: 50%; top: 60%; width: 25%; aspect-ratio: 1; z-index: 5; transform: translate(-50%, -50%);
  border-radius: 47% 53% 50% 50% / 52% 48% 52% 48%;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--selo) 70%, #fff), var(--selo) 45%, color-mix(in srgb, var(--selo) 78%, #000));
  box-shadow: 0 6px 14px -4px rgba(0,0,0,.5), inset 0 -3px 6px rgba(0,0,0,.18), inset 0 2px 3px rgba(255,255,255,.4);
  display: grid; place-items: center; transition: transform .6s cubic-bezier(.5, 0, .2, 1), opacity .5s;
}
.env__selo::before { content: ""; position: absolute; inset: 11%; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--selo) 72%, #000); opacity: .55; }
.mono--selo { width: 60%; color: color-mix(in srgb, var(--selo) 62%, #000); filter: drop-shadow(0 1px 0 rgba(255,255,255,.45)); }
.mono--selo.mono--txt { font-size: 1.9rem; width: auto; }
.env:hover .env__selo { transform: translate(-50%, -50%) scale(1.05); }

.abrindo .env__selo { transform: translate(-50%, -50%) scale(1.25) !important; opacity: 0; }
.abrindo .env__aba { transform: rotateX(180deg); z-index: 1; transition-delay: .25s, .7s; }
.abrindo2 .env__carta { transform: translateY(-58%); }
.abrindo3 .env { transform: translateY(18vh) scale(1.08); }
.abrindo3 .env__carta { transform: translateY(-58%) scale(1.06); }

/* ---------- Pré-visualização no editor ---------- */
.modo-previa .flutuantes { bottom: 16px; }

/* ---------- Responsivo ---------- */
@media (max-width: 720px) {
  body { font-size: calc(1.12rem * var(--escala, 1)); }
  .nomes .nome { white-space: normal; }
  .pais { gap: 14px; }
  .local { grid-template-columns: 1fr; }
  .local__data { border-right: 0; border-bottom: 1px solid var(--linha); padding: 36px 20px 28px; }
  .local__info { text-align: center; align-items: center; }
  .acoes { justify-content: center; }
  .agenda__menu { left: 50%; transform: translateX(-50%); }
  .mapa iframe { height: 260px; }
  .contagem { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .contagem__item:nth-child(3)::before { display: none; }
  .linha-tempo::before, .linha-tempo li::after { left: 12px; }
  .linha-tempo li { grid-template-columns: 1fr; gap: 16px; padding-left: 40px; }
  .linha-tempo li:nth-child(even) figure { order: 0; }
  .linha-tempo li:not(:has(figure)) .lt__txt { text-align: left; margin: 0; }
  .pix { flex-direction: column; text-align: center; }
  .galeria { columns: 2 140px; column-gap: 8px; }
  .galeria__foto { margin-bottom: 8px; }
}
@media (max-width: 340px) {
  .pais { grid-template-columns: 1fr; }
  .pais::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .r { opacity: 1; transform: none; transition: none; }
  .rolar span, .abertura__anel::after, .abertura__chamada { animation: none; }
  body.aberto .sec--capa .capa__mono .mono { animation: none; }
}
