/*
 * Template "Malam Magister" (Wisuda & Kelulusan) — a master's / doctoral graduation as a black-tie evening in a grand
 * library at night: deep black, champagne gold and emerald leather in warm lamp light. Signature pieces: bookcases of
 * gilded spines (sections/_shelf), a brass banker's lamp (sections/_lamp), the photo in a tall art-deco arch
 * (sections/_frame), deco fans, stepped corners and diamond dividers, a gold laurel wreath (sections/_wreath, the
 * "Ketuk daun salamnya" interaction) and the thesis as a leather-bound book. Mobile-first, one column (~460px) on a
 * night backdrop on wide screens.
 *
 * Colours come from the chosen colour variant (template.json → <x-inv.head>):
 *   --inv-primary (emerald / navy / maroon: titles, buttons, the soft tone)   --inv-accent (champagne gold: every foil)
 *   --inv-background (ivory paper)   --inv-text   --inv-deep (the night: cover, dark sections)   --inv-shine (pale gold)
 *   --inv-soft (the soft tint)   --inv-leaf, --inv-petal (the two leathers: spines, the lamp shade, the thesis book,
 *   the bookmark)   --inv-lamp (the warm lamp light)
 *
 * Section tones (set on each section in its partial): .mgs-tone--light (ivory), --soft (the soft tint), --deep (the
 * night library with a warm lamp glow). Motion only runs with html.inv-anim (set by <x-inv.head> unless the guest
 * prefers reduced motion); without it everything is shown finished.
 *
 * Revision standard (docs/template-guide.md section 10): the cover is sized in px steps per screen height, never
 * svh/vh; ornaments stay at the edges clear of faces; photos melt into sections with masks; the closing is compact.
 *
 * Contents: 1 base · 2 tones · 3 shared pieces (heading, divider, frame, plaque, shelf, lamp, wreath, compare, tap marker)
 *           · 4 cover · 5 sections in page order · 6 forms · 7 shared components · 8 screen sizes · 9 motion
 *           · 10 intro scene
 */

