/*
 * Template "Blangkon Cilik" (Khitanan) — a Javanese (Yogya/Solo) walimatul khitan, refined and proud.
 * Sogan batik browns + gold prada on a warm cream page (variants: indigo wedelan, green, maroon).
 * Original drawings (inline SVG in the partials): gunungan frame, janur, melati, joglo roof, blangkon;
 * patterns here as masks: parang (bands, selvages) and kawung (cream sections, prayer frame); a CC0 batik
 * scan (img/batik-semen.webp, grey) tinted into every deep surface with an overlay blend.
 * Mobile-first, one column (~460px) on a deep batik backdrop on wide screens.
 *
 * Colours come from the chosen colour variant (template.json → <x-inv.head>):
 *   --inv-primary (sogan / indigo / green / maroon: titles, names on cream, cloths)   --inv-accent (gold)
 *   --inv-background (cream)   --inv-text   --inv-deep (dark sections)   --inv-shine (light gold, text on dark)
 *   --inv-soft (pale tint for the soft tone and chips)
 * Gold is only used for TEXT on dark surfaces; on cream, text is the primary/text colour.
 *
 * Section tones (set on each section in its partial): .bc-tone--deep (deep + tinted batik), --light (cream +
 * faint kawung), --soft (pale tint), --gold (a gold prada band). Deep and light alternate down the page.
 *
 * Motion only runs with html.inv-anim (set by <x-inv.head> unless the guest prefers reduced motion);
 * without it everything is shown finished.
 *
 * Contents: 1 base · 2 tones, bands & photo backgrounds · 3 shared pieces (heading, gunungan, janur,
 *           joglo, blangkon, melati, gong) · 4 cover · 5 sections in page order · 6 forms (RSVP, wishes)
 *           · 7 shared components · 8 screen sizes · 9 motion
 */

/* ---------- 1. base ---------- */
:root {
    /* defaults = the "Sogan Prada" variant (the variant's colours override these) */
    --inv-primary: #7a4421;
    --inv-accent: #c79a3e;
    --inv-background: #f8f0e1;
    --inv-text: #2a1a0f;
    --inv-deep: #2e1a0e;
    --inv-shine: #ecc970;
    --inv-soft: #ecdcc0;
    --inv-radius: 10px;

    --bc-display: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
    --bc-caps: 'Marcellus', 'Trajan Pro', Georgia, serif;
    --bc-body: 'Lora', Georgia, 'Times New Roman', serif;
    --bc-col: 460px;

    /* gold prada: a metallic sweep from the variant's gold */
    --bc-gold-dark: color-mix(in srgb, var(--inv-accent) 60%, #2a1600);
    --bc-gold-light: color-mix(in srgb, var(--inv-shine) 45%, #fff);
    --bc-prada: linear-gradient(118deg, var(--bc-gold-dark), var(--inv-accent) 20%, var(--inv-shine) 40%, var(--bc-gold-light) 49%, var(--inv-shine) 58%, var(--inv-accent) 78%, var(--bc-gold-dark));
    --bc-sogan-light: color-mix(in srgb, var(--inv-primary) 72%, #fff);
    --bc-paper: color-mix(in srgb, #fff 60%, var(--inv-background));
    --bc-title: color-mix(in srgb, var(--inv-primary) 82%, var(--inv-deep));
    --bc-muted: color-mix(in srgb, var(--inv-text) 82%, var(--inv-background));
    --bc-cream-muted: color-mix(in srgb, var(--inv-background) 84%, transparent);
    --bc-line: color-mix(in srgb, var(--inv-accent) 55%, transparent);
    --bc-ring: color-mix(in srgb, var(--inv-primary) 20%, transparent);

    /* janur (young coconut leaf) and melati: natural colours, the same in every variant */
    --bc-janur-light: #f6efbd;
    --bc-janur: #ddd07a;
    --bc-janur-dark: #9d9542;
    --bc-melati: #fffdf4;
    --bc-melati-edge: #c7cda4;
    --bc-melati-thread: #cdbd8c;

    /* parang band: a slanting S-blade between two fine rules, a mlinjon diamond (mask) */
    --bc-parang: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='18' viewBox='0 0 24 18'%3E%3Cpath d='M0 1.2h24M0 16.8h24' stroke='%23000' stroke-width='1.2'/%3E%3Cpath d='M3.5 14.5C3.5 8 9 6.6 11 9.4s7.5.6 7.5-6' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M21.6 12.4l1.7 1.7-1.7 1.7-1.7-1.7z'/%3E%3C/svg%3E");
    /* kawung: four ovals around a seed, in a 36px lattice (mask, line art) */
    --bc-kawung: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.3'%3E%3Cellipse cx='9' cy='9' rx='8.4' ry='4.4' transform='rotate(45 9 9)'/%3E%3Cellipse cx='27' cy='9' rx='8.4' ry='4.4' transform='rotate(-45 27 9)'/%3E%3Cellipse cx='9' cy='27' rx='8.4' ry='4.4' transform='rotate(-45 9 27)'/%3E%3Cellipse cx='27' cy='27' rx='8.4' ry='4.4' transform='rotate(45 27 27)'/%3E%3C/g%3E%3Cg%3E%3Cellipse cx='9' cy='9' rx='2.6' ry='1' transform='rotate(45 9 9)'/%3E%3Cellipse cx='27' cy='9' rx='2.6' ry='1' transform='rotate(-45 27 9)'/%3E%3Cellipse cx='9' cy='27' rx='2.6' ry='1' transform='rotate(-45 9 27)'/%3E%3Cellipse cx='27' cy='27' rx='2.6' ry='1' transform='rotate(45 27 27)'/%3E%3Ccircle cx='18' cy='18' r='1.7'/%3E%3Ccircle cx='0' cy='0' r='1.7'/%3E%3Ccircle cx='36' cy='0' r='1.7'/%3E%3Ccircle cx='0' cy='36' r='1.7'/%3E%3Ccircle cx='36' cy='36' r='1.7'/%3E%3C/g%3E%3C/svg%3E");
    /* the same kawung filled (for the prayer frame) */
    --bc-kawung-fill: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 36 36'%3E%3Cellipse cx='9' cy='9' rx='8.4' ry='4.4' transform='rotate(45 9 9)'/%3E%3Cellipse cx='27' cy='9' rx='8.4' ry='4.4' transform='rotate(-45 27 9)'/%3E%3Cellipse cx='9' cy='27' rx='8.4' ry='4.4' transform='rotate(-45 9 27)'/%3E%3Cellipse cx='27' cy='27' rx='8.4' ry='4.4' transform='rotate(45 27 27)'/%3E%3C/svg%3E");

    /* colours of the shared components */
    --inv-ambient-1: var(--inv-shine);
    --inv-ambient-2: var(--bc-gold-light);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--inv-background);
    color: var(--inv-text);
    font-family: var(--bc-body);
    font-size: 15px;
    line-height: 1.7;
    font-variant-numeric: lining-nums;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--inv-primary); }

.bc-preview {
    position: sticky; top: 0; z-index: 60; padding: .5rem 1rem; text-align: center;
    background: #fff4d6; color: #6b4e00; font-size: .8125rem;
}

/* the one column of the page; every section paints its own full-width background */
.bc-main { max-width: var(--bc-col); margin: 0 auto; }
.bc-branding { max-width: var(--bc-col); margin: 0 auto; }

.bc-section { position: relative; isolation: isolate; overflow: hidden; padding: 4.4rem 1.4rem; text-align: center; }
.bc-section > p { margin: 0 auto 1rem; max-width: 34ch; }

.bc-arabic { font-family: 'Amiri', 'Traditional Arabic', serif; line-height: 1.95; color: var(--inv-primary); }
.bc-amp { font-family: var(--bc-display); font-style: italic; }

/* a small rounded link with an icon (Instagram) */
.bc-chip {
    display: inline-flex; align-items: center; gap: .35rem; min-height: 2.25rem; padding: .3rem .95rem;
    border-radius: 999px; font-size: .82rem; font-weight: 600; text-decoration: none; color: var(--inv-primary);
    background: #fff; box-shadow: inset 0 0 0 1px var(--bc-line);
}
.bc-chip .bc-icon { width: 1rem; height: 1rem; }
.bc-icon { width: 1.15rem; height: 1.15rem; flex: none; }

/* text in gold prada (only on dark surfaces) */
.bc-gold-text,
.bc-cover__names, .bc-closing__names, .bc-event__day {
    background: var(--bc-prada); -webkit-background-clip: text; background-clip: text; color: var(--inv-shine);
    -webkit-text-fill-color: transparent;
}

/* gold button */
.bc-button-gold, .bc-main .inv-button.bc-button-gold {
    color: var(--inv-deep); background: var(--bc-prada); background-size: 200% 100%; background-position: 30% 0;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--bc-gold-light) 60%, transparent) inset, 0 10px 22px -12px rgb(0 0 0 / .6);
    font-family: var(--bc-caps); letter-spacing: .08em;
}

/* ---------- 2. tones, bands & photo backgrounds ---------- */

