@import url("../fonts/fonts.css");

:root {
  --ink: #0e0c0a;
  --ink-2: #17130f;
  --ink-3: #221c16;
  --ivory: #f4ede1;
  --ivory-2: #ebe1d0;
  --muted: rgba(244, 237, 225, .62);
  --faint: rgba(244, 237, 225, .14);
  --gold: #c8a46b;
  --gold-2: #e8d2a2;
  --gold-3: #9c7a45;
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(16px, 5vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-loading { overflow: hidden; }

img, video { display: block; max-width: 100%; }
main { overflow-x: clip; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: italic; }
::selection { background: var(--gold); color: var(--ink); }

/* ---------- utilitários ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
}
.gold-text {
  background: linear-gradient(100deg, var(--gold-3) 0%, var(--gold-2) 28%, var(--gold) 50%, var(--gold-2) 72%, var(--gold-3) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer { to { background-position: -220% 0; } }

.line-mask { display: block; overflow: hidden; padding-bottom: .06em; }
.line-mask > span { display: inline-block; }
.char { display: inline-block; will-change: transform; }

/* ---------- grão e cursor ---------- */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { background-position: 0 0; } 20% { background-position: -37px 23px; } 40% { background-position: 29px -41px; }
  60% { background-position: -19px -13px; } 80% { background-position: 43px 31px; } 100% { background-position: 0 0; }
}

.cursor {
  position: fixed; top: 0; left: 0; z-index: 95; pointer-events: none;
  width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  border: 1px solid rgba(200, 164, 107, .7);
  display: grid; place-items: center;
  font-family: var(--sans); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
  transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background .4s, border-color .4s, opacity .3s;
  opacity: 0;
}
.cursor span { opacity: 0; transition: opacity .3s; }
.cursor.is-active { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--gold-2); border-color: var(--gold-2); }
.cursor.is-active span { opacity: 1; }
.cursor-dot { position: fixed; top: 0; left: 0; z-index: 96; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: var(--gold); pointer-events: none; opacity: 0; }
@media (pointer: fine) { .cursor.ready, .cursor-dot.ready { opacity: 1; } }
@media (pointer: coarse) { .cursor, .cursor-dot { display: none; } }

/* ---------- interface fixa ---------- */
.ui { position: fixed; z-index: 60; pointer-events: none; mix-blend-mode: difference; color: var(--ivory); }
.ui-brand { top: 24px; left: var(--gutter); font-family: var(--serif); font-size: 22px; font-style: italic; letter-spacing: .02em; }
.ui-brand b { font-weight: 400; color: var(--gold); }
.ui-tag { top: 30px; right: var(--gutter); font-family: var(--sans); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; }
.ui-year {
  bottom: 22px; left: var(--gutter); display: flex; align-items: flex-end; gap: 14px;
  font-family: var(--serif); font-weight: 300; font-size: 44px; line-height: 1;
}
.ui-year small { font-family: var(--sans); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; padding-bottom: 7px; opacity: .7; }
.year-digits { display: inline-flex; overflow: hidden; height: 1em; }
.year-roll { display: inline-block; position: relative; }
.year-roll span { display: block; height: 1em; }
.ui-progress { top: 50%; right: calc(var(--gutter) * .5); width: 1px; height: 26vh; transform: translateY(-50%); background: rgba(244, 237, 225, .25); }
.ui-progress i { position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--ivory); transform-origin: top; transform: scaleY(0); }
.ui, .ui-progress { opacity: 0; }
@media (max-width: 700px) {
  .ui-year { display: none; }
  .ui-tag { display: none; }
  .ui-progress { display: none; }
}

/* ---------- abertura ---------- */
#intro { position: fixed; inset: 0; z-index: 100; pointer-events: all; }
.intro-panel { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--ink); }
.intro-panel.top { top: 0; }
.intro-panel.bottom { bottom: 0; }
.intro-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 18px; }
.intro-year { font-weight: 300; font-size: clamp(72px, 14vw, 180px); line-height: 1; letter-spacing: .02em; font-variant-numeric: lining-nums tabular-nums; }
.intro-line { height: 1px; width: min(60vw, 520px); margin: 0 auto; background: linear-gradient(90deg, transparent, var(--gold), transparent); transform: scaleX(0); }
.intro-sub { opacity: 0; }
.intro-count { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); font-family: var(--sans); font-size: 11px; letter-spacing: .3em; color: var(--muted); }

