/*
 * Template "Bunga Pastel" (Lamaran & Tunangan): a romantic watercolour engagement on ivory paper. Loose
 * watercolour peonies and mallows (public-domain paintings keyed out of their paper, img/CREDITS.md),
 * eucalyptus sprigs painted in the variant's sage (inline SVG), soft washes of blush, peach and sage behind
 * the sections, and one deep accent colour for text, buttons and the deep bands. Fine gold lines: the oval
 * frames, the solitaire ring, the hairlines. Mobile-first, one column (~460px) on a painted backdrop on wide
 * screens.
 *
 * Colours come from the chosen colour variant (template.json → <x-inv.head>):
 *   --inv-primary (deep rose / deep sage / terracotta / mauve: titles, buttons)   --inv-deep (the deep bands)
 *   --inv-accent (gold: fine lines, the ring)   --inv-shine (light gold on the deep bands)
 *   --inv-soft (blush wash)   --inv-peach (peach wash)   --inv-sage (eucalyptus, sage wash)
 *   --inv-background (ivory paper)   --inv-text
 * The washes are masks (img/wash-a.webp = a round bloom, wash-b.webp = a long brush stroke, as
 * --bp-wash-a/-b), so they take any variant colour.
 *
 * Section tones (set on each section in its partial): .bp-tone--light (ivory), --blush, --peach, --sage
 * (soft washes), --deep (the deep band with lighter washes). Light and deep alternate.
 *
 * 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 section tones, blooms & photo backgrounds · 3 shared pieces (heading, oval, flower,
 *           eucalyptus, ring, pill) · 4 cover · 5 sections in page order · 6 forms (RSVP, wishes) ·
 *           7 shared components · 8 screen sizes · 9 motion
 */