/* deep: the deep colour with a primary glow, and the batik scan tinted into it */
.bc-tone--deep {
    color: var(--inv-background);
    background:
        radial-gradient(90% 45% at 15% 0%, color-mix(in srgb, var(--inv-primary) 75%, transparent), transparent 75%),
        radial-gradient(70% 40% at 100% 100%, color-mix(in srgb, var(--inv-primary) 45%, transparent), transparent 75%),
        var(--inv-deep);
}
.bc-tone--deep::before,
.bc-cover__batik,
.bc-cloth__fabric::before,
.bc-stream__body::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: var(--bc-batik) center / 340px auto repeat; mix-blend-mode: overlay; opacity: .5;
}
.bc-tone--deep a:not(.inv-button) { color: var(--inv-shine); }
.bc-tone--deep .bc-arabic { color: var(--inv-shine); }

/* light: warm cream, a soft glow and a faint kawung lattice */
.bc-tone--light {
    background:
        radial-gradient(70% 30% at 100% 0%, color-mix(in srgb, var(--inv-soft) 70%, transparent), transparent 75%),
        radial-gradient(60% 30% at 0% 100%, color-mix(in srgb, var(--inv-accent) 14%, transparent), transparent 75%),
        var(--inv-background);
}
.bc-tone--soft { background: linear-gradient(180deg, var(--inv-soft), color-mix(in srgb, var(--inv-soft) 55%, var(--inv-background))); }
.bc-tone--light::before, .bc-tone--soft::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: var(--inv-primary); opacity: .07;
    -webkit-mask: var(--bc-kawung) center top / 36px 36px repeat; mask: var(--bc-kawung) center top / 36px 36px repeat;
}

/* gold: a full gold prada band with a faint parang */
.bc-tone--gold { color: var(--inv-deep); background: var(--bc-prada); }
.bc-tone--gold::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--inv-deep); opacity: .08;
    -webkit-mask: var(--bc-parang) center / 30px 22px repeat; mask: var(--bc-parang) center / 30px 22px repeat;
}

/* the parang band: gold blades on the deep colour (section edges, cards, cloth selvages) */
.bc-band { position: relative; height: 18px; background: var(--inv-deep); overflow: hidden; }
.bc-band::before {
    content: ''; position: absolute; inset: 0; background: var(--bc-prada);
    -webkit-mask: var(--bc-parang) left center / 24px 18px repeat-x; mask: var(--bc-parang) left center / 24px 18px repeat-x;
}
.bc-section__band { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; }
.bc-section__band--top { top: 0; bottom: auto; }

/* a client photo behind a section, under a strong gradient of the section's own tone */
.bc-bgphoto { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.bc-bgphoto img { display: block; width: 100%; height: calc(100% + 80px); margin-top: -40px; object-fit: cover; object-position: center 40%; --inv-parallax: 40px; }
.bc-bgphoto::after { content: ''; position: absolute; inset: 0; }
.bc-tone--deep .bc-bgphoto::after {
    background:
        radial-gradient(90% 50% at 20% 10%, color-mix(in srgb, var(--inv-primary) 40%, transparent), transparent),
        linear-gradient(180deg,
            color-mix(in srgb, var(--inv-deep) 88%, transparent),
            color-mix(in srgb, var(--inv-deep) 70%, transparent) 45%,
            color-mix(in srgb, var(--inv-deep) 93%, transparent));
}
/* with a photo the batik overlay is lighter, so the photo still shows */
.bc-tone--deep:has(.bc-bgphoto)::before { opacity: .22; z-index: -1; }

/* ---------- 3. shared pieces ---------- */

/* section heading: Javanese label in spaced caps, Indonesian serif title, a gold divider with a kawung */
.bc-heading { margin: 0 0 2.1rem; }
.bc-heading__label {
    margin: 0 0 .55rem; font-family: var(--bc-caps); font-size: .76rem; line-height: 1.3; letter-spacing: .3em;
    text-transform: uppercase; color: var(--inv-primary);
}
.bc-heading__title {
    margin: 0; font-family: var(--bc-display); font-size: 2.55rem; font-weight: 600; line-height: 1.04;
    letter-spacing: -.005em; color: var(--bc-title);
}
.bc-heading__title em { font-style: italic; font-weight: 500; color: var(--inv-primary); }
.bc-divider { display: flex; align-items: center; justify-content: center; gap: .55rem; margin-top: .8rem; }
.bc-divider::before, .bc-divider::after { content: ''; width: 3.2rem; height: 1.5px; background: var(--bc-prada); transform-origin: right; }
.bc-divider::after { transform-origin: left; }
.bc-divider svg { width: 1.15rem; height: 1.15rem; fill: var(--inv-accent); }
.bc-divider__seed { fill: var(--inv-deep); }
.bc-heading--left { text-align: left; }
.bc-heading--left .bc-divider { justify-content: flex-start; }
.bc-heading--left .bc-divider::before { display: none; }
.bc-tone--deep .bc-heading__label { color: var(--inv-shine); }
.bc-tone--deep .bc-heading__title { color: var(--inv-background); }
.bc-tone--deep .bc-heading__title em { color: var(--inv-shine); }
.bc-tone--deep .bc-divider svg { fill: var(--inv-shine); }
.bc-tone--gold .bc-heading__label, .bc-tone--gold .bc-heading__title, .bc-tone--gold .bc-heading__title em { color: var(--inv-deep); }
.bc-tone--gold .bc-divider::before, .bc-tone--gold .bc-divider::after { background: var(--inv-deep); }
.bc-tone--gold .bc-divider svg { fill: var(--inv-deep); }
.bc-tone--gold .bc-divider__seed { fill: var(--inv-shine); }

/* the gunungan frame (sections/_gunungan): photo window under the SVG */
.bc-gunungan { --g-w: 16rem; position: relative; width: var(--g-w); aspect-ratio: 300 / 420; margin: 0; }
.bc-gunungan__art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 18px 26px rgb(0 0 0 / .45)); }
.bc-gunungan__window {
    position: absolute; left: 20%; top: 26.19%; width: 60%; height: 66.19%; overflow: hidden;
    border-radius: 50% 50% 0 0 / 32.37% 32.37% 0 0; background: var(--inv-deep);
}
.bc-gunungan__photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 16%; }
.bc-gunungan__empty {
    position: absolute; inset: 0; display: grid; place-items: center; isolation: isolate;
    background: radial-gradient(80% 55% at 50% 30%, color-mix(in srgb, var(--inv-accent) 35%, transparent), transparent 70%), linear-gradient(170deg, var(--inv-primary), var(--inv-deep));
}
.bc-gunungan__empty::before {
    content: ''; position: absolute; inset: 0; z-index: -1; background: var(--bc-batik) center / 260px auto; mix-blend-mode: overlay; opacity: .5;
}
.bc-gunungan__initial {
    font-family: var(--bc-display); font-weight: 600; line-height: 1; font-size: calc(var(--g-w) * .34);
    background: var(--bc-prada); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--inv-shine);
    filter: drop-shadow(0 4px 10px rgb(0 0 0 / .35));
}
/* the closing emblem is small: thicker tendrils so the tree of life still reads */
.bc-gunungan--outline .bc-gunungan__crown path { stroke-width: 4.6px; }
.bc-gunungan__initial--many { font-size: calc(var(--g-w) * .18); white-space: nowrap; }

/* janur at the sides of the cover gunungan (the right one is the left mirrored) */
.bc-janur { display: block; overflow: visible; }
.bc-janur--right { transform: scaleX(-1); }
.bc-janur__sway { transform-box: view-box; transform-origin: 70px 418px; }

/* joglo roof, blangkon */
.bc-joglo, .bc-blangkon, .bc-melati { display: block; overflow: visible; }

/* gamelan gong (rundown markers): rim, face and the raised boss, all in gradients */
.bc-gong {
    position: relative; display: block; width: 3.1rem; aspect-ratio: 1; border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, transparent 48%, color-mix(in srgb, var(--bc-gold-dark) 70%, transparent) 50%, transparent 54%),
        radial-gradient(circle at 34% 28%, var(--bc-gold-light), var(--inv-shine) 22%, var(--inv-accent) 52%, var(--bc-gold-dark) 88%);
    box-shadow: inset 0 0 0 2.5px var(--bc-gold-dark), inset 0 0 0 4px color-mix(in srgb, var(--inv-shine) 70%, transparent), 0 0 0 4px var(--inv-deep), 0 8px 16px -4px rgb(0 0 0 / .6);
}
.bc-gong__boss {
    position: absolute; left: 50%; top: 50%; width: 36%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%);
    background: radial-gradient(circle at 35% 30%, #fff8dc, var(--inv-shine) 30%, var(--inv-accent) 62%, var(--bc-gold-dark));
    box-shadow: 0 2px 4px rgb(0 0 0 / .45), 0 0 0 2px color-mix(in srgb, var(--bc-gold-dark) 60%, transparent);
}

