/* ═══════════════════════════════════════════════════════════════════
   DUA SISI — split-screen multiscroll, monochrome editorial
   ═══════════════════════════════════════════════════════════════════ */
:root {
    --ivory: #f4efe6;
    --paper: #ebe4d7;
    --ink: #141414;
    --ink-2: #222120;
    --stone: #8b857b;
    --wine: #6e1f2b;
    --line: rgba(20, 20, 20, .16);
    --line-l: rgba(244, 239, 230, .2);
    --f-d: 'Bodoni Moda', 'Didot', Georgia, serif;
    --f-u: 'Manrope', system-ui, -apple-system, sans-serif;
    --f-a: 'Amiri', serif;
    --st: env(safe-area-inset-top, 0px);
    --sb: env(safe-area-inset-bottom, 0px);
    --gut: 50px;
    --ez: cubic-bezier(.77, 0, .18, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
body {
    background: var(--ink);
    color: var(--ink);
    font-family: var(--f-u);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
em { font-style: italic; }
.ico { width: 16px; height: 16px; flex: none; }
.ico.flip { transform: scaleX(-1); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Type primitives ── */
.kick {
    display: block;
    font: 600 9.5px/1.3 var(--f-u);
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--stone);
}
.kick i { font-style: normal; }
.h {
    font: 400 34px/1.04 var(--f-d);
    letter-spacing: -.015em;
    margin: 14px 0 16px;
    overflow-wrap: anywhere;
}
.h em { font-style: italic; }
.h.sm { font-size: 27px; margin-top: 0; }
.mega {
    font: italic 400 clamp(62px, 19vw, 92px)/.86 var(--f-d);
    letter-spacing: -.035em;
    position: relative;
    z-index: 1;
}
.txt { font-size: 13px; line-height: 1.7; color: rgba(20, 20, 20, .74); margin-bottom: 18px; }
.txt.sm { font-size: 12px; margin-bottom: 16px; }
.ink .txt { color: rgba(244, 239, 230, .7); }
.gnum {
    position: absolute;
    right: calc(var(--gut) - 18px);
    bottom: -.2em;
    font: 400 210px/1 var(--f-d);
    letter-spacing: -.06em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(244, 239, 230, .11);
    pointer-events: none;
    user-select: none;
}
.ivory .gnum, .paper .gnum { -webkit-text-stroke-color: rgba(20, 20, 20, .1); }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 46px; padding: 0 22px;
    background: var(--ink); color: var(--ivory);
    border: 1px solid var(--ink);
    font: 600 10.5px/1 var(--f-u); letter-spacing: .22em; text-transform: uppercase;
    text-decoration: none;
    transition: background .3s, color .3s, border-color .3s;
}
.btn:hover { background: var(--wine); border-color: var(--wine); color: var(--ivory); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn.light, .ink .btn.ghost { color: var(--ivory); border-color: rgba(244, 239, 230, .5); }
.btn.light:hover, .ink .btn.ghost:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.btn.wide { width: 100%; }
.btn:disabled, .btn.loading { opacity: .55; pointer-events: none; }

/* ═══════════════ COVER ═══════════════ */
.intro { position: fixed; inset: 0; z-index: 100; overflow: hidden; }
.cv-half {
    position: absolute; left: 0; right: 0; height: 50%;
    overflow: hidden;
    transition: transform 1.25s var(--ez) .3s;
    will-change: transform;
}
.cv-a { top: 0; background: var(--ink); color: var(--ivory); }
.cv-b { bottom: 0; background: var(--ivory); color: var(--ink); }
.cv-top {
    position: absolute; left: 24px; right: 60px; top: calc(var(--st) + 22px);
    display: flex; justify-content: space-between;
}
.cv-a .kick { color: rgba(244, 239, 230, .55); }
.cv-name-wrap { position: absolute; left: 24px; right: 24px; z-index: 1; }
.cv-a .cv-name-wrap { bottom: 58px; }
.cv-b .cv-name-wrap { top: 58px; text-align: right; }
.cv-role { display: block; font: italic 400 15px/1.2 var(--f-d); opacity: .62; }
.cv-name {
    font: italic 400 clamp(68px, 23vw, 104px)/.9 var(--f-d);
    letter-spacing: -.04em;
    overflow-wrap: anywhere;
    margin: 6px 0;
}
.cv-name .amp { font-size: .42em; color: var(--wine); margin-right: .18em; vertical-align: .55em; }
.cv-ghost {
    position: absolute;
    font: 400 520px/.8 var(--f-d);
    color: transparent;
    -webkit-text-stroke: 1px rgba(244, 239, 230, .1);
    pointer-events: none; user-select: none;
}
.cv-a .cv-ghost { right: -60px; top: -40px; }
.cv-b .cv-ghost { left: -50px; bottom: -110px; -webkit-text-stroke-color: rgba(20, 20, 20, .08); }
.cv-foot {
    position: absolute; left: 24px; right: 24px; bottom: calc(var(--sb) + 28px);
    display: flex; flex-direction: column; gap: 14px; align-items: stretch;
}
.cv-date { font: 600 10px/1 var(--f-u); letter-spacing: .3em; text-transform: uppercase; color: var(--stone); text-align: right; }
.cv-guest {
    position: absolute; left: 0; right: 0; top: 50%;
    transform: translateY(calc(-50% - 9px));
    text-align: center; color: #fff;
    mix-blend-mode: difference;
    z-index: 3; pointer-events: none;
    transition: opacity .45s;
}
.cv-to {
    position: absolute; left: 0; right: 0; bottom: calc(100% + 8px);
    font: 600 9px/1 var(--f-u); letter-spacing: .3em; text-transform: uppercase; opacity: .8;
}
.cv-gname { display: block; padding: 0 24px; font: 400 30px/1.15 var(--f-d); letter-spacing: -.01em; }
.intro .cv-half > *, .intro .cv-guest { animation: rise 1.1s var(--ez) both; }
.intro .cv-b > * { animation-delay: .15s; }
.intro .cv-guest { animation-delay: .35s; }
.intro.opening .cv-guest, .intro.opening .cv-foot { opacity: 0; transition: opacity .35s; }
.intro.opening .cv-a { transform: translate3d(0, -100%, 0); }
.intro.opening .cv-b { transform: translate3d(0, 100%, 0); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.intro .cv-guest { animation-name: riseC; }
@keyframes riseC { from { opacity: 0; } }

/* ═══════════════ STAGE ═══════════════ */
.stage {
    position: fixed; inset: 0;
    overflow: hidden;
    background: var(--ink);
    touch-action: none;
    user-select: none; -webkit-user-select: none;
}
.pane { position: absolute; inset: 0; overflow: hidden; will-change: transform; background: var(--ink); }
.track { position: absolute; inset: 0; will-change: transform; }
.cell {
    position: absolute; inset: 0;
    transform: translate3d(0, calc(var(--k, 0) * 100%), 0);
    overflow: hidden;
    contain: layout paint;
}
.cell.ink { background: var(--ink); color: var(--ivory); }
.cell.ivory { background: var(--ivory); }
.cell.paper { background: var(--paper); }
.cell.ink .kick { color: rgba(244, 239, 230, .52); }

.box {
    position: absolute; left: 0; right: 0;
    display: flex; flex-direction: column; justify-content: center;
    padding: 26px var(--gut) 26px 24px;
}
.pa .box { top: 0; height: calc(var(--r) * 100%); padding-top: calc(26px + var(--st)); }
.pb .box { bottom: 0; top: calc(var(--r) * 100%); padding-bottom: calc(26px + var(--sb)); }
.cell.full .box { top: 0; bottom: 0; height: auto; padding-top: calc(28px + var(--st)); padding-bottom: calc(28px + var(--sb)); }
.box.sc {
    justify-content: flex-start;
    overflow-y: auto; overflow-x: hidden;
    touch-action: pan-y;
    overscroll-behavior: contain;
    scrollbar-width: thin; scrollbar-color: rgba(20, 20, 20, .25) transparent;
    user-select: text; -webkit-user-select: text;
}
.box.sc::-webkit-scrollbar { width: 3px; }
.box.sc::-webkit-scrollbar-thumb { background: rgba(20, 20, 20, .25); }
.in { width: 100%; max-width: 460px; margin-block: auto; }
.in.center { text-align: center; margin-inline: auto; }

/* art panels */
.box.art { justify-content: space-between; overflow: hidden; }
.box.art > svg { flex: 1 1 auto; min-height: 0; width: 100%; margin: 10px 0; }
.box.art .mega { flex: none; }
.draw { fill: none; stroke: currentColor; stroke-width: 1; }
.draw > *:not(.acc):not(.acc-fill) { stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 2.2s cubic-bezier(.45, 0, .2, 1) .35s; }
.cell.lit .draw > * { stroke-dashoffset: 0; }
.draw .thin { stroke-opacity: .4; }
.draw .acc { fill: var(--wine); stroke: none; }
.draw .acc-fill { fill: var(--wine); stroke: none; opacity: 0; transition: opacity 1.2s ease 1.2s; }
.cell.lit .draw .acc-fill { opacity: .9; }
.art-note { position: relative; margin-top: 12px; font: italic 400 15px/1.35 var(--f-d); opacity: .72; z-index: 1; }
.art-note b { font-weight: 400; }

/* 01 salam */
.arch { position: absolute; left: 50%; top: 47%; width: 50%; max-width: 230px; height: auto; transform: translate(-50%, -50%); opacity: .5; margin: 0 !important; }
.box.art .arch { flex: none; }
.arab.big {
    position: relative; z-index: 1;
    font: 400 31px/1.9 var(--f-a);
    text-align: center; direction: rtl;
    margin: auto 0;
}

/* 02 mempelai */
.couple { display: flex; align-items: center; gap: 20px; }
.couple.rev { flex-direction: row-reverse; text-align: right; }
.portrait {
    position: relative; flex: none;
    width: 124px; height: 172px;
    border-radius: 999px 999px 0 0;
    overflow: hidden;
    background: var(--paper);
    display: grid; place-items: center;
    outline: 1px solid var(--line); outline-offset: 5px;
}
.ink .portrait { background: var(--ink-2); outline-color: var(--line-l); }
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06); }
.portrait .mono { font: italic 400 112px/1 var(--f-d); margin-top: 18px; }
.portrait.empty::after {
    content: ''; position: absolute; inset: 10px 10px 0;
    border: 1px solid var(--line); border-bottom: 0; border-radius: 999px 999px 0 0;
}
.ink .portrait.empty::after { border-color: var(--line-l); }
.pt-cap { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font: 600 8px/1 var(--f-u); letter-spacing: .28em; text-transform: uppercase; opacity: .55; z-index: 1; }
.portrait:not(.empty) .pt-cap { color: var(--ivory); opacity: .85; }
.pp { min-width: 0; flex: 1; }
.pname { font: 400 29px/1.02 var(--f-d); letter-spacing: -.02em; margin: 10px 0 12px; overflow-wrap: anywhere; }
.pparent { font-size: 12px; line-height: 1.6; color: rgba(20, 20, 20, .66); }
.pparent b { font-weight: 600; color: var(--ink); }
.ink .pparent { color: rgba(244, 239, 230, .62); }
.ink .pparent b { color: var(--ivory); }

/* 03 kisah */
.chapters { list-style: none; }
.chapters li { display: grid; grid-template-columns: 34px 1fr; gap: 6px; padding: 13px 0; border-top: 1px solid var(--line); }
.chapters li:last-child { border-bottom: 1px solid var(--line); }
.roman { font: italic 400 21px/1 var(--f-d); color: var(--wine); }
.chapters b { display: block; font: 600 10px/1.4 var(--f-u); letter-spacing: .22em; text-transform: uppercase; margin-bottom: 4px; }
.chapters p { font-size: 12.5px; line-height: 1.62; color: rgba(20, 20, 20, .72); }
.vesica { color: var(--ivory); }

/* 04 tanggal + hitung mundur */
.dateart { display: flex; align-items: center; justify-content: center; gap: 18px; margin: auto 0; }
.d-day { font: 400 168px/.78 var(--f-d); letter-spacing: -.06em; }
.d-side { display: flex; flex-direction: column; gap: 9px; padding-top: 6px; }
.d-month { font: italic 400 30px/1 var(--f-d); }
.d-rule { width: 46px; height: 1px; background: var(--wine); }
.d-year { font: 600 11px/1 var(--f-u); letter-spacing: .4em; }
.d-week { font: 500 10px/1 var(--f-u); letter-spacing: .28em; text-transform: uppercase; opacity: .55; }
.cd { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.cd div { padding: 14px 0 12px; text-align: center; border-left: 1px solid var(--line); }
.cd div:first-child { border-left: 0; }
.cd b { display: block; font: 400 38px/1 var(--f-d); letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; }
.cd span { display: block; margin-top: 7px; font: 600 8.5px/1 var(--f-u); letter-spacing: .26em; text-transform: uppercase; color: var(--stone); }

/* 05/06 akad · resepsi */
.facts { margin-bottom: 20px; }
.facts div { display: grid; grid-template-columns: 74px 1fr; gap: 10px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font: 600 9px/1.4 var(--f-u); letter-spacing: .24em; text-transform: uppercase; color: var(--stone); }
.facts dd { font: 400 18px/1.25 var(--f-d); }
.rings, .arches, .envelope { color: var(--ivory); }
.arches { max-height: 52%; }

/* 07 lokasi */
.addr { font-size: 13px; line-height: 1.7; color: rgba(20, 20, 20, .72); margin-bottom: 8px; }
.coords { font: 600 9.5px/1 var(--f-u); letter-spacing: .24em; color: var(--stone); margin-bottom: 20px; }
.map-box { padding: 0 !important; }
.leaflet-map, .map-illu { position: absolute; inset: 0; display: block; z-index: 0; }
.leaflet-map { background: var(--paper); }
.leaflet-map .leaflet-tile-pane { filter: grayscale(1) sepia(.12) contrast(1.02) brightness(1.03); }
.leaflet-container { font-family: var(--f-u); }
.leaflet-control-attribution { font-size: 9px !important; background: rgba(244, 239, 230, .8) !important; }
.ds-marker span {
    display: block; width: 30px; height: 30px; border-radius: 50%;
    background: var(--ink); border: 7px solid var(--ivory);
    box-shadow: 0 0 0 1px var(--ink), 0 0 0 9px rgba(110, 31, 43, .18);
}
.map-illu svg { width: 100%; height: 100%; display: block; }
.map-illu .route { animation: dash 22s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -400; } }
.mi-pin {
    position: absolute; left: 65.5%; top: 32%;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--wine); border: 5px solid var(--ivory);
    box-shadow: 0 0 0 1px var(--ink);
    transform: translate(-50%, -50%);
}
.map-tag {
    position: absolute; left: 24px; bottom: calc(22px + var(--sb)); z-index: 500;
    background: var(--ink); color: var(--ivory);
    padding: 8px 12px;
    font: 600 9px/1 var(--f-u); letter-spacing: .24em; text-transform: uppercase;
    pointer-events: none;
}
.pa .map-tag { bottom: 22px; }

/* 08 galeri */
.gal-box { padding: 0 !important; }
.gal-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .9s ease, transform 1.6s ease;
    transform: scale(1.04);
    filter: grayscale(1) contrast(1.05);
}
.gal-img.on { opacity: 1; transform: none; }
.gal-ph { filter: none; }
.gal-ph svg { width: 100%; height: 100%; display: block; }
.gal-nav { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 2; cursor: pointer; }
.gal-nav.prev { left: 0; cursor: w-resize; }
.gal-nav.next { right: 0; cursor: e-resize; }
.gal-box::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 20, 20, .45), transparent 26%, transparent 64%, rgba(20, 20, 20, .6)); pointer-events: none; z-index: 1; }
.gal-kick { position: absolute; left: 24px; top: calc(26px + var(--st)); z-index: 3; color: rgba(244, 239, 230, .8) !important; pointer-events: none; }
.gal-count { position: absolute; left: 20px; bottom: 14px; z-index: 3; font: italic 400 96px/.9 var(--f-d); color: var(--ivory); letter-spacing: -.05em; pointer-events: none; }
.gal-ctrl { display: flex; align-items: center; gap: 8px; }
.gal-of { font: 400 15px/1 var(--f-d); margin: 0 10px; color: var(--stone); }
.gal-of b { font-weight: 400; color: var(--ink); font-size: 22px; }
.sq { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); transition: background .3s, color .3s; }
.sq:hover { background: var(--ink); color: var(--ivory); }

