/* ===== Undangan Digital — mesin template =====
 * Warna & font diisi lewat CSS variable (style="...") dari PHP: undangan_style().
 * Kelas gaya-* mengatur ornamen & bentuk (10 gaya x 5 palet = 50 template). */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.inv { margin: 0; background: var(--bg); color: var(--text); font-family: var(--f-body); font-size: var(--body-size); line-height: 1.7; -webkit-font-smoothing: antialiased; }
body.inv:not(.opened) { overflow: hidden; height: 100vh; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); }
.script { font-family: var(--f-script); line-height: 1.15; color: var(--accent); }
.big { font-size: clamp(2.6rem, 11vw, 3.5rem); }
.eyebrow { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .3em; font-size: .78rem; margin-bottom: .8rem; }
.center { text-align: center; }
.hp { position: absolute; left: -9999px; }

/* ---------- Kerangka: desktop foto kiri, konten kanan ---------- */
.inv-side { display: none; }
.inv-main { position: relative; min-height: 100vh; background: var(--bg); overflow: hidden; }
@media (min-width: 900px) {
    .inv-side { display: flex; align-items: flex-end; position: fixed; inset: 0 460px 0 0; background: var(--bg2) center / cover no-repeat; color: #fff; }
    .inv-side::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 40%, rgba(0,0,0,.72)); }
    .inv-side.no-photo::before { background: none; }
    .inv-side.no-photo { color: var(--text); }
    .inv-side-inner { position: relative; padding: 60px; }
    .inv-side .script { color: inherit; font-size: 4rem; }
    .inv-side .eyebrow, .inv-side .side-date { font-family: var(--f-head); letter-spacing: .2em; opacity: .9; }
    .inv-main { margin-left: auto; width: 460px; box-shadow: -10px 0 40px rgba(0,0,0,.25); }
}

/* ---------- Pola latar (dipakai beberapa gaya) ---------- */
.pattern::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background: var(--accent); opacity: var(--pat-op, .1);
    -webkit-mask: var(--pat) repeat; mask: var(--pat) repeat;
    -webkit-mask-size: var(--pat-size, 64px); mask-size: var(--pat-size, 64px);
}
.pattern > * { position: relative; z-index: 1; }

/* ---------- Sampul ---------- */
.cover {
    position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; text-align: center; padding: 30px 24px;
    background: var(--overlay), var(--cover, none) var(--cover-pos, center) / cover no-repeat, var(--bg);
    transition: transform .9s cubic-bezier(.7,0,.3,1), opacity .9s;
}
@media (min-width: 900px) { .cover { left: auto; width: 460px; } }
body.opened .cover { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.cover-inner { max-width: 360px; position: relative; z-index: 1; }
.date-line { font-family: var(--f-head); letter-spacing: .25em; font-size: 1rem; }
.guest-box { margin: 2rem 0 1.6rem; padding: 18px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.guest-box p { margin: 0 0 .4rem; font-size: .9rem; }
.guest-name { display: block; font-family: var(--f-head); font-size: 1.45rem; font-weight: 600; }
.guest-box small { display: block; margin-top: .4rem; font-size: .72rem; opacity: .75; }
.btn-open {
    display: inline-flex; align-items: center; gap: .5em; border: 0; cursor: pointer; font: inherit; font-family: var(--f-head);
    font-weight: 600; letter-spacing: .04em; padding: .8em 1.7em; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
    box-shadow: 0 10px 24px -10px rgba(var(--accent-rgb), .9); transition: transform .2s;
}
.btn-open:hover { transform: translateY(-2px); }
.btn-open[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- Section ---------- */
.sec { padding: 72px 28px; position: relative; }
.sec.alt { background: var(--bg2); }
.sec-title { font-family: var(--f-script); color: var(--accent); font-size: 2.5rem; margin-bottom: 1.6rem; line-height: 1.2; }
.lead { font-size: 1.05em; }
.divider { width: 150px; height: 26px; color: var(--accent); margin: 0 auto 1.6rem; display: block; }
.quote { margin: 0 0 1.6rem; font-family: var(--f-head); font-style: italic; font-size: 1.08em; }
.quote cite { display: block; margin-top: .6rem; font-style: normal; color: var(--accent); font-size: .9em; letter-spacing: .1em; }

.hero { min-height: 100vh; display: grid; place-items: center; text-align: center; background: var(--overlay), var(--cover, none) var(--cover-pos, center) / cover no-repeat, var(--bg); }
.countdown { display: flex; justify-content: center; gap: 10px; margin-top: 2rem; }
.countdown div { width: 66px; padding: 10px 0; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.countdown b { display: block; font-family: var(--f-head); font-size: 1.55rem; line-height: 1.1; color: var(--text); }
.countdown span { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; }

.people { display: grid; gap: 10px; }
.person .photo { width: 180px; height: 220px; margin: 0 auto 1.1rem; border-radius: 999px 999px 20px 20px; overflow: hidden; border: 1px solid var(--line); padding: 6px; }
.person .photo .ph-in { display: block; width: 100%; height: 100%; overflow: hidden; border-radius: inherit; }
.person .photo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.mono { width: 100%; height: 100%; display: grid; place-items: center; font-size: 5rem; background: var(--bg2); border-radius: inherit; }
.person .name { font-size: 2.3rem; }
.fullname { font-family: var(--f-head); font-weight: 600; font-size: 1.12em; margin: .3rem 0; }
.amp { font-size: 3.2rem; margin: .4rem 0; }

.events { display: grid; gap: 18px; }
.event-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px 22px; position: relative; }
.event-card h4 { font-family: var(--f-script); color: var(--accent); font-size: 2rem; margin-bottom: .8rem; line-height: 1.2; }
.event-card p { margin: 0 0 .35rem; }
.ev-date { font-weight: 600; }
.ev-place { font-family: var(--f-head); font-weight: 600; font-size: 1.1em; margin-top: .8rem !important; }
.ev-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 1.1rem; }
.btn-sm { display: inline-flex; align-items: center; gap: .4em; padding: .55em 1.1em; border-radius: 999px; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; text-decoration: none; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); font-family: var(--f-body); }
.btn-sm.ghost { background: transparent; color: var(--accent); }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.g-item { padding: 0; border: 0; cursor: zoom-in; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: var(--bg2); }
.g-item:first-child { grid-column: 1 / -1; aspect-ratio: 16/10; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.g-item:hover img { transform: scale(1.05); }
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.9); display: none; place-items: center; padding: 20px; }
.lb.open { display: grid; }
.lb img { max-height: 90vh; border-radius: 8px; }
.lb-close { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; font-size: 1.2rem; cursor: pointer; }

.gifts { display: grid; gap: 14px; margin-top: 1.2rem; }
.gift-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.gift-card .bank { font-family: var(--f-head); font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--accent); font-size: .85rem; }
.gift-card .acc { font-size: 1.35rem; letter-spacing: .08em; font-family: var(--f-head); }
.gift-card .btn-sm { margin-top: .6rem; }
.gift-card p { margin: .3rem 0 0; }

.rsvp-stats { display: flex; justify-content: center; gap: 10px; margin-bottom: 1.4rem; }
.rsvp-stats div { flex: 1; max-width: 110px; padding: 12px 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.rsvp-stats b { display: block; font-size: 1.5rem; font-family: var(--f-head); line-height: 1.1; }
.rsvp-stats span { font-size: .75rem; color: var(--muted); }
.rsvp-form { display: grid; gap: 10px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.rsvp-form input:not([type=radio]), .rsvp-form select, .rsvp-form textarea {
    width: 100%; padding: .75em 1em; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-family: var(--f-body); font-size: .95rem;
}
.rsvp-form input:focus, .rsvp-form select:focus, .rsvp-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.rsvp-form .btn-open { justify-self: center; margin-top: 4px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .92rem; }
.radio-row label { display: flex; align-items: center; gap: .35em; cursor: pointer; }
.radio-row input { accent-color: var(--accent); }
.notice { padding: 12px 14px; border-radius: 12px; margin-bottom: 12px; font-size: .9rem; }
.notice.ok { background: rgba(34,197,94,.15); border: 1px solid rgba(34,197,94,.4); }
.notice.err { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.4); }
.wishes { margin-top: 18px; max-height: 420px; overflow-y: auto; display: grid; gap: 10px; text-align: left; padding-right: 4px; }
.wish { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.wish-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: .3rem; }
.wish p { margin: 0 0 .3rem; font-size: .95em; }
.wish small { font-size: .75rem; }
.tag { font-size: .68rem; padding: .15em .7em; border-radius: 999px; white-space: nowrap; font-family: var(--f-body); }
.tag-hadir { background: rgba(34,197,94,.2); }
.tag-ragu { background: rgba(234,179,8,.25); }
.tag-tidak { background: rgba(239,68,68,.18); }

.closing { background: var(--overlay), var(--cover, none) var(--cover-pos, center) / cover no-repeat, var(--bg2); padding: 110px 28px; }
.inv-foot { text-align: center; padding: 22px; font-size: .78rem; color: var(--muted); font-family: var(--f-body); }
.demo-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: #111; color: #fff; font: 600 13px/1.4 system-ui, sans-serif; padding: 8px 14px; display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }
.demo-bar a { color: #ffd166; }
.demo-bar select { font: inherit; font-weight: 500; border-radius: 6px; padding: 2px 6px; }

.music-btn { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--accent); color: var(--accent-ink); font-size: 1.2rem; cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.music-btn.playing i { animation: spin 3s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
body:not(.opened) .music-btn { display: none; }
.toast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%) translateY(20px); background: #111; color: #fff; padding: .6em 1.2em; border-radius: 999px; font-size: .85rem; opacity: 0; transition: .3s; z-index: 95; pointer-events: none; font-family: var(--f-body); }
.toast.show { opacity: 1; transform: translateX(-50%); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .cover { transition: none; } }

/* =========================================================
 * GAYA (ornamen & bentuk)
 * ========================================================= */

/* --- Floral: bulatan lembut di sudut, foto bulat --- */
.gaya-floral .content > .sec::after { content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%; right: -60px; bottom: -50px; background: radial-gradient(circle, rgba(var(--accent-rgb), .45), transparent 70%); pointer-events: none; }
.gaya-floral .content > .sec:not(.hero):not(.closing)::before { content: ""; position: absolute; width: 130px; height: 130px; border-radius: 50%; left: -50px; top: -40px; background: radial-gradient(circle, rgba(var(--accent-rgb), .3), transparent 70%); pointer-events: none; }
.gaya-floral .person .photo { border-radius: 50%; width: 190px; height: 190px; }
.gaya-floral .event-card, .gaya-floral .gift-card { border-radius: 28px; }

/* --- Modern: tegas, huruf kapital, kotak --- */
.gaya-modern .sec-title, .gaya-luxury .sec-title, .gaya-khidmat .sec-title {
    font-family: var(--f-head); color: var(--text); font-size: 1.6rem; text-transform: uppercase; letter-spacing: .16em;
}
.gaya-modern .event-card h4, .gaya-luxury .event-card h4, .gaya-khidmat .event-card h4 {
    font-family: var(--f-head); text-transform: uppercase; letter-spacing: .12em; font-size: 1.35rem; color: var(--text);
}
.gaya-modern .person .photo { border-radius: 4px; padding: 0; }
.gaya-modern .event-card, .gaya-modern .gift-card, .gaya-modern .rsvp-form, .gaya-modern .wish, .gaya-modern .guest-box, .gaya-modern .countdown div { border-radius: 4px; }
.gaya-modern .btn-open, .gaya-modern .btn-sm { border-radius: 4px; }
.gaya-modern .script { color: var(--text); }

/* --- Islami & Tanah Suci: pola bintang geometris, foto mihrab --- */
.gaya-islami, .gaya-safar {
    --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.2'%3E%3Cpath d='M30 4l7.5 18.5L56 30l-18.5 7.5L30 56l-7.5-18.5L4 30l18.5-7.5z'/%3E%3Crect x='17' y='17' width='26' height='26' transform='rotate(45 30 30)'/%3E%3Ccircle cx='30' cy='30' r='5'/%3E%3C/g%3E%3C/svg%3E");
    --pat-size: 56px; --pat-op: .09;
}
.gaya-islami .person .photo, .gaya-safar .person .photo, .gaya-tradisi .person .photo { border-radius: 999px 999px 8px 8px / 140px 140px 8px 8px; }
.gaya-islami .event-card::before, .gaya-safar .event-card::before {
    content: ""; position: absolute; left: 50%; top: -1px; width: 70px; height: 3px; transform: translateX(-50%); background: var(--accent); border-radius: 0 0 4px 4px;
}
.gaya-safar .hero::after, .gaya-safar .closing::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: var(--accent); opacity: .22; pointer-events: none;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 460 90' preserveAspectRatio='none'%3E%3Cpath d='M0 90V70h40V50h8V30l4-6 4 6v20h8v20h60V58c0-24 22-40 46-46 0-6 3-10 6-12 3 2 6 6 6 12 24 6 46 22 46 46v12h60V50h8V30l4-6 4 6v20h8v20h40v20z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 460 90' preserveAspectRatio='none'%3E%3Cpath d='M0 90V70h40V50h8V30l4-6 4 6v20h8v20h60V58c0-24 22-40 46-46 0-6 3-10 6-12 3 2 6 6 6 12 24 6 46 22 46 46v12h60V50h8V30l4-6 4 6v20h8v20h40v20z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}

/* --- Khidmat (tahlil, haul): tenang, tanpa hiasan ramai --- */
.gaya-khidmat .person .photo { border-radius: 12px; }
.gaya-khidmat .script { color: var(--text); }
.gaya-khidmat .reveal { transform: none; }
.gaya-khidmat .event-card, .gaya-khidmat .gift-card { border-radius: 12px; }

/* --- Ceria: konfeti, sudut membulat, tombol "pop" --- */
.gaya-ceria .content > .sec:not(.hero):not(.closing) {
    background-image:
        radial-gradient(circle at 12% 18%, rgba(var(--accent-rgb), .35) 0 5px, transparent 6px),
        radial-gradient(circle at 88% 12%, #ffd16655 0 7px, transparent 8px),
        radial-gradient(circle at 80% 85%, #06d6a055 0 5px, transparent 6px),
        radial-gradient(circle at 15% 90%, #118ab255 0 6px, transparent 7px),
        radial-gradient(circle at 50% 4%, #ef476f44 0 4px, transparent 5px);
}
.gaya-ceria .person .photo { border-radius: 42% 58% 55% 45% / 50% 45% 55% 50%; border-width: 3px; }
.gaya-ceria .event-card, .gaya-ceria .gift-card, .gaya-ceria .rsvp-form, .gaya-ceria .wish { border-radius: 28px; border-width: 2px; }
.gaya-ceria .btn-open { box-shadow: 0 5px 0 rgba(0,0,0,.18); }
.gaya-ceria .sec-title { font-weight: 600; }

/* --- Rustic: garis putus-putus, tekstur kertas --- */
.gaya-rustic .content > .sec:not(.hero):not(.closing) { background-image: repeating-linear-gradient(0deg, rgba(var(--accent-rgb), .05) 0 1px, transparent 1px 6px); }
.gaya-rustic .event-card, .gaya-rustic .gift-card, .gaya-rustic .rsvp-form { border-style: dashed; border-width: 1.5px; border-radius: 16px; }
.gaya-rustic .person .photo { border-radius: 16px; border-style: dashed; }

/* --- Luxury: bingkai ganda art-deco --- */
.gaya-luxury .event-card, .gaya-luxury .gift-card { border-radius: 0; outline: 1px solid var(--line); outline-offset: 5px; margin: 6px; }
.gaya-luxury .person .photo { border-radius: 0; outline: 1px solid var(--line); outline-offset: 6px; }
.gaya-luxury .content > .sec:not(.hero)::before { content: ""; position: absolute; left: 50%; top: 26px; width: 1px; height: 30px; background: var(--accent); opacity: .7; }
.gaya-luxury .btn-open, .gaya-luxury .btn-sm { border-radius: 0; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; }
.gaya-luxury .script { letter-spacing: .04em; }
.gaya-luxury .big { font-size: clamp(2rem, 9vw, 2.7rem); }
.gaya-luxury .person .name { font-size: 1.8rem; }

/* --- Tradisional: motif kawung --- */
.gaya-tradisi {
    --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='%23000'%3E%3Cellipse cx='20' cy='9' rx='5' ry='8'/%3E%3Cellipse cx='20' cy='31' rx='5' ry='8'/%3E%3Cellipse cx='9' cy='20' rx='8' ry='5'/%3E%3Cellipse cx='31' cy='20' rx='8' ry='5'/%3E%3C/g%3E%3C/svg%3E");
    --pat-size: 40px; --pat-op: .08;
}
.gaya-tradisi .event-card { border-width: 2px; border-style: double; border-color: var(--accent); }
.gaya-tradisi .content > .sec:not(.hero)::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: repeating-linear-gradient(90deg, var(--accent) 0 10px, transparent 10px 14px, var(--accent) 14px 16px, transparent 16px 20px); opacity: .55; }

/* --- Elegan: foto lengkung, garis emas tipis --- */
.gaya-elegan .event-card { border-radius: 160px 160px 22px 22px; padding-top: 44px; }

/* =========================================================
 * v1.6 — GAYA KEKINIAN (animasi & layout khas)
 * ========================================================= */
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 45; overflow: hidden; }
@media (min-width: 900px) { .fx { left: auto; width: 460px; } }
.fx span { position: absolute; display: block; }

/* --- Aesthetic: minimalis editorial, rata kiri, foto portrait, teks blur-in --- */
.gaya-aesthetic .script { font-style: italic; letter-spacing: -.01em; }
.gaya-aesthetic .big { font-size: clamp(3rem, 14vw, 4.2rem); line-height: .95; }
.gaya-aesthetic .eyebrow { letter-spacing: .5em; font-size: .68rem; }
.gaya-aesthetic .content > .sec:not(.hero):not(.closing) { text-align: left; padding: 84px 32px; }
.gaya-aesthetic .content > .sec:not(.hero):not(.closing) .divider { margin-left: 0; }
.gaya-aesthetic .sec-title { font-family: var(--f-head); font-style: italic; color: var(--text); font-size: 2.6rem; border-bottom: 1px solid var(--line); padding-bottom: .6rem; }
.gaya-aesthetic .person { text-align: left; display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: end; }
.gaya-aesthetic .person .photo { width: 120px; height: 160px; margin: 0; border-radius: 2px; padding: 0; border: 0; filter: grayscale(.15); }
.gaya-aesthetic .amp { text-align: left; font-style: italic; }
.gaya-aesthetic .event-card, .gaya-aesthetic .gift-card, .gaya-aesthetic .rsvp-form, .gaya-aesthetic .wish { border-radius: 2px; border: 0; border-top: 1px solid var(--text); background: transparent; padding-left: 0; padding-right: 0; }
.gaya-aesthetic .gift-card { align-items: flex-start; }
.gaya-aesthetic .ev-actions, .gaya-aesthetic .rsvp-stats { justify-content: flex-start; }
.gaya-aesthetic .btn-open, .gaya-aesthetic .btn-sm { border-radius: 0; background: var(--text); color: var(--bg); border-color: var(--text); letter-spacing: .2em; text-transform: uppercase; font-size: .72rem; }
.gaya-aesthetic .btn-sm.ghost { background: transparent; color: var(--text); }
.gaya-aesthetic .gallery { grid-template-columns: 1fr 1fr 1fr; gap: 4px; }
.gaya-aesthetic .g-item { border-radius: 0; aspect-ratio: 3/4; }
.gaya-aesthetic .g-item:first-child { grid-column: 1 / 3; grid-row: span 2; aspect-ratio: auto; }
.gaya-aesthetic .reveal { filter: blur(8px); transform: translateY(12px); transition: opacity 1.2s ease, transform 1.2s ease, filter 1.2s ease; }
.gaya-aesthetic .reveal.in { filter: none; }
.gaya-aesthetic .countdown div { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; }

/* --- Glass: gradasi mesh, kartu kaca buram, blob melayang --- */
.gaya-glass .inv-main, .gaya-glass .sec.alt { background: transparent; }
body.gaya-glass { background: radial-gradient(120% 80% at 10% 0%, rgba(var(--accent-rgb), .55), transparent 55%), radial-gradient(90% 70% at 100% 40%, rgba(var(--accent-rgb), .3), transparent 60%), var(--bg); background-attachment: fixed; }
.gaya-glass .fx span { border-radius: 50%; filter: blur(40px); opacity: .55; background: rgba(var(--accent-rgb), .7); animation: glassFloat 18s ease-in-out infinite alternate; }
@keyframes glassFloat { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, -60px) scale(1.25); } 100% { transform: translate(-30px, 40px) scale(.9); } }
.gaya-glass .fx { z-index: 0; }
.gaya-glass .inv-main { z-index: 1; }
.gaya-glass .event-card, .gaya-glass .gift-card, .gaya-glass .rsvp-form, .gaya-glass .wish, .gaya-glass .guest-box, .gaya-glass .countdown div, .gaya-glass .rsvp-stats div {
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .12); border-radius: 24px;
}
.gaya-glass .person .photo { border-radius: 30px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); }
.gaya-glass .btn-open { background: linear-gradient(135deg, var(--accent), rgba(var(--accent-rgb), .6)); box-shadow: 0 10px 30px -8px rgba(var(--accent-rgb), .9), inset 0 1px 0 rgba(255,255,255,.4); }
.gaya-glass .sec-title { font-size: 3rem; }
.gaya-glass .reveal { transform: translateY(30px) scale(.96); }
.gaya-glass .g-item { border-radius: 20px; }