/* ---------- 4. cover ---------- */
.bc-cover {
    position: fixed; inset: 0; z-index: 30; overflow-x: hidden; overflow-y: auto;
    display: flex; flex-direction: column; align-items: center; justify-content: safe center;
    min-height: 100svh; padding: 1.6rem 1.2rem 1.9rem;
    isolation: isolate; color: var(--inv-background);
    background:
        radial-gradient(60% 34% at 50% 28%, color-mix(in srgb, var(--inv-shine) 22%, transparent), transparent 75%),
        radial-gradient(90% 50% at 50% 0%, color-mix(in srgb, var(--inv-primary) 85%, transparent), transparent 80%),
        linear-gradient(180deg, var(--inv-deep), color-mix(in srgb, var(--inv-deep) 85%, #000));
    transition: opacity .9s ease;
}
.bc-cover__batik { opacity: .62; }
.bc-cover__inner { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 400px; transition: transform .9s cubic-bezier(.5, 0, .3, 1); }

/* the art: the gunungan centred, a janur on each side (partly behind its edge) */
.bc-cover { --g-cover: min(72vw, 18.5rem, calc(50svh / 1.4)); }
.bc-cover__art { position: relative; width: var(--g-cover); }
.bc-gunungan--cover { --g-w: var(--g-cover); position: relative; z-index: 1; }
.bc-cover__janur { position: absolute; bottom: 1%; height: 96%; width: auto; aspect-ratio: 90 / 420; z-index: 0; }
.bc-janur--left { left: calc(var(--g-cover) * -.2); }
.bc-janur--right { right: calc(var(--g-cover) * -.2); }

.bc-cover__text { display: flex; flex-direction: column; align-items: center; margin-top: .9rem; text-align: center; }
.bc-cover__title {
    display: flex; align-items: center; gap: .7rem; margin: 0; font-family: var(--bc-caps); font-size: .74rem; line-height: 1.3;
    letter-spacing: .3em; text-transform: uppercase; color: var(--inv-shine);
}
.bc-cover__title::before, .bc-cover__title::after { content: ''; width: 1.8rem; height: 1px; background: var(--bc-prada); }
.bc-cover__names {
    margin: .2rem 0 0; font-family: var(--bc-display); font-weight: 600; font-size: 3.6rem; line-height: 1;
    letter-spacing: .01em; overflow-wrap: anywhere; filter: drop-shadow(0 3px 10px rgb(0 0 0 / .35));
}
.bc-cover--many .bc-cover__names { font-size: 2.6rem; }
.bc-cover__date {
    margin: .4rem 0 0; font-family: var(--bc-caps); font-size: .86rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--inv-background);
}
.bc-cover__quote {
    max-width: 30ch; margin: .45rem 0 0; font-family: var(--bc-display); font-style: italic; font-weight: 500;
    font-size: 1.08rem; line-height: 1.35; color: var(--bc-cream-muted);
}
.bc-cover__guest {
    position: relative; width: min(100%, 18.5rem); margin: .9rem 0 0; padding: .45rem 1rem .55rem;
    background: color-mix(in srgb, var(--inv-deep) 55%, transparent);
    box-shadow: inset 0 0 0 1px var(--bc-line), inset 0 0 0 4px color-mix(in srgb, var(--inv-deep) 55%, transparent), inset 0 0 0 5px color-mix(in srgb, var(--inv-accent) 25%, transparent);
}
.bc-cover__guest p { margin: 0; font-family: var(--bc-caps); font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--inv-shine); }
.bc-cover__guest-name { display: block; font-family: var(--bc-display); font-size: 1.3rem; font-weight: 600; line-height: 1.25; color: var(--inv-background); overflow-wrap: anywhere; }
.bc-cover__open { margin-top: .95rem; min-height: 2.9rem; padding: .65rem 1.9rem; font-size: .86rem; }
.bc-cover .bc-cover__open { color: var(--inv-deep); background: var(--bc-prada); font-family: var(--bc-caps); letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 0 0 1px var(--bc-gold-light) inset, 0 12px 24px -12px rgb(0 0 0 / .8); }

/* opening: the cover fades and lifts away */
.bc-cover--leave { transition: opacity .9s ease .1s; }
.bc-cover--gone { opacity: 0; }
.bc-cover--gone .bc-cover__inner { transform: translateY(-2.5rem); }

/* ---------- 5. sections ---------- */

/* opening: a pendopo — joglo roof, a hall between two gold saka, a plinth */
.bc-opening { padding: 3.6rem 1.3rem 5.2rem; }
.bc-pendopo { position: relative; max-width: 23.5rem; margin: 0 auto; }
.bc-pendopo__roof { width: 112%; margin: 0 -6% -1px; filter: drop-shadow(0 10px 14px rgb(0 0 0 / .35)); }
.bc-pendopo__hall {
    position: relative; padding: 1.7rem 2.1rem 1.9rem;
    background: linear-gradient(180deg, color-mix(in srgb, var(--inv-deep) 72%, transparent), color-mix(in srgb, var(--inv-deep) 40%, transparent));
}
/* the two saka guru: gold posts with a capital and a base */
.bc-pendopo__hall::before, .bc-pendopo__hall::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 7px; background: var(--bc-prada);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--inv-deep) 60%, transparent);
}
.bc-pendopo__hall::before { left: .55rem; }
.bc-pendopo__hall::after { right: .55rem; }
.bc-pendopo__floor { height: 14px; margin: 0 -.6rem; background: var(--inv-deep); box-shadow: inset 0 2px 0 var(--inv-accent), inset 0 -1px 0 color-mix(in srgb, var(--inv-accent) 50%, transparent); }
.bc-pendopo__floor::after { content: ''; display: block; height: 9px; margin: 0 -.9rem; transform: translateY(14px); background: color-mix(in srgb, var(--inv-deep) 80%, #000); box-shadow: inset 0 1px 0 var(--bc-line), 0 8px 14px -6px rgb(0 0 0 / .5); }
.bc-pendopo__label { margin: 0 0 .6rem; font-family: var(--bc-caps); font-size: .78rem; letter-spacing: .32em; text-transform: uppercase; color: var(--inv-shine); }
.bc-opening__basmalah { margin: 0 0 .7rem; font-size: 1.85rem; }
.bc-opening__greeting { margin: 0 auto .8rem; max-width: 24ch; font-family: var(--bc-display); font-size: 1.4rem; font-weight: 600; font-style: italic; line-height: 1.3; color: var(--inv-background); }
.bc-opening__message { margin: 0 auto; max-width: 30ch; font-size: .95rem; color: var(--bc-cream-muted); }

/* child: the serat card(s), then the beskap panel */
.bc-child__list { display: grid; gap: 2.2rem 1rem; }
.bc-child__list--2, .bc-child__list--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bc-child__list--3 > :last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - .5rem); }
.bc-serat { position: relative; padding-top: 3.2rem; }
.bc-serat__crest {
    position: absolute; left: 50%; top: 0; z-index: 2; width: 6.2rem; transform: translateX(-50%);
    filter: drop-shadow(0 8px 10px color-mix(in srgb, var(--inv-deep) 40%, transparent));
}
.bc-serat__paper {
    position: relative; padding: 3rem 1.3rem 2.9rem; background: var(--bc-paper);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 70%, transparent), inset 0 0 0 7px var(--bc-paper),
        inset 0 0 0 8px color-mix(in srgb, var(--inv-primary) 45%, transparent), 0 20px 34px -22px color-mix(in srgb, var(--inv-deep) 70%, transparent),
        10px 10px 0 0 var(--inv-soft);
}
/* the wedana gate: a pointed gold arch rising from the top rule behind the crest */
.bc-serat__paper::before {
    content: ''; position: absolute; left: 50%; top: -2.3rem; width: 12rem; height: 3.9rem; transform: translateX(-50%);
    background: var(--bc-paper); clip-path: polygon(0 100%, 18% 100%, 32% 52%, 50% 0, 68% 52%, 82% 100%, 100% 100%);
}
.bc-serat__paper::after {
    content: ''; position: absolute; left: 50%; top: -2.3rem; width: 12rem; height: 3.9rem; transform: translateX(-50%);
    background: var(--inv-accent); clip-path: polygon(0 100%, 18% 100%, 32% 52%, 50% 0, 68% 52%, 82% 100%, 100% 100%, 82% 96%, 66% 96%, 50% 6%, 34% 96%, 18% 96%);
}
/* parang selvage along the foot of the letter, inside the double rule */
.bc-serat__band { position: absolute; left: 9px; right: 9px; bottom: 9px; height: 14px; }
.bc-serat__band::before { -webkit-mask-size: 19px 14px; mask-size: 19px 14px; }
.bc-serat__photo {
    position: relative; width: 9.6rem; aspect-ratio: 4 / 5; margin: 0 auto 1.1rem; overflow: hidden;
    border-radius: 50% 50% 6px 6px / 38% 38% 6px 6px; background: linear-gradient(170deg, var(--inv-primary), var(--inv-deep));
    box-shadow: 0 0 0 3px var(--bc-paper), 0 0 0 4.5px var(--inv-accent), 0 14px 24px -14px color-mix(in srgb, var(--inv-deep) 80%, transparent);
}
.bc-serat__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.bc-serat__initial {
    display: grid; place-items: center; height: 100%; font-family: var(--bc-display); font-size: 4.2rem; font-weight: 600;
    background: var(--bc-prada); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.bc-serat__nickname { margin: 0; font-family: var(--bc-display); font-size: 3.1rem; font-weight: 600; line-height: 1; color: var(--inv-primary); }
.bc-serat__name { margin: .45rem 0 .7rem; font-family: var(--bc-caps); font-size: 1.02rem; font-weight: 400; line-height: 1.4; letter-spacing: .07em; color: var(--inv-text); overflow-wrap: anywhere; }
.bc-serat__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin: 0 0 .8rem; font-size: .8rem; font-weight: 600; color: var(--bc-title); }
.bc-serat__meta span { padding: .22rem .8rem; border-radius: 999px; background: var(--inv-soft); }
.bc-child__list--2 .bc-serat__paper, .bc-child__list--3 .bc-serat__paper { padding: 2.6rem .7rem 1.6rem; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 70%, transparent), inset 0 0 0 5px var(--bc-paper), inset 0 0 0 6px color-mix(in srgb, var(--inv-primary) 45%, transparent), 6px 6px 0 0 var(--inv-soft); }
.bc-child__list--2 .bc-serat__photo, .bc-child__list--3 .bc-serat__photo { width: 6.6rem; }
.bc-child__list--2 .bc-serat__nickname, .bc-child__list--3 .bc-serat__nickname { font-size: 2.1rem; }
.bc-child__list--2 .bc-serat__name, .bc-child__list--3 .bc-serat__name { font-size: .82rem; }
.bc-child__list--2 .bc-serat__crest, .bc-child__list--3 .bc-serat__crest { width: 4.6rem; }
.bc-child__list--2 .bc-serat__paper::before, .bc-child__list--2 .bc-serat__paper::after,
.bc-child__list--3 .bc-serat__paper::before, .bc-child__list--3 .bc-serat__paper::after { width: 8rem; height: 3rem; top: -1.8rem; }

