/*
 * Sunda Kujang: Priangan highland wedding. Deep forest green + polished brass + a warm red accent on padi-cream
 * grounds. Hero emblem: two crossed brass kujang over a rice wreath (sections/_crest). Frames: the imah julang ngapak
 * roof (_roof), the woven bamboo bilik (pattern + CSS mask --sj-weave), the layered Priangan landscape (_hills).
 * Fonts: the client's choice (--inv-font-display for names, --inv-font-heading for titles) + Figtree.
 * Variant colors: --inv-primary, --inv-accent (brass), --inv-secondary (warm accent), --inv-background,
 * --inv-text, --inv-deep, --inv-leaf, --inv-key (brass dark enough for text on light grounds).
 * Sections: light (.sj-section--light), padi wash (.sj-section--padi) and deep green (.sj-section--deep),
 * alternating. All classes start with "sj-".
 */

:root {
    --inv-primary: #1b4a2d;
    --inv-accent: #c99b3f;
    --inv-secondary: #a3311d;
    --inv-background: #fbf2dc;
    --inv-text: #1f2a1c;
    --inv-deep: #0d2b1a;
    --inv-leaf: #4e8a36;
    --inv-key: #83560e;
    --inv-radius: 14px;

    --sj-w: 460px;
    --sj-title: var(--inv-font-heading, 'Marcellus'), Georgia, serif;
    --sj-script: var(--inv-font-display, 'Parisienne'), cursive;
    --sj-sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --sj-deeper: color-mix(in srgb, var(--inv-deep) 80%, #000);
    --sj-paper: color-mix(in srgb, #fff 55%, var(--inv-background));
    --sj-padi: color-mix(in srgb, var(--inv-accent) 24%, var(--inv-background));
    --sj-brass: linear-gradient(100deg, #8a5d1c 0%, #d9b25e 28%, #fbe7ac 48%, #d4a548 66%, #7d5418 100%);
    --sj-brass-soft: linear-gradient(100deg, color-mix(in srgb, var(--inv-accent) 85%, #000) 0%, var(--inv-accent) 35%, color-mix(in srgb, var(--inv-accent) 45%, #fff) 52%, var(--inv-accent) 70%, color-mix(in srgb, var(--inv-accent) 80%, #000) 100%);

    /* masks (black = drawn): the bilik twill, a kujang silhouette */
    --sj-weave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg%3E%3Crect x='0' y='.5' width='8' height='3' rx='1'/%3E%3Crect x='4' y='4.5' width='8' height='3' rx='1'/%3E%3Crect x='8' y='8.5' width='8' height='3' rx='1'/%3E%3Crect x='12' y='12.5' width='4' height='3' rx='1'/%3E%3Crect x='0' y='12.5' width='4' height='3' rx='1'/%3E%3C/g%3E%3Cg opacity='.45'%3E%3Crect x='8.5' y='0' width='3' height='4'/%3E%3Crect x='12.5' y='0' width='3' height='4'/%3E%3Crect x='12.5' y='4' width='3' height='4'/%3E%3Crect x='.5' y='4' width='3' height='4'/%3E%3Crect x='.5' y='8' width='3' height='4'/%3E%3Crect x='4.5' y='8' width='3' height='4'/%3E%3Crect x='4.5' y='12' width='3' height='4'/%3E%3Crect x='8.5' y='12' width='3' height='4'/%3E%3C/g%3E%3C/svg%3E");
    --sj-kujang: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 240'%3E%3Cpath fill-rule='evenodd' d='M24 4C33 16 40 34 40 54 40 70 35 82 32 92 31 96 33 100 37 103 43 108 46 116 44 124 42 120 39 118 35 120 32 122 31 130 32 140L33 158H23C22 150 22 142 21 136L15 132 20 127C20 120 19 114 18 108L11 102 18 98C18 92 18 86 19 80L13 74 19 71C19 52 18 26 24 4ZM26.2 30a1.8 1.8 0 1 0 3.6 0 1.8 1.8 0 1 0-3.6 0ZM27.5 44a2 2 0 1 0 4 0 2 2 0 1 0-4 0ZM28 58a2 2 0 1 0 4 0 2 2 0 1 0-4 0ZM26.6 72a1.9 1.9 0 1 0 3.8 0 1.9 1.9 0 1 0-3.8 0ZM24.8 86a1.7 1.7 0 1 0 3.4 0 1.7 1.7 0 1 0-3.4 0Z'/%3E%3Crect x='18.5' y='156.5' width='19' height='10.5' rx='2.5'/%3E%3Cpath d='M21 169C19.5 186 17 204 22 222 25 230 34 232 37 224 40 206 38 186 35 169Z'/%3E%3C/svg%3E");

    /* context tokens: light by default, redefined for deep sections */
    --sj-bg: var(--inv-background);
    --sj-fg: var(--inv-text);
    --sj-head: var(--inv-primary);
    --sj-muted: color-mix(in srgb, var(--inv-text) 82%, transparent);
    --sj-gold: var(--inv-key);
    --sj-line: color-mix(in srgb, var(--inv-primary) 34%, transparent);
    --sj-line-soft: color-mix(in srgb, var(--inv-primary) 15%, transparent);
    --sj-btn-bg: var(--inv-primary);
    --sj-btn-fg: var(--inv-background);
    --sj-card-bg: var(--sj-paper);
    --sj-field-bg: #fff;

    /* SVG ornament colors (reach inside <use>) */
    --sj-thatch-hi: #4a3626;
    --sj-thatch-lo: #160d07;
    --sj-roof-line: #8a6a48;
    --sj-wall: color-mix(in srgb, var(--inv-accent) 70%, #6b4a1a);
    --sj-wall-hi: color-mix(in srgb, var(--inv-accent) 55%, #fff4d0);
    --sj-wall-lo: color-mix(in srgb, var(--inv-accent) 55%, #3b2408);
    --sj-padi-leaf: color-mix(in srgb, var(--inv-leaf) 85%, var(--inv-accent));
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--sj-deeper); scroll-behavior: smooth; }

body.sj-body {
    margin: 0;
    background: var(--sj-deeper);
    color: var(--inv-text);
    font: 400 1rem/1.7 var(--sj-sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }

.sj-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sj-icon { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- backdrop (wide screens) and the column ---------- */

.sj-backdrop {
    position: fixed; inset: 0; z-index: 0; overflow: hidden;
    background: radial-gradient(80% 70% at 50% 40%, var(--inv-primary), var(--sj-deeper));
}
.sj-backdrop::before {
    content: ''; position: absolute; inset: -60px;
    background: var(--sj-photo, none) center / cover no-repeat;
    filter: blur(30px) saturate(.8) brightness(.5);
    opacity: .4;
}
.sj-backdrop::after {
    content: ''; position: absolute; inset: 0;
    background: color-mix(in srgb, var(--inv-accent) 12%, transparent);
    -webkit-mask: var(--sj-weave) 0 0 / 22px 22px repeat;
    mask: var(--sj-weave) 0 0 / 22px 22px repeat;
}

.sj-page {
    position: relative; z-index: 1;
    width: min(100%, var(--sj-w)); min-height: 100vh; margin: 0 auto;
    background: var(--inv-background);
    overflow-x: clip;
}

@media (min-width: 520px) {
    .sj-page { box-shadow: 0 0 0 1px color-mix(in srgb, var(--inv-accent) 45%, transparent), 0 0 0 8px color-mix(in srgb, var(--inv-deep) 85%, transparent), 0 0 0 9px color-mix(in srgb, var(--inv-accent) 30%, transparent), 0 0 90px rgb(0 0 0 / .55); }
}
@media (max-width: 519px) {
    .sj-backdrop { display: none; }
}

.sj-preview {
    position: fixed; z-index: 60; top: 0; left: 0; right: 0;
    width: min(100%, var(--sj-w)); margin: 0 auto; padding: .35rem .75rem;
    background: var(--inv-accent); color: var(--inv-deep);
    font: 600 .68rem/1.3 var(--sj-sans); text-align: center; letter-spacing: .03em;
}

/* ---------- ornaments ---------- */

/* a woven bilik band between two brass hairlines */
.sj-band {
    position: relative; display: block; width: 100%; height: 16px;
    background: color-mix(in srgb, var(--inv-secondary) 92%, #000);
    border-block: 1.5px solid var(--inv-accent);
}
.sj-band::before {
    content: ''; position: absolute; inset: 0;
    background: color-mix(in srgb, var(--inv-accent) 85%, #fff);
    -webkit-mask: var(--sj-weave) 0 50% / 13px 13px repeat;
    mask: var(--sj-weave) 0 50% / 13px 13px repeat;
    opacity: .75;
}

/* the julang ngapak roof */
.sj-roof { display: block; overflow: visible; pointer-events: none; filter: drop-shadow(0 10px 12px rgb(0 0 0 / .35)); }

/* the crest: crossed kujang, padi wreath, monogram medallion */
.sj-crest { position: relative; width: 12rem; aspect-ratio: 1; margin: 0 auto; }
.sj-crest__art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 8px 10px rgb(0 0 0 / .35)); }
.sj-crest__blade { transform-box: view-box; transform-origin: 100px 150px; }
.sj-crest__mono {
    position: absolute; left: 50%; top: 75%; z-index: 1;
    width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%);
    display: flex; align-items: center; justify-content: center; gap: .3em;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--inv-primary) 85%, #fff), var(--inv-primary) 45%, var(--sj-deeper) 100%);
    box-shadow: 0 0 0 2px #e8c776, 0 0 0 4px color-mix(in srgb, var(--inv-deep) 90%, transparent), 0 0 0 5px color-mix(in srgb, var(--inv-accent) 70%, transparent), 0 10px 18px -6px rgb(0 0 0 / .6);
    font: 400 1.25rem/1 var(--sj-title); color: #f6dc97;
    container-type: inline-size;
}
.sj-crest__mono span:not(.sj-crest__dot) { font-size: clamp(.9rem, 34cqi, 2.2rem); }
.sj-crest__dot { width: 4px; height: 4px; background: var(--inv-accent); transform: rotate(45deg); flex: none; }
.sj-crest--big { width: min(66vw, 15rem); }
.sj-crest--small { width: 8.6rem; }

/* section label on a color block; a rule with a brass lozenge */
.sj-kicker {
    position: relative; z-index: 2;
    font: 600 .66rem/1.4 var(--sj-sans); letter-spacing: .34em; text-transform: uppercase;
    color: var(--sj-gold);
}
.sj-kicker > span {
    display: inline-block; padding: .38rem .55rem .38rem .9rem; border-radius: 2px;
    background: var(--inv-secondary); color: #fff6e2;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--inv-accent) 70%, transparent), 4px 4px 0 color-mix(in srgb, var(--inv-accent) 38%, transparent);
}
.sj-kicker--plain { color: #f1d38a; letter-spacing: .38em; }

.sj-rule {
    position: relative; display: block; width: 9.5rem; height: 10px; margin: 1rem auto 0;
    background: linear-gradient(90deg, transparent, var(--sj-gold) 30%, var(--sj-gold) 70%, transparent) 50% 50% / 100% 1px no-repeat;
}
.sj-rule i {
    position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; transform: translate(-50%, -50%) rotate(45deg);
    background: var(--sj-brass); box-shadow: 0 0 0 3px var(--sj-bg), -14px 14px 0 -2px var(--sj-gold), 14px -14px 0 -2px var(--sj-gold);
}
html.inv-anim [data-reveal] .sj-rule, html.inv-anim .is-revealed .sj-rule { transition: transform 1.1s cubic-bezier(.2, .8, .2, 1) .35s; }
html.inv-anim [data-reveal]:not(.is-revealed) .sj-rule { transform: scaleX(.2); }

/* ---------- buttons ---------- */

.inv-button {
    gap: .5rem; padding: .85rem 1.5rem; border-radius: 999px;
    background: var(--sj-btn-bg); color: var(--sj-btn-fg);
    font: 600 .74rem/1.2 var(--sj-sans); letter-spacing: .14em; text-transform: uppercase;
    box-shadow: 0 12px 22px -14px rgb(0 0 0 / .55), inset 0 -2px 0 rgb(0 0 0 / .14);
}
.inv-button--outline {
    background: transparent; color: var(--sj-head);
    box-shadow: inset 0 0 0 1.2px var(--sj-line);
}
.inv-button--outline:hover { background: color-mix(in srgb, var(--inv-accent) 14%, transparent); }
.inv-button .sj-icon { width: 1.15rem; height: 1.15rem; }

.sj-pill {
    display: inline-flex; align-items: center; gap: .4rem; margin-top: .7rem; padding: .45rem .95rem;
    border-radius: 999px; color: var(--sj-head); text-decoration: none;
    background: color-mix(in srgb, #fff 55%, transparent);
    box-shadow: inset 0 0 0 1px var(--sj-line);
    font: 500 .78rem/1 var(--sj-sans); letter-spacing: .02em;
    transition: background .25s ease;
}
.sj-pill:hover { background: color-mix(in srgb, var(--inv-accent) 18%, transparent); }

/* ---------- landscape layers ---------- */

.sj-hills { position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none; }
.sj-hills__layer { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sj-hills__sun { fill: color-mix(in srgb, var(--inv-accent) 60%, transparent); }
.sj-hills__peak { fill: var(--sj-hill-peak, color-mix(in srgb, var(--inv-primary) 45%, var(--inv-deep))); }
.sj-hills__far { fill: var(--sj-hill-far, color-mix(in srgb, var(--inv-primary) 70%, var(--inv-deep))); }
.sj-hills__ridge { fill: none; stroke: color-mix(in srgb, var(--inv-accent) 70%, transparent); stroke-width: 1.1; stroke-linecap: round; }
.sj-hills__mid { fill: var(--sj-hill-mid, var(--inv-primary)); }
.sj-hills__rows { fill: none; stroke: color-mix(in srgb, var(--inv-leaf) 70%, transparent); stroke-width: 1; stroke-dasharray: 2 4; stroke-linecap: round; }
.sj-hills__terrace--a { fill: var(--sj-hill-a, color-mix(in srgb, var(--inv-leaf) 75%, var(--inv-primary))); }
.sj-hills__terrace--b { fill: var(--sj-hill-b, color-mix(in srgb, var(--inv-leaf) 50%, var(--inv-primary))); }
.sj-hills__terrace--c { fill: var(--sj-hill-c, var(--inv-background)); }
.sj-hills__dike { fill: none; stroke: var(--inv-accent); stroke-width: 1.2; opacity: .85; }
.sj-hills__water { fill: none; stroke: color-mix(in srgb, #fff 45%, transparent); stroke-width: 1; stroke-linecap: round; }

/* ---------- cover ---------- */

.sj-cover {
    position: fixed; inset: 0; z-index: 30; isolation: isolate;
    width: min(100%, var(--sj-w)); margin: 0 auto;
    display: flex; overflow-x: hidden; overflow-y: auto;
    color: #fff8e8;
    background: var(--inv-deep);
    --sj-pad: 2.2rem;
}
.sj-cover__photo {
    position: absolute; z-index: -3; left: 0; right: 0; top: 0; height: min(133vw, 600px);
    background: var(--sj-photo, none) center 26% / cover no-repeat;
}
.sj-cover__photo::after {
    content: ''; position: absolute; inset: -1px 0;
    background:
        linear-gradient(180deg,
            color-mix(in srgb, var(--inv-deep) 55%, transparent) 0%,
            color-mix(in srgb, var(--inv-deep) 6%, transparent) 26%,
            color-mix(in srgb, var(--inv-deep) 10%, transparent) 50%,
            color-mix(in srgb, var(--inv-deep) 80%, transparent) 80%,
            var(--inv-deep) 100%);
}
.sj-cover--plain .sj-cover__photo {
    background:
        radial-gradient(60% 45% at 50% 46%, color-mix(in srgb, var(--inv-accent) 40%, transparent), transparent 70%),
        radial-gradient(90% 70% at 50% 20%, color-mix(in srgb, var(--inv-leaf) 55%, var(--inv-primary)), transparent 75%),
        var(--inv-primary);
}
.sj-hills--cover { z-index: -2; height: 96px; --sj-hill-c: var(--sj-deeper); }
.sj-hills--cover .sj-hills__sun { display: none; }
.sj-cover::after {
    content: ''; position: absolute; z-index: -2; left: 0; right: 0; bottom: 0; height: 170px;
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--inv-deep) 55%, transparent));
}

.sj-cover__inner {
    position: relative; z-index: 1;
    width: 100%; min-height: 100%; margin: 0;
    padding: var(--sj-pad) 1.25rem 3.3rem;
    display: flex; flex-direction: column; align-items: center;
    text-align: center;
}
.sj-crest--cover { width: min(42vw, 160px); margin-bottom: -.4rem; }
.sj-cover__text { width: 100%; margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: .4rem; }

.sj-cover__names {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 .45rem;
    font: 400 clamp(2.3rem, 10.5vw, 2.8rem)/1.1 var(--sj-script); color: #fff;
    text-shadow: 0 4px 22px rgb(0 0 0 / .5);
}
.sj-cover__amp, .sj-hero__amp { font: 400 .42em/1 var(--sj-title); color: #f1d38a; }
.sj-cover__date {
    display: flex; align-items: center; gap: .7rem;
    font: 400 .74rem/1.4 var(--sj-title); letter-spacing: .16em; text-transform: uppercase; color: #f6e2b0;
}
.sj-cover__date::before, .sj-cover__date::after { content: ''; width: 1.6rem; height: 1px; background: linear-gradient(90deg, transparent, var(--inv-accent)); }
.sj-cover__date::after { transform: scaleX(-1); }
.sj-cover__quote { max-width: 21rem; font: italic 400 .78rem/1.42 var(--sj-sans); color: color-mix(in srgb, #fff8e8 86%, transparent); }

.sj-guest {
    position: relative; width: min(100%, 18.5rem); margin-top: .15rem; padding: .5rem 1rem .55rem;
    border-radius: 4px;
    background: color-mix(in srgb, var(--inv-deep) 62%, transparent);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 55%, transparent), 0 16px 30px -20px rgb(0 0 0 / .7);
}
.sj-guest::before, .sj-guest::after {
    content: ''; position: absolute; top: -1px; width: 22px; height: 22px;
    border-top: 2px solid var(--inv-accent); border-left: 2px solid var(--inv-accent); left: -1px;
}
.sj-guest::after { left: auto; right: -1px; transform: scaleX(-1); }
.sj-guest__label { font: 600 .6rem/1.4 var(--sj-sans); letter-spacing: .32em; text-transform: uppercase; color: #f1d38a; }
.sj-guest__name { display: block; margin-top: .1rem; font: 400 1rem/1.3 var(--sj-title); color: #fff; overflow-wrap: anywhere; }
.sj-guest__note { margin-top: .2rem; font: 400 .68rem/1.4 var(--sj-sans); color: color-mix(in srgb, #fff8e8 80%, transparent); }

.sj-open {
    margin-top: .35rem;
    background: var(--sj-brass-soft); color: var(--inv-deep);
    box-shadow: 0 0 0 1px color-mix(in srgb, #fff 40%, transparent), 0 14px 26px -12px rgb(0 0 0 / .7), inset 0 -2px 0 rgb(0 0 0 / .18);
}

/* opening moment: the photo eases in while the kujang swing from upright into their cross */
html.inv-anim .sj-cover__photo { animation: sj-photo-in 1.8s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes sj-photo-in { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }
html.inv-anim .sj-crest--cover .sj-crest__blade { animation: sj-cross 1.3s cubic-bezier(.3, .9, .25, 1) .35s both; }
html.inv-anim .sj-crest--cover .sj-crest__blade--left { --sj-from: 27deg; }
html.inv-anim .sj-crest--cover .sj-crest__blade--right { --sj-from: -27deg; }
@keyframes sj-cross { from { opacity: 0; transform: translateY(14px) rotate(var(--sj-from)); } 30% { opacity: 1; } to { opacity: 1; transform: none; } }
html.inv-anim .sj-crest--cover .sj-crest__padi { animation: sj-fade 1s ease .8s both; }
html.inv-anim .sj-crest--cover .sj-crest__mono { animation: sj-seal 1s cubic-bezier(.3, 1.3, .5, 1) .9s both; }
@keyframes sj-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sj-seal { from { opacity: 0; transform: translate(-50%, -50%) scale(.6); } to { opacity: 1; transform: translate(-50%, -50%); } }
html.inv-anim .sj-hills--cover .sj-hills__layer { animation: sj-hill-up 1.4s cubic-bezier(.2, .8, .2, 1) both; }
html.inv-anim .sj-hills--cover .sj-hills__layer--1 { animation-delay: .2s; }
html.inv-anim .sj-hills--cover .sj-hills__layer--2 { animation-delay: .4s; }
html.inv-anim .sj-hills--cover .sj-hills__layer--3 { animation-delay: .6s; }
@keyframes sj-hill-up { from { transform: translateY(50%); opacity: 0; } to { transform: none; opacity: 1; } }

.sj-cover--leave { transition: transform 1s cubic-bezier(.7, 0, .3, 1), opacity 1s ease; }
.sj-cover--shown { transform: none; opacity: 1; }
.sj-cover--gone { transform: translateY(-100%); opacity: .3; }

/* ---------- hero: first screen after opening ---------- */

.sj-hero {
    position: relative; overflow: hidden; isolation: isolate;
    min-height: min(160vw, 700px);
    display: flex; align-items: flex-end;
    color: #fff8e8; text-align: center;
    background: var(--inv-deep);
}
.sj-hero__photo {
    position: absolute; z-index: -2; inset: -50px 0;
    background: var(--sj-photo, none) center 30% / cover no-repeat,
        radial-gradient(70% 50% at 50% 35%, color-mix(in srgb, var(--inv-accent) 35%, transparent), transparent 70%),
        linear-gradient(170deg, var(--inv-primary), var(--inv-deep));
}
.sj-hero::after {
    content: ''; position: absolute; z-index: -1; inset: 0;
    background:
        linear-gradient(180deg, rgb(0 0 0 / .25) 0%, transparent 22%, transparent 38%,
            color-mix(in srgb, var(--inv-deep) 62%, transparent) 60%,
            color-mix(in srgb, var(--inv-deep) 92%, transparent) 82%, var(--inv-deep) 100%);
}
.sj-hero__content { position: relative; z-index: 1; width: 100%; padding: 0 1.25rem 9.4rem; }
.sj-hero__names {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 .5rem;
    margin-top: .4rem;
    font: 400 clamp(2.9rem, 14vw, 3.8rem)/1.15 var(--sj-script); color: #fff;
    text-shadow: 0 4px 18px rgb(0 0 0 / .45);
}
.sj-hero__date { margin-top: .3rem; font: 400 .88rem/1.4 var(--sj-title); letter-spacing: .16em; text-transform: uppercase; color: #f6e2b0; }

.sj-hero__countdown { margin-top: 1.3rem; }
.sj-hero__countdown .inv-countdown, .sj-countdown__boxes .inv-countdown { gap: .5rem; justify-content: center; }
.sj-hero__countdown .inv-countdown__item, .sj-countdown__boxes .inv-countdown__item {
    position: relative; flex: 0 1 4.3rem; min-width: 0; padding: .7rem .2rem .6rem; border-radius: 3px;
    background: color-mix(in srgb, var(--inv-deep) 55%, transparent);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 65%, transparent), inset 0 3px 0 var(--inv-accent);
}
.sj-hero__countdown .inv-countdown__value, .sj-countdown__boxes .inv-countdown__value { font: 400 1.55rem/1.1 var(--sj-title); color: #f6dc97; }
.sj-hero__countdown .inv-countdown__label, .sj-countdown__boxes .inv-countdown__label { margin-top: .25rem; font: 600 .56rem/1.2 var(--sj-sans); letter-spacing: .16em; text-transform: uppercase; color: #fff8e8; }
.sj-hero__countdown .inv-countdown__done, .sj-countdown__boxes .inv-countdown__done { color: #fff8e8; font-style: italic; }
.sj-hills--hero { z-index: 0; height: 104px; --sj-hill-c: var(--inv-background); }
.sj-hills--hero .sj-hills__sun, .sj-hills--hero .sj-hills__layer--1 { display: none; }

/* ---------- intro: running photos, the big crest, the date (on bilik weave) ---------- */

.sj-intro {
    position: relative; isolation: isolate; padding: 1rem 0 0; text-align: center;
    background: radial-gradient(80% 50% at 50% 70%, color-mix(in srgb, var(--inv-accent) 22%, transparent), transparent 70%), var(--inv-background);
}
.sj-intro::before {
    content: ''; position: absolute; z-index: -1; inset: 0;
    background: color-mix(in srgb, var(--inv-accent) 22%, transparent);
    -webkit-mask: var(--sj-weave) 0 0 / 20px 20px repeat, linear-gradient(180deg, transparent, #000 40%, #000 70%, transparent);
    -webkit-mask-composite: source-in;
    mask: var(--sj-weave) 0 0 / 20px 20px repeat intersect, linear-gradient(180deg, transparent, #000 40%, #000 70%, transparent);
}
.sj-marquee { --inv-marquee-height: 9.5rem; }
.sj-marquee .inv-marquee__track img {
    border-radius: 3px; border: 3px solid #fff;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--inv-accent) 60%, transparent), 0 10px 20px -14px rgb(0 0 0 / .5);
}
.sj-intro__crest { margin: 2.4rem auto .6rem; }
.sj-intro__date { padding-bottom: 2.6rem; font: 400 1rem/1.4 var(--sj-title); letter-spacing: .42em; color: var(--inv-key); }

/* ---------- sections ---------- */

.sj-main { position: relative; background: var(--inv-background); }

.sj-section {
    position: relative; overflow: hidden; isolation: isolate;
    padding: 4.6rem 1.4rem;
    text-align: center; color: var(--sj-fg);
    background: var(--sj-bg);
}
.sj-section--light {
    background:
        radial-gradient(90% 40% at 50% 0%, color-mix(in srgb, var(--inv-accent) 18%, transparent), transparent 70%),
        var(--inv-background);
}
.sj-section--padi {
    --sj-bg: var(--sj-padi);
    background:
        radial-gradient(90% 50% at 100% 0%, color-mix(in srgb, #fff 45%, transparent), transparent 70%),
        var(--sj-padi);
}
/* a woven bilik band along the top edge */
.sj-section--woven { padding-top: 5.4rem; }
.sj-section--woven::before {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 18px; z-index: 0;
    background:
        linear-gradient(var(--inv-accent), var(--inv-accent)) 0 100% / 100% 1.5px no-repeat,
        color-mix(in srgb, var(--inv-secondary) 92%, #000);
}
.sj-section--woven::after {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 16px; z-index: 0;
    background: color-mix(in srgb, var(--inv-accent) 80%, #fff);
    -webkit-mask: var(--sj-weave) 0 50% / 14px 14px repeat; mask: var(--sj-weave) 0 50% / 14px 14px repeat;
    opacity: .7;
}
.sj-section--deep {
    --sj-bg: var(--inv-deep);
    --sj-fg: #fff8e8;
    --sj-head: #fff8e8;
    --sj-muted: color-mix(in srgb, #fff8e8 85%, transparent);
    --sj-gold: var(--inv-accent);
    --sj-line: color-mix(in srgb, var(--inv-accent) 55%, transparent);
    --sj-line-soft: color-mix(in srgb, var(--inv-accent) 24%, transparent);
    --sj-btn-bg: var(--inv-accent);
    --sj-btn-fg: var(--inv-deep);
    --sj-card-bg: color-mix(in srgb, var(--inv-deep) 55%, transparent);
    background:
        radial-gradient(110% 55% at 50% 0%, color-mix(in srgb, var(--inv-primary) 85%, transparent), transparent 72%),
        var(--inv-deep);
}
.sj-section--deep .sj-kicker > span { background: var(--sj-brass-soft); color: var(--inv-deep); box-shadow: 0 0 0 1px color-mix(in srgb, #fff 30%, transparent), 4px 4px 0 color-mix(in srgb, var(--inv-secondary) 75%, transparent); }
.sj-section > * { position: relative; z-index: 1; }
.sj-section > .sj-photobg { position: absolute; z-index: -1; }

/* photo-gradient background: a client photo under a deep green veil */
.sj-photobg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--inv-deep); }
.sj-photobg__img { position: absolute; inset: -48px 0; background: var(--sj-photo) center / cover no-repeat; --inv-parallax: 36px; filter: saturate(.9); }
.sj-photobg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--inv-deep) 80%, transparent) 0%,
        color-mix(in srgb, var(--inv-deep) 62%, transparent) 40%,
        color-mix(in srgb, var(--inv-deep) 82%, transparent) 76%,
        var(--inv-deep) 100%);
}
.sj-photobg--plain::after {
    background:
        radial-gradient(90% 55% at 50% 0%, color-mix(in srgb, var(--inv-accent) 26%, var(--inv-primary)), transparent 72%),
        linear-gradient(180deg, var(--inv-primary), var(--inv-deep));
}

.sj-heading { margin-bottom: 2.3rem; }
.sj-heading__title { margin-top: .9rem; font: 400 clamp(1.7rem, 7.4vw, 2.1rem)/1.2 var(--sj-title); color: var(--sj-head); }

.sj-lead { max-width: 23rem; margin: -.8rem auto 1.6rem; color: var(--sj-muted); font-size: .95rem; }

.sj-card {
    position: relative; overflow: hidden;
    background: var(--sj-card-bg);
    border: 1px solid var(--sj-line-soft); border-radius: 6px;
    box-shadow: 0 24px 44px -32px rgb(0 0 0 / .55);
}

/* opening: deep green on a faint photo */
.sj-opening { padding-top: 4.2rem; }
.sj-arabic { margin-top: 1.4rem; font: 400 1.85rem/1.8 'Amiri', serif; color: #f1d38a; }
.sj-opening__greeting { margin-top: .5rem; font: 400 1.1rem/1.5 var(--sj-title); color: var(--sj-head); }
.sj-opening__message { max-width: 24rem; margin: .9rem auto 0; color: var(--sj-muted); }
.sj-quote {
    position: relative; max-width: 22rem; margin: 2.6rem auto 0; padding: 2.4rem 1.7rem 1.7rem;
    background: color-mix(in srgb, var(--inv-deep) 58%, transparent);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    border-radius: 4px;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 45%, transparent);
    outline: 1px solid color-mix(in srgb, var(--inv-accent) 30%, transparent); outline-offset: 5px;
}
.sj-quote > .sj-band { position: absolute; top: 0; left: 0; right: 0; border-top: 0; }
.sj-quote__angklung { position: absolute; z-index: 1; bottom: -1.4rem; width: 2.6rem; height: 3.9rem; color: var(--inv-accent); overflow: visible; }
.sj-quote__angklung--left { left: -1.1rem; transform: rotate(-8deg); }
.sj-quote__angklung--right { right: -1.1rem; transform: scaleX(-1) rotate(-8deg); }
.sj-quote blockquote { margin: 0; font: italic 400 .98rem/1.7 var(--sj-sans); color: var(--sj-fg); }
.sj-quote figcaption { margin-top: .9rem; font: 600 .66rem/1.4 var(--sj-sans); letter-spacing: .24em; text-transform: uppercase; color: var(--inv-accent); }

/* couple: photos under a small roof with a color block behind */
.sj-couple { padding-bottom: 4rem; }
.sj-person { position: relative; max-width: 23rem; margin: 0 auto; text-align: left; }
.sj-person--bride { text-align: right; }
.sj-person__frame { position: relative; width: min(68%, 15rem); margin-right: auto; }
.sj-person--bride .sj-person__frame { margin-left: auto; margin-right: 0; }
.sj-person__frame::before {
    content: ''; position: absolute; z-index: -1; left: 16%; right: -16%; top: 34%; bottom: -1.1rem;
    background: var(--inv-secondary);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 55%, transparent);
}
.sj-person__frame::after {
    content: ''; position: absolute; z-index: -1; left: 16%; right: -16%; top: 34%; bottom: -1.1rem;
    background: color-mix(in srgb, var(--inv-accent) 60%, #fff);
    -webkit-mask: var(--sj-weave) 0 0 / 14px 14px repeat; mask: var(--sj-weave) 0 0 / 14px 14px repeat;
    opacity: .22;
}
.sj-person--bride .sj-person__frame::before, .sj-person--bride .sj-person__frame::after { left: -16%; right: 16%; }
.sj-person--bride .sj-person__frame::before { background: color-mix(in srgb, var(--inv-primary) 92%, #000); }
.sj-person__roof { position: relative; z-index: 2; width: 124%; margin: 0 0 -15% -12%; height: auto; }
.sj-person__box {
    position: relative; aspect-ratio: 4 / 5; overflow: hidden;
    border: 3px solid #fff; outline: 1px solid color-mix(in srgb, var(--inv-accent) 80%, transparent); outline-offset: -8px;
    box-shadow: 0 22px 34px -18px rgb(0 0 0 / .55);
    background: radial-gradient(80% 60% at 50% 30%, color-mix(in srgb, var(--inv-accent) 30%, transparent), transparent 70%), linear-gradient(160deg, var(--inv-primary), var(--inv-deep));
}
.sj-person__photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.sj-person__photo--empty { display: grid; place-items: center; font: 400 4rem/1 var(--sj-script); color: #fff; }
.sj-person__text { margin-top: 2.2rem; }
.sj-person__role { font: 600 .62rem/1.4 var(--sj-sans); letter-spacing: .3em; text-transform: uppercase; color: var(--sj-gold); }
.sj-person__nick {
    display: inline; padding: 0 .2em;
    font: 400 2.7rem/1.25 var(--sj-script); color: var(--inv-primary);
    background: linear-gradient(transparent 58%, color-mix(in srgb, var(--inv-accent) 34%, transparent) 58% 90%, transparent 90%);
}
.sj-person__name { margin-top: .25rem; font: 400 1.05rem/1.35 var(--sj-title); color: var(--sj-fg); overflow-wrap: anywhere; }
.sj-person__parents { margin-top: .45rem; font-size: .85rem; line-height: 1.5; color: var(--sj-muted); overflow-wrap: anywhere; }
.sj-person__parents strong { color: var(--sj-fg); font-weight: 600; }

.sj-amp { display: flex; align-items: center; justify-content: center; gap: .6rem; margin: 2.4rem 0 2.2rem; }
.sj-amp__line { flex: 0 1 4rem; height: 1px; background: linear-gradient(90deg, transparent, var(--inv-accent)); }
.sj-amp__line:last-child { transform: scaleX(-1); }
.sj-amp__sign { font: 400 3.2rem/1 var(--sj-script); color: var(--inv-secondary); }
.sj-amp__kujang { width: 1.15rem; height: 3.9rem; overflow: visible; transform: rotate(-16deg); filter: drop-shadow(0 4px 4px rgb(0 0 0 / .2)); }
.sj-amp__kujang--end { transform: scaleX(-1) rotate(-16deg); }

/* countdown: deep over a photo, paper calendar, landscape at the foot */
.sj-countdown { padding-bottom: 8.6rem; }
.sj-cal {
    --inv-cal-bg: var(--sj-paper);
    --inv-cal-text: var(--inv-text);
    --inv-cal-mark: var(--inv-secondary);
    position: relative; max-width: 20rem; margin: 0 auto 1.6rem; border-radius: 4px; text-align: left;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--inv-accent) 60%, transparent), 0 0 0 5px color-mix(in srgb, var(--inv-deep) 60%, transparent), 0 0 0 6px color-mix(in srgb, var(--inv-accent) 35%, transparent), 0 26px 40px -24px rgb(0 0 0 / .7);
}
.sj-cal .inv-cal__month { font: 400 1.6rem/1.1 var(--sj-title); color: var(--inv-primary); }
.sj-cal .inv-cal__year { color: var(--inv-key); }
.sj-cal .inv-cal__note { font: 400 .9rem/1.4 var(--sj-title); color: var(--inv-primary); }
.inv-countdown__actions { margin-top: 1.4rem; }
.inv-countdown__actions .inv-button { padding: .7rem 1rem; font-size: .6rem; letter-spacing: .08em; }
.sj-section--deep .inv-countdown__actions .inv-button--outline { color: #fff8e8; background: color-mix(in srgb, var(--inv-deep) 45%, transparent); }

.sj-section > .sj-hills { position: absolute; z-index: 0; }
.sj-hills--band { height: 118px; --sj-hill-c: var(--inv-background); }
.sj-hills--band .sj-hills__sun { display: none; }

/* events: a padi wash behind the cards */
.sj-events::before {
    content: ''; position: absolute; z-index: 0; left: 0; right: 0; top: 11rem; bottom: 2.4rem;
    background: var(--sj-padi);
    clip-path: polygon(0 3rem, 100% 0, 100% calc(100% - 3rem), 0 100%);
}
.sj-events__list { display: grid; gap: 2.4rem; max-width: 24rem; margin: 0 auto; }
.sj-event {
    display: grid; grid-template-columns: minmax(0, 1fr) 3.3rem;
    grid-template-areas: "photo photo" "panel name";
    overflow: hidden; border-radius: 9rem 6px 6px 6px;
    background: var(--sj-paper);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--inv-accent) 45%, transparent), 0 28px 44px -30px rgb(0 0 0 / .6);
}
.sj-event__photo {
    grid-area: photo; position: relative; aspect-ratio: 4 / 3.1;
    background: var(--sj-photo, none) center 30% / cover no-repeat, radial-gradient(70% 70% at 70% 30%, color-mix(in srgb, var(--inv-accent) 28%, transparent), transparent 70%), linear-gradient(160deg, var(--inv-primary), var(--inv-deep));
}
.sj-event__num {
    position: absolute; left: 1rem; bottom: -1.3rem; z-index: 1;
    display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: 50%;
    background: var(--inv-primary); color: #f6dc97;
    font: 400 .9rem/1 var(--sj-title); letter-spacing: .04em;
    box-shadow: 0 0 0 3px var(--sj-paper), 0 0 0 4.5px var(--inv-accent);
}
.sj-event__panel { grid-area: panel; min-width: 0; padding: 1.9rem 1rem 1.6rem; display: flex; flex-direction: column; align-items: center; gap: .55rem; }
.sj-event__row { display: flex; align-items: flex-start; justify-content: center; gap: .45rem; }
.sj-event__row .sj-icon { margin-top: .2rem; color: var(--inv-secondary); }
.sj-event__date { font: 400 1.04rem/1.4 var(--sj-title); color: var(--inv-text); }
.sj-event__time { font: 600 .9rem/1.4 var(--sj-sans); color: var(--inv-key); }
.sj-event__place { margin-top: .4rem; }
.sj-event__place .sj-icon { display: block; width: 1.4rem; height: 1.4rem; margin: 0 auto .25rem; color: var(--inv-secondary); }
.sj-event__venue { font: 600 1rem/1.4 var(--sj-sans); color: var(--inv-text); overflow-wrap: anywhere; }
.sj-event__address { margin-top: .15rem; font-size: .86rem; line-height: 1.5; color: color-mix(in srgb, var(--inv-text) 82%, transparent); overflow-wrap: anywhere; }
.sj-event__dress { font-size: .84rem; color: color-mix(in srgb, var(--inv-text) 82%, transparent); }
.sj-event .inv-maps { margin-top: .5rem; }
.sj-event .inv-maps .inv-button { padding: .7rem 1.2rem; font-size: .64rem; }

/* the name strip: red, woven like bilik, brass edges */
.sj-event__name {
    grid-area: name; position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; padding: 1rem 0;
    background: var(--inv-secondary);
    box-shadow: inset 2px 0 0 var(--inv-accent);
}
.sj-event__name::before {
    content: ''; position: absolute; z-index: -1; inset: 0;
    background: color-mix(in srgb, var(--inv-accent) 70%, #fff);
    -webkit-mask: var(--sj-weave) 0 0 / 13px 13px repeat; mask: var(--sj-weave) 0 0 / 13px 13px repeat;
    opacity: .28;
}
.sj-event__name span {
    writing-mode: vertical-rl;
    font: 400 .92rem/1 var(--sj-title); letter-spacing: .2em; text-transform: uppercase;
    color: var(--inv-deep);
    padding: .55rem .38rem; border-radius: 2px;
    background: var(--sj-brass-soft);
    box-shadow: 0 6px 12px -6px rgb(0 0 0 / .5);
}

/* love story: deep, brass line and rings, padi in the upper corners */
.sj-story__padi { position: absolute; z-index: 0; top: -.6rem; width: 3.4rem; height: 11rem; opacity: .75; overflow: visible; }
.sj-story__padi--left { left: .4rem; transform: rotate(-14deg); }
.sj-story__padi--right { right: .4rem; transform: scaleX(-1) rotate(-14deg); }
.sj-story__list { position: relative; max-width: 25rem; margin: 0 auto; padding: 0; list-style: none; }
.sj-story__list::before {
    content: ''; position: absolute; left: 50%; top: .8rem; bottom: 0; width: 1.5px; transform: translateX(-50%);
    background: linear-gradient(180deg, var(--inv-accent), var(--inv-accent) 85%, transparent);
}
.sj-moment {
    position: relative;
    display: grid; grid-template-columns: minmax(0, 1fr) 2.4rem minmax(0, 1fr); column-gap: .6rem; align-items: start;
    grid-template-areas: "text num meta";
}
.sj-moment + .sj-moment { margin-top: 2.4rem; }
.sj-moment.is-flip { grid-template-areas: "meta num text"; }
.sj-moment__num {
    grid-area: num; justify-self: center;
    display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
    background: var(--inv-deep); box-shadow: inset 0 0 0 1.5px var(--inv-accent), 0 0 0 4px var(--inv-deep);
    font: 400 .8rem/1 var(--sj-title); color: #f6dc97;
}
.sj-moment__text { grid-area: text; min-width: 0; text-align: right; }
.is-flip .sj-moment__text { text-align: left; }
.sj-moment__title { font: 400 1.04rem/1.35 var(--sj-title); color: var(--sj-head); overflow-wrap: anywhere; padding-top: .3rem; }
.sj-moment__rule { display: block; width: 70%; height: 2px; margin: .45rem 0 .5rem auto; background: var(--inv-secondary); box-shadow: 0 2px 0 color-mix(in srgb, var(--inv-accent) 55%, transparent); }
.is-flip .sj-moment__rule { margin-left: 0; margin-right: auto; }
.sj-moment__story { font-size: .85rem; line-height: 1.55; color: var(--sj-muted); overflow-wrap: anywhere; }
.sj-moment__meta { grid-area: meta; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.is-flip .sj-moment__meta { align-items: flex-end; }
.sj-moment__date { font: 400 1.6rem/1.15 var(--sj-script); color: #f1d38a; overflow-wrap: anywhere; text-align: left; }
.is-flip .sj-moment__date { text-align: right; }
.sj-moment__photo {
    display: block; width: min(7.4rem, 100%); aspect-ratio: 1; object-fit: cover; border-radius: 50%;
    border: 3px solid var(--inv-deep); box-shadow: 0 0 0 1.5px var(--inv-accent), 0 14px 24px -12px rgb(0 0 0 / .6);
}

/* gallery: paper frame with brass corners */
.sj-gallery__frame {
    position: relative; max-width: 24rem; margin: 0 auto; padding: 1rem .8rem .8rem;
    border-radius: 4px; background: var(--sj-paper);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--inv-accent) 45%, transparent), 0 26px 44px -30px rgb(0 0 0 / .55);
}
.sj-gallery__frame::before, .sj-gallery__frame::after {
    content: ''; position: absolute; z-index: 2; width: 26px; height: 26px; pointer-events: none;
    border: 2px solid var(--inv-accent); border-right: 0; border-bottom: 0; left: -6px; top: -6px;
}
.sj-gallery__frame::after { left: auto; top: auto; right: -6px; bottom: -6px; transform: rotate(180deg); }
.sj-gallery__frame .inv-gallery-slider { grid-template-columns: minmax(0, 1fr); }
.inv-gallery-slider__thumb { border-radius: 3px; }
.inv-gallery-slider__thumb.is-active { border-color: var(--inv-secondary); }
.inv-gallery-slider__arrow { background: var(--inv-primary); color: #f6dc97; }
.inv-gallery-slider__stage { border-radius: 3px; }
.inv-gallery-slider__count { background: color-mix(in srgb, var(--inv-deep) 70%, transparent); }

/* live streaming */
.sj-live__card { max-width: 23rem; margin: 0 auto; padding: 1.7rem 1.4rem; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sj-live__badge {
    display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; border-radius: 999px;
    background: #c43c2c; color: #fff; font: 600 .66rem/1 var(--sj-sans); letter-spacing: .2em;
}
.sj-live__badge span { width: .45rem; height: .45rem; border-radius: 50%; background: #ffd9d2; animation: sj-blink 1.4s ease-in-out infinite; }
@keyframes sj-blink { 50% { opacity: .25; } }
.sj-live__text { margin: 1rem 0 .4rem; }
.sj-live__note { margin-bottom: 1rem; color: var(--sj-gold); }
.sj-live__card .inv-button { margin-top: .5rem; }

/* gift: deep green cards with a brass chip and a kujang watermark */
.inv-gift { display: grid; gap: .9rem; max-width: 23rem; margin: 0 auto; }
.inv-gift__accounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.inv-gift__account:last-child:nth-child(odd) { grid-column: 1 / -1; }
.inv-gift__account {
    position: relative; overflow: hidden; isolation: isolate; min-width: 0;
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: .45rem;
    grid-template-areas: "chip bank" "number number" "holder holder" "button button";
    margin: 0; padding: .85rem .8rem .9rem;
    border-radius: 8px; text-align: left; color: #fff8e8;
    background:
        linear-gradient(118deg, transparent 24%, rgb(255 255 255 / .1) 38%, transparent 52%),
        radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--inv-leaf) 45%, transparent), transparent 66%),
        linear-gradient(150deg, var(--inv-primary), var(--inv-deep) 78%);
    box-shadow: 0 18px 30px -18px rgb(0 0 0 / .65), inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 50%, transparent);
}
.inv-gift__account + .inv-gift__account { margin-top: 0; }
.inv-gift__account::before {
    content: ''; grid-area: chip; width: 1.75rem; height: 1.3rem; border-radius: .3rem;
    background:
        linear-gradient(90deg, transparent 31%, rgb(0 0 0 / .25) 31% 33%, transparent 33% 67%, rgb(0 0 0 / .25) 67% 69%, transparent 69%),
        linear-gradient(0deg, transparent 47%, rgb(0 0 0 / .25) 47% 53%, transparent 53%),
        linear-gradient(135deg, #f8e7b8, #d4a13c 55%, #f2d58c);
    box-shadow: inset 0 0 0 1px rgb(0 0 0 / .2);
}
.inv-gift__account::after {
    content: ''; position: absolute; z-index: -1; right: .4rem; bottom: -2rem; width: 2.4rem; height: 9rem;
    background: color-mix(in srgb, var(--inv-accent) 32%, transparent);
    -webkit-mask: var(--sj-kujang) center / contain no-repeat;
    mask: var(--sj-kujang) center / contain no-repeat;
    transform: rotate(18deg);
}
.inv-gift__bank {
    grid-area: bank; justify-self: end; min-width: 0; max-width: 100%; margin: 0;
    font: 600 .66rem/1.2 var(--sj-sans); letter-spacing: .06em; text-transform: uppercase; text-align: right; overflow-wrap: anywhere;
}
.inv-gift__logo { height: 1.5rem; max-width: 100%; padding: .2rem .45rem; border-radius: .35rem; }
.inv-gift__logo img { max-width: 4.6rem; }
.inv-gift__number {
    grid-area: number; margin: .8rem 0 .15rem;
    font: 600 .98rem/1.25 var(--sj-sans); letter-spacing: .06em; font-variant-numeric: tabular-nums; color: #fff;
    overflow-wrap: anywhere;
}
.inv-gift__holder { grid-area: holder; margin: 0; font: 600 .58rem/1.35 var(--sj-sans); letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, #fff8e8 85%, transparent); overflow-wrap: anywhere; }
.inv-gift__account .inv-button {
    grid-area: button; justify-self: start; margin-top: .65rem; padding: .38rem .75rem; border-radius: 999px;
    font-size: .6rem; letter-spacing: .06em; color: #f6dc97; background: rgb(255 255 255 / .06);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 60%, transparent);
}

/* the gift address stays a paper card */
.inv-gift__account.inv-gift__address {
    display: block; padding: 1.5rem 1.3rem; text-align: center; color: var(--inv-text);
    background: var(--sj-paper);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 45%, transparent), 0 20px 40px -30px rgb(0 0 0 / .6);
}
.inv-gift__address::before { content: none; }
.inv-gift__address::after { background: color-mix(in srgb, var(--inv-accent) 22%, transparent); }
.inv-gift__address .inv-gift__bank { justify-self: auto; text-align: center; font: 600 .66rem/1.4 var(--sj-sans); letter-spacing: .3em; color: var(--inv-key); }
.inv-gift__address .inv-gift__holder { margin: .6rem 0 .2rem; font: 400 1.05rem/1.35 var(--sj-title); letter-spacing: 0; text-transform: none; color: var(--inv-primary); }
.inv-gift__address p:not([class]) { color: color-mix(in srgb, var(--inv-text) 82%, transparent); }
.inv-gift__address .inv-button { margin-top: 1rem; color: var(--inv-primary); background: transparent; box-shadow: inset 0 0 0 1px var(--sj-line); }

/* rsvp & wishes forms: always on paper, also inside deep sections */
.sj-form {
    --sj-fg: var(--inv-text);
    --sj-head: var(--inv-primary);
    --sj-muted: color-mix(in srgb, var(--inv-text) 82%, transparent);
    --sj-gold: var(--inv-key);
    --sj-line: color-mix(in srgb, var(--inv-primary) 34%, transparent);
    --sj-line-soft: color-mix(in srgb, var(--inv-primary) 15%, transparent);
    --sj-btn-bg: var(--inv-primary);
    --sj-btn-fg: var(--inv-background);
    --sj-field-bg: #fff;
    max-width: 24rem; margin: 0 auto; padding: 0 1.25rem 1.5rem; text-align: left;
    background: var(--sj-paper); color: var(--inv-text);
}
.sj-section--deep .sj-form { box-shadow: 0 0 0 1px color-mix(in srgb, var(--inv-accent) 55%, transparent), 0 30px 50px -30px rgb(0 0 0 / .8); }
.sj-form > .sj-band { width: auto; margin: 0 -1.25rem 1.4rem; border-top: 0; }
.sj-section--deep .sj-lead { color: var(--sj-muted); }
.inv-form { gap: .9rem; }
.inv-form label, .inv-form__choices legend { font: 500 .8rem/1.4 var(--sj-sans); letter-spacing: .03em; color: var(--sj-muted); }
.inv-form input:not([type=radio]):not([type=checkbox]), .inv-form select, .inv-form textarea {
    padding: .7rem .85rem; border-radius: 6px;
    border: 1px solid var(--sj-line);
    background: var(--sj-field-bg); color: var(--sj-fg);
    font: 400 1rem/1.4 var(--sj-sans);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.inv-form input::placeholder, .inv-form textarea::placeholder { color: color-mix(in srgb, var(--sj-fg) 50%, transparent); }
.inv-form input:focus, .inv-form select:focus, .inv-form textarea:focus {
    outline: none; border-color: var(--inv-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--inv-accent) 35%, transparent);
}
.inv-form input[type=radio], .inv-form input[type=checkbox] { accent-color: var(--inv-primary); }
.inv-form__choices label { color: var(--sj-fg); font-size: .92rem; }
.inv-form__notice { color: var(--sj-fg); background: color-mix(in srgb, var(--inv-accent) 18%, transparent); border: 1px solid var(--sj-line-soft); }
.inv-form .inv-button { justify-self: stretch; margin-top: .3rem; }
.inv-rsvp__deadline { font-style: italic; color: var(--inv-key); }

/* wishes: compact cards in a scroll box of about three */
.inv-wishes { --inv-wishes-height: 20rem; }
.inv-wishes__list { gap: .6rem; margin-top: 1.4rem; }
.inv-wishes:not(.inv-wishes--paged) .inv-wishes__list {
    padding: .5rem .45rem .5rem .5rem; border-radius: 6px;
    background: var(--sj-padi);
    box-shadow: inset 0 0 0 1px var(--sj-line-soft), inset 0 -14px 16px -14px rgb(0 0 0 / .25);
    scrollbar-color: color-mix(in srgb, var(--inv-primary) 45%, transparent) transparent;
}
.inv-wishes__empty { text-align: center; font-style: italic; }
.inv-wish {
    padding: .65rem .8rem; border-radius: 4px;
    background: #fff;
    border: 1px solid var(--sj-line-soft); border-left: 3px solid var(--inv-secondary);
}
.inv-wish__name { font: 400 .94rem/1.35 var(--sj-title); color: var(--inv-primary); }
.inv-wish__message { font-size: .88rem; line-height: 1.5; color: var(--inv-text); }
.inv-wish__time { margin-top: .25rem; font: 400 .7rem/1.3 var(--sj-sans); letter-spacing: .04em; color: color-mix(in srgb, var(--inv-text) 75%, transparent); }
.inv-wish__reply { margin-top: .5rem; padding: .45rem .65rem; background: color-mix(in srgb, var(--inv-accent) 16%, transparent); }
.inv-wish__reply-text { font-size: .85rem; }
.inv-wishes__page-button { color: var(--inv-primary); }

/* closing: the photo full-bleed under the roof, fading into green; crest, thanks, names, terraces */
.sj-closing { padding: 0 1.4rem 4.4rem; }
.sj-closing__photo {
    position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: min(96vw, 400px);
    background: var(--sj-photo, none) center 30% / cover no-repeat;
}
.sj-closing__photo::after {
    content: ''; position: absolute; inset: -1px 0;
    background: linear-gradient(180deg, color-mix(in srgb, var(--inv-deep) 45%, transparent) 0%, transparent 28%, color-mix(in srgb, var(--inv-deep) 35%, transparent) 55%, color-mix(in srgb, var(--inv-deep) 85%, transparent) 80%, var(--inv-deep) 100%);
}
.sj-closing--plain .sj-closing__photo {
    background: radial-gradient(60% 60% at 50% 70%, color-mix(in srgb, var(--inv-accent) 30%, transparent), transparent 70%), linear-gradient(180deg, var(--inv-primary), var(--inv-deep));
}
.sj-closing__body { position: relative; z-index: 2; padding-top: calc(min(96vw, 400px) - 7.5rem); }
.sj-closing__crest { margin-bottom: .5rem; }
.sj-closing .sj-crest--small { width: 6.6rem; }
.sj-closing__thanks { margin-top: .6rem; font: 400 clamp(1.6rem, 7vw, 1.95rem)/1.2 var(--sj-title); color: var(--sj-head); }
.sj-closing__message { max-width: 22rem; margin: .6rem auto 0; font-size: .85rem; line-height: 1.55; color: var(--sj-muted); }
.sj-closing .sj-rule { margin-top: 1rem; }
.sj-closing__sign { margin-top: .8rem; font: 600 .6rem/1.4 var(--sj-sans); letter-spacing: .3em; text-transform: uppercase; color: var(--inv-accent); }
.sj-closing__names { margin-top: .15rem; font: 400 clamp(2.1rem, 9.5vw, 2.6rem)/1.2 var(--sj-script); color: #fff; }
.sj-closing__names span { font: 400 .4em/1 var(--sj-title); color: #f1d38a; }
.sj-hills--closing { height: 84px; --sj-hill-c: var(--sj-deeper); }
.sj-saung { display: block; overflow: visible; pointer-events: none; filter: drop-shadow(0 6px 8px rgb(0 0 0 / .35)); }
.sj-saung--closing { position: absolute; z-index: 1; right: 5%; bottom: 34px; width: 92px; height: auto; }
.sj-saung--scene { width: 100%; height: auto; }
.sj-hills--closing .sj-hills__sun { display: none; }

/* landscape layers rise as they scroll into view (finished drawing without support) */
@supports (animation-timeline: view()) {
    html.inv-anim .sj-section > .sj-hills .sj-hills__layer { animation: sj-hill-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    html.inv-anim .sj-section > .sj-hills .sj-hills__layer--1 { --sj-rise: 46%; }
    html.inv-anim .sj-section > .sj-hills .sj-hills__layer--2 { --sj-rise: 28%; }
    html.inv-anim .sj-section > .sj-hills .sj-hills__layer--3 { --sj-rise: 10%; }
    @keyframes sj-hill-rise { from { transform: translateY(var(--sj-rise, 20%)); } to { transform: none; } }
}

/* the angklung and the padi sway gently when they come into view */
html.inv-anim .sj-quote__angklung, html.inv-anim .sj-story__padi { transition: transform 1.6s cubic-bezier(.2, .8, .2, 1) .3s; }
html.inv-anim [data-reveal]:not(.is-revealed) .sj-quote__angklung--left { transform: rotate(-20deg) translateY(10px); }
html.inv-anim [data-reveal]:not(.is-revealed) .sj-quote__angklung--right { transform: scaleX(-1) rotate(-20deg) translateY(10px); }

/* ---------- branding at the foot ---------- */

.sj-branding { position: relative; z-index: 1; margin: 0; color: #fff8e8; font-family: var(--sj-sans); background: var(--sj-deeper); opacity: 1; }
.sj-branding a { color: var(--inv-accent); }

/* ---------- floating UI: icon menu, QR tab, back-to-top, music — kept inside the column ---------- */

.inv-nav {
    --inv-nav-bg: color-mix(in srgb, var(--inv-background) 92%, transparent);
    --inv-nav-text: color-mix(in srgb, var(--inv-primary) 82%, transparent);
    --inv-nav-active: var(--inv-primary);
    border-color: color-mix(in srgb, var(--inv-accent) 60%, transparent);
    box-shadow: 0 14px 30px -12px rgb(0 0 0 / .45), inset 0 -2px 0 color-mix(in srgb, var(--inv-accent) 60%, transparent);
    font-family: var(--sj-sans);
}
.inv-nav--icons .inv-nav__item.is-active {
    color: #f6dc97;
    box-shadow: 0 0 0 2px var(--inv-background), 0 0 0 3.5px var(--inv-accent), 0 10px 18px -6px rgb(0 0 0 / .5);
}

.sj-body .inv-music { right: max(1rem, calc(50vw - var(--sj-w) / 2 + 1rem)); }
.sj-body .inv-to-top { left: max(1rem, calc(50vw - var(--sj-w) / 2 + 1rem)); }
.sj-body .inv-qr-tab { right: max(0px, calc(50vw - var(--sj-w) / 2)); }

.inv-music__button { background: var(--inv-primary); color: #f6dc97; box-shadow: 0 8px 22px -8px rgb(0 0 0 / .6), 0 0 0 3px color-mix(in srgb, var(--inv-accent) 70%, transparent); }
.inv-autoscroll { font-family: var(--sj-sans); color: var(--inv-primary); border-color: color-mix(in srgb, var(--inv-accent) 60%, transparent); }
.inv-autoscroll--running { background: var(--inv-primary); color: var(--inv-background); }

.inv-qr-tab {
    background: color-mix(in srgb, var(--inv-background) 95%, transparent); color: var(--inv-primary);
    border-color: color-mix(in srgb, var(--inv-accent) 55%, transparent); font-family: var(--sj-sans);
    box-shadow: -6px 8px 20px -10px rgb(0 0 0 / .5), inset 3px 0 0 var(--inv-accent);
}
.inv-qr-sheet__card { font-family: var(--sj-sans); border-radius: 8px; }

.inv-to-top {
    border-radius: 50%;
    background: var(--inv-background); color: var(--inv-primary);
    box-shadow: inset 0 0 0 1.2px color-mix(in srgb, var(--inv-accent) 70%, transparent), 0 6px 16px -6px rgb(0 0 0 / .45);
}

.inv-checkin { color: var(--inv-text); }
.inv-checkin__title { color: var(--inv-primary); }

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .sj-cover__photo, .sj-crest__blade, .sj-crest__padi, .sj-crest__mono, .sj-live__badge span, .sj-hills__layer { animation: none !important; }
    .sj-quote__angklung, .sj-story__padi, .sj-rule { transition: none !important; }
    .sj-cover--leave { transition: opacity .3s ease; }
    .sj-cover--gone { transform: none; opacity: 0; }
}

/* ---------- fit: the whole cover on one phone screen; shorter screens step down ---------- */

@media (max-height: 760px) {
    .sj-cover__photo { height: min(125vw, 520px); }
    .sj-crest--cover { width: min(38vw, 140px); }
    .sj-cover__names { font-size: clamp(2.1rem, 9.6vw, 2.5rem); }
    .sj-cover__quote { font-size: .74rem; line-height: 1.4; }
    .sj-cover__text { gap: .32rem; }
    .sj-cover__inner { padding-bottom: 3rem; }
}
@media (max-height: 700px) {
    .sj-cover__photo { height: min(118vw, 470px); }
    .sj-guest__note { display: none; }
}
@media (max-height: 660px) {
    .sj-cover { --sj-pad: 1.8rem; }
    .sj-crest--cover { width: min(32vw, 118px); }
    .sj-cover__names { font-size: clamp(2.1rem, 10vw, 2.5rem); }
    .sj-cover__quote { font-size: .76rem; line-height: 1.4; }
    .sj-guest { padding: .55rem 1rem; }
    .sj-guest__note { font-size: .7rem; line-height: 1.4; }
    .sj-open { margin-top: .15rem; padding-block: .75rem; }
}
@media (max-height: 590px) {
    .sj-cover { --sj-pad: 1.6rem; }
    .sj-crest--cover { width: 100px; }
    .sj-cover__text { gap: .22rem; }
    .sj-cover__names { font-size: 2rem; }
    .sj-cover__date { font-size: .74rem; }
    .sj-cover__quote { font-size: .72rem; line-height: 1.38; }
    .sj-guest { padding: .45rem .9rem; }
    .sj-guest__name { font-size: 1rem; line-height: 1.25; }
    .sj-guest__note { margin-top: .2rem; font-size: .68rem; line-height: 1.35; }
    .sj-open { padding-block: .68rem; }
}

/* ---------- intro scene "Kujang Pusaka" (scene.json + sections/_scene; the intro lives in <body>, outside the page) ----------
   Dawn over Priangan: the sun climbs behind the ridge, the landscape rises layer by layer, padi sheaves and two
   angklung swing in from the edges, the two kujang fly in and cross over the sun, the seal sets at the cross. */
.sj-scene-sky {
    position: absolute; inset: 0;
    background:
        radial-gradient(70% 34% at 50% 58%, color-mix(in srgb, var(--inv-accent) 55%, transparent), transparent 72%),
        linear-gradient(180deg, var(--sj-deeper) 0%, var(--inv-deep) 26%, color-mix(in srgb, var(--inv-primary) 85%, var(--inv-deep)) 52%, color-mix(in srgb, var(--inv-accent) 38%, var(--inv-primary)) 74%, var(--inv-primary) 100%);
}
.sj-scene-sky::after {
    content: ''; position: absolute; inset: 0;
    background: color-mix(in srgb, var(--inv-accent) 10%, transparent);
    -webkit-mask: var(--sj-weave) 0 0 / 22px 22px repeat, linear-gradient(180deg, #000, transparent 60%);
    -webkit-mask-composite: source-in;
    mask: var(--sj-weave) 0 0 / 22px 22px repeat, linear-gradient(180deg, #000, transparent 60%);
    mask-composite: intersect;
}
.sj-scene-sun {
    position: absolute; inset: 0;
    background: radial-gradient(closest-side, #fff3cf 0%, color-mix(in srgb, var(--inv-accent) 80%, #fff) 26%, color-mix(in srgb, var(--inv-accent) 45%, transparent) 46%, transparent 100%);
}
.sj-hills--scene { top: 0; height: 100%; --sj-hill-c: var(--sj-deeper); }
.sj-hills--scene .sj-hills__sun { display: none; }
.sj-hills--only-1 .sj-hills__layer:not(.sj-hills__layer--1),
.sj-hills--only-2 .sj-hills__layer:not(.sj-hills__layer--2),
.sj-hills--only-3 .sj-hills__layer:not(.sj-hills__layer--3) { display: none; }
.sj-scene-mist {
    position: absolute; inset: 0; border-radius: 50%;
    background: radial-gradient(50% 50% at 50% 50%, rgb(255 250 235 / .32), transparent 70%),
        radial-gradient(30% 40% at 22% 55%, rgb(255 250 235 / .22), transparent 70%),
        radial-gradient(30% 40% at 78% 45%, rgb(255 250 235 / .2), transparent 70%);
    filter: blur(6px);
}
.inv-scene__art > svg.sj-scene-svg { height: auto; overflow: visible; }
.sj-scene-svg { filter: drop-shadow(0 6px 8px rgb(0 0 0 / .35)); }
.sj-scene-angklung { color: #f1d38a; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--inv-accent) 60%, transparent)); }
.sj-scene-blade { filter: drop-shadow(0 10px 12px rgb(0 0 0 / .45)); }
.sj-scene-seal { width: 100%; }
.sj-scene-seal .sj-crest__art { filter: drop-shadow(0 6px 8px rgb(0 0 0 / .3)); }

/* the name card: a deep green panel with a brass hairline and corner brackets, below the crest */
body.sj-body .inv-intro--scene .inv-scene__card {
    top: 63%; aspect-ratio: auto; padding: 1.5rem 1.4rem 1.4rem; border-radius: 4px;
    -webkit-mask: none; mask: none;
    background: color-mix(in srgb, var(--inv-deep) 74%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 60%, transparent), inset 0 0 0 5px color-mix(in srgb, var(--inv-deep) 50%, transparent), inset 0 0 0 6px color-mix(in srgb, var(--inv-accent) 28%, transparent), 0 22px 40px -22px rgb(0 0 0 / .8);
}
body.sj-body .inv-scene__card::before, body.sj-body .inv-scene__card::after {
    content: ''; position: absolute; top: 0; left: 0; width: 24px; height: 24px;
    border-top: 2px solid var(--inv-accent); border-left: 2px solid var(--inv-accent);
}
body.sj-body .inv-scene__card::after { left: auto; right: 0; transform: scaleX(-1); }
body.sj-body .inv-scene__card .inv-intro__label { font: 600 .62rem/1.4 var(--sj-sans); letter-spacing: .32em; text-transform: uppercase; color: #f1d38a; }
body.sj-body .inv-scene__card .inv-intro__names { font-family: var(--sj-script); color: #fff; text-shadow: 0 4px 18px rgb(0 0 0 / .45); }
body.sj-body .inv-scene__card .inv-intro__date { font: 400 .78rem/1.4 var(--sj-title); letter-spacing: .16em; text-transform: uppercase; color: #f6e2b0; }
body.sj-body .inv-intro--scene .inv-intro__skip { border-color: color-mix(in srgb, var(--inv-accent) 55%, transparent); background: color-mix(in srgb, var(--inv-deep) 60%, transparent); color: #f6e2b0; }
@media (max-aspect-ratio: 1/2) { body.sj-body .inv-intro--scene .inv-scene__card { top: 59%; } }
