/*
 * Template "Bintang Kecil" (Tujuh Bulanan & Baby Shower) — a dreamy lullaby night, "Twinkle twinkle little star".
 * Deep midnight navy and indigo with rich gold, a warm peach/coral glow and soft cream. Signature pieces: the crib
 * mobile (sections/_mobile) over the nursery window with a puffy cloud edge (sections/_window), the star sky with
 * dotted gold constellations (sections/_sky), quilted cream cards with dashed stitches and scalloped cloud tops
 * (.bkc-quilt), constellation dividers (sections/_divider), and the scratch-off gold star of the reveal
 * (sections/reveal + js/bintang-kecil.js). Mobile-first, one column (~460px) on a night backdrop on wide screens.
 *
 * Colours come from the chosen colour variant (template.json → <x-inv.head>):
 *   --inv-primary (indigo / violet / teal / rose: titles, buttons, glows)   --inv-accent (gold foil)
 *   --inv-background (cream)   --inv-text   --inv-deep (the night bands, the cover)   --inv-night (the darkest sky)
 *   --inv-shine (light gold on dark)   --inv-soft (peach: the peach tone, cloud undersides)   --inv-coral (warm accents)
 *
 * Section tones (set on each section in its partial): .bkc-tone--night (starry navy), --cream (quilted cream),
 * --peach (warm peach). Motion only runs with html.inv-anim (set by <x-inv.head> unless the guest prefers reduced
 * motion); without it everything is shown finished.
 *
 * Revision standard (docs/template-guide.md section 10): the cover is sized in px steps per screen height, never
 * svh/vh; ornaments hang beside the window's shoulders, never over faces; photos melt into sections with masks;
 * the closing is compact and its names end above the bottom menu.
 *
 * Contents: 1 base · 2 tones · 3 shared pieces (heading, divider, quilt, sky, mobile, window, rub marker)
 *           · 4 cover · 5 sections in page order · 6 forms · 7 shared components · 8 screen sizes · 9 motion
 *           · 10 intro scene
 */

