/* ══════════════════════════════════════════════════════════════════
   TENUN SONGKET — sutra marun, benang emas, katun gading
   ══════════════════════════════════════════════════════════════════ */
:root {
    --silk: #4a0f1f;
    --silk-d: #2a0812;
    --silk-l: #6e1a2c;
    --ivory: #f6eedf;
    --linen: #efe4cf;
    --gold: #d4a54a;
    --gold-l: #f3d58a;
    --gold-d: #9a7330;
    --teal: #2f7d74;
    --cream: #f4e8d2;
    --cream-dim: rgba(244, 232, 210, .7);
    --ink: #3a1420;
    --ink-dim: #6e4a4f;
    --hair: rgba(212, 165, 74, .42);
    --hair-ink: rgba(154, 115, 48, .45);
    --fx: 50%;
    --fy: 50%;
    --woven: 74%;
    --p: 0;
    --display: 'Cormorant Garamond', Georgia, serif;
    --deco: 'Cinzel Decorative', 'Cinzel', Georgia, serif;
    --label: 'Marcellus', 'Cormorant Garamond', Georgia, serif;
    --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
    --ease: cubic-bezier(.2, .7, .1, 1);

    /* pita songket: pucuk rebung berhadapan (tumpal) */
    --band-svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='36' height='48' viewBox='0 0 36 48'><path d='M0 3.5h36M0 44.5h36' stroke='%23d4a54a' stroke-width='1.2'/><path d='M0 6.6h36M0 41.4h36' stroke='%232f7d74' stroke-width='.8'/><path d='M2 39L18 11L34 39Z' fill='%23d4a54a'/><path d='M8 39L18 21.5L28 39Z' fill='%234a0f1f'/><path d='M13 39L18 30L23 39Z' fill='%23f3d58a'/><path d='M18 33v6' stroke='%234a0f1f' stroke-width='1'/><path d='M-16 9L16 9L0 37ZM20 9L52 9L36 37Z' fill='none' stroke='%23d4a54a' stroke-width='1.1'/><path d='M0 13l3.2 4.4L0 21.8l-3.2-4.4zM36 13l3.2 4.4-3.2 4.4-3.2-4.4z' fill='%23f3d58a'/><circle cx='0' cy='27' r='1.3' fill='%23d4a54a'/><circle cx='36' cy='27' r='1.3' fill='%23d4a54a'/></svg>");
    /* lepus: rantai belah ketupat */
    --lepus-svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='18' viewBox='0 0 14 18'><path d='M0 1.5h14M0 16.5h14' stroke='%23d4a54a' stroke-width='1'/><path d='M7 4l5 5-5 5-5-5z' fill='%23d4a54a'/><path d='M7 7l2 2-2 2-2-2z' fill='%234a0f1f'/><circle cx='0' cy='9' r='1.2' fill='%23f3d58a'/><circle cx='14' cy='9' r='1.2' fill='%23f3d58a'/></svg>");
    /* bunga tabur tipis untuk latar sutra */
    --tabur-svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'><g fill='%23d4a54a' fill-opacity='.13'><path d='M12 7l1.6 3.4L12 12l-1.6-1.6zM12 17l1.6-3.4L12 12l-1.6 1.6zM7 12l3.4-1.6L12 12l-1.6 1.6zM17 12l-3.4-1.6L12 12l1.6 1.6z'/><path d='M36 31l1.6 3.4L36 36l-1.6-1.6zM36 41l1.6-3.4L36 36l-1.6 1.6zM31 36l3.4-1.6L36 36l-1.6 1.6zM41 36l-3.4-1.6L36 36l1.6 1.6z'/></g></svg>");
    /* bunga tabur lebih rapat untuk bingkai */
    --tabur-dense: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><g fill='%23d4a54a'><path d='M4 1.5l1 2.5-1 1-1-1zM4 6.5l1-2.5-1-1-1 1zM1.5 4l2.5-1 1 1-1 1zM6.5 4l-2.5-1-1 1 1 1z'/><path d='M12 9.5l1 2.5-1 1-1-1zM12 14.5l1-2.5-1-1-1 1zM9.5 12l2.5-1 1 1-1 1zM14.5 12l-2.5-1-1 1 1 1z'/></g></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--silk-d);
    color: var(--cream);
    font-family: var(--display);
    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(212, 165, 74, .35); color: #fff; }
main { overflow-x: clip; }

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

