/*
 * Monokrom Minimalis — clean white page, charcoal text, black-and-white photos, Allura script + Poppins,
 * dark rounded buttons with icons. Phone-first; on wide screens a centered 460px column on a soft backdrop.
 * Colors come from the variant: --inv-primary, --inv-accent, --inv-background, --inv-text,
 * --inv-muted, --inv-soft, --inv-line. All classes start with "mm-".
 */

:root {
    --inv-primary: #1c1c1c;
    --inv-accent: #b23a3a;
    --inv-background: #ffffff;
    --inv-text: #222222;
    --inv-muted: #6b6b6b;
    --inv-soft: #f3f3f2;
    --inv-line: #d8d8d6;
    --inv-radius: 14px;

    --mm-script: 'Allura', 'Segoe Script', cursive;
    --mm-sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mm-col: 460px;
    /* left/right edge of the column on wide screens (0 on phones) */
    --mm-edge: max(0px, calc((100vw - var(--mm-col)) / 2));
    --mm-shadow: 0 14px 34px -18px color-mix(in srgb, var(--inv-primary) 55%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.mm-body {
    margin: 0; min-height: 100vh; background: var(--inv-soft); color: var(--inv-text);
    font: 400 15px/1.7 var(--mm-sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
p, h1, h2, h3, figure, blockquote { margin: 0; }
a { color: inherit; }

/* black and white photos */
.mm-bw { filter: grayscale(1) contrast(1.05); }

.mm-script { font-family: var(--mm-script); font-weight: 400; line-height: 1.1; letter-spacing: 0; }
.mm-label { font-size: .68rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--inv-muted); }
.mm-muted { color: var(--inv-muted); font-size: .9rem; }
.mm-lead { font-size: .92rem; color: var(--inv-text); }
.mm-icon { flex: none; display: inline-block; vertical-align: -.2em; }

/* backdrop on wide screens: the cover photo, black and white, washed out */
.mm-backdrop { position: fixed; inset: 0; z-index: 0; background: var(--inv-soft); }
.mm-backdrop::before {
    content: ''; position: absolute; inset: -40px; background: var(--mm-photo, none) center / cover no-repeat;
    filter: grayscale(1) blur(18px); opacity: .28;
}
.mm-backdrop::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(color-mix(in srgb, var(--inv-text) 14%, transparent) 1px, transparent 1.4px) 0 0 / 18px 18px;
    opacity: .5;
}

.mm-preview {
    position: fixed; z-index: 60; top: 0; left: var(--mm-edge); right: var(--mm-edge); padding: .35rem .75rem;
    background: var(--inv-primary); color: #fff; font-size: .7rem; text-align: center; letter-spacing: .03em;
}

/* the page column */
.mm-page {
    position: relative; z-index: 1; width: 100%; max-width: var(--mm-col); min-height: 100vh; margin: 0 auto;
    background: var(--inv-background); overflow-x: clip;
}
@media (min-width: 520px) { .mm-page { box-shadow: 0 0 60px -20px rgb(0 0 0 / .35); } }

/* ---------- dark rounded buttons ---------- */
.mm-btn, .mm-page .inv-button, .mm-cover .inv-button {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 2.6rem; padding: .6rem 1.15rem; border: 0; border-radius: 10px; cursor: pointer;
    background: var(--inv-primary); color: #fff; text-decoration: none;
    font: 500 .8rem/1.2 var(--mm-sans); letter-spacing: .02em;
    box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--inv-primary) 80%, transparent);
    transition: transform .2s ease, filter .2s ease;
}
.mm-btn:hover { filter: brightness(1.25); }
.mm-btn:active { transform: scale(.97); }
.mm-btn:focus-visible, .mm-page .inv-button:focus-visible { outline: 2px solid var(--inv-accent); outline-offset: 2px; }
.mm-btn--small { min-height: 2.1rem; padding: .4rem .85rem; font-size: .74rem; border-radius: 8px; }
.mm-page .inv-button--outline {
    background: transparent; color: var(--inv-primary);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-primary) 55%, transparent);
}

