/*
 * Template "Soft Blue Airy" (Pernikahan)
 * Airy lifestyle modern: pastel sky and white, soft CSS clouds that drift, full-bleed photos
 * with big rounded corners, little garden sprigs with daisies (inline SVG symbols in
 * sections/_defs.blade.php), Quicksand (rounded sans) + Fraunces italic (soft serif).
 * Colors from the variant: --inv-primary, --inv-accent, --inv-background, --inv-text,
 * --inv-deep, --inv-sky, --inv-leaf, --inv-line. All classes start with "sb-".
 */

:root {
    --inv-primary: #7fb2dc;
    --inv-accent: #f3b59f;
    --inv-background: #f5f9fd;
    --inv-text: #2b3d54;
    --inv-deep: #3d6c99;
    --inv-sky: #d9eaf8;
    --inv-leaf: #a3bf9d;
    --inv-line: #b8d4ec;
    --inv-radius: 18px;

    --sb-serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sb-sans: "Quicksand", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
    --sb-col: 100%;
    --sb-muted: color-mix(in srgb, var(--inv-text) 80%, var(--inv-background));
    --sb-card: #fff;
    --sb-shadow: 0 18px 40px -24px color-mix(in srgb, var(--inv-deep) 50%, transparent);
    --sb-shadow-sm: 0 10px 24px -16px color-mix(in srgb, var(--inv-deep) 55%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.sb-body {
    margin: 0;
    min-height: 100vh;
    background: var(--inv-background);
    color: var(--inv-text);
    font: 500 1rem/1.7 var(--sb-sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; }
p { margin: 0; }

.sb-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- SVG ornament colors ---------- */
.sb-leaf { fill: var(--inv-leaf); opacity: .85; }
.sb-leaf__rib { fill: none; stroke: #fff; stroke-width: .6; opacity: .5; }
.sb-daisy { fill: #fff; stroke: color-mix(in srgb, var(--inv-primary) 45%, transparent); stroke-width: .5; }
.sb-daisy__heart { fill: var(--inv-accent); }
.sb-stem path { fill: none; stroke: color-mix(in srgb, var(--inv-leaf) 85%, var(--inv-text)); stroke-width: 1.1; stroke-linecap: round; opacity: .7; }
.sb-buds circle { fill: var(--inv-accent); opacity: .8; }
.sb-puff { fill: #fff; stroke: var(--inv-primary); stroke-width: 1.3; }
.sb-dots { fill: none; stroke: var(--inv-primary); stroke-width: 2; stroke-linecap: round; stroke-dasharray: .1 7; }

/* ---------- CSS clouds: a pill with two round puffs ---------- */
.sb-cloud {
    position: absolute;
    z-index: 2;
    display: block;
    width: var(--w, 140px);
    height: calc(var(--w, 140px) * .32);
    border-radius: 999px;
    background: var(--sb-cloud, #fff);
    box-shadow: 0 12px 22px -16px color-mix(in srgb, var(--inv-deep) 60%, transparent);
    pointer-events: none;
}
.sb-cloud::before, .sb-cloud::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: inherit;
}
.sb-cloud::before { width: 44%; aspect-ratio: 1; left: 14%; bottom: 28%; }
.sb-cloud::after { width: 32%; aspect-ratio: 1; right: 16%; bottom: 34%; }

html.inv-anim .sb-cloud { will-change: transform; animation: sb-drift var(--t, 13s) ease-in-out infinite alternate; }
@keyframes sb-drift { from { transform: translateX(calc(var(--dx, 12px) * -1)); } to { transform: translateX(var(--dx, 12px)); } }

/* ---------- page column and wide-screen sky ---------- */
.sb-backdrop { display: none; }

.sb-page {
    position: relative;
    max-width: var(--sb-col);
    margin: 0 auto;
    background:
        radial-gradient(90% 30% at 100% 22%, color-mix(in srgb, var(--inv-sky) 70%, transparent), transparent 70%),
        radial-gradient(90% 30% at 0% 55%, color-mix(in srgb, var(--inv-sky) 60%, transparent), transparent 70%),
        radial-gradient(90% 25% at 100% 85%, color-mix(in srgb, var(--inv-sky) 60%, transparent), transparent 70%),
        var(--inv-background);
    overflow: hidden;
}

@media (min-width: 560px) {
    :root { --sb-col: 440px; }
    .sb-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 0;
        overflow: hidden;
        background:
            radial-gradient(50% 40% at 15% 20%, #fff, transparent 70%),
            radial-gradient(50% 40% at 85% 80%, color-mix(in srgb, #fff 70%, transparent), transparent 70%),
            linear-gradient(180deg, color-mix(in srgb, var(--inv-primary) 45%, var(--inv-sky)), var(--inv-sky) 55%, var(--inv-background));
    }
    .sb-backdrop .sb-cloud { --sb-cloud: color-mix(in srgb, #fff 92%, transparent); opacity: .75; }
    .sb-cloud--a { --w: 260px; --t: 18s; --dx: 30px; top: 12%; left: 6%; }
    .sb-cloud--b { --w: 200px; --t: 15s; --dx: 24px; top: 30%; right: 8%; }
    .sb-cloud--c { --w: 320px; --t: 21s; --dx: 36px; bottom: 14%; left: 3%; }
    .sb-cloud--d { --w: 180px; --t: 16s; --dx: 22px; bottom: 30%; right: 12%; }
    .sb-page {
        z-index: 1;
        box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--inv-deep) 60%, transparent);
    }
    /* keep the floating buttons inside the column */
    .inv-music { right: calc(50% - var(--sb-col) / 2 + 1rem); }
    .inv-to-top { left: calc(50% - var(--sb-col) / 2 + 1rem); }
    .inv-qr-tab { right: calc(50% - var(--sb-col) / 2); }
}

.sb-preview {
    position: fixed; inset: 0 0 auto; z-index: 60;
    padding: .35rem .75rem; text-align: center;
    font: 600 .72rem/1.3 var(--sb-sans); letter-spacing: .03em;
    color: #fff; background: color-mix(in srgb, var(--inv-deep) 92%, transparent);
}

/* ---------- corner sprigs (sway gently) ---------- */
.sb-corner {
    position: absolute;
    z-index: 3;
    width: 40%;
    max-width: 170px;
    height: auto;
    pointer-events: none;
    overflow: visible;
    transform-origin: 0 0;
}
.sb-corner--tl { top: -4px; left: -4px; }
.sb-corner--tr { top: -4px; right: -4px; transform: scaleX(-1); transform-origin: 50% 0; }
.sb-corner--bl { bottom: -4px; left: -4px; transform: scaleY(-1); transform-origin: 0 50%; }
.sb-corner--br { bottom: -4px; right: -4px; transform: scale(-1, -1); transform-origin: 50% 50%; }
.sb-corner--sm { width: 30%; max-width: 130px; opacity: .95; }

html.inv-anim .sb-corner { will-change: transform; }
html.inv-anim .sb-corner--tl { animation: sb-sway-tl 6.5s ease-in-out infinite alternate; }
html.inv-anim .sb-corner--tr { animation: sb-sway-tr 7.2s ease-in-out infinite alternate; }
html.inv-anim .sb-corner--bl { animation: sb-sway-bl 7.8s ease-in-out infinite alternate; }
html.inv-anim .sb-corner--br { animation: sb-sway-br 6.9s ease-in-out infinite alternate; }
@keyframes sb-sway-tl { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
@keyframes sb-sway-tr { from { transform: scaleX(-1) rotate(-2deg); } to { transform: scaleX(-1) rotate(2deg); } }
@keyframes sb-sway-bl { from { transform: scaleY(-1) rotate(-2deg); } to { transform: scaleY(-1) rotate(2deg); } }
@keyframes sb-sway-br { from { transform: scale(-1, -1) rotate(-2deg); } to { transform: scale(-1, -1) rotate(2deg); } }

/* ---------- shared type ---------- */
.sb-label {
    font: 700 .7rem/1.4 var(--sb-sans);
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--inv-deep);
}
.sb-label--soft { letter-spacing: .2em; font-size: .64rem; color: color-mix(in srgb, var(--inv-deep) 80%, var(--inv-text)); }
.sb-label--light { color: #fff; }

.sb-names, .sb-title, .sb-person__nick, .sb-event__name, .sb-moment__title, .sb-and__mark {
    font-family: var(--sb-serif);
    font-style: italic;
    font-variation-settings: "SOFT" 100, "WONK" 0;
}
.sb-names {
    margin: .2rem 0 0;
    font-weight: 400;
    font-size: clamp(2.5rem, 12vw, 3.2rem);
    line-height: 1.05;
    color: var(--inv-deep);
}
.sb-names__amp { color: var(--inv-accent); font-size: .7em; padding: 0 .08em; }

.sb-title {
    margin: .3rem 0 0;
    font-weight: 400;
    font-size: 2.1rem;
    line-height: 1.15;
    color: var(--inv-deep);
}

.sb-divider { display: block; width: 190px; max-width: 64%; height: auto; margin: .55rem auto 0; overflow: visible; }

.sb-icon {
    flex: none; width: 1.05rem; height: 1.05rem;
    fill: none; stroke: var(--inv-deep); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

.sb-lead { max-width: 30rem; margin: 0 auto 1.3rem; color: var(--sb-muted); font-size: .95rem; }

.sb-card {
    position: relative;
    z-index: 3;
    padding: 1.4rem 1.2rem;
    border-radius: 24px;
    background: var(--sb-card);
    box-shadow: var(--sb-shadow);
    border: 1px solid color-mix(in srgb, var(--inv-line) 55%, transparent);
}

.sb-pill {
    display: inline-block;
    margin-top: .8rem;
    padding: .35rem 1rem;
    border-radius: 999px;
    font: 700 .78rem/1.5 var(--sb-sans);
    letter-spacing: .06em;
    color: var(--inv-deep);
    background: color-mix(in srgb, var(--inv-sky) 70%, #fff);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-primary) 40%, transparent);
}

/* ---------- monogram ---------- */
.sb-monogram {
    display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
    width: 4.2rem; height: 4.2rem;
    border-radius: 50%;
    font: italic 500 1.3rem/1 var(--sb-serif);
    font-variation-settings: "SOFT" 100;
    color: var(--inv-deep);
    background: color-mix(in srgb, #fff 88%, transparent);
    box-shadow: 0 0 0 4px color-mix(in srgb, #fff 45%, transparent), var(--sb-shadow-sm);
}
.sb-monogram__dot { display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--inv-accent); }
.sb-monogram--small { width: 3.3rem; height: 3.3rem; margin-top: 1rem; font-size: 1rem; box-shadow: inset 0 0 0 1px var(--inv-line), var(--sb-shadow-sm); }

/* ---------- cover ---------- */
.sb-cover {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: flex;
    justify-content: center;
    background: color-mix(in srgb, var(--inv-sky) 70%, transparent);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.sb-cover__panel {
    /* the photo takes a share of the screen height, the rest is the text */
    --sb-photo-h: clamp(180px, 38svh, 400px);
    position: relative;
    width: 100%;
    max-width: var(--sb-col);
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(80% 40% at 50% 100%, color-mix(in srgb, var(--inv-sky) 80%, transparent), transparent 70%),
        var(--inv-background);
}
.sb-cover__photo {
    position: relative;
    flex: 0 0 auto;
    height: var(--sb-photo-h);
    margin: 10px 10px 0;
    border-radius: 30px 30px 44px 44px;
    background: var(--sb-photo, linear-gradient(160deg, var(--inv-primary), var(--inv-sky))) center 30% / cover no-repeat;
    box-shadow: var(--sb-shadow);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 1.1rem;
}
.sb-cover__shade {
    position: absolute; inset: 0; border-radius: inherit;
    background: linear-gradient(180deg, color-mix(in srgb, var(--inv-deep) 30%, transparent), transparent 35%, transparent 70%, color-mix(in srgb, var(--inv-sky) 50%, transparent));
}
.sb-cover__photo .sb-monogram { position: relative; z-index: 1; }
.sb-cloud--cover-l { --w: 150px; --t: 11s; top: calc(var(--sb-photo-h) - 24px); left: -26px; z-index: 4; }
.sb-cloud--cover-r { --w: 120px; --t: 13s; --dx: -12px; top: calc(var(--sb-photo-h) - 4px); right: -18px; z-index: 4; }
.sb-cover .sb-corner { width: 34%; max-width: 140px; }

.sb-cover__body {
    position: relative;
    z-index: 5;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: safe center;
    /* top: clear of the clouds on the photo's edge; bottom: the button never touches the edge */
    padding: 2.4rem 1.5rem 1.75rem;
    text-align: center;
    overflow-y: auto;
}
.sb-names--cover { display: flex; flex-direction: column; align-items: center; line-height: .98; margin-top: .35rem; }
.sb-names--cover .sb-names__amp { font-size: .6em; line-height: 1.1; }
.sb-cover__quote {
    max-width: 22rem; margin: .7rem auto 0; font-size: .88rem; line-height: 1.5; color: var(--sb-muted); font-style: italic;
    display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}

.sb-guest {
    width: min(18rem, 100%);
    margin: 1.1rem auto 1.1rem;
    padding: .8rem 1rem .85rem;
    border-radius: 20px;
    background: #fff;
    border: 1.5px dashed color-mix(in srgb, var(--inv-primary) 55%, transparent);
    box-shadow: var(--sb-shadow-sm);
}
.sb-guest__label { font: 700 .64rem/1.4 var(--sb-sans); letter-spacing: .24em; text-transform: uppercase; color: var(--sb-muted); }
.sb-guest__name { display: block; margin-top: .2rem; font: 700 1.15rem/1.3 var(--sb-sans); color: var(--inv-deep); overflow-wrap: anywhere; }

.sb-open.inv-button { padding: .8rem 1.6rem; }

.sb-cover--leave { transition: opacity .8s ease, transform .9s cubic-bezier(.65, 0, .35, 1); }
.sb-cover--gone { opacity: 0; transform: translateY(-6%); }

/* shorter phones: smaller photo and names, the quote in two lines, tighter gaps */
@media (max-height: 760px) {
    .sb-cover__panel { --sb-photo-h: clamp(170px, 35svh, 400px); }
    .sb-cover__body { padding-top: 2.2rem; }
    .sb-names--cover { font-size: 2.45rem; }
    .sb-pill { margin-top: .6rem; }
    .sb-cover__quote { margin-top: .55rem; font-size: .82rem; line-height: 1.45; -webkit-line-clamp: 6; }
    .sb-guest { margin: .8rem auto; padding: .6rem 1rem .65rem; }
}
@media (max-height: 660px) {
    .sb-cover__panel { --sb-photo-h: clamp(160px, 29svh, 400px); }
    .sb-cover__body { padding-top: 2rem; padding-bottom: 1.6rem; }
    .sb-names--cover { font-size: 2.15rem; }
    .sb-cover__quote { font-size: .78rem; }
    .sb-guest { margin: .65rem auto; }
    .sb-open.inv-button { padding: .7rem 1.5rem; }
}

/* ---------- buttons (shared components) ---------- */
.inv-button {
    padding: .72rem 1.35rem;
    background: var(--inv-deep);
    color: #fff;
    font: 700 .82rem/1.2 var(--sb-sans);
    letter-spacing: .04em;
    box-shadow: 0 12px 22px -12px color-mix(in srgb, var(--inv-deep) 85%, transparent);
    transition: transform .2s ease, box-shadow .2s ease;
}
.inv-button:hover { transform: translateY(-1px); }
.inv-button--outline {
    background: #fff;
    color: var(--inv-deep);
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--inv-deep) 50%, transparent);
}

/* ---------- hero (top of the page) ---------- */
.sb-hero { position: relative; padding: 10px 10px 1.5rem; }
.sb-hero__photo {
    position: relative;
    aspect-ratio: 3 / 4;
    max-height: 88vh;
    width: 100%;
    border-radius: 32px;
    overflow: hidden;
    background: var(--sb-photo, linear-gradient(160deg, var(--inv-primary), var(--inv-sky))) center 30% / cover no-repeat;
    box-shadow: var(--sb-shadow);
    display: flex;
    align-items: flex-end;
}
.sb-hero__shade {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--inv-deep) 35%, rgb(0 0 0 / .2)) 70%, color-mix(in srgb, var(--inv-deep) 75%, #000) 100%);
}
.sb-hero__text { position: relative; z-index: 1; width: 100%; padding: 0 1.4rem 3rem; text-align: center; color: #fff; }
.sb-names--hero { color: #fff; text-shadow: 0 2px 16px rgb(0 0 0 / .25); }
.sb-names--hero .sb-names__amp { color: color-mix(in srgb, var(--inv-accent) 60%, #fff); }
.sb-hero__date { margin-top: .5rem; font: 700 .78rem/1.5 var(--sb-sans); letter-spacing: .16em; text-transform: uppercase; }
.sb-cloud--hero-l { --w: 170px; --t: 12s; bottom: .6rem; left: -34px; }
.sb-cloud--hero-r { --w: 130px; --t: 14s; --dx: -14px; bottom: 2.2rem; right: -28px; }

/* ---------- under the hero: running photos, big initials, the date ---------- */
.sb-intro { position: relative; padding: .6rem 0 2.2rem; text-align: center; }
.sb-marquee { --inv-marquee-height: 8.5rem; margin-bottom: 1.8rem; }
.sb-marquee .inv-marquee__track img { border-radius: 18px; box-shadow: 0 10px 18px -14px color-mix(in srgb, var(--inv-deep) 70%, transparent); }
.sb-intro__mono {
    display: flex; align-items: center; justify-content: center; gap: 1.1rem;
    font: italic 400 4.4rem/1 var(--sb-serif); font-variation-settings: "SOFT" 100; color: var(--inv-deep);
}
.sb-intro__bar { display: block; width: 1.5px; height: 4.6rem; background: color-mix(in srgb, var(--inv-accent) 80%, var(--inv-deep)); transform-origin: 50% 0; }
.sb-intro__date { margin-top: 1rem; font: 700 .95rem/1 var(--sb-sans); letter-spacing: .4em; color: var(--inv-deep); }
.sb-intro__date i { font-style: normal; padding: 0 .55em; color: color-mix(in srgb, var(--inv-accent) 70%, var(--inv-text)); }
/* the bar between the initials grows down once they zoom in */
html.inv-anim .sb-intro__mono .sb-intro__bar { transform: scaleY(0); transition: transform .9s .45s cubic-bezier(.65, 0, .35, 1); }
html.inv-anim .sb-intro__mono.is-revealed .sb-intro__bar { transform: none; }

/* ---------- sections ---------- */
.sb-main { position: relative; }
.sb-section {
    position: relative;
    padding: 3rem 1.4rem;
    text-align: center;
}
.sb-head { position: relative; z-index: 4; margin-bottom: 1.7rem; }

/* opening */
.sb-opening { padding-top: 2.6rem; }
.sb-arabic { margin-bottom: .8rem; font: 1.6rem/1.9 "Amiri", serif; color: var(--inv-deep); }
.sb-opening__greeting { font: 700 1.05rem/1.5 var(--sb-sans); color: var(--inv-deep); }
.sb-opening__message { margin: .8rem auto 0; max-width: 28rem; color: var(--sb-muted); }
.sb-quote {
    position: relative;
    margin: 2.2rem auto 0;
    padding: 1.9rem 1.3rem 1.3rem;
    max-width: 26rem;
    border-radius: 26px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--inv-sky) 75%, #fff), #fff);
    box-shadow: var(--sb-shadow-sm);
}
.sb-quote__puff { position: absolute; top: -20px; left: 50%; width: 64px; height: 34px; margin-left: -32px; overflow: visible; }
.sb-quote blockquote { margin: 0; font: italic 400 1.05rem/1.6 var(--sb-serif); font-variation-settings: "SOFT" 100; color: var(--inv-text); }
.sb-quote figcaption { margin-top: .7rem; font: 700 .7rem/1.4 var(--sb-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--inv-deep); }

/* couple: zig-zag rows */
.sb-person {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    text-align: left;
}
.sb-person--right { grid-template-columns: minmax(0, 1fr) 42%; text-align: right; }
.sb-person--right .sb-person__photo { order: 2; }
.sb-person__photo {
    position: relative;
    aspect-ratio: 1;
    border-radius: 50%;
    padding: 5px;
    background: #fff;
    box-shadow: 0 0 0 1px var(--inv-line), -14px -10px 0 0 var(--inv-sky), 0 20px 34px -16px color-mix(in srgb, var(--inv-deep) 60%, transparent);
}
.sb-person--right .sb-person__photo { box-shadow: 0 0 0 1px var(--inv-line), 14px -10px 0 0 var(--inv-sky), 0 20px 34px -16px color-mix(in srgb, var(--inv-deep) 60%, transparent); }
.sb-person__photo img, .sb-person__empty {
    display: block; width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.sb-person__empty {
    display: grid; place-items: center;
    background: linear-gradient(160deg, var(--inv-sky), #fff);
    font: italic 400 3rem/1 var(--sb-serif); color: var(--inv-deep);
}
.sb-person__daisy { position: absolute; width: 26%; bottom: 2%; right: 2%; overflow: visible; filter: drop-shadow(0 2px 3px rgb(0 0 0 / .12)); }
.sb-person--right .sb-person__daisy { right: auto; left: 2%; }
.sb-person__nick { margin: .1rem 0 0; font-weight: 400; font-size: 2rem; line-height: 1.1; color: var(--inv-deep); }
.sb-person__name { margin-top: .25rem; font: 700 .98rem/1.35 var(--sb-sans); color: var(--inv-text); overflow-wrap: anywhere; }
.sb-person__parents { margin-top: .4rem; font-size: .84rem; line-height: 1.5; color: var(--sb-muted); }
.sb-person__parents strong { color: var(--inv-text); font-weight: 700; }
.sb-ig {
    display: inline-flex; align-items: center; gap: .35rem;
    margin-top: .7rem; padding: .36rem .8rem;
    border-radius: 999px;
    font: 700 .74rem/1.2 var(--sb-sans);
    color: var(--inv-deep); text-decoration: none;
    background: #fff;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-deep) 40%, transparent), var(--sb-shadow-sm);
    max-width: 100%;
    overflow-wrap: anywhere;
}
.sb-and { display: flex; align-items: center; justify-content: center; gap: .9rem; margin: 1.6rem 0; }
.sb-and__line { width: 3.5rem; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--inv-line)); }
.sb-and__line:last-child { background: linear-gradient(270deg, transparent, var(--inv-line)); }
.sb-and__mark {
    display: grid; place-items: center;
    width: 3.2rem; height: 3.2rem; border-radius: 50%;
    font-weight: 400; font-size: 1.9rem; line-height: 1; color: var(--inv-accent);
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--inv-line), var(--sb-shadow-sm);
}

/* countdown: the wedding month on a white paper card, then four compact bubbles with accent numbers */
.sb-countdown {
    overflow: hidden;
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--inv-sky) 85%, transparent) 25%, color-mix(in srgb, var(--inv-sky) 85%, transparent) 75%, transparent);
}
.sb-cloud--sec-l { --w: 120px; --t: 12s; top: 1.4rem; left: -30px; z-index: 1; }
.sb-cloud--sec-r { --w: 100px; --t: 15s; --dx: -12px; bottom: 2rem; right: -24px; z-index: 1; }
.inv-cal.sb-cal {
    --inv-cal-bg: #fff;
    --inv-cal-text: var(--inv-text);
    --inv-cal-mark: color-mix(in srgb, var(--inv-accent) 70%, var(--inv-text));
    position: relative; z-index: 3; width: min(100%, 21rem); margin: 0 auto 1.5rem; padding: 1.2rem 1.1rem 1rem;
    border-radius: 24px; border: 1px solid color-mix(in srgb, var(--inv-line) 60%, transparent); box-shadow: var(--sb-shadow);
}
.sb-cal .inv-cal__head { border-bottom: 1px dashed var(--inv-line); }
.sb-cal .inv-cal__month { font: italic 500 1.9rem/1.1 var(--sb-serif); font-variation-settings: "SOFT" 100; color: var(--inv-deep); }
.sb-cal .inv-cal__year { font: 700 .78rem/1 var(--sb-sans); letter-spacing: .2em; color: var(--inv-deep); opacity: 1; }
.sb-cal .inv-cal__dow { font: 700 .6rem/1 var(--sb-sans); letter-spacing: .1em; }
.sb-cal .inv-cal__day { font-weight: 600; }
.sb-cal .inv-cal__circle { stroke-width: 2.2; }
.sb-cal .inv-cal__note { font-weight: 700; color: var(--inv-deep); border-top-color: var(--inv-line); }
.inv-countdown { position: relative; z-index: 3; gap: .5rem; }
.inv-countdown__item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    flex: none;
    width: 4.1rem; height: 4.1rem; min-width: 0;
    padding: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px color-mix(in srgb, #fff 55%, transparent), var(--sb-shadow-sm);
}
.inv-countdown__value { font: italic 600 1.55rem/1 var(--sb-serif); font-variation-settings: "SOFT" 100; color: color-mix(in srgb, var(--inv-accent) 70%, var(--inv-text)); }
.inv-countdown__label { margin-top: .2rem; font: 700 .56rem/1.2 var(--sb-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--inv-deep); opacity: .9; }
.inv-countdown__actions { position: relative; z-index: 3; margin-top: 1.4rem; }
.inv-countdown__actions .inv-button { font-size: .74rem; padding: .6rem 1rem; }
.inv-countdown__done { position: relative; z-index: 3; font-style: italic; }
/* the bubbles pop in one after another once the countdown is revealed */
html.inv-anim .sb-count.is-revealed .inv-countdown__item { animation: sb-bubble .7s cubic-bezier(.34, 1.56, .64, 1) backwards; }
html.inv-anim .sb-count.is-revealed .inv-countdown__item:nth-child(2) { animation-delay: .12s; }
html.inv-anim .sb-count.is-revealed .inv-countdown__item:nth-child(3) { animation-delay: .24s; }
html.inv-anim .sb-count.is-revealed .inv-countdown__item:nth-child(4) { animation-delay: .36s; }
@keyframes sb-bubble { from { opacity: 0; transform: scale(.4); } }

/* events */
.sb-event { position: relative; z-index: 3; margin: 0 auto 2.2rem; max-width: 24rem; text-align: left; }
.sb-event:last-child { margin-bottom: 0; }
.sb-event__photo {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 28px;
    overflow: hidden;
    background: var(--sb-photo, linear-gradient(160deg, var(--inv-primary), var(--inv-sky))) center / cover no-repeat;
    box-shadow: var(--sb-shadow);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem 1.2rem 2.9rem;
}
.sb-event__shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, color-mix(in srgb, var(--inv-deep) 55%, rgb(0 0 0 / .35)) 100%); }
.sb-event__count {
    position: absolute; top: .9rem; left: .9rem; z-index: 1;
    padding: .25rem .7rem; border-radius: 999px;
    font: 700 .64rem/1.4 var(--sb-sans); letter-spacing: .16em; text-transform: uppercase;
    color: var(--inv-deep); background: color-mix(in srgb, #fff 88%, transparent);
}
.sb-event__name { position: relative; z-index: 1; margin: 0; font-weight: 400; font-size: 2rem; line-height: 1.1; color: #fff; text-shadow: 0 2px 12px rgb(0 0 0 / .3); }
.sb-event__body {
    position: relative;
    margin: -2rem .7rem 0;
    padding: 1.15rem 1.1rem 1.2rem;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--sb-shadow);
}
.sb-event__list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .65rem; }
.sb-event__list li { display: flex; gap: .7rem; align-items: flex-start; font-size: .93rem; line-height: 1.5; }
.sb-event__icon {
    flex: none; display: grid; place-items: center;
    width: 1.9rem; height: 1.9rem; border-radius: 50%;
    background: color-mix(in srgb, var(--inv-sky) 80%, #fff);
}
.sb-event__list li > span:last-child { padding-top: .2rem; min-width: 0; overflow-wrap: anywhere; }
.sb-event__venue { display: block; font-weight: 700; color: var(--inv-text); }
.sb-event__address { display: block; color: var(--sb-muted); font-size: .88rem; }
.inv-maps { text-align: center; }
.inv-maps .inv-button { width: 100%; }

/* love story: a compact zig-zag on a soft centre line; sides alternate */
.sb-timeline { position: relative; z-index: 3; display: grid; gap: 1.8rem; list-style: none; margin: 0; padding: 0; }
.sb-timeline::before {
    content: ""; position: absolute; left: calc(50% - 1px); top: .6rem; bottom: .6rem; width: 2px; border-radius: 2px;
    background: linear-gradient(var(--inv-line), color-mix(in srgb, var(--inv-line) 25%, transparent));
}
.sb-moment { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 2.2rem minmax(0, 1fr); column-gap: .7rem; align-items: start; }
.sb-moment__text { grid-column: 1; grid-row: 1; text-align: right; }
.sb-moment__num { grid-column: 2; grid-row: 1; }
.sb-moment__side { grid-column: 3; grid-row: 1; display: grid; justify-items: start; gap: .5rem; text-align: left; }
.sb-moment--flip .sb-moment__text { grid-column: 3; text-align: left; }
.sb-moment--flip .sb-moment__side { grid-column: 1; justify-items: end; text-align: right; }
.sb-moment__num {
    display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%;
    font: 700 .72rem/1 var(--sb-sans); letter-spacing: .04em; color: var(--inv-deep);
    background: #fff; box-shadow: inset 0 0 0 1.5px var(--inv-line), 0 0 0 4px var(--inv-background);
}
.sb-moment__title {
    margin: .2rem 0 0; padding-bottom: .35rem; font-weight: 500; font-size: 1.18rem; line-height: 1.2; color: var(--inv-deep);
    border-bottom: 2px dotted var(--inv-line);
}
.sb-moment__story { margin-top: .45rem; color: var(--sb-muted); font-size: .88rem; line-height: 1.55; }
.sb-moment__date {
    margin-top: .15rem; font: italic 500 1.12rem/1.2 var(--sb-serif); font-variation-settings: "SOFT" 100;
    color: color-mix(in srgb, var(--inv-accent) 70%, var(--inv-text));
}
.sb-moment__photo {
    display: block; width: min(100%, 7.6rem); aspect-ratio: 1; object-fit: cover; border-radius: 50%;
    box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--inv-line), var(--sb-shadow-sm);
}
.sb-moment__photo--empty { display: grid; place-items: center; background: linear-gradient(160deg, var(--inv-sky), #fff); }
.sb-moment__photo--empty svg { width: 1.8rem; height: 1.8rem; fill: none; stroke: var(--inv-deep); stroke-width: 1.6; stroke-linejoin: round; }

/* gallery: the shared slider with sky-blue thumbs and soft arrows */
.sb-album { position: relative; z-index: 3; }
.sb-album { min-width: 0; }
.sb-album .inv-gallery-slider { grid-template-columns: minmax(0, 1fr); gap: .7rem; }
.sb-album .inv-gallery-slider__thumb { width: 4.4rem; border-radius: 12px; border-color: transparent; }
.sb-album .inv-gallery-slider__thumb.is-active { border-color: var(--inv-primary); box-shadow: 0 0 0 2px #fff, var(--sb-shadow-sm); }
.sb-album .inv-gallery-slider__arrow { width: 2.1rem; height: 2.1rem; background: #fff; color: var(--inv-deep); box-shadow: inset 0 0 0 1px var(--inv-line), var(--sb-shadow-sm); }
.sb-album .inv-gallery-slider__stage { border-radius: 28px; box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--inv-line), var(--sb-shadow); }
.sb-album .inv-gallery-slider__count { background: color-mix(in srgb, var(--inv-deep) 70%, transparent); font-family: var(--sb-sans); }

/* live streaming */
.sb-live__card { display: grid; gap: .8rem; justify-items: center; font-size: .95rem; }
.sb-live__badge {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .3rem .8rem; border-radius: 999px;
    font: 700 .68rem/1.3 var(--sb-sans); letter-spacing: .12em; text-transform: uppercase;
    color: var(--inv-deep); background: color-mix(in srgb, var(--inv-sky) 80%, #fff);
}
.sb-live__badge i { width: .5rem; height: .5rem; border-radius: 50%; background: #d9534f; }
html.inv-anim .sb-live__badge i { animation: sb-blink 1.6s ease-in-out infinite; }
@keyframes sb-blink { 50% { opacity: .3; } }
.sb-live__note { font-size: .9rem; font-style: italic; color: var(--sb-muted); }

/* gift: accounts as compact sky bank cards, two per row (an odd last card spans both) */
.inv-gift { position: relative; z-index: 3; display: grid; gap: .8rem; max-width: 24rem; margin: 0 auto; text-align: left; }
.inv-gift__accounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.inv-gift__account { margin: 0; min-width: 0; }
.inv-gift__account + .inv-gift__account { margin-top: 0; }
.inv-gift__account:last-child:nth-child(odd) { grid-column: 1 / -1; }
.inv-gift__account:not(.inv-gift__address) {
    position: relative;
    overflow: hidden;
    min-height: 9.2rem;
    padding: .8rem .8rem .75rem;
    border-radius: 16px;
    color: #fff;
    background:
        radial-gradient(45% 30% at 88% 18%, rgb(255 255 255 / .28), transparent 70%),
        radial-gradient(40% 25% at 70% 26%, rgb(255 255 255 / .2), transparent 70%),
        linear-gradient(140deg, var(--inv-deep), color-mix(in srgb, var(--inv-deep) 55%, var(--inv-primary)));
    box-shadow: 0 16px 28px -16px color-mix(in srgb, var(--inv-deep) 85%, transparent), inset 0 0 0 1px rgb(255 255 255 / .2);
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    font-family: var(--sb-sans);
}
/* a little cloud drifting across the card */
.inv-gift__account:not(.inv-gift__address)::after {
    content: "";
    position: absolute; right: -1.2rem; bottom: -.6rem;
    width: 5.5rem; height: 1.8rem; border-radius: 999px;
    background: rgb(255 255 255 / .14);
    box-shadow: 1.4rem -.9rem 0 -.2rem rgb(255 255 255 / .1);
    pointer-events: none;
}
.inv-gift__bank { margin: 0; min-width: 0; font: 700 .78rem/1.3 var(--sb-sans); letter-spacing: .06em; text-transform: uppercase; overflow-wrap: anywhere; }
.inv-gift__logo { height: 1.5rem; padding: .2rem .45rem; border-radius: .45rem; background: #fff; max-width: 100%; }
.inv-gift__logo img { max-width: 100%; }
.inv-gift__account:not(.inv-gift__address) .inv-gift__number::before {
    content: "";
    display: block;
    width: 2.2rem; height: 1.6rem; margin: 0 0 .5rem; border-radius: 5px;
    background:
        linear-gradient(90deg, transparent 32%, rgb(120 90 40 / .45) 33% 35%, transparent 36% 64%, rgb(120 90 40 / .45) 65% 67%, transparent 68%),
        linear-gradient(0deg, transparent 46%, rgb(120 90 40 / .45) 47% 53%, transparent 54%),
        linear-gradient(135deg, #f6e4b0, #d2b46c 55%, #efd796);
    box-shadow: inset 0 0 0 1px rgb(120 90 40 / .3);
}
.inv-gift__number {
    margin: .7rem 0 .2rem;
    align-self: end;
    font: 500 .98rem/1.3 "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    letter-spacing: .05em;
    text-shadow: 0 1px 2px rgb(0 0 0 / .25);
    overflow-wrap: anywhere;
}
.inv-gift__holder { margin: 0 0 .55rem; font-size: .6rem; font-weight: 700; line-height: 1.35; letter-spacing: .12em; text-transform: uppercase; overflow-wrap: anywhere; }
.inv-gift__account:not(.inv-gift__address) .inv-button--outline {
    position: relative; z-index: 1;
    justify-self: start;
    max-width: 100%;
    padding: .35rem .75rem; font-size: .66rem; letter-spacing: .04em;
    background: rgb(255 255 255 / .18); color: #fff;
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / .65);
}
.inv-gift__address {
    padding: 1.1rem;
    border-radius: 20px;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--inv-line) 60%, transparent);
    box-shadow: var(--sb-shadow-sm);
    display: grid; gap: .35rem;
    font-size: .92rem;
}
.inv-gift__address .inv-gift__bank { color: var(--inv-deep); font-size: .72rem; letter-spacing: .2em; }
.inv-gift__address .inv-gift__holder { margin: 0; font-size: 1rem; letter-spacing: 0; text-transform: none; }
.inv-gift__address .inv-button { justify-self: start; margin-top: .4rem; }

/* forms (rsvp, wishes) */
.sb-form { text-align: left; }
.inv-form { gap: .9rem; font-family: var(--sb-sans); }
.inv-form label, .inv-form__choices legend { font-size: .82rem; font-weight: 600; color: var(--inv-text); }
.inv-form input:not([type=radio]):not([type=checkbox]), .inv-form select, .inv-form textarea {
    padding: .7rem .9rem;
    border-radius: 14px;
    border: 1.5px solid color-mix(in srgb, var(--inv-primary) 40%, transparent);
    background: color-mix(in srgb, var(--inv-sky) 22%, #fff);
    color: var(--inv-text);
    font: 500 .95rem/1.4 var(--sb-sans);
}
.inv-form input:focus, .inv-form select:focus, .inv-form textarea:focus {
    outline: none;
    border-color: var(--inv-primary);
    background: #fff;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--inv-primary) 22%, transparent);
}
.inv-form__choices label {
    padding: .45rem .85rem; border-radius: 999px;
    background: color-mix(in srgb, var(--inv-sky) 50%, #fff);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-primary) 35%, transparent);
}
.inv-form .inv-button { justify-self: stretch; }
.inv-form__notice { background: color-mix(in srgb, var(--inv-sky) 70%, #fff); }

/* wishes: compact speech bubbles, three per page */
.inv-wishes__list { gap: .55rem; margin-top: 1.3rem; }
.inv-wish {
    padding: .65rem .85rem;
    border-radius: 16px 16px 16px 4px;
    background: color-mix(in srgb, var(--inv-sky) 45%, #fff);
    border: 1px solid color-mix(in srgb, var(--inv-line) 55%, transparent);
    font-family: var(--sb-sans);
}
.inv-wish__name { font: 700 .9rem/1.3 var(--sb-sans); color: var(--inv-deep); }
.inv-wish__message { font-size: .87rem; line-height: 1.5; }
.inv-wish__time { font-size: .68rem; }
.inv-wish__reply { border-left-color: var(--inv-primary); background: #fff; }
.inv-wishes__pager { gap: .9rem; margin-top: 1rem; font-family: var(--sb-sans); }
.inv-wishes__page-button {
    width: 2.2rem; height: 2.2rem;
    display: inline-grid; place-items: center;
    font: 700 1.15rem/1 var(--sb-sans);
    color: var(--inv-deep);
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--inv-primary) 45%, transparent);
    box-shadow: var(--sb-shadow-sm);
    transition: background .2s, color .2s;
}
.inv-wishes__page-button:not(:disabled):hover { background: var(--inv-deep); color: #fff; }
.inv-wishes__page { min-width: 4rem; font-size: .78rem; font-weight: 700; letter-spacing: .1em; color: var(--inv-deep); opacity: 1; }

/* closing */
.sb-closing { padding-bottom: 3.5rem; }
.sb-closing__photo { position: relative; width: 82%; max-width: 300px; margin: .5rem auto 1.8rem; }
.sb-closing__photo img {
    display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
    border-radius: 140px 140px 28px 28px;
    box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--inv-line), var(--sb-shadow);
}
.sb-cloud--photo-l { --w: 120px; --t: 12s; bottom: -14px; left: -40px; z-index: 3; }
.sb-cloud--photo-r { --w: 100px; --t: 14s; --dx: -12px; bottom: 30%; right: -42px; z-index: 3; }
.sb-closing__message { max-width: 27rem; margin: .7rem auto 0; color: var(--sb-muted); }
.sb-closing__sign { margin-top: 1.1rem; font-weight: 700; font-size: .95rem; color: var(--inv-text); }
.sb-names--closing { font-size: 2.6rem; }

/* check-in QR tab, back to top, branding, bottom menu, music */
.inv-qr-tab {
    background: var(--inv-deep); color: #fff; border-color: transparent;
    font-family: var(--sb-sans); font-weight: 700;
    box-shadow: -6px 8px 20px -10px color-mix(in srgb, var(--inv-deep) 80%, transparent);
}
.inv-qr-sheet__card { font-family: var(--sb-sans); border-radius: 24px; }
.inv-to-top {
    border-radius: 50%;
    background: #fff; color: var(--inv-deep);
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--inv-deep) 40%, transparent), var(--sb-shadow-sm);
}
.sb-branding { position: relative; z-index: 3; font: 600 .74rem/1.4 var(--sb-sans); color: var(--inv-text); opacity: .85; }

.inv-nav {
    --inv-nav-bg: color-mix(in srgb, #fff 90%, transparent);
    --inv-nav-text: color-mix(in srgb, var(--inv-deep) 80%, var(--inv-text));
    --inv-nav-active: var(--inv-deep);
    border-color: color-mix(in srgb, var(--inv-line) 70%, transparent);
    box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--inv-deep) 55%, transparent);
}
.inv-nav--icons { border-radius: 1.4rem; }
.inv-nav--icons .inv-nav__item { border-radius: 50%; }
.inv-nav--icons .inv-nav__item.is-active { box-shadow: 0 0 0 4px #fff, 0 10px 18px -6px color-mix(in srgb, var(--inv-deep) 70%, transparent); }
.inv-music__button { background: var(--inv-deep); box-shadow: 0 0 0 3px #fff, 0 8px 18px -6px color-mix(in srgb, var(--inv-deep) 70%, transparent); }
.inv-autoscroll { font-family: var(--sb-sans); font-weight: 700; }

/* the page ends above the bottom menu */
.sb-page { padding-bottom: 1rem; }
body:has(.inv-nav) .sb-page { padding-bottom: 4rem; }

@media (min-width: 400px) {
    .sb-section { padding-left: 1.6rem; padding-right: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
    .sb-corner, .sb-cloud { animation: none !important; will-change: auto; }
    .sb-live__badge i { animation: none !important; }
    .inv-button { transition: none; }
    html { scroll-behavior: auto; }
}

/* ---------- page end: the closing ends a steady distance above the bottom edge ---------- */
/* the closing carries its own bottom space, so the shared music spacer (a bare strip) is not needed */
.inv-music__space { display: none; }
.sb-page { padding-bottom: 0; }
body:has(.inv-nav) .sb-page { padding-bottom: 4rem; }
