/*
 * Banjar Sasirangan: Banjar (South Kalimantan) adat, vivid and modern.
 * Kain sasirangan as a textile surface: .bs-cloth (a dyed ground + img/sas-mottle, img/sas-a and img/sas-a-dots
 * used as CSS masks, so the resist motifs and dots take any color of the variant) and .bs-band (img/sas-b).
 * Rumah Bubungan Tinggi frames the cover photo (SVG symbols in sections/_defs).
 * Names and titles: the client's font pair (var(--inv-font-display/heading), default Parisienne + Marcellus);
 * Mulish for reading and labels.
 * Section skins: .bs-light (warm ground, dyed washes), .bs-deep (deep purple), .bs-kunyit (turmeric cloth).
 * Colors from the variant: --inv-primary, --inv-accent, --inv-background, --inv-text, --inv-secondary,
 * --inv-deep, --inv-surface, --inv-label, --inv-dye (the third dye). All classes start with "bs-".
 */

:root {
    --inv-primary: #6e1a63;
    --inv-accent: #eaa91f;
    --inv-background: #fbf1e3;
    --inv-text: #2b0f28;
    --inv-secondary: #0e857e;
    --inv-deep: #2b0928;
    --inv-surface: #fffaf3;
    --inv-label: #8a5606;
    --inv-dye: #c4176c;
    --inv-radius: 14px;

    --bs-w: 460px;
    --bs-script: var(--inv-font-display, 'Parisienne'), 'Brush Script MT', cursive;
    --bs-serif: var(--inv-font-heading, 'Marcellus'), Georgia, serif;
    --bs-sans: 'Mulish', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --bs-goldfill: linear-gradient(120deg, color-mix(in srgb, var(--inv-accent) 55%, #fff6dc) 0%, var(--inv-accent) 35%, color-mix(in srgb, var(--inv-accent) 75%, #5a2c00) 62%, color-mix(in srgb, var(--inv-accent) 65%, #fff6dc) 86%, var(--inv-accent) 100%);
    --bs-cream: color-mix(in srgb, var(--inv-background) 94%, #fff);
    --bs-goldtext: color-mix(in srgb, var(--inv-accent) 62%, #fff4d8);

    /* context tokens: warm light by default, redefined in deep and turmeric sections */
    --bs-fg: var(--inv-text);
    --bs-muted: color-mix(in srgb, var(--inv-text) 84%, transparent);
    --bs-title: var(--inv-primary);
    --bs-gold: var(--inv-label);
    --bs-line: color-mix(in srgb, color-mix(in srgb, var(--inv-accent) 65%, var(--inv-text)) 55%, transparent);
    --bs-line-soft: color-mix(in srgb, color-mix(in srgb, var(--inv-accent) 65%, var(--inv-text)) 24%, transparent);
    --bs-btn-bg: linear-gradient(135deg, color-mix(in srgb, var(--inv-primary) 82%, var(--inv-dye)), var(--inv-primary) 55%, color-mix(in srgb, var(--inv-primary) 70%, var(--inv-deep)));
    --bs-btn-fg: #fff;
    --bs-card-bg: var(--inv-surface);
    --bs-field-bg: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--inv-deep); scroll-behavior: smooth; }
body.bs-body {
    margin: 0;
    background: var(--inv-deep);
    color: var(--inv-text);
    font: 400 1rem/1.7 var(--bs-sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: inherit; }

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

/* ======================================================================
   Kain sasirangan
   ====================================================================== */

/* background layers of a section (cloth, veiled photo, edge bands) sit behind its content */
.bs-layer { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
html.inv-anim .bs-layer[data-reveal] { opacity: 1; transform: none; filter: none; }

.bs-cloth {
    --s: 1;
    --tile-w: calc(160px * var(--s));
    --tile-h: calc(192px * var(--s));
    overflow: hidden;
    /* plum: magenta, purple and teal dyed in soft stripes along the motif columns, with blotches */
    --g1: color-mix(in srgb, var(--inv-dye) 82%, var(--inv-primary));
    --g2: var(--inv-primary);
    --g3: color-mix(in srgb, var(--inv-secondary) 62%, var(--inv-primary));
    --resist: color-mix(in srgb, var(--inv-background) 90%, var(--inv-accent));
    --resist-o: .9;
    --dot: var(--inv-accent);
    --shade: color-mix(in srgb, var(--inv-deep) 80%, #000);
    --shade-o: .45;
    background:
        linear-gradient(115deg, rgb(255 255 255 / .1), transparent 30%, transparent 60%, rgb(0 0 0 / .18)),
        radial-gradient(45% 35% at 85% 15%, color-mix(in srgb, var(--inv-deep) 55%, transparent), transparent 70%),
        radial-gradient(40% 30% at 10% 85%, color-mix(in srgb, var(--inv-deep) 50%, transparent), transparent 70%),
        linear-gradient(90deg, var(--g1) 0%, var(--g1) 12%, var(--g2) 28%, var(--g2) 64%, var(--g3) 78%, var(--g3) 88%, var(--g1) 100%) 0 0 / var(--tile-w) 100% repeat-x,
        var(--g2);
}
.bs-cloth::before, .bs-cloth::after, .bs-cloth > i {
    content: ''; position: absolute; inset: 0; display: block;
    -webkit-mask-repeat: repeat; mask-repeat: repeat;
}
/* uneven dye: the cloth is darker in clouds */
.bs-cloth::before {
    background: var(--shade); opacity: var(--shade-o);
    -webkit-mask-image: url(../img/sas-mottle.webp); mask-image: url(../img/sas-mottle.webp);
    -webkit-mask-size: 256px; mask-size: 256px;
}
/* the resist motifs with their bleeding halo */
.bs-cloth::after {
    background: var(--resist); opacity: var(--resist-o);
    -webkit-mask-image: url(../img/sas-a.webp); mask-image: url(../img/sas-a.webp);
    -webkit-mask-size: var(--tile-w) var(--tile-h); mask-size: var(--tile-w) var(--tile-h);
}
.bs-cloth > i {
    background: var(--dot);
    -webkit-mask-image: url(../img/sas-a-dots.webp); mask-image: url(../img/sas-a-dots.webp);
    -webkit-mask-size: var(--tile-w) var(--tile-h); mask-size: var(--tile-w) var(--tile-h);
}
.bs-cloth--tosca {
    --g1: color-mix(in srgb, var(--inv-secondary) 70%, var(--inv-deep));
    --g2: var(--inv-secondary);
    --g3: color-mix(in srgb, var(--inv-secondary) 60%, var(--inv-primary));
}
.bs-cloth--jambu {
    --g1: color-mix(in srgb, var(--inv-primary) 70%, var(--inv-dye));
    --g2: var(--inv-dye);
    --g3: color-mix(in srgb, var(--inv-dye) 65%, var(--inv-accent));
}
.bs-cloth--kunyit {
    --g1: color-mix(in srgb, var(--inv-accent) 88%, var(--inv-dye));
    --g2: var(--inv-accent);
    --g3: color-mix(in srgb, var(--inv-accent) 85%, #fff2c4);
    --resist: var(--inv-primary);
    --resist-o: .42;
    --dot: var(--inv-dye);
    --shade: color-mix(in srgb, var(--inv-accent) 60%, #6b3a00);
    --shade-o: .28;
}
/* on deep sections: only the motifs, as a quiet texture */
.bs-cloth--faint { background: none; }
.bs-cloth--faint::before { display: none; }
.bs-cloth--faint::after { background: var(--inv-accent); opacity: .075; }
.bs-cloth--faint > i { opacity: .25; }

/* a strip of cloth: gigi haruan teeth, an ombak wave, a gold jelujur hem */
.bs-band {
    height: 40px; overflow: hidden;
    background:
        linear-gradient(180deg, rgb(255 255 255 / .12), transparent 40%, rgb(0 0 0 / .2)),
        linear-gradient(90deg, color-mix(in srgb, var(--inv-dye) 82%, var(--inv-primary)), var(--inv-primary) 30%, var(--inv-primary) 55%, color-mix(in srgb, var(--inv-secondary) 70%, var(--inv-primary)) 80%, color-mix(in srgb, var(--inv-dye) 82%, var(--inv-primary))) 0 0 / 288px 100% repeat-x;
    box-shadow: 0 1px 0 color-mix(in srgb, var(--inv-accent) 70%, transparent), 0 -1px 0 color-mix(in srgb, var(--inv-accent) 70%, transparent);
}
.bs-band::before, .bs-band::after, .bs-band > i { content: ''; position: absolute; inset: 0; display: block; }
.bs-band::after {
    background: color-mix(in srgb, var(--inv-background) 90%, var(--inv-accent)); opacity: .92;
    -webkit-mask: url(../img/sas-b.webp) 0 0 / 96px 40px repeat; mask: url(../img/sas-b.webp) 0 0 / 96px 40px repeat;
}
.bs-band > i {
    background: var(--inv-accent);
    -webkit-mask: url(../img/sas-b-dots.webp) 0 0 / 96px 40px repeat; mask: url(../img/sas-b-dots.webp) 0 0 / 96px 40px repeat;
}
.bs-band--tosca { background-color: var(--inv-secondary); background-image: linear-gradient(180deg, rgb(255 255 255 / .12), transparent 40%, rgb(0 0 0 / .2)), linear-gradient(90deg, var(--inv-secondary), color-mix(in srgb, var(--inv-secondary) 60%, var(--inv-deep)) 50%, var(--inv-secondary)); background-size: auto, 288px 100%; }
.bs-band--flow { position: relative; inset: auto; z-index: auto; }
.bs-band--top { bottom: auto; z-index: 0; }
.bs-band--bottom { top: auto; z-index: 0; }

/* ======================================================================
   Backdrop (wide screens) and the column
   ====================================================================== */

.bs-backdrop { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--inv-deep); }
.bs-backdrop > .bs-cloth { z-index: 0; --s: 1.3; }
.bs-backdrop::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(50% 70% at 50% 50%, color-mix(in srgb, var(--inv-deep) 55%, transparent), color-mix(in srgb, var(--inv-deep) 30%, transparent));
}
.bs-page {
    position: relative; z-index: 1;
    width: min(100%, var(--bs-w)); min-height: 100vh; margin: 0 auto;
    background: var(--inv-background);
    overflow-x: clip;
}
@media (min-width: 520px) {
    .bs-page { box-shadow: 0 0 0 1px color-mix(in srgb, var(--inv-accent) 50%, transparent), 0 0 90px rgb(0 0 0 / .6); }
}
@media (max-width: 519px) {
    .bs-backdrop { display: none; }
}

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

/* small-caps label */
.bs-kicker {
    position: relative; z-index: 2;
    font: 700 .7rem/1.4 var(--bs-sans); letter-spacing: .4em; text-transform: uppercase;
    color: var(--bs-goldtext);
}

/* ======================================================================
   Buttons
   ====================================================================== */

.inv-button {
    gap: .55rem; padding: .85rem 1.5rem; border-radius: 999px;
    background: var(--bs-btn-bg); color: var(--bs-btn-fg);
    font: 800 .7rem/1.2 var(--bs-sans); letter-spacing: .16em; text-transform: uppercase;
    box-shadow: 0 12px 24px -14px rgb(0 0 0 / .7), inset 0 1px 0 rgb(255 255 255 / .25), inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 45%, transparent);
}
.inv-button--outline { background: transparent; color: var(--bs-title); box-shadow: inset 0 0 0 1px var(--bs-line); }
.inv-button--outline:hover { background: color-mix(in srgb, var(--inv-accent) 14%, transparent); }
.inv-button .bs-icon { width: 1.1rem; height: 1.1rem; }

.bs-pill {
    display: inline-flex; align-items: center; gap: .45rem; margin-top: .9rem; padding: .5rem 1.05rem;
    border-radius: 999px; color: var(--bs-title); text-decoration: none;
    box-shadow: inset 0 0 0 1px var(--bs-line);
    font: 700 .8rem/1 var(--bs-sans); letter-spacing: .03em;
    transition: background .25s ease;
}
.bs-pill:hover { background: color-mix(in srgb, var(--inv-accent) 14%, transparent); }

/* ======================================================================
   Cover
   ====================================================================== */

.bs-cover {
    position: fixed; inset: 0; z-index: 30;
    width: min(100%, var(--bs-w)); margin: 0 auto;
    display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto;
    color: var(--bs-cream);
    background:
        radial-gradient(70% 30% at 50% 100%, color-mix(in srgb, var(--inv-primary) 70%, transparent), transparent 75%),
        linear-gradient(180deg, var(--inv-deep) 30%, color-mix(in srgb, var(--inv-deep) 80%, var(--inv-primary)));
}
/* a hanging length of sasirangan behind the house, fading into the deep ground */
.bs-cover__cloth {
    position: absolute; inset: 0 0 auto; height: 70%; z-index: 0;
    -webkit-mask-image: linear-gradient(180deg, #000 20%, rgb(0 0 0 / .55) 55%, transparent);
    mask-image: linear-gradient(180deg, #000 20%, rgb(0 0 0 / .55) 55%, transparent);
}
.bs-cover__cloth > .bs-cloth { z-index: 0; --s: 1.15; }
.bs-cover__cloth::after {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(48% 40% at 50% 44%, color-mix(in srgb, var(--inv-deep) 82%, transparent), color-mix(in srgb, var(--inv-deep) 30%, transparent) 70%, transparent),
        linear-gradient(180deg, color-mix(in srgb, var(--inv-deep) 35%, transparent), transparent 30%);
}
.bs-cover__inner {
    position: relative; z-index: 2;
    flex: 1 1 auto; min-height: 100%; width: 100%;
    display: flex; flex-direction: column; align-items: center; gap: .55rem;
    padding: .9rem 1.1rem calc(2.1rem + env(safe-area-inset-bottom, 0px));
    text-align: center;
}
.bs-cover__inner > * { flex: none; }

/* the house: a flex column; roof and stilts sized by its width (cqw), the photo takes the height that is left */
.bs-house {
    container-type: inline-size;
    position: relative; flex: 1 1 auto; min-height: 0; width: min(100%, 25rem);
    display: flex; flex-direction: column; align-items: center;
}
.bs-house__top { position: relative; z-index: 3; flex: none; width: var(--bs-roof, 64cqw); margin-top: calc(var(--bs-roof, 64cqw) * .11); container-type: inline-size; }
.bs-house__roof { display: block; width: 100%; height: auto; aspect-ratio: 320 / 230; overflow: visible; filter: drop-shadow(0 10px 14px rgb(0 0 0 / .45)); }
.bs-house__body { position: relative; z-index: 2; flex: 1 1 auto; min-height: 8.5rem; width: 100%; margin-top: calc(var(--bs-roof, 64cqw) * -.035); }
.bs-house__wing { position: absolute; z-index: 1; bottom: 0; left: 0; width: 25cqw; height: auto; aspect-ratio: 100 / 172; overflow: visible; filter: drop-shadow(0 8px 10px rgb(0 0 0 / .4)); }
.bs-house__wing--r { left: auto; right: 0; transform: scaleX(-1); }
.bs-house__base { position: relative; z-index: 2; flex: none; display: block; width: 100%; height: auto; aspect-ratio: 400 / 84; margin-top: -1px; overflow: visible; }
.bs-house__photo {
    position: absolute; z-index: 2; overflow: hidden; inset: 0 14%;
    background: var(--inv-primary);
    box-shadow: 0 0 0 2px var(--inv-accent), 0 0 0 5px color-mix(in srgb, var(--inv-deep) 85%, #000), 0 0 0 6px color-mix(in srgb, var(--inv-accent) 55%, transparent), 0 24px 40px -18px rgb(0 0 0 / .8);
}
.bs-house__photo > .bs-cloth { z-index: 0; --s: .8; }
.bs-house__img { position: absolute; inset: 0; background: var(--bs-photo, none) center 22% / cover no-repeat; transform-origin: 50% 30%; animation: bs-kenburns 22s ease-in-out infinite alternate; }
@keyframes bs-kenburns { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.bs-house__img::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgb(0 0 0 / .3), transparent 18%, transparent 52%, color-mix(in srgb, var(--inv-deep) 70%, transparent) 78%, color-mix(in srgb, var(--inv-deep) 92%, transparent));
}
/* the names and the date on the foot of the photo */
.bs-house__words { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: grid; justify-items: center; gap: .3rem; padding: 0 .4rem .85rem; }

/* the monogram sits in the carved lozenge of the gable */
.bs-mono {
    position: absolute; z-index: 4; left: 50%; top: 65.2%; transform: translate(-50%, -50%);
    display: inline-flex; align-items: center; gap: 2cqw;
    font: 400 8.6cqw/1 var(--bs-serif); color: var(--bs-goldtext);
    text-shadow: 0 1px 2px rgb(0 0 0 / .6);
}
.bs-mono__sep { width: 1px; height: 1em; background: var(--inv-accent); transform: rotate(22deg); }

.bs-cover__names {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 .45rem;
    font: 400 clamp(2.1rem, 10vw, 2.8rem)/1.12 var(--bs-script);
    background: linear-gradient(180deg, #fff8e6 10%, var(--bs-goldtext) 60%, var(--inv-accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 3px 10px rgb(0 0 0 / .45));
}
.bs-cover__amp { font: 400 .55em/1 var(--bs-serif); }
.bs-cover__date {
    display: flex; align-items: center; gap: .7rem;
    font: 700 .66rem/1.4 var(--bs-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--bs-cream);
    text-shadow: 0 1px 6px rgb(0 0 0 / .6);
}
.bs-cover__date::before, .bs-cover__date::after { content: ''; width: 1.6rem; height: 1px; background: var(--inv-accent); }

.bs-guest {
    position: relative; width: min(100%, 19rem); padding: .7rem 1.1rem .75rem;
    border-radius: 12px;
    background: color-mix(in srgb, var(--inv-primary) 45%, transparent);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 55%, transparent);
}
/* the jelujur stitch inside the edge */
.bs-guest::before { content: ''; position: absolute; inset: 5px; border-radius: 8px; border: 1px dashed color-mix(in srgb, var(--inv-accent) 45%, transparent); pointer-events: none; }
.bs-guest__label { font: 700 .6rem/1.4 var(--bs-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--bs-goldtext); }
.bs-guest__name { margin-top: .2rem; font: 400 1.2rem/1.3 var(--bs-serif); color: #fff; overflow-wrap: anywhere; }
.bs-open { --bs-btn-bg: var(--bs-goldfill); --bs-btn-fg: var(--inv-deep); }
.bs-cover .inv-button { background: var(--bs-goldfill); color: var(--inv-deep); }

/* the opening moment: the house rises, the gold lines draw once, the photo fades in from a slight zoom */
html.inv-anim .bs-house { animation: bs-rise 1s cubic-bezier(.2, .7, .2, 1) .1s both; }
html.inv-anim .bs-house__img { animation: bs-photo 1.2s ease-out .45s both, bs-kenburns 22s ease-in-out 1.65s infinite alternate; }
html.inv-anim .bs-draw { stroke-dasharray: 1; animation: bs-draw 1.3s ease-in-out .3s both; }
html.inv-anim .bs-cover__cloth { animation: bs-fade 1s ease-out both; }
@keyframes bs-rise { from { opacity: 0; transform: translateY(22px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes bs-photo { from { opacity: 0; transform: scale(1.12); } to { opacity: 1; transform: scale(1.02); } }
@keyframes bs-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes bs-fade { from { opacity: 0; } to { opacity: 1; } }

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

/* cover fit in px steps (never svh: Chrome on iOS measures it as the whole screen) */
@media (max-height: 800px) {
    .bs-house { --bs-roof: 58cqw; }
}
@media (max-height: 720px) {
    .bs-house { --bs-roof: 54cqw; }
    .bs-cover__inner { gap: .45rem; padding-top: .7rem; padding-bottom: 1.9rem; }
    .bs-guest { padding: .55rem 1rem .6rem; }
    .bs-guest__name { font-size: 1.1rem; }
    .bs-open.inv-button { padding: .75rem 1.35rem; }
}
@media (max-height: 640px) {
    .bs-house { --bs-roof: 48cqw; }
    .bs-house__base { width: 90%; }
    .bs-cover__names { font-size: clamp(1.9rem, 9vw, 2.3rem); }
    .bs-kicker { font-size: .62rem; }
    .bs-guest__label { font-size: .56rem; }
    .bs-cover__inner { padding-bottom: 1.8rem; }
}
@media (max-height: 580px) {
    .bs-house { --bs-roof: 42cqw; }
    .bs-house__body { min-height: 7.5rem; }
}

/* ======================================================================
   Hero (top of the page after opening)
   ====================================================================== */

.bs-hero {
    position: relative; overflow: hidden;
    min-height: min(100vh, 880px); min-height: min(100svh, 880px);
    display: flex; flex-direction: column; justify-content: flex-end;
    background: var(--inv-deep); color: var(--bs-cream); text-align: center;
}
.bs-hero__photo { position: absolute; inset: 0; background: var(--bs-photo, none) center 28% / cover no-repeat; }
.bs-hero__photo::after {
    content: ''; position: absolute; inset: 0;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--inv-deep) 35%, transparent) 0%, transparent 22%, color-mix(in srgb, var(--inv-deep) 50%, transparent) 48%, color-mix(in srgb, var(--inv-deep) 94%, transparent) 76%, var(--inv-deep) 100%),
        radial-gradient(70% 40% at 0% 100%, color-mix(in srgb, var(--inv-dye) 45%, transparent), transparent 70%),
        radial-gradient(70% 40% at 100% 100%, color-mix(in srgb, var(--inv-secondary) 40%, transparent), transparent 70%);
}
.bs-hero__inner { position: relative; z-index: 1; padding: 6rem 1.5rem 2.2rem; display: flex; flex-direction: column; align-items: center; }
.bs-roofline { display: block; width: 9.5rem; height: auto; aspect-ratio: 220 / 128; overflow: visible; filter: drop-shadow(0 4px 8px rgb(0 0 0 / .5)); }
.bs-hero .bs-kicker { margin-top: 1rem; }
.bs-hero__names {
    margin-top: .3rem;
    display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 .5rem;
    font: 400 clamp(2.8rem, 13vw, 3.5rem)/1.2 var(--bs-script); color: #fff;
    text-shadow: 0 4px 18px rgb(0 0 0 / .5);
}
.bs-hero__amp { font: 400 .5em/1 var(--bs-serif); color: var(--inv-accent); }
.bs-hero__date { margin-top: .4rem; font: 700 .72rem/1.4 var(--bs-sans); letter-spacing: .24em; text-transform: uppercase; color: color-mix(in srgb, #fff 90%, transparent); }
.bs-hero__quote { max-width: 21rem; margin-top: 1rem; font: italic 400 .95rem/1.6 var(--bs-sans); color: color-mix(in srgb, #fff 88%, transparent); }
.bs-scroll { position: relative; width: 1px; height: 2.6rem; margin-top: 1.4rem; background: color-mix(in srgb, #fff 25%, transparent); overflow: hidden; }
.bs-scroll span { position: absolute; left: 0; top: -1rem; width: 1px; height: 1rem; background: var(--inv-accent); animation: bs-drip 2.2s ease-in-out infinite; }
@keyframes bs-drip { to { transform: translateY(4rem); } }
.bs-hero > .bs-band { z-index: 1; }

/* ======================================================================
   Sections
   ====================================================================== */

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

.bs-section {
    position: relative; isolation: isolate; overflow: hidden;
    padding: 4.75rem 1.5rem;
    text-align: center; color: var(--bs-fg);
}
.bs-section > :not(.bs-layer) { position: relative; z-index: 1; }

/* warm light: dyed washes and a ghost of the motifs */
.bs-light {
    background:
        radial-gradient(60% 22% at 0% 8%, color-mix(in srgb, var(--inv-dye) 13%, transparent), transparent 70%),
        radial-gradient(60% 26% at 100% 55%, color-mix(in srgb, var(--inv-secondary) 12%, transparent), transparent 70%),
        radial-gradient(60% 20% at 15% 100%, color-mix(in srgb, var(--inv-accent) 18%, transparent), transparent 70%),
        var(--inv-background);
}
.bs-light::before {
    content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
    background: var(--inv-primary); opacity: .05;
    -webkit-mask: url(../img/sas-a.webp) 0 0 / 200px 240px repeat; mask: url(../img/sas-a.webp) 0 0 / 200px 240px repeat;
}

/* deep purple */
.bs-deep {
    --bs-fg: var(--bs-cream);
    --bs-muted: color-mix(in srgb, var(--inv-background) 88%, transparent);
    --bs-title: var(--bs-goldtext);
    --bs-gold: var(--inv-accent);
    --bs-line: color-mix(in srgb, var(--inv-accent) 55%, transparent);
    --bs-line-soft: color-mix(in srgb, var(--inv-accent) 24%, transparent);
    --bs-btn-bg: var(--bs-goldfill);
    --bs-btn-fg: var(--inv-deep);
    --bs-card-bg: color-mix(in srgb, var(--inv-deep) 62%, transparent);
    --bs-field-bg: color-mix(in srgb, var(--inv-deep) 70%, #000 10%);
    background:
        radial-gradient(70% 30% at 0% 0%, color-mix(in srgb, var(--inv-dye) 38%, transparent), transparent 70%),
        radial-gradient(70% 30% at 100% 100%, color-mix(in srgb, var(--inv-secondary) 40%, transparent), transparent 70%),
        linear-gradient(180deg, color-mix(in srgb, var(--inv-primary) 55%, var(--inv-deep)), var(--inv-deep));
}

/* turmeric cloth */
.bs-kunyit {
    --bs-fg: var(--inv-deep);
    --bs-muted: color-mix(in srgb, var(--inv-deep) 88%, transparent);
    --bs-title: var(--inv-deep);
    --bs-gold: color-mix(in srgb, var(--inv-primary) 85%, #000);
    --bs-line: color-mix(in srgb, var(--inv-deep) 50%, transparent);
    --bs-line-soft: color-mix(in srgb, var(--inv-deep) 22%, transparent);
    --bs-btn-bg: linear-gradient(135deg, var(--inv-primary), var(--inv-deep));
    background: var(--inv-accent);
    padding-top: 6rem; padding-bottom: 6rem;
}
/* a calmer patch of cloth behind the text */
.bs-kunyit::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(60% 45% at 50% 50%, color-mix(in srgb, var(--inv-accent) 80%, #fff6d8) 0%, color-mix(in srgb, var(--inv-accent) 55%, transparent) 60%, transparent 85%);
}
.bs-kunyit .bs-divider { --inv-accent: var(--inv-deep); }

/* a client photo behind a section */
.bs-bgphoto { overflow: hidden; }
.bs-bgphoto__img { position: absolute; inset: -44px 0; --inv-parallax: 34px; background: var(--bs-photo) center 30% / cover no-repeat; }
.bs-bgphoto::after { content: ''; position: absolute; inset: 0; }
.bs-light .bs-bgphoto__img { opacity: .26; filter: saturate(.75); }
.bs-light .bs-bgphoto::after {
    background:
        radial-gradient(70% 30% at 50% 0%, color-mix(in srgb, var(--inv-accent) 16%, transparent), transparent 70%),
        linear-gradient(180deg, color-mix(in srgb, var(--inv-background) 55%, transparent), color-mix(in srgb, var(--inv-background) 40%, transparent) 40%, color-mix(in srgb, var(--inv-background) 85%, transparent) 80%, var(--inv-background));
}
.bs-deep .bs-bgphoto__img { filter: saturate(.85) contrast(1.05); }
.bs-deep .bs-bgphoto::after {
    background:
        radial-gradient(80% 40% at 0% 100%, color-mix(in srgb, var(--inv-dye) 35%, transparent), transparent 70%),
        linear-gradient(180deg, color-mix(in srgb, var(--inv-deep) 92%, transparent), color-mix(in srgb, var(--inv-primary) 72%, transparent) 30%, color-mix(in srgb, var(--inv-deep) 84%, transparent) 70%, var(--inv-deep));
}

/* headings: a label on a brush of dye, a serif title, the lozenge divider */
.bs-heading { margin-bottom: 2.2rem; }
.bs-heading__label {
    display: inline-block; padding: .3rem .9rem;
    font: 800 .66rem/1.4 var(--bs-sans); letter-spacing: .32em; text-transform: uppercase; color: var(--bs-gold);
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--inv-dye) 12%, transparent) 20%, color-mix(in srgb, var(--inv-accent) 16%, transparent) 80%, transparent);
    border-radius: 999px;
}
.bs-deep .bs-heading__label { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--inv-dye) 40%, transparent) 20%, color-mix(in srgb, var(--inv-primary) 70%, transparent) 80%, transparent); }
.bs-kunyit .bs-heading__label { color: var(--inv-background); background: linear-gradient(90deg, transparent, var(--inv-primary) 18%, var(--inv-primary) 82%, transparent); }
.bs-heading__title { margin-top: .5rem; font: 400 clamp(1.85rem, 8.4vw, 2.3rem)/1.18 var(--bs-serif); color: var(--bs-title); }
.bs-divider { display: block; width: 9.5rem; height: auto; aspect-ratio: 160 / 20; margin: .9rem auto 0; overflow: visible; }

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

.bs-card {
    position: relative; overflow: hidden;
    background: var(--bs-card-bg);
    border: 1px solid var(--bs-line-soft); border-radius: 18px;
    box-shadow: 0 24px 44px -30px rgb(0 0 0 / .6);
}
.bs-deep .bs-card { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* ---------- opening ---------- */
.bs-opening { padding-top: 4.2rem; }
.bs-opening__label { margin-bottom: .9rem; }
.bs-arabic { font: 400 1.75rem/1.8 'Amiri', serif; color: var(--inv-primary); }
.bs-opening__greeting { margin-top: .3rem; font: 400 1.35rem/1.45 var(--bs-serif); color: var(--bs-title); }
.bs-opening__message { max-width: 24rem; margin: .8rem auto 0; color: var(--bs-muted); }
.bs-quote { position: relative; max-width: 22.5rem; margin: 3rem auto 0; padding: 0; }
/* a turmeric cloth peeking behind the purple panel */
.bs-quote__under {
    position: absolute; inset: -14px 16px 18px -4px; overflow: hidden; border-radius: 6px;
    transform: rotate(-3.5deg);
    box-shadow: 0 16px 30px -18px rgb(0 0 0 / .5);
}
.bs-quote__under > .bs-cloth { z-index: 0; }
.bs-quote__panel {
    position: relative; overflow: hidden; isolation: isolate;
    padding: 1.6rem 1.5rem 1.7rem; border-radius: 6px;
    color: #fff;
    box-shadow: 0 26px 46px -24px rgb(0 0 0 / .7), inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 50%, transparent);
}
.bs-quote__panel > .bs-cloth { z-index: -2; }
/* calm the cloth under the text; the jelujur stitch around the edge */
.bs-quote__panel::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(80% 70% at 50% 52%, color-mix(in srgb, var(--inv-deep) 88%, transparent) 30%, color-mix(in srgb, var(--inv-deep) 50%, transparent) 100%);
}
.bs-quote__panel::after { content: ''; position: absolute; inset: 7px; border: 1.5px dashed color-mix(in srgb, var(--inv-accent) 75%, transparent); border-radius: 3px; pointer-events: none; }
.bs-quote .bs-divider { margin: 0 auto .8rem; width: 7.5rem; }
.bs-quote blockquote { margin: 0; font: italic 400 1.02rem/1.65 var(--bs-sans); }
.bs-quote figcaption { margin-top: .9rem; font: 800 .66rem/1.4 var(--bs-sans); letter-spacing: .26em; text-transform: uppercase; color: var(--bs-goldtext); }

/* ---------- couple ---------- */
.bs-person { display: flex; flex-direction: column; align-items: center; }
.bs-person__figure { position: relative; width: min(60%, 210px); }
/* the dyed cloth panel offset behind the portrait */
.bs-person__cloth {
    position: absolute; top: 16%; bottom: -8%; left: -16%; right: 30%; overflow: hidden; border-radius: 4px;
    box-shadow: 0 18px 30px -16px rgb(0 0 0 / .7), inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 40%, transparent);
}
.bs-person__cloth > .bs-cloth { z-index: 0; --s: .85; }
.bs-person--flip .bs-person__cloth { left: 30%; right: -16%; }
.bs-person__frame {
    position: relative; aspect-ratio: 3 / 4.1; padding: 3px;
    background: linear-gradient(160deg, color-mix(in srgb, var(--inv-accent) 50%, #fff6dc), var(--inv-accent) 40%, color-mix(in srgb, var(--inv-accent) 70%, #4a2400));
    clip-path: polygon(50% 0, 100% 27%, 100% 100%, 0 100%, 0 27%);
    filter: drop-shadow(0 18px 22px rgb(0 0 0 / .4));
}
.bs-person__photo {
    display: block; width: 100%; height: 100%; object-fit: cover;
    clip-path: polygon(50% 0, 100% 27%, 100% 100%, 0 100%, 0 27%);
}
.bs-person__photo--empty {
    display: grid; place-items: center;
    background: linear-gradient(160deg, var(--inv-primary), var(--inv-deep));
    font: 400 4.4rem/1 var(--bs-script); color: var(--bs-goldtext);
}
.bs-person__role { margin-top: 1.6rem; font: 800 .64rem/1.4 var(--bs-sans); letter-spacing: .32em; text-transform: uppercase; color: var(--bs-gold); }
.bs-person__nick {
    margin-top: .1rem; font: 400 2.9rem/1.25 var(--bs-script);
    background: linear-gradient(180deg, #fff8e6, var(--bs-goldtext) 55%, var(--inv-accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bs-person__name { margin-top: .1rem; font: 400 1.3rem/1.35 var(--bs-serif); color: #fff; }
.bs-person__parents { margin-top: .5rem; font-size: .93rem; color: var(--bs-muted); }
.bs-person__parents strong { color: var(--bs-fg); font-weight: 700; }
.bs-amp { display: flex; align-items: center; justify-content: center; gap: .9rem; margin: 2.2rem 0; }
.bs-amp::before, .bs-amp::after {
    content: ''; width: 4rem; height: 10px;
    background: linear-gradient(90deg, transparent, var(--inv-accent)) 0 50% / 100% 1px no-repeat;
}
.bs-amp::after { transform: scaleX(-1); }
.bs-amp span {
    display: grid; place-items: center; width: 3.6rem; height: 3.6rem;
    font: 400 2rem/1 var(--bs-serif); color: var(--inv-deep);
    background: var(--bs-goldfill);
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

/* ---------- countdown (turmeric cloth) ---------- */
.bs-countdown__date {
    display: inline-flex; align-items: center; gap: .5rem; margin: -.6rem 0 1.5rem; padding: .4rem 1rem;
    border-radius: 999px; background: color-mix(in srgb, var(--inv-background) 70%, transparent);
    font: 800 .74rem/1.4 var(--bs-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--inv-deep);
}
.bs-countdown__date .bs-icon { color: var(--inv-primary); width: 1.15rem; height: 1.15rem; }
.inv-countdown { gap: .55rem; }
.inv-countdown__item {
    position: relative; overflow: hidden;
    flex: 1; max-width: 5rem; min-width: 0; padding: 1rem .25rem 1.3rem;
    border-radius: 6px; color: var(--bs-cream);
    background: linear-gradient(170deg, var(--inv-primary), var(--inv-deep));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 60%, transparent), 0 14px 24px -12px rgb(0 0 0 / .55);
}
/* a gigi haruan hem */
.inv-countdown__item::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
    background: conic-gradient(from 153.43deg at 50% 0, var(--inv-accent) 53.13deg, transparent 0) 0 0 / 8px 8px repeat-x;
}
.inv-countdown__value { font: 400 2rem/1.1 var(--bs-serif); color: #fff; }
.inv-countdown__label { margin-top: .2rem; font: 800 .56rem/1.2 var(--bs-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--bs-goldtext); }
.inv-countdown__done { font-style: italic; color: var(--bs-muted); }
.inv-countdown__actions { margin-top: 1.5rem; }
.inv-countdown__actions .inv-button { padding: .7rem 1rem; font-size: .6rem; letter-spacing: .1em; }

/* ---------- events ---------- */
.bs-events__list { max-width: 24rem; margin: 0 auto; }
.bs-event {
    position: relative; overflow: hidden; text-align: left;
    border-radius: 14px; background: var(--inv-surface);
    box-shadow: 0 28px 50px -30px rgb(0 0 0 / .55), 0 0 0 1px var(--bs-line-soft);
}
.bs-event__head { position: relative; isolation: isolate; aspect-ratio: 16 / 10.5; display: flex; align-items: flex-end; overflow: hidden; }
.bs-event__head > .bs-cloth { z-index: -2; }
.bs-event__photo { position: absolute; inset: 0; z-index: -2; background: var(--bs-photo) center 35% / cover no-repeat; }
.bs-event__head::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--inv-deep) 85%, transparent)); }
.bs-event__name { padding: 0 1.2rem .8rem; font: 400 2.3rem/1.15 var(--bs-script); color: #fff; text-shadow: 0 2px 10px rgb(0 0 0 / .5); overflow-wrap: anywhere; }
.bs-event > .bs-band { height: 22px; }
.bs-event > .bs-band::after, .bs-event > .bs-band > i { -webkit-mask-size: 52.8px 22px; mask-size: 52.8px 22px; }
.bs-event__body {
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .9rem 1rem; align-items: start;
    padding: 1.2rem 1.15rem 1.3rem;
}
.bs-event__day {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 4.4rem; padding: .7rem .3rem .6rem; border-radius: 4px; color: #fff; text-align: center;
    box-shadow: 0 12px 20px -12px rgb(0 0 0 / .6), inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 60%, transparent);
}
.bs-event__day > .bs-cloth { z-index: -2; --s: .7; }
.bs-event__day::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--inv-deep) 80%, transparent) 35%, color-mix(in srgb, var(--inv-deep) 30%, transparent)); }
.bs-event__day-num { font: 400 2.1rem/1 var(--bs-serif); }
.bs-event__day-month { margin-top: .3rem; font: 800 .56rem/1.2 var(--bs-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--bs-goldtext); }
.bs-event__info { min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.bs-event__date { font: 400 1.12rem/1.3 var(--bs-serif); color: var(--inv-primary); }
.bs-event__time, .bs-event__dress, .bs-event__venue { display: flex; align-items: flex-start; gap: .4rem; }
.bs-event__time { font: 800 .86rem/1.4 var(--bs-sans); color: var(--inv-label); }
.bs-event .bs-icon { width: 1.05rem; height: 1.05rem; margin-top: .12rem; color: var(--inv-primary); }
.bs-event__place { margin-top: .2rem; }
.bs-event__venue { font: 800 .98rem/1.4 var(--bs-sans); overflow-wrap: anywhere; }
.bs-event__address { padding-left: 1.45rem; font-size: .88rem; line-height: 1.5; color: var(--bs-muted); overflow-wrap: anywhere; }
.bs-event__dress { font-size: .88rem; color: var(--bs-muted); }
.bs-event__actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; margin-top: .2rem; }
.bs-event__actions .inv-button { justify-content: center; padding: .75rem .6rem; font-size: .6rem; letter-spacing: .08em; }
.bs-event__actions .inv-button:only-child { grid-column: 1 / -1; }
.bs-event__body:not(:has(.bs-event__day)) { grid-template-columns: minmax(0, 1fr); }
.bs-river { display: block; width: 100%; height: auto; aspect-ratio: 360 / 64; overflow: visible; }
.bs-event__sep { --bs-river: var(--inv-label); width: min(80%, 300px); margin: 1.6rem auto; opacity: .85; }

/* ---------- love story: zig-zag around a vertical sasirangan ribbon ---------- */
.bs-story { padding-left: 1rem; padding-right: 1rem; }
.bs-zig { position: relative; margin: 0; padding: 0; list-style: none; }
.bs-zig::before {
    content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 12px; transform: translateX(-50%);
    background:
        linear-gradient(90deg, transparent 5.5px, color-mix(in srgb, var(--inv-background) 85%, transparent) 5.5px 6.5px, transparent 6.5px) 0 0 / 100% 9px,
        conic-gradient(from -26.57deg at 0 50%, color-mix(in srgb, var(--inv-background) 80%, transparent) 53.13deg, transparent 0) 0 0 / 12px 8px repeat-y,
        linear-gradient(180deg, var(--inv-dye), var(--inv-primary) 35%, var(--inv-secondary) 70%, var(--inv-accent));
    -webkit-mask: linear-gradient(180deg, transparent, #000 5%, #000 95%, transparent); mask: linear-gradient(180deg, transparent, #000 5%, #000 95%, transparent);
    border-radius: 2px;
}
.bs-zig::before { background-repeat: repeat-y, repeat-y, no-repeat; }
.bs-zig__item {
    position: relative;
    display: grid; grid-template-columns: minmax(0, 1fr) 1.8rem minmax(0, 1fr); column-gap: .6rem; align-items: start;
    grid-template-areas: "text dot meta";
}
.bs-zig__item + .bs-zig__item { margin-top: 2.4rem; }
.bs-zig__item.is-flip { grid-template-areas: "meta dot text"; }
.bs-zig__dot {
    grid-area: dot; justify-self: center; margin-top: .2rem; width: 1.3rem; height: 1.3rem;
    background: var(--bs-goldfill); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
    box-shadow: inset 0 0 0 4px var(--inv-deep);
}
.bs-zig__text { grid-area: text; min-width: 0; text-align: right; }
.is-flip .bs-zig__text { text-align: left; }
.bs-zig__title { font: 400 1.2rem/1.25 var(--bs-serif); color: var(--bs-title); overflow-wrap: anywhere; }
.bs-zig__rule { display: block; width: 70%; margin: .45rem 0 .55rem auto; border-top: 1.5px dashed var(--bs-line); }
.is-flip .bs-zig__rule { margin-left: 0; margin-right: auto; }
.bs-zig__story { font-size: .86rem; line-height: 1.55; color: var(--bs-muted); overflow-wrap: anywhere; }
.bs-zig__meta { grid-area: meta; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; text-align: left; }
.is-flip .bs-zig__meta { align-items: flex-end; text-align: right; }
.bs-zig__date { font: 400 1.6rem/1.15 var(--bs-script); color: var(--bs-goldtext); overflow-wrap: anywhere; }
.bs-zig__photo {
    display: block; width: min(6.4rem, 100%); aspect-ratio: 1; object-fit: cover;
    border: 2.5px solid transparent; border-radius: 50% 50% 6px 6px;
    background: var(--bs-goldfill) border-box;
    box-shadow: 0 14px 24px -14px rgb(0 0 0 / .7);
}
.bs-zig__item--bare .bs-zig__meta::before {
    content: ''; width: 2.6rem; height: 1rem; opacity: .8;
    background: radial-gradient(circle, var(--bs-gold) 0 1.5px, transparent 2px) 0 50% / .65rem 1rem repeat-x;
}

/* ---------- gallery ---------- */
.inv-gallery { gap: .5rem; }
.inv-gallery__item { border-radius: 6px; box-shadow: 0 0 0 1px var(--bs-line), 0 16px 26px -20px rgb(0 0 0 / .7); }
.inv-gallery__item:first-child,
.inv-gallery__item:first-child ~ .inv-gallery__item:last-child:nth-child(even) { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.inv-gallery__item:first-child { border-radius: 60px 60px 6px 6px; }
.inv-gallery__play { background: color-mix(in srgb, var(--inv-deep) 70%, transparent); color: #fff; }

/* ---------- live streaming ---------- */
.bs-live__card { max-width: 24rem; margin: 0 auto; padding: 1.7rem 1.4rem; }
.bs-live__badge {
    display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem;
    border-radius: 999px; background: var(--inv-dye); color: #fff;
    font: 800 .66rem/1 var(--bs-sans); letter-spacing: .2em;
}
.bs-live__badge span { width: .45rem; height: .45rem; border-radius: 50%; background: #ffd2e2; animation: bs-blink 1.4s ease-in-out infinite; }
@keyframes bs-blink { 50% { opacity: .25; } }
.bs-live__text { margin: 1rem 0 .5rem; }
.bs-live__note { margin-bottom: 1.2rem; font: 400 1.08rem/1.5 var(--bs-serif); color: var(--bs-title); }
.bs-live__card .inv-button { margin-top: .6rem; }

/* ---------- gift: accounts as cards of purple sasirangan ---------- */
.inv-gift { display: grid; gap: .9rem; max-width: 22rem; 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 .85rem 1.3rem;
    border-radius: 10px; text-align: left; color: #fff;
    background:
        linear-gradient(118deg, transparent 22%, rgb(255 255 255 / .12) 36%, transparent 50%),
        linear-gradient(90deg, color-mix(in srgb, var(--inv-deep) 82%, transparent) 30%, color-mix(in srgb, var(--inv-deep) 45%, transparent)),
        url(../img/sas-a.webp) 0 0 / 120px 144px repeat,
        linear-gradient(90deg, color-mix(in srgb, var(--inv-dye) 82%, var(--inv-primary)), var(--inv-primary) 35%, color-mix(in srgb, var(--inv-secondary) 62%, var(--inv-primary))) 0 0 / 120px 100% repeat-x;
    box-shadow: 0 18px 30px -18px rgb(0 0 0 / .7), 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.7rem; 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, #f8e7bf, #d1a148 55%, #f0d69c);
    box-shadow: inset 0 0 0 1px rgb(0 0 0 / .2);
}
/* a gigi haruan hem along the card's foot */
.inv-gift__account::after {
    content: ''; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: .6rem;
    background: conic-gradient(from 153.43deg at 50% 0, var(--inv-accent) 53.13deg, transparent 0) 0 0 / 10px 10px repeat-x;
}
.inv-gift__bank {
    grid-area: bank; justify-self: end; min-width: 0; max-width: 100%; margin: 0;
    font: 800 .66rem/1.2 var(--bs-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: .75rem 0 .15rem; font: 700 1rem/1.25 var(--bs-sans); font-variant-numeric: tabular-nums; letter-spacing: .06em; color: #fff; overflow-wrap: anywhere; text-shadow: 0 1px 3px rgb(0 0 0 / .5); }
.inv-gift__holder { grid-area: holder; margin: 0; font: 800 .58rem/1.35 var(--bs-sans); letter-spacing: .1em; text-transform: uppercase; color: rgb(255 255 255 / .9); overflow-wrap: anywhere; }
.inv-gift__account .inv-button {
    grid-area: button; justify-self: start; margin-top: .6rem; padding: .35rem .7rem; border-radius: 999px;
    font-size: .6rem; letter-spacing: .06em; color: #fff; background: color-mix(in srgb, var(--inv-deep) 55%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 75%, transparent);
}
.inv-gift__account.inv-gift__address {
    display: block; min-height: 0; padding: 1.5rem 1.3rem; text-align: center; color: var(--bs-fg);
    background: var(--inv-surface);
    box-shadow: inset 0 0 0 1px var(--bs-line-soft), 0 20px 40px -28px rgb(0 0 0 / .5);
}
.inv-gift__address::before { content: none; }
.inv-gift__address::after { background: linear-gradient(90deg, var(--inv-dye), var(--inv-primary), var(--inv-secondary)); height: 5px; }
.inv-gift__address .inv-gift__bank { justify-self: auto; text-align: center; font: 800 .68rem/1.4 var(--bs-sans); letter-spacing: .3em; color: var(--bs-gold); }
.inv-gift__address .inv-gift__holder { margin: .6rem 0 .2rem; font: 400 1.2rem/1.3 var(--bs-serif); letter-spacing: .01em; text-transform: none; color: var(--bs-fg); }
.inv-gift__address p:not([class]) { color: var(--bs-muted); }
.inv-gift__address .inv-button { margin-top: 1rem; color: var(--bs-title); background: transparent; box-shadow: inset 0 0 0 1px var(--bs-line); }

/* ---------- rsvp & wishes forms ---------- */
.bs-form { max-width: 24rem; margin: 0 auto; padding: 0 1.25rem 1.5rem; text-align: left; }
.bs-form > .bs-band { margin: 0 -1.25rem 1.3rem; height: 30px; }
.bs-form > .bs-band::after, .bs-form > .bs-band > i { -webkit-mask-size: 72px 30px; mask-size: 72px 30px; }
.bs-light .bs-form { background: var(--inv-surface); }
.inv-form { gap: .9rem; }
.inv-form label, .inv-form__choices legend { font: 700 .78rem/1.4 var(--bs-sans); letter-spacing: .03em; color: var(--bs-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(--bs-line);
    background: var(--bs-field-bg); color: var(--bs-fg);
    font: 400 1rem/1.4 var(--bs-sans);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.inv-form input::placeholder, .inv-form textarea::placeholder { color: color-mix(in srgb, var(--bs-fg) 50%, transparent); }
.inv-form input:focus, .inv-form select:focus, .inv-form textarea:focus {
    outline: none; border-color: var(--bs-gold);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--inv-accent) 25%, transparent);
}
.inv-form option { background: #fff; color: var(--inv-text); }
.inv-form input[type=radio], .inv-form input[type=checkbox] { accent-color: var(--inv-accent); }
.bs-light .inv-form input[type=radio], .bs-light .inv-form input[type=checkbox] { accent-color: var(--inv-primary); }
.inv-form__choices label { color: var(--bs-fg); font-size: .92rem; }
.inv-form__notice { color: var(--bs-fg); background: color-mix(in srgb, var(--inv-accent) 16%, transparent); border: 1px solid var(--bs-line-soft); }
.inv-form .inv-button { justify-self: stretch; margin-top: .3rem; }
.inv-rsvp__deadline { font-style: italic; color: var(--bs-gold); }

.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-background) 70%, transparent);
    box-shadow: inset 0 0 0 1px var(--bs-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: var(--inv-surface);
    border: 1px solid var(--bs-line-soft); border-left: 3px solid var(--inv-primary);
}
.inv-wish:nth-child(3n+2) { border-left-color: var(--inv-secondary); }
.inv-wish:nth-child(3n) { border-left-color: var(--inv-dye); }
.inv-wish__name { font: 400 1rem/1.3 var(--bs-serif); color: var(--inv-primary); }
.inv-wish__message { font-size: .88rem; line-height: 1.5; }
.inv-wish__time { margin-top: .25rem; font: 400 .68rem/1.3 var(--bs-sans); letter-spacing: .04em; }
.inv-wish__reply { margin-top: .5rem; padding: .45rem .65rem; background: color-mix(in srgb, var(--inv-accent) 12%, transparent); }
.inv-wish__reply-text { font-size: .85rem; }
.inv-wishes__page-button { color: var(--inv-primary); }

/* ---------- closing: the photo melts into deep purple ---------- */
.bs-closing {
    min-height: 760px; display: flex; flex-direction: column; justify-content: flex-end;
    padding-top: 15rem; padding-bottom: 0;
    background:
        radial-gradient(90% 40% at 50% 62%, color-mix(in srgb, var(--inv-dye) 30%, transparent), transparent 70%),
        linear-gradient(180deg, var(--inv-primary), var(--inv-deep) 75%);
}
.bs-closing__photo {
    inset: 0 0 auto; height: 70%;
    background: var(--bs-photo) center 30% / cover no-repeat;
    -webkit-mask-image: linear-gradient(#000 35%, rgb(0 0 0 / .5) 62%, transparent); mask-image: linear-gradient(#000 35%, rgb(0 0 0 / .5) 62%, transparent);
}
.bs-closing__photo::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, color-mix(in srgb, var(--inv-deep) 40%, transparent), transparent 30%, color-mix(in srgb, var(--inv-primary) 70%, transparent));
}
.bs-closing__inner { max-width: 22rem; margin: 0 auto; }
.bs-roofline--closing { width: 11rem; margin: 0 auto 1rem; }
.bs-closing__thanks { margin-top: .4rem; font: 400 2.5rem/1.2 var(--bs-serif); color: #fff; text-shadow: 0 3px 14px rgb(0 0 0 / .45); }
.bs-closing__message { margin: .8rem auto 0; color: var(--bs-muted); font-size: .94rem; }
.bs-closing__names {
    margin-top: 1.2rem; font: 400 clamp(2.5rem, 12vw, 3.2rem)/1.2 var(--bs-script);
    background: linear-gradient(180deg, #fff8e6, var(--bs-goldtext) 55%, var(--inv-accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bs-closing__names span { font: 400 .5em/1 var(--bs-serif); }
.bs-closing__sign { margin-top: .4rem; font: 800 .68rem/1.4 var(--bs-sans); letter-spacing: .3em; text-transform: uppercase; color: var(--bs-goldtext); }
.bs-closing__river { --bs-river: var(--inv-accent); width: min(66%, 240px); margin: .6rem auto -10px; opacity: .9; }
.bs-closing > .bs-band--bottom { position: relative; inset: auto; z-index: 0; height: 28px; margin: 0 -1.5rem; }
.bs-closing > .bs-band--bottom::after, .bs-closing > .bs-band--bottom > i { -webkit-mask-size: 67.2px 28px; mask-size: 67.2px 28px; }

/* ======================================================================
   Shared components: nav, music, to-top, branding, check-in
   ====================================================================== */

body .inv-nav {
    --inv-nav-bg: color-mix(in srgb, var(--inv-deep) 94%, transparent);
    --inv-nav-text: color-mix(in srgb, var(--inv-background) 82%, transparent);
    --inv-nav-active: linear-gradient(135deg, var(--inv-dye), var(--inv-primary));
    border-color: color-mix(in srgb, var(--inv-accent) 40%, transparent);
    box-shadow: 0 14px 34px -12px rgb(0 0 0 / .6), inset 0 -2px 0 color-mix(in srgb, var(--inv-accent) 60%, transparent);
    font-family: var(--bs-sans);
}
.inv-nav__item.is-active { color: #fff; font-weight: 700; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 55%, transparent); }
.inv-music { right: max(1rem, calc((100vw - var(--bs-w)) / 2 + 1rem)); }
.inv-music__button { background: var(--bs-goldfill); color: var(--inv-deep); box-shadow: 0 8px 22px -8px rgb(0 0 0 / .6), 0 0 0 3px color-mix(in srgb, var(--inv-deep) 40%, transparent); }
.inv-to-top {
    left: max(1rem, calc((100vw - var(--bs-w)) / 2 + 1rem));
    background: var(--inv-deep); color: var(--inv-accent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 50%, transparent), 0 6px 16px -6px rgb(0 0 0 / .6);
}
.bs-branding { position: relative; z-index: 1; color: var(--inv-background); font-family: var(--bs-sans); background: var(--inv-deep); }
.inv-checkin { color: var(--inv-text); }
.inv-checkin__title { color: var(--inv-primary); }
/* the music player already leaves 4.5rem under the page; reserve the nav's room only when it is absent */
body:not(:has(.inv-music__space)) .bs-page::after { content: ''; display: block; height: 4.5rem; background: var(--inv-deep); }

/* ======================================================================
   Motion preferences
   ====================================================================== */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .bs-scroll span, .bs-live__badge span { animation: none; }
    .bs-cover--leave { transition: opacity .3s ease; }
    .bs-cover--gone { transform: none; }
    .bs-house__img { animation: none !important; }
}

/* intro scene (scene.json, sections/_scene): sasirangan drying on gold poles, the house, the lozenge, the river */
.bs-scene-svg { overflow: visible; }
.bs-scene-kain { position: absolute; inset: 0; filter: drop-shadow(0 12px 14px rgb(0 0 0 / .45)); }
.bs-scene-kain::before { content: ''; position: absolute; z-index: 2; left: -10%; right: -10%; top: 0; height: 8px; border-radius: 4px; background: var(--bs-goldfill); box-shadow: 0 2px 3px rgb(0 0 0 / .4); }
.bs-scene-kain__cloth {
    position: absolute; inset: 4px 0 0; isolation: isolate; overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 92% calc(100% - 14px), 83% 100%, 75% calc(100% - 14px), 67% 100%, 58% calc(100% - 14px), 50% 100%, 42% calc(100% - 14px), 33% 100%, 25% calc(100% - 14px), 17% 100%, 8% calc(100% - 14px), 0 100%);
}
.bs-scene-kain__cloth .bs-cloth { --s: .62; }
.bs-scene-kain__cloth::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgb(0 0 0 / .2), transparent 14%, rgb(255 255 255 / .1) 24%, transparent 34%); }
.bs-scene-kain__cloth::after { content: ''; position: absolute; left: 0; right: 0; bottom: 22px; border-top: 2px dashed var(--inv-accent); opacity: .85; }