/* ---------- cover ---------- */
.mm-cover {
    position: fixed; z-index: 50; top: 0; bottom: 0; left: var(--mm-edge); right: var(--mm-edge);
    display: flex; overflow-x: hidden; overflow-y: auto; background: var(--inv-background);
}
.mm-cover__inner {
    position: relative; z-index: 1; margin: auto; width: 100%; min-height: 100%; min-height: 100svh; padding: 2.2rem 1.5rem clamp(1.5rem, 5svh, 2.4rem);
    display: flex; flex-direction: column; align-items: center; justify-content: space-evenly; gap: .85rem; text-align: center;
}
.mm-cover__arch { position: relative; width: min(52vw, 13.5rem, 26svh); margin: .35rem 0 1.1rem; }
.mm-cover__arch::before {
    content: ''; position: absolute; inset: -9px; border: 1px solid var(--inv-line); border-radius: 999px 999px 14px 14px;
}
.mm-cover__photo {
    aspect-ratio: 3 / 4; border-radius: 999px 999px 10px 10px;
    background: var(--mm-photo, none) center 30% / cover no-repeat, var(--inv-soft);
}
.mm-cover__photo--empty { background: linear-gradient(160deg, var(--inv-soft), var(--inv-line)); }
.mm-monogram {
    position: absolute; left: 50%; bottom: -1.6rem; transform: translateX(-50%);
    display: flex; align-items: center; justify-content: center; gap: .35rem;
    min-width: 3.4rem; height: 3.4rem; padding: 0 .7rem; border-radius: 999px;
    background: var(--inv-background); border: 1px solid var(--inv-line);
    box-shadow: 0 6px 16px -8px rgb(0 0 0 / .3);
    font: 400 1.05rem/1 var(--mm-sans); letter-spacing: .06em; color: var(--inv-primary);
}
.mm-monogram i { width: 1px; height: 1.1rem; background: var(--inv-accent); transform: rotate(20deg); }
.mm-cover__names { margin-top: .6rem; font-size: clamp(2.8rem, 13vw, 3.6rem); color: var(--inv-primary); }
.mm-cover__names span { font-size: .7em; color: var(--inv-accent); }
.mm-cover__date { font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.mm-cover__quote {
    max-width: 19rem; font-size: .78rem; font-style: italic; color: var(--inv-muted);
    display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}
.mm-cover__guest {
    width: min(100%, 17.5rem); margin-top: .35rem; padding: .8rem 1rem; border: 1px solid var(--inv-line); border-radius: 12px;
    background: color-mix(in srgb, var(--inv-soft) 55%, var(--inv-background));
}
.mm-cover__guest p { font-size: .72rem; color: var(--inv-muted); letter-spacing: .06em; }
.mm-cover__guest-name { display: block; margin-top: .15rem; font-weight: 600; font-size: 1rem; color: var(--inv-text); overflow-wrap: anywhere; }
.mm-open { margin-top: .4rem; padding: .75rem 1.5rem; font-size: .85rem; }
.mm-cover--leave { transition: opacity .8s ease, transform .9s cubic-bezier(.65, 0, .35, 1); }
/* short screens: the guest box and "Buka Undangan" stay above the fold */
@media (max-height: 760px) {
    .mm-cover__inner { gap: .55rem; padding-top: 1.6rem; }
    .mm-cover .mm-sprig { width: 6.5rem; height: 6.5rem; }
    .mm-cover__arch { width: min(46vw, 24svh); margin: .2rem 0 1rem; }
    .mm-monogram { min-width: 3rem; height: 3rem; bottom: -1.4rem; font-size: .95rem; }
    .mm-cover__names { margin-top: .4rem; font-size: clamp(2.5rem, 11.5vw, 3rem); }
    .mm-cover__quote { -webkit-line-clamp: 6; }
    .mm-cover__guest { margin-top: 0; padding: .6rem 1rem; }
    .mm-open { margin-top: .1rem; }
}
@media (max-height: 660px) {
    .mm-cover__inner { gap: .45rem; padding-top: 1.2rem; }
    .mm-cover .mm-sprig { width: 5.5rem; height: 5.5rem; }
    .mm-cover__arch { width: min(42vw, 21svh); }
    .mm-cover__names { font-size: clamp(2.3rem, 10.5vw, 2.7rem); }
}
.mm-cover--gone { opacity: 0; transform: translateY(-4%); }

/* line-art sprigs in the corners, swaying gently */
.mm-sprig { position: absolute; z-index: 0; width: 9rem; height: 9rem; color: var(--inv-primary); opacity: .6; pointer-events: none; will-change: transform; }
.mm-sprig--tl { top: -.4rem; left: -.4rem; transform-origin: 50% 50%; }
body:has(.mm-preview) .mm-sprig--tl { top: 1.4rem; }
.mm-sprig--br { right: -.4rem; bottom: -.4rem; transform-origin: 50% 50%; scale: -1 -1; }
@keyframes mm-sway { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(3deg); } }
html.inv-anim .mm-sprig { animation: mm-sway 7s ease-in-out infinite; }
html.inv-anim .mm-sprig--br { animation-delay: -3.5s; }

