/* ==========================================================
   Convite 15 anos — Maria Luiza  ·  rose gold / noite
   ========================================================== */
:root {
  --bg: #110508;
  --rose: #eeaa98;
  --rose-2: #f8d5ca;
  --rose-3: #c98066;
  --pink: #f06a9a;
  --text: #f7e7e2;
  --muted: #cfaaa3;
  --line: rgba(238, 170, 152, .38);
  --col: min(100vw, 520px);
  --serif: "Cormorant Garamond", Georgia, serif;
  --caps: "Cinzel", "Cormorant Garamond", serif;
  --script: "Great Vibes", cursive;
  --ease: cubic-bezier(.2, .75, .2, 1);
  --rg: linear-gradient(100deg, #f3bba9 0%, #ffeae2 18%, #e8957f 36%, #fff4ef 50%, #d4826b 64%, #f6c6b6 82%, #f3bba9 100%);
  /* capa: proporção da arte (735 x 1600) e posição do lacre */
  --cover-ratio: 0.459375;
  --split: 43.1%;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  background: transparent; /* o fundo fica no html; a camada animada (body::before) aparece */
  color: var(--text);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.45;
  font-variant-numeric: lining-nums;
  min-height: 100dvh;
  overflow-x: hidden;
}
/* fundo "cetim" com luz se movendo devagar */
body::before {
  content: ""; position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 30% at 20% 15%, rgba(150, 40, 70, .35), transparent 70%),
    radial-gradient(45% 35% at 85% 45%, rgba(120, 30, 55, .3), transparent 70%),
    radial-gradient(50% 30% at 30% 85%, rgba(160, 60, 70, .25), transparent 70%),
    linear-gradient(180deg, #1a070d, #0d0306 60%, #1a070d);
  animation: satin 22s ease-in-out infinite alternate;
}
@keyframes satin {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to   { transform: translate3d(-4%, 3%, 0) rotate(4deg); }
}
body.is-locked { overflow: hidden; height: 100dvh; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
svg { display: block; }

/* texto rose gold com brilho correndo */
.shine, .name__ink, .fifteen__anos, .menu-title, .modal__title, .sign span {
  background: var(--rg);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }

/* ================= CAPA ================= */
.cover {
  position: fixed; inset: 0; z-index: 50;
  overflow: hidden; cursor: pointer;
  background: #0b0306;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.cover__stage {
  position: absolute; left: 50%; top: 50%;
  width: max(100vw, calc(100dvh * var(--cover-ratio)));
  aspect-ratio: 735 / 1600;
  transform: translate(-50%, -50%);
}
@media (min-aspect-ratio: 3/5) {
  .cover__stage { width: calc(100dvh * var(--cover-ratio)); }
  .cover::before {
    content: ""; position: absolute; inset: -40px;
    background: url(/assets/capa.jpg) center / cover;
    filter: blur(30px) brightness(.4);
  }
}
/* portas: cada uma tem só a sua metade (sem clip-path = animação leve na GPU) */
.door {
  position: absolute; top: 0; bottom: 0; overflow: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
}
.door img { height: 100%; max-width: none; user-select: none; -webkit-user-drag: none; }
.door--left  { left: 0; width: var(--split); transform-origin: 0 50%; }
.door--left img  { width: calc(100% / .431); }
.door--right { left: var(--split); right: 0; transform-origin: 100% 50%; }
.door--right img { width: calc(100% / .569); margin-left: calc(-100% * .431 / .569); }

/* lacre recortado da própria arte, por cima, para pulsar de verdade
   centro do lacre na arte: x 316 / y 760 (de 735 x 1600) */
.seal, .seal-glow, .seal-ring { position: absolute; left: 20.54%; top: 37.19%; width: 44.9%; aspect-ratio: 1; border-radius: 50%; pointer-events: none; will-change: transform, opacity; }
.seal {
  background: url(/assets/capa.jpg) 37.28% 46.85% / 222.7% auto no-repeat;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 78%, transparent 86%);
          mask-image: radial-gradient(circle closest-side, #000 78%, transparent 86%);
  animation: sealPulse 2.2s ease-in-out infinite;
}
.seal-glow {
  background: radial-gradient(circle closest-side, rgba(255, 190, 170, .55), rgba(255, 150, 140, .18) 60%, transparent 100%);
  transform: scale(1.25);
  animation: glowPulse 2.2s ease-in-out infinite;
}
.seal-ring { box-shadow: 0 0 0 1.5px rgba(255, 215, 200, .55), 0 0 14px rgba(255, 170, 150, .35); animation: ring2 2.2s ease-out infinite; }
@keyframes sealPulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.28) saturate(1.1); } }
@keyframes glowPulse { 0%, 100% { opacity: .25; transform: scale(1.1); } 50% { opacity: 1; transform: scale(1.35); } }
@keyframes ring2 { 0% { opacity: 0; transform: scale(.9); } 25% { opacity: .8; } 100% { opacity: 0; transform: scale(1.5); } }

/* sequência de abertura: lacre estoura → portas abrem → capa some */
.cover.is-opening { pointer-events: none; background: transparent; transition: background .3s; }
.cover.is-opening::before { opacity: 0; transition: opacity .35s; }
.cover.is-opening .seal      { animation: sealPop .55s cubic-bezier(.3, 0, .2, 1) forwards; }
.cover.is-opening .seal-glow { animation: glowFlash .7s ease-out forwards; }
.cover.is-opening .seal-ring { animation: none; opacity: 0; }
/* portas de correr: cada metade desliza para o seu lado (sem 3D = sem distorção) */
.cover.is-opening .door { transition: transform 1.25s cubic-bezier(.77, 0, .18, 1) .25s; }
.cover.is-opening .door--left  { transform: translate3d(-101%, 0, 0); }
.cover.is-opening .door--right { transform: translate3d(101%, 0, 0); }
.cover.is-opening { animation: coverFade .45s ease 1.25s forwards; }
@keyframes sealPop { 0% { opacity: 1; filter: brightness(1.3); } 100% { opacity: 0; filter: brightness(2.2); } }
@keyframes glowFlash { 0% { opacity: 1; transform: scale(1.3); } 40% { opacity: 1; transform: scale(2.6); } 100% { opacity: 0; transform: scale(3.6); } }
@keyframes coverFade { to { opacity: 0; visibility: hidden; } }
.cover.is-gone { display: none; }

.fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

/* ================= ESTRUTURA ================= */
.invite {
  width: var(--col); margin: 0 auto;
  padding: 0 20px calc(30px + env(safe-area-inset-bottom));
  text-align: center;
  visibility: hidden;
}
body.is-open .invite { visibility: visible; }
section { position: relative; }

.divider { width: min(240px, 70%); height: 24px; margin: 14px auto; overflow: visible; }

