/* ══════════════════════════════════════════════════════════════════
   KINTSUGI PORCELAIN — porselen glasir, tinta kobalt, sambungan emas
   ══════════════════════════════════════════════════════════════════ */
:root {
    --porcelain: #f6f3ec;
    --porcelain-2: #ece7dc;
    --celadon: #dfe7de;
    --indigo: #22346b;
    --cobalt: #3c5a9a;
    --ink: #1c2440;
    --text: #3a4262;
    --dim: #6b7290;
    --gold: #c9a14a;
    --gold-l: #f6e3a1;
    --gold-d: #96722c;
    --vermilion: #b8382c;
    --hair: rgba(34, 52, 107, .2);
    --pour: 0;
    --seam-len: 450;
    --mincho: 'Shippori Mincho B1', 'Hiragino Mincho ProN', 'Yu Mincho', Georgia, serif;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Zen Kaku Gothic New', 'Helvetica Neue', Arial, sans-serif;
    --ease: cubic-bezier(.2, .7, .1, 1);
    --paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .38 0 0 0 0 .45 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
    --waves: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24' viewBox='0 0 48 24'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Cpath d='M0 24a24 24 0 0 1 48 0M8 24a16 16 0 0 1 32 0M16 24a8 8 0 0 1 16 0M-24 12a24 24 0 0 1 48 0M-16 12a16 16 0 0 1 32 0M-8 12a8 8 0 0 1 16 0M24 12a24 24 0 0 1 48 0M32 12a16 16 0 0 1 32 0M40 12a8 8 0 0 1 16 0'/%3E%3C/g%3E%3C/svg%3E");
    --waves-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12' viewBox='0 0 48 24'%3E%3Crect width='48' height='24' fill='%2322346b'/%3E%3Cg fill='%2322346b' stroke='%23f6f3ec' stroke-width='2'%3E%3Cpath d='M-24 12a24 24 0 0 1 48 0M24 12a24 24 0 0 1 48 0'/%3E%3Cpath d='M0 24a24 24 0 0 1 48 0'/%3E%3C/g%3E%3Cg fill='none' stroke='%23f6f3ec' stroke-width='1.6'%3E%3Cpath d='M8 24a16 16 0 0 1 32 0M16 24a8 8 0 0 1 16 0'/%3E%3C/g%3E%3C/svg%3E");
    --jag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 10'%3E%3Cpath d='M1 6 L18 4 L24 7 L40 3 L47 6 L62 4 L70 7 L89 5' fill='none' stroke='%23c9a14a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M40 3 L44 0' stroke='%23c9a14a' stroke-width='1.1' stroke-linecap='round'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background-color: var(--porcelain);
    background-image: var(--paper), radial-gradient(120% 60% at 50% 0%, #fbfaf6, transparent 70%);
    color: var(--text);
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
body.no-scroll { overflow: hidden; height: 100%; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
::selection { background: rgba(201, 161, 74, .35); color: var(--ink); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -.14em; flex-shrink: 0; }

.gold {
    background-image: linear-gradient(115deg, #8f6a26 0%, #c9a14a 22%, #f6e3a1 38%, #c9a14a 52%, #9c7630 70%, #e9cf88 86%, #a77d2e 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
    animation: goldSheen 8s ease-in-out infinite alternate;
}
@keyframes goldSheen { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* ── Ambient ─────────────────────────────────────────────────────── */
.flecks { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 95; pointer-events: none; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 65; pointer-events: none; opacity: 0; transition: opacity .6s; }
.progress i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--gold-d), var(--gold-l), var(--gold)); }
body.opened .progress { opacity: 1; }

/* ── Labels & text ───────────────────────────────────────────────── */
.lbl { display: block; margin: 0; font-family: var(--sans); font-weight: 400; font-size: 10.5px; letter-spacing: .34em; text-transform: uppercase; color: var(--cobalt); }
.lbl.sm { font-size: 10px; letter-spacing: .2em; text-transform: none; color: var(--dim); }
.center { text-align: center; }
.ttl { margin: 0 0 18px; font-family: var(--mincho); font-weight: 500; font-size: clamp(30px, 8.4vw, 50px); line-height: 1.25; color: var(--indigo); letter-spacing: .01em; }
.ttl::after { content: ''; display: block; width: 92px; height: 10px; margin: 16px auto 0; background: var(--jag) center / contain no-repeat; }
.sub { margin: -6px 0 18px; font-style: italic; font-size: 21px; color: var(--cobalt); }
.txt { margin: 0 auto 14px; max-width: 560px; color: var(--text); }
.txt.sm { font-size: 17px; color: var(--dim); }
.arabic { font-family: 'Amiri', serif; direction: rtl; font-size: 24px; line-height: 2; color: var(--indigo); margin: 0 0 12px; }
.arabic.big { font-size: 30px; }

/* section heading */
.sh { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0 0 22px; }
.sh-k { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--vermilion); color: var(--vermilion); font-family: var(--mincho); font-size: 15px; border-radius: 3px; background: rgba(184, 56, 44, .04); }
.sh-l { font-family: var(--sans); font-size: 10.5px; letter-spacing: .36em; text-transform: uppercase; color: var(--cobalt); }
.sh-v { display: none; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn-gold, .btn-line {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 16px 32px; cursor: pointer; text-decoration: none; border-radius: 2px;
    font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase;
    transition: transform .35s var(--ease), box-shadow .35s, background-color .35s, color .35s;
    -webkit-tap-highlight-color: transparent;
}
.btn-gold {
    border: 0; color: var(--ink);
    background: linear-gradient(115deg, #a77d2e, #d9b766 24%, #f8e9b8 42%, #d2ad5c 60%, #a77d2e 84%, #dcbd72);
    background-size: 220% 100%; animation: goldSheen 6s ease-in-out infinite alternate;
    box-shadow: 0 14px 30px -14px rgba(120, 88, 30, .65), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.btn-gold::after { content: ''; position: absolute; inset: -5px; border: 1px solid rgba(201, 161, 74, .5); border-radius: 4px; pointer-events: none; transition: inset .35s var(--ease); }
.btn-gold:hover { transform: translateY(-2px); }
.btn-gold:hover::after { inset: -8px; }
.btn-gold > span { display: inline-flex; align-items: center; gap: 10px; }
.btn-gold.wide { width: 100%; margin-top: 28px; }
.btn-gold.loading { opacity: .65; pointer-events: none; }
.btn-line { background: transparent; color: var(--indigo); border: 1px solid rgba(34, 52, 107, .35); padding: 14px 24px; margin-top: 24px; }
.btn-line:hover { background: rgba(34, 52, 107, .06); }
.btn-line.light { color: var(--gold-l); border-color: rgba(246, 227, 161, .45); }
.btn-line.light:hover { background: rgba(246, 227, 161, .08); }

/* ── Music & toast ───────────────────────────────────────────────── */
.music-toggle-btn {
    position: fixed; z-index: 96; top: calc(16px + env(safe-area-inset-top)); right: 16px;
    width: 44px; height: 44px; border-radius: 50%; padding: 0; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    background: rgba(250, 248, 243, .82); color: var(--indigo);
    border: 1px solid rgba(34, 52, 107, .3);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    box-shadow: 0 8px 22px -8px rgba(28, 36, 64, .35);
}
.music-toggle-btn svg { width: 17px; height: 17px; }
.music-toggle-btn.playing::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid rgba(201, 161, 74, .6); animation: ring 2.4s ease-out infinite; }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.toast {
    position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); z-index: 9700;
    transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
    background: var(--indigo); color: var(--porcelain); border: 1px solid rgba(246, 227, 161, .35); border-radius: 2px;
    padding: 12px 22px; font-family: var(--sans); font-size: 12px; letter-spacing: .08em;
    transition: opacity .35s, transform .35s var(--ease); max-width: calc(100vw - 40px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ══════════════════════════════════════════════════════════════════
   COVER — piring retak
   ══════════════════════════════════════════════════════════════════ */
.cover {
    position: fixed; inset: 0; z-index: 90; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: space-between;
    padding: calc(26px + env(safe-area-inset-top)) 22px calc(22px + env(safe-area-inset-bottom));
    background-color: var(--porcelain);
    background-image: var(--paper), radial-gradient(90% 55% at 50% 45%, #fdfcf8 0%, rgba(253, 252, 248, 0) 70%), linear-gradient(180deg, #f3f1ea, #ebeee6 70%, #e4e8e0);
    transition: opacity .9s ease, visibility .9s;
    text-align: center;
}
.cv-wash { position: absolute; left: 0; right: 0; bottom: 0; height: 34vh; pointer-events: none; opacity: .38; }
.cv-wash svg { width: 100%; height: 100%; display: block; }
.cv-vert { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; font-family: var(--mincho); font-size: 13px; letter-spacing: .5em; color: var(--cobalt); opacity: .55; }
.cv-top { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; transition: opacity .8s, transform .8s var(--ease); }
.cv-tick { width: 1px; height: 22px; background: linear-gradient(var(--gold), transparent); }
.cv-top .lbl.sm { font-family: var(--serif); font-style: italic; font-size: 16px; letter-spacing: .02em; color: var(--dim); }

.plate-stage {
    position: relative; z-index: 2; flex: 0 0 auto;
    width: min(84vw, 45vh, 470px); aspect-ratio: 1;
    cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent; outline: none;
    transition: transform 1.1s var(--ease), opacity 1s ease;
}
.plate-stage:focus-visible .hold-track { stroke: var(--gold); stroke-opacity: .8; }
.plate-svg { position: relative; z-index: 1; width: 100%; height: 100%; overflow: visible; display: block; animation: plateFloat 7s ease-in-out infinite; }
@keyframes plateFloat { 0%, 100% { transform: translateY(0) rotate(-.6deg); } 50% { transform: translateY(-8px) rotate(.6deg); } }
.plate-stage.holding .plate-svg { animation-play-state: paused; }
.plate-shadow { position: absolute; left: 14%; right: 14%; bottom: -5%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(28, 36, 64, .24), transparent); filter: blur(4px); animation: shadowFloat 7s ease-in-out infinite; }
@keyframes shadowFloat { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.9); opacity: .7; } }

.hold-track { fill: none; stroke: var(--indigo); stroke-opacity: .1; stroke-width: 1; stroke-dasharray: 2 6; }
.hold-ring { fill: none; stroke: url(#kpGold); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: var(--ring-len, 1300); opacity: calc(var(--pour) * 10); }
.shard .edge { fill: none; stroke: #b9b09c; stroke-width: 1.3; stroke-linejoin: round; opacity: calc(1 - var(--pour)); }
.shard .br { fill: none; stroke: url(#kpGold); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 70; stroke-dashoffset: calc(70px - 70px * var(--pour)); }
.sh-name { font-family: var(--mincho); font-weight: 600; fill: var(--ink); letter-spacing: .02em; paint-order: stroke; stroke: rgba(250, 248, 242, .85); stroke-width: 5px; stroke-linejoin: round; }
.seam { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: var(--seam-len) calc(var(--seam-len) + 20); stroke-dashoffset: var(--seam-len); }
.seam.gold { stroke: url(#kpGold); stroke-width: 4.6; animation: none; }
.seam.glow { stroke: #f1d27f; stroke-width: 12; opacity: .32; }
.seam.sweep { stroke: #fffbea; stroke-width: 2.4; stroke-dasharray: 46 2000; stroke-dashoffset: 46; opacity: 0; }
.drop { fill: url(#kpDrop); opacity: 0; filter: drop-shadow(0 0 6px rgba(246, 227, 161, .95)); transition: opacity .2s; }
.hanko { pointer-events: none; }
.hk-in { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(2.3) rotate(-18deg); }
.hk-t { font-family: var(--mincho); font-weight: 700; font-size: 17px; fill: #fbf1ea; }

.cv-foot { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; transition: opacity .8s, transform .8s var(--ease); }
.cv-date { margin: 0 0 12px; font-family: var(--sans); font-size: 11.5px; letter-spacing: .36em; text-transform: uppercase; color: var(--indigo); }
.cv-to { margin: 0 0 14px; display: flex; flex-direction: column; gap: 2px; }
.cv-to span { font-family: var(--sans); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--dim); }
.cv-to b { font-family: var(--mincho); font-weight: 500; font-size: 22px; color: var(--ink); line-height: 1.35; }
.cv-hint { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; font-style: italic; font-size: 16px; color: var(--cobalt); transition: opacity .4s; }
.cv-hint i { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.cv-hint i::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--gold); animation: ring 2s ease-out infinite; }
.cv-note { margin: 16px 0 0; font-family: var(--sans); font-size: 10px; letter-spacing: .04em; color: var(--dim); opacity: .8; }

.cover.pouring .cv-hint, .cover.s1 .cv-hint { opacity: 0; }
.cover.s1 .plate-svg { animation-play-state: paused; }
.cover.s1 .seam.sweep { animation: seamSweep 1.3s cubic-bezier(.45, 0, .25, 1) forwards; }
@keyframes seamSweep { 0% { opacity: 0; stroke-dashoffset: 46; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; stroke-dashoffset: calc(var(--seam-len) * -1px); } }
.cover.s1 .seam.glow { animation: glowPulse 1.6s ease-out forwards; }
@keyframes glowPulse { 0% { opacity: .32; } 40% { opacity: .75; stroke-width: 18; } 100% { opacity: .28; stroke-width: 10; } }
.cover.s1 .cv-foot .btn-gold { opacity: 0; pointer-events: none; transition: opacity .5s; }
.cover.s2 .hk-in { animation: stamp .7s cubic-bezier(.3, 1.4, .5, 1) forwards; }
@keyframes stamp { 0% { opacity: 0; transform: scale(2.3) rotate(-18deg); } 60% { opacity: 1; transform: scale(.94) rotate(-6deg); } 100% { opacity: 1; transform: scale(1) rotate(-7deg); } }
.cover.s3 .plate-stage { transform: translateY(-5vh) scale(1.06); opacity: 0; }
.cover.s3 .cv-top { opacity: 0; transform: translateY(-14px); }
.cover.s3 .cv-foot { opacity: 0; transform: translateY(14px); }
.cover.s4 { opacity: 0; visibility: hidden; pointer-events: none; }

/* ══════════════════════════════════════════════════════════════════
   MAIN — garis kintsugi sepanjang halaman
   ══════════════════════════════════════════════════════════════════ */
main { position: relative; overflow: hidden; }
.hero, .sec, .philo { overflow: hidden; }
.seam-line { position: absolute; top: 0; left: 0; width: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.sl { fill: none; stroke-linecap: round; stroke-linejoin: round; transition: stroke-dashoffset .25s linear; }
.sl.glow { stroke: #ecd087; stroke-width: 7; opacity: .26; }
.sl.base { stroke: #c39a44; stroke-width: 2.2; }
.sl.hi { stroke: #fbecc0; stroke-width: .8; }
.sl.br { stroke: #c39a44; stroke-width: 1.7; transition: stroke-dashoffset 1.3s var(--ease); }

.wrap { position: relative; z-index: 2; max-width: 960px; margin: 0 auto; padding: 0 26px; }
.wrap.narrow { max-width: 700px; }
.sec { position: relative; padding: 104px 0 112px; }

/* reveal */
.rv-up { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.rv-up.in { opacity: 1; transform: none; }
.rv-pop { opacity: 0; transform: scale(.88) rotate(-4deg); transition: opacity 1.3s var(--ease), transform 1.6s var(--ease); }
.rv-pop.in { opacity: 1; transform: none; }
.rv-shard { opacity: 0; transform: translateY(34px) rotate(-4deg); transition: opacity 1.2s var(--ease), transform 1.5s var(--ease); }
.rv-shard.b { transform: translateY(34px) rotate(4deg); }
.rv-shard.in { opacity: 1; transform: none; }

/* ink-wash motifs */
.ink-mtn { position: absolute; left: -6%; right: -6%; bottom: 0; height: 240px; z-index: 0; pointer-events: none; opacity: .7; will-change: transform; }
.ink-mtn svg { width: 100%; height: 100%; display: block; }
.ink-mtn.sm { height: 170px; top: 40px; bottom: auto; opacity: .45; }
.ink-branch { position: absolute; z-index: 0; top: 0; right: -24px; width: 190px; pointer-events: none; opacity: .85; will-change: transform; }
.ink-branch svg { width: 100%; display: block; }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 84px 0 110px; }
.hero .wrap { width: 100%; }
.hero-plate { position: relative; width: min(56vw, 250px); margin: 0 auto 26px; }
.plate-mini { width: 100%; height: auto; display: block; overflow: visible; }
.seam-static { fill: none; stroke: url(#kpGold); stroke-width: 4.6; stroke-linecap: round; stroke-linejoin: round; }
.seam-static.hi { stroke: #fff6d6; stroke-width: 1.2; opacity: .75; }
.seam-static.br { stroke-width: 2.4; }
.hk-mini {
    position: absolute; right: 9%; bottom: 10%; width: 15%; aspect-ratio: 1; display: grid; place-content: center; gap: 0;
    background: var(--vermilion); border-radius: 12%; transform: rotate(-7deg);
    box-shadow: inset 0 0 0 2px rgba(251, 241, 234, .9), inset 0 0 0 4px var(--vermilion);
    font-family: var(--mincho); font-weight: 700; color: #fbf1ea; text-align: center; line-height: 1;
    font-size: clamp(9px, 2.6vw, 13px);
}
.hero-names { margin: 10px 0 18px; font-family: var(--mincho); font-weight: 500; font-size: clamp(52px, 15vw, 112px); line-height: 1.04; color: var(--indigo); display: flex; flex-direction: column; align-items: center; letter-spacing: .01em; }
.amp { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: .62em; line-height: 1; margin: .02em 0 .06em; }
.hero-date { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 14px; font-family: var(--sans); font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--cobalt); }
.hero-date b { font-family: var(--mincho); font-weight: 500; font-size: 19px; letter-spacing: .12em; color: var(--ink); }
.hero-date i { width: 22px; height: 1px; background: var(--gold); }
.hero-place { margin: 14px 0 0; font-style: italic; font-size: 19px; color: var(--text); }
.scroll-cue { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 38px; text-decoration: none; font-family: var(--sans); font-size: 9.5px; letter-spacing: .34em; text-transform: uppercase; color: var(--dim); }
.scroll-cue i { width: 1px; height: 40px; background: linear-gradient(var(--gold), transparent); animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ── Tiles ───────────────────────────────────────────────────────── */
.tile {
    position: relative; border-radius: 4px; padding: 34px 26px;
    background: linear-gradient(162deg, #fffefa 0%, #f6f2e9 60%, #efebe0 100%);
    border: 1px solid rgba(34, 52, 107, .2);
    box-shadow: inset 0 1px 0 #fff, 0 26px 50px -32px rgba(28, 36, 64, .45), 0 2px 6px -2px rgba(28, 36, 64, .08);
}
.tile::before { content: ''; position: absolute; inset: 6px; border: 1px solid rgba(60, 90, 154, .16); border-radius: 2px; pointer-events: none; }
.mend { position: absolute; width: 104px; height: 104px; z-index: 3; pointer-events: none; overflow: visible; }
.mend path { fill: none; stroke: url(#kpGold); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 1.8s var(--ease) .5s; }
.mend .mb { stroke-width: 1.3; transition-delay: 1.4s; }
.mend.tr { top: -1px; right: -1px; }
.mend.bl { bottom: -1px; left: -1px; transform: rotate(180deg); }
.mend.tl { top: -1px; left: -1px; transform: scaleX(-1); }
.rv.in .mend path, .in > .mend path { stroke-dashoffset: 0; }

.ayat { margin: 40px auto 0; padding: 40px 26px 32px; }
.ayat .arabic { font-size: 23px; }
.ayat blockquote { margin: 8px 0 14px; font-style: italic; font-size: 19px; line-height: 1.7; color: var(--text); }
.ayat figcaption { font-family: var(--sans); font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--cobalt); }

/* ── Filosofi ────────────────────────────────────────────────────── */
.philo { position: relative; padding: 70px 0 80px; }
.philo-k { display: block; margin-bottom: 16px; font-family: var(--mincho); font-size: 15px; letter-spacing: .6em; color: var(--vermilion); }
.philo-q { margin: 0 auto 20px; max-width: 600px; font-family: var(--mincho); font-weight: 400; font-size: clamp(19px, 5.2vw, 27px); line-height: 1.75; color: var(--indigo); }

/* ── Mempelai ────────────────────────────────────────────────────── */
.couple { display: grid; gap: 40px; margin-top: 38px; }
.person-card { text-align: center; }
.shard-frame { position: relative; width: min(66vw, 290px); aspect-ratio: 10 / 13; margin: 0 auto 26px; filter: drop-shadow(0 24px 24px rgba(28, 36, 64, .22)); }
.shard-frame::before, .sf-in { position: absolute; content: ''; }
.shard-frame::before { inset: -6px; background: linear-gradient(135deg, #a77d2e, #f3dc95 35%, #c9a14a 55%, #f6e3a1 75%, #96722c); }
.sf-in { inset: 0; overflow: hidden; background: radial-gradient(circle at 40% 32%, #fff, #f1ede4 60%, #e2dccf); }
.shard-frame.g::before, .shard-frame.g .sf-in { clip-path: polygon(4% 3%, 58% 0, 100% 6%, 96% 54%, 100% 97%, 46% 100%, 3% 95%, 0 46%); }
.shard-frame.b::before, .shard-frame.b .sf-in { clip-path: polygon(0 6%, 42% 0, 96% 3%, 100% 46%, 97% 95%, 54% 100%, 0 97%, 4% 54%); }
.sf-in img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 2.2s var(--ease); }
.rv-shard.in .sf-in img { transform: scale(1); }
.sf-ph { position: absolute; inset: 0; display: grid; place-items: center; background-image: var(--waves-ink); background-size: 24px 12px; background-position: bottom; }
.sf-ph::before { content: ''; position: absolute; inset: 0 0 18% 0; background: radial-gradient(circle at 40% 32%, #fff, #f3efe6 62%, #e7e2d6); }
.sf-ph b { position: relative; font-family: var(--mincho); font-weight: 500; font-size: 120px; line-height: 1; color: var(--indigo); }
.sf-seam { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; overflow: visible; }
.sf-seam path { fill: none; stroke: url(#kpGold); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 320; stroke-dashoffset: 320; transition: stroke-dashoffset 2s var(--ease) .7s; filter: drop-shadow(0 0 3px rgba(246, 227, 161, .7)); }
.rv-shard.in .sf-seam path { stroke-dashoffset: 0; }
.person { margin: 8px 0 0; font-family: var(--mincho); font-weight: 500; font-size: 26px; line-height: 1.3; color: var(--indigo); }
.mini-mend { display: block; width: 74px; height: 9px; margin: 14px auto; background: var(--jag) center / contain no-repeat; }
.parent { margin: 0; font-size: 18px; line-height: 1.55; color: var(--text); }
.parent b { font-weight: 500; color: var(--ink); }
.couple-amp { text-align: center; font-family: var(--serif); font-style: italic; font-size: 76px; line-height: .6; }

/* ── Kisah ───────────────────────────────────────────────────────── */
.story { list-style: none; margin: 34px 0 0; padding: 0; }
.story li { display: grid; grid-template-columns: 84px 1fr; gap: 20px; align-items: start; padding: 28px 0; border-top: 1px solid rgba(34, 52, 107, .12); }
.story li:last-child { border-bottom: 1px solid rgba(34, 52, 107, .12); }
.st-art svg { width: 84px; height: 84px; display: block; overflow: visible; filter: drop-shadow(0 8px 10px rgba(28, 36, 64, .16)); }
.st-art .plate-mini { width: 84px; }
.story h3 { margin: 6px 0 8px; font-family: var(--mincho); font-weight: 500; font-size: 24px; color: var(--indigo); }
.story p:not(.lbl) { margin: 0; font-size: 18px; }
.story .lbl { font-size: 9.5px; letter-spacing: .24em; }

/* ── Countdown (glasir kobalt) ───────────────────────────────────── */
.cobalt { background: radial-gradient(120% 80% at 50% 0%, #2f4a8c 0%, #1e2f62 55%, #142046 100%); color: #e8ecf7; overflow: hidden; }
.seigaiha { position: absolute; inset: 0; background-image: var(--waves); background-size: 48px 24px; opacity: .07; pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 45%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 45%, #000 70%, transparent); }
.cobalt .sh-k { border-color: var(--gold-l); color: var(--gold-l); background: rgba(246, 227, 161, .06); }
.cobalt .sh-l, .cobalt .sh-v { color: #cdd6ef; }
.bigdate { margin: 4px 0 30px; font-family: var(--mincho); font-weight: 500; font-size: clamp(38px, 11vw, 72px); line-height: 1.1; letter-spacing: .04em; }
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 520px; margin: 0 auto; }
.disc { display: flex; flex-direction: column; align-items: center; }
.disc-face {
    position: relative; width: 100%; max-width: 110px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
    background: radial-gradient(circle at 36% 30%, #fff 0%, #f5f1e8 46%, #e3ddd0 100%);
    box-shadow: inset 0 0 0 4px #f5f1e8, inset 0 0 0 5.5px #22346b, inset 0 0 0 8px #f5f1e8, inset 0 0 0 9px rgba(60, 90, 154, .55), 0 16px 30px rgba(5, 10, 30, .45);
}
.disc-face b { position: relative; z-index: 1; font-family: var(--mincho); font-weight: 600; font-size: clamp(22px, 7vw, 40px); color: var(--indigo); font-variant-numeric: tabular-nums; }
.disc-mend { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
.disc-mend path { fill: none; stroke: url(#kpGold); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.disc-l { margin-top: 12px; font-family: var(--sans); font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; color: #cdd6ef; }
.cd-date { margin: 30px 0 0; font-style: italic; font-size: 20px; color: #e8ecf7; }

/* ── Acara ───────────────────────────────────────────────────────── */
.events { display: grid; gap: 30px; margin-top: 38px; }
.ev { text-align: center; padding: 50px 26px 34px; overflow: hidden; }
.ev-band { position: absolute; top: 0; left: 0; right: 0; height: 14px; background-image: var(--waves-ink); background-size: 24px 12px; background-repeat: repeat-x; border-bottom: 1px solid var(--indigo); opacity: .92; }
.ev-ico { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 14px; border-radius: 50%; border: 1px solid rgba(34, 52, 107, .35); color: var(--indigo); font-size: 24px; background: radial-gradient(circle at 40% 35%, #fff, #f1ede3); box-shadow: 0 0 0 5px rgba(246, 243, 236, .9), 0 0 0 6px rgba(201, 161, 74, .5); }
.ev h3 { margin: 6px 0 18px; font-family: var(--mincho); font-weight: 500; font-size: 30px; color: var(--indigo); }
.ev dl { display: inline-grid; gap: 12px; margin: 0; text-align: left; }
.ev dl div { display: flex; align-items: flex-start; gap: 12px; }
.ev dt { color: var(--gold-d); font-size: 18px; padding-top: 3px; }
.ev dd { margin: 0; font-size: 18px; line-height: 1.45; color: var(--ink); }

/* ── Lokasi ──────────────────────────────────────────────────────── */
.map-frame { position: relative; margin: 30px auto 0; padding: 8px; background: #fffdf8; border: 1px solid rgba(34, 52, 107, .22); border-radius: 4px; box-shadow: 0 26px 50px -32px rgba(28, 36, 64, .45); }
.map-frame .mend { z-index: 500; }
.leaflet-map, .map-illu { display: block; width: 100%; aspect-ratio: 4 / 3; position: relative; z-index: 1; border-radius: 2px; overflow: hidden; }
.leaflet-map .leaflet-tile-pane { filter: grayscale(1) sepia(.25) hue-rotate(185deg) saturate(1.5) brightness(1.04) contrast(.94); }
.map-illu svg { width: 100%; height: 100%; display: block; }
.mi-pin { position: absolute; left: 50%; top: 51%; transform: translate(-50%, -100%); font-size: 34px; color: var(--vermilion); }
.kp-marker span { display: grid; place-items: center; width: 28px; height: 28px; margin: 2px auto 0; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--vermilion); border: 2px solid #fffdf8; box-shadow: 0 0 0 1px var(--gold), 0 6px 12px rgba(28, 36, 64, .35); }
.kp-marker b { width: 8px; height: 8px; border-radius: 50%; background: #fffdf8; }
.leaflet-container { font-family: var(--sans); background: #e9e6dc; }
.loc-name { margin: 28px 0 6px; font-family: var(--mincho); font-weight: 500; font-size: 24px; color: var(--indigo); }
#lokasi .btn-gold { margin-top: 18px; }

/* ── Galeri ──────────────────────────────────────────────────────── */
.gal { column-count: 2; column-gap: 10px; margin: 36px 0 22px; }
.gal-item {
    position: relative; display: block; width: 100%; margin: 0 0 10px; padding: 0; border: 0; cursor: pointer;
    break-inside: avoid; overflow: hidden; border-radius: 3px; aspect-ratio: 3 / 4;
    background: #e9e4d8; box-shadow: 0 16px 30px -22px rgba(28, 36, 64, .5);
}
.gal-item:nth-child(4n+2) { aspect-ratio: 1; }
.gal-item:nth-child(4n+3) { aspect-ratio: 4 / 5; }
.gal-item:nth-child(4n) { aspect-ratio: 3 / 4.6; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gal-item:hover img { transform: scale(1.05); }
.gal-crack { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.gal-crack path { fill: none; stroke: url(#kpGold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 260; stroke-dashoffset: 260; transition: stroke-dashoffset 1.8s var(--ease) .4s; filter: drop-shadow(0 0 2px rgba(246, 227, 161, .8)); }
.gal-item.in .gal-crack path { stroke-dashoffset: 0; }
.gal-item::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(115deg, transparent 38%, rgba(255, 248, 222, .55) 50%, transparent 62%); transform: translateX(-130%); }
.gal-item.in::after { animation: gleam 1.6s ease-in-out 1.3s; }
.gal-item:hover::after { animation: gleam 1.2s ease-in-out; }
@keyframes gleam { from { transform: translateX(-130%); } to { transform: translateX(130%); } }
.gal-no { position: absolute; left: 8px; bottom: 8px; z-index: 4; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 2px; background: rgba(184, 56, 44, .92); color: #fbf1ea; font-family: var(--mincho); font-size: 12px; }
.gal.ph .gal-item { cursor: default; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: radial-gradient(circle at 40% 32%, #fffefa, #f1ede3 60%, #e6e0d3); border: 1px solid rgba(34, 52, 107, .16); }
.ph-art { color: var(--cobalt); font-size: 40px; display: flex; }
.ph-cap { font-family: var(--mincho); font-size: 15px; color: var(--indigo); }

/* gift (partial) */
.gift-wrap { position: relative; z-index: 2; margin-top: 8px; }
.gift #gift-section { background: transparent !important; padding: 10px 0 0 !important; font-family: var(--sans) !important; }
.gift #gift-section .gs-heading { display: none; }
.gift #gift-section .gs-card, .gift #gift-section .gs-bank-card { border-radius: 4px !important; border: 1px solid rgba(34, 52, 107, .2) !important; box-shadow: 0 16px 30px -22px rgba(28, 36, 64, .45) !important; background: linear-gradient(162deg, #fffefa, #f3efe5) !important; }
.gift #gift-section .gs-sbtn, .gift #gift-section .gs-btn-buy, .gift #gift-section .gs-bank-copy { border-radius: 2px !important; background: var(--indigo) !important; color: var(--porcelain) !important; border: 0 !important; letter-spacing: .1em; }
.gift #gift-section .gs-price { color: var(--gold-d) !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-dot.taken { background: var(--gold) !important; }
.gift .gs-wrap, .gift .gs-track, .gift .gs-bank-track { max-width: 1080px; margin-left: auto; margin-right: auto; }

/* ── RSVP ────────────────────────────────────────────────────────── */
.rsvp-form { margin: 30px auto 0; padding: 36px 24px 30px; }
.f-l { display: block; margin: 20px 0 8px; font-family: var(--sans); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--cobalt); }
.f-l:first-of-type { margin-top: 0; }
.f-in {
    position: relative; width: 100%; padding: 10px 2px; border: 0; border-bottom: 1px solid rgba(34, 52, 107, .3); border-radius: 0;
    background: transparent; color: var(--ink); font-family: var(--serif); font-size: 19px; outline: none; resize: vertical; transition: border-color .3s;
}
.f-in::placeholder { color: rgba(58, 66, 98, .45); font-style: italic; }
.f-in:focus { border-bottom-color: var(--gold); }
.att { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.att label { position: relative; cursor: pointer; }
.att input { position: absolute; opacity: 0; pointer-events: none; }
.att span { display: block; padding: 11px 4px; text-align: center; border: 1px solid rgba(34, 52, 107, .25); border-radius: 2px; font-family: var(--sans); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text); transition: all .3s; background: rgba(255, 255, 255, .5); }
.att input:checked + span { background: var(--indigo); color: var(--porcelain); border-color: var(--indigo); box-shadow: 0 0 0 1px var(--gold) inset; }
.att input:focus-visible + span { outline: 1px solid var(--gold); outline-offset: 2px; }

/* ── Ucapan ──────────────────────────────────────────────────────── */
.wishes { margin-top: 30px; padding: 10px 22px; }
.wishes-list { max-height: 560px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.wish-item { display: flex; gap: 14px; padding: 20px 0; border-top: 1px solid rgba(34, 52, 107, .12); }
.wish-item:first-child { border-top: 0; }
.wish-item.new { animation: fadeUp .8s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.wish-avatar { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--av, #22346b); color: #fbf8f1; font-family: var(--mincho); font-size: 18px; text-transform: uppercase; box-shadow: 0 0 0 3px #f8f5ee, 0 0 0 4px rgba(201, 161, 74, .6); }
.wish-body { flex: 1; min-width: 0; }
.wish-header { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.wish-name { font-family: var(--mincho); font-weight: 500; font-size: 17px; color: var(--indigo); word-break: break-word; }
.wish-badge { font-family: var(--sans); font-size: 8.5px; letter-spacing: .2em; text-transform: uppercase; padding: 3px 8px; border-radius: 2px; border: 1px solid rgba(201, 161, 74, .6); color: var(--gold-d); }
.wish-badge.tidak { color: var(--vermilion); border-color: rgba(184, 56, 44, .4); }
.wish-badge.ragu { color: var(--dim); border-color: rgba(107, 114, 144, .35); }
.wish-message { margin: 6px 0; font-size: 17.5px; line-height: 1.6; color: var(--text); word-break: break-word; }
.wish-time { font-family: var(--sans); font-size: 10px; letter-spacing: .1em; color: var(--dim); }
.wish-empty { text-align: center; padding: 36px 0; color: var(--dim); font-style: italic; }
.wish-empty p { margin: 0; }
.we-ico { display: inline-flex; font-size: 30px; color: var(--gold); margin-bottom: 8px; }

/* ── Penutup ─────────────────────────────────────────────────────── */
.finale { position: relative; overflow: hidden; padding: 110px 0 calc(120px + env(safe-area-inset-bottom)); text-align: center; color: #e8ecf7;
    background: radial-gradient(110% 70% at 50% 0%, #2f4a8c 0%, #1e2f62 55%, #121c40 100%); }
.fin-plate { position: relative; width: min(50vw, 220px); margin: 0 auto 30px; }
.finale .arabic { color: var(--gold-l); }
.finale .lbl { color: #cdd6ef; margin-bottom: 8px; }
.fin-names { margin: 18px 0 22px; font-family: var(--mincho); font-weight: 500; font-size: clamp(50px, 14vw, 100px); line-height: 1.04; color: #f6f3ec; display: flex; flex-direction: column; align-items: center; }
.finale .txt { color: #dfe5f3; }
.fam { display: grid; gap: 18px; margin: 30px auto 28px; max-width: 580px; }
.fam p { margin: 0; font-size: 18px; line-height: 1.5; color: #f6f3ec; }
.fam span { display: block; margin-bottom: 4px; font-family: var(--sans); font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-l); }
.salam { margin: 0; font-style: italic; font-size: 20px; color: var(--gold-l); }
.credit { margin: 54px 0 0; font-family: var(--sans); font-size: 10px; letter-spacing: .14em; color: rgba(232, 236, 247, .5); }

/* lightbox */
.gallery-lightbox { display: none; opacity: 0; transition: opacity .3s; position: fixed; inset: 0; z-index: 9600; background: rgba(16, 22, 46, .96); align-items: center; justify-content: center; }
.lb-img-wrap { max-width: 92vw; max-height: 82vh; padding: 8px; background: #f6f3ec; border-radius: 3px; box-shadow: 0 0 0 1px var(--gold); }
.lb-img-wrap img { max-width: calc(92vw - 16px); max-height: calc(82vh - 16px); object-fit: contain; }
.lb-close, .lb-prev, .lb-next { position: absolute; z-index: 2; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; background: rgba(246, 243, 236, .1); border: 1px solid rgba(246, 227, 161, .45); color: var(--gold-l); font-size: 22px; line-height: 1; 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-family: var(--sans); font-size: 11px; letter-spacing: .3em; color: var(--gold-l); }

/* qr fab spacing */
body.has-qr .finale { padding-bottom: calc(170px + env(safe-area-inset-bottom)); }

/* ── Phone kecil ─────────────────────────────────────────────────── */
@media (max-width: 359px) {
    .cd { gap: 8px; }
    .cv-to b { font-size: 19px; }
}
@media (max-height: 700px) {
    .cv-note { display: none; }
    .cv-to { margin-bottom: 8px; }
    .cv-hint { margin-bottom: 10px; }
}

/* ── Desktop ─────────────────────────────────────────────────────── */
@media (min-width: 760px) {
    .sec { padding: 150px 0 160px; }
    .wrap { padding: 0 48px; }
    .sh-v { display: block; position: absolute; z-index: 2; top: 150px; left: calc(50% - 560px); writing-mode: vertical-rl; font-family: var(--mincho); font-size: 13px; letter-spacing: .45em; color: var(--cobalt); opacity: .7; }
    .sh-v::after { content: ''; display: inline-block; width: 1px; height: 60px; margin-top: 18px; background: linear-gradient(var(--gold), transparent); }
    .sec.seam-l .sh-v { left: auto; right: calc(50% - 560px); }
    .cv-vert { left: 40px; font-size: 15px; }
    .hero-plate { width: 300px; }
    .couple { grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; }
    .couple-amp { font-size: 110px; }
    .events { grid-template-columns: 1fr 1fr; gap: 34px; }
    .gal { column-count: 3; column-gap: 14px; }
    .gal-item { margin-bottom: 14px; }
    .story li { grid-template-columns: 120px 1fr; gap: 30px; padding: 36px 0; }
    .st-art svg, .st-art .plate-mini { width: 120px; height: 120px; }
    .fam { grid-template-columns: 1fr 1fr; }
    .rsvp-form { padding: 46px 44px 38px; }
    .ink-branch { width: 300px; right: 4%; }
    .cd { gap: 22px; }
}
@media (min-width: 1100px) {
    .sh-v { left: calc(50% - 590px); }
    .sec.seam-l .sh-v { right: calc(50% - 590px); }
}

/* ── Reduced motion ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
    .rv-up, .rv-pop, .rv-shard { opacity: 1; transform: none; transition: none; }
    .mend path, .sf-seam path, .gal-crack path { stroke-dashoffset: 0; transition: none; }
    .sl { transition: none; }
}
