/* Mega Mendung — awan batik Cirebon berlapis tujuh gradasi, terbuka seperti tirai langit. */
:root {
    --bg: #f6f0e1; --paper: #fffaf0; --ink: #14264a; --dim: #566383; --acc: #b5402f; --acc-ink: #fff7ea; --line: rgba(20, 38, 74, .2); --radius: 4px;
    --indigo: #0f2a5c; --sky: #9cc3e0;
    --c1: #0b1f47; --c2: #17397a; --c3: #2d62a6; --c4: #5c95c9; --c5: #9fc6e2; --c6: #dcecf6; --c7: #f7f2e4;
    --display: 'Marcellus', serif; --body: 'Lora', serif; --script: 'Allura', cursive;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; height: 100dvh; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.arabic { font-family: 'Amiri', serif; direction: rtl; line-height: 2; }

.music-toggle-btn { position: fixed; top: 16px; right: 16px; z-index: 1001; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 1px solid var(--line); background: var(--paper); color: var(--acc); }
.music-toggle-btn svg { width: 17px; height: 17px; }
.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 9800; transform: translate(-50%, 24px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; background: var(--ink); color: var(--bg); padding: 10px 20px; border-radius: 999px; font-size: 13px; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1002; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--acc); transform: scaleX(0); transform-origin: left; }

.cover { position: fixed; inset: 0; z-index: 2000; overflow: hidden; }
.cover.open { pointer-events: none; }

.sec { position: relative; padding: 72px 20px; counter-increment: sec; }
main { counter-reset: sec; position: relative; z-index: 1; }
.card { position: relative; max-width: 560px; margin: 0 auto; }
.center { text-align: center; }
.sh { margin-bottom: 26px; }
.sh-no::before { content: counter(sec, upper-roman); }
.rv { opacity: 0; transform: translateY(26px); transition: opacity 1s cubic-bezier(.2, .7, .2, 1), transform 1s cubic-bezier(.2, .7, .2, 1); }
.rv.in { opacity: 1; transform: none; }
.txt { margin: 0 auto 16px; max-width: 34em; }
.txt.sm { font-size: 14px; color: var(--dim); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 26px; border: 1px solid var(--acc); background: var(--acc); color: var(--acc-ink); cursor: pointer; text-decoration: none; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; transition: transform .25s, background .25s, color .25s; }
.btn:active { transform: scale(.97); }
.btn.line { background: transparent; color: var(--acc); }
.btn.wide { width: 100%; }
.btn.loading { opacity: .6; pointer-events: none; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }

.couple { display: grid; gap: 40px; }
.person h3 { font-family: var(--display); font-weight: 500; }
.portrait { position: relative; margin: 0 auto 18px; width: 210px; aspect-ratio: 4 / 5; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .ini { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-family: var(--display); font-size: 76px; }
.parent { font-size: 14.5px; color: var(--dim); }
.and { font-family: var(--script); font-size: 46px; color: var(--acc); line-height: 1; }

.story { list-style: none; position: relative; text-align: left; }
.story li { position: relative; padding: 0 0 28px 26px; border-left: 1px solid var(--line); }
.story li:last-child { padding-bottom: 0; }
.story li::before { content: ''; position: absolute; left: -5px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--acc); }
.story time { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--acc); }
.story h3 { font-family: var(--display); font-weight: 500; font-size: 22px; line-height: 1.3; margin-bottom: 4px; }
.story p { font-size: 15px; }

.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px auto 24px; max-width: 420px; }
.cd b { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(30px, 10vw, 44px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.cd span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }

.events { display: grid; gap: 20px; text-align: left; }
.ev { position: relative; padding: 26px 24px; }
.ev h3 { font-family: var(--display); font-weight: 500; font-size: 26px; line-height: 1.2; }
.ev-k { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--acc); }
.ev dl { margin: 14px 0 18px; display: grid; gap: 8px; font-size: 15px; }
.ev dl div { display: flex; gap: 10px; align-items: flex-start; }
.ev dt { color: var(--acc); padding-top: 2px; }

.map-frame { position: relative; height: 260px; overflow: hidden; margin-bottom: 20px; border: 1px solid var(--line); z-index: 0; }
.leaflet-map, .map-illu { display: block; width: 100%; height: 100%; }
.map-illu { position: relative; background: var(--paper); color: var(--acc); }
.map-illu svg { width: 100%; height: 100%; display: block; }
.mi-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); color: var(--acc); }
.mi-pin .ico { width: 40px; height: 40px; }
.pin-marker span { display: block; width: 18px; height: 18px; margin: 7px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--acc); border: 2px solid #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .4); }
.loc-name { font-family: var(--display); font-weight: 500; font-size: 24px; line-height: 1.3; margin-bottom: 6px; }

