:root {
  --ink: #2b2420;
  --muted: #7a6d63;
  --cream: #f8f3ec;
  --sand: #e9dccb;
  --paper: #fffdf8;
  --gold: #b8955a;
  --gold-soft: #e3cfa5;
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Pinyon Script", cursive;
  --sans: "Montserrat", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ink: #f3ece2; --muted: #b9ab9b; --cream: #1c1814; --sand: #2a241e; --paper: #2b251f; }
}
:root[data-theme="dark"] { --ink: #f3ece2; --muted: #b9ab9b; --cream: #1c1814; --sand: #2a241e; --paper: #2b251f; }

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
body {
  background: #14100c; color: #fff; font-family: var(--sans); font-weight: 300; line-height: 1.6;
  -webkit-font-smoothing: antialiased; touch-action: none; user-select: none; -webkit-user-select: none;
}
button, input, select { font: inherit; }
input, select, button, a { touch-action: manipulation; user-select: auto; -webkit-user-select: auto; }
figure { margin: 0; }

/* ---------- Vídeo de fundo (fixo) ---------- */
.bg-video { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; background: #14100c; }
.bg-shade {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(20,14,9,.12) 0%, rgba(20,14,9,.45) 100%),
    linear-gradient(180deg, rgba(20,14,9,.45) 0%, rgba(20,14,9,.05) 35%, rgba(20,14,9,.5) 100%);
}

/* ======================= CARTA (abertura) ======================= */
.intro {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100dvh; z-index: 50; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, #fffaf3 0%, transparent 60%),
    linear-gradient(180deg, #efe5d6 0%, #f8f3ec 55%, #e6d7bf 100%);
  color: #2b2420;
  transition: opacity 1.2s ease, transform 1.4s cubic-bezier(.7,0,.2,1), visibility 1.4s;
}
.intro.is-gone { opacity: 0; transform: scale(1.12); visibility: hidden; pointer-events: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---- capa: convite fechado com lacre (verde + dourado) ---- */
.cover { position: absolute; inset: 0; z-index: 8; overflow: hidden; }
.c-main, .c-flap { transition: transform 1.5s cubic-bezier(.7,0,.2,1); will-change: transform; }
.c-main {
  position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 20%, #4f5a48 0%, #414a3b 60%, #38412f 100%);
}
.c-main::before { content: ""; position: absolute; inset: 0; opacity: .13; mix-blend-mode: multiply; background-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27220%27%20height%3D%27220%27%3E%3Cfilter%20id%3D%27n%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%27.9%27%20numOctaves%3D%272%27%20stitchTiles%3D%27stitch%27/%3E%3CfeColorMatrix%20values%3D%270%200%200%200%200%20%200%200%200%200%200%20%200%200%200%200%200%20%200%200%200%20.5%200%27/%3E%3C/filter%3E%3Crect%20width%3D%27100%25%27%20height%3D%27100%25%27%20filter%3D%27url%28%23n%29%27/%3E%3C/svg%3E"); }
.c-flap {
  position: absolute; top: -3%; bottom: -3%; left: 34%; right: -8%; z-index: 1;
  background: linear-gradient(90deg, #353d2f 0%, #3d4637 35%, #454e3e 100%);
  border-radius: 62% 0 0 62% / 50% 0 0 50%; box-shadow: -22px 0 46px rgba(0,0,0,.32), inset 3px 0 0 rgba(255,255,255,.05);
}
.c-flap::before { content: ""; position: absolute; inset: 0; opacity: .12; mix-blend-mode: multiply; border-radius: inherit; background-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27220%27%20height%3D%27220%27%3E%3Cfilter%20id%3D%27n%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%27.9%27%20numOctaves%3D%272%27%20stitchTiles%3D%27stitch%27/%3E%3CfeColorMatrix%20values%3D%270%200%200%200%200%20%200%200%200%200%200%20%200%200%200%200%200%20%200%200%200%20.5%200%27/%3E%3C/filter%3E%3Crect%20width%3D%27100%25%27%20height%3D%27100%25%27%20filter%3D%27url%28%23n%29%27/%3E%3C/svg%3E"); }
.c-mono {
  position: absolute; left: 24px; bottom: calc(34px + env(safe-area-inset-bottom)); z-index: 2; display: flex; align-items: flex-end; gap: 4px;
  font-family: var(--serif); font-size: 74px; line-height: .85; letter-spacing: -.02em; font-weight: 500;
}
.c-mono span { background: linear-gradient(180deg, #f6e4ab 0%, #c79a46 55%, #8b6322 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.c-sprig { width: 20px; height: 56px; margin: 0 -2px 4px; }
.c-decor { position: absolute; inset: 0; z-index: 3; pointer-events: none; transition: opacity .7s ease; }
.c-decor > * { opacity: 0; animation: fadeIn 1.4s ease forwards; }
.c-flowers { animation-delay: .3s; } .c-threads { animation-delay: .1s; } .c-tails { animation-delay: .5s; } .c-seal { animation-delay: .8s; } .c-hint { animation-delay: 1.4s; } .c-top { animation-delay: .6s; }
.c-top { position: absolute; top: calc(44px + env(safe-area-inset-top)); left: 0; right: 0; text-align: center; color: #f3ead5; }
.c-top small { display: block; font-size: 10px; letter-spacing: .4em; text-transform: uppercase; color: #cdbb8a; }
.c-top span { font-family: var(--script); font-size: clamp(34px, 9.5vw, 46px); line-height: 1.3; color: #f6e4ab; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.c-top em { font-style: normal; color: #f3ead5; font-size: .85em; }
.c-threads { position: absolute; left: -2%; right: -2%; top: 55%; height: 24px; transform: translateY(-50%) rotate(-.7deg); }
.c-threads i { position: absolute; left: 0; right: 0; height: 1.8px; border-radius: 2px; background: linear-gradient(90deg, #8b6322, #f1d68a 20%, #c79a46 45%, #f6e4ab 70%, #a97b2e); box-shadow: 0 1px 2px rgba(0,0,0,.35); }
.c-threads i:nth-child(1) { top: 0; } .c-threads i:nth-child(2) { top: 10px; } .c-threads i:nth-child(3) { top: 20px; }
.c-tails { position: absolute; left: 50%; top: calc(55% + 52px); width: 60px; height: 78px; transform: translateX(-50%); }
.c-tails i { position: absolute; top: 0; width: 1.8px; height: 74px; background: linear-gradient(180deg, #f1d68a, #8b6322); box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.c-tails i:nth-child(1) { left: 22px; transform: rotate(10deg); transform-origin: top; } .c-tails i:nth-child(2) { left: 34px; transform: rotate(-9deg); transform-origin: top; }
.c-flowers { position: absolute; left: 50%; top: 55%; width: min(86vw, 360px); transform: translate(-50%, calc(-100% + 34px)); }
.c-flowers-svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 8px rgba(0,0,0,.28)); transform-origin: 50% 100%; animation: sway 6s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-1.4deg); } to { transform: rotate(1.4deg); } }
.c-seal {
  position: absolute; left: 50%; top: 55%; width: min(30vw, 128px); aspect-ratio: 1; padding: 0; border: 0; background: none; cursor: pointer;
  transform: translate(-50%, -50%); pointer-events: auto; filter: drop-shadow(0 10px 14px rgba(0,0,0,.45)); transition: transform .5s cubic-bezier(.3,1.6,.5,1), filter .5s;
}
.c-seal svg { width: 100%; height: 100%; display: block; animation: pulse 2.6s ease-in-out infinite; }
.c-seal::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid rgba(246,228,171,.8); animation: ring 2.4s ease-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
@keyframes ring { from { transform: scale(.92); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.c-seal:hover { transform: translate(-50%, -50%) scale(1.06); }
.c-hint { position: absolute; right: 22px; bottom: calc(40px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 8px; color: #efe3c4; text-align: center; }
.c-hint svg { width: 34px; height: 34px; animation: tap 1.8s ease-in-out infinite; }
.c-hint p { font-family: var(--serif); font-style: italic; font-size: 14px; line-height: 1.3; }
@keyframes tap { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.cover.opening .c-decor { opacity: 0; transition: opacity .8s ease .15s; }
.cover.opening .c-seal { transform: translate(-50%, -50%) scale(1.3); filter: drop-shadow(0 0 30px rgba(246,228,171,.9)); }
.cover.opened .c-main { transform: translateX(-102%); }
.cover.opened .c-flap { transform: translateX(106%); }
.cover.gone { display: none; }

/* ---- a carta escrita ---- */
.letter-full {
  position: absolute; inset: 0; z-index: 5; display: block; opacity: 0; visibility: hidden; transform: translateY(50px) scale(.92);
  transition: opacity 1s ease, transform 1.3s cubic-bezier(.2,.7,.2,1), visibility 1s;
}
.intro.read .letter-full { opacity: 1; visibility: visible; transform: none; }
.lf-paper {
  position: absolute; left: 50%; top: 14px; width: min(90vw, 400px); text-align: center; color: #3a2f27;
  transform: translateX(-50%) scale(var(--fit, 1)); transform-origin: top center;
  padding: 26px 26px 24px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255,255,255,.7), transparent 55%),
    linear-gradient(180deg, #fffdf8 0%, #f9f2e6 100%);
  border-radius: 3px; box-shadow: 0 40px 60px -30px rgba(60,40,20,.5), 0 2px 0 rgba(184,149,90,.25);
}
.lf-paper::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(184,149,90,.6); border-radius: 2px; pointer-events: none; }
.lf-paper::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(184,149,90,.25); border-radius: 1px; pointer-events: none; }
.lf-photo {
  width: 52%; height: 170px; margin: 6px auto 14px;
  border-radius: 999px 999px 4px 4px; overflow: hidden; box-shadow: 0 0 0 4px #fffdf8, 0 0 0 5px rgba(184,149,90,.7);
}
.lf-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; }
.lf-small { font-size: 9px; letter-spacing: .36em; text-transform: uppercase; color: #b8955a; }
.lf-hello { font-family: var(--script); font-size: 34px; color: #6e5a3a; margin: 6px 0 4px; line-height: 1.2; }
.lf-body { font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.55; font-weight: 400; }
.lf-body .w { display: block; text-wrap: balance; }
.lf-body em { color: #b8955a; font-weight: 500; }
.lf-love { font-family: var(--serif); font-size: 17px; margin-top: 12px; color: #6b5d50; }
.lf-sign { font-family: var(--script); font-size: 25px; color: #6e5a3a; margin-top: 12px; }
.lf-names { font-family: var(--serif); font-size: 38px; font-weight: 300; line-height: 1.05; }
.lf-names em { font-family: var(--script); font-style: normal; color: #b8955a; font-size: .8em; }
.lf-date { font-size: 11px; letter-spacing: .38em; color: #7a6d63; margin-top: 8px; }
/* texto "escrito" aparecendo linha por linha */
.letter-full .w { opacity: 0; transform: translateY(8px); filter: blur(3px); transition: opacity 1s ease, transform 1s ease, filter 1s ease; transition-delay: calc(var(--i, 0) * 260ms + 900ms); }
.intro.read .letter-full .w { opacity: 1; transform: none; filter: none; }
.swipe-hint {
  position: absolute; left: 50%; translate: -50% 0; top: 78%; display: flex; flex-direction: column; align-items: center; gap: 6px; white-space: nowrap;
  background: none; border: 0; color: #6e5a3a; cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .9s ease, transform .9s ease;
}
.swipe-hint .sh-a { font-size: 11px; letter-spacing: .32em; text-transform: uppercase; font-weight: 500; }
.swipe-hint .sh-b { font-family: var(--serif); font-style: italic; font-size: 15px; letter-spacing: .02em; color: #8a7a68; }
.swipe-hint svg { width: 64px; height: 18px; color: #b8955a; animation: swipeNudge 1.7s ease-in-out infinite; }
@keyframes swipeNudge { 0%, 100% { transform: translateX(-9px); opacity: .6; } 50% { transform: translateX(11px); opacity: 1; } }
.intro.ready .swipe-hint { opacity: 1; transform: none; pointer-events: auto; }
.letter-full { touch-action: none; cursor: grab; }
@media (max-height: 700px) { .c-mono { font-size: 58px; } .c-flowers { width: min(74vw, 300px); } }

/* ======================= PALCO HORIZONTAL ======================= */
.stage { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100dvh; z-index: 10; overflow: hidden; opacity: 0; transition: opacity 1.2s ease .3s; cursor: grab; }
.stage.is-on { opacity: 1; }
.stage.dragging { cursor: grabbing; }
.track { display: flex; height: 100%; width: calc(var(--n) * 100%); will-change: transform; }
.slide { position: relative; overflow: hidden; flex: 0 0 calc(100% / var(--n)); height: 100%; display: grid; place-items: center; padding: 70px 22px 96px; }
.slide.top { place-items: start center; padding-top: calc(86px + env(safe-area-inset-top)); }
.panel { position: relative; z-index: 2; width: 100%; max-width: 560px; text-align: center; will-change: transform, opacity; }
.glass {
  padding: clamp(26px, 5vh, 46px) clamp(20px, 5vw, 40px);
  background: rgba(255, 250, 243, .1); border: 1px solid rgba(255, 255, 255, .28); border-radius: 6px;
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.5);
}

/* slides com foto de fundo (cobrem o vídeo) */
.slide .bg { position: absolute; inset: 0; z-index: 0; background: #14100c; }
.slide .bg img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.14); transition: transform 8s ease-out; }
.slide.is-active .bg img { transform: scale(1); }
.slide .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,10,6,.78) 0%, rgba(14,10,6,.45) 22%, rgba(14,10,6,.05) 48%, rgba(14,10,6,.35) 100%); }
.rsvp-slide .bg::after { background: rgba(14,10,6,.58); }
.final .bg::after { background: rgba(0,0,0,.25); }
.slide.top .panel { text-shadow: 0 2px 22px rgba(0,0,0,.55); }

/* slides com fundo de papel (colagens) */
.paper { background: linear-gradient(180deg, #f4ecdf, #e9dcc7); color: #2b2420; }
.paper.sand { background: linear-gradient(180deg, #ebe0cd, #dccbb0); }
.paper.olive { background: radial-gradient(ellipse at 50% 28%, #34432f 0%, #1b231a 100%); color: #f3ece2; }
.paper .title { color: #2b2420; }
.paper.olive .title { color: #fff; }
.paper .sub { color: #6d6157; }
.paper.olive .sub { color: rgba(255,255,255,.8); }
.collage { position: relative; margin: 6px auto 0; width: min(86vw, 400px, calc((100dvh - 260px) * .8)); }
.collage.pair { aspect-ratio: .8 / 1; }
.collage.pair2 { aspect-ratio: .8 / 1; }
.collage.horses { aspect-ratio: .86 / 1; }
.card {
  position: absolute; background: #fffdf8; padding: 5px; box-shadow: 0 26px 40px -18px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(46px) rotate(var(--r)); transition: opacity 1s ease, transform 1.3s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--k) * 200ms + 200ms);
}
.slide.is-active .card { opacity: 1; transform: rotate(var(--r)); }
.card img { display: block; width: 100%; height: auto; }
.pair .a { width: 58%; top: 0; left: 0; } .pair .b { width: 52%; bottom: 0; right: 0; }
.pair2 .a { width: 52%; top: 0; right: 0; } .pair2 .b { width: 56%; bottom: 0; left: 0; }
.horses .a { width: 72%; top: 0; left: 0; } .horses .b { width: 52%; bottom: 0; right: 0; }
.paper .sub { margin-top: 18px; font-family: var(--serif); font-style: italic; font-size: 18px; }

/* duas fotos em tela cheia */
.split-slide { padding: 0; background: #14100c; }
.split { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr 1fr; gap: 3px; }
.half { overflow: hidden; }
.half img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.12); transition: transform 8s ease-out; }
.slide.is-active .half img { transform: scale(1); }
.seam { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); }
.seam .script-sm { display: inline-block; padding: 8px 26px; background: rgba(20,14,9,.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; }

/* ----- tipografia ----- */
.kicker, .eyebrow { font-size: 11px; letter-spacing: .38em; text-transform: uppercase; color: var(--gold-soft); }
.eyebrow { margin-bottom: 16px; }
.names { font-family: var(--serif); font-weight: 300; font-size: clamp(58px, 17vw, 120px); line-height: .94; margin: 14px 0 12px; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.names span { display: block; }
.names em { display: block; font-family: var(--script); font-style: normal; color: var(--gold-soft); font-size: .5em; line-height: 1.2; }
.date { font-size: 13px; letter-spacing: .4em; margin-top: 6px; }
.script { font-family: var(--script); font-size: clamp(54px, 15vw, 96px); color: var(--gold-soft); line-height: 1.15; margin: 10px 0; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.script-sm { font-family: var(--script); font-size: clamp(28px, 7vw, 38px); color: var(--gold-soft); margin-top: 14px; line-height: 1.2; }
.lead { font-family: var(--serif); font-size: clamp(22px, 6vw, 32px); font-weight: 300; line-height: 1.4; }
.lead em { color: var(--gold-soft); }
.title { font-family: var(--script); font-weight: 400; font-size: clamp(38px, 10vw, 58px); line-height: 1.1; margin-bottom: 18px; color: #fff; }
.big { font-family: var(--serif); font-size: clamp(24px, 6.4vw, 34px); font-weight: 400; line-height: 1.2; }
.sub { color: rgba(255,255,255,.82); margin-top: 8px; font-size: 14px; }
.note { margin-top: 14px; font-size: 11px; color: rgba(255,255,255,.6); font-style: italic; }

.quick { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 26px; }
.quick button {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.4); color: #fff; padding: 9px 16px; border-radius: 999px;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .3s, transform .3s;
}
.quick button:hover { background: rgba(255,255,255,.3); transform: translateY(-2px); }

.countdown { display: flex; justify-content: center; gap: clamp(12px, 4vw, 28px); margin-top: 26px; }
.countdown strong { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 9vw, 52px); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown small { font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-soft); }

.btn-ghost {
  display: inline-block; margin-top: 22px; color: #fff; text-decoration: none; border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 4px; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; transition: letter-spacing .4s, color .3s;
}
a.btn-ghost:hover { color: var(--gold-soft); letter-spacing: .34em; }
.btn-ghost.soon { opacity: .75; border-bottom-style: dashed; }

.timeline { list-style: none; text-align: left; max-width: 380px; margin: 0 auto; position: relative; }
.timeline li { display: grid; grid-template-columns: 62px 1fr; gap: 28px; padding: 10px 0; align-items: baseline; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 75px; top: 0; bottom: 0; width: 1px; background: rgba(227,207,165,.5); }
.timeline li::after { content: ""; position: absolute; left: 71px; top: 50%; width: 9px; height: 9px; margin-top: -3px; border-radius: 50%; background: var(--gold-soft); }
.timeline time { font-family: var(--serif); font-size: 22px; color: var(--gold-soft); }
.timeline p { font-family: var(--serif); font-size: 23px; padding-left: 20px; }

.rsvp-form { display: grid; gap: 14px; margin-top: 16px; text-align: left; }
.rsvp-form input[type="text"], .rsvp-form select {
  width: 100%; border: 0; border-bottom: 1px solid rgba(255,255,255,.5); background: transparent; color: #fff;
  padding: 10px 2px; font-family: var(--serif); font-size: 20px; outline: none; border-radius: 0; -webkit-appearance: none; appearance: none;
}
.rsvp-form select option { color: #2b2420; }
.rsvp-form input::placeholder { color: rgba(255,255,255,.65); }
.rsvp-form input:focus, .rsvp-form select:focus { border-color: var(--gold-soft); }
.choice { display: flex; gap: 8px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label {
  flex: 1; text-align: center; padding: 11px 8px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; cursor: pointer;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase; transition: all .35s;
}
.choice input:checked + label { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-solid {
  background: #fff; color: #2b2420; border: 0; padding: 14px; border-radius: 999px; letter-spacing: .26em; text-transform: uppercase;
  font-size: 11px; cursor: pointer; transition: background .3s, color .3s, transform .3s;
}
.btn-solid:hover:not(:disabled) { background: var(--gold); color: #fff; transform: translateY(-2px); }
.btn-solid:disabled { opacity: .7; cursor: default; }
.form-msg { text-align: center; color: var(--gold-soft); min-height: 1.4em; font-family: var(--serif); font-size: 18px; }

/* revelação dos itens quando o slide fica ativo */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 1s ease, transform 1.1s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--k, 0) * 110ms + 150ms); }
.slide.is-active .rv { opacity: 1; transform: none; }

/* topo, navegação, HUD */
.topmark {
  position: absolute; top: calc(18px + env(safe-area-inset-top)); left: 0; right: 0; z-index: 5; display: flex; justify-content: center; align-items: baseline; gap: 8px;
  font-family: var(--serif); font-size: 20px; letter-spacing: .14em; pointer-events: none; opacity: .95; text-shadow: 0 2px 14px rgba(0,0,0,.5);
}
.topmark i { font-family: var(--script); font-style: normal; color: var(--gold-soft); font-size: 22px; }
.nav {
  position: absolute; top: 50%; z-index: 6; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
  backdrop-filter: blur(8px); transition: background .3s, opacity .4s; display: none;
}
.nav:hover { background: rgba(255,255,255,.28); }
.nav-prev { left: 22px; } .nav-next { right: 22px; }
.nav[disabled] { opacity: 0; pointer-events: none; }
@media (hover: hover) and (min-width: 760px) { .nav { display: block; } }
.hud { position: absolute; left: 0; right: 0; bottom: calc(26px + env(safe-area-inset-bottom)); z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 14px; pointer-events: none; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.hint { display: flex; align-items: center; gap: 10px; font-size: 10px; letter-spacing: .34em; text-transform: uppercase; opacity: .9; transition: opacity .6s; }
.hint b { font-weight: 300; font-size: 16px; animation: nudge 1.6s ease-in-out infinite; }
.hint.is-hidden { opacity: 0; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
.dots { display: flex; gap: 7px; }
.dots i { width: 5px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.45); box-shadow: 0 0 6px rgba(0,0,0,.4); transition: width .5s, background .5s; }
.dots i.on { width: 22px; background: var(--gold-soft); }

@media (max-height: 640px) {
  .slide { padding: 56px 18px 80px; }
  .slide.top { padding-top: 70px; }
  .glass { padding: 20px 18px; }
  .title { margin-bottom: 10px; font-size: 38px; }
  .countdown { margin-top: 16px; }
  .timeline li { padding: 6px 0; }
  .rsvp-form { gap: 10px; }
  .quick { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.lf-paper.compact { padding: 20px 24px 18px; }
.lf-paper.compact .lf-photo { height: 104px; margin-bottom: 10px; }
.lf-paper.compact .lf-hello { font-size: 30px; margin: 4px 0 2px; }
.lf-paper.compact .lf-body { line-height: 1.45; }