/* ---------- hero ---------- */
#hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; display: grid; place-items: center; }
.wall-wrap { position: absolute; inset: 0; overflow: hidden; }
.wall {
  position: absolute; left: 50%; top: 50%; width: 150vw; height: 170vh;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.4vw;
  transform: translate(-50%, -50%) perspective(1400px) rotateX(24deg) rotateZ(-12deg);
}
.wall-col { display: flex; flex-direction: column; gap: 1.4vw; animation: wallUp 90s linear infinite; }
.wall-col:nth-child(even) { animation-name: wallDown; animation-duration: 110s; }
.wall-col img { width: 100%; border-radius: 3px; filter: saturate(.85) contrast(1.02); }
@keyframes wallUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes wallDown { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.hero-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(14, 12, 10, .62) 0%, rgba(14, 12, 10, .9) 70%, var(--ink) 100%),
    linear-gradient(180deg, transparent 60%, var(--ink) 100%);
}
#dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-content { position: relative; z-index: 2; text-align: center; padding: 0 var(--gutter); }
.hero-content .eyebrow { margin-bottom: clamp(18px, 3vh, 36px); }
.names { font-weight: 300; font-size: clamp(64px, 13.5vw, 220px); line-height: .88; letter-spacing: -.01em; }
.names .l1 { transform: translateX(-9%); }
.names .l2 { transform: translateX(7%); }
.names .amp { font-style: italic; font-weight: 300; color: var(--gold); margin-right: .12em; font-size: .9em; }
.hero-tag { margin-top: clamp(20px, 3.5vh, 40px); font-style: italic; font-size: clamp(19px, 2vw, 26px); color: var(--muted); }
.scroll-cue { position: absolute; z-index: 2; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; font-family: var(--sans); font-size: 10px; letter-spacing: .35em; text-transform: uppercase; color: var(--muted); }
.cue-line { width: 1px; height: 54px; background: rgba(244, 237, 225, .2); position: relative; overflow: hidden; }
.cue-line::after { content: ""; position: absolute; left: 0; top: -100%; width: 1px; height: 100%; background: var(--gold); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }
@media (max-width: 700px) {
  .names { font-size: 19vw; }
  .names .l1 { transform: translateX(-4%); }
  .names .l2 { transform: translateX(2%); }
  .wall { width: 220vw; grid-template-columns: repeat(5, 1fr); }
  .wall-col:nth-child(6) { display: none; }
}

/* ---------- números ---------- */
#numeros { position: relative; padding: clamp(110px, 18vh, 200px) var(--gutter) clamp(90px, 14vh, 160px); text-align: center; }
#numeros h2 { font-weight: 300; font-size: clamp(36px, 5vw, 72px); line-height: 1.08; max-width: 14em; margin: 22px auto 0; }
#numeros h2 em { color: var(--gold); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1200px; margin: clamp(60px, 10vh, 110px) auto 0; border-top: 1px solid var(--faint); }
.stat { padding: 40px 18px 8px; border-right: 1px solid var(--faint); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.stat:last-child { border-right: 0; }
.stat .num { font-weight: 300; font-size: clamp(54px, 7vw, 112px); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.stat .label { font-family: var(--sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); max-width: 16em; line-height: 1.7; }
.bodas { max-width: 34em; margin: clamp(60px, 9vh, 100px) auto 0; font-size: clamp(20px, 2vw, 26px); font-style: italic; color: var(--muted); line-height: 1.5; }
.bodas em { font-style: normal; color: var(--gold-2); }
.ornament { display: block; margin: 0 auto 26px; width: 120px; color: var(--gold); }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--faint); padding-bottom: 36px; }
}