/* the beskap panel: a deep jacket front, the diagonal closing edge with gold buttons */
.bc-beskap {
    position: relative; margin: 2.4rem 0 0; padding: 1.4rem 1.3rem 1.4rem 4.2rem; text-align: left; overflow: hidden;
    color: var(--inv-background); background: linear-gradient(150deg, var(--inv-primary), var(--inv-deep));
    border-radius: 4px 4px 18px 18px; box-shadow: 0 0 0 1px var(--bc-line), 0 20px 34px -20px color-mix(in srgb, var(--inv-deep) 80%, transparent);
}
.bc-beskap::before {
    content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 3.2rem;
    background: linear-gradient(160deg, color-mix(in srgb, var(--inv-primary) 70%, #fff 8%), var(--inv-deep));
    clip-path: polygon(0 0, 100% 0, 62% 100%, 0 100%);
    box-shadow: inset -1px 0 0 var(--inv-accent);
}
.bc-beskap::after {
    content: ''; position: absolute; top: 0; bottom: 0; left: calc(3.2rem - 1px); width: 2px; background: var(--bc-prada);
    transform-origin: top; transform: skewX(-9deg);
}
/* the stand collar trim */
.bc-beskap { border-top: 3px solid var(--inv-accent); }
.bc-beskap__buttons { position: absolute; top: 0; bottom: 0; left: 2.3rem; z-index: 1; display: flex; flex-direction: column; justify-content: space-evenly; transform: skewX(-9deg); transform-origin: top; }
.bc-beskap__buttons i { display: block; width: .62rem; height: .62rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6d0, var(--inv-shine) 35%, var(--bc-gold-dark)); box-shadow: 0 1px 2px rgb(0 0 0 / .5); }
.bc-beskap__label { margin: 0 0 .3rem; font-family: var(--bc-caps); font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--inv-shine); }
.bc-beskap__names { display: flex; flex-direction: column; margin: 0; font-family: var(--bc-display); font-size: 1.45rem; font-weight: 600; line-height: 1.3; }
.bc-beskap__names .bc-amp { font-size: 1.1rem; color: var(--inv-shine); }
.bc-beskap__address { display: flex; align-items: flex-start; gap: .5rem; margin: .9rem 0 0; padding-top: .8rem; font-size: .86rem; color: var(--bc-cream-muted); border-top: 1px solid color-mix(in srgb, var(--inv-accent) 35%, transparent); }
.bc-beskap__address .bc-icon { margin-top: .2rem; color: var(--inv-shine); }

/* message: gold quote mark, big italic words along a gold rule, a faint blangkon in the corner */
.bc-message { text-align: left; }
.bc-message__blangkon { position: absolute; right: -2.2rem; bottom: 1.2rem; z-index: -1; width: 12rem; opacity: .2; transform: rotate(-8deg); }
.bc-message__quote { position: relative; margin: 0; padding: 0 0 0 1.25rem; border-left: 2px solid var(--inv-accent); }
.bc-message__mark { display: block; width: 2.6rem; height: 2rem; margin: 0 0 .7rem; fill: var(--inv-shine); }
.bc-message__quote p { margin: 0; font-family: var(--bc-display); font-size: 1.45rem; font-style: italic; font-weight: 500; line-height: 1.45; color: var(--inv-background); }
.bc-message__quote cite {
    display: inline-block; margin-top: 1.2rem; padding: .3rem .95rem; border-radius: 999px; font-style: normal; font-family: var(--bc-caps);
    font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--inv-deep); background: var(--bc-prada);
}

/* events: a framed card — parang selvage, photo with an inner gold line, a deep date tile overlapping it */
.bc-event {
    position: relative; margin: 0 12px 0 0; text-align: left; background: var(--bc-paper);
    box-shadow: 0 0 0 1px var(--bc-line), 12px 12px 0 0 var(--inv-soft), 0 24px 36px -26px color-mix(in srgb, var(--inv-deep) 70%, transparent);
}
.bc-event + .bc-event { margin-top: 2.8rem; }
.bc-event--flip { margin: 0 0 0 12px; box-shadow: 0 0 0 1px var(--bc-line), -12px 12px 0 0 color-mix(in srgb, var(--inv-accent) 40%, transparent), 0 24px 36px -26px color-mix(in srgb, var(--inv-deep) 70%, transparent); }
.bc-event + .bc-event--flip { margin-top: 2.8rem; }
.bc-event__media { position: relative; margin: .8rem .8rem 0; }
.bc-event__media::after { content: ''; position: absolute; inset: 7px; border: 1px solid color-mix(in srgb, #fff 70%, transparent); pointer-events: none; }
.bc-event__photo { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 40%; }
.bc-event__date {
    position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .8rem; margin: -2.3rem 0 0 1.4rem; padding: .55rem 1.1rem .55rem .8rem;
    background: linear-gradient(150deg, var(--inv-primary), var(--inv-deep)); box-shadow: inset 0 0 0 1px var(--inv-accent), inset 0 0 0 4px color-mix(in srgb, var(--inv-deep) 70%, transparent), inset 0 0 0 5px color-mix(in srgb, var(--inv-accent) 35%, transparent), 0 12px 20px -10px rgb(0 0 0 / .55);
}
.bc-event--flip .bc-event__date { float: right; margin: -2.3rem 1.4rem 0 0; }
.bc-event--nophoto .bc-event__date, .bc-event--flip.bc-event--nophoto .bc-event__date { float: none; margin: 1.2rem 0 0 1.2rem; }
.bc-event__day { font-family: var(--bc-caps); font-size: 2.6rem; line-height: 1; }
.bc-event__when { display: flex; flex-direction: column; color: var(--inv-background); }
.bc-event__weekday { font-family: var(--bc-display); font-size: 1.35rem; font-weight: 600; line-height: 1.1; }
.bc-event__month { font-family: var(--bc-caps); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--inv-shine); }
.bc-event__body { clear: both; padding: 1rem 1.2rem 1.4rem; }
.bc-event__name { margin: 0; font-family: var(--bc-display); font-size: 1.95rem; font-weight: 600; line-height: 1.1; color: var(--inv-primary); }
.bc-event__rows { display: grid; gap: .75rem; margin: .9rem 0 0; padding: .9rem 0 0; list-style: none; font-size: .9rem; border-top: 1px solid var(--bc-line); }
.bc-event__rows li { display: flex; align-items: flex-start; gap: .7rem; }
.bc-event__rows .bc-icon { width: 2.1rem; height: 2.1rem; padding: .45rem; border-radius: 50%; color: var(--inv-primary); background: var(--inv-soft); box-shadow: inset 0 0 0 1px var(--bc-line); }
.bc-event__rows li > span { padding-top: .3rem; }
.bc-event__venue { display: block; font-weight: 600; }
.bc-event__address { display: block; font-size: .85rem; color: var(--bc-muted); }
.bc-event .inv-maps { margin-top: 1.15rem; text-align: center; }
.bc-event .inv-maps .inv-button { width: 100%; font-family: var(--bc-caps); letter-spacing: .08em; }
.bc-event .inv-maps__frame { height: 190px; border-radius: 4px; }

/* countdown: cream tiles crowned with a gold tumpal point; the calendar card well below the buttons */
.bc-countdown .inv-countdown { gap: clamp(.5rem, 2.6vw, .8rem); }
.bc-countdown .inv-countdown__item {
    position: relative; display: grid; place-content: center; width: clamp(4rem, 18.5vw, 4.7rem); min-width: 0; aspect-ratio: 4 / 5; padding: .5rem 0 0;
    border-radius: 3px; color: var(--inv-text); background: var(--bc-paper);
    box-shadow: inset 0 0 0 1px var(--inv-accent), inset 0 0 0 4px var(--bc-paper), inset 0 0 0 5px color-mix(in srgb, var(--inv-primary) 35%, transparent), 0 16px 24px -12px rgb(0 0 0 / .55);
}
.bc-countdown .inv-countdown__item::before {
    content: ''; position: absolute; left: 50%; top: -11px; width: 22px; height: 12px; margin-left: -11px; background: var(--bc-prada);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.bc-countdown .inv-countdown__value { font-variant-numeric: lining-nums tabular-nums; font-family: var(--bc-caps); font-size: 1.95rem; line-height: 1.05; color: var(--inv-primary); }
.bc-countdown .inv-countdown__label { margin-top: .15rem; font-family: var(--bc-caps); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bc-muted); }
.bc-countdown .inv-countdown__done { font-family: var(--bc-display); font-size: 1.4rem; font-style: italic; color: var(--inv-shine); }
.bc-countdown .inv-countdown__actions { flex-direction: column; align-items: center; gap: .6rem; margin-top: 1.9rem; }
.bc-countdown .inv-countdown__actions .inv-button {
    width: min(100%, 17rem); min-height: 2.75rem; padding: .6rem 1rem; font-family: var(--bc-caps); font-size: .78rem; letter-spacing: .08em;
    color: var(--inv-background); background: color-mix(in srgb, var(--inv-background) 8%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-shine) 60%, transparent);
}
.bc-countdown .inv-countdown__actions .inv-button:first-child { color: var(--inv-deep); background: var(--bc-prada); box-shadow: none; }
.bc-countdown .inv-cal {
    --inv-cal-bg: var(--bc-paper); --inv-cal-mark: var(--inv-primary);
    max-width: 19rem; margin: 2.8rem auto 0; border-radius: 4px;
    box-shadow: inset 0 0 0 1px var(--inv-accent), inset 0 0 0 5px var(--bc-paper), inset 0 0 0 6px color-mix(in srgb, var(--inv-primary) 30%, transparent), 0 22px 40px -24px rgb(0 0 0 / .6);
}
.bc-countdown .inv-cal__month { font-family: var(--bc-display); font-size: 1.5rem; font-weight: 600; color: var(--inv-primary); }