/* --- Cinematic: letterbox, film grain, Ken Burns, teks terbuka dari atas --- */
.gaya-cinema .cover::before, .gaya-cinema .cover::after { content: ""; position: absolute; left: 0; right: 0; height: 9vh; background: #000; z-index: 2; }
.gaya-cinema .cover::before { top: 0; }
.gaya-cinema .cover::after { bottom: 0; }
.gaya-cinema .cover, .gaya-cinema .hero, .gaya-cinema .closing { background-size: auto, 115% auto, auto; animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { from { background-position: center, 45% 40%, center; } to { background-position: center, 55% 60%, center; } }
.gaya-cinema .fx { opacity: .1; mix-blend-mode: overlay; inset: -10%; background-image: 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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain .6s steps(4) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-5%, 3%); } 50% { transform: translate(4%, -4%); } 75% { transform: translate(-3%, -2%); } }
.gaya-cinema .eyebrow, .gaya-cinema .date-line { letter-spacing: .6em; }
.gaya-cinema .sec-title { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .3em; font-size: 1.3rem; color: var(--accent); }
.gaya-cinema .sec-title::before { content: ""; display: block; width: 1px; height: 46px; background: var(--accent); margin: 0 auto 18px; }
.gaya-cinema .big { text-transform: uppercase; letter-spacing: .05em; font-size: clamp(2.4rem, 11vw, 3.3rem); }
.gaya-cinema .person .photo { border-radius: 0; padding: 0; width: 100%; max-width: 300px; height: 380px; border: 0; }
.gaya-cinema .person .photo img { filter: grayscale(1) contrast(1.05); transition: filter 1.6s; }
.gaya-cinema .person.in .photo img { filter: grayscale(0); }
.gaya-cinema .event-card, .gaya-cinema .gift-card { border-radius: 0; border: 0; border-left: 2px solid var(--accent); text-align: left; background: rgba(255,255,255,.03); }
.gaya-cinema .gift-card { align-items: flex-start; }
.gaya-cinema .event-card h4 { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .2em; font-size: 1.1rem; }
.gaya-cinema .ev-actions { justify-content: flex-start; }
.gaya-cinema .btn-open, .gaya-cinema .btn-sm { border-radius: 0; text-transform: uppercase; letter-spacing: .2em; font-size: .72rem; }
.gaya-cinema .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 6px; padding: 12px 6px; background: #000; border-block: 10px dashed rgba(255,255,255,.2); }
.gaya-cinema .g-item { flex: 0 0 72%; aspect-ratio: 4/5 !important; border-radius: 0; scroll-snap-align: center; }
/* Tirai dibuka lewat animasi saat .in (elemen tidak pernah terpotong penuh sebelum terlihat,
   karena Chrome menganggap elemen terpotong penuh berukuran nol → animasi muncul tak pernah terpicu) */
.gaya-cinema .reveal { transform: none; transition: opacity .2s; }
.gaya-cinema .reveal.in { animation: wipeDown 1.2s cubic-bezier(.7,0,.3,1) both; }
@keyframes wipeDown { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

/* --- Botanical: kelopak berjatuhan, daun bergoyang di sudut --- */
.gaya-botanical .fx span { width: 14px; height: 10px; border-radius: 80% 0 80% 0; background: var(--accent); opacity: .5; top: -20px; animation: petalFall linear infinite; }
@keyframes petalFall { 0% { transform: translate(0, -20px) rotate(0); } 50% { transform: translate(40px, 50vh) rotate(200deg); } 100% { transform: translate(-20px, 105vh) rotate(420deg); } }
.gaya-botanical .content > .sec:not(.hero)::before, .gaya-botanical .content > .sec:not(.hero)::after {
    content: ""; position: absolute; width: 120px; height: 120px; pointer-events: none; background: var(--accent); opacity: .22;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M5 95C30 70 50 40 95 5' stroke='%23000' stroke-width='2' fill='none'/%3E%3Cpath d='M30 70c-12-2-20-12-20-24 12 2 20 12 20 24zM45 52c-12-4-18-15-16-27 11 4 18 15 16 27zM60 36c-10-6-14-17-10-28 10 6 14 17 10 28zM40 75c4-11 15-17 27-15-4 11-15 17-27 15zM56 57c5-11 16-16 28-13-5 11-16 16-28 13zM72 39c6-10 17-14 28-10-6 10-17 14-28 10z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M5 95C30 70 50 40 95 5' stroke='%23000' stroke-width='2' fill='none'/%3E%3Cpath d='M30 70c-12-2-20-12-20-24 12 2 20 12 20 24zM45 52c-12-4-18-15-16-27 11 4 18 15 16 27zM60 36c-10-6-14-17-10-28 10 6 14 17 10 28zM40 75c4-11 15-17 27-15-4 11-15 17-27 15zM56 57c5-11 16-16 28-13-5 11-16 16-28 13zM72 39c6-10 17-14 28-10-6 10-17 14-28 10z'/%3E%3C/svg%3E") center / contain no-repeat;
    animation: sway 6s ease-in-out infinite alternate;
}
.gaya-botanical .content > .sec:not(.hero)::before { left: -18px; top: -10px; transform-origin: 0 0; }
.gaya-botanical .content > .sec:not(.hero)::after { right: -18px; bottom: -10px; transform: scale(-1, -1); transform-origin: 100% 100%; animation-name: sway2; }
@keyframes sway { from { rotate: -3deg; } to { rotate: 4deg; } }
@keyframes sway2 { from { rotate: 3deg; } to { rotate: -4deg; } }
.gaya-botanical .person .photo { border-radius: 50% 50% 46% 54% / 60% 60% 40% 40%; padding: 8px; border-width: 2px; }
.gaya-botanical .event-card { border-radius: 120px 120px 24px 24px; padding-top: 50px; }
.gaya-botanical .gift-card, .gaya-botanical .rsvp-form { border-radius: 26px; }
.gaya-botanical .reveal { transform: translateY(30px) rotate(-1deg); }

/* --- Retro Pop: garis tebal, bayangan stiker, gerak memantul, pita berjalan --- */
.gaya-retro .event-card, .gaya-retro .gift-card, .gaya-retro .rsvp-form, .gaya-retro .wish, .gaya-retro .guest-box, .gaya-retro .countdown div, .gaya-retro .rsvp-stats div {
    border: 2.5px solid var(--text); border-radius: 18px; box-shadow: 6px 6px 0 var(--text); background: var(--bg);
}
.gaya-retro .event-card:nth-child(even) { rotate: 1.5deg; }
.gaya-retro .event-card:nth-child(odd) { rotate: -1.2deg; }
.gaya-retro .btn-open, .gaya-retro .btn-sm { border: 2.5px solid var(--text); box-shadow: 4px 4px 0 var(--text); border-radius: 999px; transition: transform .15s, box-shadow .15s; }
.gaya-retro .btn-open:active, .gaya-retro .btn-sm:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--text); }
.gaya-retro .sec-title { font-size: 2.8rem; text-shadow: 3px 3px 0 var(--text); }
.gaya-retro .big { text-shadow: 4px 4px 0 var(--text); }
.gaya-retro .person .photo { border: 3px solid var(--text); box-shadow: 8px 8px 0 var(--accent); border-radius: 24px; padding: 0; }
.gaya-retro .g-item { border: 2.5px solid var(--text); border-radius: 14px; box-shadow: 4px 4px 0 var(--text); }
.gaya-retro .content > .sec.alt { background: repeating-linear-gradient(45deg, rgba(var(--accent-rgb), .07) 0 14px, transparent 14px 28px), var(--bg2); }
.gaya-retro .hero { overflow: hidden; }
.gaya-retro .hero::after { content: "SAVE THE DATE \2726  SAVE THE DATE \2726  SAVE THE DATE \2726  SAVE THE DATE \2726  SAVE THE DATE \2726  SAVE THE DATE \2726  "; position: absolute; left: -10%; bottom: 34px; white-space: nowrap; font: 800 1rem/1 var(--f-head); letter-spacing: .1em; padding: 10px 0; background: var(--accent); color: var(--accent-ink); border-block: 2.5px solid var(--text); rotate: -3deg; width: max-content; animation: marquee 22s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
.gaya-retro .reveal { transform: translateY(40px) scale(.9); transition: opacity .5s, transform .6s cubic-bezier(.34, 1.56, .64, 1); }

/* --- Celestial: bintang berkelip, bintang jatuh, bulan sabit, judul berkilau --- */
.gaya-celestial .fx span { width: 2px; height: 2px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px rgba(var(--accent-rgb), .9); animation: twinkle 3s ease-in-out infinite; }
.gaya-celestial .fx span.shoot { width: 90px; height: 1px; border-radius: 0; background: linear-gradient(90deg, rgba(var(--accent-rgb), .9), transparent); box-shadow: none; animation: shoot 7s ease-in infinite; }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.3); } }
@keyframes shoot { 0%, 85% { opacity: 0; transform: translate(0, 0) rotate(-30deg); } 88% { opacity: 1; } 100% { opacity: 0; transform: translate(-320px, 180px) rotate(-30deg); } }
.gaya-celestial .big, .gaya-celestial .sec-title { background: linear-gradient(110deg, var(--accent) 20%, #fff 40%, var(--accent) 60%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 5s linear infinite; }
@keyframes shimmer { to { background-position: -250% 0; } }
.gaya-celestial .hero::before { content: ""; position: absolute; top: 9%; right: 14%; width: 64px; height: 64px; border-radius: 50%; box-shadow: -14px 8px 0 0 var(--accent); opacity: .85; filter: drop-shadow(0 0 14px rgba(var(--accent-rgb), .6)); }
.gaya-celestial .person .photo { border-radius: 50%; width: 190px; height: 190px; border: 1px solid var(--accent); box-shadow: 0 0 0 8px rgba(var(--accent-rgb), .08), 0 0 40px rgba(var(--accent-rgb), .35); }
.gaya-celestial .event-card { border-radius: 999px 999px 24px 24px; padding-top: 56px; box-shadow: 0 0 30px rgba(var(--accent-rgb), .12); }
.gaya-celestial .reveal { transform: translateY(20px); filter: brightness(1.6); transition: opacity 1s, transform 1s, filter 1.4s; }
.gaya-celestial .reveal.in { filter: none; }

/* Animasi judul per huruf (diisi oleh undangan.js) */
.split-ch { display: inline-block; opacity: 0; transform: translateY(.5em); animation: chIn .7s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(var(--i) * 45ms + .3s); white-space: pre; }
@keyframes chIn { to { opacity: 1; transform: none; } }
.gaya-retro .split-ch { animation-name: chPop; }
@keyframes chPop { 0% { opacity: 0; transform: translateY(.6em) scale(.4); } 70% { opacity: 1; transform: scale(1.15); } 100% { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .fx, .gaya-retro .hero::after { display: none; }
    .split-ch { animation: none; opacity: 1; transform: none; }
    .gaya-cinema .cover, .gaya-cinema .hero, .gaya-cinema .closing, .gaya-botanical .sec::before, .gaya-botanical .sec::after, .gaya-celestial .big, .gaya-celestial .sec-title { animation: none !important; }
    .gaya-aesthetic .reveal, .gaya-cinema .reveal, .gaya-celestial .reveal { filter: none; clip-path: none; }
}
/* Mode klip video (html2canvas): matikan efek yang tidak tertangkap */
.klip .split-ch { animation: none; opacity: 1; transform: none; }
.klip.gaya-celestial .big, .klip.gaya-celestial .sec-title { background: none; color: var(--accent); }
.klip.gaya-cinema .reveal { clip-path: none; }
.klip.gaya-aesthetic .reveal, .klip.gaya-celestial .reveal { filter: none; }
.klip.gaya-cinema .gallery { display: grid; grid-template-columns: 1fr 1fr; }
.klip.gaya-cinema .cover, .klip.gaya-cinema .hero, .klip.gaya-cinema .closing { animation: none; background-size: auto, cover, auto; }
.gaya-celestial .fx, .gaya-botanical .fx { z-index: 55; }
/* v1.6: pastikan elemen kembali ke posisi normal setelah animasi muncul (semua gaya) */
body.inv .reveal.in { transform: none; }

/* ===== Animasi galeri ===== */
/* Muncul bergiliran (stagger) + sedikit membesar; gaya cinema tetap pakai efek tirainya */
.gallery .g-item.reveal { transition-delay: calc(var(--i, 0) * 110ms); }
body:not(.gaya-cinema) .gallery:not([data-anim]) .g-item.reveal:not(.in),
body:not(.gaya-cinema) .gallery[data-anim="auto"] .g-item.reveal:not(.in) { transform: translateY(26px) scale(.9); }
.g-item { position: relative; isolation: isolate; }
.g-item img { transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .5s; }
/* Kilau melintas sekali saat foto muncul */
.g-item::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
    transform: translateX(-120%);
}
.g-item.in::after { animation: g-shine 1.1s ease calc(var(--i, 0) * 110ms + .45s) 1 both; }
@keyframes g-shine { to { transform: translateX(120%); } }
/* Foto utama (pertama) bergerak pelan ala Ken Burns */
.g-item.in:first-child img { animation: g-kenburns 16s ease-in-out infinite alternate; }
@keyframes g-kenburns { from { transform: scale(1); } to { transform: scale(1.12) translate(-2%, -2%); } }
/* Hover / fokus: zoom + ikon perbesar */
.g-zoom {
    position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; color: #fff; font-size: 1.3rem;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .45)); opacity: 0; transition: opacity .35s;
}
.g-zoom i { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .22); backdrop-filter: blur(4px); transform: scale(.6); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.g-item:hover .g-zoom, .g-item:focus-visible .g-zoom { opacity: 1; }
.g-item:hover .g-zoom i, .g-item:focus-visible .g-zoom i { transform: none; }
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.08); animation-play-state: paused; }