/* aparecer ao rolar */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ================= 1. HERO ================= */
.hero {
  min-height: 100svh; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: max(56px, env(safe-area-inset-top)) 0 70px;
}
.rose {
  position: absolute; pointer-events: none; z-index: -1;
  width: 62%; max-width: 300px;
  opacity: 0;
}
.rose--tl {
  top: -6px; left: -28px;
  -webkit-mask-image: radial-gradient(85% 85% at 30% 30%, #000 45%, transparent 75%);
          mask-image: radial-gradient(85% 85% at 30% 30%, #000 45%, transparent 75%);
  transform-origin: 0 0;
}
.rose--br {
  bottom: -70px; right: -40px; width: 48%;
  -webkit-mask-image: radial-gradient(85% 85% at 65% 65%, #000 45%, transparent 75%);
          mask-image: radial-gradient(85% 85% at 65% 65%, #000 45%, transparent 75%);
  transform-origin: 100% 100%;
}
body.is-open .rose { animation: roseIn 2s var(--ease) .6s forwards, sway 7s ease-in-out 2.6s infinite alternate; }
body.is-open .rose--br { animation-delay: 1s, 3s; }
@keyframes roseIn { from { opacity: 0; transform: scale(.7) rotate(-8deg); } to { opacity: .9; transform: none; } }
@keyframes sway { from { transform: rotate(0deg); } to { transform: rotate(2.5deg) scale(1.02); } }

/* tiara se desenhando */
.tiara { width: min(190px, 52%); margin: 0 auto -6px; overflow: visible; filter: drop-shadow(0 0 8px rgba(255, 180, 160, .45)); }
.tiara .draw { stroke-dasharray: 420; stroke-dashoffset: 420; }
.tiara .gems > * { opacity: 0; transform-box: fill-box; transform-origin: center; }
body.is-open .tiara .draw { animation: draw 2.2s var(--ease) .5s forwards; }
body.is-open .tiara .gems > * { animation: gem .6s var(--ease) forwards, twinkle 2.6s ease-in-out infinite; }
body.is-open .tiara .gems > :nth-child(1) { animation-delay: 1.5s, 2.1s; }
body.is-open .tiara .gems > :nth-child(2) { animation-delay: 1.65s, 2.5s; }
body.is-open .tiara .gems > :nth-child(3) { animation-delay: 1.8s, 2.9s; }
body.is-open .tiara .gems > :nth-child(4) { animation-delay: 1.95s, 3.3s; }
body.is-open .tiara .gems > :nth-child(5) { animation-delay: 2.1s, 3.7s; }
body.is-open .tiara .gems > :nth-child(n+6) { animation-delay: 2.2s, 2.8s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes gem { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes twinkle { 0%, 100% { filter: none; } 50% { filter: brightness(1.5) drop-shadow(0 0 3px #fff); } }

/* nome "escrito à mão" */
.name { margin: 0; line-height: 1; font-weight: 400; }
.name__ink {
  display: inline-block;
  font-family: var(--script);
  font-size: clamp(66px, 20vw, 108px);
  padding: .12em .2em .2em;
  filter: drop-shadow(0 0 14px rgba(240, 120, 150, .35)) drop-shadow(0 2px 0 rgba(90, 30, 30, .6));
  -webkit-mask-image: linear-gradient(90deg, #000 44%, transparent 56%);
          mask-image: linear-gradient(90deg, #000 44%, transparent 56%);
  -webkit-mask-size: 260% 100%; mask-size: 260% 100%;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
body.is-open .name__ink { animation: write 2.4s cubic-bezier(.5, .1, .3, 1) 1s forwards, shimmer 6s linear infinite; }
@keyframes write { to { -webkit-mask-position: 0 0; mask-position: 0 0; } }

.hero__in { opacity: 0; transform: translateY(18px); }
body.is-open .hero__in { animation: fadeUp 1.2s var(--ease) var(--d, 0s) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.hero__lead { margin: 4px 0 10px; font-style: italic; font-size: 24px; color: var(--rose-2); }
.hero__text { margin: 0 auto; max-width: 340px; font-size: 20px; color: var(--text); }

.fifteen { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-top: 6px; }
.fifteen__num {
  font-family: var(--serif); font-weight: 600; font-size: clamp(96px, 30vw, 140px); line-height: 1;
  filter: drop-shadow(0 0 18px rgba(255, 170, 150, .4)) drop-shadow(0 3px 0 rgba(90, 30, 30, .7));
}
.fifteen__anos {
  font-family: var(--script); font-size: clamp(56px, 17vw, 80px); line-height: 1;
  filter: drop-shadow(0 0 12px rgba(255, 170, 150, .35));
}

.scroll-hint { position: absolute; bottom: 22px; left: 50%; margin-left: -12px; width: 24px; height: 38px; border: 1.5px solid var(--line); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--rose); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ================= FOTOS ================= */
.photo { margin: 0 auto; position: relative; overflow: hidden; isolation: isolate; }
.photo img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 14s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.12) translateY(2%); } to { transform: scale(1) translateY(0); } }
.photo::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1.5px rgba(255, 210, 195, .75), inset 0 0 0 6px rgba(20, 5, 9, .5), inset 0 0 0 7px rgba(238, 170, 152, .4), inset 0 -60px 60px -30px rgba(17, 5, 8, .7);
}
.photo--arch { width: 84%; aspect-ratio: 520 / 820; border-radius: 999px 999px 26px 26px; box-shadow: 0 0 50px rgba(240, 106, 154, .18), 0 25px 60px rgba(0, 0, 0, .6); }
.photo--oval { width: 82%; aspect-ratio: 7 / 9; border-radius: 50%; box-shadow: 0 0 50px rgba(240, 106, 154, .18), 0 25px 60px rgba(0, 0, 0, .6); }

/* ================= 2. DATA ================= */
.date-sec { padding: 40px 0 10px; }
.date { margin-top: -40px; position: relative; z-index: 2; }
.date__row { display: flex; align-items: center; justify-content: center; gap: 16px; }
.date__side {
  font-family: var(--caps); font-size: 22px; letter-spacing: .14em; color: var(--rose-2);
  padding: 6px 0; border-block: 1px solid var(--line); min-width: 70px;
}
.date__day {
  font-family: var(--serif); font-weight: 600; font-size: 128px; line-height: .9;
  filter: drop-shadow(0 0 18px rgba(255, 170, 150, .4)) drop-shadow(0 3px 0 rgba(60, 15, 20, .9));
}
.date__year { display: flex; align-items: center; justify-content: center; gap: 14px; font-family: var(--caps); font-size: 28px; letter-spacing: .12em; color: var(--text); margin: 4px 0; }
.date__year i { width: 34px; height: 1px; background: var(--rose); }
.date__time {
  font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 84px; line-height: 1;
  filter: drop-shadow(0 0 14px rgba(255, 170, 150, .35));
}

/* ================= 3. CONTAGEM ================= */
.count-sec { padding: 56px 0 20px; }
.quote { margin: 0 auto; max-width: 380px; font-style: italic; font-size: 22px; color: var(--text); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.cd {
  padding: 14px 4px 10px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 200, 185, .08), rgba(255, 200, 185, .02));
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px rgba(0, 0, 0, .35);
  overflow: hidden;
}
.cd b {
  display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 10vw, 46px); line-height: 1.05;
  font-variant-numeric: lining-nums tabular-nums;
  background: var(--rg); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cd b.tick { animation: tick .5s var(--ease); }
@keyframes tick { from { transform: translateY(-40%); opacity: 0; } to { transform: none; opacity: 1; } }
.cd span { font-family: var(--caps); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.countdown.is-done { display: block; }
.countdown.is-done p { margin: 0; font-family: var(--script); font-size: 52px; color: var(--rose-2); }

/* ================= 4. INTERAGIR ================= */
.menu-sec { padding: 56px 0 10px; }
.menu-title { margin: 0 0 22px; font-family: var(--script); font-weight: 400; font-size: 64px; line-height: 1; }
.menu-title small, .modal__title small {
  display: block; font-family: var(--caps); font-size: 22px; letter-spacing: .1em; line-height: 1.6;
  color: var(--rose-2); background: none; -webkit-text-fill-color: var(--rose-2);
}
.menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.item {
  width: 100%; display: flex; align-items: center; gap: 16px; text-align: left;
  padding: 12px 16px 12px 12px; border-radius: 999px; border: 0;
  background: linear-gradient(90deg, rgba(255, 200, 185, .09), rgba(255, 200, 185, .02));
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .3s, background .3s;
  -webkit-tap-highlight-color: transparent;
}
.item--rev { flex-direction: row-reverse; text-align: right; padding: 12px 12px 12px 22px; background: linear-gradient(270deg, rgba(255, 200, 185, .09), rgba(255, 200, 185, .02)); }
.item:hover { box-shadow: inset 0 0 0 1px rgba(255, 210, 195, .7), 0 0 26px rgba(240, 106, 154, .22); }
.item:active { transform: scale(.97); }
.item:focus-visible { outline: 2px solid var(--rose-2); outline-offset: 3px; }
.item__icon {
  flex: none; width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #e7a99a, #a2584a 70%, #6d3029);
  box-shadow: inset 0 0 0 2px rgba(255, 215, 200, .65), inset 0 -6px 12px rgba(60, 10, 15, .5), 0 6px 18px rgba(0, 0, 0, .45);
  position: relative;
}
.item__icon::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid rgba(238, 170, 152, .45); animation: ring 2.8s ease-out infinite; }
.menu li:nth-child(2) .item__icon::after { animation-delay: .7s; }
.menu li:nth-child(3) .item__icon::after { animation-delay: 1.4s; }
.menu li:nth-child(4) .item__icon::after { animation-delay: 2.1s; }
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.item__icon svg { width: 30px; height: 30px; fill: #fff3ee; filter: drop-shadow(0 1px 1px rgba(60, 10, 15, .5)); }
.item__body { display: grid; gap: 1px; flex: 1; }
.item__body b { font-weight: 600; font-size: 22px; letter-spacing: .01em; color: #fff4f0; }
.item__body em { font-size: 17px; color: var(--rose-2); }
.item__body .item__caps { font-style: italic; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; font-size: 15px; }
.item__body small { font-size: 15px; color: var(--muted); }
.menu li.reveal:nth-child(odd)  { transform: translateX(-40px); }
.menu li.reveal:nth-child(even) { transform: translateX(40px); }
.menu li.reveal.is-visible { transform: none; }

.tap { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; color: var(--rose-2); }
.tap i { width: 70px; height: 1px; background: linear-gradient(90deg, transparent, var(--rose)); }
.tap i:last-child { transform: scaleX(-1); }
.tap svg { width: 30px; height: 30px; animation: tap 1.6s ease-in-out infinite; }
@keyframes tap { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(4px) scale(.94); } }

/* ================= 5. FOTO FINAL ================= */
.end-sec { padding: 56px 0 10px; }
.end__title { margin: 0 auto 22px; max-width: 360px; font-family: var(--script); font-size: 44px; line-height: 1.15; color: var(--rose-2); text-shadow: 0 0 18px rgba(240, 106, 154, .3); }

/* ================= 6. AÇÕES ================= */
.actions { display: grid; gap: 12px; padding: 44px 0 10px; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 10px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  color: var(--rose-2); font-family: var(--serif); font-size: 18px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: transform .15s, background .25s, box-shadow .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn:hover { background: rgba(238, 170, 152, .1); box-shadow: 0 0 20px rgba(240, 106, 154, .2); }
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 2px solid var(--rose-2); outline-offset: 3px; }
.btn--primary {
  position: relative; overflow: hidden; border: 0; color: #2a0b14; font-size: 20px;
  background: linear-gradient(135deg, #ffe4da 0%, #eeaa98 45%, #c98066 100%);
  box-shadow: 0 8px 26px rgba(232, 140, 120, .35), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.btn--primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent);
  transform: skewX(-20deg); animation: sweep 3.5s ease-in-out infinite;
}
@keyframes sweep { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.sign { margin: 22px 0 0; font-style: italic; color: var(--muted); font-size: 20px; }
.sign span { display: block; font-family: var(--script); font-style: normal; font-size: 54px; line-height: 1.2; }

.footer { color: var(--muted); font-size: 15px; padding: 20px 10px 0; }
.footer p { margin: 4px 0; }
.footer__privacy { font-size: 12px; opacity: .6; }

/* ================= MODAIS ================= */
.modal {
  width: min(92vw, 440px); max-height: 92dvh;
  padding: 26px 20px 22px; border: 0; border-radius: 26px;
  background: radial-gradient(120% 60% at 50% 0%, #3a1220, transparent 70%), #14060a;
  color: var(--text); text-align: center;
  box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, .7);
  overflow: auto;
}
.modal[open] { display: grid; gap: 10px; animation: modalIn .45s var(--ease); }
.modal::backdrop { background: rgba(8, 2, 4, .78); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.modal__close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(18, 6, 9, .75); color: var(--rose-2);
  font-size: 26px; line-height: 1; cursor: pointer;
}
.modal__title { margin: 4px 0 0; font-family: var(--script); font-weight: 400; font-size: 64px; line-height: 1; }
.modal .divider { margin: 4px auto; }
.modal__big { margin: 4px 0; font-style: italic; font-weight: 600; font-size: 26px; color: var(--rose-2); }
.modal__text { margin: 0; font-size: 19px; }
.modal__text strong { color: var(--pink); filter: brightness(1.25); font-weight: 600; }
.modal__place { margin: 0; font-size: 19px; }
.modal__place strong { color: var(--rose-2); letter-spacing: .04em; }
.map { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: #1d0a10; box-shadow: 0 0 0 1px var(--line); margin: 6px 0; }
.map iframe { width: 100%; height: 100%; border: 0; }

.pix {
  margin-top: 10px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 12px;
  padding: 14px 20px; border-radius: 18px; cursor: pointer; text-align: left;
  border: 1px solid rgba(255, 210, 195, .6); background: rgba(255, 255, 255, .04);
  box-shadow: 0 0 24px rgba(240, 106, 154, .15);
  transition: transform .15s, box-shadow .25s;
}
.pix:hover { box-shadow: 0 0 30px rgba(240, 106, 154, .3); }
.pix:active { transform: scale(.97); }
.pix__label { grid-row: span 2; display: flex; align-items: center; gap: 6px; font-family: var(--caps); font-size: 20px; color: #fff; }
.pix__label svg { width: 30px; height: 30px; }
.pix__key { font-size: 28px; font-weight: 600; letter-spacing: .02em; color: var(--pink); filter: brightness(1.3); }
.pix__copy { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--muted); }
.pix__copy svg { width: 15px; height: 15px; fill: currentColor; }

.swatches { display: flex; justify-content: center; gap: 10px; margin: 8px 0 2px; }
.swatches i { width: 30px; height: 30px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px rgba(255, 220, 210, .5), 0 4px 10px rgba(0, 0, 0, .4); }
.modal[open] .swatches i { animation: gem .5s var(--ease) both; }
.modal[open] .swatches i:nth-child(2) { animation-delay: .08s; }
.modal[open] .swatches i:nth-child(3) { animation-delay: .16s; }
.modal[open] .swatches i:nth-child(4) { animation-delay: .24s; }
.modal[open] .swatches i:nth-child(5) { animation-delay: .32s; }
.modal[open] .swatches i:nth-child(6) { animation-delay: .40s; }

/* ================= TOAST ================= */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 100;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 22px; border-radius: 999px;
  background: linear-gradient(135deg, #ffe4da, #e9a28f); color: #2a0b14;
  font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  transition: opacity .3s, transform .3s; white-space: nowrap;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ================= MOVIMENTO REDUZIDO ================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .2s !important; }
  .reveal, .menu li.reveal { transform: none !important; }
}

/* folga para os floreios da fonte cursiva não serem cortados pelo recorte do degradê */
.fifteen__anos { display: inline-block; padding: .12em .18em .18em .5em; margin-left: -.4em; }
.menu-title, .modal__title { padding: 0 .35em .08em; }
.sign span { padding: 0 .3em .1em; }
.name__ink { padding: .14em .35em .22em; }

/* ================= FOTO POLAROID ================= */
.end-sec { padding-top: 64px; }
.polaroid {
  position: relative; margin: 0 auto; width: 84%;
  padding: 12px 12px 0; border-radius: 6px;
  background: linear-gradient(180deg, #fffaf7, #fbefe9);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .55), 0 0 40px rgba(240, 106, 154, .15);
  transform: rotate(-3deg);
}
.polaroid.reveal { transform: translateY(40px) rotate(-8deg) scale(.95); }
.polaroid.reveal.is-visible { transform: rotate(-3deg); transition-duration: 1.3s; }
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: 3px; filter: saturate(1.08) brightness(1.04); }
.polaroid figcaption {
  font-family: var(--script); font-size: 34px; line-height: 1.1; color: #9b3b52;
  padding: 12px 6px 16px;
}
.polaroid__tape {
  position: absolute; top: -14px; left: 50%; width: 120px; height: 30px; margin-left: -60px; z-index: 2;
  background: repeating-linear-gradient(45deg, rgba(246, 168, 190, .85) 0 8px, rgba(255, 205, 218, .85) 8px 16px);
  transform: rotate(4deg); box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}

/* telas largas: a coluna fica no meio da página — as rosas vão para os
   cantos reais da tela (como no celular), assim a borda da imagem fica fora da tela */
@media (min-width: 560px) {
  .rose { width: 380px; max-width: 380px; }
  .rose--tl { top: -8px; left: calc(240px - 50vw); }
  .rose--br { bottom: 0; right: calc(240px - 50vw); }
}

/* ==========================================================
   CARTÕES SOBRE AS ARTES ORIGINAIS
   (medidas em cqw = % da largura da arte → texto sempre no mesmo lugar)
   ========================================================== */
.invite { padding: 0 0 calc(30px + env(safe-area-inset-bottom)); display: grid; gap: 14px; }
.card { position: relative; margin: 0; overflow: hidden; container-type: inline-size; background: #0b0306; }
.card__bg { width: 100%; display: block; }
@media (min-width: 560px) {
  .invite { padding-top: 24px; }
  .card { border-radius: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6), 0 0 0 1px rgba(238, 170, 152, .15); }
}
/* brilho de luz passando pela arte de tempos em tempos */
.card::after {
  content: ""; position: absolute; inset: -20% auto -20% -60%; width: 45%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 225, 215, .13), transparent);
  transform: skewX(-18deg); animation: cardSheen 9s ease-in-out infinite;
}
.card--a2::after { animation-delay: 2s; } .card--a3::after { animation-delay: 4s; } .card--a4::after { animation-delay: 6s; }
@keyframes cardSheen { 0%, 70% { left: -60%; } 100% { left: 130%; } }

/* estrelinhas cintilando nas joias da tiara */
.glint { position: absolute; left: var(--x); top: var(--y); width: calc(7cqw * var(--s, 1)); aspect-ratio: 1; transform: translate(-50%, -50%) scale(0); pointer-events: none; }
.glint::before, .glint::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 7%; margin-top: -3.5%; border-radius: 50%; background: linear-gradient(90deg, transparent, #fff, transparent); }
.glint::after { transform: rotate(90deg); }
body.is-open .glint { animation: glint 3.2s ease-in-out var(--d, 0s) infinite; }
@keyframes glint { 0%, 60%, 100% { transform: translate(-50%, -50%) scale(0) rotate(0); opacity: 0; } 75% { transform: translate(-50%, -50%) scale(1) rotate(45deg); opacity: 1; } }

/* ---------- 1. convite ---------- */
.a1 { position: absolute; left: 8%; right: 8%; top: 24.6%; height: 52.4%; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; }
.a1__name { margin: 0; font-weight: 400; line-height: 1; }
.a1 .name__ink { font-size: 14.6cqw; padding: .1em .3em .18em; white-space: nowrap; }
.a1__div { width: 38cqw; height: 4.6cqw; margin: -1cqw 0 0; }
.a1__lead { margin: 0; font-style: italic; font-size: 4.5cqw; line-height: 1.25; color: #f7dbe2; }
.a1__text { margin: 0; font-size: 4.3cqw; line-height: 1.28; color: #fcecef; }
.a1__fifteen { display: flex; align-items: baseline; justify-content: center; }
.a1__num { font-family: var(--serif); font-weight: 600; font-size: 21cqw; line-height: .95; padding: 0 .04em; filter: drop-shadow(0 0 2.5cqw rgba(255, 170, 150, .45)) drop-shadow(0 .5cqw 0 rgba(70, 20, 25, .8)); }
.a1__anos {
  display: inline-block; font-family: var(--script); font-size: 15cqw; line-height: 1; padding: .12em .2em .2em .5em; margin-left: -.22em;
  background: var(--rg); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite; filter: drop-shadow(0 0 2cqw rgba(255, 170, 150, .4));
}

/* ---------- 2. data ---------- */
.a2 { position: absolute; left: 5%; width: 38.7%; top: 12%; height: 48%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.a2__day { font-family: var(--serif); font-weight: 600; font-size: 25cqw; line-height: .9; padding: 0 .05em; filter: drop-shadow(0 0 2.5cqw rgba(255, 170, 150, .45)) drop-shadow(0 .5cqw 0 rgba(60, 15, 20, .9)); }
.a2__row { display: flex; align-items: center; justify-content: center; gap: 2cqw; width: 100%; padding: 1.2cqw 0; margin-top: 1.5cqw; border-block: 1px solid rgba(238, 170, 152, .7); font-family: var(--caps); font-size: 5.2cqw; letter-spacing: .06em; color: #fff3ee; }
.a2__row svg { width: 6.5cqw; height: 6.5cqw; }
.a2__year { display: flex; align-items: center; gap: 2.4cqw; margin: 2.4cqw 0 1cqw; font-family: var(--caps); font-size: 5.6cqw; letter-spacing: .06em; color: #fff3ee; }
.a2__year i { width: 4cqw; height: 1px; background: #f2c0b2; }
.a2__time { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 19cqw; line-height: 1; padding: 0 .12em .05em; filter: drop-shadow(0 0 2cqw rgba(255, 170, 150, .4)) drop-shadow(0 .5cqw 0 rgba(60, 15, 20, .9)); }
.a2__quote { position: absolute; left: 8%; width: 61%; top: 78.4%; margin: 0; text-align: center; font-style: italic; font-size: 4.3cqw; line-height: 1.28; color: #fcecef; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }

/* ---------- 3. interagir ---------- */
.a3__quote { position: absolute; left: 12%; right: 12%; top: 8.5%; margin: 0; text-align: center; font-style: italic; font-size: 4.7cqw; line-height: 1.3; color: #fcecef; }
.s3 .countdown { position: absolute; left: 10.5%; width: 79%; top: 21.3%; height: 11.2%; margin: 0; gap: 0; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.s3 .cd { background: none; box-shadow: none; padding: 0; border-radius: 0; position: relative; overflow: visible; }
.s3 .cd + .cd::before { content: ""; position: absolute; left: 0; top: 12%; bottom: 12%; width: 1px; background: linear-gradient(transparent, rgba(238, 170, 152, .7), transparent); }
.s3 .cd b { font-size: 11.5cqw; line-height: 1.05; }
.s3 .cd span { font-size: 3.1cqw; color: #f6cfc6; }
.s3 .countdown.is-done p { font-size: 11cqw; }
.a3__title { position: absolute; left: 0; right: 0; top: 35.4%; margin: 0; text-align: center; font-weight: 400; line-height: 1; }
.a3__title small { display: block; font-family: var(--caps); font-size: 6.8cqw; letter-spacing: .03em; color: #f6cfc6; }
.a3__title span {
  display: inline-block; font-family: var(--script); font-size: 15.5cqw; line-height: 1.05; padding: 0 .35em .12em; margin-top: -1cqw;
  background: var(--rg); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite;
}
.row {
  position: absolute; display: flex; align-items: center; gap: 3.4cqw;
  background: none; border: 0; padding: 0 1.5cqw; margin: 0; color: inherit; text-decoration: none; text-align: left;
  cursor: pointer; border-radius: 999px; font: inherit;
  -webkit-tap-highlight-color: transparent; transition: background .3s, box-shadow .3s, transform .2s;
}
.row:hover, .row:focus-visible { background: rgba(255, 200, 185, .07); box-shadow: inset 0 0 0 1px rgba(238, 170, 152, .45); outline: none; }
.row:active { transform: scale(.97); }
.row--1 { left: 8%; right: 8%; top: 46%; height: 7.4%; }
.row--2 { left: 8%; right: 16.5%; top: 53.6%; height: 7.2%; }
.row--3 { left: 8%; right: 6%; top: 61.3%; height: 8.4%; }
.row--4 { left: 8%; right: 24%; top: 70.3%; height: 7.6%; }
.row--rev { flex-direction: row-reverse; text-align: right; }
.row__icon {
  flex: none; width: 15cqw; height: 15cqw; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 35% 30%, #eab0a1, #a65d4e 68%, #6d3029);
  box-shadow: inset 0 0 0 .5cqw rgba(255, 215, 200, .7), inset 0 -1.5cqw 3cqw rgba(60, 10, 15, .5), 0 1.5cqw 4cqw rgba(0, 0, 0, .5), 0 0 3cqw rgba(255, 150, 140, .25);
}
.row__icon::after { content: ""; position: absolute; inset: -1.2cqw; border-radius: 50%; border: 1px solid rgba(238, 170, 152, .55); animation: ring 2.8s ease-out infinite; }
.row--2 .row__icon::after { animation-delay: .7s; } .row--3 .row__icon::after { animation-delay: 1.4s; } .row--4 .row__icon::after { animation-delay: 2.1s; }
.row__icon svg { width: 7.4cqw; height: 7.4cqw; fill: #fff6f2; filter: drop-shadow(0 .3cqw .3cqw rgba(60, 10, 15, .5)); }
.row__bar { flex: none; width: 1px; height: 70%; background: linear-gradient(transparent, rgba(238, 170, 152, .85), transparent); font-style: normal; }
.row__txt { display: grid; gap: .3cqw; }
.row__txt b { font-family: var(--serif); font-weight: 600; font-size: 5.9cqw; line-height: 1.1; color: #fff; letter-spacing: .01em; }
.row__txt em { font-style: italic; font-size: 4.4cqw; color: #fff1ee; padding-left: 3cqw; }
.row__txt .row__caps { font-weight: 600; font-size: 4cqw; text-transform: uppercase; letter-spacing: .03em; padding-left: 0; }
.row__txt small { font-size: 3.5cqw; line-height: 1.2; letter-spacing: .02em; color: #f3e3df; }

/* ---------- 5. ações (moldura no mesmo estilo) ---------- */
.card--actions { padding: 16% 11% 26%; background: radial-gradient(90% 60% at 50% 30%, #3a1220, transparent 70%), #0e0407; }
.card--actions::before {
  content: ""; position: absolute; inset: 4%; border-radius: 40px; pointer-events: none;
  border: 1.5px solid rgba(255, 205, 190, .85);
  box-shadow: 0 0 2.5cqw rgba(255, 150, 140, .45), inset 0 0 2.5cqw rgba(255, 150, 140, .3);
}
.corner { position: absolute; width: 44cqw; pointer-events: none; z-index: 1; }
.corner--tl { top: -1cqw; left: -4cqw; -webkit-mask-image: radial-gradient(90% 90% at 25% 25%, #000 50%, transparent 78%); mask-image: radial-gradient(90% 90% at 25% 25%, #000 50%, transparent 78%); }
.corner--br { bottom: -1cqw; right: -4cqw; -webkit-mask-image: radial-gradient(90% 90% at 72% 72%, #000 50%, transparent 78%); mask-image: radial-gradient(90% 90% at 72% 72%, #000 50%, transparent 78%); }
.card--actions .actions { position: relative; z-index: 2; padding: 0; display: grid; gap: 3cqw; }
.card--actions .sign { margin: 0; }
.card--actions .divider { margin: 0 auto; }

/* ---------- modais com a arte ---------- */
.modal--art { width: min(92vw, 420px); padding: 10px 10px 14px; gap: 12px; }
.modal--art .modal__art { border-radius: 16px; }
.hs-pix { position: absolute; left: 14%; width: 68%; top: 75%; height: 8.4%; border: 0; background: transparent; border-radius: 999px; cursor: pointer; animation: pixHint 2.6s ease-in-out infinite; }
.hs-pix:hover { box-shadow: 0 0 0 2px rgba(255, 210, 195, .8), 0 0 24px rgba(240, 106, 154, .5); }
@keyframes pixHint { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 210, 195, 0); } 50% { box-shadow: 0 0 0 2px rgba(255, 210, 195, .55), 0 0 20px rgba(240, 106, 154, .35); } }

/* computador: fundo com a arte desfocada em vez de escuro chapado */
@media (min-width: 700px) {
  body::before {
    inset: -60px; animation: none;
    background: url(/assets/card-1.jpg) center / cover;
    filter: blur(40px) brightness(.32) saturate(1.2);
  }
}

/* botão principal mantém o dourado no hover (antes o hover genérico apagava o degradê) */
.btn--primary:hover { background: linear-gradient(135deg, #fff0ea 0%, #f4b8a7 45%, #d38c72 100%); box-shadow: 0 10px 30px rgba(232, 140, 120, .45), inset 0 1px 0 rgba(255, 255, 255, .7); }

/* ==========================================================
   PÁGINAS EM TELA CHEIA (topo + meio esticável + rodapé)
   --w = largura da coluna; as artes escalam por ela
   ========================================================== */
html { scroll-snap-type: y proximity; }
.invite { --w: min(100vw, 520px, 62svh); width: var(--w); gap: 0; padding: 0; }
@media (min-width: 560px) { .invite { padding-top: 0; } .card { border-radius: 0; box-shadow: 0 0 60px rgba(0, 0, 0, .6); } }
.slide { position: relative; height: max(100svh, calc(var(--w) * var(--ratio, 1.7))); scroll-snap-align: start; overflow: hidden; }

/* ---------- 1. lírios ---------- */
.s1 {
  --ratio: 1.3334;
  background:
    url(/assets/a1-head.jpg) top center / 100% auto no-repeat,
    url(/assets/a1-foot.jpg) bottom center / 100% auto no-repeat,
    url(/assets/a1-mid.jpg) center / 100% 100% no-repeat,
    #0b0306;
}
.s1 .a1 { top: calc(var(--w) * 352 / 1086); bottom: calc(var(--w) * 343 / 1086); height: auto; justify-content: space-evenly; }
.s1 .glint { left: calc(var(--w) * var(--gx) / 1086); top: calc(var(--w) * var(--gy) / 1086); }
.next { position: absolute; left: 50%; bottom: calc(var(--w) * 120 / 1086); width: 26px; height: 26px; margin-left: -13px; }
.next span { position: absolute; inset: 0; border-right: 2px solid #f6cfc6; border-bottom: 2px solid #f6cfc6; transform: rotate(45deg) scale(.6); animation: nextBounce 1.8s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(255, 170, 150, .6)); }
@keyframes nextBounce { 0%, 100% { translate: 0 -4px; opacity: .5; } 50% { translate: 0 6px; opacity: 1; } }

/* ---------- 3. interagir ---------- */
.s3 {
  --ratio: 2.1769;
  background:
    url(/assets/a3-head.jpg) top center / 100% auto no-repeat,
    url(/assets/a3-foot.jpg) bottom center / 100% auto no-repeat,
    url(/assets/a3-mid.jpg) center / 100% 100% no-repeat,
    #000;
}
.s3 .a3__quote { top: calc(var(--w3) * 136 / 735); }
.s3 .countdown { top: calc(var(--w3) * 341 / 735); height: calc(var(--w3) * 179 / 735); }
.s3__menu {
  position: absolute; left: 0; right: 0;
  top: calc(var(--w3) * 556 / 735); bottom: calc(var(--w3) * 345 / 735);
  display: flex; flex-direction: column; justify-content: space-evenly;
}
.s3 .a3__title { position: static; }
.s3 .row { position: static; height: auto; padding: 1.4cqw 2.4cqw 1.4cqw 1.4cqw; align-self: flex-start; margin-left: 7%; }
.s3 .row--rev { align-self: flex-end; margin-right: 15%; margin-left: 0; padding: 1.4cqw 1.4cqw 1.4cqw 2.4cqw; }
.s3 .row:nth-of-type(4) { margin-right: 23%; }

/* ---------- moldura desenhada (páginas com foto) ---------- */
.framed { background: radial-gradient(110% 60% at 50% 35%, #2b0b15, transparent 70%), #0b0306; }
.framed::before {
  content: ""; position: absolute; z-index: 1; pointer-events: none;
  inset: calc(var(--w) * .024);
  border: 1.5px solid rgba(255, 210, 195, .92); border-radius: calc(var(--w) * .035);
  box-shadow: 0 0 calc(var(--w) * .02) rgba(255, 150, 140, .55), inset 0 0 calc(var(--w) * .02) rgba(255, 150, 140, .35);
}
.pc { position: absolute; z-index: 2; pointer-events: none; height: auto; max-width: none; }
.pc--tl, .pc--tl4, .pc--tl5 { top: 0; left: 0; -webkit-mask-image: radial-gradient(100% 100% at 0 0, #000 50%, transparent 100%); mask-image: radial-gradient(100% 100% at 0 0, #000 50%, transparent 100%); }
.pc--tr { top: 0; right: 0; -webkit-mask-image: radial-gradient(100% 100% at 100% 0, #000 40%, transparent 95%); mask-image: radial-gradient(100% 100% at 100% 0, #000 40%, transparent 95%); }
.pc--bl { bottom: 0; left: 0; -webkit-mask-image: radial-gradient(100% 100% at 0 100%, #000 50%, transparent 100%); mask-image: radial-gradient(100% 100% at 0 100%, #000 50%, transparent 100%); }
.pc--br, .pc--br4, .pc--br5 { bottom: 0; right: 0; -webkit-mask-image: radial-gradient(100% 100% at 100% 100%, #000 50%, transparent 100%); mask-image: radial-gradient(100% 100% at 100% 100%, #000 50%, transparent 100%); }
.pc--tl { width: calc(var(--w) * 420 / 1086 * .95); }
.pc--tr { width: calc(var(--w) * 330 / 1086 * .95); }
.pc--bl { width: calc(var(--w) * 260 / 1086 * .95); }
.pc--br { width: calc(var(--w) * 446 / 1086 * .95); }
.pc--tl4 { width: calc(var(--w) * 580 / 1059); }
.pc--br4 { width: calc(var(--w) * 520 / 1059); }
.pc--tl5, .pc--br5 { width: calc(var(--w) * .5); }

/* ---------- 2. data + foto ---------- */
.s2__in {
  position: absolute; z-index: 3; left: 9%; right: 9%;
  top: calc(var(--w) * .1); bottom: calc(var(--w) * .07);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.s2__date { display: flex; align-items: center; gap: 4cqw; }
.s2__side { font-family: var(--caps); font-size: 5.6cqw; letter-spacing: .1em; color: #fff3ee; padding: 1cqw 0; border-block: 1px solid rgba(238, 170, 152, .75); min-width: 17cqw; }
.s2__day { font-family: var(--serif); font-weight: 600; font-size: 26cqw; line-height: .9; padding: 0 .05em; filter: drop-shadow(0 0 2.5cqw rgba(255, 170, 150, .45)) drop-shadow(0 .5cqw 0 rgba(60, 15, 20, .9)); }
.s2__year { display: flex; align-items: center; gap: 3cqw; font-family: var(--caps); font-size: 6cqw; letter-spacing: .08em; color: #fff3ee; margin-top: 1cqw; }
.s2__year i { width: 6cqw; height: 1px; background: #f2c0b2; }
.s2__time { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 17cqw; line-height: 1.05; padding: 0 .12em; filter: drop-shadow(0 0 2cqw rgba(255, 170, 150, .4)); }
.s2__photo {
  flex: 1; min-height: 0; width: 100%; margin: 3cqw 0 3.5cqw; border-radius: 3.5cqw; overflow: hidden; position: relative;
  box-shadow: 0 0 0 1.5px rgba(255, 210, 195, .85), 0 0 3cqw rgba(255, 150, 140, .35), 0 3cqw 6cqw rgba(0, 0, 0, .5);
}
.s2__photo img, .s4__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; animation: kenburns 16s ease-in-out infinite alternate; }
.s2__quote { margin: 0; font-style: italic; font-size: 4.5cqw; line-height: 1.3; color: #fcecef; }
.s2__heart { width: 52cqw; height: 5.2cqw; margin-top: 2cqw; }

/* ---------- 4. foto final ---------- */
.s4__in {
  position: absolute; z-index: 3; left: 8%; right: 8%;
  top: calc(var(--w) * .06); bottom: calc(var(--w) * .1);
  display: flex; flex-direction: column; align-items: center;
}
.s4__title { align-self: flex-end; width: 62%; margin: 2cqw 0 0; text-align: center; font-family: var(--script); font-size: 8.4cqw; line-height: 1.15; color: #fbe3e6; text-shadow: 0 0 3cqw rgba(240, 106, 154, .45); }
.s4__in .divider { align-self: flex-end; width: 50%; margin: 1cqw 6% 3cqw 0; }
.s4__photo {
  flex: 1; min-height: 0; width: 100%; margin: 0; border-radius: 3.5cqw; overflow: hidden; position: relative;
  box-shadow: 0 0 0 1.5px rgba(255, 210, 195, .85), 0 0 3cqw rgba(255, 150, 140, .35), 0 3cqw 6cqw rgba(0, 0, 0, .5);
}
.s4__photo img { object-position: 50% 25%; }
.pc--br4 { z-index: 4; }

/* ---------- 5. ações ---------- */
.s5 { display: flex; flex-direction: column; justify-content: center; padding: 0 11%; --ratio: 1.5; }
.s5 .actions { position: relative; z-index: 3; display: grid; gap: 4cqw; padding: 0; text-align: center; }
.s5 .sign { margin: 0; }
.s5 .divider { margin: 0 auto; }
.s5__info { margin: 2cqw 0 0; color: var(--muted); font-size: 4.2cqw; line-height: 1.45; }
.s5 .footer__privacy { position: absolute; z-index: 3; left: 12%; right: 12%; bottom: calc(var(--w) * .06); margin: 0; text-align: center; font-size: 11px; color: var(--muted); opacity: .6; }

/* ---- ajustes da composição em tela cheia ---- */
.s3 .countdown { position: absolute; left: 10.5%; width: 79%; margin: 0; gap: 0; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.s1 .a1 { justify-content: space-around; }
.a1__group { display: flex; flex-direction: column; align-items: center; gap: 2.4cqw; }
.s2__in { bottom: calc(var(--w) * .17); }
.s2__heart { position: absolute; left: 50%; bottom: calc(var(--w) * -.1); margin-left: -26cqw; }
.s2__photo { margin-bottom: 3cqw; }
.s4__title { width: 64%; font-size: 7.2cqw; margin-top: 3cqw; }
.s5 .actions { margin-top: -6cqw; }
.s5 .footer__privacy { position: static; margin: 3cqw 0 0; font-size: 11px; }
.pc--tl5, .pc--br5 { width: calc(var(--w) * .46); }
.s1 .a1 .name__ink { font-size: 15.6cqw; }
.s1 .a1__div { width: 44cqw; height: 5.4cqw; margin: 0; }
.s1 .a1__lead { font-size: 5.2cqw; }
.s1 .a1__text { font-size: 4.8cqw; line-height: 1.35; }
.s1 .a1__num { font-size: 24cqw; }
.s1 .a1__anos { font-size: 16.5cqw; }
.s4__photo img { object-position: 50% 8%; }

/* ---- rolagem sempre de página inteira ---- */
html { scroll-snap-type: y mandatory; }
.invite { --w3: min(100vw, 520px, 62svh, calc(100svh / 2.1769)); }
.slide { height: 100svh; scroll-snap-stop: always; }
.s3 { width: var(--w3); justify-self: center; }
.s3 { background-size: 100% auto, 100% auto, 100% 100%; }

/* ---- navegação no rodapé de cada página ---- */
.pnav {
  position: absolute; z-index: 6; left: 50%; transform: translateX(-50%);
  bottom: max(calc(var(--w) * .03), calc(env(safe-area-inset-bottom) + 8px));
  display: flex; gap: 12px;
}
.pnav button {
  width: 42px; height: 42px; border-radius: 50%; padding: 0; cursor: pointer;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 210, 195, .75);
  background: rgba(20, 5, 10, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 0 14px rgba(255, 150, 140, .35), 0 4px 12px rgba(0, 0, 0, .45);
  color: #fbe3dc; -webkit-tap-highlight-color: transparent;
  transition: transform .15s, background .25s, box-shadow .25s;
}
.pnav button:hover { background: rgba(60, 15, 25, .7); box-shadow: 0 0 20px rgba(255, 150, 140, .55); }
.pnav button:active { transform: scale(.9); }
.pnav button:focus-visible { outline: 2px solid #fbe3dc; outline-offset: 3px; }
.pnav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pnav .is-down svg { animation: navBounce 1.8s ease-in-out infinite; }
@keyframes navBounce { 0%, 100% { translate: 0 -2px; } 50% { translate: 0 3px; } }
.s2__in { bottom: calc(var(--w) * .21); }
.s2__heart { bottom: calc(var(--w) * -.085); }
.s4__in { bottom: calc(var(--w) * .17); }
.s5 .actions { margin-top: -10cqw; }

/* página 3 com a MESMA largura das outras; em telas baixas o topo e o rodapé
   da arte se sobrepõem na faixa lisa da moldura e o menu encolhe (via JS, --ms) */
.invite { --w3: var(--w); }
.s3 { width: auto; justify-self: stretch; }
.s3__menu { transform: scale(var(--ms, 1)); transform-origin: 50% 50%; }
.s3 { height: auto; min-height: 100svh; }

/* ==========================================================
   PÁGINA 3 — versão flexível: quadro da contagem em CSS
   --u encolhe em telas baixas (mín. entre largura e altura)
   ========================================================== */
.s3 {
  height: 100svh; min-height: 0; width: auto;
  --u: min(1cqw, .47svh);
  background:
    url(/assets/b3-top.jpg) top center / 100% auto no-repeat,
    url(/assets/b3-foot.jpg?v=2) bottom center / 100% auto no-repeat,
    url(/assets/b3-mid.jpg) center / 100% 100% no-repeat,
    #000;
}
.s3 .a3__quote { top: calc(var(--w) * 136 / 735); }
.s3__body {
  position: absolute; left: 0; right: 0;
  top: calc(var(--w) * 300 / 735);
  bottom: calc(var(--w) * 340 / 735);
  display: flex; flex-direction: column; align-items: center; justify-content: space-evenly;
  transform: scale(var(--fit, 1)); transform-origin: 50% 40%;
}
.s3 .cdbox {
  position: relative; width: calc(80 * var(--u)); max-width: 82%;
  padding: calc(3.4 * var(--u)) 0 calc(3 * var(--u));
  border-radius: 999px; border: 2px solid rgba(255, 200, 190, .95);
  box-shadow: 0 0 calc(2.4 * var(--u)) rgba(255, 110, 130, .75), inset 0 0 calc(2.4 * var(--u)) rgba(255, 110, 130, .55);
}
.cdbox__orn { position: absolute; left: 50%; width: calc(23 * var(--u)); height: auto; transform: translateX(-50%); }
.cdbox__orn--t { top: calc(-4 * var(--u)); }
.cdbox__orn--b { bottom: calc(-4 * var(--u)); }
.s3 .countdown { position: static; width: auto; height: auto; left: auto; top: auto; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; gap: 0; margin: 0; }
.s3 .cd b { font-size: calc(11 * var(--u)); }
.s3 .cd span { font-size: calc(3 * var(--u)); }
.s3 .countdown.is-done p { font-size: calc(10 * var(--u)); }
.s3 .a3__title { position: static; }
.s3 .a3__title small { font-size: calc(6.4 * var(--u)); }
.s3 .a3__title span { font-size: calc(14.5 * var(--u)); }
.s3__rows { width: 100%; display: flex; flex-direction: column; gap: calc(1.6 * var(--u)); }
.s3 .row { position: static; height: auto; gap: calc(3.2 * var(--u)); padding: calc(1.2 * var(--u)) calc(2.2 * var(--u)) calc(1.2 * var(--u)) calc(1.2 * var(--u)); align-self: flex-start; margin-left: 7%; }
.s3 .row--rev { align-self: flex-end; margin-left: 0; margin-right: 15%; padding: calc(1.2 * var(--u)) calc(1.2 * var(--u)) calc(1.2 * var(--u)) calc(2.2 * var(--u)); }
.s3 .row--last { margin-right: 23%; }
.s3 .row__icon { width: calc(14 * var(--u)); height: calc(14 * var(--u)); }
.s3 .row__icon svg { width: calc(7 * var(--u)); height: calc(7 * var(--u)); }
.s3 .row__txt b { font-size: calc(5.6 * var(--u)); }
.s3 .row__txt em { font-size: calc(4.2 * var(--u)); padding-left: calc(3 * var(--u)); }
.s3 .row__txt .row__caps { font-size: calc(3.8 * var(--u)); padding-left: 0; }
.s3 .row__txt small { font-size: calc(3.4 * var(--u)); }
.s3 .cdbox { margin-bottom: calc(4.5 * var(--u)); flex: none; }
.s3 .a3__title { margin-top: calc(2 * var(--u)); flex: none; }
.s3__rows { flex: none; }
.s3__body { bottom: calc(var(--w) * 285 / 735); }

/* ==========================================================
   PÁGINA 2 — igual à referência: arte em largura total, ela à
   direita e a data (texto) à esquerda. Topo e rodapé da arte
   presos nas pontas; a faixa de árvores do meio estica. --k = 1px da arte
   ========================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* foto em TELA CHEIA: arte ajustada pela altura (--s = 1px da arte),
   empurrada para a direita (corta só a borda direita da moldura, redesenhada em CSS) */
.s2 {
  --s: calc(100svh / 1448); --shift: 115;
  background: url(/assets/b2.jpg?v=5) right calc(var(--s) * var(--shift) * -1) center / auto 100% no-repeat, #0b0306;
}
.s2::after { /* escurece de leve o lado esquerdo, onde fica a data */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(12, 3, 6, .6), rgba(12, 3, 6, .3) 30%, transparent 50%);
}
.s2::before { inset: calc(var(--s) * 34) calc(var(--s) * 20) calc(var(--s) * 36); border-radius: calc(var(--s) * 24); z-index: 2; }
.s2 .pc--tl { width: calc(var(--s) * 420); z-index: 3; }
.s2 .pc--bl { width: calc(var(--s) * 260); z-index: 3; }
/* coluna da data: do canto esquerdo até antes do braço dela */
.s2__dt {
  position: absolute; z-index: 4; container-type: inline-size;
  left: calc(var(--s) * 20 + 8px); top: calc(var(--s) * 205);
  width: min(calc(var(--s) * 330), calc(100% - var(--s) * (520 - var(--shift)) - var(--s) * 20 - 20px));
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.s2 .s2__day { font-family: var(--serif); font-weight: 600; font-size: 86cqi; line-height: .82; padding: 0 .06em;
  filter: drop-shadow(0 0 3cqi rgba(255, 170, 150, .55)) drop-shadow(0 1cqi 0 rgba(60, 15, 20, .9)); }
.s2__row { display: flex; align-items: center; justify-content: center; gap: 4cqi; width: 100%;
  padding: 2.5cqi 0; margin-top: 3cqi; border-block: 1px solid rgba(238, 170, 152, .7);
  font-family: var(--caps); font-size: 13.5cqi; letter-spacing: .06em; color: #fff3ee; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.s2__row svg { width: 15cqi; height: 17cqi; filter: drop-shadow(0 0 2cqi rgba(255, 170, 150, .6)); }
.s2 .s2__year { display: flex; align-items: center; gap: 5cqi; margin-top: 4cqi; font-family: var(--caps); font-size: 15cqi; letter-spacing: .06em; color: #fff3ee; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.s2 .s2__year i { width: 12cqi; height: 1px; background: #f2c0b2; }
.s2 .s2__time { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 60cqi; line-height: 1; padding: 0 .12em; margin-top: 1cqi;
  filter: drop-shadow(0 0 3cqi rgba(255, 170, 150, .5)) drop-shadow(0 1cqi 0 rgba(60, 15, 20, .9)); }
.s2__swash { width: 92%; height: 9cqi; margin-top: -4cqi; }
