/* =========================================================
   Deffa & Jarry — Wedding Invitation
   Design system: cream / tan / maroon / burnt orange
   Fonts: Monsieur La Doulaise (headings) + Abhaya Libre (body)
   ========================================================= */

:root {
    --bg1: #FAEFDB;
    --bg2: #E8CBA3;
    --bg3: #7C332A;
    --bg-sec: #F6EED7;
    --tx1: #7C332A;
    --tx2: #BA6927;
    --tx1-rgb: 124, 51, 42;
    --btn1-bg: #BA6927;
    --btn1-tx: #F9EEDA;
    --btn2-bg: #7C332A;
    --btn2-tx: #FCFAED;
    --accent: #ED0B53;

    --hf: "Monsieur La Doulaise", cursive;
    --bf: "Abhaya Libre", serif;
    --rf: "Roboto", sans-serif;

    --hs: 36px;
    --bs: 16px;

    --art: ../media/;
    --texture: url("../media/texture-1.png");
    --mask-cover: url("../media/mask-cover.png");
    --mask-couple: url("../media/mask-couple.png");
    --mask-ls: url("../media/mask-ls.png");

    --ease-cover: cubic-bezier(.23, .56, .38, .78);
}

@media (min-width:561px) and (max-width:960px) {
    :root { --hs: 50px; --bs: 24px; }
}
@media (min-width:961px) {
    :root { --hs: 44px; --bs: 18px; }
}
@media (min-width:1600px) {
    :root { --hs: 50px; --bs: 24px; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg1);
    color: var(--tx2);
    font-family: var(--bf);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.locked {
    height: 100dvh;
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--hf);
    font-weight: 400;
    font-size: var(--hs);
    color: var(--tx1);
    line-height: normal;
    margin: 0;
}

p {
    font-family: var(--bf);
    font-size: var(--bs);
    color: var(--tx2);
    line-height: normal;
    margin: 0;
}

img { max-width: 100%; border: 0; }

a { color: inherit; }

button { font-family: var(--bf); }

::-webkit-scrollbar { width: 10px; height: 15px; }
::-webkit-scrollbar-track { background: var(--bg1); }
::-webkit-scrollbar-thumb { background: var(--btn1-bg); border: 2px solid var(--bg1); border-radius: 8px; }

/* ---------- shared components ---------- */
.btn-pill {
    display: inline-block;
    border: none;
    border-radius: 99px;
    padding: 12px 24px 10px;
    font-family: var(--bf);
    font-size: var(--bs);
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all .25s ease-in-out;
}

.btn-dark { background: var(--btn2-bg); color: var(--btn2-tx); }
.btn-dark:hover { background: rgba(124, 51, 42, .8); }

.btn-orange { background: var(--btn1-bg); color: var(--btn1-tx); }
.btn-orange:hover { background: var(--btn2-bg); color: var(--btn2-tx); }

.btn-sm { padding: 8px 14px 6px; font-weight: 400; }
.btn-block { display: block; width: 100%; }

.form-control {
    width: 100%;
    background: var(--bg1);
    border: 1px solid var(--bg3);
    border-radius: 999px;
    color: var(--tx1);
    font-family: var(--bf);
    font-size: var(--bs);
    line-height: 1.5;
    padding: 12px 16px;
    outline: none;
    transition: border-color .25s ease;
    -webkit-appearance: none;
    appearance: none;
}
.form-control::placeholder { color: rgba(var(--tx1-rgb), .5); }
.form-control:focus { border-color: var(--btn1-bg); }

textarea.form-control { resize: vertical; min-height: 44px; max-height: 250px; }

.form-group + .form-group { margin-top: 12px; }

/* ---------- loader ---------- */
.loader {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .7s ease, visibility .7s ease;
}
.loader.hide { opacity: 0; visibility: hidden; }

.loader-inner { text-align: center; }

.loader-logo {
    width: 92px;
    height: 92px;
    object-fit: contain;
    animation: loaderPulse 1.6s ease-in-out infinite alternate;
}

.loader-name {
    margin-top: 14px;
    font-family: var(--rf);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: .5px;
    color: var(--accent);
}

.loader-bar {
    width: 140px;
    height: 3px;
    margin: 18px auto 0;
    background: rgba(237, 11, 83, .15);
    border-radius: 99px;
    overflow: hidden;
}
.loader-bar span {
    display: block;
    height: 100%;
    width: 40%;
    background: var(--accent);
    border-radius: 99px;
    animation: loaderBar 1.2s ease-in-out infinite;
}

@keyframes loaderPulse { from { transform: scale(.94); } to { transform: scale(1.04); } }
@keyframes loaderBar {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(320%); }
}

/* ---------- layout ---------- */
.layout { min-height: 100dvh; }

.art-pane {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 61%;
    background: var(--bg1);
    overflow: hidden;
    z-index: 1;
}

.content-pane {
    position: relative;
    width: 39%;
    margin-left: auto;
    background: var(--bg1);
}

.content-pane::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--texture);
    background-repeat: repeat;
    background-size: 50% auto;
    mix-blend-mode: multiply;
    opacity: .5;
    pointer-events: none;
    z-index: 0;
}

@media only screen and (max-width:960px) {
    .art-pane { display: none; }
    .content-pane { width: 100%; margin: 0; }
}

/* ---------- left art pane ---------- */
.art-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 132%;
    opacity: .5;
    pointer-events: none;
}
.art-bg img { width: 100%; display: block; }

.art-ornaments {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.art-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 72%;
    margin: 0 auto;
    padding-top: 8%;
    text-align: center;
}

.art-title {
    font-size: var(--hs);
    color: var(--tx1);
}

.art-details { padding: 24px 10%; }

.art-details p {
    color: var(--tx1);
    font-size: var(--bs);
    line-height: 1.5;
}

/* ---------- ornaments ---------- */
.ornaments {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
}

.slot {
    position: absolute;
    display: block;
    opacity: 0;
    transform-origin: center;
}

/* entrance (ornIn) + continuous gentle sway (rotate) + floating (translate);
   sway/float use the independent rotate/translate properties so the
   slot's positioning transform is never clobbered */
.in-view .slot,
.no-anim .slot {
    animation:
        ornIn 1.5s cubic-bezier(.23, .56, .38, .78) both,
        sway 5.4s ease-in-out 1.8s infinite,
        floaty 7s ease-in-out 2.3s infinite;
}

.slot img { display: block; width: 100%; height: auto; }
.slot span { position: absolute; }
.slot .sub { position: absolute; }