.gal { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gal-item { display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; background: var(--paper); overflow: hidden; cursor: zoom-in; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.gal-item:hover img { transform: scale(1.04); }
.gal.ph .gal-item { cursor: default; display: flex; align-items: center; justify-content: center; color: var(--dim); font-family: var(--display); font-style: italic; font-size: 17px; border: 1px solid var(--line); }
.gal-note { margin-top: 14px; }

.gift-sec { padding-bottom: 40px; }
.gift-wrap { margin-top: 20px; }
.gift #gift-section { background: transparent !important; padding: 0 !important; font-family: var(--body) !important; }
.gift #gift-section .gs-heading { display: none; }
.gift #gift-section .gs-card, .gift #gift-section .gs-bank-card { border-radius: var(--radius) !important; border: 1px solid var(--line) !important; background: var(--paper) !important; box-shadow: none !important; }
.gift #gift-section .gs-sbtn, .gift #gift-section .gs-btn-buy, .gift #gift-section .gs-bank-copy { border-radius: var(--radius) !important; background: var(--acc) !important; color: var(--acc-ink) !important; border: 0 !important; }
.gift #gift-section .gs-price { color: var(--acc) !important; }
.gift #gift-section .gs-name, .gift #gift-section .gs-bank-name-text, .gift #gift-section .gs-bank-holder { color: var(--ink) !important; }
.gift #gift-section .gs-bank-number { color: var(--ink) !important; }
.gift #gift-section .gs-dot.taken { background: var(--acc) !important; }
.gift .gs-wrap, .gift .gs-track, .gift .gs-bank-track { max-width: 1080px; margin-left: auto; margin-right: auto; }

.rsvp-form { text-align: left; }
.f-l { display: block; margin: 16px 0 6px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--acc); }
.f-in { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; outline: none; font-size: 16px; transition: border-color .25s; }
.f-in:focus { border-color: var(--acc); }
.f-in::placeholder { color: var(--dim); opacity: .75; }
textarea.f-in { resize: vertical; }
.att { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.att input { position: absolute; opacity: 0; }
.att span { display: block; padding: 10px 4px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); font-size: 13px; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.att input:checked + span { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.att input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }
.rsvp-form .btn { margin-top: 20px; }

.wishes-list { max-height: 460px; overflow-y: auto; text-align: left; }
.wish-item { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.wish-item:first-child { border-top: 0; }
.wish-avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--acc); color: var(--acc-ink); font-family: var(--display); font-size: 17px; }
.wish-body { flex: 1; min-width: 0; }
.wish-header { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
.wish-name { font-family: var(--display); font-size: 18px; word-break: break-word; }
.wish-badge { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--acc); border: 1px solid var(--line); padding: 0 8px; border-radius: 999px; }
.wish-message { font-size: 14.5px; line-height: 1.6; word-break: break-word; }
.wish-time { font-size: 11px; color: var(--dim); }
.wish-empty { text-align: center; padding: 20px 0; color: var(--dim); font-style: italic; }

.finale { position: relative; padding: 90px 22px 110px; text-align: center; }
.fam { display: grid; gap: 14px; margin: 26px auto; max-width: 420px; font-size: 15px; }
.fam span { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--acc); }
.credit { margin-top: 36px; font-size: 11px; letter-spacing: .08em; color: var(--dim); }