/* Lightbox: latar memudar, foto membesar dari posisi foto yang diketuk, geser kiri/kanan */
.lb { display: flex !important; align-items: center; justify-content: center; z-index: 200; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; background: rgba(0, 0, 0, .92); }
.lb.open { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.lb img { width: auto; height: auto; max-width: min(100%, 1100px); max-height: 82vh; min-width: 0; object-fit: contain; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8); transform-origin: var(--ox, 50%) var(--oy, 50%); transform: scale(.6); opacity: 0; transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .35s; }
.lb.open img { transform: none; opacity: 1; }
.lb img.slide-l { animation: lb-in-l .4s cubic-bezier(.2, .8, .2, 1); }
.lb img.slide-r { animation: lb-in-r .4s cubic-bezier(.2, .8, .2, 1); }
@keyframes lb-in-l { from { opacity: 0; transform: translateX(60px) scale(.96); } }
@keyframes lb-in-r { from { opacity: 0; transform: translateX(-60px) scale(.96); } }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.2rem; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(4px); transition: background .2s; z-index: 2; }
.lb-nav:hover { background: rgba(255, 255, 255, .3); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .85); font-size: .85rem; letter-spacing: .08em; background: rgba(255, 255, 255, .12); padding: .3em .9em; border-radius: 999px; }
.lb-close { z-index: 2; }
.lb.single .lb-nav, .lb.single .lb-count { display: none; }

@media (prefers-reduced-motion: reduce) {
    .g-item::after, .g-item.in:first-child img { animation: none; }
    body:not(.gaya-cinema) .gallery .g-item.reveal:not(.in) { transform: none; }
    .lb img, .lb.open img { transition: none; transform: none; }
    .lb img.slide-l, .lb img.slide-r { animation: none; }
}
.klip .lb { display: none !important; }
.klip .g-item::after, .klip .g-zoom { display: none; }
.klip .g-item img { animation: none !important; }

/* ===== Pilihan animasi galeri (data-anim di .gallery; "auto" = ikut gaya template) ===== */
body .gallery[data-anim]:not([data-anim="auto"]) .g-item.reveal {
    opacity: 0; transform: none; filter: none; clip-path: none;
    transition: opacity .8s ease, transform .9s cubic-bezier(.2, .8, .2, 1), filter .9s ease, clip-path 1s cubic-bezier(.7, 0, .3, 1);
    transition-delay: calc(var(--i, 0) * 120ms);
}
body .gallery[data-anim]:not([data-anim="auto"]) .g-item.reveal.in { opacity: 1; transform: none; filter: none; }

/* Pudar halus */
body .gallery[data-anim="pudar"] .g-item.reveal { transition-duration: 1.4s, .9s, .9s, 1s; }
/* Membesar / mengecil */
body .gallery[data-anim="zoom"] .g-item.reveal:not(.in) { transform: scale(.6); }
body .gallery[data-anim="zoomout"] .g-item.reveal:not(.in) { transform: scale(1.35); }
/* Naik dari bawah */
body .gallery[data-anim="naik"] .g-item.reveal:not(.in) { transform: translateY(70px); }
/* Masuk dari samping, bergantian kiri–kanan */
body .gallery[data-anim="samping"] .g-item.reveal:not(.in):nth-child(odd) { transform: translateX(-70px); }
body .gallery[data-anim="samping"] .g-item.reveal:not(.in):nth-child(even) { transform: translateX(70px); }
/* Balik kartu 3D */
body .gallery[data-anim="flip"] .g-item.reveal { transform-origin: center; backface-visibility: hidden; transition-duration: .6s, 1s, .9s, 1s; }
body .gallery[data-anim="flip"] .g-item.reveal:not(.in) { transform: perspective(900px) rotateY(-95deg); }
/* Berputar */
body .gallery[data-anim="putar"] .g-item.reveal:not(.in):nth-child(odd) { transform: rotate(-14deg) scale(.7); }
body .gallery[data-anim="putar"] .g-item.reveal:not(.in):nth-child(even) { transform: rotate(14deg) scale(.7); }
/* Fokus dari buram */
body .gallery[data-anim="blur"] .g-item.reveal:not(.in) { filter: blur(16px); transform: scale(1.08); }
body .gallery[data-anim="blur"] .g-item.reveal { transition-duration: 1s, 1.2s, 1.2s, 1s; }
/* Polaroid jatuh: bingkai putih, jatuh miring lalu tetap sedikit miring */
body .gallery[data-anim="polaroid"] { gap: 14px; padding: 6px; }
body .gallery[data-anim="polaroid"] .g-item { background: #fff; padding: 7px 7px 22px; border-radius: 3px; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); }
body .gallery[data-anim="polaroid"] .g-item img { border-radius: 1px; }
body .gallery[data-anim="polaroid"] .g-item.reveal { transition-timing-function: ease, cubic-bezier(.34, 1.4, .64, 1), ease, ease; transition-duration: .6s, 1s, .9s, 1s; }
body .gallery[data-anim="polaroid"] .g-item.reveal:not(.in) { transform: translateY(-90px) rotate(-18deg) scale(1.1); }
body .gallery[data-anim="polaroid"] .g-item.reveal.in:nth-child(odd) { transform: rotate(-2.5deg); }
body .gallery[data-anim="polaroid"] .g-item.reveal.in:nth-child(even) { transform: rotate(2deg); }
body .gallery[data-anim="polaroid"] .g-item.reveal.in:hover { transform: rotate(0) scale(1.03); z-index: 3; }
/* Tirai terbuka dari tengah */
body .gallery[data-anim="tirai"] .g-item.reveal.in { animation: wipeMid 1s cubic-bezier(.7, 0, .3, 1) both; animation-delay: calc(var(--i, 0) * 120ms); transition-duration: .1s; }
@keyframes wipeMid { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0 0 0 0); } }
/* Lingkaran membuka */
body .gallery[data-anim="lingkaran"] .g-item.reveal.in { animation: wipeCircle 1.2s cubic-bezier(.7, 0, .3, 1) both; animation-delay: calc(var(--i, 0) * 120ms); transition-duration: .1s; }
@keyframes wipeCircle { from { clip-path: circle(0% at 50% 50%); } to { clip-path: circle(75% at 50% 50%); } }
body .gallery[data-anim="lingkaran"] .g-item.reveal { transition-duration: .8s, .9s, .9s, 1.2s; }
/* Memantul */
body .gallery[data-anim="pantul"] .g-item.reveal { transition-timing-function: ease, cubic-bezier(.34, 1.7, .5, 1), ease, ease; transition-duration: .5s, .9s, .9s, 1s; }
body .gallery[data-anim="pantul"] .g-item.reveal:not(.in) { transform: translateY(80px) scale(.75); }
/* Kilat cahaya */
body .gallery[data-anim="kilat"] .g-item.reveal:not(.in) { filter: brightness(3) saturate(0); transform: scale(1.05); }
body .gallery[data-anim="kilat"] .g-item.reveal { transition-duration: .4s, 1s, 1.1s, 1s; }

/* Gaya cinema: galeri berbentuk pita film geser; animasi pilihan tetap berlaku per foto */
@media (prefers-reduced-motion: reduce) {
    body .gallery[data-anim] .g-item.reveal { transform: none !important; filter: none !important; clip-path: none !important; opacity: 1 !important; transition: none !important; }
}
.klip .gallery .g-item.reveal { filter: none !important; clip-path: none !important; }

/* =========================================================
 * v1.9 — 10 GAYA BARU (terinspirasi kategori populer undangan website)
 *  3D Motion · Ilustrasi Tanpa Foto · Syar'i · Luxury Marmer · Art Lukis ·
 *  Adat Nusantara · Monochrome · Minimalis · Bunga Goyang · Petualang Ceria
 * ========================================================= */