/* 09 hadiah */
.gift-wrap { margin-top: 6px; }
.gift-wrap:not(:has(#gift-section)) { display: none; }
.gift-wrap #gift-section { background: transparent !important; padding: 0 0 6px !important; font-family: var(--f-u) !important; }
.gift-wrap .gs-heading { display: none; }
.gift-wrap .gs-wrap { padding: 0 !important; }
.gift-wrap .gs-track { padding: 0 0 14px !important; gap: 10px !important; touch-action: pan-x pan-y; }
.gift-wrap .gs-card { border-radius: 0 !important; border: 1px solid var(--line) !important; box-shadow: none !important; background: #faf7f1 !important; flex-basis: 150px !important; }
.gift-wrap .gs-card:hover { transform: none !important; }
.gift-wrap .gs-img-ph { background: var(--paper) !important; height: 104px !important; filter: grayscale(1); }
.gift-wrap .gs-name { font-family: var(--f-u) !important; color: var(--ink) !important; }
.gift-wrap .gs-price { font-family: var(--f-d) !important; color: var(--ink) !important; font-weight: 400 !important; font-size: 1rem !important; }
.gift-wrap .gs-dot { border-radius: 0 !important; background: var(--paper) !important; }
.gift-wrap .gs-dot.taken { background: var(--wine) !important; }
.gift-wrap .gs-btn { border-radius: 0 !important; font-family: var(--f-u) !important; text-transform: uppercase; letter-spacing: .16em !important; font-size: .62rem !important; }
.gift-wrap .gs-btn-buy { background: var(--ink) !important; color: var(--ivory) !important; }
.gift-wrap .gs-btn-done { background: var(--paper) !important; color: var(--stone) !important; }
.gift-wrap .gs-ribbon, .gift-wrap .gs-buyer-badge { background: var(--ink) !important; border-radius: 0 !important; }
.gift-wrap .gs-sub-label { padding: 0 !important; margin: 18px 0 10px !important; color: var(--stone) !important; font-family: var(--f-u) !important; letter-spacing: .24em !important; font-size: 9px !important; }
.gift-wrap .gs-bank-track { padding: 0 0 6px !important; gap: 10px !important; }
.gift-wrap .gs-bank-card { border-radius: 0 !important; border: 1px solid var(--line) !important; box-shadow: none !important; background: #faf7f1 !important; }
.gift-wrap .gs-bank-logo { border-radius: 0 !important; background: var(--ink) !important; font-family: var(--f-u) !important; }
.gift-wrap .gs-bank-logo.bride { background: var(--wine) !important; }
.gift-wrap .gs-bank-name-text { color: var(--stone) !important; font-family: var(--f-u) !important; }
.gift-wrap .gs-bank-number { font-family: var(--f-d) !important; color: var(--ink) !important; font-size: 1.05rem !important; letter-spacing: .04em !important; }
.gift-wrap .gs-bank-holder { font-family: var(--f-u) !important; color: rgba(20, 20, 20, .66) !important; }
.gift-wrap .gs-bank-copy { border-radius: 0 !important; background: transparent !important; border: 1px solid var(--ink) !important; color: var(--ink) !important; font-family: var(--f-u) !important; text-transform: uppercase; letter-spacing: .14em; font-size: .6rem !important; }
.gift-wrap .gs-bank-owner-badge { display: none; }
#gs-modal { background: var(--ivory) !important; border-radius: 0 !important; font-family: var(--f-u); }
#gs-modal .gs-mtitle { font-family: var(--f-d) !important; font-style: italic; font-size: 1.15rem !important; }
#gs-modal .gs-fi { border-radius: 0 !important; background: #faf7f1 !important; }
#gs-modal .gs-sbtn { border-radius: 0 !important; background: var(--ink) !important; text-transform: uppercase; letter-spacing: .18em; font-size: .7rem !important; }
#gs-modal .gs-mprod, #gs-modal .gs-mpimg { border-radius: 0 !important; }
#gs-modal .gs-mpprice { color: var(--ink) !important; font-family: var(--f-d) !important; }

/* 10 rsvp */
.rsvp-form { display: flex; flex-direction: column; }
.f-l { display: block; font: 600 9px/1 var(--f-u); letter-spacing: .26em; text-transform: uppercase; color: var(--stone); margin: 14px 0 4px; }
.f-l:first-of-type { margin-top: 0; }
.f-in {
    width: 100%; padding: 8px 0 9px;
    border: 0; border-bottom: 1px solid rgba(20, 20, 20, .3);
    background: transparent; border-radius: 0;
    font: 400 16px/1.4 var(--f-u); color: var(--ink);
    outline: none; resize: none;
    transition: border-color .3s;
}
.f-in:focus { border-bottom-color: var(--ink); }
.f-in::placeholder { color: rgba(20, 20, 20, .35); font-style: italic; font-family: var(--f-d); }
.att { display: flex; flex-direction: column; }
.att label { position: relative; cursor: pointer; border-bottom: 1px solid var(--line); }
.att input { position: absolute; opacity: 0; pointer-events: none; }
.att span { display: flex; align-items: center; gap: 12px; padding: 10px 0; font: 400 16px/1.2 var(--f-d); transition: color .3s; }
.att span::before { content: ''; width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(20, 20, 20, .45); flex: none; transition: background .3s, box-shadow .3s; }
.att input:checked + span::before { background: var(--ink); box-shadow: inset 0 0 0 3px var(--ivory); border-color: var(--ink); }
.att input:checked + span { font-style: italic; }
.att input:focus-visible + span { outline: 1px dashed var(--stone); outline-offset: 2px; }
.rsvp-form .btn { margin-top: 20px; }

/* 11 ucapan */
.quote-mark { font: italic 400 220px/.7 var(--f-d); color: var(--wine); margin-top: 10px; height: .45em; }
.wishes-list { border-top: 1px solid var(--line); }
.wish-item { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.wish-item.new { animation: wishIn .8s var(--ez) both; }
@keyframes wishIn { from { opacity: 0; transform: translateY(-8px); } }
.wish-avatar { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font: italic 400 17px/1 var(--f-d); }
.wish-header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.wish-name { font: italic 400 17px/1.2 var(--f-d); overflow-wrap: anywhere; }
.wish-badge { flex: none; display: inline-flex; align-items: center; gap: 6px; font: 600 8.5px/1 var(--f-u); letter-spacing: .22em; text-transform: uppercase; color: var(--stone); }
.wish-badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--stone); }
.wish-badge.hadir::before { background: var(--wine); }
.wish-badge.tidak::before { background: transparent; border: 1px solid var(--stone); }
.wish-message { font-size: 12.5px; line-height: 1.6; color: rgba(20, 20, 20, .74); margin: 5px 0 4px; overflow-wrap: anywhere; }
.wish-time { font-size: 10px; color: var(--stone); letter-spacing: .04em; }
.wish-empty { padding: 26px 0 8px; text-align: left; }
.wish-empty p { font: 400 21px/1.3 var(--f-d); margin-bottom: 18px; }
.wish-empty em { color: var(--stone); }

/* 12 penutup */
.full-box { justify-content: center; }
.unite { position: absolute; left: 50%; top: 50%; width: min(118vw, 92vh); height: auto; transform: translate(-50%, -50%); pointer-events: none; }
.unite circle { fill: none; stroke: rgba(244, 239, 230, .16); stroke-width: .6; transition: transform 1.8s var(--ez) .2s, fill 1.4s ease .9s; }
.unite .u-a { transform: translateX(-36px); }
.unite .u-b { transform: translateX(36px); }
.is-merged .unite .u-a, .is-merged .unite .u-b { transform: none; }
.end-mega { font-size: clamp(58px, 17vw, 84px); margin: 14px 0 16px; }
.end-mega em { display: block; color: var(--stone); }
.end-names { font: 400 22px/1.2 var(--f-d); margin-bottom: 14px; }
.end-names span { font-style: italic; color: #b0525e; }
.end-copy { font-size: 12px; line-height: 1.7; color: rgba(244, 239, 230, .68); max-width: 340px; margin: 0 auto 18px; }
.end-fam { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-l); border-bottom: 1px solid var(--line-l); margin-bottom: 16px; }
.end-fam p { padding: 12px 6px; font: 400 13px/1.4 var(--f-d); }
.end-fam p + p { border-left: 1px solid var(--line-l); }
.end-fam span { display: block; font: 600 8px/1.3 var(--f-u); letter-spacing: .22em; text-transform: uppercase; color: rgba(244, 239, 230, .5); margin-bottom: 6px; }
.end-salam { font: italic 400 15px/1.4 var(--f-d); margin-bottom: 18px; }
.end-credit { margin-top: 18px; font-size: 9.5px; letter-spacing: .1em; color: rgba(244, 239, 230, .45); }

/* ═══════════════ SEAM · RAIL · HUD ═══════════════ */
.seam {
    position: fixed; left: 0; top: 0; width: 100%; height: 0; z-index: 40;
    display: flex; align-items: center;
    color: #fff; mix-blend-mode: difference;
    pointer-events: none;
    will-change: transform, opacity;
    padding-right: var(--gut);
}
.sl { display: block; height: 1px; background: currentColor; opacity: .38; }
.s1 { width: 20px; flex: none; }
.s2 { flex: 1; }
.seam-tag { padding: 0 10px; white-space: nowrap; font: 600 9px/1 var(--f-u); letter-spacing: .26em; text-transform: uppercase; }
body:not(.opened) .seam, body:not(.opened) .rail { opacity: 0 !important; }

.rail {
    position: fixed; right: 0; top: 50%; z-index: 45;
    width: var(--gut);
    transform: translateY(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    color: #fff; mix-blend-mode: difference;
    transition: opacity .6s;
}
.r-n { font: 400 13px/1 var(--f-d); letter-spacing: .02em; padding: 4px 0; }
.r-n.dim { opacity: .55; }
.r-ticks { display: flex; flex-direction: column; align-items: center; }
.r-ticks button { width: 34px; height: 15px; display: flex; align-items: center; justify-content: center; }
.r-ticks i { display: block; width: 8px; height: 1px; background: currentColor; opacity: .45; transition: width .5s var(--ez), opacity .5s; }
.r-ticks button.done i { opacity: .8; }
.r-ticks button.on i { width: 20px; height: 1.5px; opacity: 1; }
.r-ticks button:hover i { width: 14px; opacity: 1; }
.r-arr { width: 34px; height: 30px; display: grid; place-items: center; transition: opacity .3s; }
.at-end .r-arr:last-child { opacity: .25; }

.music-toggle-btn {
    position: fixed; z-index: 120;
    top: calc(var(--st) + 14px); right: 9px;
    width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid currentColor;
    display: grid; place-items: center;
    color: #fff; mix-blend-mode: difference;
}
.music-toggle-btn svg { width: 14px; height: 14px; }

.hint {
    position: fixed; left: 50%; bottom: calc(var(--sb) + 22px); z-index: 60;
    transform: translate(-50%, 14px);
    display: flex; align-items: center; gap: 12px;
    padding: 11px 16px 11px 13px;
    background: var(--ink); color: var(--ivory);
    border: 1px solid rgba(244, 239, 230, .2);
    font: 500 10.5px/1.3 var(--f-u); letter-spacing: .04em;
    white-space: nowrap;
    opacity: 0; pointer-events: none;
    transition: opacity .5s, transform .5s var(--ez);
}
.hint.show { opacity: 1; transform: translate(-50%, 0); }
.h-arrows { display: flex; gap: 5px; height: 22px; }
.h-arrows i { position: relative; width: 1px; height: 100%; background: rgba(244, 239, 230, .5); overflow: visible; }
.h-arrows i::after { content: ''; position: absolute; left: -3px; width: 7px; height: 7px; border: solid var(--ivory); border-width: 1px 0 0 1px; }
.h-arrows i:first-child::after { top: 0; transform: rotate(45deg); animation: hUp 1.6s var(--ez) infinite; }
.h-arrows i:last-child::after { bottom: 0; transform: rotate(225deg); animation: hDn 1.6s var(--ez) infinite; }
@keyframes hUp { 50% { transform: translateY(-5px) rotate(45deg); } }
@keyframes hDn { 50% { transform: translateY(5px) rotate(225deg); } }

.toast {
    position: fixed; left: 50%; top: calc(var(--st) + 18px); z-index: 9900;
    transform: translate(-50%, -12px);
    background: var(--ink); color: var(--ivory);
    border: 1px solid rgba(244, 239, 230, .2);
    padding: 11px 18px;
    font: 500 11.5px/1.3 var(--f-u); letter-spacing: .04em;
    opacity: 0; pointer-events: none;
    transition: opacity .35s, transform .35s var(--ez);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.dragging, .dragging * { cursor: grabbing !important; }

/* ── Lightbox ── */
.gallery-lightbox {
    display: none; position: fixed; inset: 0; z-index: 9500;
    background: rgba(20, 20, 20, .96);
    align-items: center; justify-content: center;
    opacity: 0; transition: opacity .3s;
}
.lb-img-wrap img { max-width: 90vw; max-height: 80vh; display: block; }
.lb-close, .lb-prev, .lb-next { position: absolute; color: var(--ivory); font: 300 30px/1 var(--f-d); width: 48px; height: 48px; }
.lb-close { top: calc(var(--st) + 12px); right: 12px; font-size: 20px; }
.lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 6px; top: 50%; transform: translateY(-50%); }
.lb-counter { position: absolute; bottom: calc(var(--sb) + 22px); left: 0; right: 0; text-align: center; color: rgba(244, 239, 230, .6); font: 600 10px/1 var(--f-u); letter-spacing: .3em; }

/* ═══════════════ SMALL PHONES ═══════════════ */
@media (max-height: 700px) and (max-width: 899px) {
    .mega { font-size: 56px; }
    .gnum { font-size: 150px; }
    .d-day { font-size: 120px; }
    .h { font-size: 28px; }
    .h.sm { font-size: 23px; }
    .portrait { width: 100px; height: 140px; }
    .portrait .mono { font-size: 88px; }
    .cv-name { font-size: 64px; }
    .end-mega { font-size: 50px; }
}

/* ═══════════════ DESKTOP · KOLOM KIRI / KANAN ═══════════════ */
@media (min-width: 900px) and (orientation: landscape) {
    :root { --gut: 84px; }
    .cv-half { top: 0; bottom: 0; height: auto; width: 50%; }
    .cv-a { left: 0; right: auto; }
    .cv-b { left: auto; right: 0; }
    .cv-top { left: 48px; right: 48px; top: 40px; }
    .cv-a .cv-name-wrap { bottom: auto; top: 50%; transform: translateY(-50%); left: 48px; right: 56px; text-align: right; }
    .cv-b .cv-name-wrap { top: 50%; transform: translateY(-50%); left: 56px; right: 48px; text-align: left; }
    .cv-name { font-size: clamp(96px, 11vw, 168px); }
    .cv-role { font-size: 19px; }
    .cv-a .cv-ghost { right: auto; left: -80px; top: auto; bottom: -160px; font-size: 760px; }
    .cv-b .cv-ghost { left: auto; right: -60px; top: -120px; bottom: auto; font-size: 760px; }
    .cv-foot { left: 56px; right: auto; bottom: 48px; align-items: flex-start; }
    .cv-date { text-align: left; }
    .cv-guest { top: auto; bottom: 64px; transform: none; }
    .cv-gname { font-size: 34px; }
    .intro.opening .cv-a { transform: translate3d(-100%, 0, 0); }
    .intro.opening .cv-b { transform: translate3d(100%, 0, 0); }
    .cv-guest { left: 50%; right: auto; transform: translateX(-50%); bottom: auto; top: 27%; white-space: nowrap; }

    .box { padding: 64px 64px; }
    .pa .box { top: 0; bottom: 0; height: auto; width: calc(var(--rd) * 100%); padding-top: 64px; }
    .pb .box { top: 0; bottom: 0; left: calc(var(--rd) * 100%); right: 0; padding-right: var(--gut); padding-bottom: 64px; }
    .cell.full .box { left: 0; right: 0; width: auto; padding: 56px var(--gut); }
    .in { max-width: 440px; margin-inline: auto; }
    .h { font-size: 52px; }
    .h.sm { font-size: 40px; }
    .txt { font-size: 14px; }
    .mega { font-size: clamp(110px, 10.5vw, 160px); }
    .gnum { font-size: 400px; right: 24px; }
    .pb .gnum { right: var(--gut); }
    .art-note { font-size: 18px; }
    .arab.big { font-size: 46px; }
    .arch { width: 52%; max-width: 300px; }

    .couple, .couple.rev { flex-direction: column; text-align: center; gap: 28px; }
    .portrait { width: 200px; height: 276px; }
    .portrait .mono { font-size: 170px; }
    .pname { font-size: 44px; }
    .pparent { font-size: 13px; }

    .d-day { font-size: 300px; }
    .d-month { font-size: 46px; }
    .cd b { font-size: 52px; }
    .facts dd { font-size: 22px; }
    .gal-count { font-size: 150px; left: 40px; bottom: 26px; }
    .gal-kick, .map-tag { left: 48px; }
    .gal-kick { top: 48px; }
    .map-tag { bottom: 40px; }
    .end-mega { font-size: 128px; }
    .end-mega em { display: inline; }
    .end-copy { max-width: 460px; font-size: 13px; }
    .end-fam { max-width: 520px; margin-inline: auto; }
    .in.center { max-width: 640px; }
    .unite { width: min(70vw, 120vh); }
    .unite .u-a { transform: translateX(-80px); }
    .unite .u-b { transform: translateX(80px); }

    .seam { width: 0; height: 100%; flex-direction: column; padding: 0; }
    .sl { width: 1px !important; height: auto; }
    .s1 { flex: 1; }
    .s2 { flex: 0 0 40px; }
    .seam-tag { padding: 12px 0; }
    .music-toggle-btn { top: 24px; right: 26px; }
    .rail { width: var(--gut); }
    .hint { bottom: 28px; }
}

/* ═══════════════ REDUCED MOTION ═══════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
    .intro.opening { opacity: 0; transition: opacity .25s !important; }
}

/* interstitial: area di luar kotak tiap sel — terlihat saat kedua sisi bergeser */
.cell:not(.full)::after {
    content: attr(data-no) "\A" attr(data-label);
    position: absolute; left: 24px; right: var(--gut);
    display: flex; align-items: center;
    font: italic 400 50px/.98 var(--f-d); letter-spacing: -.03em;
    color: transparent; -webkit-text-stroke: 1px rgba(20, 20, 20, .22);
    white-space: pre-line; overflow: hidden;
    pointer-events: none;
}
.cell.ink:not(.full)::after { -webkit-text-stroke-color: rgba(244, 239, 230, .26); }
.pa .cell::after { top: calc(var(--r) * 100%); bottom: 0; }
.pb .cell::after { top: 0; height: calc(var(--r) * 100%); }
@media (min-width: 900px) and (orientation: landscape) { .cell::after { display: none !important; } }

/* ayat */
.ayat { margin-top: 4px; padding: 16px 0 0; border-top: 1px solid var(--line); }
.ayat blockquote { font: italic 400 15.5px/1.55 var(--f-d); color: var(--ink); }
.ayat figcaption { margin-top: 10px; font: 600 9px/1 var(--f-u); letter-spacing: .26em; text-transform: uppercase; color: var(--wine); }
