/* ══════════════════════════════════════════════════════════════════
   CELESTIAL ORRERY — astrolab kuningan di bawah langit biru malam
   ══════════════════════════════════════════════════════════════════ */
:root {
    --night: #0a1230;
    --night-2: #111b44;
    --night-3: #1a2760;
    --brass: #c8a165;
    --brass-l: #f0d9a4;
    --brass-d: #8a6a35;
    --brass-dd: #5a4320;
    --rose: #e9b7a8;
    --rose-d: #b77a77;
    --parch: #f3ead6;
    --parch-2: #e8dbbd;
    --ink: #1c2148;
    --ink-dim: #575673;
    --cream: #efe6d2;
    --cream-dim: rgba(239, 230, 210, .7);
    --hair: rgba(200, 161, 101, .4);
    --hair-ink: rgba(138, 106, 53, .45);
    --display: 'Cormorant Garamond', Georgia, serif;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --caps: 'Cinzel', 'Trajan Pro', Georgia, serif;
    --mar: 'Marcellus', 'Cinzel', Georgia, serif;
    --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--night);
    color: var(--cream);
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.6;
    -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(200, 161, 101, .35); color: #fff; }
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -.14em; flex-shrink: 0; }

/* ── Langit ──────────────────────────────────────────────────────── */
.nebula {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(60% 40% at 82% 12%, rgba(120, 90, 160, .22), transparent 70%),
        radial-gradient(50% 36% at 10% 70%, rgba(60, 100, 170, .2), transparent 70%),
        radial-gradient(40% 30% at 60% 96%, rgba(183, 122, 119, .14), transparent 70%),
        linear-gradient(180deg, #0a1230 0%, #0d1638 50%, #0a1230 100%);
}
.sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
main { position: relative; z-index: 2; overflow: hidden; }

/* ── Tipografi ───────────────────────────────────────────────────── */
.gilt {
    background-image: linear-gradient(115deg, #8a6a35 0%, #c8a165 18%, #f6e4b4 32%, #fff8e2 38%, #e2c184 46%, #a8803f 60%, #e9cf94 76%, #fbecc6 84%, #9a7638 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
    animation: gilt 9s ease-in-out infinite alternate;
}
@keyframes gilt { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
/* selama sampul menutup halaman, kilau judul di bawahnya tidak terlihat — jeda agar tidak repaint */
body:not(.opened) main .gilt { animation-play-state: paused; }
.lbl { margin: 0; font-family: var(--caps); font-size: 10.5px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--brass); }
.lbl.ink, .chart .lbl { color: var(--brass-d); }
.coord { margin: 18px 0 0; font-family: var(--mar); font-size: 12px; letter-spacing: .14em; color: rgba(240, 217, 164, .55); }
.coord sup { font-size: .62em; vertical-align: .55em; }
.coord.ink, .chart .coord { color: rgba(90, 67, 32, .62); }
.coord.sm { font-size: 11px; margin-top: 14px; }
.arabic { font-family: 'Amiri', serif; direction: rtl; font-size: 24px; line-height: 2; margin: 0 0 14px; color: var(--brass-l); }
.chart .arabic { color: var(--brass-d); }
.arabic.big { font-size: 30px; }
.title { margin: 0 0 18px; font-family: var(--display); font-weight: 500; font-style: italic; font-size: clamp(40px, 11vw, 68px); line-height: 1.04; letter-spacing: -.01em; color: var(--cream); }
.chart .title { color: var(--ink); }
.sub { margin: 0 0 22px; font-family: var(--caps); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--brass); }
.chart .sub { color: var(--brass-d); }
.txt { margin: 0 auto 18px; max-width: 560px; font-size: 19px; line-height: 1.7; color: var(--cream-dim); }
.chart .txt { color: var(--ink-dim); }
.txt.sm { font-size: 16.5px; }
.center { text-align: center; }
.wrap { position: relative; max-width: 1080px; margin: 0 auto; }
.wrap.narrow { max-width: 640px; }

.b-rule { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 20px auto; }
.b-rule i { width: 54px; height: 1px; background: linear-gradient(90deg, transparent, var(--brass)); }
.b-rule i:last-child { transform: scaleX(-1); }
.b-rule b { width: 9px; height: 9px; transform: rotate(45deg); border: 1px solid var(--brass); background: radial-gradient(circle, var(--brass-l) 30%, transparent 32%); }

/* ── Tombol ──────────────────────────────────────────────────────── */
.btn-brass, .btn-line, .btn-enamel {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; text-decoration: none;
    font-family: var(--caps); font-size: 11.5px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
    transition: transform .3s var(--ease), box-shadow .3s, background .3s;
}
.btn-brass {
    position: relative; padding: 0; border: 0; border-radius: 999px; color: #2b1e08;
    background: linear-gradient(115deg, #8a6a35, #e6c98c 30%, #fff1cc 42%, #c8a165 62%, #8a6a35);
    box-shadow: 0 0 0 1px rgba(255, 240, 200, .35) inset, 0 -2px 0 rgba(60, 40, 10, .35) inset, 0 10px 28px rgba(0, 0, 0, .4), 0 0 0 4px rgba(200, 161, 101, .14);
}
.btn-brass > span { display: inline-flex; align-items: center; gap: 10px; padding: 16px 34px; }
.btn-brass:hover { transform: translateY(-2px); }
.btn-brass:active { transform: translateY(1px); }
.btn-brass.wide { width: 100%; margin-top: 28px; }
.btn-brass.loading { opacity: .7; pointer-events: none; }
.btn-line { margin-top: 26px; padding: 14px 26px; border-radius: 999px; background: transparent; color: var(--brass-l); border: 1px solid var(--hair); }
.btn-line:hover { background: rgba(200, 161, 101, .1); }
.btn-enamel { margin-top: 22px; padding: 12px 20px; border-radius: 999px; background: var(--night-2); color: var(--brass-l); border: 1px solid rgba(26, 18, 4, .4); box-shadow: 0 1px 0 rgba(255, 240, 200, .5), 0 4px 12px rgba(30, 20, 5, .3); }
.btn-enamel:hover { background: var(--night-3); }

/* ── Sekrup kuningan ─────────────────────────────────────────────── */
.screw { position: absolute; width: 11px; height: 11px; border-radius: 50%; z-index: 2;
    background: radial-gradient(circle at 35% 30%, #fff3cf, #c8a165 45%, #5a4320 100%);
    box-shadow: 0 1px 1px rgba(0, 0, 0, .45), inset 0 0 0 .5px rgba(60, 40, 10, .5); }
.screw::after { content: ''; position: absolute; left: 1.5px; right: 1.5px; top: 50%; height: 1.4px; margin-top: -.7px; background: rgba(50, 34, 10, .75); transform: rotate(var(--sr, 35deg)); border-radius: 1px; }
.screw.s1 { top: 10px; left: 10px; } .screw.s2 { top: 10px; right: 10px; --sr: -20deg; }
.screw.s3 { bottom: 10px; left: 10px; --sr: 80deg; } .screw.s4 { bottom: 10px; right: 10px; --sr: 10deg; }

/* ── Music button ────────────────────────────────────────────────── */
.music-toggle-btn {
    position: fixed; z-index: 70; 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(10, 18, 48, .7); color: var(--brass-l);
    border: 1px solid rgba(200, 161, 101, .55);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .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(200, 161, 101, .4);
    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: 80;
    transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
    background: rgba(10, 18, 48, .94); color: var(--brass-l); border: 1px solid var(--hair); border-radius: 999px;
    padding: 12px 22px; font-family: var(--mar); font-size: 13px; letter-spacing: .06em;
    transition: opacity .35s, transform .35s var(--ease); max-width: calc(100vw - 40px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── Mini orrery ─────────────────────────────────────────────────── */
.mini {
    position: fixed; z-index: 60; left: 14px; bottom: calc(18px + env(safe-area-inset-bottom));
    width: 54px; height: 54px; padding: 0; border: 0; background: none; cursor: pointer;
    opacity: 0; transform: scale(.6); pointer-events: none; transition: opacity .6s, transform .6s var(--ease);
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .45));
}
body.opened .mini { opacity: 1; transform: none; pointer-events: auto; }
.mini svg { width: 100%; height: 100%; overflow: visible; }
.mn-bez { fill: rgba(10, 18, 48, .82); stroke: var(--brass); stroke-width: 1.2; }
.mn-track { fill: none; stroke: rgba(200, 161, 101, .18); stroke-width: 2; }
.mn-prog { fill: none; stroke: var(--brass-l); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.mn-orbit { fill: none; stroke: rgba(240, 217, 164, .32); stroke-width: .7; stroke-dasharray: 1.5 2; }
.mn-sun { fill: #f6dfa5; filter: drop-shadow(0 0 3px rgba(255, 220, 150, .9)); }
.mn-p { fill: #9fb4e0; stroke: #f0d9a4; stroke-width: .6; }
.mn-m { fill: var(--rose); }

/* ══════════════════════════════════════════════════════════════════
   COVER — astrolab
   ══════════════════════════════════════════════════════════════════ */
.cover {
    position: fixed; inset: 0; z-index: 50; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: space-between;
    padding: calc(22px + env(safe-area-inset-top)) 20px calc(18px + env(safe-area-inset-bottom));
    text-align: center; transition: opacity 1s ease;
}
.cv-vignette { position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(60% 46% at 50% 52%, rgba(200, 161, 101, .14), transparent 70%), radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(4, 8, 24, .7)); }
.cv-top { position: relative; z-index: 2; transition: opacity .8s, transform 1.2s var(--ease); }
.cv-top .lbl { font-size: 9.5px; letter-spacing: .4em; color: rgba(240, 217, 164, .7); }
.cv-names { will-change: transform; /* kilau .gilt hanya me-repaint judul, bukan seluruh sampul */ margin: 10px 0 4px; font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(38px, 11vw, 64px); line-height: 1; letter-spacing: -.01em; }
.cv-names em { font-family: var(--caps); font-style: normal; font-size: .42em; color: var(--rose); margin: 0 .35em; vertical-align: .3em; }
.cv-date { margin: 0; font-family: var(--caps); font-size: 11px; letter-spacing: .3em; color: var(--cream-dim); }

.astro-wrap { position: relative; z-index: 2; flex: 1 1 auto; min-height: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 0 4px;
    transition: transform 1.5s cubic-bezier(.6, 0, .3, 1), opacity 1.2s ease, filter 1.2s; }
.astro-stack { position: relative; width: min(84vw, 46vh, 430px);
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)) drop-shadow(0 0 40px rgba(200, 161, 101, .14));
    will-change: filter; /* bayangan diterapkan compositor, bukan di-raster ulang tiap frame */ }
.astro { display: block; width: 100%; height: auto; overflow: visible; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.astro-layer, .astro-gloss { position: absolute; left: 0; top: 0; height: 100%; pointer-events: none; }
.astro-top, .astro.e4 { will-change: transform; }  /* rete & planet berputar di lapisan sendiri */
.astro-gloss { mix-blend-mode: soft-light; } /* kilau membaur dengan seluruh astrolab di bawahnya */
.astro:active { cursor: grabbing; }
.astro .eng { font-family: var(--caps); font-weight: 600; letter-spacing: .06em; fill: #3a280c; paint-order: stroke; stroke: rgba(255, 238, 196, .35); stroke-width: .5px; }
.astro .mark { fill: var(--rose); stroke: #5a2f2a; stroke-width: .7; transition: fill .3s, filter .3s; }
.astro .ok .mark { fill: #fff6dc; filter: drop-shadow(0 0 4px #fff2c4) drop-shadow(0 0 8px rgba(255, 220, 150, .9)); }
.astro .pl-t { font-family: var(--caps); font-weight: 700; font-size: 11px; text-anchor: middle; fill: #fff; paint-order: stroke; stroke: rgba(20, 20, 50, .55); stroke-width: 1.4px; }
.astro .halo { opacity: .55; }
.astro .sheen { pointer-events: none; }
.astro .alidade, .astro .throne { pointer-events: none; }
/* pusat cincin = titik (0,0) viewBox → 50% / (250/460) */
.astro.exp { transform-origin: 50% 54.3478%; transition: transform 1.4s cubic-bezier(.5, 0, .2, 1), opacity 1.1s ease; }
.astro .flash { transition: r .6s ease, opacity .9s ease; opacity: 0; }
.hint { max-width: 300px; line-height: 1.45; margin: 10px auto 0; font-family: var(--mar); font-size: 12.5px; letter-spacing: .06em; color: rgba(240, 217, 164, .78); transition: opacity .5s; }
.hint span { display: inline-block; text-wrap: balance; animation: hint 2.6s ease-in-out infinite; }
.hint.used span { animation: none; }
@keyframes hint { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

.cv-foot { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; transition: opacity .7s, transform .8s var(--ease); }
.plate {
    position: relative; min-width: min(300px, 86vw); max-width: 92vw; padding: 13px 40px 12px; border-radius: 4px;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 3px),
        linear-gradient(115deg, #8a6a35, #d9b876 22%, #f6e4b4 36%, #c8a165 55%, #e2c486 74%, #8a6a35);
    box-shadow: inset 0 1px 0 rgba(255, 246, 220, .7), inset 0 -2px 0 rgba(60, 40, 10, .4), inset 0 0 0 4px rgba(90, 67, 32, .15), 0 10px 26px rgba(0, 0, 0, .45);
}
.plate::before { content: ''; position: absolute; inset: 5px; border: 1px solid rgba(70, 48, 14, .35); border-radius: 2px; pointer-events: none; }
.plate .screw { width: 8px; height: 8px; top: 50%; margin-top: -4px; }
.plate .screw.s1, .plate .screw.s3 { left: 14px; } .plate .screw.s2, .plate .screw.s4 { right: 14px; }
.plate .screw.s3, .plate .screw.s4 { display: none; }
.pl-k { display: block; font-family: var(--caps); font-size: 9px; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; color: rgba(58, 40, 12, .78); }
.pl-n { display: block; margin-top: 2px; font-family: var(--display); font-style: italic; font-weight: 600; font-size: 22px; line-height: 1.2; color: #2e1f07; text-shadow: 0 1px 0 rgba(255, 244, 214, .6); word-break: break-word; }
.cv-note { margin: 0; font-family: var(--mar); font-size: 11px; letter-spacing: .04em; color: rgba(239, 230, 210, .45); }

.flashlayer { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
    background: radial-gradient(circle at 50% 46%, rgba(255, 250, 235, .95), rgba(255, 228, 180, .5) 22%, transparent 55%); }
.constel { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }
.cv-reveal { position: absolute; left: 0; right: 0; top: calc(40% + min(20vw, 130px) + 26px); z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0; transform: translateY(12px); transition: opacity 1s ease .9s, transform 1.2s var(--ease) .9s; pointer-events: none; }
.cv-reveal .lbl { color: var(--rose); }
.cr-n { font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(34px, 9vw, 56px); line-height: 1.1; }

/* tahapan buka */
.cover.s1 .hint, .cover.s1 .cv-foot { opacity: 0; pointer-events: none; }
.cover.s1 .cv-foot { transform: translateY(24px); }
.cover.s1 .astro { cursor: default; }
.cover.s2 .flashlayer { animation: flash 1.1s ease-out both; }
.cover.s2 .astro .flash { r: 60px; opacity: .0; }
.cover.s2 .astro .halo { opacity: 1; transform: scale(1.6); transform-box: fill-box; transform-origin: center; transition: transform .5s, opacity .5s; }
@keyframes flash { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
.cover.s3 .astro.e1 { transform: scale(2.4) rotate(40deg); opacity: 0; }
.cover.s3 .astro.e2 { transform: scale(2) rotate(-30deg); opacity: 0; transition-delay: .08s; }
.cover.s3 .astro.e3 { transform: scale(1.7) rotate(20deg); opacity: 0; transition-delay: .16s; }
.cover.s3 .astro.e4 { transform: scale(1.4); opacity: 0; transition-delay: .2s; }
.cover.s3 .astro-wrap { transform: scale(2.6); opacity: 0; filter: blur(2px); }
.cover.s3 .cv-top { opacity: 0; transform: translateY(-30px); }
.cover.s4 .cv-reveal { opacity: 1; transform: none; }
.cover.s5 { opacity: 0; pointer-events: none; }

/* ══════════════════════════════════════════════════════════════════
   HALAMAN
   ══════════════════════════════════════════════════════════════════ */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 90px 22px 110px; text-align: center; }
.hero-orbits { position: absolute; left: 50%; top: 50%; width: min(150vw, 1100px); height: auto; transform: translate(-50%, -50%); pointer-events: none; opacity: .9;
    will-change: transform; /* lapisan sendiri: planet SMIL tidak memaksa repaint seluruh <main> */ }
.ho { fill: none; stroke: rgba(240, 217, 164, .2); stroke-width: .8; }
.ho.dot { stroke-dasharray: 1 6; stroke: rgba(240, 217, 164, .28); }
.hp.g { fill: #a9bde6; filter: drop-shadow(0 0 6px rgba(169, 189, 230, .9)); }
.hp.b { fill: var(--rose); filter: drop-shadow(0 0 6px rgba(233, 183, 168, .9)); }
.hero-in { position: relative; z-index: 1; max-width: 720px; }
.hero-names { margin: 18px 0 6px; font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(64px, 19vw, 150px); line-height: .92; letter-spacing: -.02em; display: flex; flex-direction: column; align-items: center; }
.hero-names em { font-family: var(--caps); font-style: normal; font-size: .3em; color: var(--rose); margin: .1em 0 .18em; letter-spacing: 0; }
.hero-names > span { display: block; padding: 0 .08em .06em; }
.hero-sub { margin: 14px auto 0; max-width: 340px; font-size: 18px; font-style: italic; color: var(--cream-dim); }
.hero-date { display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--caps); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--cream-dim); flex-wrap: wrap; }
.hero-date b { font-weight: 500; font-size: 16px; letter-spacing: .14em; color: var(--brass-l); padding: 6px 12px; border-left: 1px solid var(--hair); border-right: 1px solid var(--hair); }
.hero-place { margin: 16px 0 0; font-size: 18px; font-style: italic; color: var(--cream); }
.scroll-cue { position: absolute; left: 50%; bottom: calc(30px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; font-family: var(--caps); font-size: 9px; letter-spacing: .4em; text-transform: uppercase; color: rgba(240, 217, 164, .6); z-index: 1; }
.scroll-cue i { width: 1px; height: 38px; background: linear-gradient(var(--brass), transparent); animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ── Lempeng (section) ───────────────────────────────────────────── */
.pl { position: relative; padding: 96px 22px 104px; }
.sky-sec { background: linear-gradient(180deg, rgba(10, 18, 48, .35), rgba(13, 22, 56, .55) 50%, rgba(10, 18, 48, .35)); }
.chart {
    color: var(--ink);
    background:
        radial-gradient(120% 70% at 50% 50%, transparent 55%, rgba(120, 88, 40, .16)),
        repeating-radial-gradient(circle at 50% -30%, transparent 0 119px, rgba(90, 67, 32, .09) 119px 120px),
        repeating-linear-gradient(90deg, transparent 0 79px, rgba(90, 67, 32, .045) 79px 80px),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .35 0 0 0 0 .2 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E"),
        linear-gradient(180deg, #f5eddb, #efe3c8);
    box-shadow: inset 0 1px 0 rgba(200, 161, 101, .6), inset 0 -1px 0 rgba(200, 161, 101, .6);
}
.chart::before, .chart::after { content: ''; position: absolute; left: 0; right: 0; height: 6px; pointer-events: none;
    background: linear-gradient(90deg, #8a6a35, #e6c98c 30%, #fff1cc 45%, #c8a165 65%, #8a6a35); opacity: .85; }
.chart::before { top: 0; } .chart::after { bottom: 0; }

.ph { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 auto 12px; max-width: 360px; }
.ph-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--brass)); position: relative; }
.ph-line:last-child { transform: scaleX(-1); }
.ph-line::after { content: ''; position: absolute; right: 0; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--brass); }
.ph-no {
    flex-shrink: 0; width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-family: var(--caps); font-weight: 600; font-size: 15px; letter-spacing: .04em; color: var(--brass-l);
    border: 1px solid var(--brass); position: relative;
    background: radial-gradient(circle, rgba(200, 161, 101, .14), transparent 70%);
}
.ph-no::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px dashed rgba(200, 161, 101, .45); animation: spin 40s linear infinite; }
.ph-no::after { content: ''; position: absolute; top: -9px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 8px var(--rose); transform-origin: 3px 36px; animation: spin 14s linear infinite; }
.chart .ph-no { color: var(--brass-d); border-color: var(--brass-d); }
.chart .ph-no::before { border-color: rgba(138, 106, 53, .45); }
@keyframes spin { to { transform: rotate(360deg); } }
.ph-kick { margin: 0 0 30px; text-align: center; font-family: var(--caps); font-size: 10.5px; font-weight: 500; letter-spacing: .34em; text-transform: uppercase; color: var(--brass); }
.chart .ph-kick { color: var(--brass-d); }

/* rasi pembatas */
.cst { display: flex; justify-content: center; margin: 70px auto -30px; }
.cst-svg { width: min(300px, 80vw); height: auto; overflow: visible; }
.cst-line { fill: none; stroke: rgba(240, 217, 164, .45); stroke-width: .8; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease) .3s; }
.cst-star { fill: #fff6dc; filter: drop-shadow(0 0 3px rgba(255, 240, 200, .9)); opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: opacity .5s var(--d), transform .6s var(--ease) var(--d); }
.cst.in .cst-line { stroke-dashoffset: 0; }
.cst.in .cst-star { opacity: 1; transform: none; }

/* ── Salam: plat enamel ──────────────────────────────────────────── */
.enamel {
    position: relative; margin: 36px auto 0; padding: 46px 26px 34px; border-radius: 6px; color: var(--cream);
    background: radial-gradient(120% 80% at 50% 0%, #1d2b6a, #0e1740 70%);
    box-shadow: 0 0 0 2px #c8a165, 0 0 0 5px #0e1740, 0 0 0 6px rgba(200, 161, 101, .6), 0 24px 50px rgba(30, 20, 5, .3);
}
.enamel::before { content: ''; position: absolute; inset: 9px; border: 1px solid rgba(200, 161, 101, .35); border-radius: 3px; pointer-events: none; }
.en-star { position: absolute; top: -17px; left: 50%; margin-left: -17px; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #2b1e08;
    background: radial-gradient(circle at 35% 30%, #fff3cf, #c8a165 55%, #8a6a35); box-shadow: 0 4px 10px rgba(0, 0, 0, .3); }
.enamel .arabic { color: var(--brass-l); font-size: 23px; }
.enamel blockquote { margin: 0 0 16px; font-style: italic; font-size: 18px; line-height: 1.7; color: var(--cream-dim); }
.enamel figcaption { font-family: var(--caps); font-size: 10.5px; letter-spacing: .3em; color: var(--brass); }

/* ── Mempelai ────────────────────────────────────────────────────── */
.couple { position: relative; display: grid; gap: 30px; justify-items: center; margin-top: 30px; }
.couple-orbit { position: absolute; left: 50%; top: 50%; width: min(150vw, 760px); height: auto; transform: translate(-50%, -50%); pointer-events: none; opacity: .7; }
.co-ring { fill: none; stroke: rgba(240, 217, 164, .16); stroke-width: .8; }
.co-ring.dash { stroke-dasharray: 2 6; }
.co-spin { animation: spin 50s linear infinite; transform-origin: 0 0; }
.co-p { fill: #a9bde6; filter: drop-shadow(0 0 5px #a9bde6); }
.co-p.b { fill: var(--rose); filter: drop-shadow(0 0 5px var(--rose)); }
.person { position: relative; text-align: center; max-width: 340px; }
.lens { position: relative; width: 220px; height: 220px; margin: 0 auto 24px; border-radius: 50%; padding: 14px;
    background: conic-gradient(from 210deg, #8a6a35, #f6e4b4, #c8a165, #6e5226, #e2c486, #8a6a35);
    box-shadow: 0 0 0 1px rgba(255, 240, 200, .4) inset, 0 18px 40px rgba(0, 0, 0, .5), 0 0 60px rgba(169, 189, 230, .14); }
.lens.rose { box-shadow: 0 0 0 1px rgba(255, 240, 200, .4) inset, 0 18px 40px rgba(0, 0, 0, .5), 0 0 60px rgba(233, 183, 168, .16); }
.lens-ticks { position: absolute; inset: 3px; border-radius: 50%; pointer-events: none;
    background: repeating-conic-gradient(rgba(50, 34, 10, .7) 0 .6deg, transparent .6deg 6deg);
    -webkit-mask: radial-gradient(circle, transparent 98px, #000 99px); mask: radial-gradient(circle, transparent 98px, #000 99px); }
.lens-in { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
    background: radial-gradient(circle at 40% 35%, #23347a, #0b1335 75%); box-shadow: inset 0 0 0 2px #3a2a12, inset 0 8px 24px rgba(0, 0, 0, .6); }
.lens-in img { width: 100%; height: 100%; object-fit: cover; }
.lens-in::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .28), transparent 40%); pointer-events: none; }
.mono { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 96px; line-height: 1; }
.lens-orb { position: absolute; inset: -16px; border-radius: 50%; border: 1px dashed rgba(240, 217, 164, .3); animation: spin 18s linear infinite; pointer-events: none; }
.lens-orb i { position: absolute; top: -5px; left: 50%; margin-left: -5px; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #a9bde6 60%, #2a3a78); box-shadow: 0 0 10px #a9bde6; }
.lens.rose .lens-orb { animation-direction: reverse; animation-duration: 22s; }
.lens.rose .lens-orb i { background: radial-gradient(circle at 35% 30%, #fff, var(--rose) 60%, #6b3346); box-shadow: 0 0 10px var(--rose); }
.p-name { margin: 8px 0 0; font-family: var(--display); font-style: italic; font-weight: 500; font-size: 34px; line-height: 1.15; color: var(--cream); }
.parent { margin: 0; font-size: 17.5px; line-height: 1.65; color: var(--cream-dim); }
.parent b { font-weight: 600; color: var(--cream); }
.conj { position: relative; width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; }
.conj .sun { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(255, 236, 190, .55), rgba(200, 161, 101, .15) 45%, transparent 70%); animation: pulse 4s ease-in-out infinite; }
.conj em { position: relative; font-family: var(--caps); font-style: normal; font-size: 30px; color: var(--brass-l); }
@keyframes pulse { 50% { transform: scale(1.18); opacity: .7; } }

/* ── Kisah: lintasan orbit ───────────────────────────────────────── */
.story { list-style: none; margin: 34px 0 0; padding: 0; position: relative; }
.story::before { content: ''; position: absolute; left: 27px; top: 30px; bottom: 30px; width: 0; border-left: 1.5px dashed rgba(138, 106, 53, .5); }
.story li { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; padding: 0 0 30px; }
.st-planet { position: relative; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--parch); box-shadow: 0 0 0 1px var(--hair-ink); z-index: 1; }
.st-planet i { width: 26px; height: 26px; border-radius: 50%; }
.st-planet.moon i { background: radial-gradient(circle at 35% 30%, #fff, #c8ccd8 45%, #6d7184); box-shadow: inset -6px -3px 0 rgba(40, 40, 60, .25); }
.st-planet.rose i { width: 30px; height: 30px; background: radial-gradient(circle at 35% 30%, #fff0ea, #d9a19a 45%, #6b3346); }
.st-planet.gold i { width: 30px; height: 30px; background: radial-gradient(circle at 35% 30%, #fff8e0, #d9b876 45%, #6e5226); }
.st-planet.gold b { position: absolute; width: 50px; height: 14px; border-radius: 50%; border: 2px solid rgba(138, 106, 53, .85); border-top-color: transparent; transform: rotate(-18deg); }
.st-card { position: relative; padding: 20px 20px 18px; border-radius: 4px; background: rgba(255, 252, 244, .72); box-shadow: 0 0 0 1px var(--hair-ink), 0 10px 26px rgba(80, 55, 20, .1); }
.st-card::before { content: ''; position: absolute; left: -9px; top: 22px; width: 16px; height: 16px; background: inherit; transform: rotate(45deg); box-shadow: -1px 1px 0 var(--hair-ink); }
.st-card h3 { margin: 6px 0 6px; font-family: var(--display); font-style: italic; font-weight: 600; font-size: 28px; line-height: 1.15; color: var(--ink); }
.st-card p:last-child { margin: 0; font-size: 17px; line-height: 1.65; color: var(--ink-dim); }

/* ── Hitung mundur: dial ─────────────────────────────────────────── */
.dial { position: relative; width: min(86vw, 330px); margin: 18px auto 0; }
.dial svg { width: 100%; height: auto; display: block; overflow: visible; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .5)); }
.d-bez { fill: none; stroke: #c8a165; stroke-width: 9; }
.d-face { fill: #0f1946; stroke: rgba(240, 217, 164, .3); stroke-width: 1; }
.d-ticks line { stroke: rgba(240, 217, 164, .45); stroke-width: .8; }
.d-ticks line.mj { stroke: var(--brass-l); stroke-width: 1.6; }
.d-num { font-family: var(--caps); font-size: 10px; font-weight: 600; letter-spacing: .04em; text-anchor: middle; dominant-baseline: middle; fill: var(--brass); }
.d-orbit { fill: none; stroke: rgba(240, 217, 164, .22); stroke-width: .8; }
.d-orbit.dash { stroke-dasharray: 2 4; }
#dSec, #dMin { transition: transform .6s var(--ease); }
.d-planet { fill: #f0d9a4; filter: drop-shadow(0 0 6px rgba(255, 230, 170, .9)); }
.d-halo { fill: none; stroke: rgba(240, 217, 164, .4); stroke-width: .8; }
.d-moon { fill: var(--rose); filter: drop-shadow(0 0 4px var(--rose)); }
.d-mid { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; }
.d-mid b { font-family: var(--display); font-weight: 500; font-size: 68px; line-height: 1; color: var(--brass-l); text-shadow: 0 0 24px rgba(240, 217, 164, .35); font-variant-numeric: lining-nums tabular-nums; }
.d-mid span { margin-top: 4px; font-family: var(--caps); font-size: 10px; letter-spacing: .4em; text-transform: uppercase; color: var(--brass); padding-left: .4em; }
.subdials { display: flex; justify-content: center; gap: 16px; margin: 28px auto 0; }
.sd { position: relative; width: 92px; display: flex; flex-direction: column; align-items: center; }
.sd svg { width: 92px; height: 92px; overflow: visible; }
.sd-b { fill: none; stroke: #c8a165; stroke-width: 3; }
.sd-f { fill: rgba(10, 18, 48, .75); stroke: rgba(240, 217, 164, .25); stroke-width: .8; stroke-dasharray: .8 3.2; }
.sd-h { stroke: rgba(233, 183, 168, .9); stroke-width: 1.3; stroke-linecap: round; transition: transform .5s var(--ease); }
.sd-dot { fill: var(--rose); filter: drop-shadow(0 0 3px var(--rose)); }
#hHand, #mHand, #sHand { transition: transform .5s var(--ease); }
.sd b { position: absolute; top: 0; height: 92px; display: flex; align-items: center; font-family: var(--display); font-weight: 600; font-size: 28px; color: var(--cream); font-variant-numeric: lining-nums tabular-nums; text-shadow: 0 0 10px rgba(10, 18, 48, .9); }
.sd span { margin-top: 8px; font-family: var(--caps); font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--brass); padding-left: .3em; }
.cd-date { margin: 26px 0 0; font-family: var(--display); font-style: italic; font-size: 21px; color: var(--cream); }

/* ── Acara: plat kuningan ────────────────────────────────────────── */
.events { display: grid; gap: 28px; margin-top: 30px; }
.brass {
    position: relative; padding: 34px 26px 30px; border-radius: 6px; text-align: center; color: #2b1e08;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 3px),
        radial-gradient(120% 70% at 30% 0%, rgba(255, 246, 220, .55), transparent 60%),
        linear-gradient(125deg, #a47c3e, #dcbd7f 25%, #f3dfab 40%, #c8a165 60%, #b38a4b 80%, #8a6a35);
    box-shadow: inset 0 1px 0 rgba(255, 246, 220, .8), inset 0 -2px 0 rgba(60, 40, 10, .35), inset 0 0 0 6px rgba(90, 67, 32, .1), 0 22px 44px rgba(80, 55, 20, .3);
}
.brass::before { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(70, 48, 14, .4); border-radius: 3px; pointer-events: none; box-shadow: 0 1px 0 rgba(255, 244, 214, .5); }
.br-head { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.br-ico { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--brass-l); background: radial-gradient(circle at 40% 35%, #23347a, #0b1335); box-shadow: 0 0 0 2px #8a6a35, 0 0 0 3px rgba(255, 240, 200, .5), 0 6px 14px rgba(40, 25, 5, .35); }
.br-k { font-family: var(--caps); font-size: 10px; font-weight: 700; letter-spacing: .4em; color: rgba(58, 40, 12, .75); padding-left: .4em; }
.brass h3 { margin: 6px 0 14px; font-family: var(--display); font-style: italic; font-weight: 600; font-size: 38px; line-height: 1.1; color: #2b1e08; text-shadow: 0 1px 0 rgba(255, 244, 214, .65); }
.brass dl { margin: 0 auto; max-width: 320px; display: grid; gap: 10px; text-align: left; }
.brass dl div { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.brass dt { font-size: 18px; color: #5a4320; padding-top: 3px; }
.brass dd { margin: 0; font-size: 18px; line-height: 1.45; font-weight: 600; color: #2b1e08; text-shadow: 0 1px 0 rgba(255, 244, 214, .5); }
.dress { margin: 34px 0 0; text-align: center; font-size: 18px; font-style: italic; color: var(--ink-dim); }
.dress .lbl { display: block; margin-bottom: 4px; }

/* ── Lokasi: teropong ────────────────────────────────────────────── */
.scope { position: relative; width: min(84vw, 380px); aspect-ratio: 1; margin: 20px auto 30px; border-radius: 50%; padding: 16px;
    background: conic-gradient(from 200deg, #8a6a35, #f6e4b4, #c8a165, #6e5226, #e2c486, #8a6a35);
    box-shadow: 0 0 0 1px rgba(255, 240, 200, .4) inset, 0 24px 50px rgba(0, 0, 0, .55), 0 0 0 10px rgba(200, 161, 101, .08); }
.scope-ticks { position: absolute; inset: 3px; border-radius: 50%; pointer-events: none; z-index: 2;
    background: repeating-conic-gradient(rgba(50, 34, 10, .7) 0 .5deg, transparent .5deg 5deg);
    -webkit-mask: radial-gradient(circle, transparent calc(50% - 10px), #000 calc(50% - 9px)); mask: radial-gradient(circle, transparent calc(50% - 10px), #000 calc(50% - 9px)); }
.scope-in { position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; box-shadow: inset 0 0 0 2px #3a2a12; isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black); }
.leaflet-map, .map-illu { display: block; width: 100%; height: 100%; position: relative; z-index: 1; }
.leaflet-map .leaflet-tile-pane { filter: grayscale(.9) sepia(.25) hue-rotate(180deg) brightness(.82) contrast(1.05); }
.leaflet-container { font-family: var(--mar); background: #0f1946; }
.leaflet-control-attribution { font-size: 8px !important; background: rgba(10, 18, 48, .6) !important; color: rgba(240, 217, 164, .6) !important; }
.leaflet-control-attribution a { color: rgba(240, 217, 164, .8) !important; }
.co-marker span { display: block; width: 18px; height: 18px; margin: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--rose) 55%, #6b3346); box-shadow: 0 0 0 3px rgba(233, 183, 168, .35), 0 0 0 9px rgba(233, 183, 168, .15), 0 0 18px var(--rose); }
.map-illu svg { width: 100%; height: 100%; display: block; }
.mi-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -80%); font-size: 40px; color: var(--rose); filter: drop-shadow(0 0 10px var(--rose)); }
.reticle { position: absolute; inset: 16px; border-radius: 50%; pointer-events: none; z-index: 3;
    background:
        linear-gradient(rgba(240, 217, 164, .55), rgba(240, 217, 164, .55)) center / 1px 30% no-repeat,
        linear-gradient(90deg, rgba(240, 217, 164, .55), rgba(240, 217, 164, .55)) center / 30% 1px no-repeat,
        radial-gradient(circle, transparent 0 24%, rgba(240, 217, 164, .45) 24.3% 24.7%, transparent 25%),
        radial-gradient(circle, transparent 60%, rgba(6, 10, 30, .55) 100%);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, .5); }
.loc-name { margin: 0 0 8px; font-family: var(--display); font-style: italic; font-weight: 500; font-size: 30px; line-height: 1.2; color: var(--cream); }
#lokasi .coord { margin: 0 0 26px; }

/* ── Galeri: lensa observatorium ─────────────────────────────────── */
.gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 18px; margin: 34px auto 26px; max-width: 900px; }
.slide { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0; border: 0; background: none; cursor: pointer; color: inherit; }
.slide-lens { position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; padding: 8px; overflow: hidden;
    background: conic-gradient(from 160deg, #8a6a35, #f3dfab, #c8a165, #6e5226, #e2c486, #8a6a35);
    box-shadow: 0 12px 26px rgba(80, 55, 20, .3), 0 0 0 1px rgba(90, 67, 32, .35); }
.slide-lens img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; box-shadow: inset 0 0 0 2px #3a2a12; transition: transform 1.2s var(--ease); }
.slide-lens::after { content: ''; position: absolute; inset: 8px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .3), transparent 38%), radial-gradient(circle, transparent 62%, rgba(10, 18, 48, .35)); box-shadow: inset 0 0 0 2px rgba(58, 40, 18, .9); }
.slide:hover .slide-lens img { transform: scale(1.06); }
.slide-no { font-family: var(--caps); font-size: 9.5px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--brass-d); }
.gal .slide:nth-child(3n+1) { grid-column: span 2; width: 64%; justify-self: center; }
.ph-lens { display: flex; align-items: center; justify-content: center; }
.ph-lens .ph-art { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; font-size: 40px; color: var(--brass-l);
    background: radial-gradient(circle at 40% 35%, #23347a, #0b1335 75%); }
.ph-gal .slide:nth-child(3n+1) .ph-art { font-size: 64px; }

/* gift (partial) */
.gift-wrap { position: relative; margin-top: 8px; }
.gift #gift-section { background: transparent !important; padding: 10px 0 0 !important; font-family: var(--serif) !important; }
.gift #gift-section .gs-heading { display: none; }
.gift #gift-section .gs-card { border-radius: 6px; border-color: var(--hair-ink); box-shadow: 0 10px 24px rgba(80, 55, 20, .12); background: #fffaf0; }
.gift #gift-section .gs-sbtn, .gift #gift-section .gs-btn-buy { border-radius: 999px !important; background: linear-gradient(115deg, #8a6a35, #e6c98c 35%, #c8a165 65%, #8a6a35) !important; color: #2b1e08 !important; letter-spacing: .1em; }
.gift .gs-wrap, .gift .gs-track, .gift .gs-bank-track { max-width: 1080px; margin-left: auto; margin-right: auto; }

/* rsvp */
.rsvp-form { position: relative; margin: 34px auto 0; padding: 40px 24px 32px; border-radius: 6px;
    background: linear-gradient(170deg, rgba(26, 39, 96, .75), rgba(10, 18, 48, .85));
    box-shadow: 0 0 0 1px var(--brass), 0 0 0 5px rgba(10, 18, 48, .9), 0 0 0 6px rgba(200, 161, 101, .45), 0 24px 50px rgba(0, 0, 0, .45);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.f-l { display: block; margin: 20px 0 8px; font-family: var(--caps); font-size: 10px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--brass); }
.rsvp-form > .f-l:first-of-type { margin-top: 0; }
.f-in {
    position: relative; width: 100%; padding: 10px 2px; border: 0; border-bottom: 1px solid var(--hair); border-radius: 0;
    background: transparent; color: var(--cream); font-family: var(--serif); font-size: 19px; outline: none; resize: vertical; transition: border-color .3s;
}
.f-in::placeholder { color: rgba(239, 230, 210, .35); font-style: italic; }
.f-in:focus { border-bottom-color: var(--brass-l); }
.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 var(--hair); border-radius: 999px; font-family: var(--caps); font-size: 9.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cream-dim); transition: all .3s; }
.att input:checked + span { background: linear-gradient(115deg, #a47c3e, #f0d9a4 45%, #b38a45); color: #2b1e08; border-color: transparent; }
.att input:focus-visible + span { outline: 1px solid var(--brass-l); outline-offset: 2px; }

/* wishes */
.wishes-list { margin-top: 30px; max-height: 560px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: var(--brass-d) transparent; }
.wish-item { display: flex; gap: 14px; padding: 20px 0; border-top: 1px solid rgba(200, 161, 101, .18); }
.wish-item.new { animation: fadeUp .8s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
.wish-avatar {
    flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .35), transparent 50%), var(--av, #2a3a78); color: #fff6dc; border: 1px solid var(--brass);
    font-family: var(--caps); font-size: 17px; text-transform: uppercase;
    box-shadow: 0 0 0 3px var(--night), 0 0 0 4px rgba(200, 161, 101, .3);
}
.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(--display); font-style: italic; font-weight: 600; font-size: 20px; color: var(--cream); word-break: break-word; }
.wish-badge { font-family: var(--caps); font-size: 8.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--hair); color: var(--brass-l); }
.wish-badge.tidak { color: var(--rose); border-color: rgba(233, 183, 168, .4); }
.wish-badge.ragu { color: var(--cream-dim); border-color: rgba(239, 230, 210, .25); }
.wish-message { margin: 6px 0; font-size: 17px; line-height: 1.6; color: var(--cream-dim); word-break: break-word; }
.wish-time { font-family: var(--mar); font-size: 11px; letter-spacing: .06em; color: rgba(239, 230, 210, .42); }
.wish-empty { text-align: center; padding: 40px 0; color: var(--cream-dim); font-style: italic; }
.we-ico { display: inline-flex; font-size: 30px; color: var(--brass); margin-bottom: 8px; }

/* finale */
.finale { position: relative; padding: 110px 22px calc(130px + env(safe-area-inset-bottom)); text-align: center;
    background: radial-gradient(70% 45% at 50% 30%, rgba(200, 161, 101, .14), transparent 72%); }
.fin-astro { width: 120px; margin: 0 auto 28px; }
.fin-astro svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 0 20px rgba(200, 161, 101, .3)); }
.fa-b { fill: rgba(10, 18, 48, .6); stroke: var(--brass); stroke-width: 2.5; }
.fa-r { fill: none; stroke: rgba(240, 217, 164, .35); stroke-width: .7; }
.fa-r.dash { stroke-dasharray: 1.5 3; }
.fa-spin { animation: spin 16s linear infinite; transform-origin: 0 0; }
.fa-spin.rev { animation-direction: reverse; animation-duration: 11s; }
.fa-p { fill: #a9bde6; filter: drop-shadow(0 0 3px #a9bde6); }
.fa-p.b { fill: var(--rose); }
.fa-t { font-family: var(--caps); font-size: 20px; font-weight: 600; text-anchor: middle; fill: var(--brass-l); }
.finale .lbl { margin-bottom: 8px; }
.fin-names { margin: 16px 0 0; font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(58px, 17vw, 128px); line-height: .95; letter-spacing: -.02em; display: flex; flex-direction: column; align-items: center; }
.fin-names em { font-family: var(--caps); font-style: normal; font-size: .3em; color: var(--rose); margin: .1em 0 .16em; }
.fin-names > span { display: block; padding: 0 .08em .06em; }
.fam { display: grid; gap: 18px; margin: 30px auto 28px; max-width: 560px; }
.fam p { margin: 0; font-size: 18px; line-height: 1.5; color: var(--cream); }
.fam span { display: block; margin-bottom: 4px; font-family: var(--caps); font-size: 9.5px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--brass); }
.salam { margin: 0; font-family: var(--display); font-style: italic; font-size: 20px; color: var(--brass-l); }
.credit { margin: 50px 0 0; font-family: var(--mar); font-size: 11px; letter-spacing: .1em; color: rgba(239, 230, 210, .42); }

/* lightbox */
.gallery-lightbox { display: none; opacity: 0; transition: opacity .3s; position: fixed; inset: 0; z-index: 9600; background: rgba(6, 10, 30, .96); align-items: center; justify-content: center; }
.lb-img-wrap { max-width: 92vw; max-height: 82vh; padding: 8px; border: 1px solid var(--hair); border-radius: 6px; }
.lb-img-wrap img { max-width: calc(92vw - 16px); max-height: calc(82vh - 16px); object-fit: contain; border-radius: 3px; }
.lb-close, .lb-prev, .lb-next {
    position: absolute; z-index: 2; width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
    background: rgba(10, 18, 48, .75); border: 1px solid var(--hair); color: var(--brass-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(--caps); font-size: 11px; letter-spacing: .3em; color: var(--brass-l); }

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

/* ── Reveal ──────────────────────────────────────────────────────── */
.rv-up { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.rv-up.in { opacity: 1; transform: none; }
.rv-zoom { opacity: 0; transform: scale(.86) rotate(-6deg); transition: opacity 1.1s var(--ease), transform 1.4s var(--ease); }
.rv-zoom.in { opacity: 1; transform: none; }
.rv-rise { opacity: 0; transform: translateY(40%); filter: blur(8px); transition: opacity 1.2s var(--ease), transform 1.3s var(--ease), filter 1.2s var(--ease); }
.rv-rise.in { opacity: 1; transform: none; filter: none; }
.rv-rise + em + .rv-rise { transition-delay: .2s; }
.events .rv:nth-child(2), .couple > .person:nth-of-type(2) { transition-delay: .15s; }
.gal .rv:nth-child(3n+2) { transition-delay: .1s; }
.gal .rv:nth-child(3n) { transition-delay: .2s; }

/* ── Layar pendek ────────────────────────────────────────────────── */
@media (max-height: 700px) {
    .cv-names { font-size: 36px; margin-top: 6px; }
    .astro-stack { width: min(80vw, 40vh); }
    .plate { padding: 9px 34px; }
    .pl-n { font-size: 19px; }
    .btn-brass > span { padding: 13px 28px; }
    .cv-foot { gap: 10px; }
}

/* ── Desktop ─────────────────────────────────────────────────────── */
@media (min-width: 760px) {
    .pl { padding: 140px 48px 150px; }
    .ph-kick { margin-bottom: 44px; }
    .couple { grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; }
    .conj { width: 120px; height: 120px; }
    .conj em { font-size: 44px; }
    .lens { width: 260px; height: 260px; }
    .lens-ticks { -webkit-mask: radial-gradient(circle, transparent 118px, #000 119px); mask: radial-gradient(circle, transparent 118px, #000 119px); }
    .events { grid-template-columns: 1fr 1fr; gap: 34px; }
    .gal { grid-template-columns: repeat(3, 1fr); gap: 34px 30px; }
    .gal .slide:nth-child(3n+1) { grid-column: auto; width: 100%; }
    .gal .slide:nth-child(even) { transform: translateY(40px); }
    .gal .slide:nth-child(even).rv-zoom:not(.in) { transform: translateY(40px) scale(.86); }
    .gal { padding-bottom: 40px; }
    .story::before { left: 50%; }
    .story li { grid-template-columns: 1fr 56px 1fr; gap: 26px; }
    .story li .st-planet { grid-column: 2; grid-row: 1; }
    .story li .st-card { grid-column: 1; grid-row: 1; text-align: right; }
    .story li .st-card::before { left: auto; right: -9px; box-shadow: 1px -1px 0 var(--hair-ink); }
    .story li:nth-child(even) .st-card { grid-column: 3; text-align: left; }
    .story li:nth-child(even) .st-card::before { right: auto; left: -9px; box-shadow: -1px 1px 0 var(--hair-ink); }
    .fam { grid-template-columns: 1fr 1fr; }
    .rsvp-form { padding: 50px 46px 40px; }
    .dial { width: 380px; }
    .d-mid b { font-size: 84px; }
    .subdials { gap: 30px; }
    .sd, .sd svg { width: 104px; } .sd svg { height: 104px; } .sd b { height: 104px; font-size: 32px; }
    .enamel { padding: 52px 52px 40px; }
    .mini { width: 64px; height: 64px; left: 24px; bottom: 24px; }
}

/* ── Reduced motion ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
    .rv-up, .rv-zoom, .rv-rise { opacity: 1; transform: none; filter: none; transition: none; }
    .cst-line { stroke-dashoffset: 0; transition: none; }
    .cst-star { opacity: 1; transform: none; transition: none; }
}

/* halaman disembunyikan sampai sampul dibuka */
main { opacity: 0; transition: opacity 1.2s ease; }
body.opened main { opacity: 1; }
