/* Cahaya Lilin — ruang temaram yang menyala saat tamu menyalakan lilin. */
:root {
    --bg: #120d08; --paper: #1d150d; --ink: #f3e6d0; --dim: #b39f83; --acc: #e0ad62; --acc-ink: #1a1108; --line: rgba(224, 173, 98, .26); --radius: 2px;
    --display: 'Cormorant Garamond', serif; --body: 'Spectral', serif; --script: 'Pinyon Script', 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; }
}

/* ruang */
.room { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; will-change: opacity, transform; }
.glow.a { left: 50%; top: -24vh; width: 150vmax; height: 120vh; margin-left: -75vmax; background: radial-gradient(closest-side, rgba(226, 150, 62, .3), rgba(226, 150, 62, .08) 55%, transparent); animation: breathe 5.5s ease-in-out infinite; }
.glow.b { left: -30vw; bottom: -30vh; width: 120vw; height: 90vh; background: radial-gradient(closest-side, rgba(170, 70, 30, .22), transparent); animation: breathe 7.5s ease-in-out infinite reverse; }
@keyframes breathe { 0%, 100% { opacity: .72; transform: scale(1); } 38% { opacity: 1; transform: scale(1.04); } 56% { opacity: .82; } 72% { opacity: .96; transform: scale(1.02); } }
.embers i { position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%; background: #ffc27a; box-shadow: 0 0 6px 1px rgba(255, 170, 80, .8); opacity: 0; animation: ember 13s linear infinite; }
.embers i:nth-child(1) { left: 8%; } .embers i:nth-child(2) { left: 19%; animation-delay: 3s; } .embers i:nth-child(3) { left: 31%; animation-delay: 7s; } .embers i:nth-child(4) { left: 44%; animation-delay: 1.5s; } .embers i:nth-child(5) { left: 55%; animation-delay: 9s; }
.embers i:nth-child(6) { left: 63%; animation-delay: 5s; } .embers i:nth-child(7) { left: 72%; animation-delay: 11s; } .embers i:nth-child(8) { left: 81%; animation-delay: 2.4s; } .embers i:nth-child(9) { left: 90%; animation-delay: 6.5s; } .embers i:nth-child(10) { left: 96%; animation-delay: 10s; }
@keyframes ember { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: .9; } 70% { opacity: .5; } 100% { transform: translate(34px, -104vh); opacity: 0; } }