.slot.tl { top: 4%; left: 0; }
.slot.tr { top: 4%; right: 0; transform: scaleX(-1); }
.slot.ml { bottom: 0; left: 0; }
.slot.mr { bottom: 0; right: 0; transform: scaleX(-1); }
.slot.bl { bottom: 0; left: 0; }
.slot.br { bottom: 0; right: 0; transform: scaleX(-1); }
.slot.cl { bottom: 0; left: 50%; transform: translateX(-50%); }
.slot.cb { bottom: 0; left: 50%; transform: translateX(-50%); }
.slot.cb2 { bottom: 0; left: 50%; transform: translateX(-50%); }
.slot.ct { top: 0; left: 50%; transform: translateX(-50%); }
.slot.bg { inset: 0; width: 100%; }

/* animations use the independent `scale` property so slot transforms survive */
@keyframes ornIn {
    0% { opacity: 0; scale: .72; }
    100% { opacity: 1; scale: 1; }
}
@keyframes ornInBg {
    0% { opacity: 0; scale: .9; }
    100% { opacity: .25; scale: 1; }
}
/* wave / sway: rotasi halus ke kiri-kanan, berulang, mulai dari 0 agar
   tidak ada lompatan saat animasi masuk selesai */
@keyframes sway {
    0% { rotate: 0deg; }
    25% { rotate: 1.4deg; }
    75% { rotate: -1.4deg; }
    100% { rotate: 0deg; }
}
/* amplitude lebih kecil untuk sub-rangkaian bunga (gerak berlapis) */
@keyframes swaySoft {
    0% { rotate: 0deg; }
    25% { rotate: -.8deg; }
    75% { rotate: .8deg; }
    100% { rotate: 0deg; }
}
/* floating: melayang naik-turun halus */
@keyframes floaty {
    0% { translate: 0 0; }
    50% { translate: 0 -5px; }
    100% { translate: 0 0; }
}
.in-view .slot.bg { animation-name: ornInBg, none, none; }

.in-view .slot:nth-child(1) { animation-delay: .15s, 2s, 2.6s; }
.in-view .slot:nth-child(2) { animation-delay: .3s, 2.7s, 3.3s; }
.in-view .slot:nth-child(3) { animation-delay: .45s, 2.2s, 2.9s; }
.in-view .slot:nth-child(4) { animation-delay: .6s, 3s, 3.7s; }
.in-view .slot:nth-child(5) { animation-delay: .75s, 2.4s, 3.1s; }
.in-view .slot:nth-child(6) { animation-delay: .9s, 3.2s, 3.9s; }
.in-view .slot:nth-child(7) { animation-delay: 1.05s, 2.6s, 3.4s; }
.in-view .slot:nth-child(8) { animation-delay: 1.2s, 3.4s, 4.1s; }

/* Orn-09, Orn-14, Orn-01 pada ff-cl dan Orn-01 pada bank-cb: tanpa
   sway/floaty — hanya entrance ornIn */
.in-view .slot[data-set="ff-cl"],
.no-anim .slot[data-set="ff-cl"],
.in-view .slot[data-set="bank-cb"],
.no-anim .slot[data-set="bank-cb"] { animation-name: ornIn, none, none; }

/* Orn-06 (ff-cb2, ev-cb2), Orn-05 (ff-ml, ev-bl), Orn-49 & Orn-50
   (qt-cb): tanpa sway/floaty — hanya entrance ornIn */
.in-view .slot[data-set="ff-cb2"],
.no-anim .slot[data-set="ff-cb2"],
.in-view .slot[data-set="ev-cb2"],
.no-anim .slot[data-set="ev-cb2"],
.in-view .slot[data-set="ff-ml"],
.no-anim .slot[data-set="ff-ml"],
.in-view .slot[data-set="ev-bl"],
.no-anim .slot[data-set="ev-bl"],
.in-view .slot[data-set="qt-cb"],
.no-anim .slot[data-set="qt-cb"],
.in-view .slot[data-set="qt-sofa"],
.no-anim .slot[data-set="qt-sofa"] { animation-name: ornIn, none, none; }

/* sub-clusters (bouquet kecil di dalam slot) ikut bergoyang dengan
   periode berbeda supaya gerakannya terasa organik; .grp dikecualikan */
.in-view .slot > span:not(.grp):not(.slot) {
    animation: swaySoft 4.6s ease-in-out 2.5s infinite;
}

/* pembungkus langsung Orn-05 (.e05) dan Orn-50 (.q11): tanpa swaySoft */
.in-view .slot > span.e05,
.no-anim .slot > span.e05,
.in-view .slot > span.q11,
.no-anim .slot > span.q11 { animation: none; }

/* --- set: ff (opening / art pane / footnote) --- */
.opening [data-set="ff-tl"] .sub { transform: translate(10.81%, 10%); }
.opening [data-set="ff-cl"] .grp { width: 68.67%; }
.slot[data-set="ff-tl"] { top: 4%; width: 69.48%; }
.slot.tl[data-set="ff-tl"] { transform: translate(-50.18%, 4%); }
.slot.tr[data-set="ff-tl"] { transform: translate(50.18%, 4%) scaleX(-1); }
.slot[data-set="ff-tl"] .sub { top: 57.5%; left: 0; width: 81.18%; transform: translate(-11.8%, 0); }

.slot[data-set="ff-bl"] { width: 27.95%; }
.slot.bl[data-set="ff-bl"] { transform: translate(-38.52%, 3%); }
.slot.br[data-set="ff-bl"] { transform: translate(38.52%, 3%) scaleX(-1); }
.slot[data-set="ff-bl"] .o8 { left: 0; bottom: 57.5%; width: 77%; transform: translateX(11.76%); }
.slot[data-set="ff-bl"] .o8 .sub { left: 0; bottom: 55.46%; width: 67.85%; transform: translateX(12.26%) scaleX(-1); }
.slot[data-set="ff-bl"] .o4 { left: 30.27%; bottom: 0; width: 124.77%; transform: translate(1%, -1.42%); }
.slot[data-set="ff-bl"] .o3 { left: 24.77%; bottom: 0; width: 112.84%; transform: translateY(5.74%); }
.slot[data-set="ff-bl"] .o2 { left: 0; bottom: 0; width: 100%; }
.slot[data-set="ff-bl"] .o46 { left: 45.3%; bottom: 0; width: 56.88%; transform: translateY(21%); }