/* ── Benang emas (teks) ──────────────────────────────────────────── */
.emas, .cd b {
    background-image: linear-gradient(112deg,
        #8a6326 0%, #c8973e 14%, #f3d58a 27%, #fff4d2 33%, #e6bd68 41%,
        #a9792f 53%, #dcae58 65%, #fbe6a6 73%, #b98a3b 85%, #87611f 100%);
    background-size: 260% 260%;
    background-position: var(--fx) var(--fy);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.cotton .emas {
    background-image: linear-gradient(112deg,
        #5a3a10 0%, #7d551c 16%, #a8782c 28%, #c99a45 34%, #8f6322 44%,
        #5e3d12 56%, #8a6222 68%, #b6893a 76%, #774f19 88%, #4f330d 100%);
}

.kick {
    display: block; margin: 0;
    font-family: var(--label); font-size: 11px; letter-spacing: .32em; text-transform: uppercase;
    color: var(--gold);
}
.cotton .kick { color: var(--gold-d); }
.arabic { font-family: 'Amiri', serif; direction: rtl; font-size: 22px; line-height: 2; color: var(--gold-l); margin: 0 0 14px; }
.arabic.big { font-size: 27px; }
.cotton .arabic { color: var(--silk-l); }
.center { text-align: center; }
.wrap { max-width: 1080px; margin: 0 auto; position: relative; }
.wrap.narrow { max-width: 640px; }
.narrow-p { max-width: 520px; margin-left: auto; margin-right: auto; }
.txt { font-size: 18.5px; line-height: 1.75; color: var(--cream-dim); margin: 16px 0 0; }
.txt.sm { font-size: 16px; }
.cotton .txt { color: var(--ink-dim); }
.sub { margin: 4px 0 0; font-style: italic; font-size: 20px; color: var(--gold-l); }
.cotton .sub { color: var(--silk-l); }

/* ── Tombol ──────────────────────────────────────────────────────── */
.btn-emas, .btn-line {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--label); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; text-decoration: none;
    cursor: pointer; border-radius: 0; transition: transform .3s var(--ease), box-shadow .3s, background .3s;
}
.btn-emas {
    margin-top: 28px; padding: 16px 34px; border: 0; color: #3a0b18;
    background: linear-gradient(112deg, #9a7330 0%, #e3bb67 30%, #fbe7a8 46%, #d4a54a 62%, #a87d34 100%);
    background-size: 220% 100%; background-position: var(--fx) 0;
    box-shadow: 0 0 0 1px rgba(243, 213, 138, .55), 0 0 0 4px var(--silk-d), 0 0 0 5px var(--hair), 0 14px 30px -10px rgba(0, 0, 0, .6);
    overflow: hidden;
}
.btn-emas::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
    transform: translateX(-120%); animation: glint 4.2s ease-in-out infinite 1.4s;
}
@keyframes glint { 0%, 62% { transform: translateX(-120%); } 82%, 100% { transform: translateX(120%); } }
.btn-emas > span { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; }
.btn-emas:hover { transform: translateY(-2px); }
.cotton .btn-emas { box-shadow: 0 0 0 1px rgba(154, 115, 48, .6), 0 0 0 4px var(--ivory), 0 0 0 5px var(--hair-ink), 0 14px 30px -14px rgba(60, 20, 20, .5); }
.btn-emas.wide { width: 100%; }
.btn-emas.loading { opacity: .6; pointer-events: none; }
.btn-line { background: transparent; color: var(--gold-l); border: 1px solid var(--hair); padding: 14px 26px; margin-top: 26px; }
.btn-line:hover { background: rgba(212, 165, 74, .1); }
.cotton .btn-line { color: var(--silk); border-color: var(--hair-ink); }
.cotton .kain .btn-line { color: var(--gold-l); border-color: var(--hair); }

/* ── Musik ───────────────────────────────────────────────────────── */
.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(42, 8, 18, .7); color: var(--gold-l);
    border: 1px solid rgba(212, 165, 74, .6);
    -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(212, 165, 74, .45);
    animation: ring 2.4s ease-out infinite;
}
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }

/* ── Gulungan benang (progres) ───────────────────────────────────── */
.spool {
    position: fixed; z-index: 70; top: calc(16px + env(safe-area-inset-top)); left: 16px;
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: rgba(42, 8, 18, .7); border: 1px solid rgba(212, 165, 74, .6);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
    opacity: 0; transform: scale(.6); transition: opacity .6s, transform .6s var(--ease); pointer-events: none;
}
body.opened .spool { opacity: 1; transform: none; }
.sp-flange { width: 22px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #6a3d1e, #c58a52, #6a3d1e); }
.sp-core { position: relative; width: 6px; height: 16px; background: #5a3418; display: flex; align-items: center; justify-content: center; }
.sp-core i {
    position: absolute; height: 16px; width: calc(8px + 12px * (1 - var(--p)));
    border-radius: 3px;
    background: repeating-linear-gradient(0deg, #f3d58a 0 1.4px, #b8893a 1.4px 2.6px);
    background-position: 0 calc(var(--p) * 300px);
    box-shadow: 0 0 6px rgba(243, 213, 138, .3);
}
.thread-bar { position: fixed; z-index: 69; top: 0; left: 0; right: 0; height: 2px; pointer-events: none; opacity: 0; transition: opacity .6s; }
body.opened .thread-bar { opacity: 1; }
.thread-bar i {
    display: block; height: 100%; width: calc(var(--p) * 100%);
    background: repeating-linear-gradient(-55deg, #fbe7a8 0 2px, #b8893a 2px 4px);
    box-shadow: 0 0 8px rgba(243, 213, 138, .5);
}

/* ── Toast ───────────────────────────────────────────────────────── */
.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(42, 8, 18, .95); color: var(--gold-l); border: 1px solid var(--hair);
    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); }

.fibers { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 60; pointer-events: none; }

/* ══════════════════════════════════════════════════════════════════
   COVER — alat tenun
   ══════════════════════════════════════════════════════════════════ */
.cover {
    position: fixed; inset: 0; z-index: 50; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 10px;
    padding: calc(26px + env(safe-area-inset-top)) 20px calc(22px + env(safe-area-inset-bottom));
    background:
        radial-gradient(60% 40% at 50% 50%, rgba(212, 165, 74, .14), transparent 72%),
        radial-gradient(120% 80% at 50% -10%, #6e1a2c 0%, #4a0f1f 40%, #2a0812 80%, #1c050c 100%);
    text-align: center;
    transition: opacity 1s ease, visibility 0s linear 1s;
}
.cv-silk {
    position: absolute; inset: 0; pointer-events: none;
    background:
        var(--tabur-svg) 0 0 / 48px 48px,
        repeating-linear-gradient(0deg, rgba(0, 0, 0, .07) 0 1px, transparent 1px 3px);
    -webkit-mask-image: radial-gradient(90% 70% at 50% 50%, transparent 30%, #000 90%);
    mask-image: radial-gradient(90% 70% at 50% 50%, transparent 30%, #000 90%);
}
.cv-top { position: relative; z-index: 2; padding: 0 44px; transition: opacity .8s, transform .9s var(--ease); }
.cv-names {
    margin: 10px 0 2px; font-family: var(--display); font-weight: 500; font-style: italic;
    font-size: clamp(38px, 11vw, 66px); line-height: 1.04; letter-spacing: -.005em;
    display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 0 .22em;
}
.cv-names em { font-size: .55em; color: var(--gold); font-weight: 400; }
.cv-date { margin: 0; font-family: var(--label); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--cream-dim); }

.loom-stage { position: relative; z-index: 2; flex: 1; min-height: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.loom {
    position: relative; touch-action: none; cursor: ew-resize; user-select: none; -webkit-user-select: none;
    height: min(46vh, 460px); height: min(46svh, 460px);
    aspect-ratio: .8; max-width: calc(100vw - 76px);
    transition: transform 1.1s var(--ease), opacity 1s ease;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55));
}
.cloth-wrap { position: absolute; top: 20px; bottom: 20px; left: 8px; right: 8px; }
.cloth-wrap canvas { display: block; width: 100%; height: 100%; }
.sheen {
    position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
    clip-path: inset(var(--woven) 0 0 0);
    background: linear-gradient(115deg, transparent 30%, rgba(255, 226, 160, .2) 46%, rgba(255, 246, 220, .16) 50%, transparent 66%);
    background-size: 280% 100%; background-position: var(--fx) 0;
}
.sheen::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 236, 190, .18) 50%, transparent 60%);
    background-size: 300% 100%; animation: silkSweep 6s ease-in-out infinite;
}
@keyframes silkSweep { 0% { background-position: 120% 0; } 60%, 100% { background-position: -20% 0; } }