/* ---------- 1. base ---------- */
:root {
    /* defaults = the "Hitam Sampanye" variant (the variant's colours override these) */
    --inv-primary: #0f4a39;
    --inv-accent: #cda55a;
    --inv-background: #f8f1e2;
    --inv-text: #1b150e;
    --inv-deep: #0d0a07;
    --inv-shine: #f4dc9e;
    --inv-soft: #ecdfc2;
    --inv-leaf: #0f5a45;
    --inv-petal: #6e1424;
    --inv-lamp: #ffbe55;
    --inv-radius: 6px;

    --mgs-serif: var(--inv-font-heading, 'Bodoni Moda'), 'Didot', Georgia, 'Times New Roman', serif;
    --mgs-script: var(--inv-font-display, 'Imperial Script'), 'Brush Script MT', cursive;
    --mgs-read: 'Cormorant Garamond', Georgia, serif;
    --mgs-sans: 'Josefin Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mgs-col: 460px;

    /* champagne foil, mixed from the accent: dark bronze → champagne → pale light */
    --mgs-gold-1: color-mix(in srgb, var(--inv-accent) 58%, #2e1a04);
    --mgs-gold-2: var(--inv-accent);
    --mgs-gold-3: color-mix(in srgb, var(--inv-accent) 42%, #fff6dc);
    --mgs-gold-ink: color-mix(in srgb, var(--inv-accent) 62%, #2e1a04);
    --mgs-foil: linear-gradient(100deg, var(--mgs-gold-1), var(--mgs-gold-2) 28%, var(--mgs-gold-3) 48%, var(--mgs-gold-2) 64%, var(--mgs-gold-1));
    --mgs-foil-dark: linear-gradient(100deg, color-mix(in srgb, var(--inv-accent) 42%, #1e1002), var(--mgs-gold-ink) 30%, var(--mgs-gold-1) 50%, var(--mgs-gold-ink) 70%, color-mix(in srgb, var(--inv-accent) 42%, #1e1002));

    /* the leathers, the wood, the night tones of the spines */
    --mgs-leaf-1: color-mix(in srgb, var(--inv-leaf) 70%, #000);
    --mgs-leaf-2: color-mix(in srgb, var(--inv-leaf) 82%, #fff);
    --mgs-wine-1: color-mix(in srgb, var(--inv-petal) 70%, #000);
    --mgs-wine-2: color-mix(in srgb, var(--inv-petal) 84%, #fff);
    --mgs-prim-1: color-mix(in srgb, var(--inv-primary) 68%, #000);
    --mgs-prim-2: color-mix(in srgb, var(--inv-primary) 85%, #fff);
    --mgs-ink-1: color-mix(in srgb, var(--inv-deep) 80%, #3a2a12);
    --mgs-ink-2: color-mix(in srgb, var(--inv-deep) 55%, #6a4c22);
    --mgs-wood-1: color-mix(in srgb, var(--inv-deep) 65%, #3a2210);
    --mgs-wood-2: color-mix(in srgb, var(--inv-deep) 35%, #6a4220);

    --mgs-paper: color-mix(in srgb, #fff 58%, var(--inv-background));
    --mgs-title: color-mix(in srgb, var(--inv-primary) 72%, var(--inv-deep));
    --mgs-muted: color-mix(in srgb, var(--inv-text) 76%, var(--inv-background));
    --mgs-cream-muted: color-mix(in srgb, var(--inv-background) 84%, transparent);
    --mgs-line: color-mix(in srgb, var(--inv-accent) 60%, transparent);
    --mgs-drop: 0 26px 42px -26px color-mix(in srgb, var(--inv-deep) 75%, transparent);

    /* the deco ground: interlocking fans (a fish-scale of half sunbursts) on a 32px grid; a mask, so it takes any colour */
    --mgs-ground: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke='%23000' stroke-width='.8'%3E%3Cpath d='M0 16A16 16 0 0 1 32 16M6 16A10 10 0 0 1 26 16M12 16A4 4 0 0 1 20 16M-16 32A16 16 0 0 1 16 32M-10 32A10 10 0 0 1 10 32M-4 32A4 4 0 0 1 4 32M16 32A16 16 0 0 1 48 32M22 32A10 10 0 0 1 42 32M28 32A4 4 0 0 1 36 32'/%3E%3C/g%3E%3C/svg%3E");
    /* a gold fan as a mask (the name card, the RSVP frieze) */
    --mgs-fan-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 52'%3E%3Cg fill='none' stroke='%23000'%3E%3Cpath stroke-width='3' d='M2 50A48 48 0 0 1 98 50'/%3E%3Cpath stroke-width='1.8' d='M14 50A36 36 0 0 1 86 50M26 50A24 24 0 0 1 74 50M50 50V2M50 50 26 8.4M50 50 74 8.4M50 50 8.4 26M50 50 91.6 26M50 50 16 16M50 50 84 16'/%3E%3C/g%3E%3Cpath d='M38 50A12 12 0 0 1 62 50Z'/%3E%3C/svg%3E");
    /* the tall round-topped arch of the windows: 156:240, stretched to the box */
    --mgs-arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 156 240' preserveAspectRatio='none'%3E%3Cpath d='M0 240V78A78 78 0 0 1 156 78V240Z'/%3E%3C/svg%3E");
    /* a wide arch for landscape photos (events): 300:200 */
    --mgs-arch-wide: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 200' preserveAspectRatio='none'%3E%3Cpath d='M0 200V80C0 30 70 0 150 0S300 30 300 80V200Z'/%3E%3C/svg%3E");

    /* colours of the shared components */
    --inv-ambient-1: var(--inv-shine);
    --inv-ambient-2: color-mix(in srgb, var(--inv-lamp) 70%, #fff);
}

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

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

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

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

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

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

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

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

/* ---------- 2. section tones ---------- */
/* light: ivory paper with a warm glow in a corner and the deco fan ground */
.mgs-tone--light {
    background:
        radial-gradient(60% 26% at 100% 0%, color-mix(in srgb, var(--inv-lamp) 14%, transparent), transparent 75%),
        radial-gradient(60% 26% at 0% 100%, color-mix(in srgb, var(--inv-soft) 80%, transparent), transparent 75%),
        var(--inv-background);
}
/* soft: a wash of the soft tint */
.mgs-tone--soft {
    background:
        radial-gradient(80% 34% at 50% 0%, color-mix(in srgb, #fff 50%, transparent), transparent 75%),
        linear-gradient(180deg, var(--inv-soft), color-mix(in srgb, var(--inv-soft) 55%, var(--inv-background)));
}
.mgs-tone--light::before, .mgs-tone--soft::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: var(--inv-accent); opacity: .16;
    -webkit-mask: var(--mgs-ground) center top / 32px 32px repeat; mask: var(--mgs-ground) center top / 32px 32px repeat;
}
/* deep: the night library — black with a glow of the primary and the warm lamp light */
.mgs-tone--deep {
    color: var(--inv-background);
    background:
        radial-gradient(80% 36% at 50% 0%, color-mix(in srgb, var(--inv-lamp) 20%, transparent), transparent 75%),
        radial-gradient(90% 40% at 0% 100%, color-mix(in srgb, var(--inv-primary) 60%, transparent), transparent 75%),
        var(--inv-deep);
}
.mgs-tone--deep::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: var(--inv-accent); opacity: .12;
    -webkit-mask: var(--mgs-ground) center top / 32px 32px repeat; mask: var(--mgs-ground) center top / 32px 32px repeat;
}
.mgs-tone--deep a:not(.inv-button) { color: var(--inv-shine); }
.mgs-tone--deep .mgs-arabic { color: var(--inv-shine); }

/* a client photo behind a section, under a strong night gradient with the lamp glow */
.mgs-bgphoto { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.mgs-bgphoto img { display: block; width: 100%; height: calc(100% + 80px); margin-top: -40px; object-fit: cover; object-position: center 30%; --inv-parallax: 40px; }
.mgs-bgphoto::after {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(70% 40% at 50% 0%, color-mix(in srgb, var(--inv-lamp) 22%, transparent), transparent),
        linear-gradient(180deg,
            color-mix(in srgb, var(--inv-deep) 92%, transparent),
            color-mix(in srgb, var(--inv-deep) 80%, transparent) 45%,
            color-mix(in srgb, var(--inv-deep) 95%, transparent));
}

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

/* heading: a deco label between two fine rules, a Bodoni title, the last word in the script font in champagne foil */
.mgs-heading { margin: 0 0 2.1rem; }
.mgs-heading__eyebrow {
    display: inline-flex; align-items: center; gap: .65rem; margin: 0 0 .7rem;
    font-size: .66rem; font-weight: 600; line-height: 1.3; letter-spacing: .3em; text-transform: uppercase; color: var(--mgs-gold-ink);
}
.mgs-heading__eyebrow span { padding-top: .12em; }
.mgs-heading__eyebrow::before, .mgs-heading__eyebrow::after { content: ''; width: 1.6rem; height: 1px; flex: none; background: currentColor; opacity: .7; }
.mgs-heading__title {
    margin: 0; font-family: var(--mgs-serif); font-size: 2.05rem; font-weight: 500; line-height: 1.12;
    letter-spacing: .005em; color: var(--mgs-title); text-wrap: balance;
}
.mgs-heading__title em {
    display: inline-block; padding: 0 .1em .12em; font-family: var(--mgs-script); font-style: normal; font-weight: 400;
    font-size: 1.3em; line-height: .9; word-spacing: .12em;
}
.mgs-heading__divider { margin: .9rem auto 0; }
.mgs-tone--deep .mgs-heading__eyebrow { color: var(--inv-shine); }
.mgs-tone--deep .mgs-heading__title { color: #fff; }
/* on light and soft sections the foil runs darker, so the script word keeps its contrast */
.mgs-tone--light .mgs-heading__title em, .mgs-tone--soft .mgs-heading__title em { background-image: var(--mgs-foil-dark); }

/* the deco divider */
.mgs-divider { display: block; width: min(14rem, 74%); height: auto; overflow: visible; }

/* the fan */
.mgs-fan { display: block; overflow: visible; }

/* the art-deco corner */
.mgs-corner { position: absolute; display: block; overflow: visible; pointer-events: none; }

/* the photo frame (sections/_frame): figure 200:300, the window inside the inner rule */
.mgs-frame { --frame-w: 15rem; --frame-pos: center 24%; position: relative; width: var(--frame-w); aspect-ratio: 200 / 300; margin: 0 auto; flex: none; }
.mgs-frame__window {
    position: absolute; left: 11%; right: 11%; top: 14.667%; bottom: 5.333%; overflow: hidden;
    -webkit-mask: var(--mgs-arch) center / 100% 100% no-repeat; mask: var(--mgs-arch) center / 100% 100% no-repeat;
    background:
        radial-gradient(70% 45% at 50% 32%, color-mix(in srgb, var(--inv-lamp) 30%, transparent), transparent 70%),
        linear-gradient(170deg, color-mix(in srgb, var(--inv-primary) 75%, #000), var(--inv-deep));
}
.mgs-frame__photo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--frame-pos); }
.mgs-frame__empty { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: .5rem; }
.mgs-frame__empty-fan { width: 46%; height: auto; overflow: visible; }
.mgs-frame__initials { font-family: var(--mgs-serif); font-weight: 500; font-size: calc(var(--frame-w) * .2); line-height: 1; letter-spacing: .06em; color: var(--inv-shine); white-space: nowrap; }
.mgs-frame__rays, .mgs-frame__rules { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.mgs-frame__rays { opacity: .8; }
.mgs-frame__rules { filter: drop-shadow(0 2px 3px rgb(0 0 0 / .3)); }
.mgs-frame .mgs-frame__plaque { position: absolute; left: 13%; right: 13%; bottom: -4.5%; }

/* the library plaque */
.mgs-plaque { position: relative; display: grid; place-items: center; aspect-ratio: 200 / 36; pointer-events: none; filter: drop-shadow(0 6px 8px rgb(0 0 0 / .4)); }
.mgs-plaque__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.mgs-plaque__plate { fill: color-mix(in srgb, var(--inv-deep) 88%, var(--inv-primary)); }
.mgs-plaque__text {
    position: relative; max-width: 86%; padding-top: .14em; text-align: center; line-height: 1.1;
    font-size: .6rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--inv-shine);
}

/* the bookcase */
.mgs-shelf { display: block; overflow: hidden; }
:root { --mgs-shelf-back: color-mix(in srgb, var(--inv-deep) 82%, #2a1808); --mgs-gilt-label: var(--mgs-gold-1); }

/* the banker's lamp */
.mgs-lamp { display: block; overflow: visible; }

/* the laurel wreath */
.mgs-wreath { display: block; overflow: visible; }
.mgs-wreath__leaf { transform-box: fill-box; transform-origin: 0 50%; }
.mgs-wreath__berry { transform-origin: 50% 50%; }

/* "Dulu & Sekarang" (sections/_compare): two photos in one tall art-deco arch, the handle drags */
.mgs-compare {
    position: relative; width: min(100%, 17.5rem); aspect-ratio: 156 / 220; margin: 1rem auto 0; touch-action: pan-y;
    filter: drop-shadow(0 0 0 transparent) drop-shadow(0 24px 26px rgb(0 0 0 / .35));
    -webkit-mask: var(--mgs-arch) center / 100% 100% no-repeat; mask: var(--mgs-arch) center / 100% 100% no-repeat;
    background: var(--mgs-foil); padding: 5px;
}
.mgs-compare::after {
    content: ''; position: absolute; inset: 5px; pointer-events: none; z-index: 3;
    -webkit-mask: var(--mgs-arch) center / 100% 100% no-repeat; mask: var(--mgs-arch) center / 100% 100% no-repeat;
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--inv-shine) 70%, transparent);
}
.mgs-compare__img { position: absolute; inset: 5px; display: block; width: calc(100% - 10px); height: calc(100% - 10px); object-fit: cover; object-position: center 25%;
    -webkit-mask: var(--mgs-arch) center / 100% 100% no-repeat; mask: var(--mgs-arch) center / 100% 100% no-repeat; }
.mgs-compare__then { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.mgs-compare__then .mgs-compare__img { filter: sepia(.5) contrast(1.05) brightness(.97); }
.mgs-compare__tag {
    position: absolute; z-index: 4; top: 46%; padding: .26rem .6rem .16rem; font-size: .6rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
    color: var(--inv-shine); background: color-mix(in srgb, var(--inv-deep) 78%, transparent); box-shadow: inset 0 0 0 1px var(--mgs-line); pointer-events: none;
}
.mgs-compare__tag--then { left: .8rem; }
.mgs-compare__tag--now { right: .8rem; }
.mgs-compare__handle { position: absolute; z-index: 4; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--mgs-gold-3); box-shadow: 0 0 8px rgb(0 0 0 / .5); pointer-events: none; }
.mgs-compare__knob {
    position: absolute; left: 50%; top: 62%; display: grid; place-items: center; width: 2.8rem; height: 2.8rem; margin: -1.4rem 0 0 -1.4rem; border-radius: 50%;
    color: var(--inv-deep); background: var(--mgs-foil); background-size: 220% 100%; box-shadow: 0 0 0 3px var(--inv-deep), 0 0 0 4px var(--mgs-gold-3), 0 8px 18px -6px rgb(0 0 0 / .6);
}
.mgs-compare__knob svg { width: 1.3rem; height: 1.3rem; }
.mgs-compare .mgs-tap { inset: auto; left: 50%; top: 62%; width: 5.4rem; height: 5.4rem; margin: -2.7rem 0 0 -2.7rem; }
.mgs-compare .mgs-tap__ring { left: 50%; top: 50%; width: 100%; margin: -50% 0 0 -50%; }
.mgs-compare .mgs-tap__hand { left: 46%; top: 58%; }
.mgs-compare__hint {
    position: absolute; z-index: 4; left: 50%; bottom: 1rem; transform: translateX(-50%); width: max-content; max-width: 90%; text-align: center; pointer-events: none;
    padding: .4rem .9rem .3rem; font-size: .68rem; font-weight: 600; letter-spacing: .08em; line-height: 1.3;
    color: var(--inv-deep); background: var(--mgs-foil); background-size: 220% 100%; box-shadow: 0 8px 16px -8px rgb(0 0 0 / .6);
}
.mgs-compare__range { position: absolute; inset: 0; z-index: 6; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.mgs-compare__range:focus-visible { opacity: .01; }
.mgs-compare:has(.mgs-compare__range:focus-visible) .mgs-compare__knob { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--inv-shine); }

/* the tap marker: two pulsing gold rings, a tapping hand and a label */
.mgs-tap { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; pointer-events: none; }
.mgs-tap__ring {
    position: absolute; left: 50%; top: 58%; width: 6rem; aspect-ratio: 1; margin: -3rem 0 0 -3rem; border-radius: 50%;
    border: 2.5px solid var(--inv-shine); opacity: 0;
}
.mgs-tap__hand {
    position: absolute; left: 56%; top: 62%; width: 2.6rem; height: 2.6rem;
    fill: #fff; stroke: var(--mgs-gold-1); stroke-width: 1.4; stroke-linejoin: round;
    filter: drop-shadow(0 4px 6px rgb(0 0 0 / .35));
}
.mgs-tap__label {
    position: absolute; left: 50%; bottom: -.4rem; transform: translateX(-50%); width: max-content; max-width: 16rem;
    padding: .44rem 1rem .34rem; font-size: .72rem; font-weight: 600; letter-spacing: .1em; line-height: 1.25; text-align: center;
    color: var(--inv-deep); background: var(--mgs-foil); background-size: 220% 100%;
    box-shadow: 0 0 0 2px var(--inv-deep), 0 0 0 3px var(--mgs-line), 0 10px 18px -8px rgb(0 0 0 / .55);
}

/* ---------- 4. cover ---------- */
.mgs-cover {
    --frame-cover: 14.4rem;
    position: fixed; inset: 0; z-index: 30; overflow-x: hidden; overflow-y: auto;
    display: flex; flex-direction: column; align-items: center; justify-content: safe center;
    padding: 2.8rem 1.4rem 1.8rem; isolation: isolate; color: var(--inv-background);
    background:
        radial-gradient(55% 34% at 50% 34%, color-mix(in srgb, var(--inv-lamp) 30%, transparent), transparent 75%),
        radial-gradient(70% 40% at 50% 100%, color-mix(in srgb, var(--inv-primary) 55%, transparent), transparent 75%),
        var(--inv-deep);
    transition: opacity .9s ease;
}
/* the deco fan ground, very faint */
.mgs-cover::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .08; background: var(--inv-shine);
    -webkit-mask: var(--mgs-ground) center top / 32px 32px repeat; mask: var(--mgs-ground) center top / 32px 32px repeat;
}
/* the bookcases on both edges, dimmed toward the middle and at the top and bottom */
.mgs-cover__library {
    position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: .7;
    -webkit-mask: linear-gradient(90deg, #000, rgb(0 0 0 / .55) 18%, transparent 34%, transparent 66%, rgb(0 0 0 / .55) 82%, #000);
    mask: linear-gradient(90deg, #000, rgb(0 0 0 / .55) 18%, transparent 34%, transparent 66%, rgb(0 0 0 / .55) 82%, #000);
}
.mgs-cover__library::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, color-mix(in srgb, var(--inv-deep) 70%, transparent), transparent 22%, transparent 70%, var(--inv-deep));
}
.mgs-cover__shelf { position: absolute; top: 0; bottom: 0; width: 34%; height: 100%; filter: brightness(.82) saturate(1.05); }
.mgs-cover__shelf--left { left: -4%; }
.mgs-cover__shelf--right { right: -4%; }
/* gold dust drifting up in the lamp light (a living ground) */
.mgs-cover__dust {
    position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .8;
    background:
        radial-gradient(1.6px 1.6px at 14% 82%, var(--inv-shine), transparent),
        radial-gradient(1.2px 1.2px at 30% 60%, var(--inv-shine), transparent),
        radial-gradient(2px 2px at 74% 72%, var(--inv-shine), transparent),
        radial-gradient(1.3px 1.3px at 86% 38%, var(--inv-shine), transparent),
        radial-gradient(1.8px 1.8px at 10% 30%, var(--inv-shine), transparent),
        radial-gradient(1.2px 1.2px at 60% 16%, var(--inv-shine), transparent),
        radial-gradient(1.5px 1.5px at 44% 92%, var(--inv-shine), transparent);
    background-size: 100% 420px;
}
/* the banker's lamp in the lower left corner, glowing */
.mgs-cover__lamp { position: absolute; z-index: -1; left: .4rem; bottom: .3rem; width: 4.8rem; height: auto; }

.mgs-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); }

.mgs-cover__title {
    display: inline-flex; align-items: center; gap: .7rem; margin: 0 0 .7rem;
    font-size: .68rem; font-weight: 600; line-height: 1.3; letter-spacing: .34em; text-transform: uppercase; color: var(--inv-shine);
}
.mgs-cover__title::before, .mgs-cover__title::after { content: ''; width: 1.6rem; height: 1px; background: var(--inv-shine); opacity: .75; }

.mgs-cover__art { position: relative; width: var(--frame-cover); margin-bottom: .9rem; }
/* the warm lamp light breathing behind the arch */
.mgs-cover__art::before {
    content: ''; position: absolute; z-index: -1; left: -30%; right: -30%; top: 2%; bottom: -4%; border-radius: 50%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--inv-lamp) 40%, transparent), transparent);
}
.mgs-frame--cover { --frame-w: var(--frame-cover); --frame-pos: center 24%; }

.mgs-cover__names {
    margin: .5rem 0 0; max-width: 100%; font-family: var(--mgs-script); font-size: 3.3rem; font-weight: 400; line-height: 1.1;
    padding: 0 .2em .08em; word-spacing: .12em; text-wrap: balance; filter: drop-shadow(0 2px 6px rgb(0 0 0 / .4));
}
.mgs-cover__degree { margin: .15rem 0 0; font-size: .7rem; font-weight: 600; line-height: 1.4; letter-spacing: .22em; text-transform: uppercase; color: var(--inv-shine); text-wrap: balance; }
.mgs-cover__date { display: flex; align-items: center; gap: .7rem; margin: .6rem 0 0; }
.mgs-cover__date::before, .mgs-cover__date::after {
    content: ''; width: 2rem; height: 7px; flex: none;
    background: linear-gradient(var(--inv-accent), var(--inv-accent)) center / 100% 1px no-repeat;
}
.mgs-cover__date span { font-family: var(--mgs-serif); font-size: 1.04rem; font-style: italic; font-weight: 500; letter-spacing: .02em; color: #fff; }
.mgs-cover__quote {
    max-width: 30ch; margin: .45rem 0 0; font-family: var(--mgs-read); font-style: italic; font-weight: 500;
    font-size: 1.08rem; line-height: 1.32; color: var(--mgs-cream-muted);
}
.mgs-cover__guest {
    width: min(100%, 17rem); margin: .75rem 0 0; padding: .5rem 1rem .5rem;
    background: color-mix(in srgb, var(--inv-deep) 62%, transparent);
    box-shadow: inset 0 0 0 1px var(--mgs-line), inset 0 0 0 4px color-mix(in srgb, var(--inv-deep) 62%, transparent), inset 0 0 0 4.6px color-mix(in srgb, var(--inv-accent) 30%, transparent);
}
.mgs-cover__guest p { margin: 0; font-size: .58rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--inv-shine); }
.mgs-cover__guest-name { display: block; font-family: var(--mgs-serif); font-size: 1.2rem; font-weight: 500; line-height: 1.25; color: #fff; overflow-wrap: anywhere; text-wrap: balance; }
.mgs-cover__open {
    margin-top: .85rem; min-height: 2.9rem; padding: .7rem 1.9rem .6rem; border-radius: 2px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: .8rem;
    color: var(--inv-deep); background: var(--mgs-foil); background-size: 220% 100%;
    box-shadow: 0 0 0 3px var(--inv-deep), 0 0 0 4.2px var(--mgs-line), 0 14px 26px -12px rgb(0 0 0 / .7);
}

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

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

/* a paper plate in a double champagne rule (opening, letter, events, prayer, cards) */
.mgs-plate, .mgs-letter, .mgs-event, .mgs-party__theme-card, .mgs-next__card {
    position: relative; background: var(--mgs-paper);
    box-shadow: inset 0 0 0 1px var(--mgs-line), inset 0 0 0 6px var(--mgs-paper), inset 0 0 0 7px var(--mgs-line), var(--mgs-drop);
}

/* opening: the ex-libris plate */
.mgs-opening { padding: 5.2rem 1.3rem 4.4rem; }
.mgs-plate { max-width: 22.5rem; margin: 0 auto; padding: 3.4rem 1.6rem 3rem; border-radius: 3px; }
.mgs-plate__fan { position: absolute; left: 50%; top: -2.1rem; width: 6.6rem; margin-left: -3.3rem; filter: drop-shadow(0 4px 4px rgb(0 0 0 / .12)); }
.mgs-plate__corner, .mgs-letter__corner, .mgs-event__corner, .mgs-cohosts__corner { width: 2.5rem; height: 2.5rem; }
.mgs-plate__corner--tl, .mgs-letter__corner--tl, .mgs-event__corner--tl, .mgs-cohosts__corner--tl { left: 12px; top: 12px; }
.mgs-plate__corner--tr, .mgs-letter__corner--tr, .mgs-event__corner--tr, .mgs-cohosts__corner--tr { right: 12px; top: 12px; transform: scaleX(-1); }
.mgs-plate__corner--bl, .mgs-cohosts__corner--bl { left: 12px; bottom: 12px; transform: scaleY(-1); }
.mgs-plate__corner--br, .mgs-cohosts__corner--br { right: 12px; bottom: 12px; transform: scale(-1, -1); }
.mgs-plate__body { position: relative; }
.mgs-opening__basmalah { margin: 0 0 .6rem; font-size: 1.7rem; }
.mgs-opening__greeting { margin: 0 auto; max-width: 20ch; font-family: var(--mgs-serif); font-size: 1.36rem; font-weight: 500; font-style: italic; line-height: 1.35; color: var(--mgs-title); text-wrap: balance; }
.mgs-opening__divider { margin: 1rem auto; }
.mgs-opening__message { margin: 0 auto; max-width: 30ch; color: var(--mgs-muted); }
.mgs-opening__quote { margin: 1.5rem 0 0; padding: 1.2rem 0 0; border-top: 1px solid var(--mgs-line); }
.mgs-opening__quote p { margin: 0; font-family: var(--mgs-read); font-style: italic; font-size: 1.24rem; font-weight: 500; line-height: 1.45; color: var(--inv-text); }
.mgs-opening__quote cite,
.mgs-prayer__text cite {
    display: inline-block; margin-top: .9rem; padding: .3rem .9rem .2rem; font-style: normal; font-size: .64rem; font-weight: 600;
    letter-spacing: .2em; text-transform: uppercase; color: var(--mgs-gold-ink); box-shadow: inset 0 0 0 1px var(--mgs-line);
}

/* graduate: a card per graduate — the compare slider or the arch, the name and degree, major, predicate, the thesis book */
.mgs-graduate__list { display: grid; gap: 3.2rem; }
.mgs-graduate__card { max-width: 24rem; margin: 0 auto; }
.mgs-frame--graduate { --frame-w: min(13.6rem, 60vw); --frame-pos: center 22%; margin-top: 1rem; }
.mgs-graduate__name { margin: 1.7rem auto 0; max-width: 20ch; font-family: var(--mgs-serif); font-size: 1.8rem; font-weight: 600; line-height: 1.16; color: var(--mgs-title); text-wrap: balance; }
.mgs-graduate__degree { font-weight: 500; color: var(--mgs-gold-ink); }
.mgs-graduate__nickname { margin: .1rem auto 0 !important; font-family: var(--mgs-script); font-size: 2.3rem; line-height: 1.1; word-spacing: .12em; color: color-mix(in srgb, var(--inv-accent) 50%, #1e1002); }
.mgs-graduate__major { margin: .5rem auto 0 !important; font-size: .68rem; font-weight: 600; letter-spacing: .24em; line-height: 1.5; text-transform: uppercase; color: var(--mgs-gold-ink); text-wrap: balance; }
.mgs-graduate__badge {
    display: inline-flex; align-items: center; gap: .35rem; max-width: 100%; margin: 1rem auto 0 !important; padding: .46rem 1rem .4rem;
    font-family: var(--mgs-serif); font-size: 1rem; font-style: italic; font-weight: 600; line-height: 1.3; color: var(--inv-deep);
    background: var(--mgs-foil); background-size: 220% 100%; box-shadow: 0 0 0 3px var(--mgs-paper), 0 0 0 4px var(--mgs-line), 0 12px 22px -12px color-mix(in srgb, var(--inv-deep) 60%, transparent);
}
.mgs-graduate__sprig { width: 1.1rem; height: auto; flex: none; overflow: visible; transform: rotate(-30deg); }
.mgs-graduate__sprig--right { transform: scaleX(-1) rotate(-30deg); }
.mgs-graduate__sprig use { filter: brightness(.55); }
.mgs-graduate__parents { margin: 1.3rem auto 0 !important; font-size: .9rem; color: var(--mgs-muted); }
.mgs-graduate__parents span { display: block; font-size: .8rem; }
.mgs-graduate__parents strong { display: block; font-family: var(--mgs-serif); font-size: 1.12rem; font-weight: 600; color: var(--inv-text); }

/* the thesis: a leather-bound book with gold tooling and a gilt title, pages showing on the right */
.mgs-book { position: relative; width: min(100%, 19.5rem); margin: 1.6rem auto 0; }
.mgs-book__cover {
    position: relative; padding: 1.5rem 1.4rem 1.3rem 2.2rem; border-radius: 3px 8px 8px 3px; text-align: center;
    background:
        radial-gradient(90% 70% at 30% 20%, color-mix(in srgb, #fff 14%, transparent), transparent 70%),
        linear-gradient(135deg, var(--mgs-leaf-2), var(--mgs-leaf-1));
    box-shadow: 3px 3px 0 0 var(--mgs-paper), 4px 4px 0 0 var(--mgs-line), 6px 6px 0 0 var(--mgs-paper), 7px 7px 0 0 var(--mgs-line), 0 22px 30px -16px rgb(0 0 0 / .55);
}
.mgs-book__cover::before, .mgs-book__cover::after { content: ''; position: absolute; pointer-events: none; }
.mgs-book__cover::before { inset: 8px 8px 8px 20px; border: 1.2px solid var(--mgs-gold-2); border-radius: 2px; }
.mgs-book__cover::after { inset: 12px 12px 12px 24px; border: .6px solid color-mix(in srgb, var(--mgs-gold-2) 70%, transparent); }
.mgs-book__spine {
    position: absolute; z-index: 1; left: 0; top: 0; bottom: 0; width: 14px; border-radius: 3px 0 0 3px;
    background:
        linear-gradient(180deg, transparent 12%, var(--mgs-gold-2) 12% 14%, transparent 14% 86%, var(--mgs-gold-2) 86% 88%, transparent 88%),
        linear-gradient(90deg, var(--mgs-leaf-1), color-mix(in srgb, var(--mgs-leaf-1) 70%, #000));
}
.mgs-book__fan { display: block; width: 3rem; height: auto; margin: 0 auto .4rem; overflow: visible; }
.mgs-book__label { display: block; font-size: .58rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--inv-shine); }
.mgs-book__title {
    position: relative; margin: .35rem 0 0; padding: 0 .1em .05em; font-family: var(--mgs-serif); font-size: 1.1rem; font-style: italic; font-weight: 500; line-height: 1.4; text-wrap: balance;
    background-image: linear-gradient(100deg, var(--mgs-gold-3), #fff8e4 30%, var(--mgs-gold-3) 55%, color-mix(in srgb, var(--mgs-gold-2) 60%, var(--mgs-gold-3)) 80%, var(--mgs-gold-3));
}
.mgs-book__diamond { display: block; width: .7rem; height: .7rem; margin: .6rem auto 0; fill: var(--mgs-gold-2); }

/* institution: "Ketuk daun salamnya" — the campus, the medallion in the wreath, the degree revealed */
.mgs-institution { padding-bottom: 4.8rem; }
.mgs-institution__eyebrow { margin: 0 0 .7rem !important; font-size: .64rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--inv-shine); }
.mgs-institution__logo { display: block; width: 4.4rem; height: 4.4rem; margin: 0 auto .8rem; object-fit: contain; padding: .5rem; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--inv-accent); }
.mgs-institution__name { margin: 0 auto; max-width: 18ch; font-family: var(--mgs-serif); font-size: 1.95rem; font-weight: 500; line-height: 1.16; color: #fff; text-wrap: balance; }
.mgs-institution__faculty { margin: .45rem auto 0 !important; font-family: var(--mgs-read); font-size: 1.2rem; font-style: italic; color: var(--mgs-cream-muted); }
.mgs-institution__facts { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; margin: .9rem auto 0 !important; }
.mgs-institution__facts span { padding: .3rem .8rem .2rem; font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--inv-shine); box-shadow: inset 0 0 0 1px var(--mgs-line); }

.mgs-medal {
    position: relative; display: block; width: min(17rem, 80vw); aspect-ratio: 1; margin: 1.4rem auto 0; padding: 0; border: 0; cursor: pointer;
    background: none; color: inherit; -webkit-tap-highlight-color: transparent;
}
.mgs-medal:focus-visible { outline: 2px solid var(--inv-shine); outline-offset: 4px; border-radius: 50%; }
.mgs-medal__glow { position: absolute; inset: -14%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--inv-lamp) 32%, transparent), transparent); transition: opacity 1s ease; }
.mgs-medal__disc {
    position: absolute; inset: 23%; display: grid; place-items: center; overflow: hidden; border-radius: 50%;
    background: radial-gradient(circle at 40% 30%, color-mix(in srgb, var(--inv-primary) 70%, #fff 6%), var(--inv-deep));
    box-shadow: 0 0 0 3px var(--mgs-gold-2), 0 0 0 7px var(--inv-deep), 0 0 0 8px var(--mgs-line), 0 18px 30px -12px rgb(0 0 0 / .7);
}
.mgs-medal__disc img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.mgs-medal__initials { font-family: var(--mgs-serif); font-size: 2.4rem; font-weight: 500; letter-spacing: .06em; color: var(--inv-shine); white-space: nowrap; }
.mgs-medal__wreath { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 3px 4px rgb(0 0 0 / .45)); }
.mgs-medal__glint {
    position: absolute; inset: 2%; z-index: 2; border-radius: 50%; pointer-events: none; opacity: 0; mix-blend-mode: screen;
    background: linear-gradient(115deg, transparent 38%, color-mix(in srgb, #fff8e2 90%, transparent) 50%, transparent 62%) 120% 0 / 300% 100% no-repeat;
    -webkit-mask: radial-gradient(closest-side, transparent 58%, #000 64%, #000 96%, transparent); mask: radial-gradient(closest-side, transparent 58%, #000 64%, #000 96%, transparent);
}
/* armed (Alpine is running, not yet tapped): only the sprig at the knot; the stems faint */
.mgs-institution.is-armed .mgs-wreath__leaf:not([style="--i: 0"]) { opacity: 0; transform: scale(.15); }
.mgs-institution.is-armed .mgs-wreath__stem { opacity: .25; }
.mgs-institution.is-armed .mgs-medal__glow { opacity: .45; }
/* grown: every leaf in turn, the stems drawn, the glint (motion section) */
.mgs-institution.is-grown .mgs-wreath__leaf { transition: transform .55s cubic-bezier(.3, 1.5, .5, 1) calc(var(--i) * 115ms + 80ms), opacity .3s ease calc(var(--i) * 115ms + 80ms); }
.mgs-institution.is-grown .mgs-wreath__stem { transition: opacity 1s ease; }
.mgs-medal .mgs-tap__ring { left: 50%; top: 90%; width: 4.4rem; margin: -2.2rem 0 0 -2.2rem; }
.mgs-medal .mgs-tap__hand { left: 54%; top: 92%; }
.mgs-medal .mgs-tap__label { bottom: -3.1rem; }

.mgs-institution__done {
    max-width: 21rem; margin: 4rem auto 0; padding: 1.3rem 1.2rem 1.3rem;
    background: radial-gradient(90% 120% at 50% 0%, color-mix(in srgb, var(--inv-lamp) 18%, transparent), transparent 70%), color-mix(in srgb, var(--inv-deep) 60%, transparent);
    box-shadow: inset 0 0 0 1px var(--mgs-line), inset 0 0 0 5px color-mix(in srgb, var(--inv-deep) 60%, transparent), inset 0 0 0 5.6px color-mix(in srgb, var(--inv-accent) 30%, transparent);
}
/* the content of the panel (an inner box: the scroll reveal sets opacity and transform on the panel itself) */
.mgs-institution__reveal { transition: opacity .9s ease 1.3s, transform .9s cubic-bezier(.2, .8, .3, 1) 1.3s, filter .9s ease 1.3s; }
.mgs-institution.is-armed .mgs-institution__reveal { opacity: .1; transform: translateY(8px) scale(.97); filter: blur(2px); transition-delay: 0s; }
.mgs-institution__done-label { margin: 0; font-size: .6rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--inv-shine); }
.mgs-institution__degree + .mgs-institution__degree { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--mgs-line); }
.mgs-institution__degree p { margin: 0; }
.mgs-institution__degree-title {
    padding: 0 .1em .05em; font-family: var(--mgs-serif); font-size: 2.5rem; font-weight: 600; line-height: 1.15; letter-spacing: .03em; text-wrap: balance;
    background-image: linear-gradient(180deg, var(--mgs-gold-3), var(--mgs-gold-2) 55%, var(--mgs-gold-1)) !important; background-size: 100% 100% !important;
}
.mgs-institution__degree-name { font-size: .72rem; font-weight: 600; letter-spacing: .2em; line-height: 1.5; text-transform: uppercase; color: #fff; text-wrap: balance; }
.mgs-institution__predicate { margin-top: .3rem !important; font-family: var(--mgs-read); font-size: 1.3rem; font-style: italic; font-weight: 600; line-height: 1.3; color: var(--inv-shine); }
.mgs-institution__ceremony { margin: .9rem 0 0; font-size: .8rem; letter-spacing: .04em; color: var(--mgs-cream-muted); }

/* thanks: the letter */
.mgs-letter { max-width: 23rem; margin: 0 auto; padding: 2.6rem 1.5rem 1.8rem; border-radius: 3px; }
.mgs-letter__mark { display: block; width: 2.3rem; height: 1.8rem; margin: 0 auto .8rem; }
.mgs-letter__words { margin: 0; font-family: var(--mgs-read); font-size: 1.28rem; font-style: italic; font-weight: 500; line-height: 1.5; color: var(--inv-text); }
.mgs-letter__names { display: grid; gap: .4rem; margin: 1.3rem 0 0; padding: 1.1rem 0 0; list-style: none; border-top: 1px solid var(--mgs-line); }
.mgs-letter__names li { display: flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--mgs-serif); font-size: 1rem; font-weight: 500; line-height: 1.35; color: var(--mgs-title); text-wrap: balance; }
.mgs-letter__names li::before { content: ''; width: 7px; height: 7px; flex: none; background: var(--inv-accent); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.mgs-letter__signature { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 1.1rem; font-family: var(--mgs-script); font-style: normal; font-size: 2.3rem; line-height: 1.1; word-spacing: .12em; color: var(--mgs-title); }
.mgs-letter__nib { width: 1.3rem; height: 1.3rem; flex: none; transform: rotate(-35deg); }

/* next step: the bookmarked card */
.mgs-next__card { max-width: 22rem; margin: 0 auto; padding: 2.6rem 1.4rem 1.8rem; border-radius: 3px; }
.mgs-next__ribbon { position: absolute; right: 1.5rem; top: -.6rem; width: 1.5rem; height: 4rem; filter: drop-shadow(0 4px 4px rgb(0 0 0 / .25)); }
.mgs-next__ribbon-band { fill: var(--mgs-wine-2); }
.mgs-next__book { display: block; width: 3.8rem; height: auto; margin: 0 auto .6rem; }
.mgs-next__label { margin: 0; font-size: .6rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--mgs-gold-ink); }
.mgs-next__title { margin: .4rem auto 0; max-width: 18ch; font-family: var(--mgs-serif); font-size: 1.55rem; font-weight: 500; line-height: 1.25; color: var(--mgs-title); text-wrap: balance; }
.mgs-next__text { margin: .6rem auto 0; max-width: 30ch; font-family: var(--mgs-read); font-size: 1.12rem; font-style: italic; line-height: 1.45; color: var(--mgs-muted); }

/* events: ivory cards with a wide arched photo and a night date medallion */
.mgs-event { margin: 0 auto; max-width: 25rem; padding: .8rem .8rem 1.6rem; border-radius: 3px; text-align: left; }
.mgs-event + .mgs-event { margin-top: 2.6rem; }
.mgs-event__corner { z-index: 1; }
.mgs-event__media { position: relative; margin: .6rem .6rem 0; }
.mgs-event__photo {
    display: block; width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: center 30%;
    -webkit-mask: var(--mgs-arch-wide) center / 100% 100% no-repeat; mask: var(--mgs-arch-wide) center / 100% 100% no-repeat;
}
.mgs-event__top { display: flex; align-items: center; gap: .9rem; padding: 1.6rem 1rem 0; }
.mgs-event__media + .mgs-event__top { margin-top: -2.4rem; padding-top: 0; align-items: flex-end; }
.mgs-event__date {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; width: 4.6rem; height: 4.6rem; margin: 0;
    border-radius: 50%; color: #fff; background: radial-gradient(circle at 38% 30%, color-mix(in srgb, var(--inv-primary) 70%, #fff 8%), var(--inv-deep));
    box-shadow: 0 0 0 3px var(--mgs-paper), 0 0 0 4.5px var(--inv-accent), 0 12px 20px -10px color-mix(in srgb, var(--inv-deep) 70%, transparent);
    font-size: .54rem; font-weight: 600; letter-spacing: .14em; line-height: 1.25; text-transform: uppercase;
}
.mgs-event__date strong { font-family: var(--mgs-serif); font-size: 1.85rem; font-weight: 500; line-height: 1; letter-spacing: 0; }
.mgs-event__date span:first-child { color: var(--inv-shine); }
.mgs-event__head { min-width: 0; padding-bottom: .1rem; }
.mgs-event__media + .mgs-event__top .mgs-event__head { padding-top: 2.6rem; }
.mgs-event__name { margin: 0; font-family: var(--mgs-serif); font-size: 1.45rem; font-weight: 600; line-height: 1.18; color: var(--mgs-title); text-wrap: balance; }
.mgs-event__full { margin: .2rem 0 0; font-size: .8rem; color: var(--mgs-muted); }
.mgs-event__rows { display: grid; gap: .75rem; margin: 1.1rem 1rem 0; padding: 1rem 0 0; list-style: none; font-size: .9rem; border-top: 1px solid var(--mgs-line); }
.mgs-event__rows li { display: flex; align-items: flex-start; gap: .7rem; }
.mgs-event__rows .mgs-icon { width: 2rem; height: 2rem; padding: .42rem; border-radius: 50%; color: var(--mgs-gold-ink); box-shadow: inset 0 0 0 1px var(--mgs-line); }
.mgs-event__rows li > span { padding-top: .3rem; }
.mgs-event__venue { display: block; font-weight: 600; }
.mgs-event__address { display: block; font-size: .85rem; color: var(--mgs-muted); }
.mgs-event .inv-maps { margin: 1.2rem 1rem 0; text-align: center; }
.mgs-event .inv-maps .inv-button { width: 100%; font-weight: 600; }
.mgs-event .inv-maps__frame { height: 180px; border-radius: 4px; }

/* countdown: the lamp over the heading, tall arched night tiles */
.mgs-countdown { padding-top: 2.4rem; }
.mgs-countdown__lamp { width: 6rem; height: auto; margin: 0 auto -.2rem; }
.mgs-countdown .inv-countdown { gap: clamp(.4rem, 2.2vw, .75rem); }
.mgs-countdown .inv-countdown__item {
    display: grid; place-content: center; width: clamp(3.9rem, 18.5vw, 4.6rem); min-width: 0; height: 5.8rem; padding: .7rem 0 0; border-radius: 999px 999px 3px 3px;
    color: #fff; background: linear-gradient(180deg, color-mix(in srgb, var(--inv-primary) 55%, var(--inv-deep)), var(--inv-deep));
    box-shadow: inset 0 0 0 1px var(--inv-accent), inset 0 0 0 4px color-mix(in srgb, var(--inv-deep) 80%, transparent), inset 0 0 0 4.6px var(--mgs-line), 0 16px 26px -14px rgb(0 0 0 / .8);
}
.mgs-countdown .inv-countdown__value { font-variant-numeric: lining-nums tabular-nums; font-family: var(--mgs-serif); font-size: 1.8rem; font-weight: 500; line-height: 1; color: var(--inv-shine); }
.mgs-countdown .inv-countdown__label { margin-top: .25rem; font-size: .5rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mgs-cream-muted); }
.mgs-countdown .inv-countdown__done { font-family: var(--mgs-read); font-size: 1.4rem; font-style: italic; color: var(--inv-shine); }
.mgs-countdown .inv-countdown__actions { flex-direction: column; align-items: center; gap: .6rem; margin-top: 2rem; }
.mgs-countdown .inv-countdown__actions .inv-button {
    width: min(100%, 17rem); min-height: 2.75rem; padding: .6rem 1rem; border-radius: 2px; font-size: .78rem; font-weight: 600; letter-spacing: .08em;
    color: var(--inv-background); background: color-mix(in srgb, var(--inv-background) 8%, transparent);
    box-shadow: inset 0 0 0 1px var(--mgs-line);
}
.mgs-countdown .inv-countdown__actions .inv-button:first-child { color: var(--inv-deep); background: var(--mgs-foil); background-size: 220% 100%; box-shadow: none; }
.mgs-countdown .inv-cal {
    --inv-cal-bg: var(--mgs-paper); --inv-cal-mark: var(--inv-primary);
    max-width: 19rem; margin: 2.8rem auto 0; border-radius: 4px;
    box-shadow: inset 0 0 0 1px var(--mgs-line), inset 0 0 0 5px var(--mgs-paper), inset 0 0 0 6px var(--mgs-line), 0 22px 40px -24px rgb(0 0 0 / .7);
}
.mgs-countdown .inv-cal__month { font-family: var(--mgs-serif); font-size: 1.35rem; font-weight: 500; font-style: italic; color: var(--mgs-title); }

/* prayer: a tall arched paper panel with a fan on its apex */
.mgs-prayer { padding-top: 5.8rem; }
.mgs-prayer__panel {
    position: relative; max-width: 22rem; margin: 0 auto; padding: 3.6rem 1.5rem 2.8rem; border-radius: 50% 50% 3px 3px / 8rem 8rem 3px 3px;
    color: var(--inv-text); background: var(--mgs-paper);
    box-shadow: inset 0 0 0 1px var(--mgs-line), inset 0 0 0 6px var(--mgs-paper), inset 0 0 0 7px var(--mgs-line), var(--mgs-drop);
}
.mgs-prayer__fan { position: absolute; left: 50%; top: -2.3rem; width: 6.6rem; margin-left: -3.3rem; }
.mgs-prayer__eyebrow { margin: 0 0 .9rem; font-size: .62rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--mgs-gold-ink); }
.mgs-prayer__arabic { margin: 0 0 1rem; font-size: 1.5rem; text-wrap: balance; }
.mgs-prayer__text { margin: 0; }
.mgs-prayer__text p { margin: 0; font-family: var(--mgs-read); font-size: 1.2rem; font-style: italic; font-weight: 500; line-height: 1.5; }

/* rundown: a champagne thread strung with diamonds; times on night pills */
.mgs-rundown__list { position: relative; max-width: 24rem; margin: 0 auto; padding: 0; list-style: none; text-align: left; }
.mgs-rundown__list::before {
    content: ''; position: absolute; left: 2.4rem; top: .6rem; bottom: .6rem; width: 1px; transform-origin: top;
    background: linear-gradient(180deg, var(--inv-accent), color-mix(in srgb, var(--inv-accent) 35%, transparent));
}
.mgs-rundown__item { position: relative; display: grid; grid-template-columns: 4.8rem minmax(0, 1fr); align-items: start; column-gap: .8rem; padding: 0 0 1rem; }
.mgs-rundown__item:last-child { padding-bottom: 0; }
.mgs-rundown__time {
    position: relative; justify-self: center; margin-top: .5rem; padding: .3rem .6rem .2rem; font-size: .8rem; font-weight: 600; letter-spacing: .06em;
    font-variant-numeric: tabular-nums; color: var(--inv-shine); background: var(--inv-deep);
    box-shadow: 0 0 0 3px var(--inv-background), inset 0 0 0 1px var(--inv-accent);
}
.mgs-rundown__body { padding: .75rem 1rem .75rem; border-radius: 3px; background: var(--mgs-paper); box-shadow: inset 0 0 0 1px var(--mgs-line); }
.mgs-rundown__body h3 { margin: 0; font-family: var(--mgs-serif); font-size: 1.08rem; font-weight: 600; line-height: 1.32; color: var(--mgs-title); }
.mgs-rundown__body p { margin: .15rem 0 0; font-size: .85rem; color: var(--mgs-muted); }

/* party: the theme cartouche with a fan, the dinner jacket and its swatches, the note and the hashtag */
.mgs-party__label { display: block; font-size: .6rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--mgs-gold-ink); }
.mgs-party__theme-card { max-width: 19rem; margin: 2.4rem auto 0; padding: 2.2rem 1.6rem 1.6rem; border-radius: 3px; }
.mgs-party__fan { position: absolute; left: 50%; top: -1.8rem; width: 5.6rem; margin-left: -2.8rem; }
.mgs-party__theme { margin: .3rem 0 0; font-family: var(--mgs-script); font-size: 2.3rem; line-height: 1.15; word-spacing: .12em; color: var(--mgs-title); text-wrap: balance; }
.mgs-party__dress {
    display: grid; grid-template-columns: 5rem minmax(0, 1fr); align-items: center; gap: 1rem; max-width: 22rem; margin: 1.6rem auto 0;
    padding: 1.1rem 1.2rem; border-radius: 3px; text-align: left; background: var(--mgs-paper); box-shadow: inset 0 0 0 1px var(--mgs-line), var(--mgs-drop);
}
.mgs-party__tux { width: 5rem; height: auto; overflow: visible; filter: drop-shadow(0 8px 8px rgb(0 0 0 / .2)); }
.mgs-party__tux-body { fill: var(--mgs-pick, var(--inv-deep)); stroke: var(--mgs-gold-1); stroke-width: 1; transition: fill .4s ease; }
.mgs-party__tux-shirt { fill: #fbf8f0; }
.mgs-party__tux-lapel { fill: color-mix(in srgb, var(--mgs-pick, var(--inv-deep)) 75%, #fff); stroke: var(--mgs-gold-1); stroke-width: .6; transition: fill .4s ease; }
.mgs-party__tux-line { fill: none; stroke: color-mix(in srgb, #fff 35%, transparent); stroke-width: .8; }
.mgs-party__tux-tie { fill: #15110c; }
.mgs-party__dress-name { margin: .2rem 0 .6rem; font-family: var(--mgs-serif); font-size: 1.15rem; font-weight: 600; line-height: 1.25; color: var(--mgs-title); }
.mgs-swatches { display: flex; flex-wrap: wrap; gap: .5rem; }
.mgs-swatch {
    width: 2.1rem; height: 2.1rem; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: var(--mgs-swatch);
    box-shadow: 0 0 0 2px var(--mgs-paper), 0 0 0 3px var(--mgs-line); transition: transform .2s ease;
}
.mgs-swatch[aria-pressed=true] { transform: scale(1.12); box-shadow: 0 0 0 2px var(--mgs-paper), 0 0 0 4px var(--inv-accent); }
.mgs-party__hint { margin: .55rem 0 0 !important; font-size: .76rem; color: var(--mgs-muted); }
.mgs-party__hint--center { margin: .55rem auto 0 !important; text-align: center; }
.mgs-party__note { margin-top: 1.5rem !important; font-family: var(--mgs-read); font-size: 1.18rem; font-style: italic; line-height: 1.45; color: var(--inv-text); }
.mgs-party__hashtag {
    display: inline-flex; align-items: center; gap: .5rem; max-width: 100%; margin-top: .4rem; padding: .35rem .4rem .35rem .9rem; border-radius: 2px;
    background: var(--mgs-paper); box-shadow: inset 0 0 0 1px var(--mgs-line);
}
.mgs-party__hashtag .mgs-icon { color: var(--mgs-gold-ink); }
.mgs-party__hashtag-text { font-weight: 600; color: var(--mgs-title); overflow-wrap: anywhere; }
.mgs-party__copy {
    min-height: 2.2rem; padding: .35rem .9rem .25rem; border: 0; border-radius: 2px; cursor: pointer; font: 600 .74rem/1 var(--mgs-sans); letter-spacing: .1em; text-transform: uppercase;
    color: var(--inv-deep); background: var(--mgs-foil); background-size: 220% 100%;
}

/* wishlist */
.mgs-wishlist__intro { color: var(--mgs-muted); font-size: .92rem; }
.mgs-wishlist__list { display: grid; gap: .65rem; max-width: 24rem; margin: 1.3rem auto 0; padding: 0; list-style: none; text-align: left; }
.mgs-wishlist__item { display: grid; grid-template-columns: 2.8rem minmax(0, 1fr); align-items: start; gap: .9rem; padding: .9rem 1rem; border-radius: 3px; background: var(--mgs-paper); box-shadow: inset 0 0 0 1px var(--mgs-line); }
.mgs-wishlist__number {
    display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; font-family: var(--mgs-serif); font-size: 1.1rem; font-weight: 600;
    color: var(--inv-shine); background: radial-gradient(circle at 38% 30%, color-mix(in srgb, var(--inv-primary) 70%, #fff 8%), var(--inv-deep)); box-shadow: 0 0 0 2px var(--mgs-paper), 0 0 0 3.2px var(--inv-accent);
}
.mgs-wishlist__photo { display: block; width: 2.8rem; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 999px 999px 3px 3px; box-shadow: 0 0 0 1.5px var(--inv-accent); }
.mgs-wishlist__text p { margin: 0; }
.mgs-wishlist__name { padding-top: .1rem; font-family: var(--mgs-serif); font-size: 1.1rem; font-weight: 600; line-height: 1.3; color: var(--mgs-title); overflow-wrap: anywhere; }
.mgs-wishlist__note { margin-top: .1rem !important; font-size: .86rem; color: var(--mgs-muted); }
.mgs-wishlist__shop { display: inline-flex; align-items: center; gap: .35rem; min-height: 2.2rem; margin-top: .25rem; font-size: .8rem; font-weight: 600; text-decoration: none; }
.mgs-wishlist__shop .mgs-icon { width: 1rem; height: 1rem; }

/* story: the chapters of a book — arched photos beside the text, alternating; text-only chapters on a gilt spine */
.mgs-story__list { display: grid; gap: 2.4rem; margin: 0; padding: 0; list-style: none; text-align: left; }
.mgs-story__item { display: grid; grid-template-columns: 42% minmax(0, 1fr); align-items: center; gap: 1.2rem; }
.mgs-story__item--flip { grid-template-columns: minmax(0, 1fr) 42%; }
.mgs-story__item--flip .mgs-story__media { order: 2; }
.mgs-story__media { position: relative; filter: drop-shadow(0 0 0 transparent) drop-shadow(0 14px 18px color-mix(in srgb, var(--inv-deep) 32%, transparent)); }
.mgs-story__media::after {
    content: ''; position: absolute; inset: -5px; z-index: -1; background: var(--mgs-foil);
    -webkit-mask: var(--mgs-arch) center / 100% 100% no-repeat; mask: var(--mgs-arch) center / 100% 100% no-repeat;
}
.mgs-story__photo {
    display: block; width: 100%; aspect-ratio: 156 / 220; object-fit: cover; object-position: center 28%;
    -webkit-mask: var(--mgs-arch) center / 100% 100% no-repeat; mask: var(--mgs-arch) center / 100% 100% no-repeat;
}
.mgs-story__chapter { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .55rem; margin: 0; font-size: .62rem; font-weight: 600; letter-spacing: .24em; line-height: 1.4; text-transform: uppercase; color: var(--mgs-gold-ink); }
.mgs-story__when { display: inline-flex; align-items: center; gap: .55rem; }
.mgs-story__when::before { content: ''; width: 6px; height: 6px; background: var(--inv-accent); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.mgs-story__body h3 { margin: .45rem 0 0; font-family: var(--mgs-serif); font-size: 1.3rem; font-weight: 600; line-height: 1.2; color: var(--mgs-title); text-wrap: balance; }
.mgs-story__body p { margin: .35rem 0 0; font-size: .88rem; line-height: 1.6; color: var(--mgs-muted); }
.mgs-story__item--text {
    grid-template-columns: 3rem minmax(0, 1fr); align-items: start; gap: 1rem; padding: 1.2rem 1.2rem 1.2rem 1.5rem; border-radius: 3px;
    background: linear-gradient(90deg, var(--mgs-leaf-1) 0 7px, transparent 7px), var(--mgs-paper); box-shadow: inset 0 0 0 1px var(--mgs-line);
}
.mgs-story__numeral {
    display: grid; place-items: center; width: 3rem; height: 3rem; font-family: var(--mgs-serif); font-size: 1.2rem; font-weight: 600;
    color: var(--mgs-gold-ink); box-shadow: inset 0 0 0 1px var(--inv-accent), inset 0 0 0 4px var(--mgs-paper), inset 0 0 0 4.6px var(--mgs-line);
}

/* gallery: the first photo a tall arch over two rows, the others with a fine champagne rule */
.mgs-gallery .inv-gallery { gap: .6rem; }
.mgs-gallery .inv-gallery__item { border-radius: 3px; box-shadow: 0 0 0 1px var(--mgs-line), 0 16px 28px -18px rgb(0 0 0 / .8); }
.mgs-gallery .inv-gallery__item:first-child {
    grid-row: span 2; aspect-ratio: auto; border-radius: 0; box-shadow: none;
    -webkit-mask: var(--mgs-arch) center / 100% 100% no-repeat; mask: var(--mgs-arch) center / 100% 100% no-repeat;
}

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

/* RSVP card: ivory with a frieze of small gold fans along the top */
.mgs-rsvp__card {
    position: relative; overflow: hidden; max-width: 25rem; margin: 0 auto; padding: 2.4rem 1.15rem 1.4rem; border-radius: 3px; color: var(--inv-text); background: var(--mgs-paper);
    box-shadow: inset 0 0 0 1px var(--mgs-line), 0 22px 40px -24px rgb(0 0 0 / .7);
}
.mgs-rsvp__card::before {
    content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 13px; background: var(--mgs-foil);
    -webkit-mask: var(--mgs-fan-mask) 0 0 / 25px 13px repeat-x; mask: var(--mgs-fan-mask) 0 0 / 25px 13px repeat-x;
}
.mgs-rsvp__intro { margin: 0 auto 1.1rem; max-width: 30ch; font-size: .9rem; color: var(--mgs-muted); }
.mgs-rsvp__sent { margin-bottom: 1rem; }
.mgs-rsvp__check { display: block; width: 4.25rem; height: 4.25rem; margin: 0 auto .5rem; }
.mgs-rsvp__check circle { fill: var(--inv-primary); }
.mgs-rsvp__check path { fill: none; stroke: #fff; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
html.inv-anim .mgs-rsvp__sent .mgs-rsvp__check { animation: mgs-bounce .8s cubic-bezier(.34, 1.56, .64, 1) both; }
html.inv-anim .mgs-rsvp__sent .mgs-rsvp__check path { animation: mgs-draw .45s ease-out .35s both; }
.mgs-rsvp__thanks { margin: 0; font-family: var(--mgs-script); font-size: 2.3rem; line-height: 1.1; color: var(--mgs-title); }
.mgs-rsvp__line { margin: .1rem 0 0; font-size: .9rem; color: var(--mgs-muted); }
.mgs-rsvp .inv-rsvp__deadline { margin: 0 0 1rem; font-size: .84rem; font-weight: 600; color: var(--mgs-title); }

/* gift: ivory cards with a champagne foil band and a stepped edge, two per row (odd last across) */
.mgs-gift__intro { color: var(--mgs-cream-muted) !important; }
.mgs-gift .inv-gift__accounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: 1.3rem; }
.mgs-gift .inv-gift__account:last-child:nth-child(odd) { grid-column: 1 / -1; }
.mgs-gift .inv-gift__account,
.mgs-gift .inv-gift__address {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: .3rem; min-width: 0; margin: 0; overflow: hidden;
    padding: 1.9rem .75rem 1rem; border-radius: 3px; color: var(--inv-text); background: var(--mgs-paper);
    box-shadow: inset 0 0 0 1px var(--mgs-line), 0 18px 30px -20px rgb(0 0 0 / .7);
}
.mgs-gift .inv-gift__account::before {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1rem; background: var(--mgs-foil); background-size: 220% 100%;
    clip-path: polygon(0 0, 100% 0, 100% 50%, 70% 50%, 70% 100%, 30% 100%, 30% 50%, 0 50%);
}
.mgs-gift .inv-gift__account p, .mgs-gift .inv-gift__address p { margin: 0; }
.mgs-gift .inv-gift__bank { font-weight: 600; font-size: .85rem; color: var(--mgs-title); }
.mgs-gift .inv-gift__logo { height: 1.6rem; padding: .2rem .5rem; border-radius: .3rem; background: #fff; }
.mgs-gift .inv-gift__logo img { max-width: 5rem; }
.mgs-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); }
.mgs-gift .inv-gift__holder { font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mgs-muted); overflow-wrap: anywhere; }
.mgs-gift .inv-button { margin-top: .35rem; min-height: 2.25rem; padding: .35rem .9rem; border-radius: 2px; font-size: .74rem; font-weight: 600; }
.mgs-gift .inv-gift__address { margin-top: .75rem; padding-top: 1.1rem; font-size: .875rem; }
.mgs-gift .inv-gift__address .inv-gift__holder { font-size: .72rem; }

/* co-hosts: an art-deco night panel with a small wreath, names split by diamonds; gilded spines along the foot */
.mgs-cohosts { padding-bottom: .6rem; }
.mgs-cohosts__panel {
    position: relative; max-width: 22rem; margin: 0 auto; padding: 5rem 1.5rem 2.2rem;
    background: radial-gradient(80% 60% at 50% 0%, color-mix(in srgb, var(--inv-lamp) 14%, transparent), transparent 70%), color-mix(in srgb, var(--inv-deep) 70%, var(--inv-primary));
    box-shadow: inset 0 0 0 1px var(--mgs-line), inset 0 0 0 6px color-mix(in srgb, var(--inv-deep) 70%, var(--inv-primary)), inset 0 0 0 7px color-mix(in srgb, var(--inv-accent) 40%, transparent), 0 26px 40px -24px rgb(0 0 0 / .8);
}
.mgs-cohosts__wreath { position: absolute; left: 50%; top: .9rem; width: 4rem; height: 4rem; margin-left: -2rem; }
.mgs-cohosts__list { display: flex; flex-direction: column; align-items: center; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.mgs-cohosts__list li { max-width: 24ch; font-family: var(--mgs-serif); font-size: 1.14rem; font-weight: 500; line-height: 1.35; color: #fff; text-wrap: balance; }
.mgs-cohosts__list li + li::before {
    content: ''; display: block; width: 7px; height: 7px; margin: 0 auto .6rem; background: var(--inv-shine);
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.mgs-cohosts__shelf {
    width: calc(100% + 2.8rem); height: 4.2rem; margin: 2.6rem -1.4rem 0; opacity: .8;
    -webkit-mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

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

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

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

/* closing: compact — the photo melting into the night, a crest of fan and laurels, thanks and the name (above the menu) */
.mgs-closing { padding: 2.6rem 1.6rem 5.8rem; }
.mgs-closing--photo { padding-top: 0; }
.mgs-closing__photo {
    position: relative; z-index: -1; height: min(22rem, calc(var(--inv-screen, 100svh) * .48)); margin: 0 -1.6rem; overflow: hidden;
    -webkit-mask: linear-gradient(180deg, #000 55%, transparent); mask: linear-gradient(180deg, #000 55%, transparent);
}
.mgs-closing__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.mgs-closing__shelf {
    width: calc(100% + 3.2rem); height: 4.4rem; margin: -2.6rem -1.6rem 1.6rem; opacity: .75;
    -webkit-mask: linear-gradient(180deg, #000 40%, transparent); mask: linear-gradient(180deg, #000 40%, transparent);
}
.mgs-closing__body { position: relative; }
.mgs-closing--photo .mgs-closing__body { margin-top: -4.4rem; }
.mgs-closing__crest { display: flex; justify-content: center; align-items: flex-end; gap: .4rem; margin: 0 auto .6rem; }
.mgs-closing__fan { width: 4.6rem; height: auto; filter: drop-shadow(0 4px 6px rgb(0 0 0 / .4)); }
.mgs-closing__sprig { width: 1.8rem; height: auto; overflow: visible; transform: rotate(-30deg); }
.mgs-closing__sprig--right { transform: scaleX(-1) rotate(-30deg); }
.mgs-closing__title { margin: 0 0 .6rem; font-family: var(--mgs-serif); font-size: 2.1rem; font-weight: 500; line-height: 1.1; color: #fff; }
.mgs-closing__title em { font-family: var(--mgs-script); font-style: normal; font-weight: 400; font-size: 1.3em; color: var(--inv-shine); }
.mgs-closing__message { margin: 0 auto; max-width: 32ch; font-size: .9rem; line-height: 1.6; color: var(--mgs-cream-muted); }
.mgs-closing__salam { margin: .7rem auto 0; max-width: 28ch; font-family: var(--mgs-read); font-size: 1.12rem; font-style: italic; font-weight: 500; line-height: 1.35; color: var(--inv-shine); }
.mgs-closing__signature { margin: .45rem auto 0; max-width: 30ch; font-size: .8rem; letter-spacing: .08em; color: var(--mgs-cream-muted); }
.mgs-closing__names { margin: .5rem auto 0; max-width: 16ch; font-family: var(--mgs-script); font-size: 3rem; word-spacing: .12em; line-height: 1.12; padding: 0 .15em .08em; text-wrap: balance; }

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

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

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

/* ---------- 7. shared components ---------- */
.mgs-main .inv-button { font-weight: 600; }
body .inv-nav {
    --inv-nav-bg: color-mix(in srgb, var(--inv-deep) 94%, transparent);
    --inv-nav-text: color-mix(in srgb, var(--inv-background) 72%, transparent);
    --inv-nav-active: var(--inv-shine);
    font-family: var(--mgs-sans);
}

/* ---------- 8. screen sizes ---------- */
/* the cover in px steps per screen height (never svh: Chrome on iPhone sizes it to the whole screen) */
@media (max-height: 800px) {
    .mgs-cover { --frame-cover: 13rem; }
    .mgs-cover__names { font-size: 3rem; }
}
@media (max-height: 740px) {
    .mgs-cover { --frame-cover: 11.6rem; padding-top: 2.5rem; padding-bottom: 1.3rem; }
    .mgs-cover__title { margin-bottom: .55rem; }
    .mgs-cover__art { margin-bottom: .75rem; }
    .mgs-cover__names { font-size: 2.75rem; margin-top: .35rem; }
    .mgs-cover__quote { font-size: 1rem; margin-top: .35rem; }
    .mgs-cover__guest { margin-top: .55rem; }
    .mgs-cover__open { margin-top: .65rem; }
    .mgs-cover__lamp { width: 4.2rem; }
}
@media (max-height: 680px) {
    .mgs-cover { --frame-cover: 10.2rem; padding-top: 2.3rem; padding-bottom: 1.1rem; }
    .mgs-cover__title { font-size: .62rem; margin-bottom: .45rem; }
    .mgs-cover__names { font-size: 2.45rem; }
    .mgs-cover__degree { font-size: .64rem; }
    .mgs-cover__date { margin-top: .45rem; }
    .mgs-cover__date span { font-size: .96rem; }
    .mgs-cover__quote { font-size: .94rem; line-height: 1.28; }
    .mgs-cover__guest { padding: .38rem .85rem .4rem; }
    .mgs-cover__guest-name { font-size: 1.08rem; }
    .mgs-cover__open { min-height: 2.7rem; padding: .6rem 1.6rem .5rem; }
    .mgs-cover__lamp { width: 3.6rem; }
}
@media (max-height: 620px) {
    .mgs-cover { --frame-cover: 9rem; }
    .mgs-cover__names { font-size: 2.2rem; }
    .mgs-cover__quote { font-size: .88rem; }
}
@media (max-width: 360px) {
    .mgs-cover__names { font-size: 2.6rem; }
}

/* wide screens: the phone-width column on a night backdrop with the fan print */
@media (min-width: 560px) {
    body.mgs-body {
        background: radial-gradient(70vw 60vh at 50% 0%, color-mix(in srgb, var(--inv-lamp) 18%, transparent), transparent 70%), var(--inv-deep);
        background-attachment: fixed;
    }
    body.mgs-body::before {
        content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .1; background: var(--inv-accent);
        -webkit-mask: var(--mgs-ground) center / 32px 32px repeat; mask: var(--mgs-ground) center / 32px 32px repeat;
    }
    .mgs-main { box-shadow: 0 30px 60px -30px rgb(0 0 0 / .7); }
}

/* ---------- 9. motion ---------- */
@keyframes mgs-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes mgs-bounce { 0% { transform: scale(0); } 55% { transform: scale(1.15); } 75% { transform: scale(.94); } 100% { transform: scale(1); } }
@keyframes mgs-rise { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes mgs-zoom-out { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes mgs-kenburns { 0%, 100% { transform: scale(1) translate(0, 0); } 50% { transform: scale(1.06) translate(0, -1.5%); } }
@keyframes mgs-shine { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
@keyframes mgs-breathe { 0%, 100% { opacity: .6; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes mgs-motes { from { background-position: 0 0; } to { background-position: 0 -420px; } }
@keyframes mgs-light-on { 0% { opacity: 0; } 20% { opacity: .9; } 32% { opacity: .15; } 48% { opacity: 1; } 60% { opacity: .5; } 100% { opacity: 1; } }
@keyframes mgs-flicker { 0%, 100% { opacity: 1; } 47% { opacity: 1; } 50% { opacity: .82; } 53% { opacity: 1; } }
@keyframes mgs-rays { from { opacity: 0; transform: scale(.92); } to { opacity: .8; transform: none; } }
@keyframes mgs-ping { 0% { opacity: .9; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.9); } }
@keyframes mgs-tap { 0%, 100% { transform: translate(0, 0) scale(1); } 45% { transform: translate(-3px, -5px) scale(.92); } }
@keyframes mgs-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes mgs-sway-x { 0%, 100% { left: 50%; } 30% { left: 38%; } 70% { left: 62%; } }
@keyframes mgs-sway-clip { 0%, 100% { clip-path: inset(0 50% 0 0); } 30% { clip-path: inset(0 62% 0 0); } 70% { clip-path: inset(0 38% 0 0); } }
@keyframes mgs-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes mgs-glint { 0% { opacity: 0; background-position: 120% 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; background-position: -20% 0; } }
@keyframes mgs-sprig-wave { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@keyframes mgs-twinkle { 0%, 100% { transform: scale(.8) rotate(0deg); opacity: .8; } 50% { transform: scale(1.15) rotate(45deg); opacity: 1; } }

/* champagne foil: a slow moving shine */
html.inv-anim :is(.mgs-heading__title em, .mgs-cover__names, .mgs-closing__names, .mgs-cover__open, .mgs-tap__label, .mgs-graduate__badge, .mgs-book__title) { animation: mgs-shine 7s ease-in-out infinite; }

/* cover (≤ 2.5 s, once): the arch rises, its photo settles, the rays light up, the lamp switches on with a flicker;
   then a living ground: the light behind the arch breathes, the photo drifts (Ken Burns), gold dust drifts up */
html.inv-anim .mgs-frame--cover { animation: mgs-rise .9s cubic-bezier(.2, .7, .2, 1) .1s both; }
html.inv-anim .mgs-frame--cover .mgs-frame__photo { animation: mgs-zoom-out 1.4s cubic-bezier(.2, .7, .2, 1) .1s both, mgs-kenburns 16s ease-in-out 1.6s infinite; }
html.inv-anim .mgs-frame--cover .mgs-frame__rays { transform-origin: 50% 40%; animation: mgs-rays 1.2s ease .6s both; }
html.inv-anim .mgs-cover__lamp .mgs-lamp__light { animation: mgs-light-on 1.6s linear .5s both, mgs-flicker 6s ease-in-out 3s infinite; }
html.inv-anim .mgs-cover__art::before { animation: mgs-breathe 5s ease-in-out infinite; }
html.inv-anim .mgs-cover__dust { animation: mgs-motes 24s linear infinite; }

/* Ketuk daun salamnya: the sprig at the knot pulses while it waits; the grown wreath glints once */
html.inv-anim .mgs-institution.is-armed .mgs-wreath__leaf[style="--i: 0"] { animation: mgs-sprig-wave 1.8s ease-in-out infinite; }
html.inv-anim .mgs-institution.is-armed .mgs-medal__disc { animation: mgs-float 4s ease-in-out infinite; }
html.inv-anim .mgs-institution.is-grown .mgs-medal__glint { animation: mgs-glint 1.3s ease-in-out 1.15s both; }

/* the compare handle sways until touched */
html.inv-anim .mgs-compare:not(.is-touched) .mgs-compare__handle { animation: mgs-sway-x 3.6s ease-in-out 1s infinite; }
html.inv-anim .mgs-compare:not(.is-touched) .mgs-compare__then { animation: mgs-sway-clip 3.6s ease-in-out 1s infinite; }

/* the tap marker: rings ping outward, the hand taps */
html.inv-anim .mgs-tap__ring { animation: mgs-ping 1.8s ease-out infinite; }
html.inv-anim .mgs-tap__ring--late { animation-delay: .9s; }
html.inv-anim .mgs-tap__hand { animation: mgs-tap 1.2s ease-in-out infinite; }
html:not(.inv-anim) .mgs-tap__ring { opacity: .6; }

/* the countdown lamp glows softly */
html.inv-anim .mgs-countdown__lamp .mgs-lamp__light { animation: mgs-flicker 7s ease-in-out infinite; }

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

@media (prefers-reduced-motion: reduce) {
    .mgs-cover, .mgs-cover--leave, .mgs-cover__inner, .mgs-institution__reveal, .mgs-wreath__leaf, .mgs-wreath__stem { transition: none !important; }
}

/* ---------- 10. intro scene "Lampu Perpustakaan" (scene.json + sections/_scene) ----------
   The intro is teleported to <body>: everything here stands on its own classes. */
.mgs-scene-wall { position: absolute; inset: 0; }
.mgs-scene-wall__shelf { width: 100%; height: 100%; }
.mgs-scene-wall { filter: brightness(.36) saturate(.75); }
/* the lit wall: the same shelf, brighter, only where the lamp light falls */
.mgs-scene-wall--lit {
    filter: brightness(1.05) saturate(1.15) sepia(.12);
    -webkit-mask: radial-gradient(100% 72% at 20% 90%, #000 14%, rgb(0 0 0 / .5) 42%, transparent 74%); mask: radial-gradient(100% 72% at 20% 90%, #000 14%, rgb(0 0 0 / .5) 42%, transparent 74%);
}
/* the gilt alone, glowing */
.mgs-scene-wall--gilt {
    filter: brightness(1.35) drop-shadow(0 0 2px color-mix(in srgb, var(--inv-lamp) 80%, transparent));
    -webkit-mask: radial-gradient(120% 85% at 20% 90%, #000 25%, rgb(0 0 0 / .45) 55%, transparent 85%); mask: radial-gradient(120% 85% at 20% 90%, #000 25%, rgb(0 0 0 / .45) 55%, transparent 85%);
}
.mgs-scene-wall--gilt { --mgs-books: 0; --mgs-gilt: var(--mgs-gold-3); --mgs-gilt-label: var(--mgs-gold-2); }
.mgs-scene-light { position: absolute; inset: 0; background: radial-gradient(70% 50% at 22% 86%, color-mix(in srgb, var(--inv-lamp) 50%, transparent), color-mix(in srgb, var(--inv-lamp) 16%, transparent) 50%, transparent 78%); }
.inv-scene__layer:has(.mgs-scene-light), .inv-scene__layer:has(.mgs-scene-sheen) { mix-blend-mode: screen; }
.mgs-scene-sheen { position: absolute; inset: 0; background: linear-gradient(102deg, transparent 40%, color-mix(in srgb, var(--inv-shine) 30%, transparent) 50%, transparent 60%); }
.mgs-scene-desk {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, var(--mgs-wood-2), var(--mgs-wood-1) 40%, color-mix(in srgb, var(--mgs-wood-1) 60%, #000));
    box-shadow: inset 0 2px 0 var(--mgs-gold-2), 0 -10px 30px rgb(0 0 0 / .5);
}
.mgs-scene-lamp { position: absolute; inset: 0; }
.mgs-scene-lamp .mgs-lamp { width: 100%; height: 100%; }
/* the medallion, the branches and the glint share the box and the size */
.mgs-scene-box { position: absolute; inset: 0; container-type: size; display: grid; place-items: center; }
.mgs-scene-ring { position: relative; width: min(100cqw, 100cqh); aspect-ratio: 1; }
.mgs-scene-ring__disc {
    position: absolute; inset: 23%; display: grid; place-items: center; border-radius: 50%;
    background: radial-gradient(circle at 40% 30%, color-mix(in srgb, var(--inv-primary) 70%, #fff 6%), var(--inv-deep)) center 22% / cover no-repeat;
    box-shadow: 0 0 0 3px var(--mgs-gold-2), 0 0 0 7px var(--inv-deep), 0 0 0 8px var(--mgs-line), 0 0 50px color-mix(in srgb, var(--inv-lamp) 35%, transparent);
    font-family: var(--mgs-serif); font-size: 2.6rem; color: var(--inv-shine);
}
.mgs-scene-ring__disc[style] { background-size: cover; background-position: center 22%; }
.mgs-scene-ring__wreath { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 3px 5px rgb(0 0 0 / .5)); }
.mgs-scene-ring__spark { position: absolute; left: 50%; top: 2%; width: 13%; height: auto; margin-left: -6.5%; overflow: visible; filter: drop-shadow(0 0 6px var(--inv-shine)); }
html.inv-anim .mgs-scene-ring__spark { animation: mgs-twinkle 1.6s ease-in-out infinite; }
/* the name card: ivory paper in a double champagne rule with a gold fan on its top edge */
body.mgs-body .inv-intro--scene .inv-scene__card {
    top: 64%;
    -webkit-mask: none; mask: none; -webkit-backdrop-filter: none; backdrop-filter: none; aspect-ratio: auto; overflow: visible;
    padding: 1.9rem 1.3rem 1.3rem; border-radius: 3px;
    background: var(--mgs-paper);
    box-shadow: inset 0 0 0 1px var(--mgs-line), inset 0 0 0 5px var(--mgs-paper), inset 0 0 0 6px var(--mgs-line), 0 24px 40px -14px rgb(0 0 0 / .7);
}
body.mgs-body .inv-intro--scene .inv-scene__card::before {
    content: ''; position: absolute; left: 50%; top: -1.3rem; width: 4.6rem; height: 2.4rem; margin-left: -2.3rem; background: var(--mgs-foil);
    -webkit-mask: var(--mgs-fan-mask) center / contain no-repeat; mask: var(--mgs-fan-mask) center / contain no-repeat;
}
body.mgs-body .inv-scene__card .inv-intro__label { font-family: var(--mgs-sans); font-size: .6rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--mgs-gold-ink); }
body.mgs-body .inv-scene__card .inv-intro__names { font-size: clamp(2.4rem, 11vw, 3.2rem); color: var(--mgs-title); line-height: 1.12; word-spacing: .12em; text-wrap: balance; }
body.mgs-body .inv-scene__card .inv-intro__rule { height: 1px; width: 3rem; background: var(--inv-accent); }
body.mgs-body .inv-scene__card .inv-intro__date { font-family: var(--mgs-serif); font-style: italic; font-weight: 500; font-size: .95rem; color: var(--mgs-muted); }