/* Ornamen SVG (dipakai sebagai mask/latar) */
:root {
    --svg-arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='80' viewBox='0 0 60 80'%3E%3Cpath d='M10 76V34a20 20 0 0 1 40 0v42' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3Cpath d='M30 6l3 5-3 5-3-5z'/%3E%3C/svg%3E");
    --svg-brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M2 12c30-8 60-6 90-4s70 4 106-6c-30 10-70 12-104 10S30 16 2 14z'/%3E%3C/svg%3E");
    --svg-bunga: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 130 160'%3E%3Cline x1='10' y1='0' x2='10' y2='120' stroke='%23000' stroke-width='1.2'/%3E%3Cellipse cx='10' cy='14.0' rx='2.2' ry='4.0' transform='rotate(0 10 18.0)'/%3E%3Cellipse cx='10' cy='14.0' rx='2.2' ry='4.0' transform='rotate(60 10 18.0)'/%3E%3Cellipse cx='10' cy='14.0' rx='2.2' ry='4.0' transform='rotate(120 10 18.0)'/%3E%3Cellipse cx='10' cy='14.0' rx='2.2' ry='4.0' transform='rotate(180 10 18.0)'/%3E%3Cellipse cx='10' cy='14.0' rx='2.2' ry='4.0' transform='rotate(240 10 18.0)'/%3E%3Cellipse cx='10' cy='14.0' rx='2.2' ry='4.0' transform='rotate(300 10 18.0)'/%3E%3Ccircle cx='10' cy='18.0' r='1.8' fill='%23fff' fill-opacity='.6'/%3E%3Cellipse cx='10' cy='48.0' rx='2.2' ry='4.0' transform='rotate(0 10 52.0)'/%3E%3Cellipse cx='10' cy='48.0' rx='2.2' ry='4.0' transform='rotate(60 10 52.0)'/%3E%3Cellipse cx='10' cy='48.0' rx='2.2' ry='4.0' transform='rotate(120 10 52.0)'/%3E%3Cellipse cx='10' cy='48.0' rx='2.2' ry='4.0' transform='rotate(180 10 52.0)'/%3E%3Cellipse cx='10' cy='48.0' rx='2.2' ry='4.0' transform='rotate(240 10 52.0)'/%3E%3Cellipse cx='10' cy='48.0' rx='2.2' ry='4.0' transform='rotate(300 10 52.0)'/%3E%3Ccircle cx='10' cy='52.0' r='1.8' fill='%23fff' fill-opacity='.6'/%3E%3Cellipse cx='10' cy='82.0' rx='2.2' ry='4.0' transform='rotate(0 10 86.0)'/%3E%3Cellipse cx='10' cy='82.0' rx='2.2' ry='4.0' transform='rotate(60 10 86.0)'/%3E%3Cellipse cx='10' cy='82.0' rx='2.2' ry='4.0' transform='rotate(120 10 86.0)'/%3E%3Cellipse cx='10' cy='82.0' rx='2.2' ry='4.0' transform='rotate(180 10 86.0)'/%3E%3Cellipse cx='10' cy='82.0' rx='2.2' ry='4.0' transform='rotate(240 10 86.0)'/%3E%3Cellipse cx='10' cy='82.0' rx='2.2' ry='4.0' transform='rotate(300 10 86.0)'/%3E%3Ccircle cx='10' cy='86.0' r='1.8' fill='%23fff' fill-opacity='.6'/%3E%3Cellipse cx='10' cy='114.5' rx='3.0' ry='5.5' transform='rotate(0 10 120.0)'/%3E%3Cellipse cx='10' cy='114.5' rx='3.0' ry='5.5' transform='rotate(60 10 120.0)'/%3E%3Cellipse cx='10' cy='114.5' rx='3.0' ry='5.5' transform='rotate(120 10 120.0)'/%3E%3Cellipse cx='10' cy='114.5' rx='3.0' ry='5.5' transform='rotate(180 10 120.0)'/%3E%3Cellipse cx='10' cy='114.5' rx='3.0' ry='5.5' transform='rotate(240 10 120.0)'/%3E%3Cellipse cx='10' cy='114.5' rx='3.0' ry='5.5' transform='rotate(300 10 120.0)'/%3E%3Ccircle cx='10' cy='120.0' r='2.5' fill='%23fff' fill-opacity='.6'/%3E%3Cline x1='32' y1='0' x2='32' y2='80' stroke='%23000' stroke-width='1.2'/%3E%3Cellipse cx='32' cy='14.0' rx='2.2' ry='4.0' transform='rotate(0 32 18.0)'/%3E%3Cellipse cx='32' cy='14.0' rx='2.2' ry='4.0' transform='rotate(60 32 18.0)'/%3E%3Cellipse cx='32' cy='14.0' rx='2.2' ry='4.0' transform='rotate(120 32 18.0)'/%3E%3Cellipse cx='32' cy='14.0' rx='2.2' ry='4.0' transform='rotate(180 32 18.0)'/%3E%3Cellipse cx='32' cy='14.0' rx='2.2' ry='4.0' transform='rotate(240 32 18.0)'/%3E%3Cellipse cx='32' cy='14.0' rx='2.2' ry='4.0' transform='rotate(300 32 18.0)'/%3E%3Ccircle cx='32' cy='18.0' r='1.8' fill='%23fff' fill-opacity='.6'/%3E%3Cellipse cx='32' cy='45.0' rx='2.2' ry='4.0' transform='rotate(0 32 49.0)'/%3E%3Cellipse cx='32' cy='45.0' rx='2.2' ry='4.0' transform='rotate(60 32 49.0)'/%3E%3Cellipse cx='32' cy='45.0' rx='2.2' ry='4.0' transform='rotate(120 32 49.0)'/%3E%3Cellipse cx='32' cy='45.0' rx='2.2' ry='4.0' transform='rotate(180 32 49.0)'/%3E%3Cellipse cx='32' cy='45.0' rx='2.2' ry='4.0' transform='rotate(240 32 49.0)'/%3E%3Cellipse cx='32' cy='45.0' rx='2.2' ry='4.0' transform='rotate(300 32 49.0)'/%3E%3Ccircle cx='32' cy='49.0' r='1.8' fill='%23fff' fill-opacity='.6'/%3E%3Cellipse cx='32' cy='74.5' rx='3.0' ry='5.5' transform='rotate(0 32 80.0)'/%3E%3Cellipse cx='32' cy='74.5' rx='3.0' ry='5.5' transform='rotate(60 32 80.0)'/%3E%3Cellipse cx='32' cy='74.5' rx='3.0' ry='5.5' transform='rotate(120 32 80.0)'/%3E%3Cellipse cx='32' cy='74.5' rx='3.0' ry='5.5' transform='rotate(180 32 80.0)'/%3E%3Cellipse cx='32' cy='74.5' rx='3.0' ry='5.5' transform='rotate(240 32 80.0)'/%3E%3Cellipse cx='32' cy='74.5' rx='3.0' ry='5.5' transform='rotate(300 32 80.0)'/%3E%3Ccircle cx='32' cy='80.0' r='2.5' fill='%23fff' fill-opacity='.6'/%3E%3Cline x1='54' y1='0' x2='54' y2='150' stroke='%23000' stroke-width='1.2'/%3E%3Cellipse cx='54' cy='14.0' rx='2.2' ry='4.0' transform='rotate(0 54 18.0)'/%3E%3Cellipse cx='54' cy='14.0' rx='2.2' ry='4.0' transform='rotate(60 54 18.0)'/%3E%3Cellipse cx='54' cy='14.0' rx='2.2' ry='4.0' transform='rotate(120 54 18.0)'/%3E%3Cellipse cx='54' cy='14.0' rx='2.2' ry='4.0' transform='rotate(180 54 18.0)'/%3E%3Cellipse cx='54' cy='14.0' rx='2.2' ry='4.0' transform='rotate(240 54 18.0)'/%3E%3Cellipse cx='54' cy='14.0' rx='2.2' ry='4.0' transform='rotate(300 54 18.0)'/%3E%3Ccircle cx='54' cy='18.0' r='1.8' fill='%23fff' fill-opacity='.6'/%3E%3Cellipse cx='54' cy='47.0' rx='2.2' ry='4.0' transform='rotate(0 54 51.0)'/%3E%3Cellipse cx='54' cy='47.0' rx='2.2' ry='4.0' transform='rotate(60 54 51.0)'/%3E%3Cellipse cx='54' cy='47.0' rx='2.2' ry='4.0' transform='rotate(120 54 51.0)'/%3E%3Cellipse cx='54' cy='47.0' rx='2.2' ry='4.0' transform='rotate(180 54 51.0)'/%3E%3Cellipse cx='54' cy='47.0' rx='2.2' ry='4.0' transform='rotate(240 54 51.0)'/%3E%3Cellipse cx='54' cy='47.0' rx='2.2' ry='4.0' transform='rotate(300 54 51.0)'/%3E%3Ccircle cx='54' cy='51.0' r='1.8' fill='%23fff' fill-opacity='.6'/%3E%3Cellipse cx='54' cy='80.0' rx='2.2' ry='4.0' transform='rotate(0 54 84.0)'/%3E%3Cellipse cx='54' cy='80.0' rx='2.2' ry='4.0' transform='rotate(60 54 84.0)'/%3E%3Cellipse cx='54' cy='80.0' rx='2.2' ry='4.0' transform='rotate(120 54 84.0)'/%3E%3Cellipse cx='54' cy='80.0' rx='2.2' ry='4.0' transform='rotate(180 54 84.0)'/%3E%3Cellipse cx='54' cy='80.0' rx='2.2' ry='4.0' transform='rotate(240 54 84.0)'/%3E%3Cellipse cx='54' cy='80.0' rx='2.2' ry='4.0' transform='rotate(300 54 84.0)'/%3E%3Ccircle cx='54' cy='84.0' r='1.8' fill='%23fff' fill-opacity='.6'/%3E%3Cellipse cx='54' cy='113.0' rx='2.2' ry='4.0' transform='rotate(0 54 117.0)'/%3E%3Cellipse cx='54' cy='113.0' rx='2.2' ry='4.0' transform='rotate(60 54 117.0)'/%3E%3Cellipse cx='54' cy='113.0' rx='2.2' ry='4.0' transform='rotate(120 54 117.0)'/%3E%3Cellipse cx='54' cy='113.0' rx='2.2' ry='4.0' transform='rotate(180 54 117.0)'/%3E%3Cellipse cx='54' cy='113.0' rx='2.2' ry='4.0' transform='rotate(240 54 117.0)'/%3E%3Cellipse cx='54' cy='113.0' rx='2.2' ry='4.0' transform='rotate(300 54 117.0)'/%3E%3Ccircle cx='54' cy='117.0' r='1.8' fill='%23fff' fill-opacity='.6'/%3E%3Cellipse cx='54' cy='144.5' rx='3.0' ry='5.5' transform='rotate(0 54 150.0)'/%3E%3Cellipse cx='54' cy='144.5' rx='3.0' ry='5.5' transform='rotate(60 54 150.0)'/%3E%3Cellipse cx='54' cy='144.5' rx='3.0' ry='5.5' transform='rotate(120 54 150.0)'/%3E%3Cellipse cx='54' cy='144.5' rx='3.0' ry='5.5' transform='rotate(180 54 150.0)'/%3E%3Cellipse cx='54' cy='144.5' rx='3.0' ry='5.5' transform='rotate(240 54 150.0)'/%3E%3Cellipse cx='54' cy='144.5' rx='3.0' ry='5.5' transform='rotate(300 54 150.0)'/%3E%3Ccircle cx='54' cy='150.0' r='2.5' fill='%23fff' fill-opacity='.6'/%3E%3Cline x1='76' y1='0' x2='76' y2='95' stroke='%23000' stroke-width='1.2'/%3E%3Cellipse cx='76' cy='14.0' rx='2.2' ry='4.0' transform='rotate(0 76 18.0)'/%3E%3Cellipse cx='76' cy='14.0' rx='2.2' ry='4.0' transform='rotate(60 76 18.0)'/%3E%3Cellipse cx='76' cy='14.0' rx='2.2' ry='4.0' transform='rotate(120 76 18.0)'/%3E%3Cellipse cx='76' cy='14.0' rx='2.2' ry='4.0' transform='rotate(180 76 18.0)'/%3E%3Cellipse cx='76' cy='14.0' rx='2.2' ry='4.0' transform='rotate(240 76 18.0)'/%3E%3Cellipse cx='76' cy='14.0' rx='2.2' ry='4.0' transform='rotate(300 76 18.0)'/%3E%3Ccircle cx='76' cy='18.0' r='1.8' fill='%23fff' fill-opacity='.6'/%3E%3Cellipse cx='76' cy='52.5' rx='2.2' ry='4.0' transform='rotate(0 76 56.5)'/%3E%3Cellipse cx='76' cy='52.5' rx='2.2' ry='4.0' transform='rotate(60 76 56.5)'/%3E%3Cellipse cx='76' cy='52.5' rx='2.2' ry='4.0' transform='rotate(120 76 56.5)'/%3E%3Cellipse cx='76' cy='52.5' rx='2.2' ry='4.0' transform='rotate(180 76 56.5)'/%3E%3Cellipse cx='76' cy='52.5' rx='2.2' ry='4.0' transform='rotate(240 76 56.5)'/%3E%3Cellipse cx='76' cy='52.5' rx='2.2' ry='4.0' transform='rotate(300 76 56.5)'/%3E%3Ccircle cx='76' cy='56.5' r='1.8' fill='%23fff' fill-opacity='.6'/%3E%3Cellipse cx='76' cy='89.5' rx='3.0' ry='5.5' transform='rotate(0 76 95.0)'/%3E%3Cellipse cx='76' cy='89.5' rx='3.0' ry='5.5' transform='rotate(60 76 95.0)'/%3E%3Cellipse cx='76' cy='89.5' rx='3.0' ry='5.5' transform='rotate(120 76 95.0)'/%3E%3Cellipse cx='76' cy='89.5' rx='3.0' ry='5.5' transform='rotate(180 76 95.0)'/%3E%3Cellipse cx='76' cy='89.5' rx='3.0' ry='5.5' transform='rotate(240 76 95.0)'/%3E%3Cellipse cx='76' cy='89.5' rx='3.0' ry='5.5' transform='rotate(300 76 95.0)'/%3E%3Ccircle cx='76' cy='95.0' r='2.5' fill='%23fff' fill-opacity='.6'/%3E%3Cline x1='98' y1='0' x2='98' y2='130' stroke='%23000' stroke-width='1.2'/%3E%3Cellipse cx='98' cy='14.0' rx='2.2' ry='4.0' transform='rotate(0 98 18.0)'/%3E%3Cellipse cx='98' cy='14.0' rx='2.2' ry='4.0' transform='rotate(60 98 18.0)'/%3E%3Cellipse cx='98' cy='14.0' rx='2.2' ry='4.0' transform='rotate(120 98 18.0)'/%3E%3Cellipse cx='98' cy='14.0' rx='2.2' ry='4.0' transform='rotate(180 98 18.0)'/%3E%3Cellipse cx='98' cy='14.0' rx='2.2' ry='4.0' transform='rotate(240 98 18.0)'/%3E%3Cellipse cx='98' cy='14.0' rx='2.2' ry='4.0' transform='rotate(300 98 18.0)'/%3E%3Ccircle cx='98' cy='18.0' r='1.8' fill='%23fff' fill-opacity='.6'/%3E%3Cellipse cx='98' cy='51.3' rx='2.2' ry='4.0' transform='rotate(0 98 55.3)'/%3E%3Cellipse cx='98' cy='51.3' rx='2.2' ry='4.0' transform='rotate(60 98 55.3)'/%3E%3Cellipse cx='98' cy='51.3' rx='2.2' ry='4.0' transform='rotate(120 98 55.3)'/%3E%3Cellipse cx='98' cy='51.3' rx='2.2' ry='4.0' transform='rotate(180 98 55.3)'/%3E%3Cellipse cx='98' cy='51.3' rx='2.2' ry='4.0' transform='rotate(240 98 55.3)'/%3E%3Cellipse cx='98' cy='51.3' rx='2.2' ry='4.0' transform='rotate(300 98 55.3)'/%3E%3Ccircle cx='98' cy='55.3' r='1.8' fill='%23fff' fill-opacity='.6'/%3E%3Cellipse cx='98' cy='88.7' rx='2.2' ry='4.0' transform='rotate(0 98 92.7)'/%3E%3Cellipse cx='98' cy='88.7' rx='2.2' ry='4.0' transform='rotate(60 98 92.7)'/%3E%3Cellipse cx='98' cy='88.7' rx='2.2' ry='4.0' transform='rotate(120 98 92.7)'/%3E%3Cellipse cx='98' cy='88.7' rx='2.2' ry='4.0' transform='rotate(180 98 92.7)'/%3E%3Cellipse cx='98' cy='88.7' rx='2.2' ry='4.0' transform='rotate(240 98 92.7)'/%3E%3Cellipse cx='98' cy='88.7' rx='2.2' ry='4.0' transform='rotate(300 98 92.7)'/%3E%3Ccircle cx='98' cy='92.7' r='1.8' fill='%23fff' fill-opacity='.6'/%3E%3Cellipse cx='98' cy='124.5' rx='3.0' ry='5.5' transform='rotate(0 98 130.0)'/%3E%3Cellipse cx='98' cy='124.5' rx='3.0' ry='5.5' transform='rotate(60 98 130.0)'/%3E%3Cellipse cx='98' cy='124.5' rx='3.0' ry='5.5' transform='rotate(120 98 130.0)'/%3E%3Cellipse cx='98' cy='124.5' rx='3.0' ry='5.5' transform='rotate(180 98 130.0)'/%3E%3Cellipse cx='98' cy='124.5' rx='3.0' ry='5.5' transform='rotate(240 98 130.0)'/%3E%3Cellipse cx='98' cy='124.5' rx='3.0' ry='5.5' transform='rotate(300 98 130.0)'/%3E%3Ccircle cx='98' cy='130.0' r='2.5' fill='%23fff' fill-opacity='.6'/%3E%3Cline x1='120' y1='0' x2='120' y2='70' stroke='%23000' stroke-width='1.2'/%3E%3Cellipse cx='120' cy='14.0' rx='2.2' ry='4.0' transform='rotate(0 120 18.0)'/%3E%3Cellipse cx='120' cy='14.0' rx='2.2' ry='4.0' transform='rotate(60 120 18.0)'/%3E%3Cellipse cx='120' cy='14.0' rx='2.2' ry='4.0' transform='rotate(120 120 18.0)'/%3E%3Cellipse cx='120' cy='14.0' rx='2.2' ry='4.0' transform='rotate(180 120 18.0)'/%3E%3Cellipse cx='120' cy='14.0' rx='2.2' ry='4.0' transform='rotate(240 120 18.0)'/%3E%3Cellipse cx='120' cy='14.0' rx='2.2' ry='4.0' transform='rotate(300 120 18.0)'/%3E%3Ccircle cx='120' cy='18.0' r='1.8' fill='%23fff' fill-opacity='.6'/%3E%3Cellipse cx='120' cy='64.5' rx='3.0' ry='5.5' transform='rotate(0 120 70.0)'/%3E%3Cellipse cx='120' cy='64.5' rx='3.0' ry='5.5' transform='rotate(60 120 70.0)'/%3E%3Cellipse cx='120' cy='64.5' rx='3.0' ry='5.5' transform='rotate(120 120 70.0)'/%3E%3Cellipse cx='120' cy='64.5' rx='3.0' ry='5.5' transform='rotate(180 120 70.0)'/%3E%3Cellipse cx='120' cy='64.5' rx='3.0' ry='5.5' transform='rotate(240 120 70.0)'/%3E%3Cellipse cx='120' cy='64.5' rx='3.0' ry='5.5' transform='rotate(300 120 70.0)'/%3E%3Ccircle cx='120' cy='70.0' r='2.5' fill='%23fff' fill-opacity='.6'/%3E%3C/svg%3E");
    --svg-lantern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 120'%3E%3Cline x1='20' y1='0' x2='20' y2='40' stroke='%23000' stroke-width='1.5'/%3E%3Cpath d='M14 40h12l3 6H11z'/%3E%3Cpath d='M11 46h18l4 14-4 30H11l-4-30z' fill-opacity='.85'/%3E%3Cpath d='M13 90h14l-3 8h-8z'/%3E%3Ccircle cx='20' cy='104' r='3'/%3E%3Cpath d='M20 46v44M11 60h18' stroke='%23fff' stroke-opacity='.5' fill='none'/%3E%3C/svg%3E");
    --svg-marble: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='turbulence' baseFrequency='.005 .022' numOctaves='4' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 .55  0 0 0 0 .55  0 0 0 0 .55  -16 0 0 0 2.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");
    --svg-mega: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='50' viewBox='0 0 80 50'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.6'%3E%3Cpath d='M6 40c0-8 8-10 12-6 0-10 14-12 18-4 4-8 18-6 18 4 6-2 12 2 10 8z'/%3E%3Cpath d='M14 40c0-5 5-6 8-3 1-6 9-7 12-2 3-5 11-4 11 3 4-1 7 1 6 4'/%3E%3Cpath d='M22 40c1-3 4-3 6-1 1-3 6-3 7 0'/%3E%3C/g%3E%3C/svg%3E");
    --svg-parang: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M-10 30c8-2 8-14 16-16s8-14 16-16M10 50c8-2 8-14 16-16s8-14 16-16M30 30c8-2 8-14 16-16' fill='none' stroke='%23000' stroke-width='3'/%3E%3Ccircle cx='8' cy='34' r='2'/%3E%3Ccircle cx='28' cy='14' r='2'/%3E%3C/svg%3E");
    --svg-patra: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M24 6c6 6 6 12 0 18-6-6-6-12 0-18zM24 42c6-6 6-12 0-18-6 6-6 12 0 18zM6 24c6-6 12-6 18 0-6 6-12 6-18 0zM42 24c-6-6-12-6-18 0 6 6 12 6 18 0z'/%3E%3C/g%3E%3Ccircle cx='24' cy='24' r='2.5'/%3E%3C/svg%3E");
    --svg-songket: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cpath d='M18 2l8 16-8 16-8-16z' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3Cpath d='M18 10l4 8-4 8-4-8z'/%3E%3Ccircle cx='0' cy='0' r='2.5'/%3E%3Ccircle cx='36' cy='0' r='2.5'/%3E%3Ccircle cx='0' cy='36' r='2.5'/%3E%3Ccircle cx='36' cy='36' r='2.5'/%3E%3C/svg%3E");
    --svg-sprig: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M5 95C30 70 50 40 95 5' stroke='%23000' stroke-width='2' fill='none'/%3E%3Cpath d='M30 70c-12-2-20-12-20-24 12 2 20 12 20 24zM45 52c-12-4-18-15-16-27 11 4 18 15 16 27zM60 36c-10-6-14-17-10-28 10 6 14 17 10 28zM40 75c4-11 15-17 27-15-4 11-15 17-27 15zM56 57c5-11 16-16 28-13-5 11-16 16-28 13zM72 39c6-10 17-14 28-10-6 10-17 14-28 10z'/%3E%3C/svg%3E");
    --svg-tumpal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='22' viewBox='0 0 28 22'%3E%3Cpath d='M0 22L14 0l14 22z'/%3E%3Cpath d='M7 22L14 10l7 12z' fill='%23fff' fill-opacity='.35'/%3E%3C/svg%3E");
    --svg-ulos: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='60' viewBox='0 0 24 60'%3E%3Crect x='0' y='0' width='24' height='4'/%3E%3Crect x='0' y='10' width='24' height='1.5'/%3E%3Cpath d='M0 22l6 6 6-6 6 6 6-6v3l-6 6-6-6-6 6-6-6z'/%3E%3Crect x='0' y='40' width='24' height='1.5'/%3E%3Crect x='0' y='48' width='24' height='4'/%3E%3C/svg%3E");
    --svg-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 20' preserveAspectRatio='none'%3E%3Cpath d='M0 10c20-12 40 12 60 0s40 12 60 0v10H0z'/%3E%3C/svg%3E");
    --svg-wreath: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Ccircle cx='100' cy='100' r='82' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3Cellipse cx='182.0' cy='100.0' rx='4.2' ry='10' transform='rotate(65.0 182.0 100.0)'/%3E%3Cellipse cx='179.9' cy='118.2' rx='4.2' ry='10' transform='rotate(127.9 179.9 118.2)'/%3E%3Cellipse cx='173.9' cy='135.6' rx='4.2' ry='10' transform='rotate(90.7 173.9 135.6)'/%3E%3Cellipse cx='164.1' cy='151.1' rx='4.2' ry='10' transform='rotate(153.6 164.1 151.1)'/%3E%3Cellipse cx='151.1' cy='164.1' rx='4.2' ry='10' transform='rotate(116.4 151.1 164.1)'/%3E%3Cellipse cx='135.6' cy='173.9' rx='4.2' ry='10' transform='rotate(179.3 135.6 173.9)'/%3E%3Cellipse cx='118.2' cy='179.9' rx='4.2' ry='10' transform='rotate(142.1 118.2 179.9)'/%3E%3Cellipse cx='81.8' cy='179.9' rx='4.2' ry='10' transform='rotate(167.9 81.8 179.9)'/%3E%3Cellipse cx='64.4' cy='173.9' rx='4.2' ry='10' transform='rotate(230.7 64.4 173.9)'/%3E%3Cellipse cx='48.9' cy='164.1' rx='4.2' ry='10' transform='rotate(193.6 48.9 164.1)'/%3E%3Cellipse cx='35.9' cy='151.1' rx='4.2' ry='10' transform='rotate(256.4 35.9 151.1)'/%3E%3Cellipse cx='26.1' cy='135.6' rx='4.2' ry='10' transform='rotate(219.3 26.1 135.6)'/%3E%3Cellipse cx='20.1' cy='118.2' rx='4.2' ry='10' transform='rotate(282.1 20.1 118.2)'/%3E%3Cellipse cx='18.0' cy='100.0' rx='4.2' ry='10' transform='rotate(245.0 18.0 100.0)'/%3E%3Cellipse cx='20.1' cy='81.8' rx='4.2' ry='10' transform='rotate(307.9 20.1 81.8)'/%3E%3Cellipse cx='26.1' cy='64.4' rx='4.2' ry='10' transform='rotate(270.7 26.1 64.4)'/%3E%3Cellipse cx='35.9' cy='48.9' rx='4.2' ry='10' transform='rotate(333.6 35.9 48.9)'/%3E%3Cellipse cx='48.9' cy='35.9' rx='4.2' ry='10' transform='rotate(296.4 48.9 35.9)'/%3E%3Cellipse cx='64.4' cy='26.1' rx='4.2' ry='10' transform='rotate(359.3 64.4 26.1)'/%3E%3Cellipse cx='81.8' cy='20.1' rx='4.2' ry='10' transform='rotate(322.1 81.8 20.1)'/%3E%3Cellipse cx='100.0' cy='18.0' rx='4.2' ry='10' transform='rotate(385.0 100.0 18.0)'/%3E%3Cellipse cx='118.2' cy='20.1' rx='4.2' ry='10' transform='rotate(347.9 118.2 20.1)'/%3E%3Cellipse cx='135.6' cy='26.1' rx='4.2' ry='10' transform='rotate(410.7 135.6 26.1)'/%3E%3Cellipse cx='151.1' cy='35.9' rx='4.2' ry='10' transform='rotate(373.6 151.1 35.9)'/%3E%3Cellipse cx='164.1' cy='48.9' rx='4.2' ry='10' transform='rotate(436.4 164.1 48.9)'/%3E%3Cellipse cx='173.9' cy='64.4' rx='4.2' ry='10' transform='rotate(399.3 173.9 64.4)'/%3E%3Cellipse cx='179.9' cy='81.8' rx='4.2' ry='10' transform='rotate(462.1 179.9 81.8)'/%3E%3C/svg%3E");
}
.deco { display: none; position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.deco i { position: absolute; display: block; }
.hero-inner { position: relative; z-index: 1; }

/* ---- Bersama: gaya tanpa foto → monogram inisial berbingkai ---- */
.tanpa-foto .person .photo { width: 170px; height: 170px; border-radius: 50%; border: 0; padding: 0; position: relative; overflow: visible; }
.tanpa-foto .person .photo .mono { background: transparent; color: var(--accent); font-size: 4.2rem; position: relative; z-index: 1; }
.tanpa-foto .person .photo::before { content: ""; position: absolute; inset: -14px; background: var(--accent); opacity: .55; -webkit-mask: var(--svg-wreath) center / contain no-repeat; mask: var(--svg-wreath) center / contain no-repeat; animation: wreathSpin 60s linear infinite; }
@keyframes wreathSpin { to { transform: rotate(360deg); } }

/* ---------- 3D Motion: lapisan parallax (ikut gerak HP / mouse), kartu muncul berputar 3D ---------- */
.gaya-motion .deco { display: block; perspective: 800px; }
.gaya-motion .deco i { will-change: transform; transition: transform .25s ease-out; }
.gaya-motion .deco .d1 { inset: 9% 12%; border: 1px solid rgba(var(--accent-rgb), .55); border-radius: 999px 999px 20px 20px; box-shadow: 0 0 0 10px rgba(var(--accent-rgb), .06), inset 0 0 60px rgba(var(--accent-rgb), .18);
    transform: translate3d(calc(var(--mx, 0) * -10px), calc(var(--my, 0) * -10px), -40px); }
.gaya-motion .deco .d2 { width: 220px; height: 220px; left: -60px; top: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-rgb), .5), transparent 65%); filter: blur(6px);
    transform: translate3d(calc(var(--mx, 0) * 26px), calc(var(--my, 0) * 22px), 0); animation: mFloat 9s ease-in-out infinite alternate; }