.slot[data-set="ff-cl"] { width: 100%; }
.slot[data-set="ff-cl"] .grp { bottom: 45.68%; left: 50%; width: 68.17%; transform: translateX(-50%); position: absolute; }
.slot[data-set="ff-cl"] .grp .o14 { position: relative; }
.slot[data-set="ff-cl"] .grp .o9l { bottom: 23.5%; left: 0; width: 81.71%; transform: translateX(-38.81%); }
.slot[data-set="ff-cl"] .grp .o9r { bottom: 23.5%; right: 0; width: 81.71%; transform: translateX(38.81%) scaleX(-1); }
.slot[data-set="ff-cl"] .o1 { left: 0; bottom: 0; width: 100%; }

.slot[data-set="ff-ml"] { width: 35.9%; left: 10%; transform: translate(13%, 20.27%); }
.slot.mr[data-set="ff-ml"] { right: 10%; left: auto; }
.slot.mr[data-set="ff-ml"] { transform: translateX(-13%) translateY(20.27%) scaleX(-1); }

.slot[data-set="ff-cb2"] { width: 36.6%; }

.art-pane .slot.tl, .art-pane .slot.tr { top: 11%; width: 59.48%; }
.art-pane .slot.tl[data-set="ff-tl"] { transform: translateX(-50.18%); }
.art-pane .slot.tr[data-set="ff-tl"] { transform: translateX(50.18%) scaleX(-1); }
.art-pane .slot.tl .sub, .art-pane .slot.tr .sub { transform: translate(26.19%, 4%); }
.art-pane .slot.bl, .art-pane .slot.br { width: 17.95%; }
.art-pane .slot.cl { transform: translateX(-50%) translateY(42%); }
.art-pane .slot.ml, .art-pane .slot.mr { width: 28.9%; left: 17%; right: auto; }
.art-pane .slot.mr { left: auto; right: 17%; }
.art-pane .slot.cb2 { width: 30.6%; }

/* --- set: cv (cover) --- */
.slot[data-set="cv-tl"] { top: 0; width: 69.48%; }
.slot.tl[data-set="cv-tl"] { transform: translateX(-50.18%); }
.slot.tr[data-set="cv-tl"] { transform: translateX(50.18%) scaleX(-1); }
.slot[data-set="cv-tl"] .sub { top: 48.54%; left: 0; width: 81.18%; transform: translate(-2.81%) scaleX(-1); }

.slot[data-set="cv-bl"] { width: 30%; }
.slot[data-set="cv-bl"] .o48 { bottom: 0; left: 0; width: 95.7%; position: absolute; transform: translateX(-27.67%) scaleX(-1); }
.slot[data-set="cv-bl"] .o48 .sub { bottom: 45.83%; right: 0; width: 83.03%; transform: translateX(6.45%) scaleX(-1); }
.slot[data-set="cv-bl"] .o31 { bottom: 0; left: 0; width: 93.1%; position: absolute; transform: translateX(-48.67%); }
.slot[data-set="cv-bl"] .o31 .sub { bottom: 31.19%; right: 0; width: 124.77%; transform: translateX(8.82%) scaleX(-1); }

/* --- set: cvf (cover photo frame) --- */
.slot[data-set="cvf-tl"] { top: 20.16%; width: 28.78%; }
.slot.tl[data-set="cvf-tl"] { transform: rotate(-14.7deg); }
.slot.tr[data-set="cvf-tl"] { transform: rotate(14.7deg) scaleX(-1); }

.slot[data-set="cvf-ml"] { bottom: 6.16%; width: 22.87%; }
.slot.ml[data-set="cvf-ml"] { transform: translateX(-70%); }
.slot.mr[data-set="cvf-ml"] { transform: translateX(70%) scaleX(-1); }
.slot[data-set="cvf-ml"] .sub { bottom: 56%; left: 0; width: 72.58%; transform: translateX(-4.4%) scaleX(-1); }
.slot[data-set="cvf-ml"] .o40 { bottom: 34.4%; left: 0; width: 91.93%; position: absolute; transform: translateX(-15.16%); }

.slot[data-set="cvf-bl"] { width: 30.99%; }
.slot.bl[data-set="cvf-bl"] { transform: translateX(-43%); }
.slot.br[data-set="cvf-bl"] { transform: translateX(43%) scaleX(-1); }
.slot[data-set="cvf-bl"] .o46 { right: 0; bottom: 0; width: 73.8%; position: absolute; transform: translate(4.83%, 14.28%); }
.slot[data-set="cvf-bl"] .o47 { left: 23.36%; bottom: 0; width: 59.52%; position: absolute; transform: translateY(34%); }

/* --- set: qt (quote) --- */
.slot[data-set="qt-cb"] { width: 100%; bottom: 0; }
.slot[data-set="qt-cb"] .q4a { bottom: 73.33%; left: 0; width: 24.61%; position: absolute; transform: translateX(-39.25%); }
.slot[data-set="qt-cb"] .q4b { bottom: 73.33%; right: 0; width: 24.61%; position: absolute; transform: translateX(39.25%) scaleX(-1); }
.slot[data-set="qt-sofa"] { bottom: 35.38%; left: 50%; width: 75%; transform: translateX(-50%); }
.slot[data-set="qt-sofa"] > .q11 { position: relative; display: block; }
.slot[data-set="qt-ml"] { bottom: 24%; width: 28.71%; }
.slot.ml[data-set="qt-ml"] { transform: translateX(-21.42%); }
.slot.mr[data-set="qt-ml"] { transform: translateX(21.42%) scaleX(-1); }
.slot[data-set="qt-bl"] { bottom: 35.38%; width: 24.61%; }
.slot.bl[data-set="qt-bl"] { transform: translateX(-51%); }
.slot.br[data-set="qt-bl"] { transform: translateX(51%) scaleX(-1); }
.slot[data-set="qt-bl"] .o10 { right: 0; top: 0; width: 81.25%; position: absolute; transform: translate(23%, -15.87%); }
.slot[data-set="qt-bl"] .o17 { right: 0; top: 5.78%; width: 52.08%; position: absolute; transform: translateX(50%); }
.slot[data-set="qt-bl"] .o08 { right: 0; bottom: 21%; width: 64.5%; position: absolute; transform: translateX(62.9%); }
.slot[data-set="qt-bl"] .o16 { right: 0; bottom: 9.47%; width: 59.38%; position: absolute; transform: translateX(59.64%); }

/* --- set: cp (couple frame) --- */
.slot[data-set="cp-tl"] { top: 11.19%; width: 69.64%; }
.slot.tl[data-set="cp-tl"] { transform: translateX(25.59%); }
.slot.tr[data-set="cp-tl"] { transform: translateX(-25.59%) scaleX(-1); }
.slot[data-set="cp-tl"] .sub { bottom: 41.51%; left: 0; width: 78.21%; transform: translate(-3.57%) scaleX(-1); }

