/* ================= BORDEAUX THEME ================= */
:root {
    --wine: #3a1013;
    --wine-2: #4a171b;
    --wine-deep: #2b0b0e;
    --green: #0f2a1d;
    --green-2: #153626;
    --paper: #ebe5d6;
    --paper-2: #e2dac6;
    --cream: #f1ead2;
    --ink: #2a1a14;
    --ink-green: #12301f;
    --f-serif: 'Cormorant Garamond', Georgia, serif;
    --f-disp: 'Playfair Display', Georgia, serif;
    --f-script: 'Pinyon Script', cursive;
    --f-sans: 'DM Sans', system-ui, sans-serif;
}


/* =========================================================
   BASE
========================================================= */
html { scroll-behavior: smooth; overscroll-behavior-y: none; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    min-height: 100vh;
    background: radial-gradient(circle at 12% 10%, rgba(120, 40, 40, .3), transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(15, 42, 29, .55), transparent 34%),
        linear-gradient(135deg, #1a0a0c, #2c1114 50%, #1a0a0c);
    color: var(--cream);
    font-family: var(--f-sans);
    -webkit-font-smoothing: antialiased;
    overscroll-behavior-y: none;
}
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
button { color: inherit; border: none; background: none; cursor: pointer; }
a { color: inherit; }

/* =========================================================
   PHONE SHELL
========================================================= */
#phoneShell { position: relative; height: min(900px, calc(100dvh - 42px)); width: auto; aspect-ratio: 976/1612; margin: 0 auto; }
#appFrame {
    position: absolute; top: 3.15%; left: 12.60%; width: 74.49%; height: 92.87%;
    overflow-y: auto; overflow-x: hidden; scrollbar-width: none;
    background: var(--wine); border-radius: 9.42%/4.58%;
    transform: translateZ(0); z-index: 1; container-type: size;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}
#appFrame::-webkit-scrollbar { display: none; }
#appFrame.locked { overflow: hidden; }
.phone-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; z-index: 10; }

@media (min-width: 600px) {
    body { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 30px 25px; overflow: hidden; }
    #phoneShell { width: min(430px, calc((100dvh - 42px) * 976 / 1612)); height: auto; aspect-ratio: 976/1612; margin: 0 auto; }
}
@media (max-width: 599px) {
    html, body { width: 100%; height: 100%; margin: 0; padding: 0; overflow-x: hidden; overflow-y: auto; }
    #phoneShell { width: 100vw; max-width: 100vw; height: var(--app-vh, 100svh); min-height: 100svh; margin: 0; aspect-ratio: auto; }
    #appFrame { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; }
    .phone-frame { display: none; }
}

/* semua ukuran tema memakai em, skala mengikuti lebar frame (cqw) */
.cover, #invitationContent, .dock-anchor, .film { font-size: clamp(11px, 4.1cqw, 17px); }