/* ---------- 1. base ---------- */
:root {
    /* defaults = the "Rose Cat Air" variant (the variant's colours override these) */
    --inv-primary: #9b3454;
    --inv-accent: #b0823f;
    --inv-background: #fdf8f2;
    --inv-text: #3a1f27;
    --inv-deep: #5c1830;
    --inv-shine: #e8c88c;
    --inv-soft: #f3c9d0;
    --inv-peach: #f7d0b9;
    --inv-sage: #93ad94;
    --inv-radius: 16px;

    --bp-script: 'Parisienne', 'Segoe Script', cursive;
    --bp-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --bp-sans: 'Mulish', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bp-col: 460px;
    --bp-paper: color-mix(in srgb, #fff 70%, var(--inv-background));
    --bp-muted: color-mix(in srgb, var(--inv-text) 80%, var(--inv-background));
    --bp-ivory-muted: color-mix(in srgb, var(--inv-background) 86%, transparent);
    --bp-gold-ink: color-mix(in srgb, var(--inv-accent) 72%, var(--inv-deep));
    --bp-line: color-mix(in srgb, var(--inv-accent) 55%, transparent);
    --bp-drop: 0 24px 44px -26px color-mix(in srgb, var(--inv-deep) 70%, transparent);
    /* the deep bands: the primary glowing through the deep colour */
    --bp-deep-paint:
        radial-gradient(110% 60% at 15% 0%, color-mix(in srgb, var(--inv-primary) 90%, #fff 6%), transparent 70%),
        radial-gradient(90% 55% at 100% 100%, color-mix(in srgb, var(--inv-primary) 70%, transparent), transparent 75%),
        var(--inv-deep);
    /* the masks of the watercolour washes: a round bloom and a long brush stroke */
    --bp-wash-a: url('../img/wash-a.webp');
    --bp-wash-b: url('../img/wash-b.webp');

    /* colours of the shared components */
    --inv-ambient-1: var(--inv-primary);
    --inv-ambient-2: var(--inv-soft);
}

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

body {
    margin: 0;
    background: var(--inv-background);
    color: var(--inv-text);
    font-family: var(--bp-sans);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--inv-primary); }
.bp-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.bp-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 */
.bp-main { max-width: var(--bp-col); margin: 0 auto; }
.bp-branding { max-width: var(--bp-col); margin: 0 auto; }

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

.bp-arabic { font-family: 'Amiri', 'Traditional Arabic', serif; line-height: 1.9; color: var(--inv-primary); }
.bp-amp { font-family: var(--bp-serif); font-style: italic; color: var(--bp-gold-ink); }


/* ---------- 2. section tones, blooms & photo backgrounds ---------- */

/* light: ivory paper with a faint warm glow */
.bp-tone--light {
    background:
        radial-gradient(80% 35% at 100% 0%, color-mix(in srgb, var(--inv-soft) 30%, transparent), transparent 75%),
        radial-gradient(70% 30% at 0% 100%, color-mix(in srgb, var(--inv-peach) 28%, transparent), transparent 75%),
        var(--inv-background);
}
.bp-tone--blush { background: linear-gradient(180deg, color-mix(in srgb, var(--inv-soft) 34%, var(--inv-background)), color-mix(in srgb, var(--inv-soft) 52%, var(--inv-background))); }
.bp-tone--peach { background: linear-gradient(180deg, color-mix(in srgb, var(--inv-peach) 30%, var(--inv-background)), color-mix(in srgb, var(--inv-peach) 50%, var(--inv-background))); }
.bp-tone--sage { background: linear-gradient(180deg, color-mix(in srgb, var(--inv-sage) 18%, var(--inv-background)), color-mix(in srgb, var(--inv-sage) 30%, var(--inv-background))); }

/* deep: the deep band */
.bp-tone--deep { color: var(--inv-background); background: var(--bp-deep-paint); }
.bp-tone--deep a:not(.inv-button) { color: var(--inv-shine); }
.bp-tone--deep .bp-arabic { color: var(--inv-shine); }

/* blooms: big painted washes in the corners of a section (decoration only, behind everything) */
.bp-bloom {
    position: absolute; z-index: -1; width: 78%; aspect-ratio: 1; pointer-events: none; opacity: .5;
    background: var(--inv-soft);
    -webkit-mask: var(--bp-wash-a) center / 100% 100% no-repeat; mask: var(--bp-wash-a) center / 100% 100% no-repeat;
}
.bp-bloom--tl { left: -30%; top: -12%; }
.bp-bloom--tr { right: -32%; top: -10%; background: var(--inv-peach); transform: rotate(40deg); }
.bp-bloom--br { right: -34%; bottom: -14%; background: var(--inv-peach); transform: rotate(110deg); }
.bp-tone--blush .bp-bloom, .bp-tone--peach .bp-bloom { opacity: .55; }
.bp-tone--blush .bp-bloom--tr { background: var(--inv-peach); }
.bp-tone--peach .bp-bloom--tl { background: var(--inv-soft); }
.bp-tone--sage .bp-bloom { background: color-mix(in srgb, var(--inv-sage) 60%, var(--inv-background)); opacity: .55; }
.bp-bloom--deep-tr, .bp-bloom--deep-bl { background: color-mix(in srgb, var(--inv-primary) 75%, #fff 25%); opacity: .3; }
.bp-bloom--deep-tr { right: -34%; top: -16%; transform: rotate(60deg); }
.bp-bloom--deep-bl { left: -36%; bottom: -14%; transform: rotate(-30deg); }

/* a client photo behind a section, under a strong gradient of the section's own tone */
.bp-bgphoto { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.bp-bgphoto img { display: block; width: 100%; height: calc(100% + 80px); margin-top: -40px; object-fit: cover; object-position: center 35%; --inv-parallax: 40px; }
.bp-bgphoto::after { content: ''; position: absolute; inset: 0; }
.bp-tone--light .bp-bgphoto::after {
    background:
        radial-gradient(90% 60% at 50% 40%, color-mix(in srgb, var(--inv-background) 80%, transparent), transparent),
        linear-gradient(180deg,
            color-mix(in srgb, var(--inv-background) 90%, transparent),
            color-mix(in srgb, color-mix(in srgb, var(--inv-soft) 30%, var(--inv-background)) 82%, transparent) 50%,
            color-mix(in srgb, var(--inv-background) 94%, transparent));
}
.bp-tone--deep .bp-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) 88%, transparent),
            color-mix(in srgb, var(--inv-deep) 72%, transparent) 45%,
            color-mix(in srgb, var(--inv-deep) 94%, transparent));
}

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

/* section heading: a letter-spaced eyebrow, the serif title over a brush stroke, a tiny gold ring */
.bp-heading { margin: 0 0 2.2rem; }
.bp-heading--left { text-align: left; }
.bp-heading__eyebrow {
    margin: 0 0 .5rem; font-size: .68rem; font-weight: 700; line-height: 1.3; letter-spacing: .28em; text-transform: uppercase;
    color: var(--bp-gold-ink);
}
.bp-heading__title {
    position: relative; display: inline-block; margin: 0; padding: .1em .35em; font-family: var(--bp-serif); font-size: 2.35rem;
    font-weight: 500; line-height: 1.12; letter-spacing: -.005em; color: var(--inv-primary);
}
.bp-heading__title em { font-style: italic; font-weight: 400; color: color-mix(in srgb, var(--inv-primary) 72%, var(--inv-accent)); }
.bp-heading__stroke {
    position: absolute; z-index: -1; left: -6%; right: -6%; top: 18%; bottom: -4%; pointer-events: none;
    background: var(--inv-soft); opacity: .75;
    -webkit-mask: var(--bp-wash-b) center / 100% 100% no-repeat; mask: var(--bp-wash-b) center / 100% 100% no-repeat;
}
.bp-tone--blush .bp-heading__stroke { background: color-mix(in srgb, var(--inv-soft) 70%, var(--inv-peach)); opacity: .85; }
.bp-tone--peach .bp-heading__stroke { background: var(--inv-peach); opacity: .9; }
.bp-tone--sage .bp-heading__stroke { background: color-mix(in srgb, var(--inv-sage) 55%, var(--inv-background)); opacity: .7; }
/* the tiny gold ring under the title, between two hairlines */
.bp-heading__ring { display: flex; align-items: center; justify-content: center; gap: .55rem; margin-top: .75rem; }
.bp-heading__ring::before, .bp-heading__ring::after { content: ''; width: 2.4rem; height: 1px; background: var(--bp-line); }
.bp-heading__ring i { position: relative; width: 10px; height: 10px; border-radius: 50%; border: 1.4px solid var(--inv-accent); }
.bp-heading__ring i::before { content: ''; position: absolute; left: 50%; top: -5px; width: 4px; height: 4px; margin-left: -2px; transform: rotate(45deg); background: var(--inv-accent); }
.bp-heading--left .bp-heading__ring { justify-content: flex-start; }
.bp-heading--left .bp-heading__ring::before { display: none; }

.bp-tone--deep .bp-heading__eyebrow { color: var(--inv-shine); }
.bp-tone--deep .bp-heading__title { color: #fff; }
.bp-tone--deep .bp-heading__title em { color: var(--inv-shine); }
.bp-tone--deep .bp-heading__stroke { background: color-mix(in srgb, var(--inv-primary) 70%, #fff 18%); opacity: .55; }
.bp-tone--deep .bp-heading__ring i, .bp-tone--deep .bp-heading__ring i::before { border-color: var(--inv-shine); }
.bp-tone--deep .bp-heading__ring i::before { background: var(--inv-shine); }

/* icons */
.bp-icon { width: 1.15rem; height: 1.15rem; flex: none; }

/* the oval (sections/_oval): window + fine gold double line + two washes behind; --ow sets the width */
.bp-oval { --ow: 12rem; --opos: center 30%; position: relative; width: var(--ow); aspect-ratio: 1 / 1.3; margin: 0; flex: none; isolation: isolate; }
.bp-oval__window { position: absolute; inset: 0; overflow: hidden; border-radius: 50%; background: var(--inv-soft); box-shadow: 0 22px 36px -24px color-mix(in srgb, var(--inv-deep) 70%, transparent); }
.bp-oval__photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--opos); }
.bp-oval__line { position: absolute; inset: calc(var(--ow) * -.035); border-radius: 50%; pointer-events: none; border: 1.3px solid var(--inv-accent); }
.bp-oval__line::after { content: ''; position: absolute; inset: calc(var(--ow) * -.03); border-radius: 50%; border: .8px solid var(--bp-line); }
.bp-oval__wash { position: absolute; z-index: -1; pointer-events: none; -webkit-mask: var(--bp-wash-a) center / 100% 100% no-repeat; mask: var(--bp-wash-a) center / 100% 100% no-repeat; }
.bp-oval__wash--a { left: -24%; top: -10%; width: 92%; height: 82%; background: var(--inv-soft); opacity: .85; transform: rotate(-12deg); }
.bp-oval__wash--b { right: -22%; bottom: -8%; width: 86%; height: 74%; background: var(--inv-peach); opacity: .8; transform: rotate(150deg); }
.bp-oval__empty {
    position: absolute; inset: 0; display: grid; place-items: center;
    background:
        radial-gradient(70% 55% at 35% 30%, color-mix(in srgb, var(--inv-soft) 70%, #fff), transparent 75%),
        radial-gradient(70% 60% at 70% 80%, var(--inv-peach), transparent 80%),
        color-mix(in srgb, var(--inv-soft) 80%, var(--inv-background));
}
.bp-oval__initials { font-family: var(--bp-serif); font-style: italic; font-size: calc(var(--ow) * .2); line-height: 1; white-space: nowrap; color: var(--inv-primary); }
.bp-oval__initials--one { font-size: calc(var(--ow) * .38); }

/* the wreath on the cover: flowers and sprigs around the oval's edge, outside the face */
.bp-oval__euc { position: absolute; z-index: -1; width: 42%; }
.bp-oval__euc--top { left: -30%; top: -6%; transform: rotate(-40deg); }
.bp-oval__euc--bottom { right: -28%; bottom: -4%; transform: rotate(140deg); }
.bp-oval__mallow { position: absolute; right: -46%; top: -16%; width: 62%; transform: rotate(18deg); }
.bp-oval__peony { position: absolute; left: -33%; bottom: -3%; width: 58%; transform: rotate(-10deg); }

/* the painted flower images */
.bp-flower { display: block; height: auto; pointer-events: none; user-select: none; }

/* the eucalyptus sprig (sections/_eucalyptus) */
.bp-euc { display: block; overflow: visible; }
.bp-euc__leaves .bp-euc__blue { fill: url(#bp-leaf-blue); }
.bp-euc__stem { stroke: color-mix(in srgb, var(--inv-sage) 55%, #7a4a3a); stroke-width: 2; stroke-linecap: round; opacity: .8; }
.bp-euc__leaves ellipse { fill: url(#bp-leaf); fill-opacity: .78; stroke: color-mix(in srgb, var(--inv-sage) 60%, var(--inv-deep)); stroke-width: .7; stroke-opacity: .45; }

/* the solitaire ring (sections/_ring) */
.bp-ring { display: block; overflow: visible; color: var(--inv-accent); }
.bp-ring__band { stroke-width: 2.2; }
.bp-ring__inner { stroke-width: .9; opacity: .65; }
.bp-ring__line:not(.bp-ring__band):not(.bp-ring__inner) { stroke-width: 1.2; }
.bp-ring__stone { fill: color-mix(in srgb, #fff 80%, var(--inv-soft)); stroke-width: 1.1; }
.bp-ring__facet { stroke-width: .6; opacity: .8; }
.bp-ring__spark { stroke-width: 1; opacity: .8; }
.bp-tone--deep .bp-ring { color: var(--inv-shine); }

/* a small pill link (Instagram) */
.bp-pill {
    display: inline-flex; align-items: center; gap: .4rem; min-height: 2.2rem; padding: .3rem .85rem; border-radius: 999px;
    font-size: .8rem; font-weight: 600; text-decoration: none; color: var(--inv-primary); background: #fff;
    box-shadow: inset 0 0 0 1px var(--bp-line);
}
.bp-pill .bp-icon { width: 1rem; height: 1rem; color: var(--bp-gold-ink); }

/* ---------- 4. cover ---------- */
.bp-cover {
    --cover-ow: min(58vw, 15.5rem, 33svh);
    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: 2rem 1.4rem;
    isolation: isolate; color: var(--inv-text);
    background:
        radial-gradient(60% 30% at 50% 30%, color-mix(in srgb, #fff 60%, transparent), transparent 75%),
        var(--inv-background);
    transition: opacity .9s ease;
}
/* two big washes blooming in opposite corners of the page */
.bp-cover__bloom { position: absolute; z-index: -1; pointer-events: none; aspect-ratio: 1; -webkit-mask: var(--bp-wash-a) center / 100% 100% no-repeat; mask: var(--bp-wash-a) center / 100% 100% no-repeat; }
.bp-cover__bloom--a { right: -38%; top: -16%; width: min(110vw, 34rem); background: var(--inv-soft); opacity: .55; transform: rotate(30deg); }
.bp-cover__bloom--b { left: -42%; bottom: -18%; width: min(115vw, 36rem); background: var(--inv-peach); opacity: .55; transform: rotate(-70deg); }
.bp-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); }

.bp-cover__title {
    display: inline-flex; align-items: center; gap: .75rem; margin: 0 0 1.7rem;
    font-size: .72rem; font-weight: 700; line-height: 1.2; letter-spacing: .36em; text-transform: uppercase; color: var(--inv-primary);
}
.bp-cover__title::before, .bp-cover__title::after { content: ''; width: 1.8rem; height: 1px; background: var(--inv-accent); }

.bp-oval--cover { --ow: var(--cover-ow); --opos: center 26%; }

.bp-cover__names {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; column-gap: .25em; margin: 1.5rem 0 0;
    font-family: var(--bp-script); font-weight: 400; font-size: 3.5rem; line-height: 1.05; color: var(--inv-primary); overflow-wrap: anywhere;
}
.bp-cover__amp { font-family: var(--bp-serif); font-style: italic; font-size: .62em; color: var(--bp-gold-ink); }
.bp-cover__date {
    display: inline-flex; align-items: center; gap: .6rem; margin: .5rem 0 0;
    font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--bp-gold-ink);
}
.bp-cover__date i { width: 5px; height: 5px; border-radius: 50%; background: var(--inv-accent); }
.bp-cover__quote {
    max-width: 30ch; margin: .7rem 0 0; font-family: var(--bp-serif); font-style: italic;
    font-size: 1rem; line-height: 1.4; color: var(--bp-muted);
}
.bp-cover__guest {
    position: relative; width: min(100%, 19rem); margin: 1rem 0 0; padding: .55rem 1rem .6rem; border-radius: 14px;
    background: color-mix(in srgb, #fff 82%, transparent);
    box-shadow: inset 0 0 0 1px var(--bp-line), 0 12px 24px -18px color-mix(in srgb, var(--inv-deep) 55%, transparent);
}
.bp-cover__guest p { margin: 0; font-size: .62rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--bp-gold-ink); }
.bp-cover__guest-name { display: block; font-family: var(--bp-serif); font-size: 1.25rem; font-weight: 500; line-height: 1.25; color: var(--inv-text); overflow-wrap: anywhere; }
.bp-cover__open {
    margin-top: 1rem; min-height: 3rem; padding: .7rem 2.1rem; font-weight: 600; letter-spacing: .06em;
    background: var(--inv-primary); color: #fff;
    box-shadow: 0 0 0 3px var(--inv-background), 0 0 0 4px var(--bp-line), 0 14px 24px -12px color-mix(in srgb, var(--inv-primary) 75%, transparent);
}

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

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

/* opening: ring, basmalah, greeting, message; the verse on a painted blush wash with a mallow spray */
.bp-opening { padding: 4.6rem 1.6rem 4.8rem; }
.bp-opening__ring { width: 4.4rem; margin: 0 auto .7rem; }
.bp-opening__basmalah { margin: 0 auto .5rem !important; font-size: 1.85rem; }
.bp-opening__greeting { max-width: 22ch !important; font-family: var(--bp-serif); font-size: 1.45rem; font-style: italic; line-height: 1.3; color: var(--inv-primary); }
.bp-opening__message { max-width: 31ch !important; color: var(--bp-muted); }
.bp-opening__quote { position: relative; isolation: isolate; max-width: 23rem; margin: 2.6rem auto 0; padding: 2.4rem 1.6rem 2.1rem; }
.bp-opening__wash {
    position: absolute; z-index: -1; inset: -4% -8%; background: var(--inv-soft); opacity: .8;
    -webkit-mask: var(--bp-wash-a) center / 100% 100% no-repeat; mask: var(--bp-wash-a) center / 100% 100% no-repeat;
}
.bp-opening__mallow { position: absolute; z-index: -1; right: -16%; top: -26%; width: 44%; transform: rotate(8deg); }
.bp-opening__quote p { margin: 0; font-family: var(--bp-serif); font-style: italic; font-size: 1.08rem; line-height: 1.6; color: var(--inv-text); }
.bp-opening__quote cite {
    display: inline-block; margin-top: 1rem; padding: .25rem .85rem; border-radius: 999px; font-style: normal; font-size: .66rem; font-weight: 700;
    letter-spacing: .18em; text-transform: uppercase; color: #fff; background: var(--inv-primary);
}

/* couple: two asymmetric rows (oval left / right) with a sprig, the ring and a script "&" between them */
.bp-person { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1.4rem; text-align: left; }
.bp-person--flip { grid-template-columns: minmax(0, 1fr) auto; text-align: right; }
.bp-person--flip .bp-person__art { order: 2; }
.bp-person__art { position: relative; }
.bp-oval--person { --ow: min(8.8rem, 37vw); --opos: center 28%; }
.bp-person__euc { position: absolute; z-index: 1; left: -18%; bottom: -12%; width: 42%; transform: rotate(-150deg); }
.bp-person--flip .bp-person__euc { left: auto; right: -18%; transform: rotate(150deg) scaleX(-1); }
.bp-person__label { margin: 0; font-size: .62rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--bp-gold-ink); }
.bp-person__nickname { margin: .1rem 0 0; font-family: var(--bp-script); font-size: 3.1rem; line-height: 1.05; color: var(--inv-primary); overflow-wrap: anywhere; }
.bp-person__name { margin: .2rem 0 0; font-family: var(--bp-serif); font-size: 1.12rem; font-weight: 600; line-height: 1.25; color: var(--inv-text); overflow-wrap: anywhere; }
.bp-person__parents { margin: .5rem 0 .7rem; font-size: .84rem; line-height: 1.45; color: var(--bp-muted); }
.bp-person__parents span:first-child { display: block; }
.bp-person__parents strong { font-weight: 600; color: var(--inv-text); }
.bp-person__parents .bp-amp { padding: 0 .2em; }
.bp-couple__join { position: relative; display: flex; align-items: center; justify-content: center; gap: .5rem; height: 6.4rem; margin: 1rem 0; }
.bp-couple__wash {
    position: absolute; z-index: -1; left: 50%; top: 50%; width: 9rem; height: 7rem; margin: -3.5rem 0 0 -4.5rem; background: var(--inv-peach); opacity: .8;
    -webkit-mask: var(--bp-wash-a) center / 100% 100% no-repeat; mask: var(--bp-wash-a) center / 100% 100% no-repeat;
}
.bp-couple__ring { width: 3.6rem; color: var(--bp-gold-ink); }
.bp-couple__amp { font-family: var(--bp-script); font-size: 3rem; line-height: 1; color: var(--inv-primary); }

/* families: the intent, then ONE floral card (ivory, gold inner line, painted corners) holding both sides */
.bp-families { padding-bottom: 5rem; }
.bp-families__intent { max-width: 31ch !important; margin-bottom: 2.8rem !important; font-family: var(--bp-serif); font-style: italic; font-size: 1.16rem; line-height: 1.55; color: #fff; }
.bp-families__card {
    position: relative; isolation: isolate; overflow: hidden; max-width: 22rem; margin: 0 auto; padding: 5.2rem 1.6rem 4.4rem; border-radius: 6px;
    color: var(--inv-text); background:
        radial-gradient(70% 40% at 0% 0%, color-mix(in srgb, var(--inv-soft) 45%, transparent), transparent 70%),
        radial-gradient(70% 40% at 100% 100%, color-mix(in srgb, var(--inv-peach) 50%, transparent), transparent 70%),
        var(--bp-paper);
    box-shadow: inset 0 0 0 8px var(--bp-paper), inset 0 0 0 9px var(--bp-line), 0 30px 50px -26px rgb(0 0 0 / .65);
}
.bp-families__peony { position: absolute; z-index: -1; left: -7%; top: -3%; width: 48%; transform: rotate(-6deg); }
.bp-families__mallow { position: absolute; z-index: -1; right: -14%; bottom: -5%; width: 50%; transform: rotate(172deg); }
.bp-families__euc { position: absolute; z-index: -1; right: -4%; top: -6%; width: 24%; transform: rotate(32deg); }
.bp-family { position: relative; }
.bp-family__label {
    display: inline-block; margin: 0; padding: .22rem .75rem; border-radius: 999px; font-size: .6rem; font-weight: 700; letter-spacing: .2em;
    text-transform: uppercase; color: #fff; background: var(--inv-primary);
}
.bp-family__who { margin: .6rem 0 0; font-family: var(--bp-serif); font-style: italic; font-size: 1rem; color: var(--bp-gold-ink); }
.bp-family__name { margin: .1rem auto 0; max-width: 16ch; font-family: var(--bp-serif); font-size: 1.42rem; font-weight: 600; line-height: 1.2; color: var(--inv-primary); text-wrap: balance; }
.bp-family__detail { display: flex; align-items: flex-start; justify-content: center; gap: .45rem; margin: .6rem 0 0; font-size: .86rem; line-height: 1.5; color: var(--bp-muted); }
.bp-family__detail .bp-icon { margin-top: .15rem; color: var(--bp-gold-ink); }
.bp-families__join { display: flex; align-items: center; gap: .8rem; margin: 1.3rem 0; }
.bp-families__join::before, .bp-families__join::after { content: ''; flex: 1; height: 1px; background: var(--bp-line); }
.bp-families__ring { width: 3rem; color: var(--bp-gold-ink); }

/* events: white cards on a painted wash, an oval-topped photo, the day on a painted disc */
.bp-event { position: relative; padding: .55rem .55rem 1.3rem; border-radius: 22px; background: #fff; text-align: left; box-shadow: inset 0 0 0 1px var(--bp-line), var(--bp-drop); }
.bp-event + .bp-event { margin-top: 3rem; }
.bp-event__wash {
    position: absolute; z-index: -1; left: -10%; top: 18%; width: 70%; height: 70%; background: var(--inv-soft); opacity: .75;
    -webkit-mask: var(--bp-wash-a) center / 100% 100% no-repeat; mask: var(--bp-wash-a) center / 100% 100% no-repeat;
}
.bp-event--flip .bp-event__wash { left: auto; right: -12%; background: var(--inv-peach); }
.bp-event__media { overflow: hidden; border-radius: 999px 999px 16px 16px / 160px 160px 16px 16px; }
.bp-event__photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 40%; }
.bp-event__top { display: flex; align-items: center; gap: 1rem; padding: 1.1rem .7rem 0; }
.bp-event--flip .bp-event__top { flex-direction: row-reverse; text-align: right; }
.bp-event__date { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; flex: none; width: 4.7rem; margin: 0; padding: .7rem 0 .6rem; line-height: 1.1; color: var(--inv-primary); }
.bp-event__date::before {
    content: ''; position: absolute; z-index: -1; inset: -10% -14%; background: var(--inv-soft);
    -webkit-mask: var(--bp-wash-a) center / 100% 100% no-repeat; mask: var(--bp-wash-a) center / 100% 100% no-repeat;
}
.bp-event--flip .bp-event__date::before { background: var(--inv-peach); transform: rotate(90deg); }
.bp-event__weekday { font-size: .62rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.bp-event__day { font-family: var(--bp-serif); font-size: 2.3rem; font-weight: 500; line-height: 1; }
.bp-event__month { font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bp-gold-ink); }
.bp-event__head { min-width: 0; }
.bp-event__name { margin: 0; font-family: var(--bp-serif); font-size: 1.55rem; font-weight: 500; line-height: 1.15; color: var(--inv-primary); }
.bp-event__full { margin: .25rem 0 0; font-size: .82rem; color: var(--bp-muted); }
.bp-event__rows { display: grid; gap: .75rem; margin: 1.1rem .7rem 0; padding: 1rem 0 0; list-style: none; font-size: .9rem; border-top: 1px solid var(--bp-line); }
.bp-event__rows li { display: flex; align-items: flex-start; gap: .7rem; }
.bp-event__rows .bp-icon { width: 2.1rem; height: 2.1rem; padding: .45rem; border-radius: 50%; color: var(--inv-primary); background: color-mix(in srgb, var(--inv-soft) 45%, #fff); }
.bp-event__rows li > span { padding-top: .3rem; }
.bp-event__venue { display: block; font-weight: 700; }
.bp-event__address { display: block; font-size: .85rem; color: var(--bp-muted); }
.bp-event .inv-maps { margin: 1.15rem .7rem 0; text-align: center; }
.bp-event .inv-maps .inv-button { width: 100%; font-weight: 600; }
.bp-event .inv-maps__frame { height: 190px; border-radius: 14px; }

/* countdown: ivory discs with a fine gold ring; the calendar on an ivory card with a peony */
.bp-countdown .inv-countdown { gap: clamp(.45rem, 2.4vw, .8rem); }
.bp-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: 50%; color: var(--inv-text);
    background: radial-gradient(circle at 50% 40%, #fff, var(--bp-paper) 60%, color-mix(in srgb, var(--inv-soft) 60%, var(--bp-paper)));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--inv-deep) 60%, transparent), 0 0 0 5px var(--inv-shine), 0 18px 26px -12px rgb(0 0 0 / .55);
}
.bp-countdown .inv-countdown__value { font-variant-numeric: lining-nums tabular-nums; font-family: var(--bp-serif); font-size: 1.8rem; font-weight: 500; line-height: 1; color: var(--inv-primary); }
.bp-countdown .inv-countdown__label { margin-top: .15rem; font-size: .54rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--bp-muted); }
.bp-countdown .inv-countdown__done { font-family: var(--bp-serif); font-size: 1.4rem; font-style: italic; color: var(--inv-shine); }
.bp-countdown .inv-countdown__actions { flex-direction: column; align-items: center; gap: .6rem; margin-top: 2.1rem; }
.bp-countdown .inv-countdown__actions .inv-button {
    width: min(100%, 17rem); min-height: 2.75rem; padding: .6rem 1rem; font-size: .84rem; font-weight: 600;
    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) 70%, transparent);
}
.bp-countdown .inv-countdown__actions .inv-button:first-child { color: var(--inv-deep); background: var(--inv-background); box-shadow: none; }
.bp-countdown__cal { position: relative; max-width: 19rem; margin: 3.2rem auto 0; }
.bp-countdown .inv-cal {
    --inv-cal-bg: var(--bp-paper); --inv-cal-mark: var(--inv-primary);
    margin: 0; border-radius: 8px;
    box-shadow: inset 0 0 0 6px var(--bp-paper), inset 0 0 0 7px var(--bp-line), 0 22px 40px -24px rgb(0 0 0 / .6);
}
.bp-countdown .inv-cal__month { font-family: var(--bp-serif); font-size: 1.5rem; font-style: italic; color: var(--inv-primary); }

/* wedding plan: the two-step path, then the watercolour calendar page of the planned month */
.bp-plan { padding-top: 4rem; }
.bp-plan__path { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: .4rem; max-width: 22rem; margin: 0 auto 2.4rem; padding: 0; list-style: none; }
.bp-plan__step { display: flex; flex-direction: column; align-items: center; width: 5.8rem; }
.bp-plan__dot { width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--bp-paper); box-shadow: inset 0 0 0 2px var(--inv-accent), 0 0 0 4px color-mix(in srgb, #fff 55%, transparent); }
.bp-plan__step--done .bp-plan__dot { background: var(--inv-primary); box-shadow: inset 0 0 0 2px var(--inv-shine), 0 0 0 4px color-mix(in srgb, #fff 55%, transparent); }
.bp-plan__step-name { margin-top: .45rem; font-family: var(--bp-serif); font-size: 1.1rem; font-weight: 600; line-height: 1.15; color: var(--inv-primary); }
.bp-plan__step-when { font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bp-muted); }
.bp-plan__line { position: relative; display: grid; place-items: center; height: 1.3rem; }
.bp-plan__line::before {
    content: ''; position: absolute; left: -1.6rem; right: -1.6rem; top: 50%; height: 2px; margin-top: -1px;
    background: radial-gradient(circle, var(--bp-gold-ink) 1.1px, transparent 1.4px) left center / 7px 2px repeat-x;
}
.bp-plan__ring { position: relative; width: 2.6rem; margin-top: -1.3rem; padding: 0 .25rem; color: var(--bp-gold-ink); background: color-mix(in srgb, var(--inv-peach) 34%, var(--inv-background)); border-radius: 999px; }
/* the calendar page: ivory paper, a binding of four small rings on top, a peony in its corner */
.bp-plan__page {
    position: relative; isolation: isolate; max-width: 21rem; margin: 0 auto; padding: 2.4rem 1.3rem 1.8rem; border-radius: 6px;
    background: var(--bp-paper); box-shadow: inset 0 0 0 7px var(--bp-paper), inset 0 0 0 8px var(--bp-line), var(--bp-drop);
}
.bp-plan__rings { position: absolute; left: 0; right: 0; top: -.6rem; display: flex; justify-content: center; gap: 2.6rem; }
.bp-plan__rings i { width: .55rem; height: 1.3rem; border-radius: 999px; background: linear-gradient(90deg, var(--bp-gold-ink), var(--inv-shine), var(--bp-gold-ink)); box-shadow: 0 2px 3px rgb(0 0 0 / .2); }
.bp-plan__peony { position: absolute; z-index: 1; right: -19%; bottom: -17%; width: 38%; transform: rotate(-14deg); }
.bp-plan__label { position: relative; z-index: 2; margin: 0 0 .2rem; font-size: .66rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--bp-gold-ink); }
.bp-plan__month { position: relative; z-index: 2; display: flex; align-items: baseline; justify-content: center; gap: .5rem; margin: 0 0 .9rem; font-family: var(--bp-serif); font-style: italic; font-size: 2.5rem; line-height: 1.05; color: var(--inv-primary); }
.bp-plan__month small { font-style: normal; font-size: .9rem; font-weight: 700; letter-spacing: .18em; font-family: var(--bp-sans); color: var(--bp-gold-ink); }
.bp-plan__typed { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bp-plan__grid { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: .25rem; padding: .7rem .4rem .8rem; }
.bp-plan__wash {
    position: absolute; z-index: -1; inset: -6% -8%; background: var(--inv-soft); opacity: .7;
    -webkit-mask: var(--bp-wash-b) center / 100% 100% no-repeat; mask: var(--bp-wash-b) center / 100% 100% no-repeat;
}
.bp-plan__dow { padding-bottom: .25rem; font-size: .58rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bp-gold-ink); }
.bp-plan__day { position: relative; display: grid; place-items: center; height: 1.85rem; font-family: var(--bp-serif); font-size: .95rem; color: var(--inv-text); }
.bp-plan__day--mark { font-weight: 600; color: #fff; }
.bp-plan__day--mark::before {
    content: ''; position: absolute; z-index: -1; width: 2.2rem; height: 2.2rem; background: var(--inv-primary);
    -webkit-mask: var(--bp-wash-a) center / 100% 100% no-repeat; mask: var(--bp-wash-a) center / 100% 100% no-repeat;
}
.bp-plan__circle { position: absolute; width: 2.7rem; height: 2.5rem; overflow: visible; stroke: var(--inv-accent); stroke-width: 1.6; stroke-linecap: round; }
.bp-plan__date { position: relative; z-index: 2; margin: .2rem 0 .4rem; font-family: var(--bp-serif); font-style: italic; font-size: 2.4rem; line-height: 1.1; color: var(--inv-primary); text-wrap: balance; overflow-wrap: anywhere; }
.bp-plan__city { display: inline-flex; align-items: center; gap: .4rem; margin: 1rem 0 0; padding: .3rem .95rem; border-radius: 999px; font-size: .84rem; font-weight: 600; color: #fff; background: var(--inv-primary); }
.bp-plan__city .bp-icon { width: 1rem; height: 1rem; }
.bp-plan__note { max-width: 28ch; margin: 1rem auto 0; font-family: var(--bp-serif); font-style: italic; font-size: 1.04rem; line-height: 1.5; color: var(--bp-muted); }

/* rundown: a long painted ribbon on the left, each time on a swallowtail tab crossing it */
.bp-rundown__track { position: relative; text-align: left; }
.bp-rundown__ribbon {
    position: absolute; left: .4rem; top: -1.6rem; bottom: -1.6rem; width: 5.2rem; transform-origin: top;
    -webkit-mask: linear-gradient(180deg, transparent, #000 7%, #000 93%, transparent); mask: linear-gradient(180deg, transparent, #000 7%, #000 93%, transparent);
}
.bp-rundown__ribbon svg { display: block; width: 100%; height: 100%; }
.bp-rundown__ribbon path { fill: color-mix(in srgb, var(--inv-soft) 82%, var(--inv-primary) 18%); fill-opacity: .85; }
.bp-rundown__ribbon .bp-rundown__fold { fill: none; stroke: #fff; stroke-width: 3; stroke-opacity: .45; vector-effect: non-scaling-stroke; }
.bp-rundown__list { position: relative; display: grid; gap: 1.15rem; margin: 0; padding: 0; list-style: none; }
.bp-rundown__item { display: grid; grid-template-columns: 6rem minmax(0, 1fr); align-items: center; gap: .9rem; }
.bp-rundown__time {
    position: relative; display: grid; place-items: center; height: 2.4rem; padding: 0 .7rem 0 .4rem;
    font-family: var(--bp-serif); font-size: 1.15rem; font-weight: 500; font-variant-numeric: lining-nums tabular-nums; color: #fff;
    background: linear-gradient(180deg, var(--inv-primary), color-mix(in srgb, var(--inv-primary) 75%, var(--inv-deep)));
    clip-path: polygon(0 0, 100% 0, calc(100% - .7rem) 50%, 100% 100%, 0 100%, .55rem 50%);
    filter: drop-shadow(0 6px 6px color-mix(in srgb, var(--inv-deep) 30%, transparent));
}
.bp-rundown__body { padding: .2rem 0; }
.bp-rundown__body h3 { margin: 0; font-size: .96rem; font-weight: 700; line-height: 1.4; color: var(--inv-text); }
.bp-rundown__body p { margin: .1rem 0 0; font-size: .85rem; color: var(--bp-muted); }

/* love story: oval photos beside the text, alternating; text-only chapters as ivory cards */
.bp-story__list { position: relative; display: grid; gap: 2.4rem; margin: 0; padding: 0; list-style: none; text-align: left; }
.bp-story__item { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1.3rem; }
.bp-story__item--flip { grid-template-columns: minmax(0, 1fr) auto; text-align: right; }
.bp-story__item--flip .bp-oval { order: 2; }
.bp-oval--story { --ow: min(7.6rem, 33vw); --opos: center 35%; }
.bp-oval--story .bp-oval__wash--a { background: color-mix(in srgb, var(--inv-primary) 70%, #fff 25%); opacity: .5; }
.bp-oval--story .bp-oval__wash--b { background: color-mix(in srgb, var(--inv-peach) 80%, var(--inv-primary)); opacity: .45; }
.bp-oval--story .bp-oval__line { border-color: var(--inv-shine); }
.bp-story__when { display: inline-block; padding: .2rem .75rem; border-radius: 999px; font-size: .64rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--inv-deep); background: var(--inv-soft); }
.bp-story__body h3 { margin: .45rem 0 0; font-family: var(--bp-serif); font-style: italic; font-size: 1.5rem; font-weight: 400; line-height: 1.15; color: #fff; }
.bp-story__body p { margin: .35rem 0 0; font-size: .88rem; line-height: 1.55; color: var(--bp-ivory-muted); }
.bp-story__item--text {
    position: relative; isolation: isolate; grid-template-columns: 2.6rem minmax(0, 1fr); align-items: start; gap: .9rem; padding: 1.2rem 1.2rem; border-radius: 14px; text-align: left;
    color: var(--inv-text); background: var(--bp-paper); box-shadow: inset 0 0 0 5px var(--bp-paper), inset 0 0 0 6px var(--bp-line), 0 20px 34px -22px rgb(0 0 0 / .6);
}
.bp-story__item--text::before {
    content: ''; position: absolute; z-index: -1; right: -6%; top: -20%; width: 45%; height: 90%; background: var(--inv-soft); opacity: .8;
    -webkit-mask: var(--bp-wash-a) center / 100% 100% no-repeat; mask: var(--bp-wash-a) center / 100% 100% no-repeat;
}
.bp-story__item--text .bp-story__body h3 { color: var(--inv-primary); }
.bp-story__item--text .bp-story__body p { color: var(--bp-muted); }
.bp-story__item--text .bp-story__when { color: #fff; background: var(--inv-primary); }
.bp-story__number {
    display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; font-family: var(--bp-serif); font-size: 1.25rem;
    color: var(--inv-primary); background: #fff; box-shadow: inset 0 0 0 1.5px var(--inv-accent), 0 0 0 3px #fff, 0 0 0 4px var(--bp-line);
}

/* gallery: on a sage wash; the first photo wide with an oval top and a sprig, the others rounded */
.bp-gallery__frame { position: relative; }
.bp-gallery__euc { position: absolute; z-index: 2; left: -1.6rem; top: -2.2rem; width: 4.6rem; transform: rotate(-30deg); pointer-events: none; }
.bp-gallery .inv-gallery { gap: .6rem; }
.bp-gallery .inv-gallery__item { border-radius: 14px; box-shadow: 0 0 0 4px #fff, 0 16px 28px -18px color-mix(in srgb, var(--inv-deep) 70%, transparent); }
.bp-gallery .inv-gallery__item:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3.6; border-radius: 999px 999px 14px 14px / 190px 190px 14px 14px; }

/* live streaming: a deep card with a fine gold inner line and a painted blush wash */
.bp-stream { padding-top: 3.6rem; padding-bottom: 3.6rem; }
.bp-stream__card {
    position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .9rem 1rem;
    max-width: 24rem; margin: 0 auto; padding: 1.5rem; border-radius: 18px; color: var(--inv-background); text-align: left; background: var(--bp-deep-paint);
    box-shadow: inset 0 0 0 6px var(--inv-deep), inset 0 0 0 7px var(--bp-line), var(--bp-drop);
}
.bp-stream__wash {
    position: absolute; z-index: -1; right: -18%; top: -40%; width: 70%; height: 120%; background: color-mix(in srgb, var(--inv-primary) 60%, #fff 30%); opacity: .35;
    -webkit-mask: var(--bp-wash-a) center / 100% 100% no-repeat; mask: var(--bp-wash-a) center / 100% 100% no-repeat;
}
.bp-stream__icon { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; color: var(--inv-primary); background: var(--inv-background); box-shadow: 0 0 0 3px color-mix(in srgb, var(--inv-shine) 60%, transparent); }
.bp-stream__icon .bp-icon { width: 1.7rem; height: 1.7rem; }
.bp-stream__title { margin: 0 0 .15rem; font-family: var(--bp-serif); font-size: 1.6rem; font-weight: 500; line-height: 1.05; color: #fff; }
.bp-stream__title em { color: var(--inv-shine); }
.bp-stream__text p { margin: 0; font-size: .86rem; color: var(--bp-ivory-muted); }
.bp-stream__text .bp-stream__note { margin-top: .3rem; font-weight: 600; color: var(--inv-shine); }
.bp-stream__button { grid-column: 1 / -1; min-height: 2.75rem; color: var(--inv-primary) !important; background: var(--inv-background) !important; font-weight: 700; }

/* RSVP card: ivory with a fine gold inner line and a mallow spray in its corner */
.bp-rsvp__card {
    position: relative; isolation: isolate; padding: 2.2rem 1.15rem 1.4rem; border-radius: 16px; color: var(--inv-text); background: var(--bp-paper);
    box-shadow: inset 0 0 0 6px var(--bp-paper), inset 0 0 0 7px var(--bp-line), 0 22px 40px -24px rgb(0 0 0 / .6);
}
.bp-rsvp__mallow { position: absolute; z-index: -1; right: -8%; top: -14%; width: 40%; transform: rotate(10deg); }
.bp-rsvp__intro { margin: 0 auto 1.1rem; max-width: 26ch; font-size: .9rem; color: var(--bp-muted); }
.bp-rsvp__sent { margin-bottom: 1rem; }
.bp-rsvp__check { display: block; width: 4.4rem; height: 4.4rem; margin: 0 auto .5rem; overflow: visible; }
.bp-rsvp__check-ring { fill: none; stroke: var(--inv-accent); stroke-width: 2; }
.bp-rsvp__check-disc { fill: var(--inv-primary); }
.bp-rsvp__check path { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
html.inv-anim .bp-rsvp__sent .bp-rsvp__check { animation: bp-pop .8s cubic-bezier(.34, 1.56, .64, 1) both; }
html.inv-anim .bp-rsvp__sent .bp-rsvp__check path { animation: bp-draw .45s ease-out .35s both; }
.bp-rsvp__thanks { margin: 0; font-family: var(--bp-serif); font-style: italic; font-size: 1.8rem; color: var(--inv-primary); }
.bp-rsvp__line { margin: .1rem 0 0; font-size: .9rem; color: var(--bp-muted); }
.bp-rsvp .inv-rsvp__deadline { margin: 0 0 1rem; font-size: .84rem; font-weight: 700; color: var(--inv-primary); }

/* gift: ivory cards with a painted blush wash across the top, two per row */
.bp-gift__intro { color: var(--bp-ivory-muted); }
.bp-gift .inv-gift__accounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: 1.3rem; }
.bp-gift .inv-gift__account:last-child:nth-child(odd) { grid-column: 1 / -1; }
.bp-gift .inv-gift__account,
.bp-gift .inv-gift__address {
    position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; gap: .3rem; min-width: 0; margin: 0; overflow: hidden;
    padding: 1.6rem .75rem 1rem; border-radius: 12px; color: var(--inv-text); background: var(--bp-paper);
    box-shadow: inset 0 0 0 4px var(--bp-paper), inset 0 0 0 5px var(--bp-line), 0 18px 30px -20px rgb(0 0 0 / .6);
}
.bp-gift .inv-gift__account::before {
    content: ''; position: absolute; z-index: -1; left: -20%; right: -20%; top: -30%; height: 75%; background: var(--inv-soft); opacity: .8;
    -webkit-mask: var(--bp-wash-b) center / 100% 100% no-repeat; mask: var(--bp-wash-b) center / 100% 100% no-repeat;
}
.bp-gift .inv-gift__account:nth-child(even)::before { background: var(--inv-peach); }
.bp-gift .inv-gift__account p, .bp-gift .inv-gift__address p { margin: 0; }
.bp-gift .inv-gift__bank { font-weight: 700; font-size: .85rem; color: var(--inv-primary); }
.bp-gift .inv-gift__logo { height: 1.6rem; padding: .2rem .5rem; border-radius: .4rem; background: #fff; }
.bp-gift .inv-gift__logo img { max-width: 5rem; }
.bp-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);
}
.bp-gift .inv-gift__holder { font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--bp-muted); overflow-wrap: anywhere; }
.bp-gift .inv-button { margin-top: .35rem; min-height: 2.25rem; padding: .35rem .9rem; font-size: .74rem; font-weight: 600; }
.bp-gift .inv-gift__address { margin-top: .75rem; padding-top: 1.2rem; font-size: .875rem; }
.bp-gift .inv-gift__address::before {
    content: ''; position: absolute; z-index: -1; right: -10%; bottom: -30%; width: 50%; height: 90%; background: var(--inv-peach); opacity: .7;
    -webkit-mask: var(--bp-wash-a) center / 100% 100% no-repeat; mask: var(--bp-wash-a) center / 100% 100% no-repeat;
}
.bp-gift .inv-gift__address .inv-gift__holder { font-size: .72rem; }

/* co-hosts: the names in the serif on a sage wash band, between two eucalyptus sprigs */
.bp-cohosts { padding-top: 3.8rem; padding-bottom: 3.8rem; }
.bp-cohosts__euc { position: absolute; z-index: -1; bottom: -1.2rem; width: 4.6rem; opacity: .9; }
.bp-cohosts__euc--l { left: -.6rem; transform: rotate(-28deg); }
.bp-cohosts__euc--r { right: -.6rem; transform: rotate(28deg) scaleX(-1); }
.bp-cohosts__list { display: flex; flex-direction: column; align-items: center; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.bp-cohosts__list li { max-width: 24ch; font-family: var(--bp-serif); font-size: 1.22rem; font-weight: 600; line-height: 1.3; color: var(--inv-primary); }
.bp-cohosts__list li + li::before { content: ''; display: block; width: 6px; height: 6px; margin: 0 auto .55rem; transform: rotate(45deg); background: var(--inv-accent); }

/* contacts: rows with the initial on a painted wash disc, and a WhatsApp button */
.bp-contacts__list { display: grid; gap: .75rem; max-width: 24rem; margin: 0 auto; }
.bp-contact {
    display: grid; grid-template-columns: 2.9rem minmax(0, 1fr) auto; align-items: center; gap: .8rem; padding: .65rem .7rem; border-radius: 14px;
    background: #fff; text-align: left; box-shadow: inset 0 0 0 1px var(--bp-line), 0 14px 26px -22px color-mix(in srgb, var(--inv-deep) 70%, transparent);
}
.bp-contact__avatar { position: relative; isolation: isolate; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; font-family: var(--bp-serif); font-style: italic; font-size: 1.4rem; color: var(--inv-primary); }
.bp-contact__avatar::before {
    content: ''; position: absolute; z-index: -1; inset: -8%; background: var(--inv-soft);
    -webkit-mask: var(--bp-wash-a) center / 100% 100% no-repeat; mask: var(--bp-wash-a) center / 100% 100% no-repeat;
}
.bp-contact:nth-child(even) .bp-contact__avatar::before { background: var(--inv-peach); }
.bp-contact p { margin: 0; }
.bp-contact__name { font-weight: 700; font-size: .95rem; line-height: 1.3; overflow-wrap: anywhere; }
.bp-contact__role { font-size: .78rem; color: var(--bp-muted); }
.bp-contact__phone { font-size: .85rem; }
.bp-contact__button { min-height: 2.5rem; padding: .45rem .95rem; font-size: .8rem; font-weight: 600; }
.bp-contact__button .bp-icon { width: 1.05rem; height: 1.05rem; }

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

/* vendors: a white card of rows split by fine gold lines */
.bp-vendors__list { max-width: 24rem; margin: 0 auto; padding: .3rem 1.15rem; list-style: none; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--bp-line), var(--bp-drop); }
.bp-vendor { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .85rem 0; text-align: left; border-bottom: 1px solid var(--bp-line); }
.bp-vendor:last-child { border-bottom: 0; }
.bp-vendor__text { display: flex; flex-direction: column; min-width: 0; }
.bp-vendor__role { font-size: .62rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--bp-gold-ink); }
.bp-vendor__name { font-family: var(--bp-serif); font-size: 1.12rem; font-weight: 500; line-height: 1.25; color: var(--inv-primary); overflow-wrap: anywhere; }
.bp-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: 600; text-decoration: none; color: var(--inv-primary); box-shadow: inset 0 0 0 1px var(--bp-line);
}
.bp-vendor__link .bp-icon { width: .95rem; height: .95rem; }

/* closing: the full photo fading into the deep colour, then the ring between sprigs, the thanks and the names */
.bp-closing { padding: 3.1rem 1.6rem 2rem; }
.bp-closing--photo { padding-top: 0; padding-bottom: 1.6rem; min-height: var(--inv-screen, 100svh); }
.bp-closing__photo { position: relative; z-index: -1; height: min(96vw, calc(var(--inv-screen, 100svh) * .44), 24rem); margin: 0 -1.6rem; overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 0 58%, rgb(0 0 0 / .7) 74%, rgb(0 0 0 / .3) 88%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0 58%, rgb(0 0 0 / .7) 74%, rgb(0 0 0 / .3) 88%, transparent 100%);
}
.bp-closing__photo img { display: block; width: 100%; height: calc(100% + 60px); margin-top: -30px; object-fit: cover; object-position: center 18%; --inv-parallax: 30px; }
.bp-closing__photo::after {
    content: ''; position: absolute; inset: 0;
    /* a soft tint low on the photo; the photo itself melts away (mask), so it meets the section's gradient without a seam */
    background: linear-gradient(180deg, color-mix(in srgb, var(--inv-deep) 10%, transparent), transparent 22%, transparent 55%, color-mix(in srgb, var(--inv-deep) 35%, transparent) 85%);
}
.bp-closing__body { position: relative; }
.bp-closing--photo .bp-closing__body { margin-top: -3.2rem; }
.bp-closing__ring { width: 2.6rem; margin: 0 auto .35rem; }
.bp-closing__eyebrow { margin: 0 0 .25rem; font-size: .62rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--inv-shine); }
.bp-closing__title { margin: 0 0 .5rem; font-family: var(--bp-serif); font-size: clamp(1.7rem, 7.5vw, 2.05rem); font-weight: 500; line-height: 1; color: #fff; }
.bp-closing__title em { font-style: italic; font-weight: 400; color: var(--inv-shine); }
.bp-closing__message { margin: 0 auto; max-width: 34ch; font-size: .84rem; line-height: 1.55; color: var(--bp-ivory-muted); }
.bp-closing__salam { margin: .5rem auto 0; max-width: 34ch; font-family: var(--bp-serif); font-size: .94rem; font-style: italic; line-height: 1.35; color: var(--inv-shine); }
.bp-closing__signature { margin: .45rem auto 0; max-width: 34ch; font-size: .8rem; color: var(--bp-ivory-muted); }
.bp-closing__names { margin: .55rem 0 0; font-family: var(--bp-script); font-size: clamp(1.9rem, 8.6vw, 2.3rem); line-height: 1.1; color: #fff; }
.bp-closing__amp { font-family: var(--bp-serif); font-style: italic; font-size: .6em; color: var(--inv-shine); }
.bp-closing__monogram {
    display: inline-flex; align-items: center; gap: .4rem; margin: .6rem 0 0; padding: .28rem .85rem; border-radius: 999px;
    font-family: var(--bp-serif); font-size: .9rem; letter-spacing: .14em; color: var(--inv-shine);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-shine) 50%, transparent);
}
.bp-closing__monogram i { font-style: normal; color: var(--inv-accent); }

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

/* the three answers as cards with icons (the radio dot is hidden but still focusable) */
.bp-rsvp .inv-form__choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.bp-rsvp .inv-form__choices legend { margin-bottom: .5rem; padding: 0; }
.bp-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: 12px; 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) 22%, transparent);
    transition: background-color .25s ease, color .25s ease, transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s ease;
}
.bp-rsvp .inv-form__choices input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
/* icon: a blush disc (::before) with a check, a cross or a question mark in it (::after, a mask in the text colour) */
.bp-rsvp .inv-form__choices label::before {
    content: ''; width: 2.1rem; height: 2.1rem; border-radius: 50%; flex: none; background: color-mix(in srgb, var(--inv-soft) 60%, #fff);
    box-shadow: inset 0 0 0 1.5px var(--inv-accent);
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), background-color .25s ease;
}
.bp-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(--bp-choice-icon) center / contain no-repeat; mask: var(--bp-choice-icon) center / contain no-repeat;
}
.bp-rsvp .inv-form__choices label:nth-of-type(1) {
    --bp-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");
}
.bp-rsvp .inv-form__choices label:nth-of-type(2) {
    --bp-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");
}
.bp-rsvp .inv-form__choices label:nth-of-type(3) {
    --bp-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");
}
.bp-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-soft), 0 12px 24px -12px color-mix(in srgb, var(--inv-primary) 80%, transparent);
}
.bp-rsvp .inv-form__choices label:has(input:checked)::before { background-color: rgb(255 255 255 / .16); transform: scale(1.1); }
.bp-rsvp .inv-form__choices label:has(input:checked)::after { color: #fff; }
.bp-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 resting on a painted peach wash, the wishes in a scroll box of about three */
.bp-wishes__wrap { position: relative; isolation: isolate; }
.bp-wishes__wash {
    position: absolute; z-index: -1; left: -14%; top: -4%; width: 80%; height: 55%; background: var(--inv-peach); opacity: .85;
    -webkit-mask: var(--bp-wash-a) center / 100% 100% no-repeat; mask: var(--bp-wash-a) center / 100% 100% no-repeat;
}
.bp-wishes .inv-wishes { --inv-wishes-height: 20rem; }
.bp-wishes .inv-form { padding: 1.3rem 1.1rem; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--bp-line), var(--bp-drop); }
.bp-wishes .inv-wishes__list { margin-top: 1.4rem; }
.bp-wishes .inv-wishes:not(.inv-wishes--paged) .inv-wishes__list {
    padding: .55rem; border-radius: 14px; background: color-mix(in srgb, #fff 45%, transparent); box-shadow: inset 0 0 0 1px var(--bp-line);
}
.bp-wishes .inv-wish { padding: .75rem .9rem; border-radius: 10px; background: #fff; text-align: left; box-shadow: 0 2px 10px rgb(0 0 0 / .05); border-left: 3px solid var(--inv-soft); }
.bp-wishes .inv-wish__name { font-weight: 700; color: var(--inv-primary); }
.bp-wishes .inv-wish__message { font-size: .88rem; line-height: 1.5; }
.bp-wishes .inv-wish__time { font-size: .72rem; color: var(--bp-muted); }

/* ---------- 7. shared components ---------- */
.bp-main .inv-button { font-weight: 600; }
body .inv-nav {
    --inv-nav-bg: color-mix(in srgb, #fff 94%, transparent);
    --inv-nav-text: color-mix(in srgb, var(--inv-text) 74%, transparent);
    --inv-nav-active: var(--inv-primary);
    font-family: var(--bp-sans);
}

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

/* short phones: the cover art and type step down so everything fits without scrolling */
@media (max-height: 760px) {
    .bp-cover { --cover-ow: min(52vw, 13rem, 29svh); padding-top: 1.6rem; padding-bottom: 1.6rem; }
    .bp-cover__title { margin-bottom: 1.4rem; }
    .bp-cover__names { margin-top: 1.25rem; font-size: 3.1rem; }
    .bp-cover__quote { margin-top: .55rem; font-size: .95rem; }
    .bp-cover__guest { margin-top: .8rem; }
    .bp-cover__open { margin-top: .85rem; }
}
@media (max-height: 660px) {
    .bp-cover { --cover-ow: min(46vw, 26svh); padding-top: 1.3rem; padding-bottom: 1.3rem; }
    .bp-cover__title { margin-bottom: 1.1rem; font-size: .66rem; }
    .bp-cover__names { margin-top: 1rem; font-size: 2.7rem; }
    .bp-cover__date { font-size: .72rem; }
    .bp-cover__quote { font-size: .9rem; line-height: 1.3; }
    .bp-cover__guest { padding: .4rem .85rem .5rem; }
    .bp-cover__guest-name { font-size: 1.12rem; }
    .bp-cover__open { min-height: 2.75rem; padding: .6rem 1.8rem; }
}
/* very short screens (in-app browsers): a smaller oval and quote, so everything fits */
@media (max-height: 600px) {
    .bp-cover { --cover-ow: min(40vw, 23svh); padding-top: 1rem; }
    .bp-cover__title { margin-bottom: .9rem; }
    .bp-cover__names { margin-top: .8rem; font-size: 2.4rem; }
    .bp-cover__quote { font-size: .86rem; }
}

/* wide screens: the phone-width column on a painted backdrop */
@media (min-width: 560px) {
    body.bp-body {
        background:
            radial-gradient(50% 50% at 10% 10%, color-mix(in srgb, var(--inv-soft) 55%, transparent), transparent 70%),
            radial-gradient(50% 50% at 90% 90%, color-mix(in srgb, var(--inv-peach) 55%, transparent), transparent 70%),
            color-mix(in srgb, var(--inv-sage) 14%, var(--inv-background));
        background-attachment: fixed;
    }
    .bp-main { box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--inv-deep) 50%, transparent); }
}

/* ---------- 9. motion ---------- */
@keyframes bp-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes bp-pop { 0% { transform: scale(0); } 55% { transform: scale(1.12); } 75% { transform: scale(.95); } 100% { transform: scale(1); } }
@keyframes bp-rise { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes bp-zoom-out { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes bp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bp-bloom { from { opacity: 0; scale: .7; } }
@keyframes bp-open-l { from { opacity: 0; translate: 18% -8%; scale: .8; } }
@keyframes bp-open-r { from { opacity: 0; translate: -18% 10%; scale: .8; } }
@keyframes bp-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes bp-sway { 0%, 100% { rotate: 0deg; } 50% { rotate: 2deg; } }

/* cover (≤ 2.5 s, once): the washes bloom (0–1.2 s), the oval rises and its photo settles (0.1–1.2 s),
   the flowers open out from the oval's edge (0.5–1.6 s), the ring-free wreath sprigs fade in; the text
   follows through its inv-enter delays (to 2.2 s) */
html.inv-anim .bp-cover__bloom { animation: bp-bloom 1.2s cubic-bezier(.2, .7, .2, 1) both; }
html.inv-anim .bp-cover__bloom--b { animation-delay: .15s; }
html.inv-anim .bp-oval--cover .bp-oval__window,
html.inv-anim .bp-oval--cover .bp-oval__line { animation: bp-rise 1s cubic-bezier(.2, .7, .2, 1) .1s both; }
html.inv-anim .bp-oval--cover .bp-oval__photo { animation: bp-zoom-out 1.2s cubic-bezier(.2, .7, .2, 1) .1s both; }
html.inv-anim .bp-oval--cover .bp-oval__wash { animation: bp-bloom 1.1s cubic-bezier(.2, .7, .2, 1) .2s both; }
html.inv-anim .bp-oval--cover .bp-oval__peony { animation: bp-open-l 1.1s cubic-bezier(.2, .7, .2, 1) .5s both; }
html.inv-anim .bp-oval--cover .bp-oval__mallow { animation: bp-open-r 1.1s cubic-bezier(.2, .7, .2, 1) .6s both; }
html.inv-anim .bp-oval--cover .bp-oval__euc { animation: bp-fade 1s ease .7s both; }

/* section rings draw themselves once when their section part is revealed */
html.inv-anim .bp-draw .bp-ring__line { stroke-dasharray: 1; stroke-dashoffset: 1; }
html.inv-anim .bp-draw :is(.bp-ring__gem, .bp-ring__spark) { opacity: 0; }
html.inv-anim :is(.is-revealed .bp-draw, .bp-draw.is-revealed) .bp-ring__line { animation: bp-draw 1.3s ease-out .2s both; }
html.inv-anim :is(.is-revealed .bp-draw, .bp-draw.is-revealed) :is(.bp-ring__gem, .bp-ring__spark) { animation: bp-fade .5s ease 1.3s both; }

/* the painted flowers breathe very slowly once the page is open (a 2° sway, no travel) */
html.inv-anim .bp-main .bp-flower { animation: bp-sway 9s ease-in-out infinite; transform-origin: 30% 90%; }

/* the circled day of the planned month is painted once when the page reaches it */
html.inv-anim .bp-plan__circle path { stroke-dasharray: 1; stroke-dashoffset: 1; }
html.inv-anim .is-revealed .bp-plan__circle path, html.inv-anim .bp-plan__grid.is-revealed .bp-plan__circle path { animation: bp-draw 1s ease-out .4s both; }

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

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

/* ---------- 10. intro scene "Cincin di Antara Peoni" (scene.json + sections/_scene) ----------
   The intro is teleported to <body>: everything here stands on its own classes, colours from the variant. */
.bp-scene-paper {
    position: absolute; inset: 0;
    background:
        radial-gradient(55% 32% at 50% 46%, color-mix(in srgb, #fff 75%, transparent), transparent 75%),
        radial-gradient(70% 40% at 50% 100%, color-mix(in srgb, var(--inv-sage) 16%, transparent), transparent 75%),
        var(--inv-background);
}
.bp-scene-wash { position: absolute; inset: 0; -webkit-mask: var(--bp-wash-a) center / 100% 100% no-repeat; mask: var(--bp-wash-a) center / 100% 100% no-repeat; }
.bp-scene-wash--soft { background: var(--inv-soft); opacity: .6; }
.bp-scene-wash--peach { background: var(--inv-peach); opacity: .6; }
.bp-scene-euc { position: absolute; inset: 0; }
.bp-scene-euc__art { width: 100%; height: 100%; }
/* the couple in the template's oval, sized to fit its box */
.bp-scene-oval { position: absolute; inset: 0; container-type: size; display: grid; place-items: center; }
.bp-scene-oval__frame { --ow: min(74cqw, 70cqh); --opos: center 26%; }
.bp-scene-oval__photo { position: absolute; inset: 0; background: var(--opos) / cover no-repeat; }
/* the painted flowers (backgrounds that fit their box) */
.bp-scene-flower { position: absolute; inset: 0; background: center / contain no-repeat; }
.bp-scene-flower--peony { background-position: left bottom; -webkit-mask: radial-gradient(115% 110% at 0% 100%, #000 62%, transparent 92%); mask: radial-gradient(115% 110% at 0% 100%, #000 62%, transparent 92%); }
.bp-scene-flower--mallow { background-position: right top; }
/* the solitaire ring floating out of the bouquet: it draws itself, then the stone glints */
.bp-scene-ring { position: absolute; inset: 0; display: grid; place-items: center; }
.bp-scene-ring__glow {
    position: absolute; left: 14%; right: 14%; top: 4%; bottom: 4%; border-radius: 50%;
    background: radial-gradient(closest-side, color-mix(in srgb, #fff 80%, transparent), color-mix(in srgb, var(--inv-shine) 22%, transparent) 70%, transparent);
}
.bp-scene-ring__art { position: relative; width: 100%; height: 100%; color: var(--bp-gold-ink); filter: drop-shadow(0 3px 4px color-mix(in srgb, var(--inv-deep) 30%, transparent)); }
.bp-scene-ring__art .bp-ring__band { stroke-width: 2.6; }
html.inv-anim .inv-intro--scene .bp-scene-ring__art .bp-ring__line { stroke-dasharray: 1; stroke-dashoffset: 1; }
html.inv-anim .inv-intro--scene .bp-scene-ring__art :is(.bp-ring__gem, .bp-ring__spark) { opacity: 0; }
html.inv-anim .inv-intro--scene.is-playing .bp-scene-ring__art .bp-ring__line { animation: bp-draw .6s ease-out 4.6s both; }
html.inv-anim .inv-intro--scene.is-playing .bp-scene-ring__art .bp-ring__band { animation: bp-draw 1.2s ease-in-out 3.6s both; }
html.inv-anim .inv-intro--scene.is-playing .bp-scene-ring__art .bp-ring__inner { animation: bp-draw 1.2s ease-in-out 3.85s both; }
html.inv-anim .inv-intro--scene.is-playing .bp-scene-ring__art .bp-ring__gem { animation: bp-fade .5s ease 4.8s both, bp-scene-glint 1.4s ease-in-out 5.3s infinite alternate; }
html.inv-anim .inv-intro--scene.is-playing .bp-scene-ring__art .bp-ring__spark { animation: bp-scene-spark 1.6s ease-in-out 5s infinite alternate both; transform-box: fill-box; transform-origin: center; }
@keyframes bp-scene-glint { from { filter: none; } to { filter: brightness(1.2) drop-shadow(0 0 3px var(--inv-shine)); } }
@keyframes bp-scene-spark { from { opacity: .2; transform: scale(.5); } to { opacity: 1; transform: scale(1.1); } }
/* the name card = an ivory paper card with a fine gold double line, a blush brush stroke behind the names */
body.bp-body .inv-intro--scene .inv-scene__card {
    top: 48%; -webkit-mask: none; mask: none; -webkit-backdrop-filter: none; backdrop-filter: none; aspect-ratio: auto;
    padding: 2.3rem 1.2rem 2rem; border-radius: 22px; isolation: isolate;
    background: radial-gradient(90% 70% at 50% 0%, #fff, color-mix(in srgb, #fff 60%, var(--inv-background)) 75%);
    border: 1px solid var(--bp-line); outline: .8px solid color-mix(in srgb, var(--inv-accent) 40%, transparent); outline-offset: -8px;
    box-shadow: 0 26px 44px -24px color-mix(in srgb, var(--inv-deep) 45%, transparent);
}
body.bp-body .inv-intro--scene .inv-scene__card::before {
    content: ''; position: absolute; z-index: -1; left: 4%; right: 4%; top: 30%; height: 38%;
    background: color-mix(in srgb, var(--inv-soft) 75%, var(--inv-peach)); opacity: .8;
    -webkit-mask: var(--bp-wash-b) center / 100% 100% no-repeat; mask: var(--bp-wash-b) center / 100% 100% no-repeat;
}
body.bp-body .inv-scene__card .inv-intro__label {
    font-family: var(--bp-sans); font-size: .66rem; font-weight: 700; letter-spacing: .34em; text-transform: uppercase; color: var(--bp-gold-ink);
}
body.bp-body .inv-scene__card .inv-intro__names { font-weight: 400; line-height: 1.08; color: var(--inv-primary); overflow-wrap: anywhere; }
body.bp-body .inv-scene__card .inv-intro__rule { height: 1px; width: 4.5rem; background: linear-gradient(90deg, transparent, var(--inv-accent), transparent); }
body.bp-body .inv-scene__card .inv-intro__date { font-family: var(--bp-sans); font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--bp-gold-ink); white-space: nowrap; }
