/* ============================================================
   Andhressa & Alisson — v4 clean rebuild
   ============================================================ */
/* ===== centered frame ===== */
:root {
  --frame-w: min(1180px, calc(100vw - 60px));
  --frame-pad: max(30px, calc((100vw - 1180px) / 2));
  --bg: #f4efe2;
  --bg-soft: #ece6d5;
  --paper: #fbf7ea;
  --ink: #34301f;
  --ink-soft: #55513e;
  --ink-mut: #847d62;
  --line: #d8ceae;
  --accent: #8a9a75;       /* sálvia */
  --accent-deep: #5e6a4d;
  --gold: #b8925a;
  --gold-hi: #e7cf94;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-display: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-sc: 'Cormorant Garamond', Georgia, serif;
  --font-calligraphy: 'Pinyon Script', cursive;
  --ease: cubic-bezier(.22,.65,.3,1);
  --max: 1180px;
}
[data-palette="ouro"]  { --accent:#b8925a; --accent-deep:#8b6b36; --line:#e2d0a6; }
[data-palette="rose"]  { --accent:#c48a78; --accent-deep:#92604f; --line:#e8cfc2; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font-serif);
  font-size: 19px; line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
em { font-style: italic; }
a:focus, a:focus-visible,
button:focus, button:focus-visible { outline: none; }

/* ====== NAV ====== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 40;
  background: transparent;
  transition: background .3s ease, box-shadow .3s ease;
}
/* fora da capa o conteúdo rola por baixo do header — fundo sólido p/ legibilidade */
body:not([data-scene-kind="cover"]) .nav {
  background: rgba(244, 239, 226, 0.96);
  box-shadow: 0 1px 0 rgba(120, 110, 70, 0.12), 0 6px 16px rgba(60, 60, 30, 0.05);
}
.nav-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  padding: 16px 30px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}
.brand img { height: 54px; width: auto; }
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a {
  font-family: var(--font-sc);
  text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  position: relative; padding: 8px 0;
  transition: color .3s;
  text-shadow: 0 0 6px var(--bg), 0 0 6px var(--bg), 0 0 10px var(--bg);
}
.nav-links a:hover { color: var(--accent-deep); }
.nav-links a.cta {
  border: 1px solid var(--accent);
  padding: 10px 22px;
  color: var(--accent-deep);
}
.nav-links a.cta:hover { background: var(--accent); color: #fff; }
.menu { display: none; width: 40px; height: 40px; position: relative; }
.menu span { position: absolute; left: 8px; right: 8px; height: 1.5px; background: var(--ink); }
.menu span:nth-child(1) { top: 14px; }
.menu span:nth-child(2) { top: 20px; }
.menu span:nth-child(3) { top: 26px; }

/* ====== DRAWER ====== */
.drawer {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100vh; height: 100dvh;
  z-index: 60;
  background: var(--bg);
  padding: 60px 40px; text-align: center;
  overflow-y: auto;
  /* fechado: escondido de forma à prova de falhas (translate + visibility),
     evitando que conteúdo alto transborde pelo topo em telas baixas */
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .5s var(--ease), visibility .5s var(--ease);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
}
.drawer.open { transform: none; visibility: visible; }
.dx { position: absolute; top: 24px; right: 24px; font-size: 32px; color: var(--ink); }
.dm { width: 80px; margin-top: 20px; }
.dn { font-family: var(--font-calligraphy); font-size: 56px; color: var(--accent-deep); margin: 10px 0 20px; font-weight: 400; line-height: 1.04; }
.dn .amp { font-family: var(--font-display); font-style: italic; font-weight: 500; color: var(--gold); padding: 0 0.1em; font-size: 0.55em; vertical-align: 0.12em; }
.drawer a {
  font-family: var(--font-sc);
  text-transform: uppercase; letter-spacing: 0.2em;
  font-size: 16px; font-weight: 500; color: var(--ink-soft); padding: 10px;
}
.drawer a.dcta {
  border: 1px solid var(--accent); padding: 14px 32px;
  color: var(--accent-deep); margin-top: 14px;
}

/* ====== MUSIC BADGE (anchored to centered frame) ====== */
.music {
  display: flex; align-items: center; gap: 9px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 6px 13px 6px 6px;
  box-shadow: 0 6px 16px rgba(60,60,30,0.12);
  position: fixed; z-index: 45;
  bottom: 22px;
  right: max(18px, calc(50% - (var(--max)/2) + 10px));
  transition: left .4s var(--ease), right .4s var(--ease), transform .4s var(--ease);
}
/* na home, player vai pro centro-inferior (não cobre as flores do canto) */
body[data-scene-kind="cover"] .music {
  right: auto; left: 50%; transform: translateX(-50%);
}
/* fora da home, player minimizado: só o botão redondo de play/pause */
body:not([data-scene-kind="cover"]) .music .mt { display: none; }
body:not([data-scene-kind="cover"]) .music {
  padding: 6px; border-radius: 50%; gap: 0;
}
/* botão Lista de Presentes no nav (lugar do antigo player) */
.btn-gift {
  font-family: var(--font-sc);
  text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 13px; font-weight: 500;
  color: var(--accent-deep);
  border: 1px solid var(--accent);
  padding: 10px 20px;
  white-space: nowrap;
  transition: background .3s, color .3s;
}
.btn-gift:hover { background: var(--accent); color: #fff; }
.cover-gift { display: none; }
.music button {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
}
.ico { width: 14px; height: 14px; }
.music .pause { display: none; }
body[data-playing="1"] .music .play { display: none; }
body[data-playing="1"] .music .pause { display: inline-block; }
.mt { display: flex; flex-direction: column; line-height: 1.1; }
.mt strong { font-family: var(--font-display); font-weight: 500; font-size: 14px; color: var(--ink); letter-spacing: 0.02em; }
.mt span { font-family: var(--font-sc); text-transform: uppercase; letter-spacing: 0.15em; font-size: 11px; font-weight: 500; color: var(--ink-mut); margin-top: 3px; }

/* ====== PROGRESS (bottom of viewport, inside frame) ====== */
.progress {
  position: fixed;
  bottom: 28px;
  left: 50%; transform: translateX(-50%);
  z-index: 41;
  display: flex; align-items: center; gap: 14px;
  background: rgba(252,247,234,0.97);
  border: 1px solid var(--line);
  padding: 8px 18px;
  pointer-events: auto;
  box-shadow: 0 12px 30px rgba(60,60,30,0.1);
}
.pdots { display: flex; gap: 10px; }
.pdots button {
  width: 8px; height: 8px; border-radius: 50%;
  background: transparent; border: 1px solid var(--accent);
  transition: all .3s;
  padding: 0;
}
.pdots button.active { background: var(--accent); transform: scale(1.4); }
.plabel {
  font-family: var(--font-sc);
  text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 12px; font-weight: 500; color: var(--ink-mut);
  min-width: 80px;
}
body[data-scene-kind="cover"] .plabel { display: none; }
body[data-scene-kind="cover"] .progress { display: none; }
/* monograma do header some na capa (já há um grande no centro) */
body[data-scene-kind="cover"] .brand { opacity: 0; pointer-events: none; }

/* ====== JOURNEY ====== */
.journey {
  position: fixed; inset: 0;
  display: flex;
  overflow-x: auto; overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.journey::-webkit-scrollbar { display: none; }

.scene {
  position: relative;
  flex: 0 0 100vw;
  width: 100vw; height: 100vh; height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding: 100px 40px 100px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.scene .wrap {
  overflow: visible;
  position: relative;
}
.scene::-webkit-scrollbar { width: 9px; }
.scene::-webkit-scrollbar-track { background: transparent; }
.scene::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 9px;
  border: 2px solid var(--bg);
  background-clip: padding-box;
}
.scene { scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }

/* Centralized container for wide monitors */
.wrap {
  width: 100%;
  max-width: var(--max);
  /* margin auto centra vertical e horizontalmente quando cabe,
     e permite rolagem interna sem cortar quando o conteúdo é alto */
  margin: auto;
  position: relative;
  z-index: 3;
}

/* Fixed watercolor background — mix-blend-multiply makes white paper invisible */
.bg-aquarela {
  position: fixed;
  inset: 0;
  background-image: url("assets/aquarela-cerimonia.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: min(2200px, 138vmin);
  opacity: 0;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.6s var(--ease);
}
body[data-scene-kind="content"] .bg-aquarela,
body[data-scene-kind="finale"] .bg-aquarela { opacity: 0.55; }
body[data-scene-kind="cover"] .bg-aquarela { opacity: 0.18; }

/* Remove per-scene watercolor; ensure scene content sits above the fixed bg */
.scene.content::before,
.scene.finale::before { content: none; }
.scene { background: transparent; }

/* Paper texture on content scenes (kept subtle) */
.scene.content, .scene.finale {
  background:
    radial-gradient(ellipse at 15% 8%, rgba(138,154,117,.05), transparent 50%),
    radial-gradient(ellipse at 85% 92%, rgba(184,146,90,.04), transparent 50%);
}

.cover {
  overflow-x: hidden;
  overflow-y: hidden;
  padding: 100px 40px 80px;
  background:
    radial-gradient(ellipse at center, #faf6e8, var(--bg) 75%),
    var(--bg);
  display: flex; align-items: flex-start; justify-content: center;
}
.cover .wrap {
  height: auto;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
/* Hortênsia recortada (fundo transparente) — só na capa, um ramo em cada canto diagonal */
.cover-deco {
  position: absolute;
  width: min(300px, 26vw);
  pointer-events: none;
  z-index: 1;
  opacity: 0.95;
}
.cover-deco img { width: 100%; display: block; }
/* ancoradas à MOLDURA central (var(--max)); em telas largas não esparramam */
.cover-deco.corner-tl {
  top: 128px;
  left: max(16px, calc(50% - (var(--max) / 2) + 16px));
  transform: scaleX(-1) scaleY(-1) rotate(-35deg); /* espelhado H+V + diagonal: flores mirando o centro */
}
.cover-deco.corner-br {
  bottom: 28px;
  right: max(16px, calc(50% - (var(--max) / 2) + 16px));
  transform: rotate(-35deg); /* diagonal, flores mirando o centro (simétrico ao de cima) */
}
.cover-inner { text-align: center; position: relative; z-index: 3; padding: 0 40px; }
.mono { width: clamp(64px, 8vw, 86px); margin: 0 auto 10px; filter: drop-shadow(0 8px 20px rgba(184,146,90,0.18)); }
.eyebrow {
  font-family: var(--font-sc);
  text-transform: uppercase; letter-spacing: 0.3em;
  font-size: 13px; font-weight: 600;
  color: var(--accent-deep);
  margin-bottom: 8px;
}
/* Names: solid color, no transparency — always readable */
.names {
  font-family: var(--font-calligraphy);
  font-weight: 400;
  color: var(--accent-deep);
  -webkit-text-fill-color: var(--accent-deep);
  font-size: clamp(44px, 6.6vw, 92px);
  line-height: 1.04;
  white-space: nowrap;
  padding: 0.06em 0 0.12em;
  position: relative; z-index: 5;
}
.names .amp {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
  padding: 0 0.1em;
  vertical-align: 0.12em;
  font-size: 0.55em;
  -webkit-text-fill-color: var(--gold);
  background: none;
}
.divider { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 10px 0 12px; color: var(--accent); }
.divider span { width: 120px; max-width: 22vw; height: 1px; background: currentColor; opacity: .6; }
.divider svg { width: 14px; height: 14px; }
.divider.gold { color: var(--gold); }
.date {
  font-family: var(--font-sc);
  text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 17px; font-weight: 500; color: var(--ink);
  margin: 6px 0 4px;
}
.place {
  font-family: var(--font-sc);
  text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 15px; font-weight: 500; color: var(--ink-soft);
  margin: 4px 0;
}

.countdown {
  display: inline-flex; gap: 20px; align-items: center;
  padding: 0;
  margin: 16px 0 0;
  background: transparent;
  border: 0;
}
.countdown > div { display: flex; flex-direction: column; align-items: center; }
.countdown strong {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(32px, 4vw, 42px); color: var(--accent-deep); line-height: 1;
  letter-spacing: 0.02em;
}
.countdown em {
  font-family: var(--font-sc); font-style: normal; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.2em;
  font-size: 12px; color: var(--ink-mut); margin-top: 8px;
}
.countdown > span { font-size: 28px; color: var(--line); }

.btn-journey {
  display: block;
  margin: 24px auto 0;
  width: max-content;
}
.btn-journey .arrow { font-size: 18px; margin-left: 4px; transition: transform .4s var(--ease); }
.btn-journey:hover .arrow { transform: translateX(6px); }

.btn, .btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sc);
  text-transform: uppercase; letter-spacing: 0.2em;
  font-size: 13px; font-weight: 500;
  padding: 16px 32px;
  border: 1px solid var(--accent);
  color: var(--accent-deep);
  transition: all .35s var(--ease);
}
/* btn-journey overrides the inline-flex to break to its own line */
a.btn-journey,
.btn-journey.btn-ghost,
.btn-journey {
  display: inline-flex;
}
.cover-inner .btn-journey {
  display: flex;
  width: max-content;
  margin: 18px auto 0;
  justify-content: center;
}
.btn { background: var(--accent); color: #fff; }
.btn.outline { background: transparent; color: var(--accent-deep); }
.btn:hover { letter-spacing: 0.26em; }
.btn-ghost:hover { background: var(--accent); color: #fff; }

/* ====== CH HEAD (content sections) ====== */
.ch-head {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
  padding: 20px 60px;
  background: rgba(251, 247, 234, 0.96);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(60,60,30,0.06);
  width: max-content;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}
.scene.content .wrap { text-align: center; }
.ch-head .eyebrow { margin-bottom: 12px; }
.title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 42px);
  color: var(--ink);
  margin: 8px 0;
  letter-spacing: 0.005em;
  line-height: 1.1;
}
.lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 6px auto 0;
}
.title {
  /* shadow removed since ch-head has backdrop */
}

/* ====== TIMELINE ====== */
/* ====== LINHA DO TEMPO VERTICAL (fotos intercaladas) ====== */
.timeline.tl-vertical {
  display: block; position: relative;
  max-width: 680px; margin: 0 auto;
  padding-left: 30px;
}
.timeline.tl-vertical::before {
  content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px;
  width: 2px; background: linear-gradient(var(--gold-hi), var(--gold-hi) 92%, transparent);
  opacity: .6;
}
.tl-vertical > .tl { margin: 0 0 16px; text-align: center; }
.tl-vertical > .tl::before {
  content: ""; position: absolute; left: -29px; top: 22px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--paper);
  box-shadow: 0 0 0 2px var(--gold-hi); z-index: 4;
}
.tl-photos {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin: 0 0 16px;
}
.tl-photos .gi { height: clamp(132px, 17vw, 168px); width: auto; box-shadow: 0 6px 14px rgba(60,60,30,.08); }
.tl-photos .gi img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tl-photos .gi::before { display: none; }
.tl {
  background: rgba(251, 247, 234, 0.96);
  border: 1px solid var(--line);
  padding: 18px 20px;
  position: relative;
  box-shadow: 0 10px 24px rgba(60,60,30,.06);
}
.tl:nth-child(odd)  { margin-right: 0; }
.tl:nth-child(even) { margin-left: 0; }
.tl .yr {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 500;
  color: var(--accent); line-height: 1;
  margin-bottom: 4px;
}
.tl h3 {
  font-family: var(--font-display);
  font-weight: 500; font-size: 19px;
  color: var(--ink); margin-bottom: 6px;
}
.tl p {
  font-size: 14px; color: var(--ink-soft); line-height: 1.5;
}
.tl p em { font-style: italic; color: var(--accent-deep); }
.tl .tl-q {
  display: block;
  margin-top: 8px;
  padding-left: 12px;
  border-left: 2px solid var(--gold-hi);
  color: var(--gold);
  font-style: italic;
}

/* ====== CERIMÔNIA GRID ====== */
.cer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.cer-card {
  background: rgba(251, 247, 234, 0.96); border: 1px solid var(--line);
  padding: 22px 20px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 12px 28px rgba(60,60,30,.06);
}
.roman {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 500; color: var(--accent); line-height: 1;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}
.cer-card h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 21px; color: var(--ink);
  line-height: 1.25;
}
.cer-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.cer-card .btn-ghost { align-self: center; margin-top: 10px; font-size: 12.5px; padding: 11px 20px; }

/* ====== FESTA ====== */
.party {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.pp {
  background: rgba(251, 247, 234, 0.96);
  border: 1px solid var(--line);
  padding: 22px 20px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 12px 28px rgba(60,60,30,.06);
}
.icn { font-size: 28px; line-height: 1; }
.pp h3 { font-family: var(--font-display); font-weight: 500; font-size: 20px; color: var(--ink); line-height: 1.25; }
.pp p { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }

/* ====== GALERIA ====== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gi {
  margin: 0; padding: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  aspect-ratio: 2 / 3;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(60,60,30,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gi:hover, .gi:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(60,60,30,.16);
  outline: none;
}
.gi::before {
  content: ""; position: absolute; top: -6px; left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 60px; height: 14px;
  background: rgba(231,207,148,.55);
  z-index: 2;
}
.gi img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ====== INFO ====== */
.info {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.ic {
  background: rgba(251, 247, 234, 0.96); border: 1px solid var(--line);
  padding: 18px 22px;
  display: flex; flex-direction: column; gap: 6px;
  box-shadow: 0 10px 24px rgba(60,60,30,.06);
}
.ic h3 { font-family: var(--font-display); font-weight: 500; font-size: 19px; color: var(--ink); line-height: 1.25; }
.ic p { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.ic ul { list-style: none; display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.ic li { font-size: 15px; font-weight: 500; color: var(--ink-soft); padding: 7px 0; border-bottom: 1px dashed var(--line); line-height: 1.45; }
.ic li:last-child { border-bottom: 0; }
.ic strong { color: var(--ink); font-weight: 600; }

/* ====== FINALE ====== */
.finale {
  display: flex; align-items: flex-start; justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
}
/* flex item não pode encolher abaixo do conteúdo por padrão (min-width:auto);
   isso fazia o card vazar/deslocar quando o título era maior que a tela */
.finale .wrap { min-width: 0; max-width: 100%; }
.finale-deco {
  position: absolute;
  width: 420px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.78;
}
.finale-deco img { width: 100%; display: block; }
.finale-deco.tl {
  top: -120px; left: -180px;
  transform: rotate(200deg);
}
.finale-deco.br {
  bottom: -100px; right: -180px;
}
.finale-deco img { width: 100%; }
/* Finale text needs solid background behind it so it reads over aquarela */
.finale-inner {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
  padding: 50px 40px;
  background: rgba(251, 247, 234, 0.96);
  border: 1px solid var(--line);
}
.invite-text {
  font-family: var(--font-serif); font-style: italic;
  font-size: 22px; color: var(--ink-soft); line-height: 1.7;
  margin: 16px 0 20px;
}
.fbtns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 26px 0 14px; }
.rsvp-note {
  font-family: var(--font-sc);
  text-transform: uppercase; letter-spacing: 0.2em;
  font-size: 12px; font-weight: 500; color: var(--ink-mut);
  margin-top: 10px;
}

/* Ducks travel along centered frame */
.ducks {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateX(calc(var(--duck-x, 0) * 1px));
  pointer-events: none;
  z-index: 1; /* atrás dos cartões de conteúdo, nunca sobrepondo */
  transition: transform 1s var(--ease);
}
.duck-pair {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  filter: drop-shadow(0 8px 14px rgba(60,60,30,0.18));
  animation: bob 1.6s ease-in-out infinite alternate;
}
.duck {
  height: clamp(42px, 4.6vw, 54px);
  width: auto;
}
.duck.groom { transform: translateY(0); }
.duck.bride { transform: translateY(0); }
@keyframes bob {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-3px); }
}
.feet .f {
  transform-origin: center top;
  animation: step 0.7s ease-in-out infinite alternate;
}
.feet .f2 { animation-delay: -0.35s; }
@keyframes step {
  0% { transform: translateY(0); }
  100% { transform: translateY(2px); }
}

/* ====== TWEAKS PANEL (removed — fonts/palette finalized) ====== */

/* ====== RESPONSIVE ====== */
@media (max-width: 960px) {
  :root { --frame-w: calc(100vw - 24px); --frame-pad: 12px; }
  .nav-links { display: none; }
  .menu { display: block; margin-left: auto; }
  .nav-inner { padding: 12px 18px; }
  .brand img { height: 44px; }
  .music { position: fixed; z-index: 50; top: auto; bottom: 16px; right: 16px; left: auto; padding: 8px 14px 8px 8px; }
  .music button { width: 34px; height: 34px; }
  .progress { bottom: 16px; }
  .plabel { display: none; }

  .scene { padding: 90px 20px 90px; }
  .names {
    font-size: clamp(34px, 10vw, 56px);
    white-space: normal;
    line-height: 1.05;
    max-width: 100%;
  }
  .title { font-size: clamp(28px, 7.5vw, 40px); }
  .countdown { gap: 10px; padding: 16px 18px; }
  .countdown strong { font-size: 30px; }
  .date  { font-size: 14px; letter-spacing: 0.14em; }
  .place { font-size: 13px; letter-spacing: 0.14em; }
  .cover-inner { padding: 0 16px; }

  .timeline { grid-template-columns: 1fr; gap: 16px; }
  .timeline::before { display: none; }
  .tl:nth-child(odd), .tl:nth-child(even) { margin: 0; }
  .cer-grid, .party, .info { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }

  /* patinhos escondidos no mobile (conflitavam com nav e player),
     exceto na última página (Convite), onde aparecem juntinhos */
  .ducks { display: none; }
  body[data-scene-kind="finale"] .ducks { display: block; }
  .duck { height: clamp(40px, 12vw, 52px); }

  /* flores nos cantos mais extremos, longe do centro */
  .cover-deco { width: min(210px, 44vw); opacity: .9; }
  .cover-deco.corner-tl { top: 58px; left: -9vw; }
  .cover-deco.corner-br { bottom: 0; right: -9vw; }
  .finale-deco { width: min(210px, 44vw); }

  /* botão de presentes do nav some no mobile (fica no menu e na capa) */
  .btn-gift { display: none; }

  /* capa: botão e link de presentes empilhados e centralizados */
  .btn-journey { display: block; width: max-content; margin: 0 auto; }
  .cover-gift {
    display: block; width: max-content; margin: 34px auto 0;
    font-family: var(--font-sc); text-transform: uppercase;
    letter-spacing: .16em; font-size: 13px; color: var(--accent-deep);
    border: 1px solid var(--accent); padding: 10px 22px;
  }

  /* menu (drawer): cabe sem barra de rolagem, nome em uma linha */
  .drawer { padding: 36px 22px; gap: 11px; overflow-x: hidden; scrollbar-width: none; }
  .drawer::-webkit-scrollbar { display: none; }
  .dm { width: 60px; margin-top: 6px; }
  .dn { font-size: clamp(25px, 7vw, 34px); white-space: nowrap; margin: 8px 0 14px; letter-spacing: 0; line-height: 1.04; }
  .drawer a { font-size: 15px; padding: 7px; }
  .drawer a.dcta { padding: 12px 28px; margin-top: 10px; }
  /* a partir do 2º slide, o monograma do header fica centralizado */
  body[data-scene-kind="content"] .brand,
  body[data-scene-kind="finale"] .brand { position: absolute; left: 50%; transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .duck, .feet .f { animation: none; }
  .journey { scroll-behavior: auto; }
  .scroll-hint { animation: none; }
  .nav-arrow.prev svg, .nav-arrow.next svg { animation: none; }
  .scene.is-entering .wrap { animation: none; }
  .tl-pedido .balloon { animation: none; }
}

/* ============================================================
   AJUSTES — encaixe do último slide + legibilidade
   ============================================================ */

/* Último slide: nomes não podem vazar a caixa */
.finale .names {
  font-size: clamp(34px, 4.6vw, 60px);
  white-space: normal;
  line-height: 1.05;
}
.finale .mono { width: clamp(60px, 7vw, 78px); margin-bottom: 8px; }
.finale-inner {
  width: min(680px, 92vw);
  max-width: 92vw;
  padding: clamp(28px, 4vw, 46px) clamp(22px, 4vw, 44px);
}
.invite-text { font-size: clamp(17px, 2vw, 21px); margin: 14px 0 16px; }
.finale .date { margin-top: 4px; }

/* Legibilidade (públicos de todas as idades): corpo e cartões maiores */
.lead { font-size: clamp(16px, 1.8vw, 18px); font-weight: 500; }
.tl p, .cer-card p, .pp p, .ic p, .ic li { font-size: 16px; font-weight: 500; line-height: 1.55; color: var(--ink-soft); }
.tl h3, .pp h3, .ic h3 { font-size: 20px; }
.cer-card h3 { font-size: 22px; }
.tl .yr { font-size: 28px; }
.rsvp-note { font-size: 13px; }

/* na cena final, os patinhos itinerantes somem (já estão no arco) */
/* último slide: patinhos juntos, CENTRALIZADOS na base e olhando um para o outro (altar) */
body[data-scene-kind="finale"] .ducks { transform: translateX(-50%); }
body[data-scene-kind="finale"] .duck-pair { gap: 0; }
body[data-scene-kind="finale"] .duck.bride { transform: scaleX(-1); }

/* ============================================================
   Splashscreen inicial + ajuste de enquadramento dos títulos
   ============================================================ */
.splash {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity .9s ease;
}
.splash::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("assets/aquarela-cerimonia.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: auto 100%;         /* preenche a ALTURA por completo (não o width) */
  mix-blend-mode: multiply;
}
.splash.hide { opacity: 0; pointer-events: none; }

/* títulos das seções menores e melhor enquadrados */
.ch-head { padding: 14px 40px; margin-bottom: 22px; }
.title { margin: 4px 0; }
.lead { font-size: clamp(15px, 1.7vw, 17px); }


/* ============================================================
   Responsivo por ALTURA — encolhe títulos/espaçamentos para
   tudo caber na tela sem rolar (laptops e telas baixas)
   ============================================================ */
@media (max-height: 820px) {
  .scene { padding: 78px 30px 76px; }
  .ch-head { padding: 10px 30px; margin-bottom: 14px; }
  .title { font-size: clamp(24px, 2.6vw, 34px); }
  .lead { font-size: clamp(13px, 1.5vw, 15px); }
  .timeline { gap: 10px 14px; }
  .tl { padding: 12px 16px; }
  .tl .yr { font-size: 22px; }
  .tl h3, .pp h3, .ic h3 { font-size: 18px; }
  .tl p, .cer-card p, .pp p, .ic p, .ic li { font-size: 15px; font-weight: 500; line-height: 1.45; }
  .cer-card, .pp, .ic { padding: 14px 16px; }
  .cer-grid, .party { gap: 12px; }
  .info { gap: 12px; }
  .roman { font-size: 28px; }
  .pp .icn { font-size: 24px; }
  .finale-inner { padding: 22px 26px; }
  .invite-text { font-size: clamp(15px, 1.7vw, 18px); margin: 10px 0 12px; }
}
@media (max-height: 660px) {
  .scene { padding: 70px 24px 70px; }
  .ch-head { padding: 8px 24px; margin-bottom: 10px; }
  .title { font-size: clamp(20px, 2.4vw, 28px); }
  .tl { padding: 10px 12px; }
  .tl p, .cer-card p, .pp p, .ic p, .ic li { font-size: 14px; font-weight: 500; }
  .roman { font-size: 24px; }
}

/* Responsivo por LARGURA pequena — títulos e espaçamentos menores */
@media (max-width: 380px) {
  .title { font-size: clamp(22px, 9vw, 30px); }
  .names { font-size: clamp(30px, 11vw, 44px); }
  .countdown strong { font-size: 26px; }
}

/* indicador de slides removido por completo (a pedido) */
.progress { display: none !important; }


/* ============================================================
   Setas de navegação + dica de rolagem
   ============================================================ */
.nav-arrow {
  position: fixed; top: 50%; transform: translateY(-50%);
  z-index: 45;
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  box-shadow: 0 10px 26px rgba(60,60,30,0.25);
  opacity: 0.92;
  transition: transform .25s var(--ease), opacity .25s, background .25s;
}
.nav-arrow:hover { background: var(--accent-deep); opacity: 1; transform: translateY(-50%) scale(1.08); }
.nav-arrow svg { width: 22px; height: 22px; }
.nav-arrow.prev { left: max(18px, calc(50% - (var(--max) / 2) + 10px)); }
.nav-arrow.next { right: max(18px, calc(50% - (var(--max) / 2) + 10px)); }
.nav-arrow.hidden { opacity: 0; pointer-events: none; transform: translateY(-50%) scale(.78); }

.scroll-hint {
  position: fixed; left: 50%; bottom: 16px;
  z-index: 44;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  box-shadow: 0 10px 26px rgba(60,60,30,0.25);
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
  animation: hintbob 1.5s ease-in-out infinite;
}
.scroll-hint { cursor: pointer; }
.scroll-hint.show { opacity: 0.95; pointer-events: auto; }
.scroll-hint svg { width: 20px; height: 20px; }
@keyframes hintbob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(5px); }
}

/* animação de "pulo" nas setas laterais */
.nav-arrow.prev svg { animation: nudgeLeft 1.5s ease-in-out infinite; }
.nav-arrow.next svg { animation: nudgeRight 1.5s ease-in-out infinite; }
@keyframes nudgeLeft  { 0%,100% { transform: translateX(0); } 50% { transform: translateX(-4px); } }
@keyframes nudgeRight { 0%,100% { transform: translateX(0); } 50% { transform: translateX(4px); } }

/* ============================================================
   Frases emotivas (família, amor, união)
   ============================================================ */
.scene-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(18px, 2.1vw, 23px);
  font-weight: 600;
  line-height: 1.5;
  color: #475238; /* sálvia escura, mais contraste e presença */
  text-shadow:
    0 0 6px var(--bg), 0 0 6px var(--bg), 0 0 10px var(--bg),
    0 0 16px var(--bg), 0 1px 1px rgba(255,255,255,0.75);
  text-align: center;
  max-width: 640px;
  margin: 22px auto 0;
}
.scene-quote::before {
  content: "\2766"; /* ornamento floral */
  display: block;
  font-style: normal;
  font-size: 16px;
  color: var(--gold);
  opacity: 0.8;
  margin-bottom: 6px;
}
.cover-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(16px, 1.7vw, 19px);
  font-weight: 600;
  color: #475238;
  margin: 14px auto 0;
  max-width: 560px;
  text-shadow: 0 0 6px var(--bg), 0 0 10px var(--bg), 0 1px 1px rgba(255,255,255,0.7);
}
@media (max-height: 820px) {
  .scene-quote { font-size: clamp(16px, 1.9vw, 19px); margin-top: 14px; }
  .cover-quote { font-size: 15px; margin-top: 10px; }
}