.gaya-motion .deco .d3 { width: 180px; height: 180px; right: -40px; bottom: 6%; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-rgb), .4), transparent 65%); filter: blur(4px);
    transform: translate3d(calc(var(--mx, 0) * 40px), calc(var(--my, 0) * 34px), 0); animation: mFloat 11s ease-in-out infinite alternate-reverse; }
@keyframes mFloat { to { margin-top: -40px; margin-left: 20px; } }
.gaya-motion .cover-inner, .gaya-motion .hero-inner { transform: translate3d(calc(var(--mx, 0) * 8px), calc(var(--my, 0) * 8px), 0); transition: transform .25s ease-out; }
.gaya-motion .big { color: var(--accent); text-shadow: 1px 1px 0 rgba(0,0,0,.25), 2px 2px 0 rgba(0,0,0,.2), 3px 3px 0 rgba(0,0,0,.15), 4px 6px 14px rgba(0,0,0,.45); }
.gaya-motion .sec-title { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .25em; font-size: 1.35rem; }
.gaya-motion .sec-title::after { content: ""; display: block; width: 60px; height: 2px; margin: 14px auto 0; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.gaya-motion .content { perspective: 1200px; }
.gaya-motion .reveal { transform: rotateX(28deg) translateY(40px); transform-origin: 50% 100%; transition: opacity .9s ease, transform 1.1s cubic-bezier(.2, .8, .2, 1); }
.gaya-motion .event-card, .gaya-motion .gift-card, .gaya-motion .rsvp-form { border-radius: 18px; background: linear-gradient(160deg, rgba(var(--accent-rgb), .12), var(--card) 45%); box-shadow: 0 30px 50px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.08); transform-style: preserve-3d; transition: transform .2s ease-out; }
.gaya-motion .person .photo { border-radius: 24px; padding: 0; border: 0; box-shadow: 0 30px 40px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(var(--accent-rgb), .5), 0 0 0 9px rgba(var(--accent-rgb), .08); }

/* ---------- Ilustrasi Tanpa Foto: karangan daun, ranting di sudut, monogram ---------- */
.gaya-nonfoto .deco { display: block; }
.gaya-nonfoto .deco .d1 { width: min(78vw, 330px); aspect-ratio: 1; left: 50%; top: 36%; translate: -50% -50%; background: var(--accent); opacity: .22; -webkit-mask: var(--svg-wreath) center / contain no-repeat; mask: var(--svg-wreath) center / contain no-repeat; animation: wreathSpin 90s linear infinite; }
.gaya-nonfoto .deco .d2, .gaya-nonfoto .deco .d3 { width: 150px; height: 150px; background: var(--accent); opacity: .35; -webkit-mask: var(--svg-sprig) center / contain no-repeat; mask: var(--svg-sprig) center / contain no-repeat; animation: sway 6s ease-in-out infinite alternate; }
.gaya-nonfoto .deco .d2 { left: -20px; top: -10px; transform-origin: 0 0; }
.gaya-nonfoto .deco .d3 { right: -20px; bottom: -10px; transform: scale(-1, -1); transform-origin: 100% 100%; animation-name: sway2; }
.gaya-nonfoto .sec-title::after { content: "\2766"; display: block; font-size: 1.1rem; margin-top: .4rem; opacity: .7; }
.gaya-nonfoto .event-card { border-radius: 999px 999px 24px 24px; padding-top: 52px; }
.gaya-nonfoto .reveal { transform: translateY(20px) scale(.97); }

/* ---------- Syar'i: pola jendela lengkung, lentera bergoyang, bingkai mihrab ---------- */
.gaya-syari { --pat: var(--svg-arch); --pat-size: 46px; --pat-op: .09; }
.gaya-syari .deco { display: block; }
.gaya-syari .deco .d1 { inset: 7% 10% 6%; border: 1.5px solid rgba(var(--accent-rgb), .55); border-radius: 999px 999px 14px 14px; outline: 1px solid rgba(var(--accent-rgb), .25); outline-offset: 7px; }
.gaya-syari .deco .d2, .gaya-syari .deco .d3 { width: 34px; height: 110px; top: 0; background: var(--accent); opacity: .85; -webkit-mask: var(--svg-lantern) top / contain no-repeat; mask: var(--svg-lantern) top / contain no-repeat; transform-origin: 50% 0; animation: lantern 4s ease-in-out infinite alternate; }
.gaya-syari .deco .d2 { left: 16%; }
.gaya-syari .deco .d3 { right: 16%; height: 80px; animation-delay: -2s; }
@keyframes lantern { from { rotate: -5deg; } to { rotate: 5deg; } }
.gaya-syari .person .photo { border-radius: 999px 999px 16px 16px; width: 160px; height: 200px; }
.gaya-syari .person .photo::before { border-radius: inherit; -webkit-mask: none; mask: none; background: none; border: 1.5px solid var(--accent); inset: -8px; opacity: .6; animation: none; }
.gaya-syari .person .photo .mono { font-family: var(--f-script); }
.gaya-syari .event-card { border-radius: 999px 999px 18px 18px; padding-top: 56px; }
.gaya-syari .event-card::before { content: "\2726"; position: absolute; top: 16px; left: 50%; translate: -50% 0; color: var(--accent); }
.gaya-syari .sec-title { font-family: var(--f-head); font-size: 1.9rem; }