.slot[data-set="cp-ml"] { bottom: 29.16%; width: 72.37%; }
.slot.ml[data-set="cp-ml"] { transform: translateX(-38.17%); }
.slot.mr[data-set="cp-ml"] { transform: translateX(38.17%) scaleX(-1); }

.slot[data-set="cp-bl"] { width: 45.13%; }
.slot[data-set="cp-bl"] .o22 { bottom: 0; left: 0; width: 77.82%; position: absolute; transform: translate(-14%, -25%) rotate(-133deg); }
.slot[data-set="cp-bl"] .o53 { position: relative; width: 100%; }

/* --- set: cpd (couple details side ornament) --- */
[data-set="cpd"] { top: 0; width: 35.89%; max-width: 200px; height: auto; }
.side-orn {
    position: absolute;
    display: block;
    pointer-events: none;
    opacity: 0;
}
.side-orn img { display: block; width: 100%; height: auto; }
.side-orn.right { right: 0; top: 0; transform: translate(34.28%, -62%) scaleX(-1); }
.side-orn.left { left: 0; top: 0; transform: translate(-34.28%, -62%); }
.in-view .side-orn {
    animation:
        ornFade 1.4s ease .4s both,
        sway 6.2s ease-in-out 2.2s infinite,
        floaty 7.6s ease-in-out 2.8s infinite;
}
@keyframes ornFade { from { opacity: 0; } to { opacity: 1; } }
[data-set="cpd"] .sub1 { bottom: 0; left: 16.42%; width: 66.42%; position: absolute; transform: translateY(23%); }
[data-set="cpd"] .sub2 { bottom: 0; left: 0; width: 69.56%; position: absolute; transform: translateY(44.81%) rotate(24deg); }

/* --- set: sd (save the date frame sides) --- */
.slot[data-set="sd-l"] { bottom: 0; width: 27.94%; transform: translateX(-3.66%); }
.slot.mr[data-set="sd-l"] { transform: translateX(3.66%) scaleX(-1); }
.slot[data-set="sd-l"] .o30 { bottom: 20.77%; left: 0; width: 122%; position: absolute; transform: translateX(-28.57%); }
.slot[data-set="sd-l"] .o31 { bottom: 10.33%; left: 7.5%; width: 84.21%; position: absolute; }
.slot[data-set="sd-l"] .o32 { bottom: 30.58%; left: 0; width: 87.5%; position: absolute; }
.slot[data-set="sd-l"] .o34 { left: 30.77%; top: 0; width: 77.7%; position: absolute; transform: translateY(-56.64%); }
.slot[data-set="sd-l"] .o25 { bottom: 55.32%; left: 45.16%; width: 66.1%; position: absolute; transform: scaleX(-1); }

/* --- set: ev (event frame) --- */
.slot[data-set="ev-tl"] { top: 0; width: 35.74%; }
.slot.tl[data-set="ev-tl"] { transform: translateX(3%); }
.slot.tr[data-set="ev-tl"] { transform: translateX(-3%) scaleX(-1); }
.slot[data-set="ev-tl"] .o27 { left: 0; top: 100%; width: 66.71%; position: absolute; transform: translate(-36%, 6%); }
.slot[data-set="ev-tl"] .e26 { left: 0; top: 0; width: 100.71%; position: absolute; transform: translate(-35%, -1%) rotate(7.173deg); }

.slot[data-set="ev-bl"] { width: 37.94%; }
.slot.bl[data-set="ev-bl"] { transform: translateX(-26.35%); }
.slot.br[data-set="ev-bl"] { transform: translateX(26.35%) scaleX(-1); }
.slot[data-set="ev-bl"] .e05 { bottom: 1.63%; left: 72.54%; width: 86.86%; position: absolute; }
.slot[data-set="ev-bl"] .e03 { bottom: 22.85%; left: 0; width: 83.1%; position: absolute; transform: scaleX(-1); }
.slot[data-set="ev-bl"] .e39 { bottom: 26.857%; left: 26.35%; width: 49.32%; position: absolute; }
.slot[data-set="ev-bl"] .ev41 { bottom: 73%; left: 32.61%; width: 55.4%; position: absolute; transform: translate(-2%, -30.37%); }
.slot[data-set="ev-bl"] .ev41 .ev42 { left: 0; top: 0; width: 82.92%; position: absolute; transform: translate(-54.41%, -62.5%); }

.slot[data-set="ev-bg"] { top: auto; bottom: 0; width: 100%; left: 0; }
.slot[data-set="ev-cb2"] { width: 27.23%; transform: translateX(-50%) translateY(-13%); }

/* --- set: ls (love story) --- */
.slot[data-set="ls-ct"] { top: 0; width: 28.71%; transform: translateX(-50%) translateY(13%); }
.in-view .slot.ct[data-set="ls-ct"] { animation-name: ornInTop, sway, floaty; }
@keyframes ornInTop { 0% { opacity: 0; transform: translateX(-50%) translateY(-20%); } 100% { opacity: 1; transform: translateX(-50%) translateY(13%); } }

.slot[data-set="ls-tl"] { top: 0; width: 35.74%; }
.slot.tl[data-set="ls-tl"] { transform: translateX(3%); }
.slot.tr[data-set="ls-tl"] { transform: translateX(-3%) scaleX(-1); }
.slot[data-set="ls-tl"] .o27 { left: 0; top: 100%; width: 66.71%; position: absolute; transform: translate(-36%, 6%); }
.slot[data-set="ls-tl"] .e26 { left: 0; top: 0; width: 100.71%; position: absolute; transform: translate(-35%, -1%) rotate(7.173deg); }

.slot[data-set="ls-bl"] { width: 38.92%; }
.slot.bl[data-set="ls-bl"] { transform: translateX(-10%); }
.slot.br[data-set="ls-bl"] { transform: translateX(10%) scaleX(-1); }

.slot[data-set="lsf-l"] { bottom: 3.9%; width: 47.5%; }
.slot.ml[data-set="lsf-l"] { transform: translateX(-41.35%); }
.slot.mr[data-set="lsf-l"] { transform: translateX(41.35%) scaleX(-1); }
.slot[data-set="lsf-l"] .x31 { bottom: 10.3%; right: 7.5%; width: 84.21%; position: absolute; }
.slot[data-set="lsf-l"] .x32 { bottom: 30.58%; right: 0; width: 87.5%; position: absolute; transform: scaleX(-1); }