/* sisir (beater) & torak */
.reed {
    position: absolute; top: 0; left: -6px; right: -6px; height: 13px; z-index: 3; pointer-events: none;
    background:
        linear-gradient(180deg, #3a1e0c, #b47a46 50%, #3a1e0c) top / 100% 3px no-repeat,
        linear-gradient(180deg, #3a1e0c, #b47a46 50%, #3a1e0c) bottom / 100% 3px no-repeat,
        repeating-linear-gradient(90deg, rgba(244, 226, 186, .7) 0 1px, transparent 1px 4.4px);
    border-radius: 2px; box-shadow: 0 4px 8px rgba(0, 0, 0, .45);
}
.reed.beat { animation: beat .2s ease-out; }
@keyframes beat { 45% { translate: 0 11px; } }
.shuttle { position: absolute; left: 0; top: 0; z-index: 4; width: 34%; max-width: 116px; height: auto; pointer-events: none; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .5)); }

/* rangka kayu */
.beam {
    position: absolute; left: -18px; right: -18px; height: 22px; border-radius: 11px; z-index: 5;
    background: linear-gradient(180deg, #2b1509 0%, #6e4120 26%, #c08650 44%, #8a5629 62%, #4a2812 84%, #241106 100%);
    box-shadow: 0 6px 12px rgba(0, 0, 0, .45);
    transition: transform .9s var(--ease), opacity .8s;
}
.beam::after { content: ''; position: absolute; left: 14px; right: 14px; top: 5px; height: 1px; background: rgba(255, 220, 170, .28); }
.beam.top { top: 0; }
.beam.bot { bottom: 0; }
.knob {
    position: absolute; top: -3px; width: 28px; height: 28px; border-radius: 50%;
    background: radial-gradient(circle at 35% 32%, #fff2c6 0%, #e2b864 30%, #a67a2f 66%, #5e4113 100%);
    box-shadow: 0 3px 6px rgba(0, 0, 0, .5), inset 0 0 0 2px rgba(90, 60, 20, .35);
}
.knob::after { content: ''; position: absolute; inset: 8px; border-radius: 50%; border: 1px solid rgba(90, 60, 20, .45); }
.knob.l { left: -8px; }
.knob.r { right: -8px; }
.carve {
    position: absolute; left: 50%; top: 4px; width: 84px; height: 14px; margin-left: -42px;
    background: var(--lepus-svg) center / auto 14px repeat-x; opacity: .9;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}
.post {
    position: absolute; top: 10px; bottom: 10px; width: 12px; z-index: 4; border-radius: 3px;
    background:
        repeating-linear-gradient(180deg, transparent 0 34px, rgba(0, 0, 0, .25) 34px 36px, rgba(255, 210, 160, .12) 36px 37px),
        linear-gradient(90deg, #2b1509, #8a5629 40%, #c08650 55%, #5a3418 85%, #2b1509);
    transition: transform .9s var(--ease), opacity .8s;
}
.post.l { left: -10px; }
.post.r { right: -10px; }
.warp-ends {
    position: absolute; top: calc(100% - 2px); left: 18px; right: 18px; height: 24px; z-index: 3;
    background: repeating-linear-gradient(90deg, rgba(240, 220, 180, .55) 0 1px, transparent 1px 4.4px);
    -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent);
    mask-image: linear-gradient(180deg, #000 30%, transparent);
    transition: opacity .6s;
}
.cut-glint {
    position: absolute; left: -4px; right: -4px; height: 2px; z-index: 6; pointer-events: none;
    background: linear-gradient(90deg, transparent, #fff6d6 20%, #fff 50%, #fff6d6 80%, transparent);
    box-shadow: 0 0 12px 2px rgba(255, 230, 160, .8);
    transform: scaleX(0); transform-origin: left center; opacity: 0;
}
.cut-glint.t { top: -1px; }
.cut-glint.b { bottom: -1px; transform-origin: right center; }

.loom-hint {
    margin: 30px 0 0; font-family: var(--label); font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase;
    color: rgba(244, 232, 210, .6); display: inline-flex; align-items: center; gap: 10px;
    transition: opacity .5s;
}
.loom-hint.gone { opacity: 0; }
.hint-hand { position: relative; width: 28px; height: 1px; background: rgba(212, 165, 74, .5); }
.hint-hand::after {
    content: ''; position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%;
    background: var(--gold-l); box-shadow: 0 0 8px var(--gold);
    animation: hand 1.8s ease-in-out infinite alternate;
}
@keyframes hand { to { transform: translateX(21px); } }

.cv-foot { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; transition: opacity .7s, transform .9s var(--ease); }
.selvedge {
    position: relative; display: inline-flex; flex-direction: column; align-items: center;
    min-width: 220px; max-width: calc(100vw - 48px); padding: 10px 34px 11px;
    color: var(--silk);
    background:
        repeating-linear-gradient(0deg, rgba(120, 80, 40, .06) 0 1px, transparent 1px 3px),
        linear-gradient(180deg, #fbf3e2, #ecdfc4);
    clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%, 12px 50%);
}
.selvedge::before { content: ''; position: absolute; inset: 4px 16px; border-top: 1px dashed rgba(110, 26, 44, .45); border-bottom: 1px dashed rgba(110, 26, 44, .45); pointer-events: none; }
.sv-k { font-family: var(--label); font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-d); }
.sv-n { font-family: var(--display); font-style: italic; font-weight: 600; font-size: 21px; line-height: 1.25; word-break: break-word; }
.cv-foot .btn-emas { margin-top: 18px; }
.cv-note { margin: 12px 0 0; font-family: var(--sans); font-size: 10.5px; color: rgba(244, 232, 210, .45); letter-spacing: .04em; }

/* urutan buka */
.cover.weaving .loom-hint, .cover.weaving .cv-foot { opacity: 0; transform: translateY(24px); pointer-events: none; }
.cover.s1 .cut-glint { animation: cut .55s ease-out forwards; }
.cover.s1 .cut-glint.b { animation-delay: .12s; }
@keyframes cut { 0% { transform: scaleX(0); opacity: 1; } 70% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.cover.s2 .beam.top { transform: translateY(-90px); opacity: 0; }
.cover.s2 .beam.bot { transform: translateY(90px); opacity: 0; }
.cover.s2 .post.l { transform: translateX(-70px); opacity: 0; }
.cover.s2 .post.r { transform: translateX(70px); opacity: 0; }
.cover.s2 .reed, .cover.s2 .shuttle, .cover.s2 .warp-ends { opacity: 0; transition: opacity .4s; }
.cover.s2 .cv-top { opacity: 0; transform: translateY(-30px); }
.cover.s2 .loom { transform: scale(1.06); }
.cover.s3 { opacity: 0; visibility: hidden; }
.cover.s3 .loom { transform: translateY(-3vh) scale(1.5); opacity: 0; }

/* ══════════════════════════════════════════════════════════════════
   LATAR — sutra & katun
   ══════════════════════════════════════════════════════════════════ */
.silk {
    position: relative; color: var(--cream);
    background:
        var(--tabur-svg) 0 0 / 48px 48px,
        radial-gradient(80% 50% at 50% 0%, rgba(110, 26, 44, .55), transparent 70%),
        linear-gradient(180deg, #3d0c19 0%, #4a0f1f 50%, #350a17 100%);
}
.silk.glow { background: var(--tabur-svg) 0 0 / 48px 48px, radial-gradient(60% 55% at 50% 50%, rgba(212, 165, 74, .16), transparent 70%), linear-gradient(180deg, #3d0c19, #4a0f1f 50%, #350a17); }
.silk.deep { background: var(--tabur-svg) 0 0 / 48px 48px, linear-gradient(180deg, #350a17, #2a0812); }
.cotton {
    position: relative; color: var(--ink);
    background:
        repeating-linear-gradient(0deg, rgba(120, 80, 40, .035) 0 1px, transparent 1px 3px),
        repeating-linear-gradient(90deg, rgba(120, 80, 40, .03) 0 1px, transparent 1px 4px),
        radial-gradient(90% 60% at 50% 0%, #fbf5e9, transparent 70%),
        var(--ivory);
}
.band {
    position: relative; z-index: 2; height: 48px;
    background:
        var(--band-svg) center / auto 48px repeat-x,
        linear-gradient(180deg, #2e0813 0%, #561327 50%, #2e0813 100%);
    box-shadow: 0 1px 0 rgba(212, 165, 74, .5), 0 -1px 0 rgba(212, 165, 74, .5), 0 8px 18px -8px rgba(0, 0, 0, .5);
}

.sec { padding: 92px 22px 100px; }

/* kepala bagian: label, judul, jahitan */
.sh { margin-bottom: 30px; }
.sh-kick { display: inline-flex; align-items: center; gap: 12px; font-family: var(--label); font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.cotton .sh-kick { color: var(--gold-d); }
.bunga { width: 14px; height: 14px; color: currentColor; flex-shrink: 0; }
.sh-title { margin: 12px 0 6px; font-family: var(--display); font-weight: 500; font-style: italic; font-size: clamp(38px, 10.5vw, 66px); line-height: 1.08; letter-spacing: -.005em; }
.sh-title .emas { display: inline-block; padding: 0 .08em .06em; }
.jahit { display: block; width: 220px; max-width: 70%; height: 20px; margin: 4px auto 0; overflow: visible; }
.sh:not(.center) .jahit, .sh.center .jahit { margin-left: auto; margin-right: auto; }
.jahit .j-a { fill: none; stroke: rgba(212, 165, 74, .35); stroke-width: 1; }
.jahit .j-b { fill: none; stroke: var(--gold-l); stroke-width: 1.7; stroke-dasharray: 7 5; stroke-linecap: round; }
.jahit .j-d, .jahit circle { fill: var(--gold); }
.cotton .jahit .j-a { stroke: rgba(154, 115, 48, .35); }
.cotton .jahit .j-b { stroke: var(--gold-d); }
.cotton .jahit .j-d, .cotton .jahit circle { fill: var(--gold-d); }

/* ── 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; }
.sh.rv .sh-kick { opacity: 0; transform: translateY(12px); transition: opacity .8s, transform .9s var(--ease); }
.sh.rv .sh-title .emas { clip-path: inset(-25% 100% -25% -6%); transition: clip-path 1.5s cubic-bezier(.6, 0, .2, 1) .15s; }
.sh.rv .jahit { clip-path: inset(-50% 50% -50% 50%); transition: clip-path 1.4s var(--ease) .55s; }
.sh.rv.in .sh-kick { opacity: 1; transform: none; }
.sh.rv.in .sh-title .emas { clip-path: inset(-25% -6% -25% -6%); }
.sh.rv.in .jahit { clip-path: inset(-50% -2% -50% -2%); }
.sew > .emas { display: inline-block; padding: 0 .1em .08em; clip-path: inset(-25% 100% -25% -6%); transition: clip-path 1.6s cubic-bezier(.6, 0, .2, 1); }
.sew.in > .emas { clip-path: inset(-25% -6% -25% -6%); }

/* ══════════════════════════════════════════════════════════════════
   HERO — kain terbentang
   ══════════════════════════════════════════════════════════════════ */
.hero {
    min-height: 100vh; min-height: 100svh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: calc(96px + env(safe-area-inset-top)) 22px 70px;
    background:
        var(--tabur-svg) 0 0 / 48px 48px,
        radial-gradient(60% 45% at 50% 45%, rgba(212, 165, 74, .14), transparent 72%),
        radial-gradient(120% 80% at 50% -10%, #6e1a2c 0%, #4a0f1f 40%, #2a0812 85%);
}
.banner { position: relative; width: min(100%, 470px); }
.rod {
    position: relative; display: block; height: 16px; margin: 0 -20px; border-radius: 8px; z-index: 2;
    background: linear-gradient(180deg, #2b1509 0%, #7a4a26 30%, #c58a52 48%, #6a3d1e 72%, #241106 100%);
    box-shadow: 0 6px 12px rgba(0, 0, 0, .45);
}
.rod::before, .rod::after {
    content: ''; position: absolute; top: -4px; width: 24px; height: 24px; border-radius: 50%;
    background: radial-gradient(circle at 35% 32%, #fff2c6 0%, #e2b864 30%, #a67a2f 66%, #5e4113 100%);
    box-shadow: 0 3px 6px rgba(0, 0, 0, .5);
}
.rod::before { left: -10px; }
.rod::after { right: -10px; }
.rod i { position: absolute; bottom: 100%; width: 1.2px; height: 56px; background: linear-gradient(var(--gold-l), var(--gold-d)); transform-origin: bottom center; }
.rod i:first-child { left: 18%; transform: rotate(38deg); }
.rod i:last-child { right: 18%; transform: rotate(-38deg); }
.rod i:first-child::after {
    content: ''; position: absolute; top: -6px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
    background: radial-gradient(circle at 35% 32%, #fff2c6, #c8973e 60%, #6b4a14);
}
.banner-cloth {
    position: relative; margin-top: -4px;
    background:
        var(--tabur-svg) 0 0 / 48px 48px,
        linear-gradient(105deg, rgba(255, 220, 170, 0) 30%, rgba(255, 220, 170, .07) 45%, rgba(255, 220, 170, 0) 60%),
        linear-gradient(180deg, #5c1428, #46101f 55%, #380b18);
    box-shadow: inset 4px 0 0 #2a0812, inset 5px 0 0 var(--gold), inset 8px 0 0 #2a0812, inset 9px 0 0 rgba(212, 165, 74, .5),
                inset -4px 0 0 #2a0812, inset -5px 0 0 var(--gold), inset -8px 0 0 #2a0812, inset -9px 0 0 rgba(212, 165, 74, .5),
                0 40px 60px -30px rgba(0, 0, 0, .8);
}
.b-band { display: block; height: 48px; background: var(--band-svg) center / auto 48px repeat-x; }
.b-band.t { transform: scaleY(-1); }
.b-body { padding: 26px 24px 30px; text-align: center; }
.hero-names {
    margin: 10px 0 0; font-family: var(--display); font-style: italic; font-weight: 500;
    font-size: clamp(54px, 16vw, 92px); line-height: .98; letter-spacing: -.01em;
    display: flex; flex-direction: column; align-items: center;
}
.hero-names em, .fin-names em { font-size: .45em; line-height: 1.1; color: var(--gold); font-weight: 400; }
.b-rule { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 18px auto 14px; color: var(--gold); }
.b-rule::before, .b-rule::after { content: ''; width: 64px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.b-rule::after { transform: scaleX(-1); }
.b-rule .bunga { width: 18px; height: 18px; }
.hero-date { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hero-date span { font-family: var(--label); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--cream-dim); }
.hero-date b { font-family: var(--display); font-weight: 600; font-size: 28px; letter-spacing: .08em; color: var(--gold-l); }
.hero-place { margin: 12px 0 0; font-style: italic; font-size: 18px; color: var(--cream); }
.rumbai {
    position: relative; display: block; height: 34px; margin: 0 10px;
    background: repeating-linear-gradient(90deg, rgba(232, 196, 120, .9) 0 1.3px, transparent 1.3px 5px);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 100%);
}
.rumbai::before {
    content: ''; position: absolute; left: 0; right: 0; top: 3px; height: 6px;
    background: radial-gradient(circle, #f3d58a 0 2.2px, transparent 2.8px) 0 0 / 10px 6px repeat-x;
}
.banner > .rumbai { height: 40px; margin: 0 12px; }
body.opened .banner-cloth { animation: unroll 1.7s cubic-bezier(.6, 0, .2, 1) both; }
body.opened .banner > .rumbai { animation: fadeIn .8s ease 1.4s both; }
@keyframes unroll { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 -2px 0); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.scroll-cue { margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; font-family: var(--label); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--cream-dim); }
.scroll-cue i { width: 1px; height: 38px; background: linear-gradient(var(--gold), transparent); animation: cue 2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ── Kain (kartu songket) ────────────────────────────────────────── */
.kain {
    position: relative; margin: 0 0 40px; padding: 38px 22px 30px; color: var(--cream); text-align: center;
    background:
        var(--tabur-svg) 0 0 / 48px 48px,
        linear-gradient(110deg, rgba(255, 220, 170, 0) 25%, rgba(255, 220, 170, .07) 45%, rgba(255, 220, 170, 0) 62%),
        linear-gradient(180deg, #5a1427, #45101e 60%, #3a0b18);
    box-shadow: inset 0 0 0 1px rgba(212, 165, 74, .6), inset 0 0 0 6px #3a0b18, inset 0 0 0 7px rgba(212, 165, 74, .3),
                0 30px 46px -26px rgba(42, 8, 18, .75);
}
.k-band { position: absolute; top: 9px; left: 9px; right: 9px; height: 18px; background: var(--lepus-svg) center / auto 18px repeat-x; }
.kain > .rumbai { position: absolute; top: 100%; left: 12px; right: 12px; margin: 0; }
.ayat { margin-top: 40px; padding-top: 48px; }
.ayat .arabic { color: var(--gold-l); }
.ayat blockquote { margin: 6px 0 14px; font-style: italic; font-size: 18px; line-height: 1.7; color: var(--cream); }
.ayat figcaption { font-family: var(--label); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }

/* ── Mempelai ────────────────────────────────────────────────────── */
.couple { display: grid; gap: 30px; margin-top: 54px; }
.person { text-align: center; }
.bingkai {
    position: relative; width: min(68vw, 270px); margin: 40px auto 46px; padding: 12px;
    background: var(--tabur-dense) 0 0 / 16px 16px, linear-gradient(180deg, #5a1427, #3a0b18);
    box-shadow: inset 0 0 0 1px var(--gold), 0 0 0 1px rgba(212, 165, 74, .3), 0 0 0 5px #2a0812, 0 0 0 6px rgba(212, 165, 74, .45), 0 30px 50px -20px rgba(0, 0, 0, .7);
}
.b-inner {
    position: relative; aspect-ratio: 3 / 4; overflow: hidden; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 1px var(--gold-l);
    background: radial-gradient(80% 70% at 50% 40%, #6e1a2c, #2a0812);
}
.b-inner img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 2s var(--ease); }
.person.in .b-inner img { transform: none; }
.mono { font-family: var(--deco); font-weight: 700; font-size: 104px; line-height: 1; }
.b-crown {
    position: absolute; bottom: calc(100% + 6px); left: 50%; width: 76px; height: 36px; margin-left: -38px;
    background: linear-gradient(112deg, #9a7330, #f3d58a 45%, #b8893a);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.b-crown::before { content: ''; position: absolute; inset: 0; background: #3a0b18; clip-path: polygon(50% 38%, 78% 100%, 22% 100%); }
.b-crown::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 18px; height: 11px; margin-left: -9px; background: var(--gold-l); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.b-tassel { position: absolute; top: calc(100% + 6px); left: 50%; width: 1.4px; height: 18px; margin-left: -.7px; background: var(--gold); }
.b-tassel::before { content: ''; position: absolute; top: 14px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: radial-gradient(circle at 35% 32%, #fff2c6, #c8973e 60%, #6b4a14); }
.b-tassel::after {
    content: ''; position: absolute; top: 20px; left: 50%; width: 14px; height: 22px; margin-left: -7px;
    background: repeating-linear-gradient(90deg, #f3d58a 0 1px, #b8893a 1px 2px);
    clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%);
}
.p-name { margin: 10px 0 0; font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1.2; color: var(--gold-l); }
.parent { margin: 12px 0 0; font-size: 17px; line-height: 1.6; color: var(--cream-dim); }
.parent b { font-weight: 600; color: var(--cream); }
.knot { position: relative; width: 80px; height: 120px; margin: 0 auto; display: flex; align-items: center; justify-content: center; }
.knot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.knot path { fill: none; stroke-width: 1.6; stroke-linecap: round; }
.knot .kn-a { stroke: var(--gold); }
.knot .kn-b { stroke: var(--gold-l); stroke-dasharray: 5 4; }
.knot em { position: relative; font-size: 46px; font-style: italic; color: var(--gold-l); background: #45101e; padding: 0 6px; line-height: 1.2; border-radius: 50%; }

/* ── Kisah ───────────────────────────────────────────────────────── */
.story { list-style: none; margin: 46px 0 0; padding: 0; }
.story li { position: relative; display: grid; grid-template-columns: 78px 1fr; gap: 20px; padding: 0 0 46px; }
.story li:not(:last-child)::after {
    content: ''; position: absolute; left: 38.5px; top: 92px; bottom: 6px; width: 0;
    border-left: 1.5px dashed var(--gold-d); opacity: .55;
    transform: scaleY(0); transform-origin: top; transition: transform 1.6s var(--ease) .6s;
}
.story li.in::after { transform: scaleY(1); }
.st-motif {
    --m-bg: #45101e;
    position: relative; width: 78px; height: 78px; padding: 10px; color: var(--gold);
    background: linear-gradient(180deg, #5a1427, #3a0b18);
    box-shadow: inset 0 0 0 1px var(--gold), inset 0 0 0 4px #3a0b18, inset 0 0 0 5px rgba(212, 165, 74, .4), 0 14px 24px -14px rgba(42, 8, 18, .8);
}
.st-motif .motif { width: 100%; height: 100%; display: block; clip-path: inset(100% 0 0 0); transition: clip-path 1.5s steps(14) .2s; }
.story li.in .st-motif .motif { clip-path: inset(0 0 0 0); }
.st-body { opacity: 0; transform: translateX(16px); transition: opacity 1s, transform 1.1s var(--ease); }
.story li.in .st-body { opacity: 1; transform: none; transition-delay: .4s; }
.st-body h3 { margin: 6px 0 6px; font-family: var(--display); font-style: italic; font-weight: 600; font-size: 28px; line-height: 1.15; color: var(--silk); }
.st-body p { margin: 0; font-size: 17.5px; line-height: 1.7; color: var(--ink-dim); }
.st-body .kick { font-size: 10px; letter-spacing: .26em; }
.st-body .st-mean { margin-top: 10px; padding-left: 12px; border-left: 2px solid var(--gold); font-style: italic; font-size: 16px; color: var(--gold-d); }

/* ── Hitung mundur ───────────────────────────────────────────────── */
.cd { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.cd > div {
    width: 76px; height: 76px; padding: 1.5px;
    clip-path: polygon(29% 0, 71% 0, 100% 29%, 100% 71%, 71% 100%, 29% 100%, 0 71%, 0 29%);
    background: linear-gradient(135deg, #9a7330, #f3d58a 45%, #b8893a);
}
.cd-in {
    width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
    clip-path: polygon(29% 0, 71% 0, 100% 29%, 100% 71%, 71% 100%, 29% 100%, 0 71%, 0 29%);
    background: var(--tabur-dense) 0 0 / 16px 16px, radial-gradient(circle at 50% 40%, #5a1427, #2a0812);
    background-blend-mode: soft-light, normal;
}
.cd b { display: block; font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.cd-in > span { margin-top: 4px; font-family: var(--label); font-size: 8.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--cream-dim); }
.cd-date { margin: 22px 0 0; font-style: italic; font-size: 19px; color: var(--cream); }

/* ── Acara ───────────────────────────────────────────────────────── */
.events { display: grid; gap: 40px; margin-top: 56px; }
.ev { padding-top: 52px; }
.ev-ico {
    position: absolute; top: -26px; left: 50%; width: 52px; height: 52px; margin-left: -26px;
    display: flex; align-items: center; justify-content: center; font-size: 22px; color: #3a0b18;
    clip-path: polygon(29% 0, 71% 0, 100% 29%, 100% 71%, 71% 100%, 29% 100%, 0 71%, 0 29%);
    background: linear-gradient(135deg, #9a7330, #f3d58a 45%, #c8973e);
}
.ev h3 { margin: 6px 0 16px; font-family: var(--display); font-style: italic; font-weight: 500; font-size: 38px; line-height: 1.1; color: var(--gold-l); }
.ev dl { margin: 0 auto; max-width: 340px; display: grid; gap: 12px; text-align: left; }
.ev dl div { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(212, 165, 74, .18); }
.ev dt { color: var(--gold); font-size: 18px; padding-top: 2px; }
.ev dd { margin: 0; font-size: 17.5px; line-height: 1.45; color: var(--cream); }
.dress { margin: 26px 0 0; text-align: center; font-style: italic; font-size: 18px; color: var(--ink-dim); }
.dress .kick { margin-bottom: 4px; }

/* ── Lokasi ──────────────────────────────────────────────────────── */
.map-frame {
    position: relative; margin: 34px auto 0; padding: 10px;
    background: var(--tabur-dense) 0 0 / 16px 16px, linear-gradient(180deg, #5a1427, #3a0b18);
    box-shadow: inset 0 0 0 1px var(--gold), 0 0 0 5px #2a0812, 0 0 0 6px rgba(212, 165, 74, .45), 0 30px 50px -24px rgba(0, 0, 0, .7);
}
.leaflet-map, .map-illu { display: block; width: 100%; aspect-ratio: 4 / 3; position: relative; z-index: 1; box-shadow: 0 0 0 1px var(--gold-l); }
.leaflet-map .leaflet-tile-pane { filter: sepia(.5) saturate(.85) hue-rotate(-12deg) brightness(.9) contrast(1.04); }
.map-illu svg { width: 100%; height: 100%; display: block; }
.mi-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -72%); font-size: 34px; color: var(--gold-l); }
.ts-marker span { display: block; width: 22px; height: 22px; margin: 4px auto 0; transform: rotate(45deg); background: linear-gradient(135deg, #f3d58a, #9a7330); border: 2px solid #4a0f1f; box-shadow: 0 0 0 1px #d4a54a, 0 6px 12px rgba(0, 0, 0, .5); }
.leaflet-container { font-family: var(--sans); background: #2a0812; }
.loc-name { margin: 28px 0 0; font-family: var(--display); font-style: italic; font-weight: 600; font-size: 28px; line-height: 1.2; color: var(--gold-l); }

/* ── Galeri: helai kain tersemat di atelier ──────────────────────── */
.atelier { background:
        repeating-linear-gradient(45deg, rgba(120, 80, 40, .03) 0 2px, transparent 2px 6px),
        repeating-linear-gradient(-45deg, rgba(120, 80, 40, .03) 0 2px, transparent 2px 6px),
        var(--linen); }
.swatches { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 16px; margin: 50px 0 26px; }
.swatch {
    --r: -1.6deg;
    position: relative; display: block; width: 100%; padding: 9px 9px 0; border: 0; cursor: pointer; text-align: center;
    background: #fdf8ee;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .05), 0 16px 26px -14px rgba(60, 20, 20, .45);
    rotate: var(--r);
}
.swatch:nth-child(even) { --r: 1.4deg; }
.swatch:nth-child(3n) { --r: -.6deg; }
.swatch.rv-up { transform: translateY(26px); }
.swatch.rv-up.in { transform: none; }
.swatch:hover .sw-cloth img { transform: scale(1.05); }
.sw-pin {
    position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px; z-index: 2; border-radius: 50%;
    background: radial-gradient(circle at 35% 32%, #fff2c6 0%, #d4a54a 40%, #7a5420 100%);
    box-shadow: 0 3px 4px rgba(0, 0, 0, .35);
}
.sw-cloth {
    --z: 7px;
    display: block; aspect-ratio: 4 / 5; overflow: hidden; position: relative;
    -webkit-mask:
        conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--z) 51% repeat-x,
        conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--z) 51% repeat-x;
    mask:
        conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--z) 51% repeat-x,
        conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--z) 51% repeat-x;
}
.sw-cloth img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.sw-tag { display: block; padding: 9px 0 10px; font-family: var(--label); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--silk); }
.swatches.ph .sw-cloth { display: flex; align-items: center; justify-content: center; background-color: var(--m-bg); color: var(--mc, #d4a54a); }
.swatches.ph .sw-cloth::before { content: ''; position: absolute; inset: 0; background: var(--tabur-dense) 0 0 / 16px 16px; opacity: .25; }
.swatches.ph .sw-cloth::after { content: ''; position: absolute; inset: 8px; border: 1px solid currentColor; opacity: .5; }
.swatches.ph .motif { position: relative; z-index: 1; width: 52%; height: auto; }
.cw1 { --m-bg: #4a0f1f; }
.cw2 { --m-bg: #1f4f4a; }
.cw3 { --m-bg: #3b1236; }
.cw4 { --m-bg: #c8973e; --mc: #4a0f1f; }
.cw5 { --m-bg: #1e2347; }
.cw6 { --m-bg: #efe2c8; --mc: #6e1a2c; }
.cw4::before, .cw6::before { filter: hue-rotate(160deg) brightness(.4); }

/* ── Hadiah (partial) ────────────────────────────────────────────── */
.gift { padding-top: 0; }
.gift > .band, .finale > .band { margin: 0 -22px 88px; }
.gift-wrap { position: relative; 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 { border-radius: 0; border-color: var(--hair-ink); box-shadow: 0 14px 26px -14px rgba(60, 20, 20, .35); background: #fdf8ee; }
.gift #gift-section .gs-sbtn, .gift #gift-section .gs-btn-buy { border-radius: 0 !important; background: linear-gradient(112deg, #9a7330, #e3bb67 40%, #a87d34) !important; color: #3a0b18 !important; letter-spacing: .12em; }
.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: 46px 22px 30px;
    background: linear-gradient(170deg, rgba(255, 230, 190, .05), rgba(255, 230, 190, .015));
    box-shadow: inset 0 0 0 1px var(--hair), inset 0 0 0 6px transparent, inset 0 0 0 7px rgba(212, 165, 74, .16);
}
.rsvp-form::before { content: ''; position: absolute; top: 9px; left: 9px; right: 9px; height: 18px; background: var(--lepus-svg) center / auto 18px repeat-x; opacity: .85; }
.f-l { display: block; margin: 20px 0 8px; font-family: var(--label); font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.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(--display); font-size: 19px; outline: none; resize: vertical;
    transition: border-color .3s;
}
.f-in::placeholder { color: rgba(244, 232, 210, .38); font-style: italic; }
.f-in:focus { border-bottom-color: var(--gold-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); font-family: var(--label); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--cream-dim); transition: all .3s; }
.att input:checked + span { background: linear-gradient(112deg, #a87d34, #f0d08a 45%, #b8893a); color: #3a0b18; border-color: transparent; }
.att input:focus-visible + span { outline: 1px solid var(--gold-l); outline-offset: 2px; }

/* ── Ucapan ──────────────────────────────────────────────────────── */
.wishes-list { margin-top: 30px; max-height: 560px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: var(--gold-d) transparent; }
.wish-item { display: flex; gap: 14px; padding: 20px 0; border-top: 1px solid rgba(212, 165, 74, .18); }
.wish-item.new { animation: fadeUp .8s var(--ease) both; }
.wish-avatar {
    flex-shrink: 0; width: 38px; height: 46px; display: flex; align-items: center; justify-content: center;
    color: #fff3d6; font-family: var(--deco); font-weight: 700; font-size: 17px; text-transform: uppercase; text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
    background: repeating-linear-gradient(0deg, var(--av, #7a1a30) 0 2px, rgba(255, 255, 255, .14) 2px 3px), var(--av, #7a1a30);
    box-shadow: inset 0 5px 0 #c08650, inset 0 6px 0 #4a2812, inset 0 -5px 0 #c08650, inset 0 -6px 0 #4a2812, 0 6px 12px -4px rgba(0, 0, 0, .5);
    border-radius: 3px;
}
.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: 19px; color: var(--cream); word-break: break-word; }
.wish-badge { font-family: var(--label); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--hair); color: var(--gold-l); }
.wish-badge.tidak { color: #e3a99a; border-color: rgba(227, 169, 154, .4); }
.wish-badge.ragu { color: var(--cream-dim); border-color: rgba(244, 232, 210, .25); }
.wish-message { margin: 6px 0 6px; font-size: 17px; line-height: 1.6; color: var(--cream-dim); word-break: break-word; }
.wish-time { font-family: var(--sans); font-size: 10px; letter-spacing: .1em; color: rgba(244, 232, 210, .4); }
.wish-empty { text-align: center; padding: 40px 0; color: var(--cream-dim); font-style: italic; }
.we-ico { display: inline-flex; font-size: 32px; color: var(--gold); margin-bottom: 8px; }

/* ── Penutup ─────────────────────────────────────────────────────── */
.finale {
    position: relative; padding: 0 22px calc(130px + env(safe-area-inset-bottom)); text-align: center;
    background:
        var(--tabur-svg) 0 0 / 48px 48px,
        radial-gradient(70% 45% at 50% 45%, rgba(212, 165, 74, .14), transparent 72%),
        linear-gradient(180deg, #2a0812, #1c050c);
}
.finale .kick { margin-bottom: 10px; }
.fin-names { margin: 20px 0 0; font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(56px, 16vw, 120px); line-height: .98; letter-spacing: -.01em; display: flex; flex-direction: column; align-items: center; }
.fam { display: grid; gap: 18px; margin: 34px auto 30px; max-width: 560px; }
.fam p { margin: 0; font-size: 17.5px; line-height: 1.5; color: var(--cream); }
.fam span { display: block; margin-bottom: 4px; font-family: var(--label); font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.salam { margin: 0; font-style: italic; font-size: 20px; color: var(--gold-l); }
.medal {
    display: flex; align-items: center; justify-content: center; gap: 12px; width: 120px; height: 120px; margin: 60px auto 22px;
    font-family: var(--deco); font-weight: 700; font-size: 32px; line-height: 1; position: relative;
}
.medal::before, .medal::after {
    content: ''; position: absolute; inset: 0;
    clip-path: polygon(29% 0, 71% 0, 100% 29%, 100% 71%, 71% 100%, 29% 100%, 0 71%, 0 29%);
    background: linear-gradient(135deg, #9a7330, #f3d58a 45%, #b8893a);
}
.medal::after { inset: 2px; background: var(--tabur-dense) 0 0 / 16px 16px, radial-gradient(circle, #5a1427, #2a0812); background-blend-mode: soft-light, normal; }
.medal > * { position: relative; z-index: 1; }
.medal i { width: 1px; height: 40px; background: var(--hair); transform: rotate(20deg); }
.credit { margin: 0; font-family: var(--sans); font-size: 10px; letter-spacing: .14em; color: rgba(244, 232, 210, .42); }

/* ── Lightbox ────────────────────────────────────────────────────── */
.gallery-lightbox {
    display: none; opacity: 0; transition: opacity .3s; position: fixed; inset: 0; z-index: 9600;
    background: rgba(28, 5, 12, .95); align-items: center; justify-content: center;
}
.lb-img-wrap { max-width: 92vw; max-height: 82vh; padding: 8px; border: 1px solid var(--hair); }
.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(42, 8, 18, .75); border: 1px solid var(--hair); 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(--label); font-size: 11px; letter-spacing: .3em; color: var(--gold-l); }

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

/* ── Desktop ─────────────────────────────────────────────────────── */
@media (min-width: 760px) {
    .sec { padding: 140px 48px 150px; }
    .gift > .band, .finale > .band { margin: 0 -48px 130px; }
    .finale { padding-left: 48px; padding-right: 48px; }
    .loom { height: min(52vh, 520px); }
    .cover { padding-top: calc(34px + env(safe-area-inset-top)); }
    .couple { grid-template-columns: 1fr auto 1fr; align-items: center; gap: 40px; }
    .knot { height: 180px; }
    .events { grid-template-columns: 1fr 1fr; gap: 40px; }
    .story li { grid-template-columns: 100px 1fr; gap: 32px; }
    .st-motif { width: 100px; height: 100px; padding: 14px; }
    .story li:not(:last-child)::after { left: 49.5px; top: 114px; }
    .swatches { grid-template-columns: repeat(3, 1fr); gap: 46px 34px; }
    .cd { gap: 18px; }
    .cd > div { width: 108px; height: 108px; }
    .cd b { font-size: 42px; }
    .cd-in > span { font-size: 10px; }
    .fam { grid-template-columns: 1fr 1fr; }
    .rsvp-form { padding: 56px 44px 40px; }
    .kain { padding-left: 34px; padding-right: 34px; }
}

/* ── Reduced motion ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
    .rv-up, .st-body, .sh.rv .sh-kick { opacity: 1; transform: none; transition: none; }
    .sh.rv .sh-title .emas, .sh.rv .jahit, .sew > .emas, .st-motif .motif { clip-path: none; transition: none; }
    .story li::after { transform: none; }
}