/* ---------- cabeçalho de capítulo ---------- */
.chapter-head { text-align: center; padding: clamp(100px, 16vh, 180px) var(--gutter) clamp(50px, 8vh, 90px); }
.chapter-num { display: block; font-style: italic; font-weight: 300; font-size: clamp(28px, 3vw, 40px); color: var(--gold); margin-bottom: 8px; }
.chapter-head h2 { font-weight: 300; font-size: clamp(56px, 10vw, 150px); line-height: .95; letter-spacing: -.01em; }
.chapter-head p { margin: 26px auto 0; max-width: 30em; font-style: italic; font-size: clamp(19px, 1.8vw, 24px); color: var(--muted); }
.chapter-head .eyebrow { display: block; margin-bottom: 18px; }

/* ---------- linha do tempo (o começo) ---------- */
.timeline { position: relative; max-width: 1240px; margin: 0 auto; padding: 40px var(--gutter) 60px; }
.tl-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--faint); }
.tl-fill { position: absolute; inset: 0; background: linear-gradient(180deg, var(--gold-3), var(--gold-2)); transform-origin: top; transform: scaleY(0); }
.moment { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; column-gap: clamp(50px, 9vw, 140px); padding: clamp(40px, 7vh, 80px) 0; }
.moment .m-date { text-align: right; }
.moment:nth-of-type(even) .m-date { order: 2; text-align: left; }
.moment:nth-of-type(even) .m-body { order: 1; text-align: right; }
.m-dot { position: absolute; left: 50%; top: 50%; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; background: var(--ink); border: 1px solid var(--gold); }
.m-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--gold); transform: scale(0); transition: transform .8s var(--ease); }
.moment.is-in .m-dot::after { transform: scale(1); }
.m-day { position: relative; display: inline-block; font-weight: 300; font-size: clamp(120px, 17vw, 250px); line-height: .8; font-variant-numeric: lining-nums; }
.m-day .outline { color: transparent; -webkit-text-stroke: 1px rgba(200, 164, 107, .55); }
.m-day .fill { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); }
.m-month { display: block; margin-top: 14px; font-family: var(--sans); font-size: 13px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.m-kicker { font-family: var(--sans); font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.m-body h3 { font-weight: 400; font-size: clamp(34px, 3.6vw, 54px); line-height: 1.04; margin-bottom: 18px; }
.m-body p { font-size: clamp(19px, 1.5vw, 22px); color: var(--muted); max-width: 22em; }
.moment:nth-of-type(even) .m-body p { margin-left: auto; }
.gap-note { position: relative; z-index: 1; display: table; margin: 0 auto; padding: 8px 18px; background: var(--ink); font-style: italic; font-size: 19px; color: var(--gold-2); }
@media (max-width: 760px) {
  .tl-line { left: calc(var(--gutter) + 6px); }
  .m-dot { left: calc(var(--gutter) + 6px); top: 56px; }
  .moment, .moment:nth-of-type(even) { grid-template-columns: 1fr; padding-left: 44px; row-gap: 22px; }
  .moment .m-date, .moment:nth-of-type(even) .m-date, .moment:nth-of-type(even) .m-body { order: 0; text-align: left; }
  .moment:nth-of-type(even) .m-body p { margin-left: 0; }
  .m-day { font-size: 120px; }
  .gap-note { margin-left: 44px; padding-left: 0; }
}

/* ---------- o sim ---------- */
#sim { position: relative; height: 100vh; height: 100svh; min-height: 600px; display: grid; place-items: center; text-align: center; overflow: hidden; }
#sim .sim-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 50% 55%, rgba(200, 164, 107, .14), transparent 70%); opacity: 0; }
.rings { width: clamp(110px, 12vw, 170px); margin: 0 auto 10px; color: var(--gold); overflow: visible; }
.rings circle { fill: none; stroke: currentColor; stroke-width: 1.2; }
.sim-word { display: block; font-weight: 300; font-style: italic; font-size: clamp(130px, 27vw, 420px); line-height: .85; letter-spacing: -.03em; }
.sim-date { margin-top: 18px; }
.sim-text { max-width: 28em; margin: 28px auto 0; padding: 0 var(--gutter); font-size: clamp(19px, 1.7vw, 24px); font-style: italic; color: var(--muted); }

/* ---------- galeria horizontal ---------- */
.h-pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.h-track { position: absolute; top: 0; left: 0; height: 100%; display: flex; align-items: center; gap: clamp(40px, 6vw, 110px); padding: 0 12vw 0 var(--gutter); will-change: transform; }
.h-intro { flex: 0 0 auto; width: min(80vw, 560px); }
.h-intro h2 { font-weight: 300; font-size: clamp(64px, 9vw, 140px); line-height: .9; }
.h-intro h2 em { color: var(--gold); }
.h-intro p { margin-top: 24px; font-size: clamp(19px, 1.7vw, 24px); font-style: italic; color: var(--muted); max-width: 20em; }
.h-intro .eyebrow { display: block; margin-bottom: 20px; }
.h-hint { display: inline-flex; align-items: center; gap: 14px; margin-top: 34px; font-family: var(--sans); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.h-hint i { display: block; width: 60px; height: 1px; background: currentColor; }

.card { flex: 0 0 auto; position: relative; }
.card .frame { position: relative; overflow: hidden; border-radius: 2px; background: var(--ink-3); }
.card .frame img, .card .frame video { width: 100%; height: 100%; object-fit: cover; }
.card .frame video { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
.card .frame.playing video { opacity: 1; }
.h-track .card .frame img { transform: scale(1.18); }
.card.tall .frame { height: 68vh; aspect-ratio: 3 / 4; }
.card.xtall .frame { height: 74vh; aspect-ratio: 9 / 16; }
.card.wide .frame { height: 52vh; aspect-ratio: 4 / 3; }
.card.pano .frame { height: 50vh; aspect-ratio: 16 / 9; }
.card.up { transform: translateY(-7vh); }
.card.down { transform: translateY(8vh); }
.cap { margin-top: 18px; display: flex; flex-direction: column; gap: 4px; }
.cap .when { font-family: var(--sans); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.cap .what { font-style: italic; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.25; }
.live-badge { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 6px; border-radius: 30px; background: rgba(14, 12, 10, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-family: var(--sans); font-size: 10px; letter-spacing: .14em; color: var(--ivory); }
.live-badge svg { width: 14px; height: 14px; }

.h-milestone { flex: 0 0 auto; display: grid; grid-template-columns: auto auto; align-items: center; gap: clamp(30px, 4vw, 70px); padding: 0 3vw; }
.h-milestone .hm-text { width: min(70vw, 420px); }
.hm-date { font-weight: 300; font-size: clamp(80px, 10vw, 150px); line-height: .85; font-variant-numeric: lining-nums; }
.hm-date small { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: .32em; color: var(--muted); margin-top: 16px; }
.h-milestone h3 { font-weight: 400; font-size: clamp(36px, 4vw, 60px); line-height: 1; margin: 26px 0 14px; }
.h-milestone p { font-size: clamp(18px, 1.5vw, 21px); color: var(--muted); font-style: italic; }
.h-end { flex: 0 0 auto; width: min(70vw, 420px); font-style: italic; font-size: clamp(28px, 3vw, 44px); line-height: 1.2; color: var(--muted); }
.h-end em { color: var(--gold-2); }
@media (max-width: 760px) {
  .h-milestone { grid-template-columns: 1fr; }
  .h-milestone .card.tall .frame { height: 42vh; }
  .card.tall .frame { height: 58vh; }
  .card.wide .frame, .card.pano .frame { height: auto; width: 82vw; }
  .card.xtall .frame { height: 64vh; }
}

/* ---------- a espera ---------- */
#espera { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.espera-media { position: absolute; inset: 0; clip-path: circle(14% at 50% 50%); }
.espera-bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(34px) brightness(.45) saturate(1.1); transform: scale(1.1); }
.espera-frame { position: absolute; top: 50%; left: 50%; height: 82vh; aspect-ratio: 2 / 3; transform: translate(-50%, -50%); overflow: hidden; box-shadow: 0 40px 120px rgba(0, 0, 0, .55); }
.espera-frame img { width: 100%; height: 100%; object-fit: cover; }
.espera-text { position: absolute; z-index: 2; bottom: clamp(30px, 8vh, 90px); left: var(--gutter); max-width: min(30vw, 380px); }
.espera-text.right { left: auto; right: var(--gutter); top: clamp(30px, 12vh, 140px); bottom: auto; text-align: right; }
.espera-text h2 { font-weight: 300; font-size: clamp(40px, 4.6vw, 72px); line-height: 1; margin-top: 16px; }
.espera-text p { margin-top: 16px; font-style: italic; font-size: clamp(18px, 1.5vw, 22px); color: var(--ivory); opacity: .82; }
@media (max-width: 900px) {
  .espera-frame { height: 50vh; height: 50svh; top: 49%; }
  .espera-text { max-width: none; right: var(--gutter); bottom: 26px; }
  .espera-text.right { top: 66px; text-align: left; left: var(--gutter); }
  .espera-text.right h2 { margin-top: 8px; }
  .espera-text.right h2 { font-size: 30px; }
  .espera-text h2 { font-size: 34px; }
  .espera-text p { font-size: 17px; margin-top: 8px; }
}

/* ---------- marcos grandes (Pedro / Davi) ---------- */
.birth { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(40px, 7vw, 120px); max-width: 1380px; margin: 0 auto; padding: clamp(110px, 18vh, 200px) var(--gutter); }
.birth.mirror { grid-template-columns: 1fr 1.05fr; }
.birth.mirror .birth-media { order: 2; }
.birth-media .frame { aspect-ratio: 3 / 4; overflow: hidden; clip-path: inset(100% 0 0 0); }
.birth-media .frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); }
.birth-date { font-family: var(--sans); font-size: 13px; letter-spacing: .4em; color: var(--gold); }
.birth-name { font-weight: 300; font-size: clamp(110px, 15vw, 240px); line-height: .82; letter-spacing: -.02em; margin: 18px 0 8px -.04em; }
.birth-kicker { font-style: italic; font-size: clamp(22px, 2.2vw, 30px); color: var(--gold-2); }
.birth-text { margin-top: 22px; font-size: clamp(19px, 1.5vw, 22px); color: var(--muted); max-width: 25em; }
.birth-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 46px; max-width: 460px; }
.birth-thumbs .card .frame { aspect-ratio: 3 / 4; }
.birth-thumbs .card.landscape .frame { aspect-ratio: 4 / 3; }
.birth-thumbs .card:nth-child(2) { margin-top: 48px; }
.birth-thumbs .cap .what { font-size: 18px; }
@media (max-width: 860px) {
  .birth, .birth.mirror { grid-template-columns: 1fr; }
  .birth.mirror .birth-media { order: 0; }
  .birth-name { font-size: 30vw; }
}

/* ---------- galeria em colunas ---------- */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 46px); max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter) clamp(90px, 14vh, 160px); align-items: start; }
.cols .col { display: flex; flex-direction: column; gap: clamp(40px, 7vh, 80px); }
.cols .col:nth-child(2) { margin-top: 18vh; }
.cols .col:nth-child(3) { margin-top: 6vh; }
.cols .card .frame { aspect-ratio: 3 / 4; }
.cols .card.landscape .frame { aspect-ratio: 4 / 3; }
.cols .card .frame img { transform: scale(1.12); }
@media (max-width: 760px) {
  .cols { grid-template-columns: 1fr 1fr; }
  .cols .col:nth-child(2) { margin-top: 12vh; }
  .cols .col:nth-child(3) { grid-column: 1 / -1; margin-top: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .cols .cap .what { font-size: 18px; }
}

/* ---------- pilha de cartões (nós quatro) ---------- */
.stack { position: relative; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter) 12vh; }
.s-card { position: sticky; top: 9vh; height: 82vh; height: 82svh; margin-bottom: 8vh; }
.s-inner { position: relative; height: 100%; display: grid; grid-template-columns: 1.35fr 1fr; background: var(--ink-2); border: 1px solid rgba(200, 164, 107, .16); border-radius: 4px; overflow: hidden; transform-origin: 50% 0; box-shadow: 0 -30px 80px rgba(0, 0, 0, .45); }
.s-card.flip .s-inner { grid-template-columns: 1fr 1.35fr; }
.s-card.flip .s-photo { order: 2; }
.s-photo { position: relative; overflow: hidden; }
.s-photo .card { position: absolute; inset: 0; }
.s-photo .frame { position: absolute; inset: 0; border-radius: 0; }
.s-text { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(26px, 4vw, 60px); }
.s-num { font-family: var(--sans); font-size: 11px; letter-spacing: .32em; color: var(--muted); margin-bottom: auto; }
.s-when { font-family: var(--sans); font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.s-text h3 { font-weight: 300; font-size: clamp(38px, 4.4vw, 68px); line-height: 1; margin: 16px 0 16px; }
.s-text p { font-style: italic; font-size: clamp(18px, 1.5vw, 22px); color: var(--muted); }
@media (max-width: 760px) {
  .s-inner, .s-card.flip .s-inner { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .s-card.flip .s-photo { order: 0; }
  .s-text { padding: 22px 22px 26px; }
  .s-num { display: none; }
  .s-text h3 { font-size: 32px; margin: 10px 0 8px; }
  .s-text p { font-size: 17px; }
}

/* ---------- velinhas ---------- */
#velinhas { position: relative; padding: clamp(100px, 16vh, 180px) var(--gutter); display: grid; grid-template-columns: 1fr auto; gap: clamp(40px, 7vw, 110px); align-items: center; max-width: 1240px; margin: 0 auto; }
.v-text h2 { font-weight: 300; font-size: clamp(56px, 7.5vw, 120px); line-height: .92; margin: 20px 0; }
.v-text h2 em { color: var(--gold); }
.v-text p { font-style: italic; font-size: clamp(20px, 1.9vw, 26px); color: var(--muted); max-width: 18em; }
.v-video { position: relative; height: 78vh; aspect-ratio: 3 / 4; max-width: 86vw; overflow: hidden; border-radius: 3px; background: var(--ink-3); }
.v-video video { width: 100%; height: 100%; object-fit: cover; }
.v-play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, transparent 40%, rgba(14, 12, 10, .55)); transition: opacity .5s; }
.v-play span { display: inline-flex; align-items: center; gap: 14px; padding: 16px 26px; border: 1px solid rgba(232, 210, 162, .7); border-radius: 60px; font-family: var(--sans); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--ivory); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); background: rgba(14, 12, 10, .25); transition: background .4s, color .4s; }
.v-play:hover span { background: var(--gold-2); color: var(--ink); }
.v-play svg { width: 12px; height: 12px; }
.v-video.is-playing .v-play { opacity: 0; pointer-events: none; }
@media (max-width: 860px) {
  #velinhas { grid-template-columns: 1fr; }
  .v-video { height: auto; width: 100%; max-width: none; }
}