/* prayer: a kawung frame (band of kawung between gold rules) around a cream page */
.bc-prayer { padding-top: 5rem; }
.bc-kawung-frame {
    position: relative; isolation: isolate; max-width: 23rem; margin: 0 auto; padding: 1.4rem;
    background: linear-gradient(150deg, var(--inv-primary), var(--inv-deep));
    box-shadow: 0 0 0 2px var(--inv-accent), 0 0 0 6px var(--inv-background), 0 0 0 7px var(--bc-line), 0 26px 40px -26px color-mix(in srgb, var(--inv-deep) 80%, transparent);
}
.bc-kawung-frame::before {
    content: ''; position: absolute; inset: 0; z-index: 0; background: var(--bc-prada);
    -webkit-mask: var(--bc-kawung) center / 22px 22px repeat; mask: var(--bc-kawung) center / 22px 22px repeat;
}
.bc-kawung-frame__paper { position: relative; padding: 2.5rem 1.35rem 2rem; background: var(--bc-paper); box-shadow: 0 0 0 1.5px var(--inv-accent), inset 0 0 0 5px var(--bc-paper), inset 0 0 0 6px var(--bc-ring); }
.bc-kawung-frame__seal {
    position: absolute; left: 50%; top: -1.4rem; z-index: 2; display: grid; place-items: center; width: 3rem; height: 3rem; margin-left: -1.5rem;
    border-radius: 50%; background: var(--inv-deep); box-shadow: 0 0 0 2px var(--inv-accent), 0 0 0 5px var(--inv-background), 0 0 0 6px var(--bc-line);
}
.bc-kawung-frame__seal svg { width: 1.8rem; height: 1.8rem; fill: var(--inv-shine); }
.bc-kawung-frame__seal circle { fill: var(--inv-deep); }
.bc-prayer__label { margin: 0 0 .9rem; font-family: var(--bc-caps); font-size: .74rem; letter-spacing: .3em; text-transform: uppercase; color: var(--inv-primary); }
.bc-prayer__arabic { margin: 0 0 1rem; font-size: 1.62rem; }
.bc-prayer__text { margin: 0; }
.bc-prayer__text p { margin: 0; font-family: var(--bc-display); font-size: 1.22rem; font-style: italic; font-weight: 500; line-height: 1.5; }
.bc-prayer__text cite { display: inline-block; margin-top: .9rem; font-style: normal; font-family: var(--bc-caps); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--inv-primary); }

/* rundown: gongs hung along a carved gold stand */
.bc-rundown__list { position: relative; margin: 0; padding: 0; list-style: none; text-align: left; }
.bc-rundown__list::before {
    content: ''; position: absolute; left: calc(1.55rem - 3px); top: .6rem; bottom: .6rem; width: 6px; border-radius: 3px; transform-origin: top;
    background: repeating-linear-gradient(180deg, transparent 0 22px, color-mix(in srgb, var(--inv-deep) 50%, transparent) 22px 24px), var(--bc-prada);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--inv-deep) 60%, transparent);
}
.bc-rundown__item { position: relative; display: grid; grid-template-columns: 3.1rem minmax(0, 1fr); align-items: start; column-gap: 1rem; padding: 0 0 1.25rem; }
.bc-rundown__item:last-child { padding-bottom: 0; }
.bc-rundown__body { padding: .1rem 0 1.1rem; border-bottom: 1px solid color-mix(in srgb, var(--inv-accent) 22%, transparent); }
.bc-rundown__item:last-child .bc-rundown__body { border-bottom: 0; padding-bottom: 0; }
.bc-rundown__time { display: block; font-family: var(--bc-caps); font-size: 1.15rem; line-height: 1.2; letter-spacing: .06em; color: var(--inv-shine); font-variant-numeric: tabular-nums; }
.bc-rundown__body h3 { margin: .1rem 0 0; font-family: var(--bc-display); font-size: 1.38rem; font-weight: 600; line-height: 1.25; color: var(--inv-background); }
.bc-rundown__body p { margin: .15rem 0 0; font-size: .88rem; color: var(--bc-cream-muted); }

/* story: batik cloths on a gawangan rack */
.bc-story__list { display: grid; gap: 2.6rem; margin: 0; padding: 0; list-style: none; text-align: left; }
.bc-cloth { position: relative; padding-top: .55rem; }
.bc-cloth__rack {
    position: absolute; left: -.6rem; right: -.6rem; top: 0; z-index: 2; height: 9px; border-radius: 5px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--inv-accent) 60%, #6b4a1e), #4a2f12 70%);
    box-shadow: 0 3px 6px rgb(0 0 0 / .3);
}
.bc-cloth__rack::before, .bc-cloth__rack::after { content: ''; position: absolute; top: -4px; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--bc-gold-light), var(--inv-accent) 50%, var(--bc-gold-dark)); }
.bc-cloth__rack::before { left: -5px; }
.bc-cloth__rack::after { right: -5px; }
.bc-cloth__fabric {
    position: relative; isolation: isolate; display: grid; grid-template-columns: 42% minmax(0, 1fr); align-items: center; gap: 1.1rem;
    margin: 0 .3rem; padding: 2rem 1rem 2rem; color: var(--inv-background);
    background: linear-gradient(165deg, var(--inv-primary), color-mix(in srgb, var(--inv-primary) 55%, var(--inv-deep)));
    transform: rotate(-.7deg); transform-origin: top center;
    box-shadow: 0 22px 30px -20px color-mix(in srgb, var(--inv-deep) 85%, transparent);
}
.bc-cloth__fabric::before { opacity: .5; }
/* the parang selvages (top and foot of the cloth) */
.bc-cloth__fabric::after {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: var(--bc-prada);
    -webkit-mask: var(--bc-parang) left top / 24px 18px repeat-x, var(--bc-parang) left bottom / 24px 18px repeat-x;
    mask: var(--bc-parang) left top / 24px 18px repeat-x, var(--bc-parang) left bottom / 24px 18px repeat-x;
}
.bc-cloth--flip .bc-cloth__fabric { grid-template-columns: minmax(0, 1fr) 42%; transform: rotate(.7deg); }
.bc-cloth--flip .bc-cloth__media { order: 2; }
.bc-cloth--text .bc-cloth__fabric { grid-template-columns: 1fr; }
.bc-cloth__media { padding: 5px; background: var(--bc-paper); box-shadow: 0 10px 18px -10px rgb(0 0 0 / .6); }
.bc-cloth__photo { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.bc-cloth__year {
    display: inline-block; padding: .12rem .7rem; font-family: var(--bc-caps); font-size: 1.15rem; letter-spacing: .08em; line-height: 1.4;
    color: var(--inv-deep); background: var(--bc-prada);
    clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 50%, 100% 100%, 0 100%);
    padding-right: 1rem;
}
.bc-cloth__body h3 { margin: .45rem 0 0; font-family: var(--bc-display); font-size: 1.45rem; font-weight: 600; line-height: 1.15; color: #fff; }
.bc-cloth__body p { margin: .35rem 0 0; font-size: .87rem; line-height: 1.6; color: var(--bc-cream-muted); }

/* gallery: a parang band on top, the first photo full width under an arch, thin gold lines */
.bc-gallery { padding-top: 5rem; }
.bc-gallery .inv-gallery { gap: .6rem; }
.bc-gallery .inv-gallery__item { border-radius: 3px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--inv-shine) 55%, transparent), 0 16px 28px -18px rgb(0 0 0 / .7); }
.bc-gallery .inv-gallery__item:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; border-radius: 50% 50% 3px 3px / 7.5rem 7.5rem 3px 3px; }

