/*
 * Sunda Kujang: Sundanese ornaments and Priangan nature, fresh and graceful. Sage/leaf green, bamboo yellow
 * and cream. Inline-SVG ornaments in sections/_defs (kujang, julang ngapak roof, jasmine, angklung, bamboo leaf),
 * bamboo clusters (_bamboo), layered hills (_hills); kawung and lereng batik bands are CSS masks below.
 * Marcellus titles, Alex Brush names, Figtree text, DM Mono card numbers.
 * Sections rotate between cream (default tokens), sage (.sj-section--sage) and deep green (.sj-section--deep).
 * Colors from the variant: --inv-primary, --inv-accent, --inv-background, --inv-text, --inv-deep, --inv-leaf,
 * --inv-sage, --inv-key (the accent dark enough for text on light grounds). All classes start with "sj-".
 */

:root {
    --inv-primary: #2f5a3c;
    --inv-accent: #d2a93c;
    --inv-background: #f7f3e6;
    --inv-text: #22311f;
    --inv-deep: #1b3524;
    --inv-leaf: #7f9c68;
    --inv-sage: #e6ecd9;
    --inv-key: #8a6a12;
    --inv-radius: 16px;

    --sj-w: 460px;
    --sj-title: 'Marcellus', 'Cinzel', Georgia, serif;
    --sj-script: 'Alex Brush', 'Brush Script MT', cursive;
    --sj-sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --sj-mono: 'DM Mono', ui-monospace, Consolas, monospace;

    --sj-deeper: color-mix(in srgb, var(--inv-deep) 82%, #000);
    --sj-bamboo: color-mix(in srgb, var(--inv-accent) 62%, var(--inv-leaf));
    --sj-bamboo-dark: color-mix(in srgb, var(--sj-bamboo) 70%, var(--inv-deep));
    --sj-paper: color-mix(in srgb, #fff 62%, var(--inv-background));

    /* batik masks (black = drawn) */
    --sj-kawung: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.4'%3E%3Cellipse cx='12' cy='5.5' rx='3' ry='4.3'/%3E%3Cellipse cx='12' cy='18.5' rx='3' ry='4.3'/%3E%3Cellipse cx='5.5' cy='12' rx='4.3' ry='3'/%3E%3Cellipse cx='18.5' cy='12' rx='4.3' ry='3'/%3E%3C/g%3E%3Ccircle cx='12' cy='12' r='1.3'/%3E%3Ccircle cx='0' cy='0' r='1.7'/%3E%3Ccircle cx='24' cy='0' r='1.7'/%3E%3Ccircle cx='0' cy='24' r='1.7'/%3E%3Ccircle cx='24' cy='24' r='1.7'/%3E%3C/svg%3E");
    --sj-kawung-one: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-14 -14 28 28'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.2'%3E%3Cellipse cx='0' cy='-7' rx='4.2' ry='6.2'/%3E%3Cellipse cx='0' cy='7' rx='4.2' ry='6.2'/%3E%3Cellipse cx='-7' cy='0' rx='6.2' ry='4.2'/%3E%3Cellipse cx='7' cy='0' rx='6.2' ry='4.2'/%3E%3Cellipse cx='0' cy='-7' rx='1.8' ry='3.4'/%3E%3Cellipse cx='0' cy='7' rx='1.8' ry='3.4'/%3E%3Cellipse cx='-7' cy='0' rx='3.4' ry='1.8'/%3E%3Cellipse cx='7' cy='0' rx='3.4' ry='1.8'/%3E%3C/g%3E%3Ccircle r='1.4'/%3E%3C/svg%3E");
    --sj-lereng: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M-4 4 4-4M0 16 16 0M12 20 20 12' stroke='%23000' stroke-width='3'/%3E%3Ccircle cx='12' cy='12' r='1.5'/%3E%3Ccircle cx='4' cy='4' r='1.5'/%3E%3C/svg%3E");

    /* context tokens: cream by default, redefined for sage and 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) 78%, transparent);
    --sj-gold: var(--inv-key);
    --sj-line: color-mix(in srgb, var(--inv-primary) 38%, transparent);
    --sj-line-soft: color-mix(in srgb, var(--inv-primary) 16%, 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-gold-fill: var(--inv-accent);
    --sj-wall: color-mix(in srgb, var(--inv-accent) 22%, var(--inv-background));
    --sj-wall-line: color-mix(in srgb, var(--inv-accent) 55%, var(--inv-background));
    --sj-petal: #fffdf6;
    --sj-petal-line: color-mix(in srgb, var(--inv-leaf) 80%, var(--inv-text));
}

*, *::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-deep), var(--sj-deeper));
}
.sj-backdrop::before {
    content: ''; position: absolute; inset: -60px;
    background: var(--sj-photo, none) center / cover no-repeat;
    filter: blur(30px) saturate(.7) brightness(.55);
    opacity: .35;
}
/* a kawung lattice over a deep green veil */
.sj-backdrop::after {
    content: ''; position: absolute; inset: 0;
    background: color-mix(in srgb, var(--inv-accent) 20%, transparent);
    -webkit-mask: var(--sj-kawung) 0 0 / 46px 46px repeat;
    mask: var(--sj-kawung) 0 0 / 46px 46px 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) 40%, 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 ---------- */

/* batik bands: kawung or lereng between two hairlines */
.sj-band {
    position: relative; display: block; width: 100%; height: 18px;
    color: var(--inv-accent);
    border-block: 1px solid color-mix(in srgb, currentColor 75%, transparent);
}
.sj-band::before {
    content: ''; position: absolute; inset: 2px 0; background: currentColor;
    -webkit-mask: var(--sj-kawung) 0 50% / 12px 12px repeat-x;
    mask: var(--sj-kawung) 0 50% / 12px 12px repeat-x;
}
.sj-band--lereng::before {
    -webkit-mask: var(--sj-lereng) 0 50% / 12px 12px repeat-x;
    mask: var(--sj-lereng) 0 50% / 12px 12px repeat-x;
}

/* bamboo clusters; the leaf sprays sway */
.sj-bamboo {
    display: block; overflow: visible; pointer-events: none;
    -webkit-mask: linear-gradient(180deg, #000 62%, transparent 96%);
    mask: linear-gradient(180deg, #000 62%, transparent 96%);
}
.sj-bamboo--right { transform: scaleX(-1); }
.sj-bamboo__stalks { fill: var(--sj-bamboo); }
.sj-bamboo__stalks rect:nth-child(2) { fill: color-mix(in srgb, var(--sj-bamboo) 80%, var(--inv-leaf)); }
.sj-bamboo__stalks rect:nth-child(3) { fill: color-mix(in srgb, var(--sj-bamboo) 60%, var(--inv-leaf)); }
.sj-bamboo__nodes { stroke: var(--sj-bamboo-dark); }
.sj-bamboo__twig { fill: none; stroke: var(--sj-bamboo-dark); stroke-width: 1.4; }
.sj-bamboo__spray { fill: var(--inv-leaf); --sj-leaf-vein: rgb(255 255 255 / .3); }
.sj-bamboo__spray--2, .sj-bamboo__spray--4 { fill: var(--inv-primary); }
html.inv-anim .sj-bamboo__spray { animation: sj-sway 5.5s ease-in-out infinite alternate; will-change: transform; }
html.inv-anim .sj-bamboo__spray--2 { animation-duration: 6.5s; animation-delay: -2s; }
html.inv-anim .sj-bamboo__spray--3 { animation-duration: 7s; animation-delay: -3.5s; }
html.inv-anim .sj-bamboo__spray--4 { animation-duration: 6s; animation-delay: -1s; }
@keyframes sj-sway {
    from { transform: rotate(-5deg); }
    to { transform: rotate(5deg); }
}

/* the kujang crest: monogram medallion between two kujang leaning outward, a jasmine on top */
.sj-crest { position: relative; display: flex; align-items: center; justify-content: center; gap: .15rem; }
.sj-crest__mono {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: center; gap: .35rem;
    width: 4.6rem; height: 4.6rem; border-radius: 50%;
    background: radial-gradient(circle at 50% 35%, #fff, var(--inv-background) 70%);
    border: 1.5px solid var(--inv-accent);
    box-shadow: 0 0 0 4px var(--inv-background), 0 0 0 5px var(--sj-line), 0 14px 26px -14px rgb(0 0 0 / .45);
    font: 400 1.35rem/1 var(--sj-title); color: var(--inv-primary);
}
.sj-crest__dot { width: 5px; height: 5px; background: var(--inv-accent); transform: rotate(45deg); }
.sj-crest__kujang {
    width: 1.3rem; height: 3.9rem; overflow: visible;
    color: var(--inv-key); --sj-kujang-line: rgb(255 255 255 / .55);
    filter: drop-shadow(0 3px 3px rgb(0 0 0 / .15));
    transform-origin: 50% 90%;
}
.sj-crest__kujang--left { transform: rotate(-18deg); }
.sj-crest__kujang--right { transform: scaleX(-1) rotate(-18deg); }
.sj-crest__flower { position: absolute; z-index: 2; left: 50%; top: -.65rem; width: 1.5rem; height: 1.5rem; transform: translateX(-50%); }

.sj-crest--big .sj-crest__mono { width: 6.2rem; height: 6.2rem; font-size: 2rem; gap: .5rem; }
.sj-crest--big .sj-crest__kujang { width: 1.8rem; height: 5.4rem; }
.sj-crest--big .sj-crest__flower { width: 1.9rem; height: 1.9rem; top: -.8rem; }

/* divider: kawung flower between hairlines ending in bamboo nodes */
.sj-divider { display: flex; align-items: center; justify-content: center; gap: .5rem; margin: .8rem auto 0; color: var(--sj-gold); }
.sj-divider__line { position: relative; width: 3.4rem; height: 1px; background: linear-gradient(90deg, transparent, currentColor); }
.sj-divider__line::before { content: ''; position: absolute; left: 0; top: -2px; width: 1px; height: 5px; background: currentColor; opacity: .7; }
.sj-divider__line--end { background: linear-gradient(270deg, transparent, currentColor); }
.sj-divider__line--end::before { left: auto; right: 0; }
.sj-divider__kawung { width: 1.5rem; height: 1.5rem; }
.sj-divider__kawung g { fill: none; stroke: currentColor; stroke-width: 1.5; }
.sj-divider__kawung circle { fill: currentColor; }
html.inv-anim .is-revealed .sj-divider__kawung, html.inv-anim .sj-divider__kawung { transition: transform 1.2s cubic-bezier(.2, .8, .2, 1) .4s; }
html.inv-anim [data-reveal]:not(.is-revealed) .sj-divider__kawung { transform: rotate(-90deg) scale(.6); }

/* small-caps label */
.sj-kicker {
    position: relative; z-index: 2;
    font: 600 .68rem/1.4 var(--sj-sans); letter-spacing: .36em; text-transform: uppercase;
    color: var(--sj-gold);
}
.sj-kicker--light { color: var(--inv-accent); }

/* ---------- 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) 12%, 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) 16%, transparent); }

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

.sj-cover {
    position: fixed; inset: 0; z-index: 30;
    width: min(100%, var(--sj-w)); margin: 0 auto;
    display: flex; overflow-x: hidden; overflow-y: auto;
    color: var(--inv-text);
    background:
        radial-gradient(120% 60% at 50% 0%, #fff 0%, transparent 60%),
        linear-gradient(180deg, var(--inv-background) 0%, var(--inv-background) 55%, var(--inv-sage) 100%);
}
.sj-cover__bamboo { position: absolute; z-index: 1; top: -10px; width: clamp(64px, 18vw, 84px); height: auto; opacity: .9; }
.sj-cover__bamboo.sj-bamboo--left { left: -14px; }
.sj-cover__bamboo.sj-bamboo--right { right: -14px; top: 90px; }

.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) 55%, transparent); }
.sj-hills__far { fill: var(--sj-hill-far, color-mix(in srgb, var(--inv-leaf) 38%, var(--inv-background))); }
.sj-hills__ridge { fill: none; stroke: var(--sj-hill-line, color-mix(in srgb, var(--inv-background) 60%, transparent)); stroke-width: 1.2; stroke-linecap: round; }
.sj-hills__mid { fill: var(--sj-hill-mid, color-mix(in srgb, var(--inv-leaf) 72%, var(--inv-background))); }
.sj-hills__rows { fill: none; stroke: var(--sj-hill-line, color-mix(in srgb, var(--inv-background) 55%, transparent)); stroke-width: 1; stroke-dasharray: 2 4; stroke-linecap: round; }
.sj-hills__near { fill: var(--sj-hill-near, var(--inv-primary)); }
.sj-hills__terrace { fill: none; stroke: var(--sj-hill-terrace, color-mix(in srgb, var(--inv-leaf) 70%, transparent)); stroke-width: 1.1; }

.sj-hills--cover { z-index: 0; height: clamp(130px, 25vh, 210px); }
.sj-hills--cover .sj-hills__sun, .sj-hills--closing .sj-hills__sun { display: none; }

.sj-cover__inner {
    position: relative; z-index: 2;
    width: 100%; margin: auto; padding: 2rem 1.5rem 2.4rem;
    display: flex; flex-direction: column; align-items: center; gap: .55rem;
    text-align: center;
}

/* the house: julang ngapak roof, jasmine strands from the eaves, the photo below */
.sj-house { position: relative; width: min(86%, 320px); margin: .3rem auto 0; }
.sj-house__roof {
    position: relative; z-index: 2; display: block; width: 100%; aspect-ratio: 300 / 116; overflow: visible;
    color: var(--inv-primary); --sj-roof-line: color-mix(in srgb, var(--inv-leaf) 80%, #fff);
    --sj-gold: var(--inv-accent);
    filter: drop-shadow(0 10px 10px rgb(0 0 0 / .18));
}
.sj-house__strand {
    position: absolute; z-index: 1; top: 0; margin-top: 33%;
    width: 4.6%; aspect-ratio: 16 / 170; height: auto; overflow: visible;
    transform-origin: 50% 0;
}
.sj-house__strand--left { left: 1.6%; }
.sj-house__strand--right { right: 1.6%; }
html.inv-anim .sj-house__strand { animation: sj-dangle 4.5s ease-in-out infinite alternate; will-change: transform; }
html.inv-anim .sj-house__strand--right { animation-delay: -2.2s; }
@keyframes sj-dangle { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }

.sj-house__photo {
    position: relative; width: 52%; margin: -3px auto 0;
    height: clamp(150px, 27vh, 250px);
    background: var(--sj-photo, none) center 30% / cover no-repeat, linear-gradient(160deg, var(--inv-leaf), var(--inv-primary));
    border: 4px solid var(--inv-primary); border-top: 0;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 70%, transparent), 0 18px 30px -18px rgb(0 0 0 / .5);
}
.sj-crest--cover { margin-top: -2.5rem; z-index: 3; }

.sj-cover__names {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 .45rem;
    margin-top: .2rem;
    font: 400 clamp(2.6rem, 12.5vw, 3.4rem)/1.15 var(--sj-script); color: var(--inv-primary);
}
.sj-cover__amp, .sj-hero__amp { font: 400 .42em/1 var(--sj-title); color: var(--inv-key); }
.sj-cover__date { font: 400 .86rem/1.4 var(--sj-title); letter-spacing: .14em; text-transform: uppercase; color: var(--inv-text); }
.sj-cover__quote { max-width: 21rem; font: italic 400 .9rem/1.55 var(--sj-sans); color: var(--sj-muted); }

.sj-guest {
    position: relative; width: min(100%, 19rem); margin-top: .35rem; padding: .9rem 1.1rem .85rem;
    border-radius: 16px;
    background: color-mix(in srgb, #fff 80%, transparent);
    border: 1px solid var(--sj-line);
    outline: 1px dashed color-mix(in srgb, var(--inv-accent) 55%, transparent); outline-offset: -6px;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    box-shadow: 0 16px 30px -22px rgb(0 0 0 / .5);
}
.sj-guest__label { font: 600 .64rem/1.4 var(--sj-sans); letter-spacing: .32em; text-transform: uppercase; color: var(--inv-key); }
.sj-guest__name { display: block; margin-top: .25rem; font: 400 1.12rem/1.35 var(--sj-title); color: var(--inv-primary); overflow-wrap: anywhere; }
.sj-guest__note { margin-top: .35rem; font: 400 .78rem/1.45 var(--sj-sans); color: var(--sj-muted); }

.sj-open { margin-top: .5rem; box-shadow: 0 0 0 4px color-mix(in srgb, var(--inv-background) 80%, transparent), 0 14px 26px -12px rgb(0 0 0 / .55); }

/* the hills slide up in layers when the cover appears */
html.inv-anim .sj-hills--cover .sj-hills__layer { animation: sj-hill-up 1.5s 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: .45s; }
html.inv-anim .sj-hills--cover .sj-hills__layer--3 { animation-delay: .7s; }
@keyframes sj-hill-up { from { transform: translateY(55%); 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 (P): first screen after opening ---------- */

.sj-hero {
    position: relative; overflow: hidden; isolation: isolate;
    min-height: min(100vh, 900px); min-height: min(100svh, 900px);
    display: flex; align-items: flex-end;
    color: var(--inv-background); 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, linear-gradient(170deg, var(--inv-leaf), var(--inv-deep));
}
.sj-hero::after {
    content: ''; position: absolute; z-index: -1; inset: 0;
    background:
        linear-gradient(180deg, rgb(0 0 0 / .28) 0%, transparent 22%, transparent 40%,
            color-mix(in srgb, var(--inv-deep) 60%, transparent) 62%,
            color-mix(in srgb, var(--inv-deep) 94%, transparent) 86%, var(--inv-deep) 100%);
}
.sj-hero__bamboo { position: absolute; z-index: 0; top: -20px; left: -16px; width: clamp(60px, 17vw, 78px); height: auto; opacity: .85; filter: drop-shadow(0 6px 10px rgb(0 0 0 / .35)); }
.sj-hero__content { position: relative; z-index: 1; width: 100%; padding: 0 1.25rem 10.8rem; }
.sj-hero__names {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 .5rem;
    margin-top: .3rem;
    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__amp { color: var(--inv-accent); }
.sj-hero__date { margin-top: .2rem; font: 400 .9rem/1.4 var(--sj-title); letter-spacing: .16em; text-transform: uppercase; color: color-mix(in srgb, #fff 90%, transparent); }

.sj-hero__countdown { margin-top: 1.2rem; }
.sj-hero__countdown .inv-countdown { gap: .5rem; justify-content: center; }
.sj-hero__countdown .inv-countdown__item {
    flex: 0 1 4.2rem; min-width: 0; padding: .7rem .2rem .6rem; border-radius: 14px;
    background: color-mix(in srgb, #fff 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--inv-accent) 65%, transparent);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    box-shadow: inset 0 0 0 3px color-mix(in srgb, #fff 6%, transparent);
}
.sj-hero__countdown .inv-countdown__value { font: 500 1.5rem/1.1 var(--sj-sans); color: var(--inv-accent); }
.sj-hero__countdown .inv-countdown__label { margin-top: .2rem; font: 600 .56rem/1.2 var(--sj-sans); letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.sj-hero__countdown .inv-countdown__done { color: #fff; font-style: italic; }

/* ---------- intro (M): running photos, the big crest, the date ---------- */

.sj-intro {
    position: relative; padding: 2.2rem 0 0; text-align: center;
    background:
        radial-gradient(90% 60% at 50% 100%, color-mix(in srgb, var(--inv-accent) 14%, transparent), transparent 70%),
        var(--inv-sage);
}
.sj-marquee { --inv-marquee-height: 9.5rem; }
.sj-marquee .inv-marquee__track img {
    border-radius: 12px; border: 3px solid #fff;
    box-shadow: 0 10px 20px -14px rgb(0 0 0 / .5);
}
.sj-intro__crest { margin: 2.6rem auto .9rem; }
.sj-intro__date { padding-bottom: 2.2rem; font: 400 .95rem/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;
    padding: 4.4rem 1.4rem;
    text-align: center; color: var(--sj-fg);
    background: var(--sj-bg);
}
.sj-section--sage {
    --sj-bg: var(--inv-sage);
    --sj-card-bg: color-mix(in srgb, #fff 75%, var(--inv-sage));
    background:
        radial-gradient(110% 50% at 50% 0%, color-mix(in srgb, #fff 55%, transparent), transparent 70%),
        var(--inv-sage);
}
.sj-section--deep {
    --sj-bg: var(--inv-deep);
    --sj-fg: var(--inv-background);
    --sj-head: var(--inv-background);
    --sj-muted: color-mix(in srgb, var(--inv-background) 86%, 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) 22%, transparent);
    --sj-btn-bg: var(--inv-accent);
    --sj-btn-fg: var(--inv-deep);
    --sj-card-bg: color-mix(in srgb, #fff 7%, transparent);
    --sj-field-bg: color-mix(in srgb, #000 20%, transparent);
    --sj-wall: color-mix(in srgb, var(--inv-leaf) 35%, var(--inv-deep));
    --sj-wall-line: color-mix(in srgb, var(--inv-accent) 45%, var(--inv-deep));
    background:
        radial-gradient(110% 55% at 50% 0%, color-mix(in srgb, var(--inv-leaf) 26%, transparent), transparent 72%),
        var(--inv-deep);
}
.sj-section > * { position: relative; z-index: 1; }

.sj-heading { margin-bottom: 2.2rem; }
.sj-heading__title { margin-top: .45rem; font: 400 clamp(1.55rem, 7vw, 1.95rem)/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: 18px;
    box-shadow: 0 24px 44px -32px rgb(0 0 0 / .55);
}

/* opening */
.sj-opening__angklung { display: block; width: 2.8rem; height: 3.5rem; margin: 0 auto 1rem; color: color-mix(in srgb, var(--sj-bamboo) 70%, var(--inv-primary)); }
.sj-arabic { font: 400 1.8rem/1.8 'Amiri', serif; color: var(--inv-primary); margin-bottom: .5rem; }
.sj-opening__greeting { font: 400 1.08rem/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: 23rem; margin: 2.8rem auto 0; padding: 2.3rem 1.9rem 1.7rem;
    background: var(--sj-paper); border-radius: 18px;
    border: 1px solid var(--sj-line-soft);
    box-shadow: 0 24px 44px -30px rgb(0 0 0 / .5);
}
.sj-quote > .sj-band { position: absolute; top: 0; left: 0; right: 0; border-top: 0; border-radius: 18px 18px 0 0; }
.sj-quote__strand { position: absolute; z-index: 1; top: 16px; width: 12px; height: 128px; overflow: visible; transform-origin: 50% 0; }
.sj-quote__strand--left { left: 10px; }
.sj-quote__strand--right { right: 10px; }
html.inv-anim .sj-quote__strand { animation: sj-dangle 5s ease-in-out infinite alternate; }
html.inv-anim .sj-quote__strand--right { animation-delay: -2.5s; }
.sj-quote blockquote { margin: 0; padding: 0 .6rem; 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-key); }

/* couple (R3) */
.sj-person {
    display: grid; grid-template-columns: 8.6rem minmax(0, 1fr); align-items: center; column-gap: 1rem;
    max-width: 25rem; margin: 0 auto; text-align: left;
}
.sj-person--bride { grid-template-columns: minmax(0, 1fr) 8.6rem; text-align: right; }
.sj-person--bride .sj-person__ring { order: 2; }
.sj-person__ring {
    position: relative; aspect-ratio: 1; padding: 5px; border-radius: 50%;
    background: var(--sj-paper);
    box-shadow: 0 0 0 1.5px var(--inv-accent), 0 0 0 6px color-mix(in srgb, var(--inv-sage) 80%, #fff), 0 0 0 7px var(--sj-line-soft), 0 22px 32px -16px rgb(0 0 0 / .45);
}
.sj-person__photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; border-radius: 50%; }
.sj-person__photo--empty { display: grid; place-items: center; background: linear-gradient(160deg, var(--inv-leaf), var(--inv-primary)); font: 400 3.4rem/1 var(--sj-script); color: #fff; }
.sj-person__leaf { position: absolute; width: 3.4rem; height: .8rem; fill: var(--inv-primary); --sj-leaf-vein: rgb(255 255 255 / .35); }
.sj-person__leaf--a { left: -1.1rem; bottom: 1.1rem; transform: rotate(-32deg); }
.sj-person__leaf--b { left: -.4rem; bottom: .2rem; transform: rotate(8deg); fill: var(--inv-leaf); }
.sj-person__flower { position: absolute; right: .1rem; top: .2rem; width: 1.5rem; height: 1.5rem; }
.sj-person--bride .sj-person__leaf--a { left: auto; right: -1.1rem; transform: scaleX(-1) rotate(-32deg); }
.sj-person--bride .sj-person__leaf--b { left: auto; right: -.4rem; transform: scaleX(-1) rotate(8deg); }
.sj-person--bride .sj-person__flower { right: auto; left: .1rem; }

.sj-person__role { font: 600 .6rem/1.4 var(--sj-sans); letter-spacing: .3em; text-transform: uppercase; color: var(--sj-gold); }
.sj-person__nick { font: 400 2.5rem/1.15 var(--sj-script); color: var(--inv-primary); }
.sj-person__name { margin-top: .1rem; font: 400 1rem/1.35 var(--sj-title); color: var(--sj-fg); overflow-wrap: anywhere; }
.sj-person__parents { margin-top: .45rem; font-size: .82rem; 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: .9rem; margin: 1.8rem 0; }
.sj-amp span { font: 400 3.2rem/1 var(--sj-script); color: var(--inv-key); }
.sj-amp__kujang { width: 1.1rem; height: 3.3rem; color: var(--inv-key); transform: rotate(-22deg); }
.sj-amp__kujang--end { transform: scaleX(-1) rotate(-22deg); }

/* countdown (A): paper calendar, compact boxes, hills at the foot */
.sj-countdown { padding-bottom: 8.5rem; }
.sj-cal {
    --inv-cal-bg: var(--sj-paper);
    --inv-cal-text: var(--inv-text);
    --inv-cal-mark: var(--inv-key);
    position: relative; max-width: 20rem; margin: 0 auto 1.6rem; border-radius: 16px; text-align: left;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--inv-accent) 50%, transparent), 0 26px 40px -24px rgb(0 0 0 / .6);
}
.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); }

.sj-countdown__boxes .inv-countdown { gap: .5rem; justify-content: center; }
.sj-countdown__boxes .inv-countdown__item {
    flex: 0 1 4.3rem; min-width: 0; padding: .65rem .2rem .55rem; border-radius: 14px;
    background: color-mix(in srgb, #fff 6%, transparent);
    border: 1px solid color-mix(in srgb, var(--inv-accent) 50%, transparent);
}
.sj-countdown__boxes .inv-countdown__value { font: 500 1.45rem/1.1 var(--sj-sans); color: var(--inv-accent); }
.sj-countdown__boxes .inv-countdown__label { margin-top: .2rem; font: 600 .56rem/1.2 var(--sj-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--sj-muted); }
.sj-countdown__boxes .inv-countdown__done { font-style: italic; color: var(--sj-muted); }
.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: var(--inv-background); }

/* hills at the foot of a deep band: they lead into the cream section that follows */
.sj-section > .sj-hills { position: absolute; z-index: 0; }
.sj-hills--band { height: 120px; }
.sj-section--deep .sj-hills {
    --sj-hill-far: color-mix(in srgb, var(--inv-leaf) 30%, var(--inv-deep));
    --sj-hill-mid: color-mix(in srgb, var(--inv-leaf) 52%, var(--inv-deep));
    --sj-hill-near: var(--inv-background);
    --sj-hill-line: color-mix(in srgb, var(--inv-leaf) 45%, transparent);
    --sj-hill-terrace: color-mix(in srgb, var(--inv-leaf) 45%, transparent);
}

/* events (B) */
.sj-events__list { display: grid; gap: 2.2rem; 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 18px 18px 18px;
    background: var(--sj-paper);
    box-shadow: 0 0 0 1px var(--sj-line-soft), 0 28px 44px -30px rgb(0 0 0 / .55);
}
.sj-event__photo {
    grid-area: photo; position: relative; aspect-ratio: 4 / 3.2;
    background: var(--sj-photo, none) center 30% / cover no-repeat, linear-gradient(160deg, var(--inv-leaf), var(--inv-primary));
}
.sj-event__num {
    position: absolute; left: 1rem; bottom: -1.2rem; z-index: 1;
    display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
    background: var(--inv-primary); color: var(--inv-accent);
    font: 600 .82rem/1 var(--sj-sans); letter-spacing: .04em;
    box-shadow: 0 0 0 3px var(--sj-paper);
}
.sj-event__panel { grid-area: panel; min-width: 0; padding: 1.8rem 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-primary); }
.sj-event__date { font: 400 1.02rem/1.4 var(--sj-title); color: var(--sj-fg); }
.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-key); }
.sj-event__venue { font: 600 1rem/1.4 var(--sj-sans); color: var(--sj-fg); overflow-wrap: anywhere; }
.sj-event__address { margin-top: .15rem; font-size: .85rem; line-height: 1.5; color: var(--sj-muted); overflow-wrap: anywhere; }
.sj-event__dress { font-size: .84rem; color: var(--sj-muted); }
.sj-event .inv-maps { margin-top: .5rem; }
.sj-event .inv-maps .inv-button { padding: .7rem 1.2rem; font-size: .64rem; }

/* the name strip: a bamboo stalk with nodes */
.sj-event__name {
    grid-area: name; display: flex; align-items: center; justify-content: center; padding: 1rem 0;
    background:
        repeating-linear-gradient(180deg, transparent 0 5.6rem, var(--sj-bamboo-dark) 5.6rem 5.8rem, color-mix(in srgb, #fff 35%, transparent) 5.8rem 5.9rem),
        linear-gradient(90deg, var(--sj-bamboo-dark), var(--sj-bamboo) 30%, color-mix(in srgb, var(--sj-bamboo) 70%, #fff) 48%, var(--sj-bamboo) 66%, var(--sj-bamboo-dark));
    box-shadow: inset 1px 0 0 rgb(0 0 0 / .1);
}
.sj-event__name span {
    writing-mode: vertical-rl;
    font: 400 1.05rem/1 var(--sj-title); letter-spacing: .32em; text-transform: uppercase;
    color: var(--inv-deep);
    padding: .4rem .3rem; border-radius: 999px;
    background: color-mix(in srgb, var(--inv-background) 72%, transparent);
}

/* love story (L) */
.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: 2px; transform: translateX(-50%);
    background: linear-gradient(180deg, var(--sj-line), var(--sj-line) 85%, transparent);
}
.sj-moment {
    position: relative;
    display: grid; grid-template-columns: minmax(0, 1fr) 2.3rem 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.3rem; height: 2.3rem; border-radius: 50%;
    background: var(--inv-sage); border: 1.5px solid var(--inv-key);
    font: 600 .74rem/1 var(--sj-sans); color: var(--inv-key);
}
.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.02rem/1.35 var(--sj-title); color: var(--sj-head); overflow-wrap: anywhere; padding-top: .3rem; }
.sj-moment__rule { display: block; width: 80%; margin: .45rem 0 .5rem auto; border-top: 2px dotted var(--sj-line); }
.is-flip .sj-moment__rule { margin-left: 0; margin-right: auto; }
.sj-moment__story { font-size: .84rem; 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.65rem/1.15 var(--sj-script); color: var(--inv-key); 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: 4px solid #fff; box-shadow: 0 0 0 1px var(--sj-line), 0 14px 24px -12px rgb(0 0 0 / .45);
}

/* gallery (G) */
.sj-gallery__frame {
    position: relative; max-width: 24rem; margin: 0 auto; padding: 1.5rem .8rem .8rem;
    border-radius: 20px; background: var(--sj-paper);
    box-shadow: 0 0 0 1px var(--sj-line-soft), 0 26px 44px -30px rgb(0 0 0 / .55);
    overflow: hidden;
}
.sj-gallery__frame::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 12px;
    background: var(--inv-accent);
    -webkit-mask: var(--sj-lereng) 0 50% / 12px 12px repeat-x;
    mask: var(--sj-lereng) 0 50% / 12px 12px repeat-x;
}
.sj-gallery__frame .inv-gallery-slider { grid-template-columns: minmax(0, 1fr); }
.inv-gallery-slider__thumb { border-radius: .6rem; }
.inv-gallery-slider__thumb.is-active { border-color: var(--inv-primary); }
.inv-gallery-slider__arrow { background: var(--inv-primary); color: var(--inv-background); }
.inv-gallery-slider__stage { border-radius: 14px; }
.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; }
.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: green bank cards with a gold chip and a kawung watermark, two per row */
.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: 16px; text-align: left; color: var(--inv-background);
    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) 60%, 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) 40%, 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: -1.4rem; bottom: -1.4rem; width: 6rem; height: 6rem;
    background: color-mix(in srgb, var(--inv-accent) 30%, transparent);
    -webkit-mask: var(--sj-kawung-one) center / contain no-repeat;
    mask: var(--sj-kawung-one) center / contain no-repeat;
}
.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: 500 .98rem/1.25 var(--sj-mono); letter-spacing: .03em; 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, var(--inv-background) 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: var(--inv-accent); 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 plain paper card */
.inv-gift__account.inv-gift__address {
    display: block; padding: 1.5rem 1.3rem; text-align: center; color: var(--sj-fg);
    background: var(--sj-paper);
    box-shadow: inset 0 0 0 1px var(--sj-line-soft), 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-leaf) 25%, 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: var(--sj-muted); }
.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 */
.sj-form { max-width: 24rem; margin: 0 auto; padding: 0 1.25rem 1.5rem; text-align: left; }
.sj-form > .sj-band { width: auto; margin: 0 -1.25rem 1.4rem; border-top: 0; }
.inv-form { gap: .9rem; }
.inv-form label, .inv-form__choices legend { font: 500 .78rem/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: 10px;
    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) 45%, 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-leaf) 30%, 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) 16%, 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: 12px;
    background: color-mix(in srgb, var(--inv-sage) 70%, transparent);
    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: 10px;
    background: #fff;
    border: 1px solid var(--sj-line-soft); border-left: 3px solid var(--inv-leaf);
}
.inv-wish__name { font: 400 .92rem/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 .68rem/1.3 var(--sj-sans); letter-spacing: .04em; color: var(--sj-muted); }
.inv-wish__reply { margin-top: .5rem; padding: .45rem .65rem; background: color-mix(in srgb, var(--inv-accent) 14%, transparent); }
.inv-wish__reply-text { font-size: .85rem; }
.inv-wishes__page-button { color: var(--inv-primary); }

/* closing: the photo under the roof, thanks, names, hills rising */
.sj-closing { padding-top: 3.4rem; padding-bottom: 10rem; }
.sj-closing__bamboo { position: absolute; z-index: 0; top: -10px; right: -18px; width: 74px; height: auto; opacity: .55; }
.sj-house--closing { width: min(82%, 300px); margin-bottom: 2.2rem; }
.sj-house--closing .sj-house__roof { color: var(--inv-accent); --sj-roof-line: color-mix(in srgb, #fff 55%, transparent); --sj-gold: var(--inv-background); }
.sj-house--closing .sj-house__photo { border-color: var(--inv-accent); }
.sj-closing__thanks { margin-top: .4rem; font: 400 clamp(1.7rem, 7.5vw, 2.1rem)/1.2 var(--sj-title); color: var(--sj-head); }
.sj-closing__message { max-width: 23rem; margin: .9rem auto 0; color: var(--sj-muted); }
.sj-closing .sj-divider { margin-top: 1.4rem; }
.sj-closing__sign { margin-top: 1.2rem; font: 600 .68rem/1.4 var(--sj-sans); letter-spacing: .3em; text-transform: uppercase; color: var(--sj-gold); }
.sj-closing__names { margin-top: .3rem; font: 400 clamp(2.6rem, 12vw, 3.3rem)/1.2 var(--sj-script); color: #fff; }
.sj-closing__names span { font: 400 .4em/1 var(--sj-title); color: var(--inv-accent); }
.sj-hills--closing { height: 150px; }
.sj-section--deep .sj-hills--closing { --sj-hill-near: var(--sj-deeper); }

/* deep-band hills rise in layers 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; } }
}

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

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

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

.inv-nav {
    --inv-nav-bg: color-mix(in srgb, var(--inv-background) 90%, transparent);
    --inv-nav-text: color-mix(in srgb, var(--inv-primary) 80%, transparent);
    --inv-nav-active: var(--inv-primary);
    border-color: color-mix(in srgb, var(--inv-accent) 55%, 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: var(--inv-accent);
    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: var(--inv-background); 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: 18px; }

.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-bamboo__spray, .sj-house__strand, .sj-quote__strand, .sj-live__badge span, .sj-hills__layer { animation: none !important; will-change: auto; }
    .sj-cover--leave { transition: opacity .3s ease; }
    .sj-cover--gone { transform: none; opacity: 0; }
}

/* ---------- fit: the whole cover (names, guest, button) on one phone screen; a proportionate page end ---------- */

.sj-cover__inner { min-height: 100svh; justify-content: space-evenly; gap: .4rem; padding: 1.4rem 1.25rem 1.5rem; }
.sj-hills--cover { height: clamp(90px, 16svh, 170px); }
.sj-house { width: min(78%, 300px, 38svh); }
.sj-house--closing { width: min(82%, 300px); }
.sj-cover .sj-house__photo { height: min(250px, 19svh); }
.sj-cover__quote { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
.sj-guest__note { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }

@media (max-height: 760px) {
    .sj-cover__inner { gap: .3rem; padding-block: 1rem 1.1rem; }
    .sj-cover__names { font-size: clamp(2.3rem, 11vw, 2.9rem); }
    .sj-cover__quote { -webkit-line-clamp: 6; font-size: .84rem; }
    .sj-guest { padding: .7rem 1rem .65rem; }
    .sj-crest--cover .sj-crest__mono { width: 3.9rem; height: 3.9rem; font-size: 1.15rem; }
    .sj-crest--cover .sj-crest__kujang { height: 3.3rem; }
    .sj-crest--cover { margin-top: -2.2rem; }
}
@media (max-height: 660px) {
    .sj-cover__inner { gap: .2rem; padding-block: .7rem .9rem; }
    .sj-cover .sj-kicker { margin: 0; }
    .sj-house { width: min(74%, 34svh); }
    .sj-cover .sj-house__photo { height: 17svh; }
    .sj-cover__names { font-size: clamp(2.1rem, 10vw, 2.5rem); }
    .sj-cover__quote { font-size: .8rem; line-height: 1.45; }
    .sj-guest__note { font-size: .72rem; }
    .sj-open { margin-top: .2rem; }
}

/* page end: the names close the page just above the bottom menu */
.sj-closing { padding-bottom: 3.9rem; }
.sj-hills--closing { height: 104px; }