/* capa: não rola quando cabe; rola só em último caso (telas muito baixas) */
@media (max-width: 760px) {
  .cover { overflow-y: auto; }
}

/* Links e código promocional nos cards de informações */
.ic li a {
  color: var(--accent-deep);
  font-weight: 700;
  border-bottom: 1px solid var(--accent);
  white-space: nowrap;
}
.ic li a:hover { color: var(--gold); border-color: var(--gold); }
.ic .code {
  font-family: var(--font-sc);
  letter-spacing: 0.04em;
  font-weight: 700;
  color: var(--accent-deep);
  background: rgba(138,154,117,0.16);
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 0.9em;
  white-space: nowrap;
}

/* ============================================================
   Transição de slide: aquarela aparece, depois o conteúdo entra
   ============================================================ */
.scene.is-entering .wrap { animation: wrapIn 0.85s var(--ease) both; }
@keyframes wrapIn {
  0%   { opacity: 0; transform: translateY(14px); }
  38%  { opacity: 0; transform: translateY(14px); } /* segura: só a aquarela visível */
  100% { opacity: 1; transform: translateY(0); }
}


/* ====== LIGHTBOX (ensaio) ====== */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(28,26,18,.92);
  opacity: 0; visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
  padding: 4vmin;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-stage {
  margin: 0; max-width: 92vw; max-height: 92vh;
  display: flex; align-items: center; justify-content: center;
}
.lb-stage img {
  max-width: 92vw; max-height: 92vh;
  width: auto; height: auto; display: block;
  border-radius: 3px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  background: #fff;
}
.lb-close, .lb-nav {
  position: absolute; z-index: 2;
  border: 0; cursor: pointer; color: #f4efe2;
  background: rgba(0,0,0,.28);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.lb-close { top: 18px; right: 20px; width: 46px; height: 46px; border-radius: 50%; font-size: 30px; line-height: 1; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; font-size: 34px; line-height: 1; }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-close:hover, .lb-nav:hover { background: rgba(0,0,0,.5); }
.lb-nav:hover { transform: translateY(-50%) scale(1.06); }
.lb-count {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: #e9e2cf; font-size: 14px; letter-spacing: .5px;
  background: rgba(0,0,0,.28); padding: 5px 14px; border-radius: 20px;
}

/* ====== CARD ESPECIAL: O PEDIDO (Capadócia) ======
   Balões aparecem SÓ nesta seção: ancorados ao card + laterais,
   sempre ATRÁS do conteúdo (nunca por cima de texto/fotos). */
.timeline .tl.tl-pedido {
  position: relative; isolation: isolate; overflow: visible;
  border: 1px solid var(--gold-hi);
  background: linear-gradient(180deg, #fbe9cf 0%, #f7dab6 46%, #f8ecd6 100%);
  padding: 26px 24px 24px;
  margin: 26px 0 26px;
  text-align: center;
  box-shadow: 0 16px 36px rgba(120,90,40,.16);
}
/* sol nascente suave ao fundo do card */
.tl-pedido::before {
  content: ""; position: absolute; z-index: 0; left: 50%; top: 4%;
  transform: translateX(-50%); width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,244,214,.85), rgba(255,228,176,.3) 55%, transparent 72%);
  pointer-events: none;
}
/* camada de balões: cobre o card e transborda para as laterais (página) */
.ped-balloons {
  position: absolute; top: 0; bottom: 0; left: -220px; right: -220px;
  z-index: 0; pointer-events: none;
}
.tl-pedido .balloon {
  position: absolute; display: block; will-change: transform;
  animation: balloonFloat 6.5s ease-in-out infinite;
}
.tl-pedido .balloon svg { width: 100%; height: auto; display: block;
  filter: drop-shadow(0 6px 10px rgba(90,60,30,.18)); }