.scroll-progress { position: sticky; top: 0; left: 0; width: 100%; transform: scaleX(0); transform-origin: left center; will-change: transform; height: 3px; z-index: 100; pointer-events: none; background: linear-gradient(90deg, #e0a82e, var(--cream)); }

#invitationContent > section { min-width: 0; }

/* ---------- shared ---------- */
section { position: relative; }
.paper {
    background-color: var(--paper);
    background-image: radial-gradient(rgba(0, 0, 0, .05) 1px, transparent 1.4px), radial-gradient(rgba(120, 100, 70, .05) 1px, transparent 1.4px);
    background-size: 0.312em 0.312em, 0.562em 0.562em; background-position: 0 0, 2px 3px;
    color: var(--ink);
}
.green { background: var(--green); color: var(--cream); }
.wine { background: var(--wine); color: var(--cream); }

[data-reveal] { opacity: 0; transform: translateY(1.625em); transition: opacity .9s cubic-bezier(.16, .8, .24, 1), transform .9s cubic-bezier(.16, .8, .24, 1); }
[data-reveal].in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    [data-reveal] { opacity: 1 !important; transform: none !important; }
    #appFrame { scroll-behavior: auto; }
}

.btn-cream { display: inline-block; background: var(--paper); color: var(--ink); font-size: .74em; padding: .7em 1.4em; border-radius: 3px; text-decoration: none; letter-spacing: .02em; box-shadow: 0 0.375em 1em rgba(0, 0, 0, .3); }
.script-title { font-family: var(--f-script); font-weight: 400; font-size: 2.3em; line-height: 1.1; color: #e8c7c0; }
.script-title span { font-family: var(--f-serif); font-size: .52em; margin: 0 .3em; }
.script-title.big { font-size: 2.6em; }
.script-title.big span { font-size: .46em; }
.verse { font-family: var(--f-serif); font-style: italic; font-size: .82em; line-height: 1.6; text-align: center; color: #e5c9c4; max-width: 18.75em; margin: 0 auto; }
.verse cite { display: block; margin-top: .6em; font-style: normal; font-size: .88em; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.verse-wrap { display: flex; flex-direction: column; align-items: center; gap: .7em; width: 100%; }
.verse-ar { font-family: 'Amiri', 'Scheherazade New', 'Noto Naskh Arabic', serif; font-size: 1.75em; line-height: 1.8; text-align: center; color: #f1d9d4; }

/* ---------- intro ---------- */
.intro > .sec-body { padding: 2.5em 1.125em 1.875em; display: flex; flex-direction: column; align-items: center; gap: 2.25em; }
.stitched-card { position: relative; width: 100%; padding: 1.625em 1.25em 1.875em; background: var(--paper); color: var(--ink); text-align: center; border-radius: 0.25em; box-shadow: 0 0.875em 2.125em rgba(0, 0, 0, .45); }
.stitched-card::before { content: ''; position: absolute; inset: 0.438em; border: 1px dashed rgba(60, 40, 30, .35); border-radius: 2px; pointer-events: none; }
.mini-photo { display: flex; width: 4.875em; height: 5.375em; margin: 0 auto 1.75em; border: 3px solid #fff; box-shadow: 0 2px 0.5em rgba(0, 0, 0, .3); }
.mini-photo img { width: 50%; height: 100%; object-fit: cover; filter: grayscale(1); }
.we-are { font-size: .62em; letter-spacing: .3em; text-transform: uppercase; }
.getting { font-family: var(--f-serif); font-weight: 500; font-size: 3.1em; letter-spacing: .06em; text-transform: uppercase; line-height: 1; margin-top: .35em; }
.married { font-family: var(--f-script); font-size: 2.6em; line-height: 1; margin-top: -.15em; }
.tiny-date { font-size: .6em; letter-spacing: .22em; margin-top: 1em; }

.lace { position: relative; width: 100%; max-width: 18.75em; }
.lace svg { width: 100%; }
.lace ellipse { fill: none; stroke: #cfc3ad; }
.lace .l-dots { stroke-width: 6; stroke-dasharray: .5 8; stroke-linecap: round; }
.lace .l-dots.thin { stroke-width: 3.5; stroke-dasharray: .5 5; }
.lace .l-line { stroke-width: 1.2; }
.lace span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-serif); font-size: 1.05em; color: #e9dfca; background: radial-gradient(ellipse 36% 26% at 50% 50%, rgba(80, 60, 55, .7), transparent 70%); }
.honour { font-size: .6em; letter-spacing: .22em; text-transform: uppercase; text-align: center; line-height: 2; color: #eadfc9; }

/* ---------- event ---------- */
.event > .sec-body { padding: 3.5em 1.25em 3.75em; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.875em; }
.day { font-family: var(--f-serif); font-size: 1.5em; font-weight: 600; letter-spacing: .04em; }
.date-boxes { display: flex; align-items: center; gap: 0.625em; margin-bottom: 1.125em; }
.date-boxes span { width: 1.848em; height: 2.12em; border: 1px solid rgba(241, 234, 210, .5); display: grid; place-items: center; font-family: var(--f-serif); font-size: 2.3em; font-weight: 500; }
.date-boxes .arch { height: 2.609em; width: 2.12em; border-radius: 1.087em 1.087em .15em .15em; border: 3px double rgba(241, 234, 210, .7); }

/* detail acara: kartu kertas bersih */
.ev-list { width: 100%; display: flex; flex-direction: column; gap: .9em; margin: .2em 0 1.2em; }
.ev-card { position: relative; padding: 1.5em 1.2em 1.4em; text-align: center; border-radius: .3em; box-shadow: 0 .9em 2em rgba(0, 0, 0, .45); }
.ev-card::before { content: ''; position: absolute; inset: .4em; border: 1px solid rgba(60, 40, 30, .3); pointer-events: none; }
.ev-tag { font-size: .55em; letter-spacing: .3em; text-transform: uppercase; opacity: .7; }
.ev-card h3 { font-family: var(--f-disp); font-weight: 700; font-size: 1.5em; line-height: 1.15; margin: .25em 0 0; color: var(--ink); }
.ev-line { width: 2.2em; height: 1px; background: var(--wine); margin: .75em auto; }
.ev-time { font-family: var(--f-serif); font-weight: 600; font-size: 1.5em; line-height: 1.1; }
.ev-time small { font-family: var(--f-sans); font-size: .5em; font-weight: 500; letter-spacing: .2em; margin-left: .2em; }
.ev-date { font-size: .66em; letter-spacing: .08em; opacity: .8; margin-top: .45em; }

.loc-title { font-family: var(--f-serif); font-weight: 500; font-size: 2.1em; margin-top: 0.375em; }
.loc-sub { font-family: var(--f-serif); font-style: italic; font-size: 1.1em; }
.loc-addr { font-size: .66em; line-height: 1.7; opacity: .9; }

.count-grid { display: flex; gap: 0.5em; margin-top: 1.125em; }
.count-grid div { width: 3.875em; padding: 0.5em 0 0.438em; background: #b9c0b4; color: #1c2a20; border-radius: 0.375em; box-shadow: 0 0 0 2px rgba(255, 255, 255, .15) inset, 0 0.25em 0.625em rgba(0, 0, 0, .3); }
.count-grid strong { display: block; font-size: 1.15em; font-weight: 600; }
.count-grid span { font-size: .52em; letter-spacing: .04em; }

.dress { margin-top: 1.625em; }
.dress h3 { font-family: var(--f-serif); font-style: italic; font-weight: 500; font-size: 1.15em; margin-bottom: .6em; }
.dress p { font-size: .66em; line-height: 1.7; opacity: .92; }
.dress b { font-weight: 700; }
.swatches { display: grid; grid-template-columns: repeat(5, 2.75em); gap: 0.75em 0.875em; justify-content: center; margin-top: 1.25em; }
.swatches i { width: 2.75em; height: 2.75em; border-radius: 50%; box-shadow: 0 3px 0.5em rgba(0, 0, 0, .35); }

/* ---------- story / gallery ---------- */
.story > .sec-body, .gallery > .sec-body { padding: 1.25em 0 3.125em; display: flex; flex-direction: column; align-items: center; gap: 2.25em; }
.envelope-photo { width: 78%; text-align: center; margin-top: 1.25em; }
.ep-card { background: #e5e2d6; padding: 2.375em 0.875em 0.875em; border-radius: 0.25em 0.25em 0 0; position: relative; transform: rotate(-3deg); box-shadow: 0 0.875em 1.875em rgba(0, 0, 0, .45); clip-path: polygon(0 0, 50% 0.75em, 100% 0, 100% 100%, 0 100%); }
.ep-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.envelope-photo figcaption { margin-top: 1.125em; font-family: var(--f-disp); font-style: italic; font-weight: 700; font-size: 1.1em; color: #b0302f; line-height: 1.3; }
.envelope-photo figcaption em { display: block; font-family: var(--f-sans); font-size: .56em; font-weight: 500; font-style: normal; letter-spacing: .08em; color: var(--cream); margin-top: .5em; opacity: .8; }
.story-copy { padding: 0 1.75em; font-family: var(--f-serif); font-size: .95em; line-height: 1.7; text-align: center; opacity: .95; }

.m-item { overflow: hidden; background: #000; position: relative; }
.m-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.m-item:active img { transform: scale(1.05); }

.carousel { width: 100%; padding: 0 0.625em; }
.car-frame { position: relative; padding: 1em; background: linear-gradient(145deg, #1d4a35, #0c2418); border: 2px solid #2e5a44; box-shadow: inset 0 0 0 0.312em #0f2a1d, inset 0 0 0 0.375em rgba(241, 234, 210, .25), 0 0.625em 1.625em rgba(0, 0, 0, .4); }
.car-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.car-track::-webkit-scrollbar { display: none; }
.car-track img { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 4/5; object-fit: cover; }
.car-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 1.44em; height: 1.44em; border-radius: 50%; background: rgba(255, 255, 255, .85); color: var(--ink); font-size: 1.3em; line-height: 1; display: grid; place-items: center; }
.car-btn.prev { left: 1.375em; } .car-btn.next { right: 1.375em; }

.stack { display: flex; flex-direction: column; gap: 0.625em; width: 100%; padding: 0 0.625em; }
.m-item.wide { aspect-ratio: 4/3; }

/* ---------- gift ---------- */
.gift > .sec-body { padding: 3.125em 1.125em 3.125em; display: flex; flex-direction: column; align-items: center; gap: 1.625em; text-align: center; }
.gift-card { position: relative; width: 100%; padding: 2.2em 1.4em 2em; background: linear-gradient(160deg, var(--wine-2), var(--wine-deep)); color: #fff; border-radius: 1em; box-shadow: 0 .8em 2em rgba(60, 20, 20, .4); text-align: center; }
.gift-card::before { content: ''; position: absolute; inset: .5em; border: 1px dashed rgba(241, 234, 210, .35); border-radius: .65em; pointer-events: none; }
.script-sub { font-family: var(--f-script); font-size: 1.9em; color: #e8c7c0; margin-top: .2em; }
.house { width: 4.2em; margin: .9em auto .7em; color: #e8c7c0; }
.gift-rule { width: 2.4em; height: 1px; background: rgba(232, 199, 192, .6); margin: .9em auto .8em; }
.gift-name { font-family: var(--f-serif); font-weight: 600; font-size: 1.2em; letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.gift-addr { font-size: .66em; letter-spacing: .14em; text-transform: uppercase; line-height: 1.9; margin-top: .8em; color: rgba(255, 255, 255, .92); }
.gift-lede { font-size: .72em; line-height: 1.8; opacity: .88; max-width: 20em; }
.bank { display: flex; flex-direction: column; align-items: center; gap: 0.5em; }
.bank-tag { font-size: .85em; letter-spacing: .1em; }
.bank-pill { display: flex; align-items: center; gap: 0.75em; background: #fff; color: #222; padding: 0.625em 0.875em; border-radius: 999px; min-width: 14.375em; justify-content: space-between; box-shadow: 0 0.375em 1em rgba(0, 0, 0, .35); }
.bank-pill b { font-weight: 600; font-size: .95em; letter-spacing: .04em; }
.copy-btn { color: #e0a82e; font-size: 1.2em; line-height: 1; }
.bank small { font-size: .66em; letter-spacing: .06em; opacity: .9; }

/* ---------- wishes ---------- */
.wishes > .sec-body { padding: 1.875em 1.125em 2.5em; display: flex; flex-direction: column; align-items: center; gap: 1.125em; border-top: 1px solid rgba(241, 234, 210, .08); }
.wishes-lede { font-size: .7em; line-height: 1.8; text-align: center; opacity: .9; }
.wish-form { width: 100%; display: flex; flex-direction: column; gap: 0.375em; font-size: .72em; }
.wish-form label { opacity: .85; margin-top: 0.375em; }
.wish-form input, .wish-form select, .wish-form textarea { width: 100%; background: #f3f2ee; border: 0; border-radius: 0.75em; padding: 0.625em 0.75em; font: inherit; font-size: 1.08em; color: #333; outline: none; }
.wish-form textarea { resize: vertical; }
.form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 0.625em; margin-top: 0.625em; }
.btn-ghost { border: 1px solid #e0a82e; color: #e0a82e; border-radius: 999px; padding: .4em .9em; font-size: .72em; }
.btn-send { border: 1px solid rgba(241, 234, 210, .6); border-radius: 999px; padding: .4em 1.3em; font-size: .72em; }
.form-msg { min-height: 1em; font-size: .7em; text-align: right; color: #e8c7c0; }

/* kotak ucapan: transparan, tinggi dibatasi, isi di-scroll di dalam kotak */
.wish-list { width: 100%; flex: 0 0 auto; background: transparent; border: 1px solid rgba(241, 234, 210, .2); border-radius: .9em; padding: .7em; display: flex; flex-direction: column; gap: .6em;
    max-height: 22em; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(241, 234, 210, .35) transparent; }
.wish-list::-webkit-scrollbar { width: 4px; }
.wish-list::-webkit-scrollbar-thumb { background: rgba(241, 234, 210, .35); border-radius: 4px; }
.wish-list > .wish { flex: none; }
.wish { background: rgba(241, 234, 210, .07); border: 1px solid rgba(241, 234, 210, .14); color: var(--cream); border-radius: .75em; padding: .7em .8em; text-align: left; animation: pop .5s ease; }
.wish header { display: flex; align-items: center; gap: .55em; flex-wrap: wrap; }
.wish .av { flex: none; width: 2.2em; height: 2.2em; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-disp); font-weight: 700; font-size: .85em; color: var(--wine-deep); background: linear-gradient(145deg, #f1d9d4, #c9a05a); }
.wish .who { display: flex; flex-direction: column; min-width: 0; flex: 1 1 6em; }
.wish .who b { font-family: var(--f-serif); font-weight: 700; font-size: 1.05em; line-height: 1.15; overflow-wrap: anywhere; }
.wish time { font-size: .58em; opacity: .6; letter-spacing: .04em; margin-top: .2em; }
.chip { margin-left: auto; white-space: nowrap; font-size: .56em; font-style: normal; letter-spacing: .06em; border: 1px solid rgba(232, 199, 192, .5); border-radius: 999px; padding: .25em .85em; color: #e8c7c0; }
.wish p { font-size: .82em; line-height: 1.6; margin-top: .6em; opacity: .92; overflow-wrap: anywhere; }
@keyframes pop { from { opacity: 0; transform: translateY(0.625em) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- thank you ---------- */
.thanks > .sec-body { padding: 3.125em 1.375em 2.25em; display: flex; flex-direction: column; align-items: center; gap: 1.5em; }
.note { position: relative; width: 100%; background: var(--paper); color: var(--ink); padding: 2.5em 1.375em 1.625em; text-align: center; box-shadow: 0 0.875em 2.125em rgba(0, 0, 0, .5); transform: rotate(.6deg); }
.clip { position: absolute; top: -14px; left: 1.375em; width: 1em; height: 2.875em; border: 2px solid #9a9a9a; border-radius: 0.625em; }
.clip::after { content: ''; position: absolute; left: 3px; top: 0.5em; width: 0.375em; height: 1.875em; border: 2px solid #9a9a9a; border-radius: 0.375em; }
.note-top { font-size: .5em; letter-spacing: .22em; text-transform: uppercase; }
.note h2 { font-family: var(--f-script); font-weight: 400; font-size: 3.1em; margin: .5em 0 1em; }
.note-body { border: 1px solid rgba(60, 40, 30, .45); padding: 1.375em 1em; }
.note-body p { font-family: var(--f-serif); font-style: italic; font-size: .9em; line-height: 1.7; }
.note-body p + p { margin-top: 1em; }
.note-with { font-size: .5em; letter-spacing: .22em; text-transform: uppercase; margin-top: 1.125em; }
.note-mono { font-family: var(--f-script); font-size: 2.6em; line-height: 1; margin-top: .3em; }
.note-mono i { font-size: .54em; margin: 0 2px; }

.social-row { display: flex; gap: 0.75em; }
.social-row a { width: 2.125em; height: 2.125em; display: grid; place-items: center; border: 1px solid rgba(241, 234, 210, .4); border-radius: 50%; color: var(--cream); }
.colophon { font-size: .6em; letter-spacing: .14em; text-transform: uppercase; opacity: .7; text-align: center; }
.copyright { font-size: .58em; opacity: .5; text-align: center; }

/* ---------- floating buttons: musik kiri-bawah, atas/bawah kanan-bawah ---------- */
.dock-anchor { position: sticky; bottom: 0; height: 0; z-index: 100; pointer-events: none; }
.fab { position: absolute; width: 2.8em; height: 2.8em; border-radius: 50%; background: rgba(255, 255, 255, .96); color: #333; display: grid; place-items: center; line-height: 1;
    box-shadow: 0 .3em 1em rgba(0, 0, 0, .4); opacity: 0; visibility: hidden; transform: translateY(.8em); pointer-events: none; -webkit-tap-highlight-color: transparent;
    transition: opacity .35s ease, visibility .35s ease, transform .35s ease; }
.fab .ico { font-size: 1.25em; }
.dock-anchor.show .fab { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.dock-anchor.show .fab:active { transform: scale(.92); }
.dock-anchor.show .fab.off { opacity: .35; pointer-events: none; }
.fab-music { left: 1.5em; bottom: 2.2em; }
.fab-down { right: 1.5em; bottom: 2.2em; }
.fab-up { right: 1.5em; bottom: 5.4em; }
.fab.is-playing { color: #1d7a4a; }
.fab.is-playing .ico { display: inline-block; animation: bob .8s ease-in-out infinite alternate; }
@keyframes bob { from { transform: translateY(-1px) rotate(-8deg); } to { transform: translateY(1px) rotate(8deg); } }

/* ---------- lightbox (menempel pada area layar HP) ---------- */
.lightbox { position: absolute; top: 3.15%; left: 12.6%; width: 74.49%; height: 92.87%; border-radius: 9.42%/4.58%; background: rgba(0, 0, 0, .94); display: flex; align-items: center; justify-content: center; z-index: 5; padding: 1em; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-height: 86%; max-width: 100%; object-fit: contain; border: 4px solid #ded5c5; }
.lightbox-close { position: absolute; top: 1em; right: 1.1em; width: 1.7em; height: 1.7em; border: 1px solid rgba(255, 255, 255, .45); color: #fff; font-size: 1.3em; line-height: 1; }
@media (max-width: 599px) { .lightbox { inset: 0; top: 0; left: 0; width: 100%; height: 100%; border-radius: 0; } }

/* =========================================================
   INTERACTIVE LAYER — scroll animations, parallax, particles
   (semua ukuran em; --c = posisi scroll -1..1 dari JS)
========================================================= */

/* ---------- reveal variants ---------- */
[data-reveal] { transition-property: opacity, transform, filter; transition-delay: var(--d, 0s); }
[data-reveal="left"]   { transform: translateX(-2.6em); }
[data-reveal="right"]  { transform: translateX(2.6em); }
[data-reveal="zoom"]   { transform: scale(.82); }
[data-reveal="blur"]   { transform: translateY(1em); filter: blur(.7em); }
[data-reveal="flip"]   { transform: perspective(60em) rotateX(24deg) translateY(2.4em); transform-origin: 50% 100%; }
[data-reveal="rotate"] { transform: rotate(-7deg) translateY(2.4em) scale(.94); }
[data-reveal].in-view  { transform: none; filter: none; }

/* kata demi kata (diisi JS) */
[data-reveal="words"] { opacity: 1; transform: none; transition: none; }
.w { display: inline-block; opacity: 0; transform: translateY(.7em); filter: blur(.25em);
     transition: opacity .6s ease, transform .6s cubic-bezier(.16, .8, .24, 1), filter .6s ease;
     transition-delay: calc(var(--i, 0) * 28ms); }
[data-reveal="words"].in-view .w { opacity: 1; transform: none; filter: none; }

/* foto: tirai (clip) + zoom-out + parallax */
[data-reveal^="clip"] { opacity: 1; transform: none; filter: none; transition: none; }
.ph { position: absolute; inset: 0; overflow: hidden; }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; scale: 1.5;
          transform: translate3d(0, calc(var(--c, 0) * var(--k, -5%)), 0);
          transition: scale 1.8s cubic-bezier(.16, .8, .24, 1) var(--d, 0s); }
[data-reveal^="clip"] .ph { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s cubic-bezier(.77, 0, .18, 1) var(--d, 0s); }
[data-reveal="clip-up"] .ph    { clip-path: inset(100% 0 0 0); }
[data-reveal="clip-left"] .ph  { clip-path: inset(0 100% 0 0); }
[data-reveal="clip-right"] .ph { clip-path: inset(0 0 0 100%); }
[data-reveal^="clip"].in-view .ph { clip-path: inset(0 0 0 0); }
[data-reveal^="clip"].in-view .ph img { scale: 1.16; }

/* grup bertingkat */
[data-reveal-group] > * { opacity: 0; transform: translateY(1.2em) scale(.9);
    transition: opacity .6s ease, transform .7s cubic-bezier(.16, .8, .24, 1); transition-delay: calc(var(--i, 0) * 70ms); }
[data-reveal-group].in-view > * { opacity: 1; transform: none; }

/* ---------- cover entrance ---------- */
@keyframes fadeUp   { from { opacity: 0; transform: translateY(1.2em); } to { opacity: 1; transform: none; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-1em); } to { opacity: 1; transform: none; } }
@keyframes ovalIn   { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
@keyframes kenburns { from { scale: 1; } to { scale: 1.14; } }
@keyframes ring     { 0% { box-shadow: 0 0 0 0 rgba(241, 234, 210, .5); } 100% { box-shadow: 0 0 0 1em rgba(241, 234, 210, 0); } }
.btn-open    { animation: fadeUp .9s ease 1.5s both, ring 2.4s ease-out 2.6s infinite; }

/* ---------- partikel debu emas ---------- */
.dust { position: absolute; left: var(--x); top: var(--y); width: var(--s, .3em); height: var(--s, .3em); border-radius: 50%;
        background: radial-gradient(circle, rgba(241, 234, 210, .95), rgba(241, 234, 210, 0) 70%);
        opacity: 0; pointer-events: none; animation: dust var(--t, 9s) ease-in-out var(--dl, 0s) infinite; }
@keyframes dust {
    0%   { opacity: 0; transform: translate3d(0, 0, 0) scale(.6); }
    30%  { opacity: .8; }
    70%  { opacity: .5; }
    100% { opacity: 0; transform: translate3d(var(--dx, 1em), -6em, 0) scale(1.2); }
}

/* ---------- scrub / parallax ---------- */
.getting { letter-spacing: calc(.06em + var(--c, 0) * .05em); }
.married { display: inline-block; transform: translateX(calc(var(--c, 0) * 1.4em)); }
.ep-card { transform: rotate(calc(-3deg + var(--c, 0) * 5deg)); cursor: pointer; }


/* ---------- editorial gallery (Our Story) ---------- */
.editorial { width: 100%; padding: 0 1.1em; display: flex; flex-direction: column; gap: 2.2em; }
.ed-top { display: grid; grid-template-columns: 38% 1fr; gap: 1em; align-items: center; } /* ayat di kanan: ganti jadi grid-template-columns: 1fr 38% dan tambah direction: rtl pada .ed-top */
.ed-bottom { display: grid; grid-template-columns: 1fr 1.6em 1fr; gap: .6em; align-items: start; }
.ed-photo { position: relative; cursor: pointer; }
.ed-photo.land { aspect-ratio: 4 / 3; }
.ed-photo.port { aspect-ratio: 3 / 4.2; }
.ed-photo.low { margin-top: 3em; }
/* ayat tanpa outline */
.verse-card { text-align: left; padding: 0; border: 0; background: none; border-radius: 0; }
.verse-card .verse-ar { font-size: 1.15em; line-height: 1.9; text-align: right; }
.ed-quote { font-family: var(--f-serif); font-style: italic; font-size: .78em; line-height: 1.55; color: var(--cream); margin-top: .5em; }
.ed-cite { display: block; margin-top: .9em; font-family: var(--f-sans); font-style: italic; font-weight: 600; font-size: .5em; letter-spacing: .08em; color: #e8c7c0; }
/* teks vertikal di tengah */
.ed-vert { align-self: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2em; writing-mode: vertical-rl; text-orientation: mixed; font-family: var(--f-sans); font-weight: 500; font-size: .52em; letter-spacing: .3em; text-transform: uppercase; color: var(--cream); margin-top: 3em; }
.ed-vert span { display: block; }

/* carousel: slide tengah membesar */
.car-track { position: relative; padding: 0 11%; scroll-padding: 0 11%; gap: .5em; }
.car-track img { flex: 0 0 78%; scroll-snap-align: center; aspect-ratio: 4/5; cursor: pointer;
                 transform: scale(var(--s, .86)); opacity: var(--o, .55); transition: transform .25s ease, opacity .25s ease; }
.car-meta { display: flex; justify-content: space-between; align-items: center; padding: .9em .4em 0; font-size: .7em; letter-spacing: .16em; }
.car-dots { display: flex; gap: .5em; align-items: center; }
.car-dots i { width: .55em; height: .55em; border-radius: 50%; background: rgba(241, 234, 210, .3); transition: all .3s ease; cursor: pointer; }
.car-dots i.on { width: 1.7em; border-radius: 1em; background: var(--cream); }

.m-item { position: relative; }
.m-item.wide { cursor: pointer; }

.btn-row { display: flex; flex-wrap: wrap; gap: .7em; justify-content: center; }
.btn-cream, .btn-send, .btn-open, .btn-ghost { position: relative; overflow: hidden; transition: transform .2s ease; }
.btn-cream:active, .btn-send:active, .btn-ghost:active { transform: scale(.95); }
.btn-cream.ghost { background: transparent; color: var(--cream); border: 1px solid rgba(241, 234, 210, .5); box-shadow: none; cursor: pointer; }
.rip { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .45); transform: scale(0); animation: rip .6s ease-out forwards; pointer-events: none; }
@keyframes rip { to { transform: scale(4); opacity: 0; } }

/* countdown berdenyut */
@keyframes cdpulse { from { transform: translateY(-.25em); opacity: .3; } to { transform: none; opacity: 1; } }
.count-grid strong.pulse { animation: cdpulse .35s ease; }

/* ---------- RSVP segmented + jumlah tamu + like ---------- */
.wish-form .lbl { margin-top: .5em; opacity: .85; }
.seg { display: grid; grid-template-columns: repeat(2, 1fr); gap: .3em; background: rgba(0, 0, 0, .25); padding: .3em; border-radius: 999px; }
.seg.five { grid-template-columns: repeat(5, 1fr); }
.wish-form .seg label { position: relative; margin: 0; opacity: 1; text-align: center; padding: .6em .2em; border-radius: 999px; cursor: pointer; font-size: .95em; transition: background .3s ease, color .3s ease, transform .2s ease; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.wish-form .seg label:has(input:checked) { background: var(--cream); color: var(--wine-deep); transform: scale(1.03); }
.guest-pick { display: flex; flex-direction: column; gap: .375em; animation: fadeUp .4s ease both; }
.guest-pick[hidden] { display: none; }
.gp-note { font-size: .8em; opacity: .65; }

/* ---------- lightbox: navigasi ---------- */
.lightbox img { transform: scale(.92); transition: opacity .25s ease, transform .35s cubic-bezier(.16, .8, .24, 1); touch-action: pan-y; user-select: none; -webkit-user-drag: none; }
.lightbox.open img { transform: scale(1); }
.lightbox img.swap { opacity: 0; transform: translateX(var(--sx, 2em)) scale(.96); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 1.6em; height: 1.6em; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.4em; line-height: 1; display: grid; place-items: center; z-index: 2; }
.lb-prev { left: .4em; } .lb-next { right: .4em; }
.lb-count { position: absolute; bottom: 1.4em; left: 50%; transform: translateX(-50%); font-size: .75em; letter-spacing: .2em; color: #fff; opacity: .8; }

/* ---------- efek partikel (konfeti hati) ---------- */
.fx-layer { position: absolute; top: 3.15%; left: 12.6%; width: 74.49%; height: 92.87%; border-radius: 9.42%/4.58%; overflow: hidden; pointer-events: none; z-index: 4; font-size: 16px; }
@media (max-width: 599px) { .fx-layer { inset: 0; top: 0; left: 0; width: 100%; height: 100%; border-radius: 0; } }
.fx { position: absolute; line-height: 1; pointer-events: none; will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
    .cv-kicker, .cv-arch, .cv-names, .cv-date, .cv-guest, .btn-open, .cv-window img, .cv-badge svg, .cv-photo, .dust { animation: none !important; }
    .ph img { scale: 1.16; }
    [data-reveal^="clip"] .ph { clip-path: inset(0) !important; }
    .w, [data-reveal-group] > * { opacity: 1 !important; transform: none !important; filter: none !important; }
}


/* =========================================================
   LAYERED SECTION SYSTEM
   .sec-bg = layer yang menempel (sticky) selama section
   berada di layar, lalu ikut pergi bersama section-nya.
   Wajib: section TIDAK boleh overflow:hidden.
========================================================= */
.sec { position: relative; min-height: 100cqh; }
.sec-bg { position: sticky; top: 0; height: 100cqh; margin-bottom: -100cqh; overflow: hidden; z-index: 0; pointer-events: none; }
.sec-body { position: relative; z-index: 1; }
.L { position: absolute; inset: 0; }
.bg-photo { background-size: cover; background-position: center; transform: scale(1.18) translate3d(0, calc(var(--c, 0) * -4%), 0); will-change: transform; }
.bg-lines { width: 100%; height: 100%; transform: translate3d(0, calc(var(--c, 0) * 5%), 0); }
.bg-lines path { fill: none; stroke: rgba(201, 170, 115, .3); stroke-width: 1; vector-effect: non-scaling-stroke; }

/* huruf raksasa berkontur (layer dekor) */
.ghost { font-family: var(--f-disp); font-weight: 700; line-height: .85; color: transparent; -webkit-text-stroke: 1px rgba(241, 234, 210, .16); white-space: nowrap; pointer-events: none; }
.g-v { inset: 0 auto 0 auto; right: .15em; writing-mode: vertical-rl; font-size: 7.4em; letter-spacing: .08em; display: grid; place-items: center; transform: translateY(calc(var(--c, 0) * 9%)); }
.g-v.left { right: auto; left: .1em; transform: translateY(calc(var(--c, 0) * -9%)) rotate(180deg); }
.g-script { inset: auto; left: -.06em; bottom: 8%; font-family: var(--f-script); font-weight: 400; font-size: 7.8em; line-height: .9; -webkit-text-stroke-width: 1.2px; transform: translateY(calc(var(--c, 0) * -12%)) rotate(-6deg); }
.g-script.mono { left: 50%; bottom: auto; top: 18%; font-size: 13em; transform: translate(-50%, calc(var(--c, 0) * -10%)); }
.g-script.ink { -webkit-text-stroke-color: rgba(90, 26, 30, .18); }

/* ---------- film: vignette + grain + bingkai emas yang tidak ikut scroll ---------- */
.film { position: sticky; top: 0; height: 100cqh; margin-bottom: -100cqh; z-index: 55; pointer-events: none;
    background: radial-gradient(ellipse at 50% 45%, transparent 58%, rgba(0, 0, 0, .38) 100%); }
.film::before { content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
    background-size: 10em; opacity: .08; }
.film::after { content: ''; position: absolute; inset: .55em; border: 1px solid rgba(201, 170, 115, .55); box-shadow: inset 0 0 0 .3em transparent, inset 0 0 0 calc(.3em + 1px) rgba(201, 170, 115, .25); border-radius: .2em; }

/* ---------- COVER: layer di atas segalanya, meluncur pergi ---------- */
.cover { position: absolute; inset: 0; height: auto; min-height: 0; z-index: 60; padding: 0; background: var(--wine-deep); overflow: hidden; display: block;
         transition: transform 1s cubic-bezier(.77, 0, .18, 1), opacity .5s ease .5s; }
.cover.leaving { transform: translateY(-104%); opacity: 0; pointer-events: none; }
.cover.gone { display: none; }
.cv-bg { position: absolute; inset: 0; }
.cv-photo { background-size: cover; background-position: center; filter: blur(.5em) saturate(.8) brightness(.55); transform: scale(1.25); animation: kenburns 18s ease-in-out infinite alternate; }
.cv-wash { background: linear-gradient(180deg, rgba(43, 11, 14, .5), rgba(43, 11, 14, .92)); }
.cv-mono { inset: auto; left: 50%; top: 42%; transform: translate(-50%, -50%); font-family: var(--f-script); font-size: 20em; line-height: 1; color: rgba(241, 234, 210, .07); white-space: nowrap; }
.cv-body { position: relative; z-index: 2; height: 100%; padding: calc(2.2em + env(safe-area-inset-top, 0px)) 1.5em calc(1.8em + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: center; text-align: center; }
.cv-kicker { font-family: var(--f-serif); font-style: italic; font-size: 1.15em; letter-spacing: .14em; color: #e8c7c0; animation: fadeDown 1s ease .3s both; }
.cv-arch { position: relative; flex: 1; min-height: 9em; width: 68%; margin: 1em 0 1em; animation: ovalIn 1.4s cubic-bezier(.16, .8, .24, 1) .5s both; }
.cv-window { position: absolute; inset: 0; margin: 0; border-radius: 50% 50% .5em .5em / 36% 36% .5em .5em; overflow: hidden; border: .35em solid var(--paper);
             box-shadow: 0 0 0 1px rgba(201, 170, 115, .7), 0 0 0 .6em rgba(241, 234, 210, .12), 0 1.4em 3em rgba(0, 0, 0, .6); }
.cv-window img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 16s ease-in-out 1.8s infinite alternate; }
.cv-badge { position: absolute; right: -2em; bottom: -1.1em; width: 6em; height: 6em; z-index: 3; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #a1493d, #7c3128 60%, #551f19); box-shadow: 0 .6em 1.2em rgba(0, 0, 0, .5); }
.cv-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 14s linear infinite; }
.cv-badge text { font-family: var(--f-sans); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; fill: var(--cream); }
.cv-badge span { font-size: 1.4em; color: #f1d4cd; }
@keyframes spin { to { transform: rotate(360deg); } }
/* nama mempelai: serif tipis, besar, spasi lebar + "&" italic */
.cv-names { font-family: var(--f-serif); font-weight: 600; line-height: 1; color: var(--cream);
            text-shadow: 0 .08em .7em rgba(0, 0, 0, .45); animation: fadeUp .9s ease .9s both; }
.cv-names span { display: block; font-size: 1.25em; text-transform: uppercase; letter-spacing: .16em; padding-left: .16em; }
.cv-names i { display: block; font-family: var(--f-serif); font-style: italic; font-weight: 400;
              font-size: 1em; color: #e8c7c0; line-height: 1; margin: .05em 0 .1em; }
.cv-date { margin-top: .8em; font-size: .6em; letter-spacing: .22em; text-transform: uppercase; opacity: .85; animation: fadeUp .9s ease 1.1s both; }
.cv-guest { margin: 1em 0 .9em; animation: fadeUp .9s ease 1.25s both; }
.cv-guest p { font-size: .75em; opacity: .8; }
.cv-guest strong { display: block; margin-top: .2em; font-family: var(--f-serif); font-weight: 500; font-size: 1.15em; letter-spacing: .04em; }

/* ---------- INTRO ---------- */
.intro .bg-base { background: linear-gradient(160deg, #4a171b, #2b0b0e 72%); }
.intro .bg-photo { opacity: .2; mix-blend-mode: luminosity; filter: blur(.12em); }
.intro > .sec-body { padding-top: 3.5em; padding-bottom: 3.5em; }
.fan { position: relative; width: 100%; height: 20.5em; margin: .5em 0; }
.fan-item { position: absolute; width: 9.3em; }
.fan-item figure { margin: 0; padding: .4em .4em 1.2em; background: #fff; box-shadow: 0 .8em 1.8em rgba(0, 0, 0, .55); cursor: pointer;
    transform: rotate(calc(var(--r, 0deg) + var(--c, 0) * 4deg)) perspective(40em) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .15s ease-out; }
.fan-item img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.fan-item.f1 { left: 2%; top: 2.6em; --r: -9deg; }
.fan-item.f3 { right: 2%; top: 3.4em; --r: 10deg; }
.fan-item.f2 { left: 50%; margin-left: -4.65em; top: 0; z-index: 2; --r: 2deg; }
.fan-item.f2 img { aspect-ratio: 3/4; }
.fan-cap { position: absolute; left: 0; right: 0; bottom: .3em; text-align: center; font-family: var(--f-script); font-size: 1.15em; color: var(--wine-deep); pointer-events: none; }

/* ---------- COUPLE ---------- */
.couple { min-height: 215cqh; }
.couple .bg-base { background: #1a0709; }
.couple .bgph { background-size: cover; background-position: center 22%; filter: saturate(.85) contrast(1.05);
    transform: scale(1.14) translate3d(0, calc(var(--c, 0) * -3%), 0); }
.couple.bride .tint { background: linear-gradient(90deg, rgba(43, 11, 14, .92) 0%, rgba(43, 11, 14, .38) 58%, rgba(43, 11, 14, .05)), linear-gradient(0deg, rgba(43, 11, 14, .78), transparent 45%); }
.couple.groom .tint { background: linear-gradient(270deg, rgba(15, 42, 29, .92) 0%, rgba(15, 42, 29, .4) 58%, rgba(15, 42, 29, .05)), linear-gradient(0deg, rgba(15, 42, 29, .8), transparent 45%); }
.couple .vtxt { inset: 0 auto 0 auto; font-size: 5.6em; letter-spacing: .1em; writing-mode: vertical-rl; display: grid; place-items: center; -webkit-text-stroke-color: rgba(241, 234, 210, .4); transform: translateY(calc(var(--c, 0) * 8%)); }
.couple.bride .vtxt { right: .2em; }
.couple.groom .vtxt { left: .2em; transform: translateY(calc(var(--c, 0) * -8%)) rotate(180deg); }
.couple .sec-body { display: block; }
.cp-hero { position: relative; height: 100cqh; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 1.5em 4.2em; }
.cp-eyebrow { font-family: var(--f-serif); font-style: italic; font-size: 1.15em; letter-spacing: .16em; color: #e8c7c0; margin-bottom: .2em; }
.cp-name { font-family: var(--f-disp); font-weight: 700; font-size: 3em; line-height: .98; color: var(--cream); text-shadow: 0 .1em 1em rgba(0, 0, 0, .5); }
.cp-name em { display: block; font-family: var(--f-script); font-style: normal; font-weight: 400; font-size: 1.25em; color: #e8c7c0; line-height: 1; margin-top: .05em; }
.cp-hint { position: absolute; left: 2.5em; bottom: 1.6em; font-size: .62em; letter-spacing: .3em; text-transform: uppercase; opacity: .8; animation: hint 1.4s ease-in-out infinite alternate; }
@keyframes hint { from { opacity: .5; } to { opacity: 1; } }
.cp-pad { height: 100cqh; display: flex; align-items: center; padding: 0 1.4em; }
.cp-card { width: 74%; padding: 1.8em 1.5em; box-shadow: 0 1.2em 3em rgba(0, 0, 0, .55); position: relative; }
.cp-card::before { content: ''; position: absolute; inset: .45em; border: 1px solid rgba(60, 40, 30, .3); pointer-events: none; }
.cp-role { font-family: var(--f-script); font-size: 1.9em; line-height: 1; }
.cp-card h3 { font-family: var(--f-disp); font-weight: 700; font-size: 1.35em; margin-top: .3em; line-height: 1.15; color: var(--ink); }
.cp-par { font-size: .72em; line-height: 1.7; opacity: .85; }
.cp-card .mini-rule { width: 2.2em; height: 1px; background: var(--wine); margin: .9em 0; }
.couple.groom .cp-hero { align-items: flex-end; text-align: right; }
.couple.groom .cp-hint { left: auto; right: 2em; }
.couple.groom .cp-pad { justify-content: flex-end; }
.couple.groom .cp-eyebrow { color: #b9d0bf; }
.couple.groom .cp-name em { color: #b9d0bf; }

/* ---------- EVENT ---------- */
.event .bg-base { background: radial-gradient(circle at 20% 10%, #1b4a33, var(--green) 60%, #081a11); }
.event .bg-photo { opacity: .15; mix-blend-mode: luminosity; }

/* ---------- STORY ---------- */
.story .bg-base { background: linear-gradient(180deg, #0a2016, #0f2a1d 50%, #081a11); }
.story .bg-photo { opacity: .14; mix-blend-mode: luminosity; filter: blur(.15em); }

/* ---------- GALLERY: latar berganti ---------- */
.gallery .bg-base { background: #08140e; }
.gal-ph { background-size: cover; background-position: center; opacity: 0; transition: opacity 1.3s ease; filter: blur(.9em) brightness(.55) saturate(.9); transform: scale(1.3) translate3d(0, calc(var(--c, 0) * -3%), 0); }
.gal-ph.on { opacity: 1; }
.gal-shade { background: radial-gradient(ellipse at 50% 30%, transparent 25%, rgba(8, 20, 14, .75) 100%); }
.gal-head { text-align: center; }
.kicker-s { font-family: var(--f-serif); font-style: italic; letter-spacing: .26em; text-transform: uppercase; font-size: .78em; color: #e8c7c0; }
.gallery > .sec-body { gap: 1.6em; }

/* ---------- GIFT: kertas krem ---------- */
.paper-sec { color: var(--ink); background: #ebe2cf; }
.gift .bg-base { background: linear-gradient(180deg, #f0e8d6, #e4d9c1); }
.paper-grid { background-image: repeating-linear-gradient(45deg, rgba(90, 26, 30, .05) 0 1px, transparent 1px 1.1em), repeating-linear-gradient(-45deg, rgba(90, 26, 30, .05) 0 1px, transparent 1px 1.1em); transform: translateY(calc(var(--c, 0) * 4%)); }
.seal-big { inset: auto; right: -5.5em; top: -2.5em; width: 17em; height: 17em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #a1493d, #7c3128 55%, #551f19); box-shadow: 0 1em 2.4em rgba(60, 20, 20, .4); opacity: .92;
    transform: translateY(calc(var(--c, 0) * 14%)) rotate(calc(var(--c, 0) * 40deg)); }
.seal-big::before { content: ''; position: absolute; inset: 1.1em; border-radius: 50%; border: 2px dashed rgba(241, 234, 210, .45); }
.seal-big::after { content: '&'; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-script); font-size: 7em; color: rgba(241, 234, 210, .5); }
.gift .gift-lede, .gift .bank-tag, .gift .bank small { color: var(--ink); }
.gift .bank-pill { box-shadow: 0 .4em 1em rgba(90, 26, 30, .25); border: 1px solid rgba(90, 26, 30, .15); }

/* ---------- WISHES ---------- */
.wishes .bg-base { background: linear-gradient(180deg, #3a1013, #2b0b0e); }
.wishes .bg-photo.duo { opacity: .28; mix-blend-mode: luminosity; filter: grayscale(1) contrast(1.1); }

/* ---------- THANKS ---------- */
.thanks .bg-base { background: #2b0b0e; }
.thanks .bg-photo { opacity: .5; filter: saturate(.7); }
.cl-shade { background: linear-gradient(180deg, rgba(43, 11, 14, .55), rgba(43, 11, 14, .92) 70%); }
.thanks > .sec-body { min-height: 100cqh; justify-content: center; }

/* ---------- tombol Open + perbaikan kecil ---------- */
.btn-open { display: inline-flex; align-items: center; gap: .5em; background: var(--paper); color: var(--ink); padding: .65em 1.3em; border-radius: 999px; font-size: .8em; font-weight: 500; letter-spacing: .02em; box-shadow: 0 .4em 1.2em rgba(0, 0, 0, .45); }
.btn-open:active { transform: scale(.96); }
.fan-item.f2 figure { padding-bottom: 1.8em; }
.cv-body { pointer-events: none; }
.cv-body .btn-open { pointer-events: auto; position: relative; z-index: 5; }
.cv-bg, .cv-bg * { pointer-events: none; }

/* ---------- performa scroll: promosikan layer parallax, batasi area repaint ---------- */
.sec-bg { contain: layout paint; }
.seal-big, .paper-grid, .g-v, .g-script, .bg-lines, .couple .vtxt { will-change: transform; }

/* ---------- floating buttons: safe-area & mobile ---------- */
.fab-music { bottom: calc(2.2em + env(safe-area-inset-bottom, 0px)); }
.fab-down { bottom: calc(2.2em + env(safe-area-inset-bottom, 0px)); }
.fab-up { bottom: calc(5.4em + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 599px) {
    .fab-music { left: 1em; bottom: calc(1.4em + env(safe-area-inset-bottom, 0px)); }
    .fab-down { right: 1em; bottom: calc(1.4em + env(safe-area-inset-bottom, 0px)); }
    .fab-up { right: 1em; bottom: calc(4.6em + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- gift: label bank ---------- */
.gift .bank-tag { display: inline-block; padding: .25em 1.1em; border: 1px solid rgba(90, 26, 30, .4); border-radius: 999px; font-size: .72em; font-weight: 600; letter-spacing: .22em; color: var(--wine); }

/* ---------- REEL: satu foto berganti otomatis ---------- */
.reel .bg-base { background: linear-gradient(180deg, #2b0b0e, #3a1013 55%, #2b0b0e); }
.reel > .sec-body { min-height: 100cqh; padding: 3em 1.4em; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1em; text-align: center; }
.reel-frame { position: relative; width: 76%; aspect-ratio: 3 / 4; border-radius: 50% 50% .5em .5em / 30% 30% .5em .5em; overflow: hidden; isolation: isolate; background: #1a0709; border: .35em solid var(--paper);
    box-shadow: 0 0 0 1px rgba(201, 170, 115, .7), 0 0 0 .6em rgba(241, 234, 210, .12), 0 1.4em 3em rgba(0, 0, 0, .6); }
.rf { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.rf.on { opacity: 1; animation: reelzoom 1.6s ease-out forwards; }
@keyframes reelzoom { from { transform: scale(1.14); } to { transform: scale(1); } }
.reel-meta { display: flex; flex-direction: column; align-items: center; gap: .7em; font-size: .7em; letter-spacing: .16em; }

/* =========================================================
   REVISI TERBARU
========================================================= */

/* gallery: hilangkan gap kosong sebelum Wedding Gift.
   overflow: clip (bukan hidden) supaya sticky bg tetap jalan */
.gallery { min-height: 0; overflow: clip; }
.gallery > .sec-body { padding-bottom: 2.2em; }

/* jarak konten dari garis outline emas (min 1.9em).
   Foto latar bride/groom tetap full (itu ada di .sec-bg, tidak terpengaruh) */
.intro > .sec-body, .event > .sec-body, .gift > .sec-body,
.wishes > .sec-body, .thanks > .sec-body, .reel > .sec-body { padding-left: 1.9em; padding-right: 1.9em; }
.cv-body { padding-left: 1.9em; padding-right: 1.9em; }
.cp-hero { padding-left: 1.9em; padding-right: 1.9em; }
.cp-pad { padding-left: 1.9em; padding-right: 1.9em; }
.story-copy { padding: 0 2em; }
.editorial { padding: 0 1.9em; }
.carousel { padding: 0 1.7em; }

/* gift: teks pengantar di dalam kartu merah, tanpa alamat rumah */
.gift-note { font-size: .74em; line-height: 1.8; color: rgba(255, 255, 255, .92); margin-top: .2em; }
.gift .gift-rule { margin: 1em auto .9em; }

/* gift: rapatkan jarak bawah (tidak lagi setinggi satu layar) */
.gift { min-height: 0; overflow: clip; }
.gift > .sec-body { padding-top: 2.6em; padding-bottom: 1.4em; }
.wishes > .sec-body { padding-top: 1.6em; }