/* live streaming: a deep batik card under a joglo roof */
.bc-stream { padding-top: 4rem; }
.bc-stream__card { max-width: 22rem; margin: 0 auto; }
.bc-stream__roof { width: 110%; margin: 0 -5% -1px; }
.bc-stream__body {
    position: relative; isolation: isolate; padding: 1.8rem 1.3rem 1.9rem; color: var(--inv-background);
    background: linear-gradient(180deg, var(--inv-primary), var(--inv-deep));
    box-shadow: inset 0 0 0 1px var(--bc-line), 0 24px 36px -24px color-mix(in srgb, var(--inv-deep) 80%, transparent);
}
.bc-stream__label { margin: 0 0 .7rem !important; font-family: var(--bc-caps); font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--inv-shine); }
.bc-stream__icon { display: inline-grid; place-items: center; width: 3.3rem; height: 3.3rem; border-radius: 50%; color: var(--inv-deep); background: var(--bc-prada); }
.bc-stream__icon .bc-icon { width: 1.7rem; height: 1.7rem; }
.bc-stream__title { margin: .7rem 0 .3rem; font-family: var(--bc-display); font-size: 2.1rem; font-weight: 600; line-height: 1.1; color: #fff; }
.bc-stream__body p { margin: 0 auto .4rem; max-width: 30ch; font-size: .9rem; }
.bc-stream__note { opacity: .9; font-size: .85rem !important; }
.bc-stream__body .inv-button { margin-top: .7rem; min-height: 2.75rem; }

/* RSVP card (parang selvage on top) and the check after sending */
.bc-rsvp__card {
    position: relative; overflow: hidden; padding: 0 1.15rem 1.4rem; color: var(--inv-text); background: var(--bc-paper);
    box-shadow: inset 0 0 0 1px var(--inv-accent), 0 22px 40px -24px rgb(0 0 0 / .6);
}
.bc-rsvp__band { margin: 0 -1.15rem 1.4rem; }
.bc-rsvp__intro { margin: 0 auto 1.1rem; max-width: 30ch; font-size: .9rem; color: var(--bc-muted); }
.bc-rsvp__sent { margin-bottom: 1rem; }
.bc-rsvp__check { display: block; width: 4.25rem; height: 4.25rem; margin: 0 auto .5rem; }
.bc-rsvp__check circle { fill: var(--inv-primary); stroke: var(--inv-accent); stroke-width: 2; }
.bc-rsvp__check path { fill: none; stroke: var(--inv-shine); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
html.inv-anim .bc-rsvp__sent .bc-rsvp__check { animation: bc-settle .8s cubic-bezier(.34, 1.56, .64, 1) both; }
html.inv-anim .bc-rsvp__sent .bc-rsvp__check path { animation: bc-draw .45s ease-out .35s both; }
.bc-rsvp__thanks { margin: 0; font-family: var(--bc-display); font-size: 1.8rem; font-weight: 600; color: var(--inv-primary); }
.bc-rsvp__line { margin: .1rem 0 0; font-size: .9rem; color: var(--bc-muted); }
.bc-rsvp .inv-rsvp__deadline { margin: 0 0 1rem; font-size: .84rem; font-weight: 600; color: var(--inv-primary); }

/* gift: cream envelopes, two per row, a gold prada flap with a kawung seal; the address below */
.bc-gift__intro { color: var(--bc-cream-muted); }
.bc-gift .inv-gift__accounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: 1.3rem; }
.bc-gift .inv-gift__account:last-child:nth-child(odd) { grid-column: 1 / -1; }
.bc-gift .inv-gift__account,
.bc-gift .inv-gift__address {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: .3rem; min-width: 0; margin: 0; overflow: hidden;
    padding: 2rem .75rem 1rem; border-radius: 3px; color: var(--inv-text); background: var(--bc-paper);
    box-shadow: inset 0 0 0 1px var(--inv-accent), 0 18px 30px -20px rgb(0 0 0 / .6);
}
.bc-gift .inv-gift__account::before {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1.35rem;
    background: var(--bc-prada); clip-path: polygon(0 0, 100% 0, 100% 30%, 50% 100%, 0 30%);
}
.bc-gift .inv-gift__account::after {
    content: ''; position: absolute; left: 50%; top: .62rem; width: 1.25rem; height: 1.25rem; margin-left: -.625rem; background: var(--inv-deep); border-radius: 50%;
    -webkit-mask: var(--bc-kawung-fill) center / 100% 100% no-repeat; mask: var(--bc-kawung-fill) center / 100% 100% no-repeat;
}
.bc-gift .inv-gift__account p, .bc-gift .inv-gift__address p { margin: 0; }
.bc-gift .inv-gift__bank { font-weight: 600; font-size: .85rem; color: var(--inv-primary); }
.bc-gift .inv-gift__logo { height: 1.6rem; padding: .2rem .5rem; border-radius: .3rem; background: #fff; }
.bc-gift .inv-gift__logo img { max-width: 5rem; }
.bc-gift .inv-gift__number {
    font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: .98rem; font-weight: 700;
    letter-spacing: .03em; line-height: 1.3; overflow-wrap: anywhere; color: var(--inv-text);
}
.bc-gift .inv-gift__holder { font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--bc-muted); overflow-wrap: anywhere; }
.bc-gift .inv-button { margin-top: .35rem; min-height: 2.25rem; padding: .35rem .9rem; font-size: .74rem; font-weight: 600; }
.bc-gift .inv-gift__address { margin-top: .75rem; padding-top: 2.1rem; font-size: .875rem; box-shadow: inset 0 0 0 1px var(--inv-accent), 8px 8px 0 0 color-mix(in srgb, var(--inv-accent) 60%, transparent); }
.bc-gift .inv-gift__address .inv-gift__holder { font-size: .72rem; }

/* co-hosts: cream chips on the gold band */
.bc-cohosts__list { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.bc-cohosts__list li {
    padding: .42rem 1rem; border-radius: 999px; font-family: var(--bc-display); font-size: 1.12rem; font-weight: 600; line-height: 1.3;
    color: var(--inv-deep); background: var(--bc-paper); box-shadow: 3px 3px 0 0 var(--inv-deep);
}

/* contacts: cream cards, the initial on a small gold gong */
.bc-contacts__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.bc-contacts__list > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - .45rem); }
.bc-contact {
    display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 1.15rem .7rem 1rem; border-radius: 3px;
    background: var(--bc-paper); box-shadow: inset 0 0 0 1px var(--bc-line), 6px 6px 0 0 var(--inv-soft);
}
.bc-contact__avatar {
    display: grid; place-items: center; width: 3.1rem; height: 3.1rem; margin-bottom: .55rem; border-radius: 50%;
    font-family: var(--bc-display); font-size: 1.55rem; font-weight: 600; color: var(--inv-deep);
    background: radial-gradient(circle at 35% 30%, var(--bc-gold-light), var(--inv-shine) 30%, var(--inv-accent) 65%, var(--bc-gold-dark));
    box-shadow: inset 0 0 0 2px var(--bc-gold-dark), 0 0 0 3px var(--bc-paper), 0 0 0 4px var(--bc-line);
}
.bc-contact p { margin: 0; }
.bc-contact__name { font-weight: 600; font-size: .95rem; overflow-wrap: anywhere; }
.bc-contact__role { font-size: .78rem; color: var(--bc-muted); }
.bc-contact__button { margin-top: .7rem; min-height: 2.5rem; padding: .45rem .9rem; font-size: .8rem; font-weight: 600; }
.bc-contact__button .bc-icon { width: 1.05rem; height: 1.05rem; }
.bc-contact__phone { margin-top: .5rem !important; font-size: .85rem; }