/* ---------- 1. base ---------- */
:root {
    /* defaults = the "Biru Malam" variant (the variant's colours override these) */
    --inv-primary: #3d3fb0;
    --inv-accent: #e2a537;
    --inv-background: #fff3de;
    --inv-text: #1a1d4a;
    --inv-deep: #0f1747;
    --inv-shine: #ffd56e;
    --inv-soft: #ffc7a6;
    --inv-coral: #ff876a;
    --inv-night: #070c2e;
    --inv-radius: 18px;

    --bkc-serif: var(--inv-font-heading, 'Marcellus'), Georgia, 'Times New Roman', serif;
    --bkc-script: var(--inv-font-display, 'Parisienne'), 'Brush Script MT', cursive;
    --bkc-sans: 'Quicksand', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bkc-col: 460px;

    /* gold foil, mixed from the accent: bronze → gold → pale light */
    --bkc-gold-1: color-mix(in srgb, var(--inv-accent) 62%, #4a2600);
    --bkc-gold-2: var(--inv-accent);
    --bkc-gold-3: color-mix(in srgb, var(--inv-accent) 38%, #fff6d4);
    --bkc-gold-ink: color-mix(in srgb, var(--inv-accent) 62%, #3a1e00);
    --bkc-foil: linear-gradient(100deg, var(--bkc-gold-1), var(--bkc-gold-2) 28%, var(--bkc-gold-3) 48%, var(--bkc-gold-2) 64%, var(--bkc-gold-1));

    --bkc-cream: color-mix(in srgb, var(--inv-background) 80%, #fff);
    --bkc-paper: color-mix(in srgb, #fff 62%, var(--inv-background));
    --bkc-peach: color-mix(in srgb, var(--inv-soft) 88%, var(--inv-coral));
    --bkc-cloud-line: color-mix(in srgb, var(--inv-coral) 50%, transparent);
    --bkc-stitch: color-mix(in srgb, var(--inv-coral) 75%, #fff);
    --bkc-title: color-mix(in srgb, var(--inv-primary) 78%, var(--inv-deep));
    --bkc-muted: color-mix(in srgb, var(--inv-text) 80%, var(--inv-background));
    --bkc-cream-muted: color-mix(in srgb, var(--inv-background) 86%, transparent);
    --bkc-line: color-mix(in srgb, var(--inv-accent) 58%, transparent);
    --bkc-stitch-ink: color-mix(in srgb, var(--inv-primary) 42%, transparent);
    --bkc-drop: 0 24px 40px -24px color-mix(in srgb, var(--inv-night) 75%, transparent);

    /* quilting: two dashed diagonal seams and a small twinkle in each diamond (a mask, so it takes any colour) */
    --bkc-quilting: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.1' stroke-dasharray='3 3' stroke-linecap='round'%3E%3Cpath d='M0 0 56 56M56 0 0 56'/%3E%3C/g%3E%3Cpath d='M28 8c.4 3 1 3.6 4 4-3 .4-3.6 1-4 4-.4-3-1-3.6-4-4 3-.4 3.6-1 4-4Z'/%3E%3Cpath d='M28 40c.4 3 1 3.6 4 4-3 .4-3.6 1-4 4-.4-3-1-3.6-4-4 3-.4 3.6-1 4-4Z'/%3E%3C/svg%3E");
    /* a fine field of tiny stars for the night (dots on a 200px tile) */
    --bkc-dots:
        radial-gradient(1.2px 1.2px at 12px 22px, #fff, transparent),
        radial-gradient(1px 1px at 64px 118px, #fff, transparent),
        radial-gradient(1.4px 1.4px at 140px 40px, #fff, transparent),
        radial-gradient(1px 1px at 172px 150px, #fff, transparent),
        radial-gradient(1.1px 1.1px at 96px 176px, #fff, transparent),
        radial-gradient(.9px .9px at 34px 92px, #fff, transparent),
        radial-gradient(1px 1px at 118px 84px, #fff, transparent),
        radial-gradient(1.3px 1.3px at 186px 96px, #fff, transparent),
        radial-gradient(.9px .9px at 52px 160px, #fff, transparent);

    /* colours of the shared components */
    --inv-ambient-1: var(--inv-shine);
    --inv-ambient-2: #fff6dc;
}

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

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

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

/* the SVG definitions: present for the gradients and symbols, never seen */
.bkc-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }

.bkc-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 */
.bkc-main { max-width: var(--bkc-col); margin: 0 auto; overflow-x: clip; }
.bkc-branding { max-width: var(--bkc-col); margin: 0 auto; }
/* the page ends on the night of the closing: the credit and the room under it continue it */
body.bkc-body .inv-music__space { background: var(--inv-end-bg, color-mix(in srgb, var(--inv-deep) 75%, var(--inv-night))); }

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

.bkc-arabic { font-family: 'Amiri', 'Traditional Arabic', serif; line-height: 1.9; color: var(--bkc-title); }
.bkc-icon { width: 1.15rem; height: 1.15rem; flex: none; }

/* gold foil text: the gradient clipped to the letters with a slow moving shine */
.bkc-heading__title em, .bkc-cover__names, .bkc-closing__names, .bkc-parents__amp, .bkc-occasion__type {
    background: var(--bkc-foil); background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- 2. section tones ---------- */
/* night: navy with an indigo glow on top, a warm coral light from below, tiny stars */
.bkc-tone--night {
    color: var(--inv-background);
    background:
        radial-gradient(90% 40% at 20% 0%, color-mix(in srgb, var(--inv-primary) 78%, transparent), transparent 75%),
        radial-gradient(80% 30% at 90% 100%, color-mix(in srgb, var(--inv-coral) 30%, transparent), transparent 75%),
        linear-gradient(180deg, var(--inv-deep), color-mix(in srgb, var(--inv-deep) 75%, var(--inv-night)));
}
.bkc-tone--night::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .7;
    background: var(--bkc-dots); background-size: 200px 200px;
}
.bkc-tone--night a:not(.inv-button) { color: var(--inv-shine); }
.bkc-tone--night .bkc-arabic { color: var(--inv-shine); }

/* cream: warm buttery cream with a peach glow, a soft indigo light and the quilting */
.bkc-tone--cream {
    background:
        radial-gradient(70% 30% at 100% 0%, color-mix(in srgb, var(--inv-soft) 85%, transparent), transparent 75%),
        radial-gradient(70% 30% at 0% 100%, color-mix(in srgb, var(--inv-primary) 22%, transparent), transparent 75%),
        radial-gradient(50% 20% at 0% 30%, color-mix(in srgb, var(--inv-shine) 30%, transparent), transparent 75%),
        linear-gradient(180deg, color-mix(in srgb, var(--inv-background) 88%, var(--inv-soft)), color-mix(in srgb, var(--inv-background) 72%, var(--inv-soft)));
}
/* peach: a rich warm wash from peach to coral */
.bkc-tone--peach {
    background:
        radial-gradient(80% 34% at 50% 0%, color-mix(in srgb, #fff 45%, transparent), transparent 75%),
        linear-gradient(180deg, color-mix(in srgb, var(--inv-soft) 80%, #fff), var(--bkc-peach));
}
.bkc-tone--cream::before, .bkc-tone--peach::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: var(--inv-primary); opacity: .13;
    -webkit-mask: var(--bkc-quilting) center top / 56px 56px repeat; mask: var(--bkc-quilting) center top / 56px 56px repeat;
}
.bkc-tone--peach::before { background: var(--inv-coral); opacity: .22; }

/* a client photo behind a section, under a strong gradient of the section's own tone */
.bkc-bgphoto { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.bkc-bgphoto img { display: block; width: 100%; height: calc(100% + 80px); margin-top: -40px; object-fit: cover; object-position: center 30%; --inv-parallax: 40px; }
.bkc-bgphoto::after { content: ''; position: absolute; inset: 0; }
.bkc-tone--night .bkc-bgphoto::after {
    background:
        radial-gradient(90% 50% at 20% 10%, color-mix(in srgb, var(--inv-primary) 45%, transparent), transparent),
        linear-gradient(180deg,
            color-mix(in srgb, var(--inv-deep) 92%, transparent),
            color-mix(in srgb, var(--inv-deep) 76%, transparent) 45%,
            color-mix(in srgb, var(--inv-deep) 95%, transparent));
}
.bkc-tone--peach .bkc-bgphoto::after {
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--inv-soft) 93%, transparent),
        color-mix(in srgb, var(--inv-soft) 84%, transparent) 45%,
        color-mix(in srgb, var(--bkc-peach) 95%, transparent));
}

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

/* heading: eyebrow on a stitched pill, title, the last word in the script font in gold foil, the constellation */
.bkc-heading { margin: 0 0 2rem; }
.bkc-heading__eyebrow { margin: 0 0 .7rem; }
.bkc-heading__eyebrow span {
    display: inline-block; padding: .3rem .95rem; border-radius: 999px;
    font-size: .66rem; font-weight: 700; line-height: 1.2; letter-spacing: .22em; text-transform: uppercase; color: var(--bkc-gold-ink);
    background: color-mix(in srgb, #fff 55%, transparent); outline: 1.2px dashed var(--bkc-line); outline-offset: -4px;
}
.bkc-heading__title {
    margin: 0; font-family: var(--bkc-serif); font-size: 2.05rem; font-weight: 400; line-height: 1.12;
    color: var(--bkc-title); text-wrap: balance;
}
.bkc-heading__title em {
    display: inline-block; padding: 0 .1em .12em; font-family: var(--bkc-script); font-style: normal; font-weight: 400;
    font-size: 1.32em; line-height: .9;
}
/* on cream and peach the foil word is a deeper bronze-to-coral so it reads */
:is(.bkc-tone--cream, .bkc-tone--peach) .bkc-heading__title em {
    background-image: linear-gradient(100deg, var(--bkc-gold-ink), color-mix(in srgb, var(--inv-coral) 80%, var(--bkc-gold-ink)) 30%, var(--bkc-gold-1) 50%, color-mix(in srgb, var(--inv-coral) 80%, var(--bkc-gold-ink)) 70%, var(--bkc-gold-ink));
}
.bkc-heading__divider { margin: .8rem auto 0; }
.bkc-tone--night .bkc-heading__eyebrow span { color: var(--inv-shine); background: color-mix(in srgb, #fff 8%, transparent); }
.bkc-tone--night .bkc-heading__title { color: #fff; }

/* the constellation divider */
.bkc-divider { display: block; width: min(13rem, 72%); height: auto; overflow: visible; }

/* quilted card: paper, a gold hairline, a dashed stitch inside and a row of cloud scallops on top */
.bkc-quilt {
    position: relative; background: var(--bkc-paper); border-radius: 22px;
    box-shadow: inset 0 0 0 1px var(--bkc-line), var(--bkc-drop);
    outline: 1.5px dashed var(--bkc-stitch-ink); outline-offset: -9px;
}
.bkc-quilt::before {
    content: ''; position: absolute; left: 18px; right: 18px; top: -9px; height: 10px; pointer-events: none;
    background: radial-gradient(circle at 50% 100%, var(--bkc-paper) 9px, transparent 9.6px) 50% 0 / 19px 10px repeat-x;
}

/* the night sky layer (sections/_sky) */
.bkc-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bkc-sky__twinkle { position: absolute; height: auto; aspect-ratio: 1; overflow: visible; filter: drop-shadow(0 0 4px color-mix(in srgb, var(--inv-shine) 80%, transparent)); }
.bkc-sky__constellation { position: absolute; width: 8.5rem; height: auto; overflow: visible; opacity: .75; }
.bkc-sky__constellation--a { right: 4%; top: 2.4rem; }
.bkc-sky__constellation--b { left: 3%; bottom: 2.4rem; width: 7rem; }
.bkc-sky__lines { stroke: var(--inv-shine); }
.bkc-tone--cream .bkc-sky__lines, .bkc-tone--peach .bkc-sky__lines { stroke: var(--inv-accent); }

/* the crib mobile (sections/_mobile): sizes from --mw */
.bkc-mobile { --mw: 18rem; position: relative; width: var(--mw); height: calc(var(--mw) * .5); pointer-events: none; }
.bkc-mobile--tap { pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bkc-mobile__ring { position: absolute; left: 0; top: 0; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 2px 3px rgb(0 0 0 / .3)); }
.bkc-mobile__hanger {
    position: absolute; left: var(--x); top: calc(var(--mw) * var(--y)); width: calc(var(--mw) * var(--w));
    display: flex; flex-direction: column; align-items: center; transform: translateX(-50%); transform-origin: 50% 0;
}
.bkc-mobile__thread { display: block; width: 1px; height: calc(var(--mw) * var(--len)); background: linear-gradient(180deg, var(--bkc-gold-2), var(--bkc-gold-3)); opacity: .9; }
.bkc-mobile__fig { display: block; width: 100%; height: auto; overflow: visible; margin-top: -2px; filter: drop-shadow(0 4px 5px rgb(0 0 0 / .35)); }
.bkc-mobile__ping { position: absolute; left: 50%; bottom: 0; width: 140%; aspect-ratio: 1; margin: 0 0 -20% -70%; border-radius: 50%; border: 1.5px solid var(--inv-shine); opacity: 0; pointer-events: none; }
.bkc-mobile.was-tapped .bkc-mobile__ping { display: none; }
.bkc-mobile__hanger--star .bkc-mobile__fig, .bkc-mobile__hanger--twinkle .bkc-mobile__fig { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--inv-shine) 75%, transparent)); }

/* the nursery window (sections/_window): figure 232:292, the pane inside the cloud edge */
.bkc-window { --win-w: 15rem; --win-pos: center 22%; position: relative; width: var(--win-w); aspect-ratio: 232 / 292; margin: 0 auto; flex: none; }
.bkc-window__cloud-edge, .bkc-window__rules { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.bkc-window__cloud-edge { filter: drop-shadow(0 10px 18px color-mix(in srgb, var(--inv-night) 55%, transparent)); }
.bkc-window__pane {
    position: absolute; left: 6.897%; right: 6.897%; top: 5.479%; bottom: 5.479%; overflow: hidden;
    border-radius: 50% 50% 0 0 / 38.46% 38.46% 0 0;
    background:
        radial-gradient(70% 40% at 50% 30%, color-mix(in srgb, var(--inv-coral) 38%, transparent), transparent 70%),
        linear-gradient(175deg, color-mix(in srgb, var(--inv-primary) 85%, #fff), var(--inv-deep));
}
.bkc-window__photo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--win-pos); }
.bkc-window__photo--bg { background: var(--win-pos) / cover no-repeat; }
.bkc-window__empty { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: .3rem; }
.bkc-window__moon { width: 30%; overflow: visible; }
.bkc-window__initials { font-family: var(--bkc-script); font-size: calc(var(--win-w) * .19); line-height: 1; color: #fff; white-space: nowrap; text-shadow: 0 6px 18px rgb(0 0 0 / .3); }
.bkc-window__corner { position: absolute; bottom: -4%; width: 40%; overflow: visible; pointer-events: none; filter: drop-shadow(0 6px 8px color-mix(in srgb, var(--inv-night) 45%, transparent)); }
.bkc-window__corner--left { left: -14%; }
.bkc-window__corner--right { right: -14%; transform: scaleX(-1); }

/* the rub marker (reveal star): two pulsing gold rings, a rubbing hand and a label */
.bkc-rub { position: absolute; inset: 0; z-index: 5; pointer-events: none; transition: opacity .35s ease; }
.bkc-rub__ring {
    position: absolute; left: 50%; top: 55%; width: 44%; aspect-ratio: 1; margin: -22% 0 0 -22%; border-radius: 50%;
    border: 2.5px solid var(--inv-shine); opacity: 0;
}
.bkc-rub__hand {
    position: absolute; left: 50%; top: 52%; width: 2.8rem; height: 2.8rem; margin-left: -.9rem;
    fill: #fff; stroke: var(--bkc-gold-1); stroke-width: 1.4; stroke-linejoin: round;
    filter: drop-shadow(0 4px 6px rgb(0 0 0 / .4));
}
.bkc-rub__label {
    position: absolute; left: 50%; bottom: -1.5rem; transform: translateX(-50%); white-space: nowrap;
    padding: .42rem 1.05rem; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .05em;
    color: var(--inv-deep); background: var(--bkc-foil); background-size: 220% 100%;
    box-shadow: 0 0 0 2.5px var(--inv-deep), 0 0 0 3.6px var(--bkc-line), 0 10px 18px -8px rgb(0 0 0 / .6);
}
.bkc-reveal__star.is-scratching .bkc-rub { opacity: 0; }

/* ---------- 4. cover ---------- */
.bkc-cover {
    --cover-art: 21.5rem;
    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;
    padding: 1.4rem 1.2rem 1.6rem; isolation: isolate; color: var(--inv-background);
    background:
        radial-gradient(90% 34% at 50% 108%, color-mix(in srgb, var(--inv-coral) 52%, transparent), transparent 74%),
        radial-gradient(75% 36% at 50% 30%, color-mix(in srgb, var(--inv-primary) 75%, transparent), transparent 75%),
        linear-gradient(180deg, var(--inv-night), var(--inv-deep) 55%, color-mix(in srgb, var(--inv-deep) 72%, var(--inv-primary)));
    transition: opacity .9s ease;
}
.bkc-cover::before {
    content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: .8;
    background: var(--bkc-dots); background-size: 200px 200px;
}
.bkc-cover__sky { z-index: -1; }
.bkc-cover__sky .bkc-sky__constellation--a { top: 1rem; right: 2%; width: 7rem; }
.bkc-cover__sky .bkc-sky__constellation--b { bottom: 30%; left: 1%; width: 5.5rem; }
/* the clouds and the shooting star, clipped to the screen (nothing may widen the cover) */
.bkc-cover__decor { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
/* a shooting star now and then */
.bkc-cover__shooting {
    position: absolute; z-index: -1; left: 8%; top: 12%; width: 7rem; height: 2px; border-radius: 2px; opacity: 0; pointer-events: none;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--inv-shine) 60%, transparent), #fff);
    transform: rotate(18deg);
}
/* puffy clouds drifting along the bottom corners */
.bkc-cover__cloud { position: absolute; z-index: -1; width: 13rem; height: auto; overflow: visible; pointer-events: none; opacity: .92; filter: drop-shadow(0 10px 16px color-mix(in srgb, var(--inv-night) 55%, transparent)); }
.bkc-cover__cloud--left { left: -4.5rem; bottom: -1.6rem; }
.bkc-cover__cloud--right { right: -4.8rem; bottom: 4.5rem; width: 10rem; transform: scaleX(-1); opacity: .75; }

.bkc-cover__inner { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 400px; text-align: center; transition: transform .9s cubic-bezier(.5, 0, .3, 1); }

.bkc-cover__title { margin: 0 0 .2rem; }
.bkc-cover__title span {
    display: inline-block; padding: .3rem 1rem; border-radius: 999px;
    font-size: .66rem; font-weight: 700; line-height: 1.25; letter-spacing: .26em; text-transform: uppercase; color: var(--inv-shine);
    background: color-mix(in srgb, #fff 8%, transparent); outline: 1.2px dashed color-mix(in srgb, var(--inv-shine) 55%, transparent); outline-offset: -4px;
}

/* the art: the mobile hangs over the window; the window starts .23 of the mobile width down */
.bkc-cover__art { --mw: var(--cover-art); position: relative; width: var(--cover-art); max-width: 100%; }
.bkc-cover__mobile { position: absolute; left: 0; top: 0; z-index: 2; }
.bkc-window--cover { --win-w: calc(var(--mw) * .72); --win-pos: center 18%; margin-top: calc(var(--mw) * .23); }
/* a warm light breathing behind the window */
.bkc-cover__art::before {
    content: ''; position: absolute; z-index: -1; left: -10%; right: -10%; top: 14%; bottom: 0; border-radius: 50%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--inv-shine) 34%, transparent), transparent);
}

.bkc-cover__names {
    margin: .5rem 0 0; max-width: 100%; font-family: var(--bkc-script); font-size: 3.15rem; font-weight: 400; line-height: 1.12;
    padding: 0 .2em .06em; white-space: nowrap; overflow-wrap: normal;
    filter: drop-shadow(0 2px 6px rgb(0 0 0 / .35));
}
.bkc-cover__date { margin: .35rem 0 0; }
.bkc-cover__date span {
    position: relative; display: inline-block; padding: .3rem 1.25rem .32rem; border-radius: 999px;
    font-family: var(--bkc-serif); font-size: 1.02rem; letter-spacing: .03em;
    color: var(--inv-deep); background: var(--bkc-foil); background-size: 220% 100%;
    box-shadow: 0 0 0 2.5px var(--inv-deep), 0 0 0 3.6px var(--bkc-line);
}
.bkc-cover__quote {
    max-width: 30ch; margin: .55rem 0 0; font-family: var(--bkc-serif); font-size: 1rem; line-height: 1.35; color: var(--bkc-cream-muted);
}
.bkc-cover__guest {
    width: min(100%, 18.5rem); margin: .7rem 0 0; padding: .45rem 1rem .5rem; border-radius: 16px;
    background: color-mix(in srgb, var(--inv-background) 9%, transparent);
    box-shadow: inset 0 0 0 1px var(--bkc-line); outline: 1.2px dashed color-mix(in srgb, var(--inv-shine) 40%, transparent); outline-offset: -5px;
}
.bkc-cover__guest p { margin: 0; font-size: .6rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--inv-shine); }
.bkc-cover__guest-name { display: block; font-family: var(--bkc-serif); font-size: 1.22rem; line-height: 1.22; color: #fff; overflow-wrap: anywhere; }
.bkc-cover__open {
    margin-top: .85rem; min-height: 2.9rem; padding: .65rem 1.9rem; font-weight: 700; letter-spacing: .05em;
    color: var(--inv-deep); background: var(--bkc-foil); background-size: 220% 100%;
    box-shadow: 0 0 0 3px var(--inv-deep), 0 0 0 4.2px var(--bkc-line), 0 14px 26px -12px rgb(0 0 0 / .6);
}

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

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

/* opening: the quilted letter with a hanging star */
.bkc-opening { padding: 4.4rem 1.3rem 4.2rem; }
.bkc-letter { max-width: 22.5rem; margin: 0 auto; padding: 3.6rem 1.5rem 4.4rem; border-radius: 26px; }
.bkc-letter__charm { position: absolute; left: 50%; top: -3.2rem; display: flex; flex-direction: column; align-items: center; width: 3.2rem; margin-left: -1.6rem; transform-origin: 50% 0; z-index: 2; }
.bkc-letter__thread { width: 1px; height: 2.6rem; background: var(--bkc-gold-2); }
.bkc-letter__charm svg { width: 3.2rem; height: 3.2rem; margin-top: -.4rem; overflow: visible; filter: drop-shadow(0 4px 8px color-mix(in srgb, var(--inv-accent) 55%, transparent)); }
.bkc-letter__cloud { position: absolute; bottom: -1.2rem; width: 6.6rem; overflow: visible; filter: drop-shadow(0 6px 8px color-mix(in srgb, var(--inv-deep) 22%, transparent)); }
.bkc-letter__cloud--left { left: -1.6rem; }
.bkc-letter__cloud--right { right: -1.6rem; transform: scaleX(-1); }
.bkc-letter__body { position: relative; }
.bkc-opening__basmalah { margin: 0 0 .6rem; font-size: 1.75rem; }
.bkc-opening__greeting { margin: 0 auto; max-width: 22ch; font-family: var(--bkc-serif); font-size: 1.5rem; line-height: 1.3; color: var(--bkc-title); }
.bkc-opening__divider { margin: .9rem auto; }
.bkc-opening__message { margin: 0 auto; max-width: 28ch; color: var(--bkc-muted); }

/* parents: the window with dangling star and moon, names, three quilted medallions */
.bkc-parents__art { position: relative; width: min(15.5rem, 68vw); margin: 2.6rem auto 0; }
.bkc-window--parents { --win-w: 100%; --win-pos: center 22%; }
.bkc-dangle { position: absolute; top: -2.6rem; z-index: 2; display: flex; flex-direction: column; align-items: center; width: 3rem; transform-origin: 50% 0; }
.bkc-dangle__thread { width: 1px; height: 3.4rem; background: var(--bkc-gold-2); }
.bkc-dangle svg { width: 100%; height: auto; margin-top: -2px; overflow: visible; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--inv-shine) 55%, transparent)); }
.bkc-dangle--left { left: -1.9rem; }
.bkc-dangle--right { right: -2rem; width: 3.4rem; }
.bkc-dangle--right .bkc-dangle__thread { height: 2.2rem; }
.bkc-parents__names { display: flex; flex-direction: column; align-items: center; gap: .1rem; margin: 1.9rem 0 0; }
.bkc-parents__role { display: block; font-size: .64rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--inv-shine); }
.bkc-parents__name { margin: .1rem 0 0; font-family: var(--bkc-serif); font-size: 1.6rem; line-height: 1.15; color: #fff; overflow-wrap: anywhere; }
.bkc-parents__amp { display: block; margin: .15rem 0; font-family: var(--bkc-script); font-size: 2.7rem; line-height: 1; padding: 0 .15em; }
.bkc-parents__facts { display: flex; justify-content: center; flex-wrap: wrap; gap: .55rem; margin: 1.7rem 0 0; padding: 0; list-style: none; }
.bkc-parents__fact {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: min(6.7rem, calc((100vw - 4rem) / 3)); aspect-ratio: 1; padding: .55rem .4rem .4rem;
    border-radius: 50%; color: var(--inv-text); background: radial-gradient(circle at 40% 30%, #fff, var(--bkc-paper) 60%, color-mix(in srgb, var(--inv-soft) 60%, var(--bkc-paper)));
    box-shadow: 0 0 0 3px var(--inv-deep), 0 0 0 4.4px var(--inv-shine), 0 14px 24px -14px rgb(0 0 0 / .7);
    outline: 1.3px dashed var(--bkc-stitch-ink); outline-offset: -6px;
}
.bkc-parents__fact-star { position: absolute; top: -.55rem; width: 1.1rem; overflow: visible; }
.bkc-parents__fact-label { font-size: .52rem; font-weight: 700; letter-spacing: .12em; line-height: 1.3; text-transform: uppercase; color: var(--bkc-gold-ink); }
.bkc-parents__fact-value { margin-top: .15rem; font-family: var(--bkc-serif); font-size: .94rem; line-height: 1.15; color: var(--bkc-title); }
.bkc-parents__address { display: flex; justify-content: center; align-items: flex-start; gap: .45rem; margin: 1.3rem auto 0 !important; font-size: .86rem; color: var(--bkc-cream-muted); }
.bkc-parents__address .bkc-icon { margin-top: .2rem; color: var(--inv-shine); }

/* occasion: a cream cloud plaque with a stitch, a balloon floating at its side */
.bkc-occasion { padding-top: 5rem; }
.bkc-occasion__plaque {
    position: relative; max-width: 22rem; margin: 0 auto; padding: 2.6rem 1.5rem 2.4rem;
    border-radius: 120px 120px 34px 34px / 90px 90px 34px 34px; background: var(--bkc-paper);
    box-shadow: inset 0 0 0 1px var(--bkc-line), 0 26px 40px -24px color-mix(in srgb, var(--inv-coral) 80%, transparent);
    outline: 1.5px dashed var(--bkc-stitch); outline-offset: -10px;
}
/* a puffy cloud resting on the plaque's shoulder */
.bkc-occasion__cloud { position: absolute; left: -1.8rem; top: -.2rem; width: 6rem; overflow: visible; filter: drop-shadow(0 8px 10px color-mix(in srgb, var(--inv-coral) 45%, transparent)); }
.bkc-occasion__balloon { position: absolute; right: -.6rem; top: -3.6rem; width: 3rem; overflow: visible; filter: drop-shadow(0 8px 10px rgb(0 0 0 / .25)); }
.bkc-occasion__eyebrow { margin: 0 0 .4rem; font-size: .64rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--bkc-gold-ink); }
.bkc-occasion__type {
    margin: 0; font-family: var(--bkc-script); font-size: 2.65rem; font-weight: 400; line-height: 1.12; padding: 0 .1em .1em; text-wrap: balance;
    background-image: linear-gradient(100deg, var(--bkc-title), var(--inv-coral) 50%, var(--bkc-title)); background-size: 220% 100%;
}
.bkc-occasion__divider { margin: .7rem auto 1rem; }
.bkc-occasion__intent { margin: 0 auto; max-width: 30ch; font-size: .95rem; line-height: 1.6; color: var(--bkc-muted); }

/* message: a quilted speech-cloud with a gold star for a quotation mark */
.bkc-message__quote { max-width: 24rem; margin: 0 auto; padding: 2.4rem 1.5rem 1.8rem; }
.bkc-message__quote::after {
    content: ''; position: absolute; left: 50%; bottom: -1.05rem; width: 1.6rem; height: 1.6rem; margin-left: 3rem; border-radius: 50%;
    background: var(--bkc-paper); box-shadow: inset 0 0 0 1px var(--bkc-line), 1.4rem 1.1rem 0 -.35rem var(--bkc-paper);
}
.bkc-message__mark { position: absolute; left: 50%; top: -1.7rem; width: 3.2rem; height: 3.2rem; margin-left: -1.6rem; overflow: visible; filter: drop-shadow(0 4px 8px color-mix(in srgb, var(--inv-accent) 50%, transparent)); }
.bkc-message__quote p { margin: 0; font-family: var(--bkc-serif); font-size: 1.24rem; line-height: 1.55; color: var(--inv-text); }
.bkc-message__quote cite { display: block; margin-top: .9rem; font-family: var(--bkc-script); font-style: normal; font-size: 2.1rem; line-height: 1.1; color: var(--bkc-title); }

/* events: quilted cards on the night with a gold star pinned to the corner */
.bkc-event { margin: 0 auto; max-width: 25rem; padding: .75rem .75rem 1.7rem; text-align: left; color: var(--inv-text); }
.bkc-event + .bkc-event { margin-top: 2.8rem; }
.bkc-event__pin { position: absolute; right: -.5rem; top: -1.2rem; z-index: 2; width: 3rem; height: 3rem; overflow: visible; transform: rotate(14deg); filter: drop-shadow(0 4px 8px rgb(0 0 0 / .35)); }
.bkc-event__media { position: relative; margin: .2rem .2rem 0; }
.bkc-event__photo { display: block; width: 100%; aspect-ratio: 16 / 10.5; object-fit: cover; object-position: center 30%; border-radius: 999px 999px 14px 14px / 72% 72% 14px 14px; outline: 1.4px dashed rgb(255 255 255 / .85); outline-offset: -7px; }
.bkc-event__top { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1rem 0; }
.bkc-event__media + .bkc-event__top { margin-top: -2.4rem; align-items: flex-end; }
.bkc-event__date {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; width: 4.7rem; height: 4.7rem; margin: 0;
    border-radius: 50%; color: #fff; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--inv-primary) 75%, #fff), var(--inv-deep));
    box-shadow: 0 0 0 3px var(--bkc-paper), 0 0 0 4.6px var(--inv-accent), 0 12px 20px -10px color-mix(in srgb, var(--inv-deep) 70%, transparent);
    outline: 1.2px dashed rgb(255 255 255 / .5); outline-offset: -5px;
    font-size: .56rem; font-weight: 700; letter-spacing: .1em; line-height: 1.2; text-transform: uppercase;
}
.bkc-event__date strong { font-family: var(--bkc-serif); font-size: 1.9rem; font-weight: 400; line-height: 1; letter-spacing: 0; }
.bkc-event__date span:first-child { color: var(--inv-shine); }
.bkc-event__head { min-width: 0; padding-bottom: .1rem; }
.bkc-event__media + .bkc-event__top .bkc-event__head { padding-top: 2.6rem; }
.bkc-event__name { margin: 0; font-family: var(--bkc-serif); font-size: 1.5rem; font-weight: 400; line-height: 1.15; color: var(--bkc-title); }
.bkc-event__full { margin: .15rem 0 0; font-size: .8rem; color: var(--bkc-muted); }
.bkc-event__rows { display: grid; gap: .7rem; margin: 1rem 1rem 0; padding: .95rem 0 0; list-style: none; font-size: .9rem; border-top: 1.4px dashed var(--bkc-line); }
.bkc-event__rows li { display: flex; align-items: flex-start; gap: .65rem; }
.bkc-event__rows .bkc-icon { width: 2rem; height: 2rem; padding: .42rem; border-radius: 50%; color: #fff; background: linear-gradient(140deg, var(--inv-coral), color-mix(in srgb, var(--inv-coral) 60%, var(--inv-primary))); }
.bkc-event__rows li > span { padding-top: .28rem; }
.bkc-event__venue { display: block; font-weight: 700; }
.bkc-event__address { display: block; font-size: .85rem; color: var(--bkc-muted); }
.bkc-event .inv-maps { margin: 1.1rem 1rem 0; text-align: center; }
.bkc-event .inv-maps .inv-button { width: 100%; font-weight: 700; }
.bkc-event .inv-maps__frame { height: 180px; border-radius: 14px; }

/* countdown: four baby blocks (coral, gold, indigo, peach) with stitched faces */
.bkc-countdown .inv-countdown { gap: clamp(.45rem, 2.4vw, .75rem); }
.bkc-countdown .inv-countdown__item {
    display: grid; place-content: center; width: clamp(4rem, 18.5vw, 4.7rem); min-width: 0; aspect-ratio: 1; padding: 0; border-radius: 16px;
    color: #fff; background: linear-gradient(150deg, color-mix(in srgb, var(--block) 70%, #fff), var(--block));
    box-shadow: inset 0 -5px 0 color-mix(in srgb, var(--block) 70%, #000), 0 14px 22px -12px rgb(0 0 0 / .65);
    outline: 1.4px dashed rgb(255 255 255 / .75); outline-offset: -6px;
}
.bkc-countdown .inv-countdown__item:nth-child(4n + 1) { --block: var(--inv-coral); transform: rotate(-4deg); }
.bkc-countdown .inv-countdown__item:nth-child(4n + 2) { --block: var(--inv-accent); transform: rotate(3deg) translateY(-4px); }
.bkc-countdown .inv-countdown__item:nth-child(4n + 3) { --block: var(--inv-primary); transform: rotate(-2deg); }
.bkc-countdown .inv-countdown__item:nth-child(4n + 4) { --block: color-mix(in srgb, var(--inv-coral) 55%, var(--inv-soft)); transform: rotate(4deg) translateY(-3px); }
.bkc-countdown .inv-countdown__value { font-variant-numeric: lining-nums tabular-nums; font-family: var(--bkc-serif); font-size: 1.85rem; line-height: 1; text-shadow: 0 2px 0 rgb(0 0 0 / .18); }
.bkc-countdown .inv-countdown__label { margin-top: .1rem; font-size: .52rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.bkc-countdown .inv-countdown__done { font-family: var(--bkc-serif); font-size: 1.3rem; color: var(--inv-shine); }
.bkc-countdown .inv-countdown__actions { flex-direction: column; align-items: center; gap: .6rem; margin-top: 2rem; }
.bkc-countdown .inv-countdown__actions .inv-button {
    width: min(100%, 17rem); min-height: 2.75rem; padding: .6rem 1rem; font-size: .84rem; font-weight: 700;
    color: var(--inv-background); background: color-mix(in srgb, var(--inv-background) 10%, transparent);
    box-shadow: inset 0 0 0 1px var(--bkc-line);
}
.bkc-countdown .inv-countdown__actions .inv-button:first-child { color: var(--inv-deep); background: var(--bkc-foil); background-size: 220% 100%; box-shadow: none; }
.bkc-countdown .inv-cal {
    --inv-cal-bg: var(--bkc-paper); --inv-cal-mark: var(--inv-coral);
    max-width: 19rem; margin: 2.8rem auto 0; border-radius: 22px;
    box-shadow: inset 0 0 0 1px var(--bkc-line), 0 22px 40px -24px rgb(0 0 0 / .6);
    outline: 1.4px dashed var(--bkc-stitch-ink); outline-offset: -8px;
}
.bkc-countdown .inv-cal__month { font-family: var(--bkc-serif); font-size: 1.4rem; color: var(--bkc-title); }

/* prayer: a quilted panel with a round top, the sleepy moon on its apex */
.bkc-prayer { padding-top: 5.6rem; }
.bkc-prayer__panel { max-width: 22rem; margin: 0 auto; padding: 3rem 1.4rem 2.6rem; border-radius: 11rem 11rem 24px 24px; color: var(--inv-text); }
.bkc-prayer__panel::before { display: none; }
.bkc-prayer__moon { position: absolute; left: 50%; top: -2.4rem; width: 4.4rem; margin-left: -2.2rem; overflow: visible; filter: drop-shadow(0 0 12px color-mix(in srgb, var(--inv-shine) 75%, transparent)); }
.bkc-prayer__eyebrow { margin: 0 0 .9rem; font-size: .64rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--bkc-gold-ink); }
.bkc-prayer__arabic { margin: 0 0 1rem; font-size: 1.42rem; text-wrap: balance; }
.bkc-prayer__text { margin: 0; }
.bkc-prayer__text p { margin: 0; font-family: var(--bkc-serif); font-size: 1.1rem; line-height: 1.55; }
.bkc-prayer__text cite {
    display: inline-block; margin-top: 1rem; padding: .26rem .9rem; border-radius: 999px; font-style: normal; font-size: .7rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; color: var(--bkc-gold-ink); outline: 1.2px dashed var(--bkc-line); outline-offset: -3px;
}

/* rituals: numbered gold stars on a dotted thread */
.bkc-rituals__intro { font-family: var(--bkc-serif); font-size: 1.08rem; line-height: 1.55; color: var(--bkc-cream-muted) !important; }
.bkc-rituals__list { position: relative; display: grid; gap: 1.1rem; max-width: 24rem; margin: 1.8rem auto 0; padding: 0; list-style: none; text-align: left; }
.bkc-rituals__list::before {
    content: ''; position: absolute; left: 1.5rem; top: 1rem; bottom: 1rem; width: 2px;
    background: radial-gradient(circle, var(--inv-shine) 1px, transparent 1.4px) 0 0 / 2px 7px repeat-y;
}
.bkc-rite { position: relative; display: grid; grid-template-columns: 3rem 4.2rem minmax(0, 1fr); align-items: center; gap: .75rem; }
.bkc-rite__num {
    position: relative; display: grid; place-items: center; width: 3rem; height: 3rem; padding-top: .3rem;
    font-family: var(--bkc-serif); font-size: 1.15rem; color: var(--inv-deep);
    background: radial-gradient(circle at 40% 35%, #fffbea, var(--bkc-gold-3) 45%, var(--inv-accent));
    clip-path: polygon(50% 3.6%, 66.6% 32.1%, 98.8% 39.1%, 76.8% 63.6%, 80.1% 96.4%, 50% 83.1%, 19.9% 96.4%, 23.2% 63.6%, 1.2% 39.1%, 33.4% 32.1%);
}
.bkc-rite__art, .bkc-rite__photo {
    display: grid; place-items: center; width: 4.2rem; height: 5.2rem; border-radius: 999px 999px 12px 12px;
    color: var(--inv-shine); background: color-mix(in srgb, var(--inv-background) 9%, transparent); box-shadow: inset 0 0 0 1px var(--bkc-line);
    outline: 1.2px dashed color-mix(in srgb, var(--inv-shine) 45%, transparent); outline-offset: -5px;
}
.bkc-rite__photo { object-fit: cover; object-position: center 30%; }
.bkc-rite__art .bkc-icon { width: 2.3rem; height: 2.3rem; stroke-width: 1.3; }
.bkc-rite__text h3 { margin: 0; font-family: var(--bkc-serif); font-size: 1.28rem; font-weight: 400; line-height: 1.2; color: #fff; }
.bkc-rite__text p { margin: .2rem 0 0; font-size: .86rem; line-height: 1.5; color: var(--bkc-cream-muted); }

/* rundown: a dotted gold thread, coral time pills with a twinkle, quilted step cards */
.bkc-rundown__list { position: relative; max-width: 24rem; margin: 0 auto; padding: 0; list-style: none; text-align: left; }
.bkc-rundown__list::before {
    content: ''; position: absolute; left: 2.35rem; top: .6rem; bottom: .6rem; width: 2px; transform-origin: top;
    background: radial-gradient(circle, var(--inv-accent) 1.1px, transparent 1.5px) 0 0 / 2px 7px repeat-y;
}
.bkc-rundown__item { position: relative; display: grid; grid-template-columns: 4.7rem minmax(0, 1fr); align-items: start; column-gap: .8rem; padding: 0 0 1rem; }
.bkc-rundown__item:last-child { padding-bottom: 0; }
.bkc-rundown__time {
    position: relative; justify-self: center; margin-top: .45rem; padding: .24rem .64rem; border-radius: 999px; font-size: .84rem; font-weight: 700;
    font-variant-numeric: tabular-nums; color: #fff; background: linear-gradient(140deg, var(--inv-coral), color-mix(in srgb, var(--inv-coral) 60%, var(--inv-primary)));
    box-shadow: 0 0 0 3px var(--bkc-cream);
}
.bkc-rundown__body { padding: .7rem .95rem .75rem; border-radius: 16px; background: var(--bkc-paper); box-shadow: inset 0 0 0 1px var(--bkc-line); outline: 1.2px dashed var(--bkc-stitch-ink); outline-offset: -5px; }
.bkc-rundown__body h3 { margin: 0; font-family: var(--bkc-serif); font-size: 1.1rem; font-weight: 400; line-height: 1.3; color: var(--bkc-title); }
.bkc-rundown__body p { margin: .1rem 0 0; font-size: .85rem; color: var(--bkc-muted); }

/* reveal: the scratch-off gold star (clip and canvas share one star: --bkc-star-clip, js/bintang-kecil.js) */
.bkc-reveal {
    --bkc-star-clip: polygon(50% 3.62%, 66.58% 32.08%, 98.77% 39.05%, 76.82% 63.61%, 80.14% 96.39%, 50% 83.1%, 19.86% 96.39%, 23.18% 63.61%, 1.23% 39.05%, 33.42% 32.08%);
    --bkc-round-clip: polygon(50% 3%, 77.63% 11.98%, 94.7% 35.48%, 94.7% 64.52%, 77.63% 88.02%, 50% 97%, 22.37% 88.02%, 5.3% 64.52%, 5.3% 35.48%, 22.37% 11.98%);
    padding-bottom: 3.6rem;
}
.bkc-reveal__lead { color: var(--bkc-cream-muted) !important; }
.bkc-reveal__lead--picked strong { color: var(--inv-shine); }
.bkc-reveal__guesses { display: flex; justify-content: center; gap: .7rem; margin: 0 0 1rem; }
.bkc-reveal__guess {
    display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; padding: .5rem 1.15rem; border: 0; border-radius: 999px; cursor: pointer;
    font: 700 .88rem/1 var(--bkc-sans); color: #fff; transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s ease;
    outline: 1.2px dashed rgb(255 255 255 / .55); outline-offset: -5px;
}
.bkc-reveal__guess--boy { background: linear-gradient(180deg, #5aa2f0, #2f6fc4); }
.bkc-reveal__guess--girl { background: linear-gradient(180deg, #f27aa8, #d23f7d); }
.bkc-reveal__guess.is-picked { transform: translateY(-3px) scale(1.05); box-shadow: 0 0 0 3px var(--inv-deep), 0 0 0 4.5px var(--inv-shine); }

.bkc-reveal__stage { position: relative; width: min(16rem, 70vw); margin: 0 auto; padding-top: 2.4rem; }
.bkc-reveal__thread { position: absolute; left: 50%; top: 0; width: 1px; height: 2.9rem; background: linear-gradient(180deg, transparent, var(--bkc-gold-2) 30%, var(--bkc-gold-3)); }
.bkc-reveal__star { --size: min(16rem, 70vw); position: relative; width: var(--size); aspect-ratio: 1; filter: drop-shadow(0 0 22px color-mix(in srgb, var(--inv-shine) 45%, transparent)); }
.bkc-reveal__answer {
    position: absolute; inset: 0; clip-path: var(--bkc-star-clip);
    color: var(--reveal-ink, var(--inv-deep));
    background: radial-gradient(circle at 42% 40%, #fff, var(--reveal-soft, var(--bkc-gold-3)) 52%, var(--reveal-deep, var(--inv-accent)));
    transition: clip-path .9s cubic-bezier(.3, 1.3, .5, 1);
}
.bkc-reveal__stage.is-open .bkc-reveal__answer { clip-path: var(--bkc-round-clip); }
.bkc-reveal__stage.is-done .bkc-reveal__answer { clip-path: circle(47% at 50% 50%); transition: none; box-shadow: inset 0 0 0 .5rem color-mix(in srgb, #fff 35%, transparent); }
/* the opened badge gets a gold rim with a stitched ring */
.bkc-reveal__star::after {
    content: ''; position: absolute; inset: 3%; border-radius: 50%; pointer-events: none; opacity: 0;
    box-shadow: 0 0 0 3px var(--inv-shine), 0 0 0 5px color-mix(in srgb, var(--inv-shine) 30%, transparent);
    outline: 1.6px dashed color-mix(in srgb, #fff 85%, transparent); outline-offset: -10px;
    transition: opacity .5s ease .2s;
}
.bkc-reveal__stage.is-done .bkc-reveal__star::after { opacity: 1; }
.bkc-reveal--girl { --reveal-soft: #ffc9de; --reveal-deep: #e2558f; --reveal-ink: #96124d; }
.bkc-reveal--boy { --reveal-soft: #c9e1ff; --reveal-deep: #3f86de; --reveal-ink: #134a90; }
.bkc-reveal__answer-label, .bkc-reveal__answer-word, .bkc-reveal__answer-icon { position: absolute; left: 0; right: 0; text-align: center; transform: translateY(-50%); }
.bkc-reveal__answer-label { top: 34%; font-size: calc(var(--size) * .042); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.bkc-reveal__answer-word { top: 52%; font-family: var(--bkc-script); font-size: calc(var(--size) * .16); line-height: 1.1; white-space: nowrap; }
.bkc-reveal--secret .bkc-reveal__answer-word { font-size: calc(var(--size) * .11); }
.bkc-reveal__answer-icon { top: 70%; display: flex; justify-content: center; }
.bkc-reveal__answer-icon .bkc-icon { width: calc(var(--size) * .1); height: calc(var(--size) * .1); }
/* the CSS foil (no JavaScript), hidden once the canvas is painted */
.bkc-reveal__foil {
    position: absolute; inset: 0; clip-path: var(--bkc-star-clip);
    background: radial-gradient(circle at 40% 36%, #fff6d4, var(--inv-shine) 40%, var(--inv-accent) 75%, var(--bkc-gold-1));
    transition: opacity .6s ease;
}
.bkc-reveal__star.is-painted .bkc-reveal__foil { opacity: 0; }
.bkc-reveal__canvas {
    position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; opacity: 0;
    transition: opacity .7s ease, transform .9s cubic-bezier(.3, 0, .2, 1);
}
.bkc-reveal__canvas.is-ready { opacity: 1; }
.bkc-reveal__canvas:active { cursor: grabbing; }
.bkc-reveal__stage.is-open :is(.bkc-reveal__canvas, .bkc-reveal__foil) { opacity: 0; transform: scale(1.18); pointer-events: none; }
.bkc-reveal__rays { position: absolute; left: 50%; top: 55%; width: 0; height: 0; pointer-events: none; }
.bkc-reveal__rays svg { position: absolute; left: -.8rem; top: -.8rem; width: 1.6rem; height: 1.6rem; overflow: visible; opacity: 0; }
.bkc-reveal__skip {
    display: block; min-height: 2.6rem; margin: 2.8rem auto 0; padding: .45rem 1.1rem; border: 0; border-radius: 999px; cursor: pointer;
    font: 700 .78rem/1.2 var(--bkc-sans); color: var(--inv-background); background: color-mix(in srgb, #fff 8%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-shine) 55%, transparent);
}
.bkc-reveal__after { max-width: 26rem; margin: 1.6rem auto 0; }
.bkc-reveal__message { margin: 0 auto; font-family: var(--bkc-serif); font-size: 1.2rem; line-height: 1.5; color: #fff; }
.bkc-reveal__verdict { margin: .7rem 0 0; font-size: .92rem; font-weight: 700; color: var(--inv-shine); }

/* party: the theme plaque with stars, the gown and its swatches, the note and the hashtag */
.bkc-party__label { display: block; font-size: .62rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--bkc-gold-ink); }
.bkc-party__theme-card { max-width: 19rem; margin: 0 auto; padding: 1.5rem 3.2rem 1.5rem; border-radius: 999px; }
.bkc-party__theme-card::before { display: none; }
.bkc-party__theme { margin: .2rem 0 0; font-family: var(--bkc-script); font-size: 2.2rem; line-height: 1.1; color: var(--bkc-title); }
.bkc-party__star { position: absolute; top: 50%; width: 3rem; height: 3rem; margin-top: -1.5rem; overflow: visible; filter: drop-shadow(0 4px 6px rgb(0 0 0 / .2)); }
.bkc-party__star--left { left: -1rem; transform: rotate(-14deg); }
.bkc-party__star--right { right: -1rem; transform: rotate(14deg); }
.bkc-party__dress { display: grid; grid-template-columns: 5rem minmax(0, 1fr); align-items: center; gap: 1rem; max-width: 22rem; margin: 1.9rem auto 0; padding: 1.2rem 1.3rem; text-align: left; }
.bkc-party__gown { width: 5rem; height: auto; }
.bkc-party__gown-body { fill: var(--bkc-pick, var(--inv-primary)); stroke: var(--bkc-gold-1); stroke-width: 1.2; transition: fill .4s ease; }
.bkc-party__gown-line { fill: none; stroke: color-mix(in srgb, #fff 60%, transparent); stroke-width: 1; stroke-dasharray: 2 2; }
.bkc-party__dress-name { margin: .15rem 0 .55rem; font-family: var(--bkc-serif); font-size: 1.2rem; line-height: 1.25; color: var(--bkc-title); }
.bkc-swatches { display: flex; flex-wrap: wrap; gap: .45rem; }
.bkc-swatch {
    width: 2.1rem; height: 2.1rem; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: var(--bkc-swatch);
    box-shadow: 0 0 0 2px var(--bkc-paper), 0 0 0 3px var(--bkc-line); transition: transform .2s ease;
}
.bkc-swatch[aria-pressed=true] { transform: scale(1.12); box-shadow: 0 0 0 2px var(--bkc-paper), 0 0 0 4px var(--inv-coral); }
.bkc-party__hint { margin: .5rem 0 0 !important; font-size: .76rem; color: var(--bkc-muted); }
.bkc-party__hint--center { margin: .5rem auto 0 !important; text-align: center; }
.bkc-party__note { margin-top: 1.4rem !important; font-family: var(--bkc-serif); font-size: 1.08rem; line-height: 1.55; color: var(--inv-text); }
.bkc-party__hashtag {
    display: inline-flex; align-items: center; gap: .5rem; max-width: 100%; margin-top: .4rem; padding: .35rem .4rem .35rem .9rem; border-radius: 999px;
    background: var(--bkc-paper); box-shadow: inset 0 0 0 1px var(--bkc-line);
}
.bkc-party__hashtag .bkc-icon { color: var(--inv-coral); }
.bkc-party__hashtag-text { font-weight: 700; color: var(--bkc-title); overflow-wrap: anywhere; }
.bkc-party__copy {
    min-height: 2.2rem; padding: .3rem .9rem; border: 0; border-radius: 999px; cursor: pointer; font: 700 .78rem/1 var(--bkc-sans);
    color: var(--inv-deep); background: var(--bkc-foil); background-size: 220% 100%;
}

/* story: small round-topped windows with a stitched rule beside the text, alternating; text-only chapters quilted */
.bkc-story__list { display: grid; gap: 2.2rem; margin: 0; padding: 0; list-style: none; text-align: left; }
.bkc-story__item { display: grid; grid-template-columns: 42% minmax(0, 1fr); align-items: center; gap: 1.2rem; }
.bkc-story__item--flip { grid-template-columns: minmax(0, 1fr) 42%; }
.bkc-story__item--flip .bkc-story__media { order: 2; }
.bkc-story__media { padding: 6px; border-radius: 999px 999px 16px 16px; background: var(--bkc-paper); box-shadow: inset 0 0 0 1.5px var(--inv-accent), var(--bkc-drop); }
.bkc-story__photo { display: block; width: 100%; aspect-ratio: 5 / 6.4; object-fit: cover; object-position: center 28%; border-radius: 999px 999px 12px 12px; outline: 1.3px dashed rgb(255 255 255 / .85); outline-offset: -6px; }
.bkc-story__when {
    display: inline-block; padding: .22rem .75rem; border-radius: 999px; font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: #fff; background: linear-gradient(140deg, var(--inv-coral), color-mix(in srgb, var(--inv-coral) 60%, var(--inv-primary)));
}
.bkc-story__body h3 { margin: .5rem 0 0; font-family: var(--bkc-serif); font-size: 1.36rem; font-weight: 400; line-height: 1.2; color: var(--bkc-title); }
.bkc-story__body p { margin: .35rem 0 0; font-size: .88rem; line-height: 1.55; color: var(--bkc-muted); }
.bkc-story__item--text {
    grid-template-columns: 2.8rem minmax(0, 1fr); align-items: start; gap: .9rem; padding: 1.2rem 1.25rem; border-radius: 20px;
    background: linear-gradient(160deg, color-mix(in srgb, var(--inv-soft) 60%, var(--bkc-paper)), color-mix(in srgb, var(--inv-soft) 85%, var(--inv-coral)));
    outline: 1.4px dashed color-mix(in srgb, #fff 80%, transparent); outline-offset: -7px;
}
.bkc-story__dot {
    display: grid; place-items: center; width: 2.8rem; height: 2.8rem; padding-top: .3rem; font-family: var(--bkc-serif); font-size: 1.05rem; color: var(--inv-deep);
    background: radial-gradient(circle at 40% 35%, #fffbea, var(--bkc-gold-3) 45%, var(--inv-accent));
    clip-path: polygon(50% 3.6%, 66.6% 32.1%, 98.8% 39.1%, 76.8% 63.6%, 80.1% 96.4%, 50% 83.1%, 19.9% 96.4%, 23.2% 63.6%, 1.2% 39.1%, 33.4% 32.1%);
}

/* gallery: the first photo a tall round-topped window over two rows, the others with a stitched gold rule */
.bkc-gallery .inv-gallery { gap: .6rem; }
.bkc-gallery .inv-gallery__item { border-radius: 16px; box-shadow: 0 0 0 1.5px var(--bkc-line), 0 16px 28px -18px rgb(0 0 0 / .7); outline: 1.2px dashed rgb(255 255 255 / .7); outline-offset: -6px; }
.bkc-gallery .inv-gallery__item:first-child { grid-row: span 2; aspect-ratio: auto; border-radius: 999px 999px 16px 16px; box-shadow: 0 0 0 2.5px var(--inv-accent), 0 16px 28px -18px rgb(0 0 0 / .7); }

/* live streaming */
.bkc-stream__card {
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .9rem 1rem; max-width: 24rem; margin: 0 auto; padding: 1.4rem;
    border-radius: 24px; color: var(--inv-background); text-align: left;
    background: radial-gradient(70% 90% at 0% 0%, color-mix(in srgb, var(--inv-primary) 70%, transparent), transparent 70%), var(--bkc-dots), linear-gradient(140deg, var(--inv-deep), var(--inv-night));
    background-size: auto, 200px 200px, auto;
    box-shadow: inset 0 0 0 1px var(--bkc-line), var(--bkc-drop); outline: 1.4px dashed color-mix(in srgb, var(--inv-shine) 45%, transparent); outline-offset: -8px;
}
.bkc-stream__icon { display: grid; place-items: center; width: 3.3rem; height: 3.3rem; border-radius: 50%; color: var(--inv-deep); background: var(--bkc-foil); background-size: 220% 100%; }
.bkc-stream__icon .bkc-icon { width: 1.65rem; height: 1.65rem; }
.bkc-stream__title { margin: 0 0 .1rem; font-family: var(--bkc-serif); font-size: 1.5rem; font-weight: 400; line-height: 1.15; color: #fff; }
.bkc-stream__text p { margin: 0; font-size: .86rem; color: var(--bkc-cream-muted); }
.bkc-stream__text .bkc-stream__note { margin-top: .3rem; font-weight: 700; color: var(--inv-shine); }
.bkc-stream__button { grid-column: 1 / -1; min-height: 2.75rem; color: var(--inv-deep) !important; background: var(--bkc-foil) !important; background-size: 220% 100% !important; font-weight: 700; }

/* RSVP card: quilted cream */
.bkc-rsvp__card { max-width: 25rem; margin: 0 auto; padding: 2.2rem 1.15rem 1.4rem; color: var(--inv-text); }
.bkc-rsvp__intro { margin: 0 auto 1.1rem; max-width: 30ch; font-size: .9rem; color: var(--bkc-muted); }
.bkc-rsvp__sent { margin-bottom: 1rem; }
.bkc-rsvp__check { display: block; width: 4.25rem; height: 4.25rem; margin: 0 auto .5rem; }
.bkc-rsvp__check circle { fill: var(--inv-primary); }
.bkc-rsvp__check path { fill: none; stroke: #fff; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
html.inv-anim .bkc-rsvp__sent .bkc-rsvp__check { animation: bkc-bounce .8s cubic-bezier(.34, 1.56, .64, 1) both; }
html.inv-anim .bkc-rsvp__sent .bkc-rsvp__check path { animation: bkc-draw .45s ease-out .35s both; }
.bkc-rsvp__thanks { margin: 0; font-family: var(--bkc-script); font-size: 2.3rem; line-height: 1.1; color: var(--bkc-title); }
.bkc-rsvp__line { margin: .1rem 0 0; font-size: .9rem; color: var(--bkc-muted); }
.bkc-rsvp .inv-rsvp__deadline { margin: 0 0 1rem; font-size: .84rem; font-weight: 700; color: var(--bkc-title); }

/* gift: quilted cream cards with a gold foil band and a twinkle, two per row (odd last across) */
.bkc-gift__intro { color: var(--bkc-cream-muted) !important; }
.bkc-gift .inv-gift__accounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: 1.3rem; }
.bkc-gift .inv-gift__account:last-child:nth-child(odd) { grid-column: 1 / -1; }
.bkc-gift .inv-gift__account,
.bkc-gift .inv-gift__address {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: .3rem; min-width: 0; margin: 0; overflow: hidden;
    padding: 1.9rem .75rem 1rem; border-radius: 18px; color: var(--inv-text); background: var(--bkc-paper);
    box-shadow: inset 0 0 0 1px var(--bkc-line), 0 18px 30px -20px rgb(0 0 0 / .6);
    outline: 1.3px dashed var(--bkc-stitch-ink); outline-offset: -6px;
}
.bkc-gift .inv-gift__account::before {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: .95rem; background: var(--bkc-foil); background-size: 220% 100%;
    -webkit-mask: radial-gradient(circle at 50% 100%, transparent 4px, #000 4.5px) 50% 0 / 12px 100% repeat-x; mask: radial-gradient(circle at 50% 100%, transparent 4px, #000 4.5px) 50% 0 / 12px 100% repeat-x;
}
.bkc-gift .inv-gift__account p, .bkc-gift .inv-gift__address p { margin: 0; }
.bkc-gift .inv-gift__bank { font-weight: 700; font-size: .85rem; color: var(--bkc-title); }
.bkc-gift .inv-gift__logo { height: 1.6rem; padding: .2rem .5rem; border-radius: .4rem; background: #fff; }
.bkc-gift .inv-gift__logo img { max-width: 5rem; }
.bkc-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); }
.bkc-gift .inv-gift__holder { font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--bkc-muted); overflow-wrap: anywhere; }
.bkc-gift .inv-button { margin-top: .35rem; min-height: 2.25rem; padding: .35rem .9rem; font-size: .74rem; font-weight: 700; }
.bkc-gift .inv-gift__address { margin-top: .75rem; padding-top: 1.1rem; font-size: .875rem; }
.bkc-gift .inv-gift__address .inv-gift__holder { font-size: .72rem; }

/* wishlist */
.bkc-wishlist__intro { color: var(--bkc-muted); font-size: .92rem; }
.bkc-wishlist__list { display: grid; gap: .7rem; max-width: 24rem; margin: 1.3rem auto 0; padding: 0; list-style: none; text-align: left; }
.bkc-wishlist__item { display: grid; grid-template-columns: 2.8rem minmax(0, 1fr); align-items: start; gap: .9rem; padding: .9rem 1rem; border-radius: 18px; background: var(--bkc-paper); box-shadow: inset 0 0 0 1px var(--bkc-line); outline: 1.2px dashed var(--bkc-stitch-ink); outline-offset: -5px; }
.bkc-wishlist__number {
    display: grid; place-items: center; width: 2.8rem; height: 2.8rem; padding-top: .3rem; font-family: var(--bkc-serif); font-size: 1.05rem; color: var(--inv-deep);
    background: radial-gradient(circle at 40% 35%, #fffbea, var(--bkc-gold-3) 45%, var(--inv-accent));
    clip-path: polygon(50% 3.6%, 66.6% 32.1%, 98.8% 39.1%, 76.8% 63.6%, 80.1% 96.4%, 50% 83.1%, 19.9% 96.4%, 23.2% 63.6%, 1.2% 39.1%, 33.4% 32.1%);
}
.bkc-wishlist__photo { display: block; width: 2.8rem; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 999px 999px 6px 6px; box-shadow: 0 0 0 1.5px var(--inv-accent); }
.bkc-wishlist__text p { margin: 0; }
.bkc-wishlist__name { padding-top: .1rem; font-family: var(--bkc-serif); font-size: 1.12rem; line-height: 1.3; color: var(--bkc-title); overflow-wrap: anywhere; }
.bkc-wishlist__note { margin-top: .1rem !important; font-size: .86rem; color: var(--bkc-muted); }
.bkc-wishlist__shop { display: inline-flex; align-items: center; gap: .35rem; min-height: 2.2rem; margin-top: .25rem; font-size: .82rem; font-weight: 700; text-decoration: none; }
.bkc-wishlist__shop .bkc-icon { width: 1rem; height: 1rem; }

/* co-hosts: names split by small gold twinkles, on the night */
.bkc-cohosts__list { display: flex; flex-direction: column; align-items: center; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.bkc-cohosts__list li { max-width: 26ch; font-family: var(--bkc-serif); font-size: 1.18rem; line-height: 1.3; color: #fff; }
.bkc-cohosts__list li + li::before {
    content: ''; display: block; width: 11px; height: 11px; margin: 0 auto .55rem; background: var(--inv-shine);
    clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}

/* contacts */
.bkc-contacts__list { display: grid; gap: .7rem; max-width: 24rem; margin: 0 auto; }
.bkc-contact {
    display: grid; grid-template-columns: 2.9rem minmax(0, 1fr) auto; align-items: center; gap: .8rem; padding: .55rem .55rem .55rem .6rem; border-radius: 999px;
    background: var(--bkc-paper); text-align: left; box-shadow: inset 0 0 0 1px var(--bkc-line); outline: 1.2px dashed var(--bkc-stitch-ink); outline-offset: -4px;
}
.bkc-contact__avatar {
    display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; font-family: var(--bkc-serif); font-size: 1.3rem;
    color: #fff; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--inv-primary) 75%, #fff), var(--inv-deep)); box-shadow: 0 0 0 2px var(--bkc-paper), 0 0 0 3.2px var(--inv-accent);
}
.bkc-contact p { margin: 0; }
.bkc-contact__name { font-weight: 700; font-size: .95rem; line-height: 1.3; overflow-wrap: anywhere; }
.bkc-contact__role { font-size: .78rem; color: var(--bkc-muted); }
.bkc-contact__phone { font-size: .85rem; }
.bkc-contact__button { min-height: 2.5rem; padding: .45rem .95rem; font-size: .8rem; font-weight: 700; }
.bkc-contact__button .bkc-icon { width: 1.05rem; height: 1.05rem; }

/* health protocol */
.bkc-protocol__list { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.bkc-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(--bkc-paper); box-shadow: inset 0 0 0 1px var(--bkc-line); }
.bkc-protocol__list .bkc-icon { width: 1rem; height: 1rem; color: var(--inv-coral); }
.bkc-protocol__note { font-size: .88rem; color: var(--bkc-muted); }

/* vendors */
.bkc-vendors__list { max-width: 24rem; margin: 0 auto; padding: .3rem 1.2rem; list-style: none; border-radius: 20px; background: var(--bkc-paper); box-shadow: inset 0 0 0 1px var(--bkc-line), var(--bkc-drop); outline: 1.3px dashed var(--bkc-stitch-ink); outline-offset: -7px; }
.bkc-vendor { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .85rem 0; text-align: left; border-bottom: 1.3px dashed var(--bkc-line); }
.bkc-vendor:last-child { border-bottom: 0; }
.bkc-vendor__text { display: flex; flex-direction: column; min-width: 0; }
.bkc-vendor__role { font-size: .62rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--bkc-gold-ink); }
.bkc-vendor__name { font-family: var(--bkc-serif); font-size: 1.12rem; line-height: 1.25; color: var(--inv-text); overflow-wrap: anywhere; }
.bkc-vendor__link {
    display: inline-flex; align-items: center; gap: .3rem; flex: none; min-height: 2.2rem; padding: .3rem .7rem; border-radius: 999px;
    font-size: .74rem; font-weight: 700; text-decoration: none; color: var(--bkc-title); box-shadow: inset 0 0 0 1px var(--bkc-line);
}
.bkc-vendor__link .bkc-icon { width: .95rem; height: .95rem; }

/* closing: compact — the photo melting into the night, the sleepy moon, thanks and the names (above the menu) */
.bkc-closing { padding: 2.8rem 1.6rem 5.2rem; }
.bkc-closing--photo { padding-top: 0; }
.bkc-closing__photo {
    position: relative; z-index: -1; height: min(22rem, calc(var(--inv-screen, 100svh) * .48)); margin: 0 -1.6rem; overflow: hidden;
    -webkit-mask: linear-gradient(180deg, #000 52%, transparent); mask: linear-gradient(180deg, #000 52%, transparent);
}
.bkc-closing__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.bkc-closing__cloud { position: absolute; z-index: -1; bottom: -1.4rem; width: 11rem; overflow: visible; opacity: .9; pointer-events: none; }
.bkc-closing__cloud--left { left: -3.6rem; }
.bkc-closing__cloud--right { right: -3.8rem; bottom: .8rem; width: 8.5rem; transform: scaleX(-1); opacity: .7; }
.bkc-closing__body { position: relative; }
.bkc-closing--photo .bkc-closing__body { margin-top: -4.6rem; }
.bkc-closing__moon { position: relative; display: flex; justify-content: center; align-items: center; gap: .4rem; margin: 0 auto .4rem; }
.bkc-closing__crescent { width: 3.6rem; height: 3.6rem; overflow: visible; filter: drop-shadow(0 0 12px color-mix(in srgb, var(--inv-shine) 70%, transparent)); }
.bkc-closing__twinkle { width: 1rem; overflow: visible; }
.bkc-closing__twinkle--a { margin-top: -1.6rem; }
.bkc-closing__twinkle--b { width: .8rem; margin-top: 1.4rem; }
.bkc-closing__title { margin: 0 0 .6rem; font-family: var(--bkc-serif); font-size: 2.1rem; font-weight: 400; line-height: 1.05; color: #fff; }
.bkc-closing__title em { font-family: var(--bkc-script); font-style: normal; font-weight: 400; font-size: 1.35em; color: var(--inv-shine); }
.bkc-closing__message { margin: 0 auto; max-width: 32ch; font-size: .9rem; line-height: 1.55; color: var(--bkc-cream-muted); }
.bkc-closing__salam { margin: .7rem auto 0; max-width: 28ch; font-family: var(--bkc-serif); font-size: 1.04rem; line-height: 1.35; color: var(--inv-shine); }
.bkc-closing__signature { margin: .45rem auto 0; max-width: 30ch; font-size: .84rem; color: var(--bkc-cream-muted); }
.bkc-closing__names { margin: .55rem 0 0; font-family: var(--bkc-script); font-size: 2.55rem; line-height: 1.12; padding: 0 .15em .08em; }

/* ---------- 6. forms (shared RSVP + wishes, restyled) ---------- */
.bkc-main .inv-form { gap: 1rem; text-align: left; }
.bkc-main .inv-form label, .bkc-main .inv-form__choices legend { font-size: .82rem; font-weight: 700; color: var(--inv-text); }
.bkc-main .inv-form input:not([type=radio]):not([type=checkbox]),
.bkc-main .inv-form select,
.bkc-main .inv-form textarea {
    width: 100%; min-height: 2.9rem; padding: .7rem .9rem; border: 0; border-radius: 14px;
    font: 500 .95rem/1.4 var(--bkc-sans); color: var(--inv-text); background: #fff;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 60%, transparent);
    transition: box-shadow .2s ease;
}
.bkc-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;
}
.bkc-main .inv-form input:not([type=radio]):focus-visible,
.bkc-main .inv-form select:focus-visible,
.bkc-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) 35%, transparent); }
.bkc-main .inv-form button[type=submit] { width: 100%; min-height: 3rem; font-weight: 700; box-shadow: 0 12px 22px -12px color-mix(in srgb, var(--inv-primary) 80%, transparent); }
.bkc-main .inv-form .inv-button--outline { width: 100%; min-height: 2.75rem; }
.bkc-main .inv-form__notice { text-align: center; }

/* the three answers as cards with icons (the radio dot is hidden but still focusable) */
.bkc-rsvp .inv-form__choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.bkc-rsvp .inv-form__choices legend { margin-bottom: .5rem; padding: 0; }
.bkc-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: 18px; cursor: pointer; text-align: center;
    font-size: .84rem; font-weight: 700; line-height: 1.2; color: var(--inv-text); background: #fff;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 60%, transparent);
    transition: background-color .25s ease, color .25s ease, transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s ease;
}
.bkc-rsvp .inv-form__choices input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.bkc-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 cubic-bezier(.34, 1.56, .64, 1), background-color .25s ease; }
.bkc-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(--bkc-choice-icon) center / contain no-repeat; mask: var(--bkc-choice-icon) center / contain no-repeat;
}
.bkc-rsvp .inv-form__choices label:nth-of-type(1) { --bkc-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"); }
.bkc-rsvp .inv-form__choices label:nth-of-type(2) { --bkc-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"); }
.bkc-rsvp .inv-form__choices label:nth-of-type(3) { --bkc-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"); }
.bkc-rsvp .inv-form__choices label:has(input:checked) { color: #fff; background: var(--inv-primary); transform: translateY(-3px); box-shadow: 0 0 0 2px var(--inv-accent), 0 12px 24px -12px color-mix(in srgb, var(--inv-primary) 80%, transparent); }
.bkc-rsvp .inv-form__choices label:has(input:checked)::before { background-color: rgb(255 255 255 / .2); transform: scale(1.1); }
.bkc-rsvp .inv-form__choices label:has(input:checked)::after { color: #fff; }
.bkc-rsvp .inv-form__choices label:has(input:focus-visible) { outline: 2px solid var(--inv-accent); outline-offset: 3px; }

/* wishes */
.bkc-wishes .inv-wishes { --inv-wishes-height: 20rem; }
.bkc-wishes .inv-form { padding: 1.4rem 1.15rem; border-radius: 22px; background: var(--bkc-paper); box-shadow: inset 0 0 0 1px var(--bkc-line), var(--bkc-drop); outline: 1.4px dashed var(--bkc-stitch-ink); outline-offset: -8px; }
.bkc-wishes .inv-wishes__list { margin-top: 1.4rem; }
.bkc-wishes .inv-wishes:not(.inv-wishes--paged) .inv-wishes__list { padding: .55rem; border-radius: 20px; background: color-mix(in srgb, #fff 45%, transparent); box-shadow: inset 0 0 0 1px var(--bkc-line); }
.bkc-wishes .inv-wish { padding: .75rem .9rem; border-radius: 16px; background: #fff; text-align: left; box-shadow: 0 2px 10px rgb(0 0 0 / .05); border-left: 3px solid var(--inv-coral); }
.bkc-wishes .inv-wish__name { font-weight: 700; color: var(--bkc-title); }
.bkc-wishes .inv-wish__message { font-size: .88rem; line-height: 1.5; }
.bkc-wishes .inv-wish__time { font-size: .72rem; color: var(--bkc-muted); }

/* ---------- 7. shared components ---------- */
.bkc-main .inv-button { font-weight: 700; }
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(--bkc-sans);
}

/* ---------- 8. screen sizes ---------- */
/* the cover in px steps per screen height (never svh: Chrome on iPhone sizes it to the whole screen) */
@media (max-height: 800px) {
    .bkc-cover { --cover-art: 20rem; }
    .bkc-cover__names { font-size: 2.95rem; }
}
@media (max-height: 740px) {
    .bkc-cover { --cover-art: 17.6rem; padding-top: 1.1rem; padding-bottom: 1.2rem; }
    .bkc-cover__names { font-size: 2.7rem; }
    .bkc-cover__quote { font-size: .95rem; margin-top: .45rem; }
    .bkc-cover__guest { margin-top: .55rem; }
    .bkc-cover__open { margin-top: .7rem; }
    .bkc-cover__cloud--left { width: 11rem; }
}
@media (max-height: 680px) {
    .bkc-cover { --cover-art: 15.6rem; padding-top: .9rem; padding-bottom: 1rem; }
    .bkc-cover__title span { font-size: .6rem; padding: .24rem .85rem; }
    .bkc-cover__names { font-size: 2.45rem; }
    .bkc-cover__date span { font-size: .94rem; }
    .bkc-cover__quote { font-size: .9rem; line-height: 1.3; }
    .bkc-cover__guest { padding: .35rem .85rem .4rem; }
    .bkc-cover__guest-name { font-size: 1.1rem; }
    .bkc-cover__open { min-height: 2.7rem; padding: .55rem 1.6rem; }
    .bkc-cover__cloud--left { width: 9.5rem; }
    .bkc-cover__cloud--right { width: 8rem; }
}
@media (max-height: 620px) {
    .bkc-cover { --cover-art: 13.8rem; }
    .bkc-cover__names { font-size: 2.2rem; }
    .bkc-cover__quote { font-size: .85rem; }
}
@media (max-width: 360px) {
    .bkc-cover__names { font-size: 2.5rem; }
}

/* wide screens: the phone-width column on the night with the tiny stars */
@media (min-width: 560px) {
    body.bkc-body {
        background: radial-gradient(70vw 60vh at 50% 0%, color-mix(in srgb, var(--inv-primary) 55%, transparent), transparent 70%), var(--inv-night);
        background-attachment: fixed;
    }
    body.bkc-body::before {
        content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .7;
        background: var(--bkc-dots); background-size: 200px 200px;
    }
    .bkc-main { box-shadow: 0 30px 60px -30px rgb(0 0 0 / .6); }
}

/* ---------- 9. motion ---------- */
@keyframes bkc-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes bkc-bounce { 0% { transform: scale(0); } 55% { transform: scale(1.15); } 75% { transform: scale(.94); } 100% { transform: scale(1); } }
@keyframes bkc-rise { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes bkc-zoom-out { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes bkc-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes bkc-shine { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
@keyframes bkc-breathe { 0%, 100% { opacity: .65; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes bkc-twinkle { 0%, 100% { opacity: .25; transform: scale(.55) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(20deg); } }
@keyframes bkc-ping { 0% { opacity: .9; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.9); } }
@keyframes bkc-rub { 0%, 100% { transform: translate(-1.6rem, .2rem) rotate(-8deg); } 50% { transform: translate(1.2rem, -.5rem) rotate(6deg); } }
@keyframes bkc-sway { 0%, 100% { transform: translateX(-50%) rotate(calc(var(--amp) * -1)); } 50% { transform: translateX(-50%) rotate(var(--amp)); } }
@keyframes bkc-swing {
    0% { transform: translateX(-50%) rotate(0deg); }
    15% { transform: translateX(-50%) rotate(calc(var(--amp) * 3.2)); }
    35% { transform: translateX(-50%) rotate(calc(var(--amp) * -2.4)); }
    55% { transform: translateX(-50%) rotate(calc(var(--amp) * 1.6)); }
    75% { transform: translateX(-50%) rotate(calc(var(--amp) * -.9)); }
    100% { transform: translateX(-50%) rotate(calc(var(--amp) * -1)); }
}
@keyframes bkc-lower { from { opacity: 0; transform: translateY(-60%); } to { opacity: 1; transform: none; } }
@keyframes bkc-drift { 0%, 100% { translate: 0 0; } 50% { translate: 1.4rem -.3rem; } }
@keyframes bkc-shoot { 0%, 86% { opacity: 0; transform: rotate(18deg) translateX(0); } 88% { opacity: 1; } 96%, 100% { opacity: 0; transform: rotate(18deg) translateX(14rem); } }
@keyframes bkc-dangle { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes bkc-ray {
    0% { opacity: 0; transform: rotate(var(--a)) translateY(0) scale(.3); }
    25% { opacity: 1; }
    100% { opacity: 0; transform: rotate(var(--a)) translateY(-8.5rem) scale(var(--s)); }
}
@keyframes bkc-pop { 0% { transform: scale(.82); } 55% { transform: scale(1.08); } 100% { transform: scale(1); } }

/* gold foil: a slow moving shine */
html.inv-anim :is(.bkc-heading__title em, .bkc-cover__names, .bkc-closing__names, .bkc-cover__open, .bkc-rub__label, .bkc-occasion__type) { animation: bkc-shine 7s ease-in-out infinite; }

/* the sky: every twinkle lights up and fades on its own beat */
html.inv-anim .bkc-sky__twinkle { animation: bkc-twinkle 3.4s ease-in-out var(--d, 0s) infinite; }

/* the mobile: every figure sways on its thread; a tap swings it harder for a moment */
html.inv-anim .bkc-mobile__hanger { animation: bkc-sway 3.6s ease-in-out var(--delay) infinite; }
html.inv-anim .bkc-mobile.is-swung .bkc-mobile__hanger { animation: bkc-swing 2.2s cubic-bezier(.3, 0, .4, 1) both, bkc-sway 3.6s ease-in-out 2.2s infinite; }
html.inv-anim .bkc-dangle, html.inv-anim .bkc-letter__charm { animation: bkc-dangle 4s ease-in-out infinite; }
html.inv-anim .bkc-dangle--right { animation-delay: -1.6s; }

/* cover (≤ 2.5 s, once): the mobile lowers, the window rises and its photo settles; then a living sky */
html.inv-anim .bkc-cover__mobile { animation: bkc-lower 1.3s cubic-bezier(.25, 1.1, .4, 1) .1s both; }
html.inv-anim .bkc-window--cover { animation: bkc-rise .9s cubic-bezier(.2, .7, .2, 1) .35s both; }
html.inv-anim .bkc-window--cover .bkc-window__photo { animation: bkc-zoom-out 1.4s cubic-bezier(.2, .7, .2, 1) .35s both; }
html.inv-anim .bkc-cover__art::before { animation: bkc-breathe 5s ease-in-out infinite; }
html.inv-anim .bkc-cover__cloud, html.inv-anim .bkc-closing__cloud { animation: bkc-drift 14s ease-in-out infinite; }
html.inv-anim .bkc-cover__cloud--right, html.inv-anim .bkc-closing__cloud--right { animation-duration: 18s; animation-delay: -6s; }
html.inv-anim .bkc-cover__shooting { animation: bkc-shoot 9s linear 2.5s infinite; }

/* the rub marker: rings ping outward, the hand rubs left and right */
html.inv-anim .bkc-rub__ring { animation: bkc-ping 1.8s ease-out infinite; }
html.inv-anim .bkc-rub__ring--late { animation-delay: .9s; }
html.inv-anim .bkc-rub__hand { animation: bkc-rub 1.3s ease-in-out infinite; }
html:not(.inv-anim) .bkc-rub__ring { opacity: .6; }
html.inv-anim .bkc-mobile__ping { animation: bkc-ping 2.6s ease-out 2.4s infinite; }
/* the star opens: twinkles fly out, the badge pops */
html.inv-anim .bkc-reveal__stage.is-open .bkc-reveal__rays svg { animation: bkc-ray 1.3s cubic-bezier(.2, .7, .3, 1) both; }
html.inv-anim .bkc-reveal__stage.is-open .bkc-reveal__star { animation: bkc-pop .8s cubic-bezier(.3, 1.4, .5, 1) .15s both; }

/* scroll-drawn details (the default, without support, is the finished drawing) */
@supports (animation-timeline: view()) {
    html.inv-anim .bkc-rundown__list::before { animation: bkc-grow linear both; animation-timeline: view(); animation-range: entry 20% cover 55%; }
}

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

/* ---------- 10. intro scene "Nina Bobo" (scene.json + sections/_scene) ----------
   The intro is teleported to <body>: everything here stands on its own classes. */
.bkc-scene-sky { position: absolute; inset: 0; }
.bkc-scene-sky::before { content: ''; position: absolute; inset: 0; opacity: .8; background: var(--bkc-dots); background-size: 200px 200px; }
.bkc-scene-sky .bkc-sky { z-index: 0; }
.bkc-scene-sky .bkc-sky__constellation--b { bottom: 34%; }
.bkc-scene-glow { position: absolute; inset: 0; background: radial-gradient(closest-side, color-mix(in srgb, var(--inv-shine) 36%, transparent), transparent); }
html.inv-anim .bkc-scene-glow { animation: bkc-breathe 4s ease-in-out infinite; }
.bkc-scene-mobile { position: absolute; inset: 0; container-type: inline-size; display: flex; justify-content: center; }
.bkc-scene-mobile .bkc-mobile { --mw: min(92cqw, 26rem); }
.bkc-scene-window { position: absolute; inset: 0; container-type: size; display: grid; place-items: start center; }
.bkc-scene-window .bkc-window { --win-w: min(70cqw, 100cqh * 232 / 292, 20rem); --win-pos: center 18%; }
.bkc-scene-cloud { position: absolute; inset: 0; display: grid; place-items: center; }
.bkc-scene-cloud svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 12px 18px color-mix(in srgb, var(--inv-night) 50%, transparent)); }
/* the name card: a quilted cream card with a scalloped cloud top */
body.bkc-body .inv-intro--scene .inv-scene__card {
    top: 72%;
    -webkit-mask: none; mask: none; -webkit-backdrop-filter: none; backdrop-filter: none; aspect-ratio: auto; overflow: visible;
    padding: 1.4rem 1.2rem 1.15rem; border-radius: 26px;
    background: var(--bkc-paper);
    box-shadow: inset 0 0 0 1px var(--bkc-line), 0 24px 40px -14px rgb(0 0 0 / .6);
    outline: 1.5px dashed var(--bkc-stitch-ink); outline-offset: -8px;
}
body.bkc-body .inv-intro--scene .inv-scene__card::before {
    content: ''; position: absolute; left: 18px; right: 18px; top: -9px; height: 10px; pointer-events: none;
    background: radial-gradient(circle at 50% 100%, var(--bkc-paper) 9px, transparent 9.6px) 50% 0 / 19px 10px repeat-x;
}
body.bkc-body .inv-scene__card .inv-intro__label { font-family: var(--bkc-sans); font-size: .62rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--bkc-gold-ink); }
body.bkc-body .inv-scene__card .inv-intro__names { color: var(--bkc-title); line-height: 1.12; overflow-wrap: anywhere; }
body.bkc-body .inv-scene__card .inv-intro__rule { height: 1.5px; width: 3.4rem; background: radial-gradient(circle, var(--inv-accent) 1px, transparent 1.4px) 0 0 / 5px 2px repeat-x; }
body.bkc-body .inv-scene__card .inv-intro__date { font-family: var(--bkc-serif); font-size: .95rem; color: var(--bkc-muted); white-space: nowrap; }
