/* ════════════════════════════════════════════════════════════════
   MELATI PUTIH — roncean melati menjuntai di atas hijau pinus & emas lembut
   ════════════════════════════════════════════════════════════════ */
:root {
    --pine: #0f2d24;
    --pine-2: #17463a;
    --pine-d: #081a14;
    --gold: #c4a15a;
    --gold-l: #e6cd8b;
    --ivory: #fbf9f1;
    --sage: #e9f0e4;
    --ink: #23342c;
    --ink-s: #55655b;
    --col: 480px;
    --f-t: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --f-s: 'Pinyon Script', 'Snell Roundhand', cursive;
    --f-b: 'Jost', 'Helvetica Neue', Arial, sans-serif;
    --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    font: 300 15px/1.8 var(--f-b);
    color: var(--ink);
    background: var(--pine-d);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
body.no-scroll { overflow: hidden; height: 100vh; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }
svg { display: block; }
.ico { width: 17px; height: 17px; flex: none; }

/* ── Kolom ── */
.stage { max-width: var(--col); margin: 0 auto; position: relative; overflow: hidden; background: var(--ivory); box-shadow: 0 0 70px rgba(0, 0, 0, .55); }
.sec { position: relative; padding: 78px 24px 86px; text-align: center; background: var(--ivory); overflow: hidden; }
.sec-sage { background: var(--sage); }
.sec-dark { background: radial-gradient(ellipse at 50% 0, var(--pine-2) 0%, var(--pine) 72%); color: var(--ivory); padding-top: 104px; }
.sec-in { max-width: 380px; margin: 0 auto; }
.sec > *:not(.swag-top) { position: relative; z-index: 2; }
.swag-top { position: absolute; top: 0; left: 0; width: 100%; height: auto; aspect-ratio: 480 / 52; z-index: 3; pointer-events: none; }

/* ── Untaian melati (menjuntai & bergoyang) ── */
.st { position: absolute; top: 0; width: var(--w, 40px); height: auto; pointer-events: none; z-index: 3; }
.st.s { aspect-ratio: 46 / 300; }
.st.m { aspect-ratio: 46 / 460; }
.st.l { aspect-ratio: 46 / 640; }
.st svg { width: 100%; height: 100%; }
.sw { transform-origin: 50% 0; animation: sway var(--dur, 7s) ease-in-out var(--ph, 0s) infinite; will-change: transform; }
@keyframes sway { 0%, 100% { transform: rotate(-2.2deg); } 50% { transform: rotate(2.2deg); } }
.spin { animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Butir wangi (melayang naik) ── */
.aroma { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.aroma.fixed { position: fixed; z-index: 1; opacity: 0; transition: opacity 1.6s ease; }
body.opened .aroma.fixed { opacity: 1; }
.aroma i { position: absolute; bottom: -20px; width: var(--s); height: var(--s); border-radius: 50%; background: radial-gradient(circle, rgba(255, 252, 235, .95), rgba(255, 244, 200, .35) 55%, transparent 72%); opacity: 0; animation: rise var(--d) ease-in var(--w) forwards; will-change: transform; }
@keyframes rise { 0% { transform: translate3d(0, 0, 0); opacity: 0; } 12% { opacity: .85; } 80% { opacity: .5; } 100% { transform: translate3d(var(--x), -112vh, 0); opacity: 0; } }

/* ═════════ COVER ═════════ */
.cover { position: fixed; inset: 0; z-index: 5000; overflow: hidden; display: grid; place-items: center; text-align: center; color: var(--ivory); background: radial-gradient(ellipse at 50% 36%, #1f5240 0%, #0f2d24 56%, #08150f 100%); transition: opacity 1s ease, transform 1.2s var(--ease), visibility 0s 1.2s; }
.cv-glow { position: absolute; left: 50%; top: 40%; width: 120vmax; height: 120vmax; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(230, 205, 139, .16), transparent 42%); pointer-events: none; animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
.curtain { position: absolute; top: 0; left: 50%; width: min(100%, 560px); height: 100%; transform: translateX(-50%); pointer-events: none; }
.curtain .st { left: var(--x); margin-left: calc(var(--w) / -2); transition: transform 1.5s cubic-bezier(.6, .02, .3, 1) var(--dl, 0s), opacity .9s ease calc(var(--dl, 0s) + .6s); }
.cv-in { position: relative; z-index: 4; display: flex; flex-direction: column; align-items: center; padding: 28px 22px; transition: transform 1.3s var(--ease), opacity 1s ease; }
.cv-k { font: italic 500 17px/1 var(--f-t); letter-spacing: .12em; color: var(--gold-l); margin-bottom: 14px; }
.cv-ring { position: relative; width: min(250px, 66vw); aspect-ratio: 1; margin-bottom: 20px; }
.cv-wreath { position: absolute; inset: -6%; width: 112%; height: 112%; animation: spin 120s linear infinite; }
.cv-names { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.cv-names b { font: 400 35px/1.05 var(--f-s); color: var(--ivory); text-shadow: 0 2px 16px rgba(0, 0, 0, .45); }
.cv-names i { font: italic 400 22px/1.3 var(--f-t); color: var(--gold-l); }
.cv-to { font-size: 13px; line-height: 1.7; color: #d4e0d4; margin-bottom: 20px; }
.cv-to b { display: block; margin-top: 3px; font: 500 21px/1.3 var(--f-t); color: var(--ivory); overflow-wrap: anywhere; }
.btn-open { display: inline-flex; align-items: center; gap: 10px; padding: 13px 30px; border: 1px solid var(--gold-l); border-radius: 999px; background: linear-gradient(180deg, rgba(230, 205, 139, .22), rgba(230, 205, 139, .08)); color: var(--ivory); font: 400 13px/1 var(--f-b); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; transition: background .3s, transform .3s var(--ease); -webkit-tap-highlight-color: transparent; }
.btn-open:hover { background: rgba(230, 205, 139, .3); transform: translateY(-2px); }
.btn-open .ico { width: 20px; height: 20px; animation: spin 14s linear infinite; }

/* buka: tirai melati terangkat satu per satu, lingkar memudar membesar */
.cover.s-open .curtain .st { transform: translateY(-118%); }
.cover.s-open .cv-in { transform: scale(1.12); }
.cover.s-out { opacity: 0; visibility: hidden; transform: scale(1.06); }
.cover.s-out .cv-in { opacity: 0; }

/* ═════════ HERO ═════════ */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 120px 24px 96px; text-align: center; color: var(--ivory); overflow: hidden; background: radial-gradient(ellipse at 50% 38%, #225845 0%, var(--pine) 58%, var(--pine-d) 100%); }
.hero-light { position: absolute; left: 50%; top: 42%; width: 140%; aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(230, 205, 139, .17), transparent 46%); pointer-events: none; animation: breathe 8s ease-in-out infinite; }
.hero-swag { position: absolute; top: 0; left: 0; width: 100%; height: auto; aspect-ratio: 480 / 70; z-index: 3; }
.hs { z-index: 2; }
.hs.lt { left: 3%; --w: 42px; }
.hs.rt { right: 3%; --w: 42px; }
.hero-in { position: relative; z-index: 4; display: flex; flex-direction: column; align-items: center; }
.hero-k { font: 400 12px/1 var(--f-b); letter-spacing: .42em; text-transform: uppercase; color: var(--gold-l); margin-bottom: 26px; padding-left: .42em; }
.hero-ring { position: relative; width: min(300px, 76vw); aspect-ratio: 1; margin-bottom: 30px; }
.hero-wreath { position: absolute; left: -6%; top: -6%; width: 112%; height: 112%; animation: spin 140s linear infinite; }
.hero-names { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 400; line-height: 1; }
.hero-names span { font: 400 44px/1.05 var(--f-s); color: var(--ivory); text-shadow: 0 3px 20px rgba(0, 0, 0, .45); }
.hero-names i { font: italic 400 24px/1.4 var(--f-t); color: var(--gold-l); }
.hero-date { font: 500 25px/1.2 var(--f-t); letter-spacing: .06em; color: var(--ivory); }
.hero-date small { display: block; margin-bottom: 6px; font: 400 11px/1 var(--f-b); letter-spacing: .38em; text-transform: uppercase; color: var(--gold-l); }
.hero-scroll { margin-top: 38px; font: 300 10.5px/1 var(--f-b); letter-spacing: .3em; text-transform: uppercase; color: #a9c1b2; }
.hero-scroll span { display: block; width: 1px; height: 34px; margin: 12px auto 0; background: linear-gradient(var(--gold-l), transparent); animation: drip 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* animasi pembuka isi: untaian turun, lingkar mekar dari tengah */
.hero .zi { opacity: 0; }
body.opened .hero .zi { animation: bloom 1.5s var(--ease) var(--dl, 0s) both; }
@keyframes bloom { from { opacity: 0; transform: scale(.86) translateY(14px); } to { opacity: 1; transform: none; } }
.hero .hs, .hero-swag { transform: translateY(-110%); }
body.opened .hero .hs { animation: hang 2s cubic-bezier(.2, .8, .2, 1) .1s both; }
body.opened .hero-swag { animation: hang 1.6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes hang { from { transform: translateY(-110%); } to { transform: none; } }

/* ═════════ UMUM ═════════ */
.orn-melati { width: 48px; height: 48px; padding: 9px; margin: 0 auto 18px; border-radius: 50%; background: var(--pine-2); box-shadow: 0 0 0 4px rgba(196, 161, 90, .25); }
.orn-melati.light { background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 4px rgba(230, 205, 139, .22); }
.salam { font: italic 500 20px/1.5 var(--f-t); color: var(--pine-2); margin-bottom: 14px; }
.salam.w { color: var(--gold-l); }
.body-c { font-size: 14.5px; line-height: 1.9; color: var(--ink-s); }
.body-c.w { color: #d4e0d4; margin-bottom: 18px; }
.ayat { margin: 28px 0 0; padding: 26px 8px 0; position: relative; font: italic 400 17.5px/1.85 var(--f-t); color: var(--ink); }
.ayat::before { content: ''; position: absolute; top: 0; left: 50%; width: 56px; height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.ayat cite { display: block; margin-top: 12px; font: 400 11px/1 var(--f-b); font-style: normal; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }

.sec-head { margin-bottom: 40px; }
.kicker { font: 400 11.5px/1 var(--f-b); letter-spacing: .38em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; padding-left: .38em; }
.kicker.light { color: var(--gold-l); }
.sec-title { font: 500 34px/1.15 var(--f-t); color: var(--pine); }
.sec-title.light { color: var(--ivory); }
.sec-sub { margin: 12px auto 0; max-width: 300px; font-size: 14px; color: var(--ink-s); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; border: 1px solid var(--pine-2); border-radius: 999px; background: var(--pine-2); color: var(--ivory); font: 400 12.5px/1 var(--f-b); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .3s, color .3s, transform .3s var(--ease); -webkit-tap-highlight-color: transparent; }
.btn:hover { background: var(--pine); transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--pine-2); }
.btn.ghost:hover { background: var(--pine-2); color: var(--ivory); }
.btn.full { width: 100%; padding: 15px; }
.btn[disabled] { opacity: .7; cursor: default; transform: none; }
.card { background: #fff; border: 1px solid #e3dcc2; border-radius: 20px; box-shadow: 0 18px 40px -26px rgba(15, 45, 36, .45); }

/* ── Mempelai ── */
.pair { max-width: 330px; margin: 0 auto; }
.arch { position: relative; width: 250px; height: 250px; margin: 0 auto 26px; }
.arch-ring { position: absolute; left: -7%; top: -7%; width: 114%; height: 114%; animation: spin 100s linear infinite; }
.arch-in { position: absolute; inset: 30px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #2a6652, var(--pine-d)); border: 1px solid var(--gold); box-shadow: inset 0 0 40px rgba(0, 0, 0, .5), 0 0 0 5px rgba(230, 205, 139, .12); }
.mono { font: 400 92px/1 var(--f-s); color: var(--gold-l); padding-top: 8px; }
.p-name { font: 500 33px/1.2 var(--f-t); color: var(--ivory); margin-bottom: 8px; overflow-wrap: anywhere; }
.p-par { font-size: 13.5px; line-height: 1.8; color: #cfdccf; }
.p-par b { font-weight: 500; color: var(--ivory); }
.amp { margin: 30px auto; width: 34px; height: 34px; opacity: .9; }
.amp svg { width: 100%; height: 100%; animation: spin 20s linear infinite; }

/* ── Filosofi ── */
.phi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 420px; margin: 0 auto; }
.phi-i svg { width: 56px; height: 56px; padding: 13px; margin: 0 auto 14px; border-radius: 50%; background: var(--pine-2); box-shadow: 0 0 0 4px rgba(196, 161, 90, .25); }
.phi-i h3 { font: 600 22px/1.2 var(--f-t); color: var(--pine); margin-bottom: 6px; }
.phi-i p { font-size: 12.5px; line-height: 1.7; color: var(--ink-s); }

/* ── Acara ── */
.ev { position: relative; max-width: 380px; margin: 0 auto 42px; padding: 44px 26px 30px; }
.ev:last-child { margin-bottom: 0; }
.ev-orn { position: absolute; top: -24px; left: 50%; width: 48px; height: 48px; margin-left: -24px; padding: 9px; border-radius: 50%; background: var(--pine-2); box-shadow: 0 0 0 5px var(--sage), 0 8px 14px -6px rgba(15, 45, 36, .5); }
.ev h3 { font: 500 29px/1.2 var(--f-t); color: var(--pine); margin-bottom: 16px; }
.ev ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 11px; font-size: 14px; color: var(--ink-s); }
.ev li { display: flex; align-items: flex-start; justify-content: center; gap: 10px; text-align: left; line-height: 1.5; }
.ev li .ico { margin-top: 2px; color: var(--gold); }

/* ── Hitung mundur ── */
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 34px 0 28px; }
.cd .dm { position: relative; width: 66px; height: 66px; margin: 0 auto; border-radius: 50%; border: 1px solid var(--gold); background: rgba(255, 255, 255, .05); display: grid; place-items: center; box-shadow: 0 0 0 4px rgba(230, 205, 139, .1); }
.cd .dm.tick { animation: tickPulse .5s ease; }
@keyframes tickPulse { 0% { transform: scale(1); } 40% { transform: scale(1.07); background: rgba(230, 205, 139, .22); } 100% { transform: scale(1); } }
.cd b { font: 500 26px/1 var(--f-t); font-variant-numeric: tabular-nums; color: var(--ivory); }
.cd span { display: block; margin-top: 14px; font: 400 10px/1 var(--f-b); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-l); }
.cd-note { font: italic 400 17px/1.5 var(--f-t); color: #d4e0d4; }

/* ── Lokasi ── */
.loc { max-width: 380px; margin: 0 auto; }
.map { height: 220px; border: 1px solid var(--gold); border-radius: 110px 110px 16px 16px; overflow: hidden; margin-bottom: 22px; z-index: 0; }
.loc-name { font: 500 27px/1.25 var(--f-t); color: var(--pine); margin-bottom: 6px; }
.loc-addr { font-size: 14px; color: var(--ink-s); margin-bottom: 20px; }

/* ── Kisah ── */
.tline { position: relative; max-width: 380px; margin: 0 auto; text-align: left; }
.tline::before { content: ''; position: absolute; left: 17px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--gold), rgba(196, 161, 90, .2)); }
.tl-i { position: relative; padding-left: 54px; margin-bottom: 34px; }
.tl-i:last-child { margin-bottom: 0; }
.tl-dot { position: absolute; left: 0; top: 0; width: 35px; height: 35px; border-radius: 50%; background: var(--pine-2); display: grid; place-items: center; box-shadow: 0 0 0 4px var(--sage); }
.tl-dot svg { width: 25px; height: 25px; }
.tl-n { font: 400 10.5px/1 var(--f-b); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.tl-b h3 { margin: 6px 0 6px; font: 600 24px/1.2 var(--f-t); color: var(--pine); }
.tl-b p { font-size: 14px; line-height: 1.8; color: var(--ink-s); }

/* ── Galeri ── */
.gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 400px; margin: 0 auto; }
.gal-i { position: relative; display: block; padding: 0; border: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--sage); cursor: pointer; }
.gal-i.g0 { grid-column: 1 / -1; aspect-ratio: 4 / 3; border-radius: 120px 120px 14px 14px; }
.gal-i img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gal-i:hover img { transform: scale(1.05); }
.gal-i.ph { cursor: default; display: grid; place-items: center; background: linear-gradient(160deg, #dfe9d9, #c9dac7); }
.gal-i.ph svg { width: 64px; height: 64px; padding: 14px; border-radius: 50%; background: var(--pine-2); opacity: .9; }

/* ── Kado ── */
.gift-box { max-width: 420px; margin: 0 auto; border: 1px solid #d3d9c2; border-radius: 20px; background: #fffef8; overflow: hidden; text-align: left; }
.gift-wrap .gs-heading h2 { font-family: var(--f-t) !important; font-weight: 600 !important; color: var(--pine) !important; }
.gift-wrap .gs-heading h2::after { background: var(--gold) !important; }
.gift-wrap .gs-card, .gift-wrap .gs-bank-card { border: 1px solid #e3dcc2 !important; border-radius: 12px !important; }
.gift-wrap .gs-btn, .gift-wrap .gs-bank-copy { border-radius: 999px !important; font-family: var(--f-b) !important; }
.gift-wrap .gs-btn-buy { background: var(--pine-2) !important; color: var(--ivory) !important; }
.gift-wrap .gs-bank-logo { background: var(--sage) !important; color: var(--pine-2) !important; }

/* ── RSVP ── */
.form { max-width: 400px; margin: 0 auto; padding: 28px 24px; text-align: left; }
.f-l { display: block; margin: 0 0 7px; font: 400 11.5px/1 var(--f-b); letter-spacing: .2em; text-transform: uppercase; color: var(--pine-2); }
.f-in { width: 100%; padding: 12px 14px; margin-bottom: 20px; border: 1px solid #d9d4ba; border-radius: 10px; background: #fffef9; color: var(--ink); font: 300 15px/1.5 var(--f-b); outline: none; transition: border-color .25s, box-shadow .25s; }
.f-in:focus { border-color: var(--pine-2); box-shadow: 0 0 0 3px rgba(23, 70, 58, .14); }
textarea.f-in { resize: vertical; min-height: 96px; }
.choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.ch { position: relative; }
.ch input { position: absolute; opacity: 0; pointer-events: none; }
.ch span { display: block; padding: 10px 4px; text-align: center; font-size: 12.5px; border: 1px solid #d9d4ba; border-radius: 10px; background: #fffef9; color: var(--ink-s); cursor: pointer; transition: all .25s; }
.ch input:checked + span { background: var(--pine-2); border-color: var(--pine-2); color: var(--ivory); }
.ch input:focus-visible + span { box-shadow: 0 0 0 3px rgba(23, 70, 58, .35); }
.btn.full.sending { opacity: .75; }
.btn.full.sent { background: var(--gold); border-color: var(--gold); color: var(--pine-d); }

.wish-head { display: flex; align-items: center; justify-content: space-between; max-width: 400px; margin: 42px auto 14px; }
.wish-head h3 { font: 600 25px/1.2 var(--f-t); color: var(--pine); }
.wh-live { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-s); }
.wh-live i { width: 7px; height: 7px; border-radius: 50%; background: #5ab07c; animation: livePulse 1.8s ease-in-out infinite; }
@keyframes livePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(90, 176, 124, .55); } 50% { box-shadow: 0 0 0 6px rgba(90, 176, 124, 0); } }
.wishes { max-width: 400px; margin: 0 auto; display: grid; gap: 12px; max-height: 480px; overflow-y: auto; padding: 2px 4px 2px 0; text-align: left; overscroll-behavior: contain; }
.wish-item { --av: var(--pine-2); display: flex; gap: 12px; padding: 14px; background: #fff; border: 1px solid #e6e0c8; border-radius: 16px; }
.wish-item.new { animation: wishIn .7s var(--ease) both; }
@keyframes wishIn { from { opacity: 0; transform: translateY(-14px) scale(.97); } to { opacity: 1; transform: none; } }
.wish-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--av); color: var(--ivory); font: 600 19px/1 var(--f-t); }
.wish-body { min-width: 0; flex: 1; }
.wish-header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wish-name { font: 500 14.5px/1.3 var(--f-b); color: var(--pine); overflow-wrap: anywhere; }
.wish-badge { padding: 2px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 400; }
.wish-badge.hadir { background: #dcecdc; color: #2f6b42; }
.wish-badge.tidak { background: #f3d9d9; color: #96403f; }
.wish-badge.ragu  { background: #f3e8c4; color: #7d6118; }
.wish-message { margin-top: 4px; font-size: 14px; line-height: 1.65; color: var(--ink-s); overflow-wrap: anywhere; }
.wish-time { display: block; margin-top: 6px; font-size: 11.5px; color: #8d9a90; }
.wish-empty { text-align: center; padding: 20px; color: #8d9a90; font: italic 400 17px/1.5 var(--f-t); }

/* ── Penutup ── */
.end { position: relative; padding: 130px 24px 56px; text-align: center; color: var(--ivory); overflow: hidden; background: radial-gradient(ellipse at 50% 0, var(--pine-2) 0%, var(--pine-d) 80%); }
.end .hs.lt { left: 3%; --w: 36px; }
.end .hs.rt { right: 3%; --w: 36px; }
.end .hs { opacity: .9; }
.end-in { position: relative; z-index: 4; max-width: 340px; margin: 0 auto; }
.names-end { font: 400 48px/1.15 var(--f-s); color: var(--ivory); margin: 10px 0 26px; text-shadow: 0 3px 16px rgba(0, 0, 0, .4); }
.names-end i { display: block; font: italic 400 22px/1.3 var(--f-t); color: var(--gold-l); }
.fam { margin: 0 0 28px; display: grid; gap: 14px; font-size: 14px; color: #d4e0d4; }
.fam span { display: block; margin-bottom: 2px; font: 400 10.5px/1.3 var(--f-b); letter-spacing: .26em; text-transform: uppercase; color: var(--gold-l); }
.end-credit { font-size: 12px; color: #8fa89a; }

/* ── Musik & toast ── */
.music-toggle-btn { position: fixed; top: 12px; right: max(12px, calc(50vw - var(--col) / 2 + 12px)); z-index: 1002; width: 40px; height: 40px; padding: 0; border: 1px solid var(--gold-l); border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: var(--pine); color: var(--gold-l); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .6); opacity: 0; pointer-events: none; transition: opacity .6s ease; }
body.opened .music-toggle-btn { opacity: 1; pointer-events: auto; }
.music-toggle-btn svg { width: 17px; height: 17px; }
.music-toggle-btn.playing { animation: spin 5s linear infinite; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 8000; transform: translate(-50%, 24px); padding: 11px 22px; border-radius: 999px; background: var(--pine); color: var(--gold-l); border: 1px solid var(--gold); font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── Reveal ── */
[data-reveal] { opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .9s var(--ease) var(--dl, 0s), transform .9s var(--ease) var(--dl, 0s); }
[data-reveal].shown { opacity: 1; transform: none; }

/* ── Lightbox ── */
.gallery-lightbox { display: none; position: fixed; inset: 0; z-index: 7000; align-items: center; justify-content: center; background: rgba(6, 22, 16, .95); opacity: 0; transition: opacity .3s; }
.lb-img-wrap img { max-width: 92vw; max-height: 80vh; border: 4px solid var(--ivory); border-radius: 6px; }
.lb-close, .lb-prev, .lb-next { position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; background: var(--pine); color: var(--gold-l); font: 500 22px/1 var(--f-t); cursor: pointer; }
.lb-close { top: 18px; right: 18px; font-size: 16px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: var(--ivory); font-size: 14px; letter-spacing: .1em; }

@media (max-height: 700px) {
    .cv-ring { width: min(200px, 56vw); margin-bottom: 14px; }
    .cv-names b { font-size: 32px; }
    .cv-to { margin-bottom: 14px; }
}
@media (max-width: 360px) {
    .hero-names span { font-size: 38px; }
    .cd .dm { width: 56px; height: 56px; }
    .cd b { font-size: 21px; }
    .phi-i p { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    [data-reveal] { opacity: 1; transform: none; }
    .hero .zi { opacity: 1; }
    .hero .hs, .hero-swag { transform: none; }
    .aroma { display: none; }
}