/* health protocol: cream chips */
.bc-protocol__list { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.bc-protocol__list li {
    display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .85rem; border-radius: 999px; font-size: .84rem; font-weight: 600;
    background: var(--bc-paper); box-shadow: inset 0 0 0 1px var(--bc-line);
}
.bc-protocol__list .bc-icon { width: 1rem; height: 1rem; color: var(--inv-primary); }
.bc-protocol__note { font-size: .88rem; color: var(--bc-muted); }

/* vendors: cream tiles with a gold top rule, two per row */
.bc-vendors__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 0; padding: 0; list-style: none; }
.bc-vendors__list > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.bc-vendor { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: .9rem .6rem; border-radius: 3px; background: var(--bc-paper); box-shadow: inset 0 3px 0 var(--inv-accent), inset 0 0 0 1px var(--bc-line); }
.bc-vendor__role { font-family: var(--bc-caps); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--inv-primary); }
.bc-vendor__name { margin-top: .15rem; font-family: var(--bc-display); font-size: 1.22rem; font-weight: 600; line-height: 1.2; color: var(--bc-title); overflow-wrap: anywhere; }
.bc-vendor__link { display: inline-flex; align-items: center; gap: .3rem; min-height: 2rem; font-size: .76rem; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.bc-vendor__link .bc-icon { width: .95rem; height: .95rem; }

/* closing: the full photo fading into the deep colour, the gold gunungan + melati crowning the thanks */
.bc-closing { padding: 2.8rem 1.6rem 2.2rem; }
.bc-closing--photo { padding-top: 0; }
.bc-closing__photo { position: relative; z-index: -1; height: min(96vw, 24rem); margin: 0 -1.6rem; overflow: hidden; -webkit-mask: linear-gradient(180deg, #000 0, #000 52%, rgb(0 0 0 / .55) 74%, rgb(0 0 0 / .18) 90%, transparent 100%); mask: linear-gradient(180deg, #000 0, #000 52%, rgb(0 0 0 / .55) 74%, rgb(0 0 0 / .18) 90%, transparent 100%); }
.bc-closing__photo img { display: block; width: 100%; height: calc(100% + 60px); margin-top: -30px; object-fit: cover; object-position: center 22%; --inv-parallax: 30px; }
.bc-closing__photo::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--inv-deep) 55%, transparent) 62%, var(--inv-deep) 97%);
}
.bc-closing__body { position: relative; }
.bc-closing--photo .bc-closing__body { margin-top: -7rem; }
.bc-gunungan--closing { --g-w: 5.4rem; margin: 0 auto; }
.bc-closing__melati { width: min(100%, 13.5rem); margin: -.4rem auto .5rem; }
.bc-closing__label { margin: 0 0 .3rem; font-family: var(--bc-caps); font-size: .76rem; letter-spacing: .3em; text-transform: uppercase; color: var(--inv-shine); }
.bc-closing__title { margin: 0 0 .7rem; font-family: var(--bc-display); font-size: clamp(1.9rem, 8.5vw, 2.4rem); font-weight: 600; line-height: 1.05; color: #fff; }
.bc-closing__title em { font-style: italic; font-weight: 500; color: var(--inv-shine); }
.bc-closing__message { margin: 0 auto; max-width: 30ch; font-size: .92rem; line-height: 1.6; color: var(--bc-cream-muted); }
.bc-closing__salam { margin: .8rem 0 0; font-family: var(--bc-display); font-size: 1.08rem; font-style: italic; font-weight: 600; line-height: 1.35; color: var(--inv-shine); }
.bc-closing__signature { margin: .85rem 0 .1rem; font-size: .84rem; color: var(--bc-cream-muted); }
.bc-closing__names { margin: 0; font-family: var(--bc-display); font-size: clamp(2.1rem, 9.5vw, 2.5rem); font-weight: 600; line-height: 1.1; overflow-wrap: anywhere; }

/* ---------- 6. forms (shared RSVP + wishes, restyled) ---------- */
.bc-main .inv-form { gap: 1rem; text-align: left; }
.bc-main .inv-form label, .bc-main .inv-form__choices legend { font-size: .82rem; font-weight: 600; color: var(--inv-text); }
.bc-main .inv-form input:not([type=radio]):not([type=checkbox]),
.bc-main .inv-form select,
.bc-main .inv-form textarea {
    width: 100%; min-height: 2.9rem; padding: .7rem .9rem; border: 0; border-radius: 4px;
    font: 400 .95rem/1.4 var(--bc-body); color: var(--inv-text); background: #fff;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-primary) 30%, transparent);
    transition: box-shadow .2s ease;
}
.bc-main .inv-form select {
    appearance: none; padding-right: 2.4rem;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right .8rem center / 1.1rem no-repeat;
}
.bc-main .inv-form input:not([type=radio]):focus-visible,
.bc-main .inv-form select:focus-visible,
.bc-main .inv-form textarea:focus-visible {
    outline: none; box-shadow: inset 0 0 0 2px var(--inv-primary), 0 0 0 4px color-mix(in srgb, var(--inv-accent) 40%, transparent);
}
.bc-main .inv-form button[type=submit] { width: 100%; min-height: 3rem; font-family: var(--bc-caps); letter-spacing: .1em; text-transform: uppercase; font-size: .84rem; box-shadow: inset 0 0 0 1px var(--inv-accent), 0 0 0 3px color-mix(in srgb, var(--inv-accent) 30%, transparent); }
.bc-main .inv-form .inv-button--outline { width: 100%; min-height: 2.75rem; }
.bc-main .inv-form__notice { text-align: center; }

/* the three answers as cards with icons (the radio dot is hidden but still focusable) */
.bc-rsvp .inv-form__choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.bc-rsvp .inv-form__choices legend { margin-bottom: .5rem; padding: 0; }
.bc-rsvp .inv-form__choices label {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: .45rem;
    min-height: 5.4rem; padding: .85rem .3rem .75rem; border-radius: 4px; cursor: pointer; text-align: center;
    font-size: .84rem; font-weight: 600; line-height: 1.2; color: var(--inv-text); background: #fff;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-primary) 26%, transparent);
    transition: background-color .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.bc-rsvp .inv-form__choices input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.bc-rsvp .inv-form__choices label::before {
    content: ''; width: 2.1rem; height: 2.1rem; border-radius: 50%; flex: none; background: var(--inv-soft);
    transition: transform .3s ease, background-color .25s ease;
}
.bc-rsvp .inv-form__choices label::after {
    content: ''; position: absolute; left: 50%; top: 1.3rem; width: 1.2rem; height: 1.2rem; margin-left: -.6rem;
    background: currentColor; color: var(--inv-primary); pointer-events: none;
    -webkit-mask: var(--bc-choice-icon) center / contain no-repeat; mask: var(--bc-choice-icon) center / contain no-repeat;
}
.bc-rsvp .inv-form__choices label:nth-of-type(1) {
    --bc-choice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.bc-rsvp .inv-form__choices label:nth-of-type(2) {
    --bc-choice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6.5 6.5l11 11M17.5 6.5l-11 11'/%3E%3C/svg%3E");
}
.bc-rsvp .inv-form__choices label:nth-of-type(3) {
    --bc-choice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M8.5 8.8a3.5 3.5 0 1 1 4.9 3.2c-.9.4-1.4 1.1-1.4 2v.5M12 19h.01'/%3E%3C/svg%3E");
}
.bc-rsvp .inv-form__choices label:has(input:checked) {
    color: var(--inv-background); background: linear-gradient(150deg, var(--inv-primary), var(--inv-deep)); transform: translateY(-3px);
    box-shadow: inset 0 0 0 1px var(--inv-accent), 0 12px 24px -12px color-mix(in srgb, var(--inv-deep) 80%, transparent);
}
.bc-rsvp .inv-form__choices label:has(input:checked)::before { background: var(--bc-prada); transform: scale(1.1); }
.bc-rsvp .inv-form__choices label:has(input:checked)::after { color: var(--inv-deep); }
.bc-rsvp .inv-form__choices label:has(input:focus-visible) { outline: 2px solid var(--inv-accent); outline-offset: 3px; }

/* wishes: the form on a white card with a deep offset block, the wishes in a scroll box */
.bc-wishes .inv-wishes { --inv-wishes-height: 20rem; }
.bc-wishes .inv-form {
    margin-right: 8px; padding: 1.3rem 1.1rem; border-radius: 3px; background: #fff;
    box-shadow: inset 0 0 0 1px var(--bc-line), 8px 8px 0 0 var(--inv-primary);
}
.bc-wishes .inv-wishes__list { margin-top: 1.4rem; }
.bc-wishes .inv-wishes:not(.inv-wishes--paged) .inv-wishes__list {
    padding: .55rem; border-radius: 4px; background: color-mix(in srgb, #fff 45%, transparent); box-shadow: inset 0 0 0 1px var(--bc-ring);
}
.bc-wishes .inv-wish { padding: .75rem .9rem; border-radius: 3px; background: #fff; text-align: left; box-shadow: 0 2px 10px rgb(0 0 0 / .05); border-left: 3px solid var(--inv-accent); }
.bc-wishes .inv-wish__name { font-weight: 600; color: var(--inv-primary); }
.bc-wishes .inv-wish__message { font-size: .88rem; line-height: 1.5; }
.bc-wishes .inv-wish__time { font-size: .72rem; color: var(--bc-muted); }

/* ---------- 7. shared components ---------- */
.bc-main .inv-button { font-weight: 600; }
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) 72%, transparent);
    --inv-nav-active: var(--inv-shine);
    font-family: var(--bc-body);
}

/* ---------- 8. screen sizes ---------- */

/* short phones: the cover art and type step down so everything fits without scrolling */
@media (max-height: 760px) {
    .bc-cover { --g-cover: min(62vw, 16rem, calc(44svh / 1.4)); padding-top: 1.3rem; padding-bottom: 1.6rem; }
    .bc-cover__text { margin-top: .7rem; }
    .bc-cover__names { font-size: 3.1rem; }
    .bc-cover--many .bc-cover__names { font-size: 2.3rem; }
    .bc-cover__quote { font-size: 1rem; }
    .bc-cover__guest { margin-top: .75rem; }
    .bc-cover__open { margin-top: .8rem; }
}
@media (max-height: 660px) {
    .bc-cover { --g-cover: min(56vw, calc(40svh / 1.4)); padding-top: 1.1rem; padding-bottom: 1.5rem; }
    .bc-cover__text { margin-top: .55rem; }
    .bc-cover__names { font-size: 2.7rem; }
    .bc-cover--many .bc-cover__names { font-size: 2rem; }
    .bc-cover__date { margin-top: .25rem; font-size: .78rem; }
    .bc-cover__quote { margin-top: .3rem; font-size: .94rem; line-height: 1.3; }
    .bc-cover__guest { padding: .35rem .85rem .45rem; }
    .bc-cover__guest-name { font-size: 1.15rem; }
    .bc-cover__open { min-height: 2.75rem; padding: .55rem 1.6rem; }
}
/* very short screens (in-app browsers): a smaller frame and quote, so everything fits */
@media (max-height: 600px) {
    .bc-cover { --g-cover: min(46vw, calc(34svh / 1.4)); }
    .bc-cover__names { font-size: 2.35rem; }
    .bc-cover__quote { font-size: .88rem; }
}

/* wide screens: the phone-width column on a deep batik backdrop */
@media (min-width: 560px) {
    body.bc-body {
        background:
            radial-gradient(70vw 60vh at 50% 0%, color-mix(in srgb, var(--inv-primary) 55%, transparent), transparent 70%),
            var(--inv-deep);
        background-attachment: fixed;
    }
    body.bc-body::before {
        content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
        background: var(--bc-batik) center / 420px auto repeat; mix-blend-mode: overlay;
    }
    .bc-main { box-shadow: 0 30px 60px -30px rgb(0 0 0 / .6); }
}

/* ---------- 9. motion ---------- */
@keyframes bc-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes bc-settle { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes bc-photo-in { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes bc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bc-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes bc-stretch { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes bc-janur-in { from { opacity: 0; transform: rotate(-7deg); } 70% { opacity: 1; transform: rotate(1.5deg); } to { opacity: 1; transform: none; } }

/* cover (≤ 2.5 s, once): the photo fades in and settles (0–1 s); the band, crown and melati fade in
   (.2–1 s) while the gold outline draws itself (.3–1.7 s); the janur rise and sway into place (.5–1.8 s);
   the text follows through its inv-enter delays */
html.inv-anim .bc-gunungan--cover .bc-gunungan__window { animation: bc-fade .9s ease both; }
html.inv-anim .bc-gunungan--cover .bc-gunungan__photo { animation: bc-photo-in 1.2s cubic-bezier(.2, .7, .2, 1) both; }
html.inv-anim .bc-gunungan--cover .bc-gunungan__art { animation: bc-fade .8s ease .2s both; }
html.inv-anim .bc-gunungan--cover .bc-gunungan__line { stroke-dasharray: 1; animation: bc-draw 1.4s cubic-bezier(.4, 0, .2, 1) .3s both; }
html.inv-anim .bc-cover__janur .bc-janur__sway { animation: bc-janur-in 1.3s cubic-bezier(.3, .7, .3, 1) .5s both; }

/* the heading divider stretches out once when it scrolls into view */
@supports (animation-timeline: view()) {
    html.inv-anim .bc-heading .bc-divider::before,
    html.inv-anim .bc-heading .bc-divider::after { animation: bc-stretch linear both; animation-timeline: view(); animation-range: entry 10% cover 35%; }
    html.inv-anim .bc-rundown__list::before { animation: bc-grow linear both; animation-timeline: view(); animation-range: entry 20% cover 55%; }
}

@media (prefers-reduced-motion: reduce) {
    .bc-cover, .bc-cover--leave, .bc-cover__inner { transition: none; }
}

/* ---------- intro scene "Pendopo Pambagya" (scene.json + sections/_scene; the intro lives in <body>) ---------- */
/* the camera steps into the pendopo on the night of the syukuran: the tinted sogan batik warms up, the kayon rises
   and glows behind, the joglo roof settles in from above with a melati swag under its eave, the two janur rise and
   bend in from the sides, the little blangkon floats down and hovers, then the name arrives on a "serat" letter
   with its pointed wedana gate. Sizes in vw follow the roof, so every piece keeps its place on any phone. */
.bc-scene-batik, .bc-scene-floor { display: block; width: 100%; height: 100%; }
.bc-scene-batik { background: var(--bc-batik) center / 340px auto repeat; }
.inv-scene__layer:has(.bc-scene-batik) { mix-blend-mode: overlay; }
.bc-scene-kayon, .bc-scene-roof, .bc-scene-blangkon { position: relative; width: 100%; height: 100%; }
.bc-scene-kayon__art { --g-w: min(92vw, calc((92svh - 54vw) / 1.4)); position: absolute; left: 50%; bottom: 8%; margin-left: calc(var(--g-w) / -2); opacity: .5; }
.bc-scene-kayon__art .bc-gunungan__art { filter: drop-shadow(0 0 28px color-mix(in srgb, var(--inv-shine) 30%, transparent)); }
.bc-scene-roof__joglo { position: absolute; left: -6vw; top: 0; width: 112vw; height: auto; filter: drop-shadow(0 12px 16px rgb(0 0 0 / .5)); }
.bc-scene-roof__melati { position: absolute; left: 5vw; top: 34vw; width: 90vw; height: auto; animation: bc-scene-swag 5s ease-in-out infinite alternate; transform-origin: 50% 0; }
@keyframes bc-scene-swag { from { transform: rotate(-1deg); } to { transform: rotate(1deg); } }
.inv-scene__layer .bc-scene-janur { width: 100%; height: auto; aspect-ratio: 90 / 420; filter: drop-shadow(0 10px 14px rgb(0 0 0 / .45)); }
.bc-scene-blangkon__art { position: absolute; left: 35vw; top: 54vw; width: 30vw; height: auto; filter: drop-shadow(0 12px 12px rgb(0 0 0 / .5)); }
.bc-scene-blangkon__glow {
    position: absolute; left: 26vw; top: 46vw; width: 48vw; height: 36vw; border-radius: 50%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--inv-shine) 34%, transparent), transparent);
}
.bc-scene-floor {
    background: linear-gradient(180deg, var(--inv-accent) 0 2px, transparent 2px 6px, color-mix(in srgb, var(--inv-shine) 60%, transparent) 6px 7px, transparent 7px),
        linear-gradient(180deg, color-mix(in srgb, var(--inv-deep) 80%, #000), #000);
    box-shadow: 0 -18px 30px -6px rgb(0 0 0 / .45);
}
/* the card: the "serat" of the child section — cream paper, gold double rule, the pointed gold gate on top */
body.bc-body .inv-intro--scene .inv-scene__card {
    top: min(max(calc(78vw + 10rem), 58%), calc(100% - 9.6rem)); width: min(70vw, 18rem); aspect-ratio: auto; padding: 2.1rem 1.1rem 2.2rem; overflow: visible;
    -webkit-mask: none; mask: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--inv-text);
    background: var(--bc-paper);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 70%, transparent), inset 0 0 0 6px var(--bc-paper),
        inset 0 0 0 7px color-mix(in srgb, var(--inv-primary) 45%, transparent), 0 26px 40px -16px rgb(0 0 0 / .7), 8px 8px 0 0 color-mix(in srgb, var(--inv-accent) 55%, var(--inv-deep));
}
body.bc-body .inv-intro--scene .inv-scene__card::before,
body.bc-body .inv-intro--scene .inv-scene__card::after {
    content: ''; position: absolute; left: 50%; top: -2rem; width: 10rem; height: 3.4rem; transform: translateX(-50%); pointer-events: none;
    background: var(--bc-paper); clip-path: polygon(0 100%, 18% 100%, 32% 52%, 50% 0, 68% 52%, 82% 100%, 100% 100%);
}
body.bc-body .inv-intro--scene .inv-scene__card::after {
    background: var(--inv-accent); clip-path: polygon(0 100%, 18% 100%, 32% 52%, 50% 0, 68% 52%, 82% 100%, 100% 100%, 82% 95%, 66% 95%, 50% 7%, 34% 95%, 18% 95%);
}
body.bc-body .inv-scene__card .inv-intro__label { margin-bottom: .45rem; font: 400 clamp(.62rem, 2.9vw, .7rem)/1.4 var(--bc-caps); letter-spacing: .26em; text-transform: uppercase; color: var(--inv-primary); }
body.bc-body .inv-scene__card .inv-intro__names {
    font-family: var(--bc-display) !important; font-size: clamp(2.3rem, 11.5vw, 3rem); font-weight: 600; line-height: 1.02; color: var(--bc-title); overflow-wrap: anywhere;
}
body.bc-body .inv-scene__card .inv-intro__rule { width: 4.5rem; height: 1.5px; margin: .75rem auto .65rem; background: var(--bc-prada); }
body.bc-body .inv-scene__card .inv-intro__date { font: 400 clamp(.7rem, 3.3vw, .8rem)/1.45 var(--bc-caps); letter-spacing: .12em; text-transform: uppercase; color: var(--bc-muted); }
body.bc-body .inv-intro--scene .inv-intro__skip { background: color-mix(in srgb, var(--inv-deep) 70%, transparent); border-color: var(--bc-line); color: var(--inv-shine); }
@media (prefers-reduced-motion: reduce) {
    .bc-scene-roof__melati { animation: none; }
}