.gallery-lightbox { display: none; opacity: 0; transition: opacity .3s; position: fixed; inset: 0; z-index: 9600; background: rgba(8, 7, 6, .94); align-items: center; justify-content: center; }
.lb-img-wrap, .lb-img-wrap img { max-width: 94vw; max-height: 84vh; }
.lb-img-wrap img { object-fit: contain; }
.lb-close, .lb-prev, .lb-next { position: absolute; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(0, 0, 0, .35); color: #fff; font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-close { top: calc(18px + env(safe-area-inset-top)); right: 18px; font-size: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-counter { position: absolute; bottom: calc(24px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); font-size: 11px; letter-spacing: .3em; color: #fff; }

@media (min-width: 720px) {
    .couple { grid-template-columns: 1fr auto 1fr; align-items: center; }
    .events { grid-template-columns: 1fr 1fr; }
    .gal { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.cl { position: absolute; aspect-ratio: 460 / 240; height: auto; overflow: visible; }
.cl.flip { transform: scaleX(-1); }
.cl.red { --c1: #5e150e; --c2: #8c2619; --c3: #b5402f; --c4: #d9745e; --c5: #efb39f; --c6: #f9e2d6; }
.cl.drift { animation: drift 16s ease-in-out infinite alternate; }
.cl.flip.drift { animation-name: driftf; }
.cl.drift.b { animation-duration: 21s; }
@keyframes drift { to { transform: translateX(26px); } }
@keyframes driftf { from { transform: scaleX(-1); } to { transform: scaleX(-1) translateX(26px); } }

.cover { background: var(--indigo); display: flex; align-items: center; justify-content: center; padding: 20px; transition: background-color .4s .9s; }
.cover.open { background: transparent; }
.half { position: absolute; top: 0; bottom: 0; width: 51%; background: var(--indigo); transition: transform 1.7s cubic-bezier(.65, 0, .2, 1) .2s; }
.half.l { left: 0; } .half.r { right: 0; }
.cover.open .half.l { transform: translateX(-150%); } .cover.open .half.r { transform: translateX(150%); }
.medal { position: relative; z-index: 3; width: min(100%, 318px); padding: 40px 22px 24px; text-align: center; border-radius: 160px 160px 8px 8px; background: var(--paper); box-shadow: 0 0 0 5px var(--paper), 0 0 0 6px var(--indigo), 0 0 0 11px var(--paper), 0 0 0 12px var(--acc), 0 30px 60px rgba(4, 12, 34, .55); transition: opacity .45s, transform .45s; }
.cover.open .medal { opacity: 0; transform: scale(.95); }
.m-k { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--acc); }
.m-names { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 12vw, 48px); line-height: 1.06; margin-top: 8px; color: var(--indigo); }
.amp { display: block; font-family: var(--script); font-size: .82em; line-height: .95; color: var(--acc); }
.m-date { font-size: 13px; letter-spacing: .2em; color: var(--dim); margin-top: 6px; }
.m-to { margin-top: 14px; }
.m-to span { display: block; font-size: 12px; font-style: italic; color: var(--dim); }
.m-to b { display: block; font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.25; margin-bottom: 14px; }
.m-note { margin-top: 12px; font-size: 10px; color: var(--dim); }
.btn { border-radius: var(--radius); font-family: var(--display); }

.hero, .finale { position: relative; overflow: hidden; background: var(--indigo); color: #f6f0e1; }
.sky { position: absolute; inset: 0; }
.hero { min-height: 100dvh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 22px; }
.hero-in { position: relative; z-index: 2; padding: 26px 30px; background: radial-gradient(closest-side, rgba(15, 42, 92, .94) 60%, transparent); }
.hero-k { font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--sky); }
.hero-names { font-family: var(--display); font-weight: 400; font-size: clamp(50px, 15vw, 84px); line-height: 1.04; margin: 6px 0 14px; }
.hero-names .amp, .fin-names .amp { color: #efb39f; }
.hero-date { font-size: 15px; } .hero-place { font-size: 13.5px; color: var(--sky); }

.band { position: relative; height: 96px; overflow: hidden; pointer-events: none; }
.sec { padding: 56px 22px 44px; }
.sec:nth-of-type(4n+3) { background: var(--indigo); color: #f6f0e1; --ink: #f6f0e1; --dim: #b6c8e4; --line: rgba(246, 240, 225, .24); --paper: rgba(255, 255, 255, .06); --acc: #efb39f; --acc-ink: #3e0f09; }
.sh { text-align: center; }
.sh-no { display: inline-block; min-width: 40px; padding: 1px 10px; font-family: var(--display); font-size: 13px; color: var(--acc); border: 1px solid var(--acc); border-radius: 12px 12px 3px 3px; }
.sh-k { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--dim); margin-top: 12px; }
.ttl { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 8.4vw, 38px); line-height: 1.18; margin-top: 4px; }
.arabic.big { font-size: 25px; color: var(--acc); }
.sub { font-style: italic; margin-bottom: 10px; }
.ayat { margin-top: 24px; padding: 22px 18px; border-radius: 80px 80px 6px 6px; background: var(--paper); border: 1px solid var(--line); }
.ayat .arabic { font-size: 20px; }
.ayat blockquote { font-style: italic; font-size: 14px; color: var(--dim); }
.ayat figcaption { margin-top: 8px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--acc); }
.portrait { border-radius: 105px 105px 8px 8px; box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--acc); }
.portrait .ini { background: var(--indigo); color: #efb39f; }
.person h3 { font-size: 26px; line-height: 1.2; }
.cd-i { padding: 10px 2px; border: 1px solid var(--line); border-radius: 26px 26px 4px 4px; background: var(--paper); }
.ev { background: var(--paper); border: 1px solid var(--line); border-radius: 70px 70px 6px 6px; padding: 34px 24px 26px; }
.gal-item { border-radius: 90px 90px 6px 6px; }
.gal-item:nth-child(3n) { grid-column: 1 / -1; aspect-ratio: 16 / 10; border-radius: 6px; }
.wish-avatar { border-radius: 14px 14px 3px 3px; }
.finale { padding: 150px 22px 170px; }
.fin-in { position: relative; z-index: 2; }
.fin-k { color: var(--sky); font-style: italic; }
.fin-names { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 12vw, 58px); line-height: 1.06; margin: 6px 0 14px; }
.finale .arabic { font-size: 22px; color: #efb39f; }
.fam span { color: #efb39f; }
.credit { color: #b6c8e4; }
.progress i { background: #efb39f; }
.band:nth-of-type(even) { transform: scaleX(-1); }
.gal-item:last-child:nth-child(3n+1) { grid-column: 1 / -1; aspect-ratio: 16 / 10; border-radius: 6px; }