/* --- set: vd (video) --- */
.slot[data-set="vd-tl"] { top: 0; width: 69.48%; }
.slot.tl[data-set="vd-tl"] { transform: translateX(-62%); }
.slot.tr[data-set="vd-tl"] { transform: translateX(62%) scaleX(-1); }

/* --- set: bank (wedding gift) --- */
.slot[data-set="bank-tl"] { top: 0; width: 42.56%; max-width: 300px; }
.slot.tl[data-set="bank-tl"] { transform: translate(-19%, 4%); }
.slot.tr[data-set="bank-tl"] { transform: translate(19%, 4%) scaleX(-1); }
.slot[data-set="bank-tl"] .sub { top: 0; right: 0; width: 80.54%; position: absolute; transform: translate(22%, 22%); }
.slot[data-set="bank-tl"] .sb1 { top: 0; right: 0; width: 52.4%; position: absolute; transform: translate(19%, -22%); }
.slot[data-set="bank-tl"] .sb2 { top: 0; right: 0; width: 61.44%; position: absolute; transform: translate(-19%, -22%); }

.slot[data-set="bank-bl"] { width: 45.55%; }
.slot.bl[data-set="bank-bl"] { transform: translate(-.66%, -4%); }
.slot.br[data-set="bank-bl"] { transform: translate(.66%, -4%) scaleX(-1); }

.slot[data-set="bank-cb"] { width: 100%; transform: translateX(-50%) translateY(4%); }
.slot[data-set="bank-bg"] { width: 100%; }

/* --- set: ty (thank you) --- */
.slot[data-set="ty-l"] { width: 28.71%; max-width: 184px; }
.slot.bl[data-set="ty-l"] { transform: translateX(-50%); }
.slot.br[data-set="ty-l"] { transform: translateX(50%) scaleX(-1); }
.slot[data-set="ty-l"] .sub { bottom: 0; left: 39.28%; width: 97.32%; position: absolute; }
.slot[data-set="ty-l"] .sub2 { bottom: 24.75%; right: 0; width: 70.35%; position: absolute; transform: translateX(5%) scaleX(-1); }

/* ---------- section divider ornament ---------- */
.orn-clip {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100%;
    transform: translate(-50%, 50%);
    z-index: 4;
    pointer-events: none;
}
.orn-clip.top {
    bottom: auto;
    top: 0;
    transform: translate(-50%, -50%);
}
.orn-clip img { display: block; width: 100%; }

/* ---------- backgrounds ---------- */
.bg-cover {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 132%;
    opacity: .5;
    pointer-events: none;
    z-index: 0;
}
.bg-cover img { width: 100%; display: block; }

/* ---------- opening cover ---------- */
.opening {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--bg1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 1.8s var(--ease-cover);
}
.opening.hide {
    top: -120%;
    bottom: 120%;
    pointer-events: none;
}

.opening-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    gap: 14px;
}

.opening-head {
    padding-top: 120px;
    text-align: center;
}

.opening-title { font-size: var(--hs); color: var(--tx1); }

.opening-details {
    position: relative;
    padding: 23% 24px 36.5%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.opening-details::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(50% 50% at 50% 50%, var(--bg1) 0, rgba(255, 255, 251, .75) 50%, rgba(255, 251, 237, 0) 100%);
    pointer-events: none;
}
.opening-details p {
    position: relative;
    color: var(--tx1);
    line-height: 1.5;
}
.opening-btn-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

/* ---------- cover section ---------- */
.cover {
    position: relative;
    min-height: 100vh;
    padding-bottom: 23%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cover-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    padding-top: 5%;
}

.cover-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 5% 15% 0;
    text-align: center;
}
.cover-head p { color: var(--tx2); }

.logo-wrap {
    width: 27.47%;
    max-width: 150px;
    margin: 0 auto;
}
.logo-wrap .logo { display: block; width: 100%; }

.cover-body {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 24px auto 0;
}

.cover-frame-wrap { position: relative; width: 69.48%; }

.cover-photo {
    position: absolute;
    inset: 1% 2% 2% 2%;
    background: var(--bg2);
    overflow: hidden;
    -webkit-mask-image: var(--mask-cover);
    mask-image: var(--mask-cover);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}
.cover-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* frame overlays stay in flow: the frame PNG gives the wrapper its height */
.frame-overlay {
    position: relative;
    display: block;
    width: 100%;
    z-index: 3;
    pointer-events: none;
}
.frame-overlay img { display: block; width: 100%; height: auto; }

.story-picture .frame-overlay { position: absolute; inset: 0; }
.frame-orn { z-index: 0; }
.frame-orn-front { z-index: 4; }
.footnote-section .slot[data-set="ff-bl"] .o8 { z-index: 2; }
.footnote-section .slot[data-set="ff-bl"] .o46 { z-index: 3; }
.savedate-frame .frame-overlay { z-index: 1; }
.orn-front { z-index: 2; }
.event-item .frame-overlay { z-index: 1; }

.cover-foot {
    width: 100%;
    padding: 20px 10px;
    text-align: center;
}
.cover-foot h1 { font-size: var(--hs); }
.cover-foot p { color: var(--tx1); font-weight: 500; }

/* ---------- quote ---------- */
.quote-section {
    position: relative;
    padding: 18.3% 15.7% 88%;
    overflow: hidden;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quote-wrap {
    position: relative;
    z-index: 2;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}
.quote-text {
    color: var(--tx1);
    line-height: 1.5;
}

/* ---------- couple ---------- */
.couple-section {
    position: relative;
    overflow: hidden;
    padding: 7% 0 5%;
    z-index: 1;
}

.couple-head {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 6.2% 3%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}
.couple-title { font-size: var(--hs); }
.couple-desc { line-height: 1.5; }

.couple-body {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    margin-top: 5%;
}
.couple-body.bride-first { flex-direction: column-reverse; }

.couple-info { position: relative; width: 100%; }

.couple-preview {
    position: relative;
    display: flex;
    margin-top: 4%;
    margin-bottom: 17.2%;
}

.couple-frame {
    position: relative;
    width: 65.89%;
    max-width: 450px;
    margin: 0 auto;
}
@media (min-width:1200px) { .couple-frame { max-width: 400px; } }

.couple-picture-wrap { position: static; }

.couple-picture {
    position: absolute;
    top: 7.1%;
    bottom: 9.1%;
    left: 50%;
    width: 87%;
    transform: translateX(-50%);
    background: var(--bg2);
    border-radius: 50%;
    overflow: hidden;
    -webkit-mask-image: var(--mask-couple);
    mask-image: var(--mask-couple);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}
.couple-picture a { display: block; width: 100%; height: 100%; }
.couple-picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.groom .frame-overlay img { transform: scaleX(-1); }

.couple-details {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 6.2% 0 20.5%;
    text-align: left;
}
.couple-info.groom .couple-details {
    padding: 0 20.5% 0 6.2%;
    text-align: right;
}

.couple-role { color: var(--tx2); }
.couple-name { font-size: calc(var(--hs)); color: var(--tx1); }
.couple-parents { line-height: 1.5; color: var(--tx2); }

.couple-link-wrap { display: flex; margin-top: 6px; justify-content: flex-start; }
.couple-info.groom .couple-link-wrap { justify-content: flex-end; }

.couple-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--btn1-bg);
    color: var(--btn1-tx);
    border-radius: 999px;
    padding: 12px 16px;
    font-family: var(--bf);
    font-size: var(--bs);
    text-decoration: none;
    transition: all .25s ease-in-out;
}
.couple-link:hover { background: var(--btn2-bg); color: var(--btn2-tx); }