/* lilin */
.candle { position: relative; width: 26px; height: 120px; margin: 0 auto; }
.candle .wax { position: absolute; left: 0; right: 0; top: 28px; bottom: 0; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, #b99a6f, #f4e4c6 34%, #fff5e0 52%, #d9c09a 78%, #9d7f58); }
.candle .wax::before { content: ''; position: absolute; left: -1px; right: -1px; top: 0; height: 22px; background: radial-gradient(ellipse 12px 8px at 50% 0, rgba(255, 196, 120, .9), transparent 80%); }
.candle .wax u { position: absolute; left: 4px; top: 0; width: 6px; height: 34px; border-radius: 0 0 6px 6px; background: linear-gradient(90deg, #e9d3ad, #fff3dc); }
.candle .wick { position: absolute; left: 50%; top: 18px; width: 2px; height: 11px; margin-left: -1px; background: #2a1a10; border-radius: 1px; }
.candle .flame { position: absolute; left: 50%; top: -18px; width: 18px; height: 38px; margin-left: -9px; transform-origin: 50% 100%; border-radius: 50% 50% 46% 46% / 66% 66% 34% 34%; background: radial-gradient(ellipse at 50% 76%, #fffbe9 0 18%, #ffe08a 34%, #ffab3d 62%, rgba(255, 110, 20, .5) 84%, transparent 100%); animation: flick 2.3s ease-in-out infinite; }
.candle .flame i { position: absolute; left: 50%; bottom: 2px; width: 7px; height: 11px; margin-left: -3.5px; border-radius: 50%; background: rgba(70, 110, 220, .42); filter: blur(1px); }
.candle .halo { position: absolute; left: 50%; top: 2px; width: 280px; height: 280px; margin: -140px 0 0 -140px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 186, 96, .42), rgba(255, 170, 80, .12) 45%, transparent); animation: breathe 3.1s ease-in-out infinite; pointer-events: none; }
@keyframes flick { 0%, 100% { transform: scale(1) rotate(-1deg); } 22% { transform: scale(.96, 1.05) rotate(1.6deg); } 47% { transform: scale(1.03, .96) rotate(-1.8deg); } 71% { transform: scale(.98, 1.03) rotate(1deg); } }
.candle.s { height: 88px; width: 20px; } .candle.m { height: 112px; width: 22px; } .candle.l { height: 148px; }
.candle.big { height: 150px; width: 30px; margin: 22px auto 26px; }

/* cover */
.cover { background: #0c0805; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; transition: opacity 1s ease 1.15s; }
.cover.open { opacity: 0; }
.cv-light { position: absolute; left: 50%; top: 52%; width: 200vmax; height: 200vmax; margin: -100vmax 0 0 -100vmax; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 190, 100, .55), rgba(226, 130, 50, .2) 30%, transparent 62%); opacity: 0; transform: scale(.12); transition: opacity .9s ease, transform 1.8s cubic-bezier(.16, .8, .3, 1); }
.cover.open .cv-light { opacity: 1; transform: none; }
.cv-in { position: relative; max-width: 420px; }
.cover .flame, .cover .halo { opacity: 0; transform: scale(.2); transition: opacity .6s ease .15s, transform .8s cubic-bezier(.2, 1.4, .4, 1) .15s; animation-play-state: paused; }
.cover.open .flame, .cover.open .halo { opacity: 1; transform: none; animation-play-state: running; }
.cover .wax { filter: brightness(.34); transition: filter 1s ease .2s; }
.cover.open .wax { filter: none; }
.cv-k { font-size: 12px; letter-spacing: .34em; text-transform: uppercase; color: var(--dim); }
.cv-names { font-family: var(--display); font-weight: 300; font-style: italic; font-size: clamp(46px, 14vw, 74px); line-height: 1.08; margin-top: 10px; color: #d9c4a2; transition: color 1s ease .3s, text-shadow 1s ease .3s; }
.cover.open .cv-names { color: #fff0d6; text-shadow: 0 0 30px rgba(255, 180, 90, .6); }
.amp { display: block; font-family: var(--display); font-style: italic; font-weight: 300; font-size: .66em; color: var(--acc); line-height: .96; }
.cv-date { margin-top: 8px; letter-spacing: .28em; font-size: 13px; color: var(--dim); }
.cv-to span { display: block; font-size: 12px; color: var(--dim); }
.cv-to b { display: block; font-family: var(--display); font-weight: 500; font-size: 24px; margin-bottom: 18px; line-height: 1.25; }
.cv-note { margin-top: 16px; font-size: 11px; color: var(--dim); opacity: .75; }
.cover .btn { background: transparent; color: var(--acc); }
.cover.open .btn, .cover.open .cv-note, .cover.open .cv-to { opacity: 0; transition: opacity .5s; }

/* hero */
.hero { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 90px 22px 70px; }
.trio { display: flex; align-items: flex-end; justify-content: center; gap: 22px; margin-bottom: 34px; }
.trio .candle { margin: 0; }
.hero-k { font-size: 12px; letter-spacing: .36em; text-transform: uppercase; color: var(--acc); }
.hero-names { font-family: var(--display); font-weight: 300; font-style: italic; font-size: clamp(54px, 17vw, 96px); line-height: 1.04; margin: 8px 0 18px; color: #fff0d6; text-shadow: 0 0 40px rgba(255, 170, 80, .34); }
.hero-date { font-size: 15px; } .hero-place { font-size: 14px; color: var(--dim); }

/* bagian: tanpa kotak, teks seolah diterangi saat masuk layar */
.rv { filter: brightness(.25); transition: opacity 1.2s ease, transform 1.2s ease, filter 1.6s ease; }
.rv.in { filter: none; }
.sh { text-align: center; }
.mini { position: relative; display: block; width: 2px; height: 34px; margin: 0 auto 12px; background: linear-gradient(transparent, var(--acc)); }
.mini i { position: absolute; left: -5px; top: -14px; width: 12px; height: 20px; border-radius: 50% 50% 46% 46% / 66% 66% 34% 34%; background: radial-gradient(ellipse at 50% 76%, #fff6d8 0 22%, #ffc75e 46%, #ff8f2a 76%, transparent); animation: flick 2.3s ease-in-out infinite; }
.sh-no { display: block; font-family: var(--display); font-style: italic; font-size: 15px; color: var(--acc); }
.sh-k { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--dim); }
.ttl { font-family: var(--display); font-weight: 300; font-style: italic; font-size: clamp(32px, 9vw, 44px); line-height: 1.15; margin-top: 6px; color: #fff0d6; }
.arabic.big { font-size: 26px; color: var(--acc); }
.sub { font-family: var(--display); font-style: italic; font-size: 21px; margin-bottom: 14px; }
.ayat { margin-top: 30px; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ayat .arabic { font-size: 21px; }
.ayat blockquote { font-style: italic; font-size: 14.5px; color: var(--dim); margin-top: 10px; }
.ayat figcaption { margin-top: 10px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--acc); }
.portrait { border-radius: 110px 110px 0 0; padding: 7px; border: 1px solid var(--acc); }
.portrait img, .portrait .ini { border-radius: 104px 104px 0 0; }
.portrait .ini { background: radial-gradient(circle at 50% 70%, #3a2614, #1a120a); color: var(--acc); font-style: italic; }
.person h3 { font-size: 28px; line-height: 1.2; }
.cd-i { border-left: 1px solid var(--line); } .cd-i:first-child { border-left: 0; }
.cd b { font-weight: 300; font-style: italic; color: #fff0d6; }
.ev { background: rgba(255, 214, 160, .045); border: 1px solid var(--line); }
.ev::before { content: ''; position: absolute; inset: 5px; border: 1px solid rgba(224, 173, 98, .12); pointer-events: none; }
.gal-item { border: 1px solid var(--acc); padding: 5px; background: transparent; }
.gal-item:first-child { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.wish-avatar { background: transparent; color: var(--acc); border: 1px solid var(--acc); font-style: italic; }
.fin-names { font-family: var(--display); font-weight: 300; font-style: italic; font-size: clamp(44px, 13vw, 66px); line-height: 1.05; margin: 8px 0 14px; color: #fff0d6; }
.finale .candle { margin-bottom: 30px; }
.finale .arabic { font-size: 22px; color: var(--acc); }
.music-toggle-btn { background: rgba(29, 21, 13, .8); }
.btn.line:hover { background: var(--acc); color: var(--acc-ink); }
.and { font-family: var(--display); font-style: italic; font-weight: 300; font-size: 42px; }
.gal-item:last-child:nth-child(even) { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