@keyframes balloonFloat { 0%,100% { margin-top: 0 } 50% { margin-top: -8px } }
/* laterais (página) */
.bl1 { width: 70px; left: 3%;  top: 26%; opacity: .92; filter: blur(.4px); }
.bl2 { width: 56px; left: 8%;  top: 60%; opacity: .9;  filter: blur(.3px); animation-delay: -1.5s; }
.bl3 { width: 92px; left: 88%; top: 24%; opacity: .88; filter: blur(.7px); animation-delay: -2s; }
.bl4 { width: 64px; left: 90%; top: 62%; opacity: .8;  filter: blur(1.1px); animation-delay: -3s; }
/* sobre o card, mas no topo (atrás do título — z-index 0 < conteúdo) */
.bl5 { width: 48px; left: 36%; top: 4%;  opacity: .7;  filter: blur(.8px); animation-delay: -1s; }
.bl6 { width: 42px; left: 60%; top: 3%;  opacity: .72; filter: blur(.9px); animation-delay: -2.5s; }
/* conteúdo sempre na frente dos balões */
.ped-content { position: relative; z-index: 2; }
.tl-pedido .yr { color: var(--gold); }
.tl-pedido h3 { font-size: 22px; }
.tl-pedido p { max-width: 600px; margin: 0 auto; }
.pedido-gallery {
  margin: 16px auto 0; max-width: 470px;
  grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 8px;
}
.pedido-gallery .gi { aspect-ratio: 1 / 1; }
.pedido-gallery .gi.gi-feature { grid-column: span 2; grid-row: span 2; }
.pedido-gallery .gi::before { display: none; }