.couple-separator-wrap { margin: 10% auto 12%; text-align: center; }
.couple-separator { padding: 0 40px; font-size: var(--hs); }

/* ---------- save the date ---------- */
.savedate-section {
    position: relative;
    padding: 5% 0 3%;
    overflow: hidden;
    margin: 0 auto;
}

.savedate-frame {
    position: relative;
    width: 100%;
    max-width: 550px;
    margin: 26px auto 0;
}

.savedate-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -40%);
    width: 82%;
    max-width: 450px;
    padding: 20px 0;
    z-index: 2;
    text-align: center;
}

.savedate-head { margin-bottom: 24px; }
.savedate-title { font-size: var(--hs); text-align: center; }

.countdown {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding-bottom: 10px;
}
.count-item { width: 94px; text-align: center; }
@media (min-width:961px) { .count-item { width: 135px; } }

.count-num {
    font-family: var(--bf);
    font-size: var(--hs);
    font-weight: 400;
    color: var(--tx1);
    margin-bottom: 4px;
}
.count-item small {
    display: block;
    font-family: var(--bf);
    font-size: var(--bs);
    color: var(--tx1);
    line-height: 1.5;
}

.savedate-btn-wrap { display: flex; justify-content: center; margin-top: 2%; }

/* ---------- event ---------- */
.event-section {
    position: relative;
    padding: 7% 0 5%;
    overflow: hidden;
}

.event-head {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 24px 40px;
    text-align: center;
}
.event-orn {
    display: block;
    width: 81.8%;
    max-width: 300px;
    margin: 0 auto auto;
}
.event-title { font-size: var(--hs); }
.event-desc { max-width: 400px; margin: 0 auto; line-height: 1.71; }

.event-body { position: relative; z-index: 1; margin-top: 2%; }

.event-date { text-align: center; margin-top: 9%; }
.event-divider {
    display: block;
    width: 1px;
    height: 24px;
    background: var(--tx1);
    margin: 0 auto 20px;
}
.event-day, .event-date-num {
    font-family: var(--bf);
    color: var(--tx1);
    font-size: calc(var(--bs) + 4px);
    line-height: 1.4;
}

.event-item {
    position: relative;
    margin: 12% auto 0;
    padding-bottom: 10%;
    z-index: 1;
}
.event-item:first-of-type { margin-top: 4%; }

.event-frame {
    position: relative;
    left: 50%;
    width: 135.64%;
    max-width: 720px;
    transform: translateX(-50%);
}
.event-item.flip .event-frame { transform: translateX(-50%) scaleX(-1); }

.event-content {
    position: absolute;
    left: 50%;
    bottom: 40%;
    transform: translate(-50%, 54%);
    width: 67%;
    max-width: 400px;
    max-height: 47%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
    z-index: 3;
    overflow-y: auto;
    scrollbar-width: none;
}
.event-content::-webkit-scrollbar { display: none; }

.event-icon { display: flex; justify-content: center; }
.event-icon svg { width: 64px; height: 64px; }

.event-item-title { font-size: var(--hs); }
.event-item-desc {
    color: var(--tx2);
    font-size: calc(var(--bs) - 2px);
    font-style: italic;
    font-weight: 500;
    line-height: 1.42;
}
.event-time { color: var(--tx1); font-weight: 700; }

.event-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 35px;
    text-align: center;
}
.event-hall { color: var(--tx1); font-weight: 700; line-height: 1.5; }
.event-address { color: var(--tx2); line-height: 1.5; }