/* ---------- camisa (cruzeiro) ---------- */
#camisa { position: relative; z-index: 1; background: var(--ink); height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.camisa-photo { position: relative; height: 100%; overflow: hidden; }
.camisa-photo img { width: 100%; height: 115%; object-fit: cover; object-position: 50% 30%; }
.camisa-text { padding: 0 clamp(26px, 7vw, 120px); }
.camisa-text h2 { font-weight: 300; font-size: clamp(52px, 6.5vw, 104px); line-height: .95; margin: 20px 0; }
.camisa-text h2 em { color: var(--gold); }
.camisa-text p { font-style: italic; font-size: clamp(19px, 1.7vw, 24px); color: var(--muted); max-width: 20em; }
@media (max-width: 860px) {
  #camisa { grid-template-columns: 1fr; height: auto; }
  .camisa-photo { height: 70vh; }
  .camisa-text { padding: 60px var(--gutter) 40px; }
}

/* ---------- carta ---------- */
#carta { position: relative; padding: clamp(120px, 20vh, 220px) var(--gutter) clamp(100px, 16vh, 180px); }
.carta-inner { max-width: 760px; margin: 0 auto; }
.carta-inner .eyebrow { color: var(--gold-3); }
.carta-photo { width: min(320px, 70vw); aspect-ratio: 4 / 5; margin: 0 auto 70px; overflow: hidden; border-radius: 200px 200px 4px 4px; }
.carta-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.carta-hello { font-style: italic; font-weight: 400; font-size: clamp(44px, 5.4vw, 76px); line-height: 1; margin: 18px 0 40px; }
.carta-body p { font-size: clamp(21px, 2vw, 27px); line-height: 1.6; margin-bottom: 1.1em; }
.carta-body .w { opacity: .14; }
.carta-sign { margin-top: 50px; text-align: right; }
.carta-sign .bye { font-style: italic; font-size: clamp(22px, 2vw, 27px); }
.carta-sign .who { font-style: italic; font-weight: 500; font-size: clamp(48px, 6vw, 82px); line-height: 1; margin-top: 8px; color: var(--gold-3); }
.signature-line { display: block; margin: 6px 0 0 auto; width: 210px; color: var(--gold-3); }
.signature-line path { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }

/* ---------- fim ---------- */
#fim { position: relative; height: 100vh; height: 100svh; min-height: 620px; display: grid; place-items: center; text-align: center; overflow: hidden; }
#confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fim-inner { position: relative; z-index: 2; padding: 0 var(--gutter); }
.fim-ten { display: block; font-style: italic; font-weight: 300; padding-right: .06em; font-size: clamp(170px, 30vw, 460px); line-height: .78; letter-spacing: -.04em; }
.fim-title { font-weight: 300; font-style: italic; font-size: clamp(36px, 5vw, 76px); line-height: 1.05; margin-top: 10px; }
.fim-sub { margin-top: 22px; font-size: clamp(19px, 1.7vw, 24px); color: var(--muted); font-style: italic; }
.fim-family { margin-top: 44px; font-family: var(--sans); font-size: 11px; letter-spacing: .36em; text-transform: uppercase; color: var(--muted); }
.fim-family b { font-weight: 400; color: var(--gold); }
.again { margin-top: 44px; display: inline-flex; align-items: center; gap: 12px; padding: 14px 24px; border: 1px solid rgba(200, 164, 107, .5); border-radius: 60px; font-family: var(--sans); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-2); transition: background .4s, color .4s; }
.again:hover { background: var(--gold-2); color: var(--ink); }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; background: rgba(10, 8, 6, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; }
.lb.open { opacity: 1; visibility: visible; }
.lb-stage { position: relative; width: min(92vw, 1400px); height: 80vh; height: 80svh; }
.lb-stage img, .lb-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.lb-stage video { opacity: 0; transition: opacity .5s; }
.lb-stage.playing video { opacity: 1; }
.lb-cap { position: absolute; left: 0; right: 0; bottom: 3vh; text-align: center; padding: 0 70px; }
.lb-cap .when { font-family: var(--sans); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.lb-cap .what { font-style: italic; font-size: 22px; }
.lb-btn { position: absolute; z-index: 2; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(244, 237, 225, .25); display: grid; place-items: center; transition: background .3s, border-color .3s; }
.lb-btn:hover { background: rgba(244, 237, 225, .08); border-color: var(--gold); }
.lb-btn svg { width: 18px; height: 18px; }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 36px; left: 28px; font-family: var(--sans); font-size: 11px; letter-spacing: .3em; color: var(--muted); }
@media (max-width: 700px) {
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-cap { bottom: 80px; padding: 0 16px; }
  .lb-stage { height: 70vh; }
}

[data-lb] { cursor: zoom-in; }
@media (pointer: fine) { [data-lb] { cursor: none; } }

/* ---------- movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain, .wall-col, .gold-text, .cue-line::after { animation: none !important; }
  .birth-media .frame, .espera-media, .m-day .fill { clip-path: none !important; }
  .carta-body .w { opacity: 1; }
}

/* modo sem animação (preferência do sistema) */
.reduce .h-pin { height: auto; overflow-x: auto; padding: 8vh 0; }
.reduce .h-track { position: relative; }
.reduce .espera-media { clip-path: none; }
.reduce .birth-media .frame { clip-path: none; }
.reduce .birth-media .frame img { transform: none; }
.reduce .carta-body .w { opacity: 1; }
.reduce .m-day .fill { clip-path: none; }