/* ====== AJUSTES FINOS DE RESPONSIVIDADE (revisão) ====== */
/* capa: em telas BAIXAS (paisagem/curtas) permite rolar para não cortar o CTA */
@media (max-height: 680px) {
  .cover { overflow-y: auto; }
}
/* equilibra a calha da linha do tempo vertical em telas estreitas */
/* telas muito estreitas: evita cortes/estouros */
@media (max-width: 600px) {
  .title { font-size: clamp(24px, 8vw, 34px); }
  .ch-head { padding: 10px 18px; }
  .lead { font-size: 14px; }

  /* CAPA: conteúdo alinhado ao topo (sem vão em cima) e compacto p/ caber sem scroll */
  .scene.cover { padding-top: 50px; padding-bottom: 16px; }
  .cover-inner { padding: 0 22px; }
  .mono { width: clamp(50px, 12vw, 64px); margin-bottom: 6px; }
  .eyebrow { font-size: 12px; margin-bottom: 4px; }
  .divider { margin: 5px 0; }
  .date { font-size: 14px; margin: 3px 0 2px; }
  .place { font-size: 12.5px; margin: 2px 0; }
  .cover-quote { font-size: 13px; margin: 8px auto 0; }
  .countdown { margin-top: 10px; gap: 14px; }
  .countdown strong { font-size: 28px; }
  .countdown em { margin-top: 5px; font-size: 11px; }
  .cover-inner .btn-journey { margin-top: 14px; }
  .cover-gift { margin-top: 22px; padding: 9px 20px; }

  /* FINALE (Convite): card preenche a largura útil e centraliza, sem vazar */
  .finale-inner { width: auto; max-width: 100%; padding: 28px 20px; }
  .finale .names { font-size: clamp(28px, 8vw, 42px); }
  .fbtns { flex-direction: column; align-items: stretch; }
  .fbtns .btn { justify-content: center; }
  .nav-arrow { width: 44px; height: 44px; }
  .nav-arrow.prev { left: 10px; }
  .nav-arrow.next { right: 10px; }
  .lb-close { top: 10px; right: 12px; width: 42px; height: 42px; }
  .lb-nav { width: 46px; height: 46px; font-size: 28px; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .pedido-gallery { max-width: 340px; }
  .tl-photos .gi { height: clamp(104px, 27vw, 140px); }
  /* mobile: balões pequenos numa faixa de céu no topo do card, atrás do conteúdo e contidos */
  .timeline .tl.tl-pedido { overflow: hidden; padding-top: 64px; }
  .ped-balloons { left: 0; right: 0; }
  .tl-pedido .balloon { filter: none; }
  .bl1 { width: 38px; left: 5%;  top: 30px; opacity: .9; }
  .bl2 { width: 44px; left: 73%; top: 8px;  opacity: .92; }
  .bl3 { width: 32px; left: 27%; top: 4px;  opacity: .8; }
  .bl4 { width: 36px; left: 52%; top: 32px; opacity: .85; }
  .bl5 { width: 30px; left: 40%; top: 0;    opacity: .8; }
  .bl6 { width: 40px; left: 90%; top: 22px; opacity: .85; }
  .timeline.tl-vertical { padding-left: 22px; }
}

@media (max-width: 400px) {
  .dn { white-space: normal; width: 100%; }     /* nome do menu quebra em vez de cortar */
  .date, .place { letter-spacing: 0.1em; }
  .fbtns .btn { padding: 13px 18px; letter-spacing: 0.12em; }
  .pedido-gallery { max-width: 300px; }
}