.event-link-wrap { display: flex; justify-content: center; margin-top: 4px; }
.event-link-wrap .btn-pill { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- love story ---------- */
.story-section {
    position: relative;
    padding: 5% 0;
    overflow: hidden;
    background: transparent;
}

.story-inner {
    position: relative;
    z-index: 2;
    padding-top: 32%;
}

.story-head { padding: 0 24px; text-align: center; }
.story-title { font-size: var(--hs); }

.story-body {
    position: relative;
    max-width: 650px;
    margin: 0 auto;
}

.story-pictures { position: relative; padding-top: 4.27%; }

.story-picture {
    position: relative;
    display: none;
    width: 71.79%;
    margin: 0 auto 2%;
    padding-bottom: 3.9%;
    border-radius: 24px;
}
.story-picture.is-active { display: block; animation: fadeIn .7s ease both; }

.story-frame { position: relative; z-index: 1; }

.frame-ls {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.ls-img-content {
    position: absolute;
    top: 3%;
    right: 4%;
    bottom: 3%;
    left: 5%;
    background: var(--bg-sec);
    -webkit-mask-image: var(--mask-ls);
    mask-image: var(--mask-ls);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.ls-img-content img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.ornaments.orn-ls1 { z-index: 2; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.story-caption-wrap {
    position: relative;
    width: 74.358%;
    max-width: 550px;
    margin: 0 auto;
    padding: 16px;
    background: var(--bg2);
    border: 1px solid var(--bg3);
    border-radius: 24px;
    backdrop-filter: blur(2px);
}

.story-captions { position: relative; min-height: 180px; }

.story-caption {
    display: none;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}
.story-caption.is-active { display: flex; animation: fadeIn .6s ease both; }

.story-caption h3 {
    font-family: var(--bf);
    font-size: var(--bs);
    font-weight: 700;
    color: var(--tx1);
    line-height: 1.5;
}
.story-caption p {
    color: var(--tx1);
    font-size: var(--bs);
    line-height: 1.5;
}

.story-nav { position: absolute; inset: 0; pointer-events: none; }
.story-btn {
    position: absolute;
    top: 50%;
    background: none;
    border: none;
    color: var(--tx1);
    font-size: var(--bs);
    cursor: pointer;
    pointer-events: auto;
    padding: 2px;
    transition: all .25s ease;
}
.story-btn:hover { opacity: .6; }
.story-btn.prev { left: 0; transform: translate(-145%, -50%); }
.story-btn.next { right: 0; transform: translate(145%, -50%); }

/* ---------- gallery ---------- */
.gallery-section {
    position: relative;
    overflow: hidden;
}

.gallery-inner { position: relative; padding: 5% 0; z-index: 1; }

.gallery-head {
    position: relative;
    padding: 0 24px 40px;
    text-align: center;
}
.gallery-title { font-size: var(--hs); padding-bottom: 10px; }
.gallery-caption { font-size: var(--bs); }

.gallery-body { margin: 0 auto; }

.gallery-main {
    position: relative;
    margin: 0 25px;
    overflow: hidden;
    border-radius: 20px;
}
.gallery-track { position: relative; }
.gallery-slide {
    display: none;
    margin: 0;
}
.gallery-slide.is-active { display: block; animation: fadeIn .5s ease both; }
.gallery-slide img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 20px;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(124, 51, 42, .35);
    border: none;
    border-radius: 50%;
    padding: 10px 8px;
    cursor: pointer;
    opacity: .85;
    z-index: 4;
    transition: all .25s ease;
}
.gallery-arrow:hover { opacity: 1; background: rgba(124, 51, 42, .6); }
.gallery-arrow.prev { left: 8px; }
.gallery-arrow.next { right: 8px; }
.gallery-arrow svg { display: block; }

.gallery-thumbs {
    display: flex;
    gap: 6px;
    margin-top: 14px;
    padding: 6px 25px;
    overflow-x: auto;
    scrollbar-width: none;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }

.thumb {
    flex: 0 0 auto;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    transition: transform .25s ease;
}
.thumb img {
    display: block;
    height: 107px;
    min-width: 84px;
    width: auto;
    object-fit: cover;
    border-radius: 6px;
}
.thumb.is-active { transform: scale(1.1); }

/* ---------- video ---------- */
.video-section {
    position: relative;
    padding: 11% 0 3%;
    overflow: hidden;
}

.video-inner { position: relative; z-index: 1; }

.video-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 5% 24px 6.2%;
    text-align: center;
}
.video-head h1 { font-size: var(--hs); }

.video-outer { margin-top: 80px; padding: 0 24px; }
.video-head + .video-outer { margin-top: 0; }

.video-box {
    position: relative;
    width: 100%;
    max-width: 570px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    cursor: pointer;
}
.video-box img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-box iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 50px;
    opacity: .7;
    cursor: pointer;
    transition: all .25s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .4);
}
.play-btn:hover { opacity: 1; }

.video-caption { padding: 8px 10%; text-align: center; color: var(--tx2); }

/* ---------- wedding gift ---------- */
.gift-section {
    position: relative;
    padding: 40px 0;
    overflow: hidden;
    width: 100%;
}

.gift-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.gift-head {
    width: 85%;
    margin: 0 auto 5%;
    text-align: center;
    position: relative;
}
.gift-orn {
    display: block;
    width: 81.8%;
    max-width: 300px;
    margin: 0 auto auto;
}
.gift-title { padding-top: 8px; font-size: var(--hs); }
.gift-desc { text-align: center; line-height: 1.5; }

.gift-body {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    padding: 0 24px;
}

.gift-bank-select { margin-bottom: 16px; }
.pick-label {
    display: block;
    color: var(--tx2);
    font-family: var(--bf);
    font-size: var(--bs);
    margin-bottom: 8px;
}

/* --- pilih bank (chip tabs) --- */
.bank-pick {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.bank-chip {
    flex: 1 1 150px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, .5);
    border: 1.5px solid rgba(124, 51, 42, .25);
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    transition: border-color .25s ease, background .25s ease,
        box-shadow .25s ease, transform .25s ease;
}
.bank-chip:hover {
    border-color: rgba(124, 51, 42, .55);
    transform: translateY(-2px);
}
.bank-chip.is-active {
    background: var(--btn2-bg);
    border-color: var(--btn2-bg);
    box-shadow: 0 8px 18px rgba(124, 51, 42, .28);
}
.bank-chip-logo {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #0058AA;
    color: #fff;
    font-family: var(--rf);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
}
.bank-chip-logo[data-brand="mandiri"] { background: #003D79; color: #FFD500; }
.bank-chip-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.bank-chip-name {
    color: var(--tx1);
    font-weight: 700;
    font-size: var(--bs);
    line-height: 1.2;
}
.bank-chip-owner {
    color: var(--tx2);
    font-size: calc(var(--bs) - 4px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bank-chip.is-active .bank-chip-name { color: var(--btn2-tx); }
.bank-chip.is-active .bank-chip-owner { color: rgba(252, 250, 237, .75); }

/* --- kartu rekening --- */
.gift-bank-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 20px;
    background: linear-gradient(135deg, var(--btn2-bg) 0%, var(--btn1-bg) 145%);
    color: var(--btn2-tx);
    box-shadow: 0 14px 30px rgba(124, 51, 42, .28);
}
.bank-card-deco {
    position: absolute;
    top: -46px;
    right: -46px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .09);
}
.bank-card-deco::after {
    content: '';
    position: absolute;
    left: -78px;
    bottom: -104px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
}
.bank-card-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.bank-logo {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0058AA;
    color: #fff;
    font-family: var(--rf);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .22);
}
.bank-logo[data-brand="mandiri"] { background: #FFD500; color: #003D79; }
.bank-head-info {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-wrap: wrap;
}
.bank-name {
    color: var(--btn2-tx);
    font-weight: 700;
    font-size: var(--bs);
    margin: 0;
}
.bank-code {
    font-family: var(--rf);
    font-size: calc(var(--bs) - 6px);
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    color: var(--btn2-tx);
}
.bank-card-body {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.bank-account { display: flex; flex-direction: column; gap: 6px; }
.bank-account-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.bank-label {
    color: rgba(252, 250, 237, .72);
    font-family: var(--bf);
    font-size: calc(var(--bs) - 3px);
}
.bank-number {
    color: var(--btn2-tx);
    font-family: var(--rf);
    font-weight: 700;
    font-size: calc(var(--bs) + 8px);
    letter-spacing: 2px;
    line-height: 1.3;
    word-break: break-all;
}
.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    color: var(--btn2-tx);
    font-family: var(--bf);
    font-size: calc(var(--bs) - 4px);
    padding: 5px 12px;
    cursor: pointer;
    transition: all .25s ease;
    line-height: 1;
}
.copy-btn:hover {
    background: var(--btn1-tx);
    border-color: var(--btn1-tx);
    color: var(--btn2-bg);
}
.copy-btn i { font-size: calc(var(--bs) - 3px); }

.bank-owner {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px dashed rgba(255, 255, 255, .32);
    padding-top: 12px;
}
.bank-owner-name {
    color: var(--btn2-tx);
    font-weight: 600;
    font-size: var(--bs);
    word-break: break-word;
}

.gift-form { margin-top: 24px; }
.gift-form-title {
    color: var(--tx2);
    margin-bottom: 12px;
    font-size: var(--bs);
}
.gift-form .btn-pill { margin-top: 16px; }

.gift-upload { position: relative; margin-top: 24px; }
.back-btn {
    background: none;
    border: none;
    color: var(--btn1-bg);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    margin-bottom: 8px;
    transition: opacity .25s ease;
}
.back-btn:hover { opacity: .75; }

.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border: 2px dashed var(--tx1);
    border-radius: 10px;
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    color: var(--tx1);
    margin-bottom: 16px;
    transition: background .25s ease;
}
.upload-area:hover { background: rgba(124, 51, 42, .06); }
.upload-area i { font-size: 40px; }
.upload-area span { font-family: var(--bf); font-size: var(--bs); }
.upload-area small { font-family: var(--bf); font-size: calc(var(--bs) - 3px); color: var(--tx2); }