/* ---------- hero (first screen after opening): full-bleed photo, text and countdown on it ---------- */
.mm-hero { position: relative; padding: 0 0 2.4rem; text-align: center; }
.mm-hero__text { position: relative; padding: 2.4rem 1.5rem 0; display: grid; gap: .4rem; }
.mm-hero__names { font-size: clamp(3rem, 14vw, 3.9rem); color: var(--inv-primary); }
.mm-hero__names span { font-size: .7em; color: var(--inv-accent); }
.mm-hero__date { font-size: .82rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.mm-hero--photo {
    display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
    min-height: 100vh; min-height: 100svh; max-height: 920px; padding: 0 0 11rem; color: #fff; background: #111;
}
.mm-hero__photo { position: absolute; inset: -44px 0; background: var(--mm-photo, none) center 30% / cover no-repeat, #222; --inv-parallax: 40px; }
.mm-hero__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .05) 0%, rgb(0 0 0 / .08) 40%, rgb(0 0 0 / .62) 70%, rgb(0 0 0 / .86) 100%); }
.mm-hero--photo .mm-hero__text { padding-top: 0; text-shadow: 0 2px 16px rgb(0 0 0 / .45); }
.mm-hero--photo .mm-label { color: rgb(255 255 255 / .88); }
.mm-hero--photo .mm-hero__names { color: #fff; }
.mm-hero--photo .mm-hero__names span { color: color-mix(in srgb, var(--inv-accent) 55%, #fff); }
.mm-hero__countdown { margin-top: .9rem; }
.mm-hero__countdown .inv-countdown { gap: .5rem; }
.mm-hero__countdown .inv-countdown__item {
    width: 4.1rem; min-width: 0; padding: .6rem .2rem .5rem; border-radius: 10px; text-shadow: none;
    background: rgb(255 255 255 / .94); color: var(--inv-text); box-shadow: 0 0 0 3px rgb(255 255 255 / .28);
}
.mm-hero__countdown .inv-countdown__value { font-size: 1.35rem; font-weight: 600; color: var(--inv-accent); }
.mm-hero__countdown .inv-countdown__label { font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--inv-muted); }
.mm-hero__countdown .inv-countdown__actions, .mm-hero__countdown .inv-countdown__done { display: none; }
.mm-hero:not(.mm-hero--photo) .mm-hero__countdown .inv-countdown__item { background: var(--inv-primary); color: #fff; box-shadow: var(--mm-shadow); }
.mm-hero:not(.mm-hero--photo) .mm-hero__countdown .inv-countdown__label { color: rgb(255 255 255 / .8); }

/* reel: running photos, then the big initials and the date */
.mm-reel { position: relative; padding: 1.6rem 0 2.8rem; text-align: center; background: var(--inv-soft); }
.mm-reel__marquee { --inv-marquee-height: 9.5rem; }
.mm-reel__marquee img { border-radius: 4px; filter: grayscale(1) contrast(1.05); }
.mm-reel__mono { display: flex; justify-content: center; align-items: center; margin-top: 1.8rem; font: 300 4rem/1 var(--mm-sans); color: var(--inv-primary); }
.mm-reel__mono span { display: inline-block; }
.mm-reel__mono span + span { margin-left: 1rem; padding-left: 1rem; border-left: 1.5px solid var(--inv-accent); }
.mm-reel__date { margin-top: 1rem; font-size: .8rem; font-weight: 500; letter-spacing: .45em; color: var(--inv-accent); }

/* ---------- sections ---------- */
.mm-main { padding-bottom: 1rem; }
.mm-section { position: relative; padding: 3.2rem 1.5rem; text-align: center; }
.mm-section + .mm-section::before {
    content: ''; position: absolute; top: 0; left: 50%; width: 3.5rem; height: 1px; transform: translateX(-50%); background: var(--inv-line);
}
.mm-heading { display: grid; justify-items: center; gap: .3rem; margin-bottom: 1.6rem; }
.mm-heading__title { font-size: 3rem; color: var(--inv-primary); }
.mm-divider { display: block; margin: .15rem auto 0; color: var(--inv-accent); transform-origin: center; }
.mm-section > .mm-muted { max-width: 22rem; margin: -.6rem auto 1.4rem; }

/* opening */
.mm-opening { display: grid; gap: 1.1rem; }
.mm-arabic { font-family: 'Amiri', serif; font-size: 1.6rem; line-height: 1.8; color: var(--inv-primary); }
.mm-opening__greeting { font-weight: 500; font-size: .95rem; }
.mm-quote {
    position: relative; margin-top: .6rem; padding: 1.9rem 1.3rem 1.3rem; border: 1px solid var(--inv-line); border-radius: var(--inv-radius);
    background: var(--inv-soft);
}
.mm-quote__mark {
    position: absolute; top: -1.15rem; left: 50%; transform: translateX(-50%); width: 2.3rem; height: 2.3rem; border-radius: 50%;
    display: grid; place-items: center; background: var(--inv-primary); color: #fff; font: 600 1.6rem/1 Georgia, serif; padding-top: .45rem;
}
.mm-quote blockquote { font-size: .85rem; font-style: italic; line-height: 1.75; }
.mm-quote figcaption { margin-top: .6rem; font-size: .76rem; font-weight: 600; letter-spacing: .1em; color: var(--inv-accent); }

/* couple: zig-zag */
.mm-couple__intro { max-width: 22rem; margin: -.4rem 0 1.8rem; font-size: .88rem; color: var(--inv-muted); text-align: left; }
.mm-person { display: flex; align-items: center; gap: 1rem; text-align: left; }
.mm-person--right { flex-direction: row-reverse; text-align: right; }
.mm-person__frame { flex: none; position: relative; width: 8.4rem; height: 8.4rem; }
.mm-person__frame::after {
    content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--inv-line);
}
.mm-person__photo {
    display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
    box-shadow: 0 16px 30px -14px rgb(0 0 0 / .55); background: var(--inv-soft);
    font: 400 3rem/1 var(--mm-script); color: var(--inv-primary);
}
.mm-person__text { min-width: 0; display: grid; gap: .3rem; justify-items: start; }
.mm-person--right .mm-person__text { justify-items: end; }
.mm-person__nickname { font-size: 2.6rem; color: var(--inv-primary); }
.mm-person__name { font-size: .95rem; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.mm-person__parents { font-size: .78rem; line-height: 1.55; color: var(--inv-muted); }
.mm-person__parents strong { color: var(--inv-text); font-weight: 500; }
.mm-person .mm-btn { margin-top: .35rem; }
.mm-couple__amp { margin: 1rem 0; font-size: 4rem; line-height: 1; color: var(--inv-accent); }
@media (max-width: 370px) {
    .mm-person__frame { width: 6.8rem; height: 6.8rem; }
    .mm-person__nickname { font-size: 2.2rem; }
}

/* the dark band (countdown) */
.mm-section--dark { background: var(--inv-primary); color: #fff; }
.mm-section--dark .mm-label { color: rgb(255 255 255 / .7); }
.mm-section--dark .mm-heading__title { color: #fff; }
.mm-section--dark .mm-divider { color: color-mix(in srgb, var(--inv-accent) 55%, #fff); }
.mm-section--dark + .mm-section::before, .mm-section--dark::before { display: none; }

/* countdown */
.mm-countdown__date { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 1.3rem; font-weight: 500; font-size: .9rem; }
.mm-countdown .inv-countdown { gap: .55rem; }
.mm-countdown .inv-countdown__item {
    flex: 1; min-width: 0; max-width: 4.8rem; padding: .85rem .3rem .7rem; border-radius: 12px;
    background: var(--inv-background); color: var(--inv-text); box-shadow: 0 14px 28px -16px rgb(0 0 0 / .7);
}
.mm-countdown .inv-countdown__value { font-size: 1.65rem; font-weight: 600; color: var(--inv-accent); }
.mm-countdown .inv-countdown__label { margin-top: .2rem; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.mm-countdown .inv-countdown__actions { margin-top: 1.4rem; }
.mm-countdown .inv-countdown__actions .inv-button { font-size: .74rem; background: var(--inv-accent); color: #fff; }
.mm-countdown .inv-countdown__actions .inv-button--outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .6); }
.mm-countdown .inv-countdown__label { color: var(--inv-muted); opacity: 1; }
.mm-countdown .inv-countdown__done { font-size: .9rem; }

/* events: centered, dashed lines between */
.mm-events__intro { max-width: 22rem; margin: -.5rem auto 1.6rem; font-size: .88rem; color: var(--inv-muted); }
.mm-event { display: grid; justify-items: center; gap: .35rem; padding: 1.8rem 0; }
.mm-event + .mm-event { border-top: 1.5px dashed var(--inv-line); }
.mm-event__photo {
    width: 100%; height: 9.5rem; margin-bottom: .9rem; object-fit: cover; border-radius: var(--inv-radius);
    box-shadow: var(--mm-shadow);
}
.mm-event__name { margin-bottom: .35rem; font-size: 1.45rem; font-weight: 600; letter-spacing: .02em; color: var(--inv-primary); }
.mm-event__line, .mm-event__venue, .mm-event__dress { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; font-size: .88rem; }
.mm-event__time { font-weight: 600; color: var(--inv-accent); }
.mm-event__venue { margin-top: .45rem; font-weight: 600; font-size: .95rem; }
.mm-event__address { max-width: 20rem; font-size: .82rem; line-height: 1.6; color: var(--inv-muted); }
.mm-event__dress { margin-top: .2rem; padding: .3rem .8rem; border-radius: 999px; background: var(--inv-soft); font-size: .76rem; }
.mm-event__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; width: 100%; max-width: 22rem; margin-top: 1rem; }
.mm-event__actions .mm-btn { padding-inline: .6rem; font-size: .76rem; }
.mm-event__actions .mm-btn:only-child { grid-column: 1 / -1; }

/* love story: zig-zag timeline */
.mm-timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.mm-timeline::before {
    content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%);
    background: linear-gradient(180deg, transparent, var(--inv-line) 5%, var(--inv-line) 95%, transparent);
}
.mm-moment {
    position: relative; display: grid; align-items: start;
    grid-template-columns: minmax(0, 1fr) 1.9rem minmax(0, 1fr); grid-template-areas: "text dot meta"; column-gap: .6rem;
}
.mm-moment--flip { grid-template-areas: "meta dot text"; }
.mm-moment + .mm-moment { margin-top: 2.4rem; }
.mm-moment__dot {
    grid-area: dot; position: relative; z-index: 1; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%;
    background: var(--inv-primary); color: #fff; box-shadow: 0 0 0 4px var(--inv-background);
}
.mm-moment__text { grid-area: text; min-width: 0; text-align: right; }
.mm-moment--flip .mm-moment__text { text-align: left; }
.mm-moment__title { margin-top: .15rem; font-size: .98rem; font-weight: 600; line-height: 1.3; color: var(--inv-primary); overflow-wrap: anywhere; }
.mm-moment__rule { display: block; width: 72%; margin: .45rem 0 .5rem auto; border-top: 1.5px dotted var(--inv-accent); }
.mm-moment--flip .mm-moment__rule { margin-inline: 0 auto; }
.mm-moment__story { font-size: .8rem; line-height: 1.6; color: var(--inv-muted); overflow-wrap: anywhere; }
.mm-moment__meta { grid-area: meta; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; text-align: left; }
.mm-moment--flip .mm-moment__meta { align-items: flex-end; text-align: right; }
.mm-moment__date { font-size: 1.9rem; color: var(--inv-accent); overflow-wrap: anywhere; }
.mm-moment__photo {
    width: min(5.6rem, 100%); aspect-ratio: 1; object-fit: cover; border-radius: 50%; padding: 3px;
    border: 1px solid var(--inv-line); box-shadow: 0 10px 20px -12px rgb(0 0 0 / .5);
}
.mm-moment__badge {
    display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
    border: 1px dashed var(--inv-line); color: var(--inv-accent);
}

/* gallery: 3 columns, the first photo large; black and white until touched */
.mm-gallery .inv-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mm-gallery .inv-gallery__item { border-radius: 10px; }
.mm-gallery .inv-gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
.mm-gallery .inv-gallery__item img, .mm-gallery .inv-gallery__item video { filter: grayscale(1) contrast(1.05); transition: filter .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.mm-gallery .inv-gallery__item:hover img, .mm-gallery .inv-gallery__item:focus-visible img { filter: none; }

/* live streaming */
.mm-stream { background: var(--inv-soft); }
.mm-stream__note { margin: -.6rem 0 1.2rem; font-size: .8rem; font-weight: 500; color: var(--inv-accent); }

/* gift: charcoal bank cards, two per row */
.mm-gift .inv-gift { display: grid; gap: .8rem; }
.mm-gift .inv-gift__accounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.mm-gift .inv-gift__account:last-child:nth-child(odd) { grid-column: 1 / -1; }
.mm-gift .inv-gift__account p { margin: 0; }
.mm-gift .inv-gift__accounts .inv-gift__account {
    position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .1rem;
    min-width: 0; margin: 0; padding: .85rem; overflow: hidden; text-align: left;
    border-radius: 16px; color: #fff;
    background:
        radial-gradient(120% 80% at 100% 0%, rgb(255 255 255 / .16), transparent 55%),
        repeating-linear-gradient(115deg, rgb(255 255 255 / .03) 0 2px, transparent 2px 9px),
        linear-gradient(140deg, color-mix(in srgb, var(--inv-primary) 82%, #fff), var(--inv-primary) 55%, color-mix(in srgb, var(--inv-primary) 85%, #000));
    box-shadow: 0 12px 24px -12px rgb(0 0 0 / .6);
}
/* the chip */
.mm-gift .inv-gift__accounts .inv-gift__account::before {
    content: ''; width: 1.75rem; height: 1.3rem; border-radius: 4px;
    background:
        linear-gradient(90deg, transparent 45%, rgb(0 0 0 / .18) 45% 55%, transparent 55%),
        linear-gradient(0deg, transparent 45%, rgb(0 0 0 / .18) 45% 55%, transparent 55%),
        linear-gradient(135deg, #f1f1f1, #a9a9a9 55%, #e4e4e4);
    box-shadow: inset 0 0 0 1px rgb(0 0 0 / .2);
}
.mm-gift .inv-gift__accounts .inv-gift__bank {
    position: absolute; top: .8rem; right: .8rem; max-width: calc(100% - 3.4rem);
    font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-align: right; overflow-wrap: anywhere;
}
.mm-gift .inv-gift__accounts .inv-gift__logo { height: 1.5rem; padding: .2rem .4rem; border-radius: .35rem; }
.mm-gift .inv-gift__accounts .inv-gift__logo img { max-width: 4rem; }
.mm-gift .inv-gift__accounts .inv-gift__number {
    margin-top: .85rem; font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    font-weight: 500; font-size: .98rem; line-height: 1.3; letter-spacing: .05em; overflow-wrap: anywhere;
}
.mm-gift .inv-gift__accounts .inv-gift__holder { font-size: .6rem; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; opacity: .85; overflow-wrap: anywhere; }
.mm-gift .inv-gift__accounts .inv-button--outline {
    min-height: 0; margin-top: .6rem; padding: .35rem .75rem; border-radius: 999px; font-size: .64rem; letter-spacing: .06em;
    background: rgb(255 255 255 / .1); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .45);
}
.mm-gift .inv-gift__address {
    margin: 0; padding: 1.4rem 1.2rem; border: 1px dashed var(--inv-line); border-radius: var(--inv-radius); background: var(--inv-background);
    display: grid; justify-items: center; gap: .3rem; font-size: .85rem;
}
.mm-gift .inv-gift__address .inv-gift__bank { font-size: .68rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--inv-accent); }
.mm-gift .inv-gift__address .inv-gift__holder { font-weight: 600; }
.mm-gift .inv-gift__address .inv-button { margin-top: .5rem; }

/* rsvp & wishes: white card with a soft shadow */
.mm-rsvp, .mm-wishes { background: var(--inv-soft); }
.mm-rsvp + .mm-wishes { padding-top: 1rem; }
.mm-rsvp + .mm-wishes::before { display: none; }
.mm-card {
    padding: 1.3rem 1.15rem; border-radius: 16px; background: var(--inv-background); text-align: left;
    box-shadow: 0 16px 34px -22px rgb(0 0 0 / .45), 0 0 0 1px color-mix(in srgb, var(--inv-line) 60%, transparent);
}
.mm-card .inv-form { gap: .85rem; }
.mm-card .inv-form label, .mm-card .inv-form__choices legend { font-size: .8rem; font-weight: 500; }
.mm-card .inv-form input:not([type=radio]):not([type=checkbox]), .mm-card .inv-form select, .mm-card .inv-form textarea {
    padding: .7rem .85rem; border: 1px solid var(--inv-line); border-radius: 10px; background: var(--inv-background);
    color: var(--inv-text); font: 400 .88rem/1.5 var(--mm-sans);
}
.mm-card .inv-form input:focus, .mm-card .inv-form select:focus, .mm-card .inv-form textarea:focus {
    outline: none; border-color: var(--inv-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--inv-primary) 12%, transparent);
}
.mm-card .inv-form__choices label { padding: .4rem .7rem; border: 1px solid var(--inv-line); border-radius: 999px; font-size: .78rem; }
.mm-card .inv-form__choices label:has(input:checked) { border-color: var(--inv-primary); background: var(--inv-soft); }
.mm-card .inv-form button[type=submit] { width: 100%; }
.mm-card .inv-rsvp__deadline { margin-bottom: .8rem; font-size: .78rem; color: var(--inv-muted); }
.mm-card .inv-form__notice { background: var(--inv-soft); }
.mm-wishes .mm-card { --inv-wishes-height: 20rem; }
.mm-wishes .inv-wishes__list { gap: .55rem; }
.mm-wishes .inv-wish {
    padding: .7rem .85rem; border-radius: 12px; background: var(--inv-soft); border-left: 3px solid var(--inv-primary); font-size: .82rem;
}
.mm-wishes .inv-wish__name { font-size: .85rem; color: var(--inv-primary); }
.mm-wishes .inv-wish__reply { border-left-color: var(--inv-accent); background: var(--inv-background); }

/* closing: full-bleed black-and-white photo under a dark gradient, the text over it */
.mm-closing { overflow: hidden; padding-bottom: 2.5rem; }
.mm-sprig--closing { top: 1rem; right: -.6rem; width: 6rem; height: 6rem; opacity: .4; transform-origin: 50% 50%; scale: -1 1; }
.mm-closing--photo { display: flex; align-items: flex-end; min-height: min(100svh, 760px); padding: 12rem 1.5rem 3rem; color: #fff; background: #111; }
.mm-closing--photo::before { display: none; }
.mm-closing__photo { position: absolute; inset: -44px 0; background: var(--mm-photo) center 30% / cover no-repeat; --inv-parallax: 36px; }
.mm-closing__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .05) 0%, rgb(0 0 0 / .25) 38%, rgb(0 0 0 / .82) 68%, rgb(0 0 0 / .92) 100%); }
.mm-closing__text { position: relative; z-index: 1; width: 100%; }
.mm-closing__thanks { font-size: 1.5rem; font-weight: 300; letter-spacing: .22em; text-transform: uppercase; color: var(--inv-primary); }
.mm-closing--photo .mm-closing__thanks { color: #fff; }
.mm-closing .mm-divider { margin: .4rem auto .8rem; }
.mm-closing--photo .mm-divider { color: color-mix(in srgb, var(--inv-accent) 50%, #fff); }
.mm-closing__names { font-size: 3.2rem; color: var(--inv-primary); }
.mm-closing--photo .mm-closing__names { color: #fff; text-shadow: 0 2px 14px rgb(0 0 0 / .5); }
.mm-closing__names span { font-size: .7em; color: var(--inv-accent); }
.mm-closing--photo .mm-closing__names span { color: color-mix(in srgb, var(--inv-accent) 55%, #fff); }
.mm-closing__message { max-width: 23rem; margin: .8rem auto 0; }
.mm-closing--photo .mm-closing__message { color: rgb(255 255 255 / .9); }
.mm-closing__signature { margin-top: 1.3rem; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--inv-muted); }
.mm-closing--photo .mm-closing__signature { color: rgb(255 255 255 / .75); }

/* branding (must stay visible) */
.mm-branding { color: var(--inv-muted); opacity: 1; font-size: .72rem; }

/* ---------- floating UI kept inside the column ---------- */
.mm-nav.inv-nav {
    --inv-nav-bg: color-mix(in srgb, var(--inv-background) 94%, transparent);
    --inv-nav-text: color-mix(in srgb, var(--inv-text) 70%, transparent);
    --inv-nav-active: var(--inv-accent);
    border-color: var(--inv-line);
}
.inv-music { right: calc(var(--mm-edge) + 1rem); }
.inv-music__button { background: var(--inv-primary); }
.inv-autoscroll { color: var(--inv-primary); font-family: var(--mm-sans); }
.inv-autoscroll--running { background: var(--inv-primary); }
.inv-to-top { left: calc(var(--mm-edge) + 1rem); background: var(--inv-soft); color: var(--inv-primary); border: 1px solid var(--inv-line); }
.inv-qr-tab { right: var(--mm-edge); font-family: var(--mm-sans); color: var(--inv-primary); border-color: var(--inv-line); }
.inv-qr-sheet .inv-checkin { font-family: var(--mm-sans); color: var(--inv-text); }
.inv-checkin__title { color: var(--inv-primary); }

/* reduced motion: nothing sways */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .mm-sprig { animation: none !important; }
    .mm-cover--leave { transition: opacity .3s ease; }
    .mm-cover--gone { transform: none; }
}