/* ---------- Luxury Marmer: tekstur marmer, teks emas berkilau, bingkai ganda bersudut ---------- */
.gaya-marmer .cover, .gaya-marmer .content > .sec { isolation: isolate; }
.gaya-marmer .cover::after, .gaya-marmer .content > .sec::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--svg-marble) center / 600px; opacity: .5; mix-blend-mode: soft-light; }
.gaya-marmer .big, .gaya-marmer .sec-title, .gaya-marmer .event-card h4, .gaya-marmer .person .name {
    background: linear-gradient(100deg, var(--accent) 0%, #fff6d8 18%, var(--accent) 36%, #8a6a24 55%, var(--accent) 75%, #fff6d8 90%); background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent; animation: foil 7s linear infinite; filter: drop-shadow(0 1px 1px rgba(0,0,0,.45)) drop-shadow(0 0 10px rgba(0,0,0,.18));
}
@keyframes foil { to { background-position: -220% 0; } }
.gaya-marmer .deco { display: block; }
.gaya-marmer .deco .d1 { inset: 16px; border: 1px solid rgba(var(--accent-rgb), .7); }
.gaya-marmer .deco .d2 { inset: 24px; border: 1px solid rgba(var(--accent-rgb), .35); }
.gaya-marmer .deco .d3 { inset: 10px; background:
    linear-gradient(45deg, transparent 46%, var(--accent) 46% 54%, transparent 54%) 0 0 / 22px 22px no-repeat,
    linear-gradient(45deg, transparent 46%, var(--accent) 46% 54%, transparent 54%) 100% 0 / 22px 22px no-repeat,
    linear-gradient(45deg, transparent 46%, var(--accent) 46% 54%, transparent 54%) 0 100% / 22px 22px no-repeat,
    linear-gradient(45deg, transparent 46%, var(--accent) 46% 54%, transparent 54%) 100% 100% / 22px 22px no-repeat; }
.gaya-marmer .event-card, .gaya-marmer .gift-card { border-radius: 2px; border: 1px solid rgba(var(--accent-rgb), .6); outline: 1px solid rgba(var(--accent-rgb), .3); outline-offset: -7px; }
.gaya-marmer .person .photo { border-radius: 0; border: 1px solid var(--accent); outline: 1px solid rgba(var(--accent-rgb), .4); outline-offset: 6px; }
.gaya-marmer .btn-open, .gaya-marmer .btn-sm { border-radius: 2px; background: linear-gradient(135deg, var(--accent), #fff1c4 50%, var(--accent)); color: #2a2110; border: 0; letter-spacing: .15em; text-transform: uppercase; font-size: .78rem; }
.gaya-marmer .reveal { transform: translateY(18px); transition: opacity 1.2s ease, transform 1.2s ease; }

/* ---------- Art Lukis: cat air mengalir, sapuan kuas, bentuk organik ---------- */
.gaya-art .deco { display: block; }
.gaya-art .deco i { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; filter: blur(18px); opacity: .45; animation: blob 14s ease-in-out infinite alternate; }
.gaya-art .deco .d1 { width: 260px; height: 240px; left: -70px; top: -40px; background: rgba(var(--accent-rgb), .8); }
.gaya-art .deco .d2 { width: 220px; height: 200px; right: -60px; top: 30%; background: rgba(var(--accent-rgb), .55); filter: blur(22px) hue-rotate(35deg); animation-duration: 17s; }
.gaya-art .deco .d3 { width: 240px; height: 220px; left: 10%; bottom: -80px; background: rgba(var(--accent-rgb), .6); filter: blur(20px) hue-rotate(-30deg); animation-duration: 20s; }
@keyframes blob { 0% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; transform: translate(0, 0) rotate(0); } 100% { border-radius: 63% 37% 38% 62% / 55% 61% 39% 45%; transform: translate(24px, -18px) rotate(25deg); } }
.gaya-art .sec-title { display: inline-block; position: relative; padding: 0 .3em; }
.gaya-art .sec-title::after { content: ""; position: absolute; left: -6%; right: -6%; bottom: .05em; height: .45em; z-index: -1; background: rgba(var(--accent-rgb), .35); -webkit-mask: var(--svg-brush) center / 100% 100% no-repeat; mask: var(--svg-brush) center / 100% 100% no-repeat; }
.gaya-art .event-card, .gaya-art .gift-card, .gaya-art .rsvp-form { border-radius: 32px 12px 36px 14px; border: 0; background: rgba(var(--accent-rgb), .08); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .25); }
.gaya-art .person .photo { border-radius: 46% 54% 52% 48% / 58% 52% 48% 42%; padding: 0; border: 0; box-shadow: 10px 12px 0 rgba(var(--accent-rgb), .3); }
.gaya-art .g-item { border-radius: 24px 8px 24px 8px; }
.gaya-art .reveal { transform: translateY(26px) rotate(-1.5deg); filter: blur(3px); transition: opacity 1s, transform 1s, filter 1s; }
.gaya-art .reveal.in { filter: none; }

/* ---------- Adat Nusantara: motif sesuai daerah (data-motif), tumpal emas, gunungan ---------- */
.gaya-nusantara { --pat-size: 46px; --pat-op: .12; --pat: var(--svg-songket); }
body[data-motif="jawa"].gaya-nusantara { --pat: var(--svg-parang); --pat-size: 40px; }
body[data-motif="sunda"].gaya-nusantara { --pat: var(--svg-mega); --pat-size: 80px; }
body[data-motif="minang"].gaya-nusantara { --pat: var(--svg-songket); --pat-size: 36px; }
body[data-motif="batak"].gaya-nusantara { --pat: var(--svg-ulos); --pat-size: 24px 60px; --pat-op: .16; }
body[data-motif="bali"].gaya-nusantara { --pat: var(--svg-patra); --pat-size: 48px; }
.gaya-nusantara .deco { display: block; }
.gaya-nusantara .deco .d1 { width: min(70vw, 300px); height: min(86vw, 370px); left: 50%; top: 40%; translate: -50% -50%; border: 2px solid rgba(var(--accent-rgb), .6);
    clip-path: polygon(50% 0, 78% 22%, 100% 55%, 100% 100%, 0 100%, 0 55%, 22% 22%); background: linear-gradient(180deg, rgba(var(--accent-rgb), .16), transparent 70%); }
.gaya-nusantara .deco .d2, .gaya-nusantara .deco .d3 { left: 0; right: 0; height: 22px; background: var(--accent); opacity: .7; -webkit-mask: var(--svg-tumpal) 0 0 / 28px 22px repeat-x; mask: var(--svg-tumpal) 0 0 / 28px 22px repeat-x; }
.gaya-nusantara .deco .d2 { top: 0; transform: scaleY(-1); }
.gaya-nusantara .deco .d3 { bottom: 0; }
.gaya-nusantara .content > .sec:not(.hero)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: var(--accent); opacity: .35; -webkit-mask: var(--svg-tumpal) 0 0 / 16px 12px repeat-x; mask: var(--svg-tumpal) 0 0 / 16px 12px repeat-x; }
.gaya-nusantara .sec-title { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .2em; font-size: 1.4rem; }
.gaya-nusantara .sec-title::before, .gaya-nusantara .sec-title::after { content: "\25C6"; font-size: .6em; vertical-align: middle; margin: 0 .7em; opacity: .8; }
.gaya-nusantara .event-card, .gaya-nusantara .gift-card { border-radius: 4px; border: 1px solid rgba(var(--accent-rgb), .6); box-shadow: inset 0 0 0 5px var(--card), inset 0 0 0 6px rgba(var(--accent-rgb), .4); }
.gaya-nusantara .person .photo { border-radius: 50% 50% 8px 8px / 36% 36% 8px 8px; border: 2px solid var(--accent); }
.gaya-nusantara .reveal { transform: translateY(24px) scale(.98); }