/* ---------- wishes ---------- */
.wish-section {
    position: relative;
    padding: 5% 24px;
    overflow: hidden;
}

.wish-inner { position: relative; z-index: 2; }

.wish-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 7%;
    text-align: center;
}
.wish-title { font-size: var(--hs); }
.wish-desc { line-height: 1.5; }

.wish-body { padding: 24px 0; }
.wish-form { padding-bottom: 24px; }
.wish-submit-wrap { display: flex; justify-content: flex-end; margin-top: 12px; }

.comment-wrap { display: flex; flex-direction: column; }

.comment-item {
    padding: 14px 0;
    border-bottom: 1px solid rgba(124, 51, 42, .25);
    display: flex;
    flex-direction: column;
    gap: 6px;
    animation: fadeIn .5s ease both;
}
.comment-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}
.comment-name { color: var(--tx1); font-weight: 700; font-size: var(--bs); }
.comment-time { color: rgba(124, 51, 42, .6); font-size: calc(var(--bs) - 4px); }
.comment-text { color: var(--tx2); font-size: var(--bs); line-height: 1.5; word-break: break-word; }

.more-wrap { display: flex; justify-content: center; padding-top: 24px; }
.more-btn {
    background: none;
    border: 1px solid var(--tx1);
    border-radius: 999px;
    color: var(--tx1);
    font-family: var(--bf);
    font-size: var(--bs);
    padding: 8px 20px;
    cursor: pointer;
    transition: all .25s ease;
}
.more-btn:hover { background: var(--tx1); color: var(--bg1); }
.more-btn[hidden] { display: none; }

/* ---------- thanks ---------- */
.thanks-section {
    position: relative;
    padding: 5% 0 10%;
    overflow: hidden;
}

.thanks-inner {
    position: relative;
    z-index: 2;
    max-width: 650px;
    margin: 0 auto;
    padding: 21.1% 15.4% 14%;
    text-align: center;
}
.thanks-title { margin-bottom: 6%; color: var(--tx1); text-align: center; }
.thanks-desc { color: var(--tx1); line-height: 1.5; text-align: center; }

/* ---------- footnote ---------- */
.footnote-section {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 55px;
    justify-content: flex-end;
    overflow: hidden;
}
.footnote-section .bg-cover { opacity: .35; top: 20%; width: 100%; }

.footnote-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 10.3% 20.5% 105%;
    text-align: center;
}

.footnote-logo { width: 35.57%; }
.footnote-logo .logo { display: block; width: 100%; }

.footnote-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 55px;
}
.footnote-top, .footnote-bottom { color: var(--tx2); font-size: var(--bs); line-height: 1.5; }
.footnote-title { font-size: var(--hs); line-height: normal; }

/* ---------- footer ---------- */
.site-footer {
    position: relative;
    background: var(--btn2-bg);
    z-index: 3;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
}
.footer-inner p { color: var(--btn2-tx); font-size: var(--bs); }
.footer-inner a { display: inline-flex; }
.footer-logo { width: 110px; height: auto; display: block; }

/* ---------- music ---------- */
.music-box {
    position: fixed;
    left: 15px;
    bottom: 15px;
    z-index: 999;
}
.music-box button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    /* [GANTI] Logo tombol musik (file di folder media/) */
    background: var(--btn2-bg) url("../media/logomusic.png") center / cover no-repeat;
    color: var(--btn2-tx);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(124, 51, 42, .35);
    transition: transform .25s ease;
}
.music-box button:hover { transform: scale(1.06); }
.music-box.playing button { animation: spin 20s linear infinite; }

@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

@media only screen and (max-width:960px) {
    .music-box { left: 12px; bottom: 12px; }
    .music-box button { width: 45px; height: 45px; font-size: 14px; }
}

/* ---------- lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, .92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn .3s ease both;
}
.lightbox[hidden] { display: none; }
.lightbox img {
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}
.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

/* ---------- toast ---------- */
.toast {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translate(-50%, calc(-100% - 40px));
    z-index: 1000001;
    background: var(--btn2-bg);
    color: var(--btn2-tx);
    font-family: var(--bf);
    font-size: 15px;
    padding: 10px 22px;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
    transition: transform .45s var(--ease-cover);
    pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- misc ---------- */
section { position: relative; }

@media only screen and (max-width:960px) {
    .opening-head { padding-top: 90px; }
    .couple-frame { max-width: 340px; }
    .story-caption-wrap { width: 86%; }
    .story-btn.prev { transform: translate(-150%, -50%); }
    .story-btn.next { transform: translate(150%, -50%); }
    .event-frame { width: 150%; }
    .thanks-inner { padding: 24% 8% 18%; }
}

/* caption lebih sempit supaya tombol prev/next story tetap di dalam viewport */
@media only screen and (max-width:640px) {
    .story-caption-wrap { width: 80%; }
}