/* ---------- Monochrome: hitam-putih editorial, foto grayscale, garis tegas ---------- */
.gaya-monokrom .cover, .gaya-monokrom .hero, .gaya-monokrom .closing { background-blend-mode: normal, luminosity, normal; }
.gaya-monokrom img { filter: grayscale(1) contrast(1.08); }
.gaya-monokrom .big { font-family: var(--f-script); color: var(--text); font-size: clamp(3rem, 15vw, 4.6rem); line-height: .92; letter-spacing: -.02em; }
.gaya-monokrom .eyebrow { display: flex; align-items: center; justify-content: center; gap: 12px; letter-spacing: .5em; }
.gaya-monokrom .eyebrow::before, .gaya-monokrom .eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; }
.gaya-monokrom .sec-title { font-family: var(--f-script); color: var(--text); font-size: 2.6rem; }
.gaya-monokrom .sec-title::after { content: ""; display: block; width: 100%; max-width: 220px; height: 1px; margin: 16px auto 0; background: var(--text); }
.gaya-monokrom .event-card, .gaya-monokrom .gift-card, .gaya-monokrom .rsvp-form, .gaya-monokrom .countdown div { border-radius: 0; border: 1px solid var(--text); background: transparent; }
.gaya-monokrom .event-card h4, .gaya-monokrom .person .name { color: var(--text); }
.gaya-monokrom .person .photo { border-radius: 0; padding: 8px; border: 1px solid var(--text); width: 200px; height: 250px; }
.gaya-monokrom .btn-open, .gaya-monokrom .btn-sm { border-radius: 0; background: var(--text); color: var(--bg); border-color: var(--text); text-transform: uppercase; letter-spacing: .25em; font-size: .72rem; }
.gaya-monokrom .btn-sm.ghost { background: transparent; color: var(--text); }
.gaya-monokrom .g-item { border-radius: 0; }
.gaya-monokrom .reveal { transform: none; transition: opacity .2s; }
.gaya-monokrom .reveal.in { animation: wipeRight 1.1s cubic-bezier(.7, 0, .3, 1) both; }
@keyframes wipeRight { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- Minimalis: bersih, banyak ruang, garis tipis, tanpa ornamen ---------- */
.gaya-minimalis .sec { padding: 92px 36px; }
.gaya-minimalis .big { font-size: clamp(2.6rem, 12vw, 3.6rem); color: var(--text); }
.gaya-minimalis .eyebrow { letter-spacing: .45em; font-size: .66rem; color: var(--muted); }
.gaya-minimalis .sec-title { font-family: var(--f-head); color: var(--text); font-size: .85rem; text-transform: uppercase; letter-spacing: .45em; font-weight: 600; }
.gaya-minimalis .sec-title::after { content: ""; display: block; width: 28px; height: 1px; margin: 18px auto 0; background: var(--accent); }
.gaya-minimalis .divider { display: none; }
.gaya-minimalis .event-card, .gaya-minimalis .gift-card, .gaya-minimalis .rsvp-form, .gaya-minimalis .wish, .gaya-minimalis .guest-box, .gaya-minimalis .countdown div { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.gaya-minimalis .event-card h4 { font-family: var(--f-head); color: var(--text); font-size: 1rem; text-transform: uppercase; letter-spacing: .3em; font-weight: 600; }
.gaya-minimalis .person .photo { border-radius: 4px; padding: 0; border: 0; width: 150px; height: 190px; }
.gaya-minimalis .person .name { color: var(--text); font-size: 2rem; }
.gaya-minimalis .btn-open, .gaya-minimalis .btn-sm { border-radius: 2px; background: transparent; color: var(--text); border: 1px solid var(--text); box-shadow: none; letter-spacing: .2em; text-transform: uppercase; font-size: .72rem; }
.gaya-minimalis .g-item { border-radius: 2px; }
.gaya-minimalis .reveal { transform: none; transition: opacity 1.4s ease; }

/* ---------- Bunga Goyang: untaian bunga emas tergantung & bergoyang ---------- */
.gaya-bungagoyang .deco { display: block; }
.gaya-bungagoyang .deco i { top: -4px; height: 46%; max-height: 300px; background: linear-gradient(180deg, #fff3c9, var(--accent) 40%, #9b7426); -webkit-mask: var(--svg-bunga) top / contain no-repeat; mask: var(--svg-bunga) top / contain no-repeat; transform-origin: 50% 0; animation: goyang 3.6s ease-in-out infinite alternate; filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); }
.gaya-bungagoyang .deco .d1 { left: -2%; width: 42%; }
.gaya-bungagoyang .deco .d2 { right: -2%; width: 42%; transform: scaleX(-1); animation-name: goyang2; animation-delay: -1.4s; }
.gaya-bungagoyang .deco .d3 { left: 38%; width: 24%; height: 22%; animation-duration: 2.8s; animation-delay: -.7s; }
@keyframes goyang { from { rotate: -3deg; } to { rotate: 3.5deg; } }
@keyframes goyang2 { from { rotate: 3deg; } to { rotate: -3.5deg; } }
.gaya-bungagoyang .cover-inner, .gaya-bungagoyang .hero-inner { padding-top: 22vh; }
.gaya-bungagoyang .big { background: linear-gradient(180deg, #fff3c9, var(--accent) 55%, #9b7426); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.gaya-bungagoyang .sec-title { font-family: var(--f-head); letter-spacing: .15em; font-size: 1.6rem; }
.gaya-bungagoyang .sec-title::before { content: "\2740"; display: block; font-size: 1.2rem; margin-bottom: .4rem; animation: goyang 3s ease-in-out infinite alternate; }
.gaya-bungagoyang .event-card, .gaya-bungagoyang .gift-card { border-radius: 999px 999px 20px 20px; padding-top: 54px; border: 1.5px solid rgba(var(--accent-rgb), .7); box-shadow: inset 0 0 0 6px var(--card), inset 0 0 0 7px rgba(var(--accent-rgb), .35); }
.gaya-bungagoyang .person .photo { border: 2px solid var(--accent); box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .15); }
.gaya-bungagoyang .btn-open { background: linear-gradient(180deg, #ffe9a8, var(--accent) 60%, #a37a2a); color: #2b1a05; }

/* ---------- Petualang Ceria (anak): karakter emoji melayang sesuai tema, gelombang, kartu membulat ---------- */
.gaya-petualang .deco { display: block; }
.gaya-petualang .deco i { font-size: 3.4rem; line-height: 1; animation: bob 3.2s ease-in-out infinite alternate; filter: drop-shadow(0 6px 6px rgba(0,0,0,.18)); }
.gaya-petualang .deco .d1 { left: 6%; top: 8%; }
.gaya-petualang .deco .d2 { right: 7%; top: 16%; font-size: 2.6rem; animation-delay: -1.2s; }
.gaya-petualang .deco .d3 { left: 12%; bottom: 7%; font-size: 4rem; animation-delay: -2s; }
@keyframes bob { from { transform: translateY(0) rotate(-6deg); } to { transform: translateY(-16px) rotate(6deg); } }
body[data-motif="dino"] .deco .d1::before { content: "\1F995"; } body[data-motif="dino"] .deco .d2::before { content: "\1F30B"; } body[data-motif="dino"] .deco .d3::before { content: "\1F996"; }
body[data-motif="angkasa"] .deco .d1::before { content: "\1F680"; } body[data-motif="angkasa"] .deco .d2::before { content: "\1FA90"; } body[data-motif="angkasa"] .deco .d3::before { content: "\1F468\200D\1F680"; }
body[data-motif="laut"] .deco .d1::before { content: "\1F433"; } body[data-motif="laut"] .deco .d2::before { content: "\1F420"; } body[data-motif="laut"] .deco .d3::before { content: "\1F419"; }
body[data-motif="safari"] .deco .d1::before { content: "\1F981"; } body[data-motif="safari"] .deco .d2::before { content: "\1F992"; } body[data-motif="safari"] .deco .d3::before { content: "\1F418"; }
body[data-motif="unicorn"] .deco .d1::before { content: "\1F984"; } body[data-motif="unicorn"] .deco .d2::before { content: "\1F308"; } body[data-motif="unicorn"] .deco .d3::before { content: "\2601\FE0F"; }
.gaya-petualang .fx span { font-size: 1.4rem; opacity: .55; bottom: -40px; animation: rise linear infinite; }
@keyframes rise { to { transform: translateY(-115vh) rotate(25deg); } }
.gaya-petualang .content > .sec.alt::before { content: ""; position: absolute; left: 0; right: 0; top: -19px; height: 20px; background: var(--bg2); -webkit-mask: var(--svg-wave) center / 120px 20px repeat-x; mask: var(--svg-wave) center / 120px 20px repeat-x; }
.gaya-petualang .big { font-weight: 600; text-shadow: 3px 3px 0 rgba(var(--accent-rgb), .25); }
.gaya-petualang .sec-title { font-weight: 600; font-size: 2.3rem; }
.gaya-petualang .event-card, .gaya-petualang .gift-card, .gaya-petualang .rsvp-form, .gaya-petualang .countdown div, .gaya-petualang .guest-box { border-radius: 28px; border: 3px dashed rgba(var(--accent-rgb), .5); }
.gaya-petualang .person .photo { border-radius: 50%; width: 190px; height: 190px; border: 5px solid var(--accent); padding: 0; box-shadow: 0 0 0 8px rgba(var(--accent-rgb), .18); }
.gaya-petualang .btn-open, .gaya-petualang .btn-sm { box-shadow: 0 5px 0 rgba(0,0,0,.2); }
.gaya-petualang .reveal { transform: translateY(40px) scale(.85); transition: opacity .5s, transform .7s cubic-bezier(.34, 1.56, .64, 1); }

/* v1.9 — gerak dikurangi & mode klip video */
@media (prefers-reduced-motion: reduce) {
    .deco i, .tanpa-foto .person .photo::before, .gaya-marmer .big, .gaya-marmer .sec-title, .gaya-bungagoyang .sec-title::before { animation: none !important; }
    .gaya-motion .reveal, .gaya-art .reveal, .gaya-monokrom .reveal { transform: none; filter: none; clip-path: none; }
}
.klip .deco i { animation: none !important; }
.klip.gaya-marmer .big, .klip.gaya-marmer .sec-title, .klip.gaya-marmer .event-card h4, .klip.gaya-marmer .person .name, .klip.gaya-bungagoyang .big { background: none; color: var(--accent); filter: none; }
.klip.gaya-monokrom .reveal, .klip.gaya-art .reveal { clip-path: none; filter: none; }

@media (prefers-reduced-motion: reduce) { .gaya-cinema .reveal.in, .gaya-monokrom .reveal.in, body .gallery[data-anim] .g-item.reveal.in { animation: none !important; } }
.klip .reveal.in { animation: none !important; }

/* v1.9.1 — keterbacaan: teks berwarna aksen memakai --accent-text (otomatis digelapkan/diterangkan
   bila aksen terlalu pucat di atas latar). Tombol & ornamen tetap memakai warna aksen asli. */
.script, .sec-title, .event-card h4, .quote cite, .btn-sm.ghost, .tm-name { color: var(--accent-text, var(--accent)); }
.inv a:not([class]) { color: var(--accent-text, var(--accent)); }

/* v1.9.2 — Teks di atas foto sampul & bagian pembuka. Posisi dipilih klien (data-posisi di <body>):
   atas (bawaan) = judul di atas, kotak tamu / hitung mundur di bawah, foto di tengah bebas
   tengah = semua di tengah · bawah = semua di bawah */
.cover[data-pv-cover], .cover.ada-foto { place-items: stretch; padding: 8vh 20px calc(20px + env(safe-area-inset-bottom, 0px)); }
.cover[data-pv-cover] .cover-inner, .cover.ada-foto .cover-inner { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 360px; margin: 0 auto; height: 100%; }
.cover[data-pv-cover] .guest-box, .cover.ada-foto .guest-box {
    width: 100%; padding: 10px 14px; margin: 1.2rem 0 12px;
    background: rgba(var(--card-rgb), .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.cover[data-pv-cover] .guest-box p, .cover.ada-foto .guest-box p { font-size: .8rem; margin-bottom: .2rem; }
.cover[data-pv-cover] .guest-name, .cover.ada-foto .guest-name { font-size: 1.2rem; }
.cover[data-pv-cover] .guest-box small, .cover.ada-foto .guest-box small { font-size: .64rem; margin-top: .2rem; }
.cover[data-pv-cover] .btn-open, .cover.ada-foto .btn-open { flex: none; }
.cover[data-pv-cover] .big, .cover.ada-foto .big, .hero[data-pv-cover] .big { text-shadow: 0 2px 14px rgba(0, 0, 0, .25); }
.hero[data-pv-cover] { place-items: stretch; padding: 9vh 24px 8vh; }
.hero[data-pv-cover] .hero-inner { display: flex; flex-direction: column; align-items: center; height: 100%; }
.hero[data-pv-cover] .countdown { margin-top: 1.4rem; }
.hero[data-pv-cover] .countdown div { background: rgba(var(--card-rgb), .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* atas (bawaan) */
body[data-posisi="atas"] .cover[data-pv-cover], body[data-posisi="atas"] .cover.ada-foto, body[data-posisi="atas"] .hero[data-pv-cover] {
    background: var(--overlay-foto, var(--overlay)), var(--cover, none) var(--cover-pos, center) / cover no-repeat, var(--bg);
}
body[data-posisi="atas"] .cover[data-pv-cover] .guest-box, body[data-posisi="atas"] .cover.ada-foto .guest-box { margin-top: auto; }
body[data-posisi="atas"] .hero[data-pv-cover] .countdown { margin-top: auto; }
/* tengah */
body[data-posisi="tengah"] .cover[data-pv-cover] .cover-inner, body[data-posisi="tengah"] .cover.ada-foto .cover-inner,
body[data-posisi="tengah"] .hero[data-pv-cover] .hero-inner { justify-content: center; }
/* bawah */
body[data-posisi="bawah"] .cover[data-pv-cover], body[data-posisi="bawah"] .cover.ada-foto, body[data-posisi="bawah"] .hero[data-pv-cover] {
    background: var(--overlay-bawah, var(--overlay)), var(--cover, none) var(--cover-pos, center) / cover no-repeat, var(--bg);
}
body[data-posisi="bawah"] .cover[data-pv-cover] .cover-inner, body[data-posisi="bawah"] .cover.ada-foto .cover-inner,
body[data-posisi="bawah"] .hero[data-pv-cover] .hero-inner { justify-content: flex-end; }

/* Penyesuaian gaya yang punya hiasan di atas/bawah */
.gaya-bungagoyang .cover[data-pv-cover] .cover-inner, .gaya-bungagoyang .cover.ada-foto .cover-inner, .gaya-bungagoyang .hero[data-pv-cover] .hero-inner { padding-top: 14vh; }
.gaya-cinema .cover[data-pv-cover], .gaya-cinema .cover.ada-foto { padding-top: calc(9vh + 24px); padding-bottom: calc(9vh + 14px); }
.gaya-retro .hero[data-pv-cover] { padding-bottom: 110px; }
.gaya-nusantara .cover[data-pv-cover], .gaya-nusantara .hero[data-pv-cover] { padding-top: calc(8vh + 18px); padding-bottom: 34px; }
.gaya-celestial .hero[data-pv-cover] { padding-top: calc(9vh + 96px); }

/* v1.9.3 — Penutup berfoto: foto terlihat di atas, teks di bawah di atas gradasi warna latar + cahaya lembut di belakang teks */
.closing[data-pv-cover] {
    min-height: 88vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 60px 26px 60px;
    background: var(--overlay-penutup, var(--overlay)), var(--cover, none) var(--cover-pos, center) / cover no-repeat, var(--bg2);
}
.closing[data-pv-cover] p { text-shadow: 0 1px 2px rgba(var(--bg-rgb), .95), 0 0 14px rgba(var(--bg-rgb), .95), 0 0 28px rgba(var(--bg-rgb), .8); }
.closing[data-pv-cover] .lead { font-weight: 500; }
.closing[data-pv-cover] .muted { color: var(--text); opacity: .85; }
.closing[data-pv-cover] .big { filter: drop-shadow(0 0 10px rgba(var(--bg-rgb), .9)) drop-shadow(0 1px 1px rgba(var(--bg-rgb), .9)); }
.gaya-cinema .closing[data-pv-cover] { background-size: auto, cover, auto; }

/* =========================================================
 * v2.0 — LAPISAN MEWAH untuk SEMUA template
 * Aturan memakai selektor 1 kelas (setara aturan dasar, ditulis paling akhir) → mengalahkan
 * tampilan dasar, tetapi gaya khusus (.gaya-x …) tetap menang. Gaya polos yang disengaja
 * (Minimalis, Monochrome, Aesthetic) dikecualikan dari ornamen.
 * ========================================================= */

/* --- Tekstur halus (film grain) di atas seluruh undangan: kesan cetak premium --- */
.inv-main::after {
    content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 46; opacity: .045; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
@media (min-width: 900px) { .inv-main::after { left: auto; width: 460px; } }
.gaya-minimalis .inv-main::after, .gaya-cinema .inv-main::after { display: none; }

/* --- Pergantian section lembut (tanpa garis pita yang kaku) --- */
.sec.alt { background: linear-gradient(180deg, var(--bg) 0, var(--bg2) 90px, var(--bg2) calc(100% - 90px), var(--bg) 100%); }

/* --- Judul section: ornamen garis + permata di bawahnya --- */
.sec-title { letter-spacing: .01em; position: relative; }
body:not(.gaya-aesthetic):not(.gaya-minimalis):not(.gaya-monokrom):not(.gaya-motion):not(.gaya-nusantara):not(.gaya-art):not(.gaya-nonfoto) .sec-title::after {
    content: ""; display: block; width: 140px; height: 12px; margin: .7rem auto 0; background: var(--accent); opacity: .85;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 12'%3E%3Cdefs%3E%3ClinearGradient id='a'%3E%3Cstop offset='0' stop-opacity='0'/%3E%3Cstop offset='1'/%3E%3C/linearGradient%3E%3ClinearGradient id='b'%3E%3Cstop offset='0'/%3E%3Cstop offset='1' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='0' y='5.5' width='56' height='1' fill='url(%23a)'/%3E%3Crect x='84' y='5.5' width='56' height='1' fill='url(%23b)'/%3E%3Cpath d='M70 1l5 5-5 5-5-5z'/%3E%3Ccircle cx='60' cy='6' r='1.4'/%3E%3Ccircle cx='80' cy='6' r='1.4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 12'%3E%3Cdefs%3E%3ClinearGradient id='a'%3E%3Cstop offset='0' stop-opacity='0'/%3E%3Cstop offset='1'/%3E%3C/linearGradient%3E%3ClinearGradient id='b'%3E%3Cstop offset='0'/%3E%3Cstop offset='1' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='0' y='5.5' width='56' height='1' fill='url(%23a)'/%3E%3Crect x='84' y='5.5' width='56' height='1' fill='url(%23b)'/%3E%3Cpath d='M70 1l5 5-5 5-5-5z'/%3E%3Ccircle cx='60' cy='6' r='1.4'/%3E%3Ccircle cx='80' cy='6' r='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* --- Kutipan: tanda kutip besar dekoratif --- */
.quote { position: relative; padding-top: 1.6rem; }
.quote::before { content: "\201C"; position: absolute; left: 50%; top: -.9rem; transform: translateX(-50%); font-family: Georgia, serif; font-size: 4.2rem; line-height: 1; color: var(--accent); opacity: .35; }
.gaya-aesthetic .quote::before, .gaya-minimalis .quote::before { display: none; }
.lead { max-width: 34ch; margin-left: auto; margin-right: auto; }

/* --- Kartu (acara, amplop, RSVP, ucapan): kedalaman & kilau tipis --- */
.event-card, .gift-card, .rsvp-form {
    box-shadow: 0 24px 44px -30px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .07);
    background-image: linear-gradient(160deg, rgba(var(--accent-rgb), .09), transparent 42%);
}
.wish { box-shadow: 0 14px 28px -24px rgba(0, 0, 0, .5); }
/* Permata kecil di puncak kartu acara */
body:not(.gaya-minimalis):not(.gaya-monokrom):not(.gaya-aesthetic):not(.gaya-syari):not(.gaya-cinema) .event-card::after {
    content: ""; position: absolute; top: -8px; left: 50%; width: 15px; height: 15px; transform: translateX(-50%) rotate(45deg);
    background: linear-gradient(135deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 70%), var(--accent); border: 3px solid var(--bg); border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .5);
}
.event-card h4 { margin-bottom: 1rem; }
.ev-date { letter-spacing: .02em; }

/* --- Hitung mundur: angka lebih besar, kaca, aksen --- */
.countdown { gap: 8px; }
.countdown div { width: 70px; padding: 12px 0 10px; border-radius: 16px; box-shadow: 0 16px 30px -22px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .08); }
.countdown b { font-size: 1.75rem; color: var(--accent-text, var(--accent)); font-variant-numeric: tabular-nums; }
.countdown span { font-size: .62rem; letter-spacing: .16em; opacity: .85; }

/* --- Mempelai: bingkai ganda + cahaya --- */
.person .photo { box-shadow: 0 26px 46px -30px rgba(0, 0, 0, .7), 0 0 0 6px rgba(var(--accent-rgb), .07); }
.person .name { font-size: 2.6rem; }
.fullname { letter-spacing: .02em; }
.amp { font-size: 3.6rem; opacity: .9; }

/* --- Amplop digital: kartu seperti kartu bank premium --- */
.gift-card { position: relative; overflow: hidden; }
.gift-card .bank { padding: .3em .9em; border-radius: 999px; background: rgba(var(--accent-rgb), .12); color: var(--accent-text, var(--accent)); margin-bottom: .4rem; }
.gift-card .acc { font-size: 1.5rem; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
body:not(.gaya-minimalis):not(.gaya-monokrom):not(.gaya-aesthetic) .gift-card::before {
    content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(var(--accent-rgb), .22), transparent 70%);
}

/* --- Tombol: kilau berjalan & cahaya --- */
.btn-open { position: relative; overflow: hidden; letter-spacing: .06em; }
.btn-open::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-18deg);
    animation: btnShine 3.8s ease-in-out infinite;
}
@keyframes btnShine { 0%, 55% { left: -60%; } 85%, 100% { left: 130%; } }
.cover .btn-open { animation: btnGlow 2.6s ease-in-out infinite; }
@keyframes btnGlow { 0%, 100% { box-shadow: 0 10px 24px -10px rgba(var(--accent-rgb), .9); } 50% { box-shadow: 0 10px 34px -6px rgba(var(--accent-rgb), 1), 0 0 0 6px rgba(var(--accent-rgb), .12); } }
.btn-sm { transition: transform .2s, filter .2s; }
.btn-sm:hover { transform: translateY(-1px); filter: brightness(1.06); }

/* --- Sampul: muncul bertahap saat dibuka pertama kali --- */
.cover-inner > * { animation: coverIn .9s cubic-bezier(.2, .8, .2, 1) both; }
.cover-inner > :nth-child(1) { animation-delay: .15s; }
.cover-inner > :nth-child(2) { animation-delay: .3s; }
.cover-inner > :nth-child(3) { animation-delay: .45s; }
.cover-inner > :nth-child(4) { animation-delay: .65s; }
.cover-inner > :nth-child(5) { animation-delay: .85s; }
@keyframes coverIn { from { opacity: 0; transform: translateY(16px); } }
.cover .btn-open { animation: coverIn .9s cubic-bezier(.2, .8, .2, 1) .85s both, btnGlow 2.6s ease-in-out 1.8s infinite; }

/* --- Tombol musik: cincin berdenyut saat memutar --- */
.music-btn.playing::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--accent); animation: ring 2s ease-out infinite; }
@keyframes ring { from { transform: scale(.85); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }

/* --- Ucapan: kepala nama lebih rapi, skrol halus --- */
.wishes { scrollbar-width: thin; scrollbar-color: rgba(var(--accent-rgb), .4) transparent; }
.rsvp-stats b { color: var(--accent-text, var(--accent)); font-size: 1.7rem; }

/* --- Kaki undangan --- */
.inv-foot { letter-spacing: .06em; padding: 28px 22px 34px; }
.inv-foot::before { content: ""; display: block; width: 40px; height: 1px; margin: 0 auto 12px; background: var(--accent); opacity: .5; }

/* --- Gerak dikurangi & mode klip video --- */
@media (prefers-reduced-motion: reduce) {
    .cover-inner > *, .cover .btn-open, .btn-open::after, .music-btn.playing::before { animation: none !important; }
}
.klip .inv-main::after, .klip .btn-open::after { display: none; }
.klip .cover-inner > * { animation: none !important; }

/* =========================================================
 * v2.0 — Ornamen sampul & pembuka untuk 10 gaya klasik (lapisan .deco)
 * ========================================================= */
.gaya-elegan .deco, .gaya-floral .deco, .gaya-modern .deco, .gaya-islami .deco, .gaya-safar .deco,
.gaya-khidmat .deco, .gaya-rustic .deco, .gaya-luxury .deco, .gaya-tradisi .deco, .gaya-ceria .deco { display: block; }

/* Elegan: bingkai lengkung emas ganda + sudut bunga */
.gaya-elegan .deco .d1 { inset: 5% 7%; border: 1px solid rgba(var(--accent-rgb), .55); border-radius: 999px 999px 14px 14px; outline: 1px solid rgba(var(--accent-rgb), .22); outline-offset: 6px; }
.gaya-elegan .deco .d2, .gaya-elegan .deco .d3 { width: 90px; height: 90px; background: var(--accent); opacity: .45; -webkit-mask: var(--svg-sprig) center / contain no-repeat; mask: var(--svg-sprig) center / contain no-repeat; }
.gaya-elegan .deco .d2 { left: 4px; bottom: 4px; transform: scaleY(-1) rotate(0); }
.gaya-elegan .deco .d3 { right: 4px; bottom: 4px; transform: scale(-1, -1); }

/* Floral: rangkaian daun di sudut + cahaya lembut */
.gaya-floral .deco .d1 { width: 260px; height: 260px; left: -90px; top: -80px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-rgb), .35), transparent 68%); }
.gaya-floral .deco .d2, .gaya-floral .deco .d3 { width: 140px; height: 140px; background: var(--accent); opacity: .5; -webkit-mask: var(--svg-sprig) center / contain no-repeat; mask: var(--svg-sprig) center / contain no-repeat; animation: sway 7s ease-in-out infinite alternate; }
.gaya-floral .deco .d2 { left: -14px; top: -6px; transform-origin: 0 0; }
.gaya-floral .deco .d3 { right: -14px; bottom: -6px; transform: scale(-1, -1); transform-origin: 100% 100%; animation-name: sway2; }

/* Modern: garis bingkai tegas + label vertikal */
.gaya-modern .deco .d1 { inset: 22px; border: 1px solid rgba(var(--accent-rgb), .35); }
.gaya-modern .deco .d2 { left: 30px; top: 34px; transform: rotate(90deg); transform-origin: 0 0; white-space: nowrap; }
.gaya-modern .deco .d2::before { content: "SAVE THE DATE"; font: 600 .58rem/1 var(--f-head); letter-spacing: .6em; color: var(--accent); opacity: .75; }
.gaya-modern .deco .d3 { right: 22px; top: 22px; width: 56px; height: 56px; border-top: 3px solid var(--accent); border-right: 3px solid var(--accent); }

/* Islami & Tanah Suci: bingkai mihrab + bulan sabit bintang */
.gaya-islami .deco .d1, .gaya-safar .deco .d1 { inset: 6% 8% 5%; border: 1.5px solid rgba(var(--accent-rgb), .55); border-radius: 50% 50% 14px 14px / 26% 26% 14px 14px; outline: 1px solid rgba(var(--accent-rgb), .2); outline-offset: 7px; }
.gaya-islami .deco .d2, .gaya-safar .deco .d2 { top: calc(6% - 30px); left: 50%; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; box-shadow: -8px 4px 0 0 var(--accent); filter: drop-shadow(0 0 8px rgba(var(--accent-rgb), .6)); }
.gaya-islami .deco .d3, .gaya-safar .deco .d3 { top: calc(6% - 22px); left: calc(50% + 12px); width: 8px; height: 8px; background: var(--accent); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }

/* Khidmat: garis ganda tenang atas-bawah + cahaya redup */
.gaya-khidmat .deco .d1 { inset: 0; background: radial-gradient(ellipse at 50% 40%, rgba(var(--accent-rgb), .12), transparent 65%); }
.gaya-khidmat .deco .d2, .gaya-khidmat .deco .d3 { left: 14%; right: 14%; height: 7px; border-top: 1px solid rgba(var(--accent-rgb), .55); border-bottom: 1px solid rgba(var(--accent-rgb), .3); }
.gaya-khidmat .deco .d2 { top: 9%; }
.gaya-khidmat .deco .d3 { bottom: 9%; }

/* Rustic: ranting daun & bingkai tali putus-putus */
.gaya-rustic .deco .d1 { inset: 16px; border: 1.5px dashed rgba(var(--accent-rgb), .45); border-radius: 18px; }
.gaya-rustic .deco .d2, .gaya-rustic .deco .d3 { width: 120px; height: 120px; background: var(--accent); opacity: .45; -webkit-mask: var(--svg-sprig) center / contain no-repeat; mask: var(--svg-sprig) center / contain no-repeat; }
.gaya-rustic .deco .d2 { right: 6px; top: 6px; transform: scaleX(-1); }
.gaya-rustic .deco .d3 { left: 6px; bottom: 6px; transform: scaleY(-1); }

/* Luxury: sinar art-deco + bingkai bertingkat */
.gaya-luxury .deco .d1 { inset: 0; background: repeating-conic-gradient(from 0deg at 50% -10%, rgba(var(--accent-rgb), .12) 0 2deg, transparent 2deg 9deg); -webkit-mask: linear-gradient(180deg, #000 0, transparent 70%); mask: linear-gradient(180deg, #000 0, transparent 70%); }
.gaya-luxury .deco .d2 { inset: 18px; border: 1px solid rgba(var(--accent-rgb), .6); }
.gaya-luxury .deco .d3 { inset: 26px; border: 1px solid rgba(var(--accent-rgb), .25); }

/* Tradisional: tumpal emas atas-bawah */
.gaya-tradisi .deco .d2, .gaya-tradisi .deco .d3 { left: 0; right: 0; height: 18px; background: var(--accent); opacity: .65; -webkit-mask: var(--svg-tumpal) 0 0 / 22px 18px repeat-x; mask: var(--svg-tumpal) 0 0 / 22px 18px repeat-x; }
.gaya-tradisi .deco .d2 { top: 0; transform: scaleY(-1); }
.gaya-tradisi .deco .d3 { bottom: 0; }
.gaya-tradisi .deco .d1 { inset: 30px 16px; border: 1px solid rgba(var(--accent-rgb), .4); border-radius: 6px; }

/* Ceria: balon melayang */
.gaya-ceria .deco i { width: 34px; height: 42px; border-radius: 50% 50% 48% 52% / 58% 58% 42% 42%; opacity: .8; animation: bob 3.4s ease-in-out infinite alternate; }
.gaya-ceria .deco i::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 40px; background: currentColor; opacity: .5; }
.gaya-ceria .deco .d1 { left: 8%; top: 10%; background: var(--accent); color: var(--accent); }
.gaya-ceria .deco .d2 { right: 10%; top: 16%; background: #ffd166; color: #ffd166; animation-delay: -1.2s; }
.gaya-ceria .deco .d3 { left: 16%; bottom: 14%; background: #06d6a0; color: #06d6a0; width: 28px; height: 35px; animation-delay: -2.1s; }

/* Klip video: ornamen diam */
.klip .deco i { animation: none !important; }

/* =========================================================
 * v2.1 — Bingkai foto mempelai/tokoh (pilihan klien, data-bingkai di <body>)
 * "auto" = ikut gaya template. Gaya tanpa foto (Ilustrasi, Syar'i) tidak terpengaruh.
 * ========================================================= */
body:not(.tanpa-foto):not([data-bingkai="auto"]) .person .photo {
    width: 200px; height: 250px; margin: 0 auto 1.1rem; padding: 0; border: 0; outline: 0; box-shadow: none; background: none;
    filter: none; clip-path: none; transform: none; rotate: none; border-radius: 0; overflow: hidden; position: relative;
}
body:not(.tanpa-foto):not([data-bingkai="auto"]) .person .photo .ph-in, body:not(.tanpa-foto):not([data-bingkai="auto"]) .person .photo .mono { border-radius: inherit; }
/* Tanpa bingkai: foto polos, sudut lembut */
body:not(.tanpa-foto)[data-bingkai="tanpa"] .person .photo { border-radius: 10px; box-shadow: 0 20px 36px -24px rgba(0, 0, 0, .6); }
/* Lengkung */
body:not(.tanpa-foto)[data-bingkai="lengkung"] .person .photo { border-radius: 999px 999px 18px 18px; border: 1.5px solid var(--accent); padding: 7px; box-shadow: 0 24px 40px -28px rgba(0, 0, 0, .6); }
/* Bulat */
body:not(.tanpa-foto)[data-bingkai="bulat"] .person .photo { width: 200px; height: 200px; border-radius: 50%; border: 2px solid var(--accent); padding: 7px; outline: 1px solid rgba(var(--accent-rgb), .35); outline-offset: 7px; }
/* Oval */
body:not(.tanpa-foto)[data-bingkai="oval"] .person .photo { width: 180px; height: 240px; border-radius: 50%; border: 2px solid var(--accent); padding: 7px; outline: 1px solid rgba(var(--accent-rgb), .3); outline-offset: 6px; }
/* Kotak klasik: passe-partout */
body:not(.tanpa-foto)[data-bingkai="kotak"] .person .photo { border-radius: 2px; padding: 10px; background: var(--card); border: 1px solid rgba(var(--accent-rgb), .55); box-shadow: 0 22px 40px -26px rgba(0, 0, 0, .6); }
/* Emas ganda */
body:not(.tanpa-foto)[data-bingkai="emas"] .person .photo { border-radius: 6px; padding: 6px; border: 2px solid var(--accent); outline: 1px solid var(--accent); outline-offset: 6px; box-shadow: 0 0 0 12px rgba(var(--accent-rgb), .06), 0 26px 44px -28px rgba(0, 0, 0, .7); }
/* Polaroid miring */
body:not(.tanpa-foto)[data-bingkai="polaroid"] .person .photo { width: 210px; height: 260px; padding: 10px 10px 42px; background: #fff; border-radius: 3px; box-shadow: 0 18px 34px -16px rgba(0, 0, 0, .45); overflow: visible; }
body:not(.tanpa-foto)[data-bingkai="polaroid"] .person .photo .ph-in, body:not(.tanpa-foto)[data-bingkai="polaroid"] .person .photo .mono { border-radius: 1px; }
body:not(.tanpa-foto)[data-bingkai="polaroid"] .people .person:first-child .photo { rotate: -3deg; }
body:not(.tanpa-foto)[data-bingkai="polaroid"] .people .person:last-child .photo { rotate: 2.5deg; }
/* Karangan daun melingkar */
body:not(.tanpa-foto)[data-bingkai="bunga"] .person .photo { width: 180px; height: 180px; border-radius: 50%; overflow: visible; margin-top: 26px; margin-bottom: 2rem; }
body:not(.tanpa-foto)[data-bingkai="bunga"] .person .photo::before { content: ""; position: absolute; inset: -26px; background: var(--accent); opacity: .75; -webkit-mask: var(--svg-wreath) center / contain no-repeat; mask: var(--svg-wreath) center / contain no-repeat; pointer-events: none; }
/* Kubah (mihrab) */
body:not(.tanpa-foto)[data-bingkai="kubah"] .person .photo { border-radius: 50% 50% 10px 10px / 34% 34% 10px 10px; border: 2px solid var(--accent); padding: 7px; outline: 1px solid rgba(var(--accent-rgb), .3); outline-offset: 7px; }
/* Berlian */
body:not(.tanpa-foto)[data-bingkai="berlian"] .person .photo { width: 230px; height: 230px; padding: 6px; background: var(--accent); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
body:not(.tanpa-foto)[data-bingkai="berlian"] .person .photo .ph-in, body:not(.tanpa-foto)[data-bingkai="berlian"] .person .photo .mono { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
/* Heksagon */
body:not(.tanpa-foto)[data-bingkai="heksagon"] .person .photo { width: 230px; height: 200px; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); background: var(--accent); padding: 4px; }
body:not(.tanpa-foto)[data-bingkai="heksagon"] .person .photo .ph-in, body:not(.tanpa-foto)[data-bingkai="heksagon"] .person .photo .mono { clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
/* Hati */
body:not(.tanpa-foto)[data-bingkai="hati"] .person .photo { width: 220px; height: 200px; background: var(--accent); padding: 5px;
    clip-path: path("M110 196 C48 148 0 108 0 62 C0 26 28 0 62 0 C84 0 102 12 110 30 C118 12 136 0 158 0 C192 0 220 26 220 62 C220 108 172 148 110 196 Z"); }
body:not(.tanpa-foto)[data-bingkai="hati"] .person .photo .ph-in, body:not(.tanpa-foto)[data-bingkai="hati"] .person .photo .mono {
    clip-path: path("M105 184 C46 139 0 101 0 58 C0 24 26 0 58 0 C79 0 96 11 105 28 C114 11 131 0 152 0 C184 0 210 24 210 58 C210 101 164 139 105 184 Z"); }
/* Organik */
body:not(.tanpa-foto)[data-bingkai="organik"] .person .photo { border-radius: 46% 54% 52% 48% / 58% 52% 48% 42%; border: 2px solid var(--accent); padding: 7px; box-shadow: 10px 12px 0 rgba(var(--accent-rgb), .25); }
/* Pita film */
body:not(.tanpa-foto)[data-bingkai="film"] .person .photo { width: 220px; height: 260px; padding: 12px 26px; border-radius: 4px;
    background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .85) 0 7px, transparent 7px 16px) 8px 0 / 9px 100% no-repeat,
                repeating-linear-gradient(180deg, rgba(255, 255, 255, .85) 0 7px, transparent 7px 16px) calc(100% - 8px) 0 / 9px 100% no-repeat, #111;
    box-shadow: 0 22px 40px -24px rgba(0, 0, 0, .7); }
body:not(.tanpa-foto)[data-bingkai="film"] .person .photo .ph-in, body:not(.tanpa-foto)[data-bingkai="film"] .person .photo .mono { border-radius: 2px; }

/* v2.2 — Versi undangan dari orang tua */
.ttd-ortu { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: .4rem 0 1.2rem; }
.ttd-kel { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ttd-kel small { font-family: var(--f-head); font-size: .7rem; text-transform: uppercase; letter-spacing: .22em; color: var(--muted); }
.ttd-kel strong { font-family: var(--f-head); font-weight: 600; font-size: 1.3rem; line-height: 1.35; color: var(--accent-text, var(--accent)); letter-spacing: .02em; }
.ttd-amp { font-size: 2rem; line-height: 1; margin: .35rem 0; color: var(--accent-text, var(--accent)); }
.turut-list { list-style: none; padding: 0; margin: 0 auto; max-width: 340px; display: grid; gap: 6px; }
.turut-list li { font-family: var(--f-head); font-size: 1rem; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.turut-list li:last-child { border-bottom: 0; }

/* =========================================================
 * Mode klip video (?klip=1, ditangkap html2canvas): perekam tidak mengenal mask, filter blur,
 * clip-path & backdrop-filter. Ornamen yang memakainya disederhanakan/disembunyikan
 * agar tidak berubah menjadi balok warna polos di video.
 * ========================================================= */
.klip .deco, .klip .fx, .klip .pattern::before, .klip .inv-main::after { display: none !important; }
.klip .sec-title::after {
    -webkit-mask: none !important; mask: none !important; width: 120px !important; height: 1px !important;
    background: linear-gradient(90deg, transparent, var(--accent), transparent) !important; opacity: .9 !important; content: "" !important; display: block !important; margin: .8rem auto 0 !important;
}
.klip.gaya-nusantara .sec-title::before, .klip.gaya-nusantara .sec-title::after,
.klip.gaya-art .sec-title::after { content: none !important; display: none !important; }
.klip .tanpa-foto .person .photo::before, .klip .person .photo::before,
.klip.gaya-botanical .sec::before, .klip.gaya-botanical .sec::after,
.klip.gaya-petualang .sec.alt::before, .klip.gaya-nusantara .sec::after,
.klip .gift-card::before, .klip .event-card::after { display: none !important; }
.klip .guest-box, .klip .countdown div, .klip .gaya-glass .event-card { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
/* Bingkai berbentuk (clip-path) → bingkai bulat sederhana di video */
.klip body[data-bingkai="berlian"] .person .photo, .klip[data-bingkai="berlian"] .person .photo,
.klip[data-bingkai="heksagon"] .person .photo, .klip[data-bingkai="hati"] .person .photo {
    clip-path: none !important; border-radius: 50% !important; width: 210px !important; height: 210px !important; padding: 5px !important;
}
.klip[data-bingkai="berlian"] .person .photo .ph-in, .klip[data-bingkai="heksagon"] .person .photo .ph-in, .klip[data-bingkai="hati"] .person .photo .ph-in,
.klip[data-bingkai="berlian"] .person .photo .mono, .klip[data-bingkai="heksagon"] .person .photo .mono, .klip[data-bingkai="hati"] .person .photo .mono { clip-path: none !important; border-radius: 50% !important; }
/* Klip video: huruf sambung (script) digambar per huruf oleh perekam bila ada letter-spacing → huruf bertumpuk */
.klip .script, .klip .sec-title, .klip .big, .klip .person .name, .klip .event-card h4, .klip .amp { letter-spacing: normal !important; }
