/*
 * Template "Emas Abadi" (Anniversary Pernikahan) — a regal, warm golden anniversary: rich gold leaf on black velvet
 * and deep emerald, with ivory and garnet roses. Signature pieces: the baroque gilded frame (sections/_frame), the
 * years in a baroque cartouche (sections/_cartouche), the gold damask print, gilded roses (sections/_roses), flakes of
 * gold leaf (sections/_flakes), "Kotak kenangan" (sections/_jewelbox) and "Dulu & Sekarang" (sections/_compare).
 *
 * Colours come from the chosen colour variant (template.json → <x-inv.head>): --inv-primary (the coloured velvet:
 * emerald / garnet / sapphire / amethyst), --inv-accent (gold leaf), --inv-background (ivory paper), --inv-text,
 * --inv-deep (black velvet), --inv-shine (light gold on dark), --inv-soft (a gold-cream tint), --inv-petal (garnet
 * roses), --inv-leaf, --inv-ivory (ivory roses).
 *
 * Section tones: .emas-abadi-tone--ivory (ivory paper, gold damask), --emerald (the coloured velvet), --velvet (black).
 * Revision standard (docs/template-guide.md section 10): the cover in px steps per screen height, never svh;
 * ornaments clear of faces; photos melt into sections with masks; a compact closing above the bottom menu.
 */

/* ---------- 1. base ---------- */
:root {
    /* defaults = the "Zamrud Beludru" variant (the variant's colours override these) */
    --inv-primary: #0b6b4c;
    --inv-accent: #d6a53a;
    --inv-background: #fbf3dc;
    --inv-text: #24180a;
    --inv-deep: #0c0a07;
    --inv-shine: #ffdc85;
    --inv-soft: #f3e2b4;
    --inv-petal: #a3122f;
    --inv-leaf: #1f6b45;
    --inv-ivory: #fbefd6;
    --inv-radius: 14px;

    --emas-abadi-serif: var(--inv-font-heading, 'Playfair Display'), Georgia, 'Times New Roman', serif;
    --emas-abadi-script: var(--inv-font-display, 'Pinyon Script'), 'Brush Script MT', cursive;
    --emas-abadi-engraved: 'Cinzel', var(--emas-abadi-serif);
    --emas-abadi-italic: 'Cormorant Garamond', Georgia, serif;
    --emas-abadi-sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --emas-abadi-col: 460px;

    /* gold leaf, mixed from the accent: dark bronze → gold → pale light */
    --emas-abadi-gold-1: color-mix(in srgb, var(--inv-accent) 52%, #2e1a02);
    --emas-abadi-gold-2: var(--inv-accent);
    --emas-abadi-gold-3: color-mix(in srgb, var(--inv-accent) 34%, #fff6d0);
    --emas-abadi-gold-ink: color-mix(in srgb, var(--inv-accent) 62%, #3a2203);
    --emas-abadi-foil: linear-gradient(100deg, var(--emas-abadi-gold-1), var(--emas-abadi-gold-2) 28%, var(--emas-abadi-gold-3) 46%, var(--emas-abadi-gold-2) 60%, var(--emas-abadi-gold-1) 82%, var(--emas-abadi-gold-2));
    --emas-abadi-foil-v: linear-gradient(180deg, var(--emas-abadi-gold-3), var(--emas-abadi-gold-2) 40%, var(--emas-abadi-gold-1) 80%, var(--emas-abadi-gold-2));

    /* the velvets */
    --emas-abadi-velvet: var(--inv-deep);
    --emas-abadi-emerald: color-mix(in srgb, var(--inv-primary) 74%, #000);
    --emas-abadi-emerald-hi: color-mix(in srgb, var(--inv-primary) 88%, #fff);

    /* the roses: garnet and ivory */
    --emas-abadi-garnet-1: color-mix(in srgb, var(--inv-petal) 58%, #22000c);
    --emas-abadi-garnet-2: var(--inv-petal);
    --emas-abadi-garnet-3: color-mix(in srgb, var(--inv-petal) 50%, #ffd6de);
    --emas-abadi-garnet-line: color-mix(in srgb, var(--inv-petal) 45%, #2a000e);
    --emas-abadi-ivory-1: color-mix(in srgb, var(--inv-ivory) 64%, #b98e4c);
    --emas-abadi-ivory-2: var(--inv-ivory);
    --emas-abadi-ivory-3: #fffdf6;
    --emas-abadi-ivory-line: color-mix(in srgb, var(--inv-ivory) 45%, #8a6326);

    --emas-abadi-paper: color-mix(in srgb, #fff 55%, var(--inv-background));
    --emas-abadi-title: color-mix(in srgb, var(--inv-primary) 70%, var(--inv-deep));
    --emas-abadi-muted: color-mix(in srgb, var(--inv-text) 76%, var(--inv-background));
    --emas-abadi-cream: color-mix(in srgb, var(--inv-background) 86%, transparent);
    --emas-abadi-line: color-mix(in srgb, var(--inv-accent) 60%, transparent);
    --emas-abadi-drop: 0 24px 40px -24px rgb(0 0 0 / .65);

    /* the damask print: a palmette with scrolls on a staggered tile (a mask, so it takes any colour) */
    --emas-abadi-damask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='96' viewBox='0 0 64 96'%3E%3Cg fill='%23000' fill-rule='evenodd'%3E%3Cpath d='M32 10c7 9 14 16 14 26s-7 17-14 21c-7-4-14-11-14-21s7-17 14-26zM32 20c4 6 8 10 8 16s-4 11-8 14c-4-3-8-8-8-14s4-10 8-16z'/%3E%3Ccircle cx='32' cy='36' r='3'/%3E%3Cpath d='M32 57c-5 6-15 8-19 2-3-5 2-11 8-8 3 2 1 6-2 5 2 2 5 0 4-3-1-4-8-4-10 1-2 7 9 11 19 3zM32 57c5 6 15 8 19 2 3-5-2-11-8-8-3 2-1 6 2 5-2 2-5 0-4-3 1-4 8-4 10 1 2 7-9 11-19 3z'/%3E%3Cpath d='M31 57h2v16h-2z'/%3E%3Cpath d='M32 68c-4-3-9-2-10 2 4 1 7 0 10-2zM32 68c4-3 9-2 10 2-4 1-7 0-10-2z'/%3E%3Cpath d='M32 76l3 4-3 4-3-4z'/%3E%3Cpath d='M18 30c-6-2-10 1-11 5 5 1 8-1 11-5zM46 30c6-2 10 1 11 5-5 1-8-1-11-5z'/%3E%3Cpath d='M0 84l5 6-5 6zM64 84l-5 6 5 6zM0 0l5 6-5 6zM64 0l-5 6 5 6z'/%3E%3Ccircle cx='0' cy='48' r='4'/%3E%3Ccircle cx='64' cy='48' r='4'/%3E%3Ccircle cx='8' cy='48' r='1.6'/%3E%3Ccircle cx='56' cy='48' r='1.6'/%3E%3Ccircle cx='32' cy='92' r='2'/%3E%3Ccircle cx='32' cy='3' r='1.6'/%3E%3C/g%3E%3C/svg%3E");

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

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

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

img { max-width: 100%; }
a { color: var(--emas-abadi-title); }

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

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

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

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

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

/* ---------- 2. section tones ---------- */
/* ivory: paper with a warm gold glow and the damask print in gold */
.emas-abadi-tone--ivory {
    background:
        radial-gradient(70% 30% at 50% 0%, color-mix(in srgb, #fff 70%, transparent), transparent 75%),
        radial-gradient(60% 26% at 100% 100%, color-mix(in srgb, var(--inv-soft) 90%, transparent), transparent 75%),
        radial-gradient(60% 26% at 0% 60%, color-mix(in srgb, var(--inv-accent) 14%, transparent), transparent 75%),
        var(--inv-background);
}
.emas-abadi-tone--ivory::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: var(--inv-accent); opacity: .16;
    -webkit-mask: var(--emas-abadi-damask) center top / 64px 96px repeat; mask: var(--emas-abadi-damask) center top / 64px 96px repeat;
}
/* emerald: the coloured velvet, a soft sheen across it */
.emas-abadi-tone--emerald {
    color: var(--inv-background);
    background:
        radial-gradient(80% 40% at 30% 0%, color-mix(in srgb, var(--emas-abadi-emerald-hi) 70%, transparent), transparent 75%),
        radial-gradient(70% 36% at 100% 100%, color-mix(in srgb, var(--inv-accent) 18%, transparent), transparent 75%),
        linear-gradient(180deg, var(--emas-abadi-emerald), color-mix(in srgb, var(--emas-abadi-emerald) 70%, #000));
}
/* velvet: black velvet with an emerald glow and a gold light */
.emas-abadi-tone--velvet {
    color: var(--inv-background);
    background:
        radial-gradient(90% 40% at 15% 0%, color-mix(in srgb, var(--inv-primary) 60%, transparent), transparent 75%),
        radial-gradient(70% 34% at 100% 100%, color-mix(in srgb, var(--inv-accent) 20%, transparent), transparent 75%),
        var(--inv-deep);
}
.emas-abadi-tone--emerald::before, .emas-abadi-tone--velvet::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: var(--inv-shine); opacity: .1;
    -webkit-mask: var(--emas-abadi-damask) center top / 64px 96px repeat; mask: var(--emas-abadi-damask) center top / 64px 96px repeat;
}
/* the gold braid at the top of every section: a bead row between two fine rules */
.emas-abadi-section::after {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 12px; pointer-events: none;
    background:
        radial-gradient(circle at 6px 6px, var(--emas-abadi-gold-3) 0 1.2px, var(--emas-abadi-gold-2) 2px, var(--emas-abadi-gold-1) 3.3px, transparent 3.8px) 0 0 / 12px 12px repeat-x,
        linear-gradient(var(--emas-abadi-gold-1), var(--emas-abadi-gold-1)) 0 0 / 100% 1.5px no-repeat,
        linear-gradient(var(--emas-abadi-gold-2), var(--emas-abadi-gold-2)) 0 11px / 100% 1px no-repeat;
}
:is(.emas-abadi-tone--emerald, .emas-abadi-tone--velvet) a:not(.inv-button) { color: var(--inv-shine); }
:is(.emas-abadi-tone--emerald, .emas-abadi-tone--velvet) .emas-abadi-arabic { color: var(--inv-shine); }

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

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

/* heading: an engraved eyebrow between two tiny gold diamonds, serif title, the last word in the script font in gold leaf */
.emas-abadi-heading { margin: 0 0 2rem; }
.emas-abadi-heading__eyebrow {
    display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 .55rem;
    font-family: var(--emas-abadi-engraved); font-size: .7rem; font-weight: 600; line-height: 1.25; letter-spacing: .2em; text-transform: uppercase; color: var(--emas-abadi-gold-ink);
}
.emas-abadi-heading__eyebrow::before, .emas-abadi-heading__eyebrow::after {
    content: ''; width: 6px; height: 6px; flex: none; transform: rotate(45deg);
    background: var(--emas-abadi-foil); box-shadow: 0 0 6px color-mix(in srgb, var(--inv-shine) 80%, transparent);
}
.emas-abadi-heading__title {
    margin: 0; font-family: var(--emas-abadi-serif); font-size: 2rem; font-weight: 600; line-height: 1.12;
    color: var(--emas-abadi-title); text-wrap: balance;
}
.emas-abadi-heading__title em {
    display: inline-block; padding: 0 .1em .12em; font-family: var(--emas-abadi-script); font-style: normal; font-weight: 400;
    font-size: 1.4em; line-height: .9;
}
.emas-abadi-tone--ivory .emas-abadi-heading__title em {
    background-image: linear-gradient(100deg, var(--emas-abadi-gold-1), var(--emas-abadi-gold-ink) 30%, var(--emas-abadi-gold-2) 48%, var(--emas-abadi-gold-ink) 62%, var(--emas-abadi-gold-1));
}
/* on the velvets the gold leaf is brighter, so the script words never sink into the dark */
:is(.emas-abadi-tone--emerald, .emas-abadi-tone--velvet) .emas-abadi-heading__title em, .emas-abadi-cover__names, .emas-abadi-closing__names {
    background-image: linear-gradient(100deg, var(--emas-abadi-gold-2), var(--inv-shine) 28%, #fff8dc 46%, var(--inv-shine) 62%, var(--emas-abadi-gold-2) 84%, var(--inv-shine));
}
.emas-abadi-heading__divider { margin: .7rem auto 0; }
:is(.emas-abadi-tone--emerald, .emas-abadi-tone--velvet) .emas-abadi-heading__eyebrow { color: var(--inv-shine); }
:is(.emas-abadi-tone--emerald, .emas-abadi-tone--velvet) .emas-abadi-heading__title { color: #fff; }

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

/* rose sprays and corner scrolls */
.emas-abadi-roses, .emas-abadi-filigree { display: block; overflow: visible; pointer-events: none; }
.emas-abadi-roses { filter: drop-shadow(0 6px 8px rgb(0 0 0 / .4)); }
.emas-abadi-filigree { filter: drop-shadow(0 2px 3px rgb(0 0 0 / .3)); }

/* the tap marker: two pulsing gold rings, a hand, a small gold label */
.emas-abadi-tap { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; pointer-events: none; }
.emas-abadi-tap__ring {
    position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; margin: -23% 0 0 -23%; border-radius: 50%;
    border: 2.5px solid var(--inv-shine); opacity: 0; box-shadow: 0 0 12px color-mix(in srgb, var(--inv-shine) 60%, transparent);
}
.emas-abadi-tap__hand {
    position: absolute; left: 52%; top: 50%; width: 2.6rem; height: 2.6rem;
    fill: #fff; stroke: var(--emas-abadi-gold-1); stroke-width: 1.4; stroke-linejoin: round;
    filter: drop-shadow(0 4px 6px rgb(0 0 0 / .45));
}
.emas-abadi-tap__label {
    position: absolute; left: 50%; bottom: -1.4rem; transform: translateX(-50%); white-space: nowrap;
    padding: .4rem 1rem; border-radius: 999px; font-size: .76rem; font-weight: 600; letter-spacing: .05em;
    color: var(--inv-deep); background: var(--emas-abadi-foil); background-size: 220% 100%;
    box-shadow: 0 0 0 1px var(--emas-abadi-gold-1), 0 8px 16px -8px rgb(0 0 0 / .6);
}

/* gold leaf flakes drifting down (sections/_flakes) */
.emas-abadi-flakes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.emas-abadi-flakes i {
    position: absolute; left: var(--x); top: -4%; width: calc(.7rem * var(--s)); height: calc(.55rem * var(--s));
    background: var(--emas-abadi-foil); background-size: 200% 100%;
    clip-path: polygon(8% 18%, 46% 0, 88% 12%, 100% 52%, 74% 92%, 30% 100%, 0 64%);
    opacity: .85; filter: drop-shadow(0 0 3px color-mix(in srgb, var(--inv-shine) 60%, transparent));
    transform: translateY(calc(var(--s) * 20vh)) rotate(30deg);
}
html.inv-anim .emas-abadi-flakes i { animation: emas-abadi-flake var(--dur) linear var(--delay) infinite; }
@keyframes emas-abadi-flake {
    0% { transform: translate(0, 0) rotate(0) rotateY(0); opacity: 0; }
    8% { opacity: .9; }
    50% { transform: translate(2.2rem, 55vh) rotate(160deg) rotateY(180deg); }
    92% { opacity: .8; }
    100% { transform: translate(-1rem, 108vh) rotate(320deg) rotateY(360deg); opacity: 0; }
}

/* ---------- 4. cover ---------- */
.emas-abadi-cover {
    --frame-cover: 17rem;
    position: fixed; inset: 0; z-index: 30; overflow-x: hidden; overflow-y: auto;
    display: flex; flex-direction: column; align-items: center; justify-content: safe center;
    padding: 1.5rem 1.4rem 1.7rem; isolation: isolate; color: var(--inv-background);
    background:
        radial-gradient(66% 34% at 50% 32%, color-mix(in srgb, var(--inv-primary) 82%, transparent), transparent 75%),
        radial-gradient(60% 26% at 0% 100%, color-mix(in srgb, var(--inv-primary) 40%, transparent), transparent 75%),
        radial-gradient(50% 24% at 100% 0%, color-mix(in srgb, var(--inv-accent) 22%, transparent), transparent 75%),
        var(--inv-deep);
    transition: opacity .9s ease;
}
/* the damask print */
.emas-abadi-cover::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .14; background: var(--inv-shine);
    -webkit-mask: var(--emas-abadi-damask) center top / 64px 96px repeat; mask: var(--emas-abadi-damask) center top / 64px 96px repeat;
}
/* a slow band of light sweeping over the damask (a living ground) */
.emas-abadi-cover__sweep {
    position: absolute; inset: -20% -60%; z-index: -1; pointer-events: none;
    background: linear-gradient(105deg, transparent 38%, color-mix(in srgb, var(--inv-shine) 16%, transparent) 50%, transparent 62%);
    transform: translateX(-40%);
}
html.inv-anim .emas-abadi-cover__sweep { animation: emas-abadi-sweep 9s ease-in-out infinite; }
.emas-abadi-cover__flakes { z-index: 2; }
.emas-abadi-cover__roses { position: absolute; z-index: 1; width: 11rem; }
.emas-abadi-cover__roses--tl { left: -2.4rem; top: -1.9rem; }
.emas-abadi-cover__roses--br { right: -2.4rem; bottom: -1.9rem; transform: rotate(180deg); }
.emas-abadi-cover__inner { position: relative; z-index: 1; 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); }

.emas-abadi-cover__title {
    display: inline-flex; align-items: center; gap: .6rem; margin: 0;
    font-family: var(--emas-abadi-engraved); font-size: .74rem; font-weight: 600; line-height: 1.25; letter-spacing: .26em; text-transform: uppercase; color: var(--inv-shine);
}
.emas-abadi-cover__title::before, .emas-abadi-cover__title::after { content: ''; width: 1.6rem; height: 1px; background: linear-gradient(90deg, transparent, var(--inv-shine)); }
.emas-abadi-cover__title::after { transform: scaleX(-1); }

.emas-abadi-cover__art { position: relative; width: var(--frame-cover); margin-top: 2.5rem; }
/* a warm light breathing behind the frame */
.emas-abadi-cover__art::before {
    content: ''; position: absolute; z-index: -1; left: -26%; right: -26%; top: -6%; bottom: -4%; border-radius: 50%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--inv-shine) 36%, transparent), transparent);
}

.emas-abadi-cover__names {
    margin: 1.05rem 0 0; max-width: 100%; font-family: var(--emas-abadi-script); font-size: 2.9rem; font-weight: 400; line-height: 1.15;
    padding: 0 .25em .08em; white-space: nowrap; overflow-wrap: normal;
    filter: drop-shadow(0 2px 6px rgb(0 0 0 / .5));
}
.emas-abadi-cover__date { margin: .3rem 0 0; }
.emas-abadi-cover__date span {
    display: inline-block; padding: .32rem 1.6rem .34rem; font-family: var(--emas-abadi-engraved); font-size: .86rem; font-weight: 700; letter-spacing: .08em; white-space: nowrap;
    color: var(--inv-deep); background: var(--emas-abadi-foil); background-size: 220% 100%;
    clip-path: polygon(0 0, 100% 0, calc(100% - .7rem) 50%, 100% 100%, 0 100%, .7rem 50%);
}
.emas-abadi-cover__quote {
    max-width: 29ch; margin: .6rem 0 0; font-family: var(--emas-abadi-italic); font-style: italic; font-weight: 500;
    font-size: 1.08rem; line-height: 1.3; color: var(--emas-abadi-cream);
}
.emas-abadi-cover__guest {
    width: min(100%, 18.5rem); margin: .75rem 0 0; padding: .45rem 1rem .5rem; border-radius: 12px;
    background: color-mix(in srgb, var(--inv-deep) 55%, transparent);
    box-shadow: inset 0 0 0 1px var(--emas-abadi-line), inset 0 0 0 4px color-mix(in srgb, var(--inv-deep) 55%, transparent), inset 0 0 0 5px color-mix(in srgb, var(--inv-accent) 30%, transparent);
}
.emas-abadi-cover__guest p { margin: 0; font-family: var(--emas-abadi-engraved); font-size: .6rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--inv-shine); }
.emas-abadi-cover__guest-name { display: block; font-family: var(--emas-abadi-serif); font-size: 1.18rem; font-weight: 600; line-height: 1.25; color: #fff; overflow-wrap: anywhere; }
.emas-abadi-cover__open {
    margin-top: .85rem; min-height: 2.9rem; padding: .65rem 2rem; font-family: var(--emas-abadi-engraved); font-weight: 700; letter-spacing: .1em;
    color: var(--inv-deep); background: var(--emas-abadi-foil); background-size: 220% 100%;
    box-shadow: 0 0 0 3px var(--inv-deep), 0 0 0 4.2px var(--emas-abadi-line), 0 14px 26px -12px rgb(0 0 0 / .7);
}

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

/* ---------- 5. the baroque frame (sections/_frame) ---------- */
.emas-abadi-frame { --frame-w: 15rem; --frame-pos: center 25%; position: relative; width: var(--frame-w); aspect-ratio: 4 / 5; margin: 0 auto; flex: none; }
.emas-abadi-frame__window {
    position: absolute; left: 10%; right: 10%; top: 9.2%; bottom: 9.2%; overflow: hidden;
    border-radius: 50% 50% 1.5% 1.5% / 25.5% 25.5% 1.2% 1.2%;
    background:
        radial-gradient(80% 50% at 50% 30%, color-mix(in srgb, var(--inv-primary) 60%, transparent), transparent 70%),
        linear-gradient(170deg, var(--emas-abadi-emerald), var(--inv-deep));
}
.emas-abadi-frame__photo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--frame-pos); }
.emas-abadi-frame__photo--bg { background: var(--frame-pos) / cover no-repeat; }
.emas-abadi-frame__empty { position: absolute; inset: 0; display: grid; place-items: center; }
.emas-abadi-frame__initials { font-family: var(--emas-abadi-script); font-size: calc(var(--frame-w) * .2); line-height: 1; color: var(--inv-shine); white-space: nowrap; }
/* a soft light passing over the picture now and then */
.emas-abadi-frame__sheen {
    position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
    background: linear-gradient(115deg, transparent 35%, rgb(255 246 214 / .55) 48%, transparent 60%) no-repeat;
    background-size: 260% 100%; background-position: 120% 0;
}
/* the gilded moulding with its ornaments, drawn over the window edge (overflowing for the crest and scrolls) */
.emas-abadi-frame__gilt { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; filter: drop-shadow(0 8px 12px rgb(0 0 0 / .55)); }
/* the monogram in the cartouche on the foot */
.emas-abadi-frame__badge {
    position: absolute; left: 50%; top: 94%; z-index: 1; display: flex; align-items: center; justify-content: center; gap: .3em; width: 21%; margin: 0;
    transform: translate(-50%, -50%); font-family: var(--emas-abadi-engraved); font-size: calc(var(--frame-w) * .068); font-weight: 700; line-height: 1;
    color: var(--emas-abadi-gold-3); text-shadow: 0 1px 2px rgb(0 0 0 / .6);
}
.emas-abadi-frame__badge i { width: .26em; height: .26em; flex: none; transform: rotate(45deg); background: var(--emas-abadi-gold-2); }

/* the interlocking rings */
.emas-abadi-rings { display: block; width: 100%; height: auto; overflow: visible; }

/* the cover frame */
.emas-abadi-frame--cover { --frame-w: var(--frame-cover); --frame-pos: center 24%; }

/* ---------- 6. the cartouche with the years (sections/_cartouche) ---------- */
.emas-abadi-cartouche { --c-w: min(16rem, 74vw); position: relative; width: var(--c-w); aspect-ratio: 240 / 260; margin: 0 auto; }
.emas-abadi-cartouche__art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 8px 14px rgb(0 0 0 / .55)); }
/* the damask inside the velvet oval */
.emas-abadi-cartouche__damask {
    position: absolute; left: 19.5%; right: 19.5%; top: 18%; bottom: 15%; border-radius: 50%; pointer-events: none;
    background: var(--inv-shine); opacity: .14;
    -webkit-mask: var(--emas-abadi-damask) center / 40px 60px repeat; mask: var(--emas-abadi-damask) center / 40px 60px repeat;
}
.emas-abadi-cartouche__inner { position: absolute; left: 20%; right: 20%; top: 20%; bottom: 18%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.emas-abadi-cartouche__number {
    font-family: var(--emas-abadi-engraved); font-size: calc(var(--c-w) * .34); font-weight: 700; line-height: .95; letter-spacing: -.01em;
    filter: drop-shadow(0 3px 6px rgb(0 0 0 / .6));
}
.emas-abadi-cartouche__unit { margin-top: .25rem; font-family: var(--emas-abadi-engraved); font-size: .8rem; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; color: var(--inv-shine); }
.emas-abadi-cartouche__rings { width: 70%; }
.emas-abadi-cartouche__label {
    position: absolute; left: 50%; bottom: 3%; transform: translateX(-50%); white-space: nowrap; filter: drop-shadow(0 6px 8px rgb(0 0 0 / .5));
}
.emas-abadi-cartouche__label span {
    display: block; padding: .38rem 1.9rem .4rem; font-family: var(--emas-abadi-engraved); font-size: .95rem; font-weight: 700; letter-spacing: .08em; color: var(--inv-deep);
    background: var(--emas-abadi-foil); background-size: 220% 100%;
    clip-path: polygon(0 0, 100% 0, calc(100% - .8rem) 50%, 100% 100%, 0 100%, .8rem 50%);
}

/* ---------- 7. sections ---------- */

/* opening: the arched ivory letter with acanthus corners and roses on its shoulders */
.emas-abadi-opening { padding: 4.4rem 1.3rem 4.2rem; }
.emas-abadi-letter {
    position: relative; max-width: 22.5rem; margin: 0 auto; padding: 3.4rem 1.5rem 4.4rem;
    border-radius: 11rem 11rem 16px 16px; background: var(--emas-abadi-paper);
    box-shadow: inset 0 0 0 2px var(--emas-abadi-gold-2), inset 0 0 0 6px var(--emas-abadi-paper), inset 0 0 0 7px var(--emas-abadi-line), var(--emas-abadi-drop);
}
.emas-abadi-letter__roses { position: absolute; top: 1rem; width: 5.6rem; z-index: 1; }
.emas-abadi-letter__roses--left { left: -1.8rem; transform: rotate(-12deg); }
.emas-abadi-letter__roses--right { right: -1.8rem; transform: scaleX(-1) rotate(-12deg); }
.emas-abadi-letter__corner { position: absolute; bottom: .45rem; width: 3.6rem; }
.emas-abadi-letter__corner--bl { left: .45rem; }
.emas-abadi-letter__corner--br { right: .45rem; transform: scaleX(-1); }
.emas-abadi-letter__body { position: relative; }
.emas-abadi-opening__basmalah { margin: 0 0 .6rem; font-size: 1.75rem; }
.emas-abadi-opening__greeting { margin: 0 auto; max-width: 22ch; font-family: var(--emas-abadi-italic); font-size: 1.5rem; font-weight: 600; font-style: italic; line-height: 1.28; color: var(--emas-abadi-title); }
.emas-abadi-opening__divider { margin: .9rem auto; }
.emas-abadi-opening__message { margin: 0 auto; max-width: 28ch; color: var(--emas-abadi-muted); }
.emas-abadi-opening__quote { margin: 1.1rem auto 0; max-width: 28ch; }
.emas-abadi-opening__quote p { margin: 0; font-family: var(--emas-abadi-italic); font-size: 1.12rem; font-style: italic; font-weight: 500; line-height: 1.45; color: var(--emas-abadi-title); }
.emas-abadi-opening__quote cite { display: block; margin-top: .45rem; font-family: var(--emas-abadi-engraved); font-style: normal; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--emas-abadi-gold-ink); }

/* couple: the wide gilded picture, the two names joined by the rings */
.emas-abadi-gilt {
    position: relative; width: min(100% - 2.2rem, 20rem); aspect-ratio: 4 / 3; margin: 3.4rem auto 0; padding: 0; border-radius: 4px;
    background: var(--inv-deep);
    box-shadow:
        0 0 0 3px var(--emas-abadi-gold-1), 0 0 0 9px var(--emas-abadi-gold-2), 0 0 0 10px var(--emas-abadi-gold-3), 0 0 0 12px var(--emas-abadi-gold-1),
        0 0 0 15px color-mix(in srgb, var(--inv-deep) 70%, transparent), 0 0 0 16px var(--emas-abadi-line), 0 28px 40px -18px rgb(0 0 0 / .7);
}
.emas-abadi-gilt__photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; border-radius: 4px; }
.emas-abadi-gilt__empty { display: grid; place-items: center; height: 100%; font-family: var(--emas-abadi-script); font-size: 4rem; color: var(--inv-shine); }
.emas-abadi-gilt__corner { position: absolute; width: 3.4rem; }
.emas-abadi-gilt__corner--bl { left: -1.45rem; bottom: -1.45rem; }
.emas-abadi-gilt__corner--br { right: -1.45rem; bottom: -1.45rem; transform: scaleX(-1); }
.emas-abadi-gilt__corner--tl { left: -1.45rem; top: -1.45rem; transform: scaleY(-1); }
.emas-abadi-gilt__corner--tr { right: -1.45rem; top: -1.45rem; transform: scale(-1, -1); }
.emas-abadi-gilt__shell { position: absolute; left: 50%; top: -2.6rem; width: 4.6rem; overflow: visible; transform: translateX(-50%); filter: drop-shadow(0 3px 5px rgb(0 0 0 / .5)); }
/* the gold leaf sheen sliding over the frame */
.emas-abadi-couple__people { display: grid; justify-items: center; gap: .5rem; margin-top: 2.6rem; }
.emas-abadi-couple__person { min-width: 0; }
.emas-abadi-couple__role { display: block; font-family: var(--emas-abadi-engraved); font-size: .64rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--inv-shine); }
.emas-abadi-couple__nickname { margin: .1rem 0 0; font-family: var(--emas-abadi-script); font-size: 2.7rem; line-height: 1.15; color: #fff; overflow-wrap: anywhere; }
.emas-abadi-couple__name { margin: .15rem 0 0; font-family: var(--emas-abadi-serif); font-size: .98rem; font-weight: 500; line-height: 1.3; color: var(--emas-abadi-cream); overflow-wrap: anywhere; }
.emas-abadi-couple__rings { width: 3.8rem; filter: drop-shadow(0 3px 5px rgb(0 0 0 / .5)); }

/* milestone: the cartouche, since when, then & now */
.emas-abadi-milestone__eyebrow { margin: 0 0 1.2rem !important; font-family: var(--emas-abadi-engraved); font-size: .72rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--inv-shine); }
.emas-abadi-milestone__since { display: flex; flex-direction: column; gap: .2rem; margin: 1.6rem auto 0 !important; font-family: var(--emas-abadi-italic); font-size: 1.16rem; line-height: 1.4; color: var(--emas-abadi-cream); }
.emas-abadi-milestone__since strong { font-weight: 600; font-style: italic; color: #fff; }
.emas-abadi-milestone .emas-abadi-heading { margin-top: 2.8rem; }
.emas-abadi-frame--then { --frame-w: min(15rem, 66vw); margin-top: 2.4rem; }
.emas-abadi-frame--then .emas-abadi-frame__photo { filter: sepia(.45) contrast(1.05); }

/* Dulu & Sekarang: the photo of then clipped at --pos over the photo of now, in a gilded rule */
.emas-abadi-compare {
    position: relative; width: min(100% - 1.6rem, 20rem); aspect-ratio: 1; margin: 0 auto; overflow: hidden; border-radius: 4px; touch-action: pan-y;
    box-shadow:
        0 0 0 3px var(--emas-abadi-gold-1), 0 0 0 9px var(--emas-abadi-gold-2), 0 0 0 10px var(--emas-abadi-gold-3), 0 0 0 12px var(--emas-abadi-gold-1),
        0 26px 40px -18px rgb(0 0 0 / .7);
}
.emas-abadi-compare__img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.emas-abadi-compare__then { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.emas-abadi-compare__then .emas-abadi-compare__img { filter: sepia(.55) contrast(1.05) brightness(.97); }
.emas-abadi-compare__tag {
    position: absolute; top: .7rem; padding: .24rem .75rem; border-radius: 999px; font-family: var(--emas-abadi-engraved); font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--inv-deep); background: var(--emas-abadi-foil); background-size: 220% 100%; box-shadow: 0 4px 10px -4px rgb(0 0 0 / .5); pointer-events: none;
}
.emas-abadi-compare__tag--then { left: .7rem; }
.emas-abadi-compare__tag--now { right: .7rem; }
.emas-abadi-compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--emas-abadi-foil-v); box-shadow: 0 0 8px rgb(0 0 0 / .5); pointer-events: none; }
.emas-abadi-compare__knob {
    position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 3rem; height: 3rem; margin: -1.5rem 0 0 -1.5rem; border-radius: 50%;
    color: var(--inv-deep); background: var(--emas-abadi-foil); background-size: 220% 100%; box-shadow: 0 0 0 2px var(--emas-abadi-gold-1), 0 0 0 5px color-mix(in srgb, var(--inv-deep) 70%, transparent), 0 8px 18px -6px rgb(0 0 0 / .6);
}
.emas-abadi-compare__knob svg { width: 1.3rem; height: 1.3rem; }
.emas-abadi-compare .emas-abadi-tap { inset: auto; left: 50%; top: 50%; width: 5.5rem; height: 5.5rem; margin: -2.75rem 0 0 -2.75rem; }
.emas-abadi-compare .emas-abadi-tap__ring { width: 100%; margin: -50% 0 0 -50%; }
.emas-abadi-compare .emas-abadi-tap__hand { left: 46%; top: 58%; }
.emas-abadi-compare__hint {
    position: absolute; left: 50%; bottom: .8rem; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
    padding: .4rem 1rem; border-radius: 999px; font-size: .76rem; font-weight: 600; letter-spacing: .04em;
    color: var(--inv-deep); background: var(--emas-abadi-foil); background-size: 220% 100%; box-shadow: 0 0 0 1px var(--emas-abadi-gold-1), 0 8px 16px -8px rgb(0 0 0 / .6);
}
.emas-abadi-compare__range { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.emas-abadi-compare__range:focus-visible { opacity: .01; }
.emas-abadi-compare:has(.emas-abadi-compare__range:focus-visible) .emas-abadi-compare__knob { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--inv-shine); }

/* family: the photo melting into the paper, the tree of children, the grandchildren plaque */
.emas-abadi-family__photo { position: relative; margin: 0 -1.4rem 1.8rem; -webkit-mask: linear-gradient(180deg, transparent, #000 12%, #000 70%, transparent); mask: linear-gradient(180deg, transparent, #000 12%, #000 70%, transparent); }
.emas-abadi-family__photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; }
.emas-abadi-family__tree { position: relative; display: grid; gap: .95rem; max-width: 22rem; margin: 0 auto; padding: .4rem 0 .4rem 2.3rem; list-style: none; text-align: left; }
.emas-abadi-family__tree::before { content: ''; position: absolute; left: .7rem; top: 0; bottom: 0; width: 3px; border-radius: 3px; background: linear-gradient(180deg, transparent, var(--emas-abadi-gold-2) 10%, var(--emas-abadi-gold-1) 50%, var(--emas-abadi-gold-2) 90%, transparent); }
.emas-abadi-family__child { position: relative; display: flex; flex-direction: column; }
.emas-abadi-family__leaf { position: absolute; left: -1.85rem; top: .35rem; width: 1.6rem; }
.emas-abadi-family__name { font-family: var(--emas-abadi-serif); font-size: 1.2rem; font-weight: 600; line-height: 1.25; color: var(--emas-abadi-title); overflow-wrap: anywhere; }
.emas-abadi-family__note { font-size: .8rem; color: var(--emas-abadi-muted); }
.emas-abadi-family__grand {
    max-width: 22rem; margin: 1.8rem auto 0; padding: 1.1rem 1.2rem 1.15rem; border-radius: 14px; color: var(--inv-background);
    background: radial-gradient(80% 90% at 50% 0%, var(--emas-abadi-emerald-hi), var(--emas-abadi-emerald));
    box-shadow: inset 0 0 0 2px var(--emas-abadi-gold-2), inset 0 0 0 5px var(--emas-abadi-emerald), inset 0 0 0 6px var(--emas-abadi-line), var(--emas-abadi-drop);
}
.emas-abadi-family__grand-label { display: block; font-family: var(--emas-abadi-engraved); font-size: .66rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--inv-shine); }
.emas-abadi-family__grand p { margin: .3rem 0 0; font-family: var(--emas-abadi-italic); font-size: 1.16rem; font-style: italic; line-height: 1.45; color: #fff; }

/* message: a gold quotation mark, large italic words, the signature in the script font */
.emas-abadi-message__quote { position: relative; margin: 0 auto; max-width: 24rem; }
.emas-abadi-message__mark { display: block; width: 2.8rem; height: 2.1rem; margin: 0 auto .8rem; filter: drop-shadow(0 2px 4px rgb(0 0 0 / .4)); }
.emas-abadi-message__quote p { margin: 0; font-family: var(--emas-abadi-italic); font-style: italic; font-size: 1.36rem; font-weight: 500; line-height: 1.45; color: #fff; }
.emas-abadi-message__quote cite { display: block; margin-top: 1rem; font-family: var(--emas-abadi-script); font-style: normal; font-size: 2.1rem; line-height: 1.15; color: var(--inv-shine); }

/* events: ivory cards in a gilded rule with an arched photo and a gold date medallion */
.emas-abadi-event {
    position: relative; margin: 0 auto; max-width: 25rem; padding: .7rem .7rem 1.7rem; border-radius: 16px; background: var(--emas-abadi-paper); text-align: left;
    box-shadow: inset 0 0 0 2px var(--emas-abadi-gold-2), inset 0 0 0 5px var(--emas-abadi-paper), inset 0 0 0 6px var(--emas-abadi-line), var(--emas-abadi-drop);
}
.emas-abadi-event + .emas-abadi-event { margin-top: 2.4rem; }
.emas-abadi-event__corner { position: absolute; bottom: .35rem; width: 3.3rem; }
.emas-abadi-event__corner--bl { left: .35rem; }
.emas-abadi-event__corner--br { right: .35rem; transform: scaleX(-1); }
.emas-abadi-event__media { position: relative; margin: .3rem .3rem 0; padding: 4px; border-radius: 999px 999px 10px 10px / 70% 70% 10px 10px; background: var(--emas-abadi-foil-v); }
.emas-abadi-event__photo { display: block; width: 100%; aspect-ratio: 16 / 10.5; object-fit: cover; object-position: center 30%; border-radius: 999px 999px 8px 8px / 70% 70% 8px 8px; }
.emas-abadi-event__top { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1rem 0; }
.emas-abadi-event__media + .emas-abadi-event__top { margin-top: -2.4rem; align-items: flex-end; }
.emas-abadi-event__date {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; width: 4.7rem; height: 4.7rem; margin: 0;
    border-radius: 50%; color: #fff; background: radial-gradient(circle at 35% 30%, var(--emas-abadi-emerald-hi), var(--inv-deep));
    box-shadow: 0 0 0 3px var(--emas-abadi-gold-2), 0 0 0 4px var(--emas-abadi-gold-1), 0 0 0 6px var(--emas-abadi-paper), 0 0 0 7px var(--emas-abadi-line), 0 12px 20px -10px rgb(0 0 0 / .6);
    font-family: var(--emas-abadi-engraved); font-size: .56rem; font-weight: 700; letter-spacing: .08em; line-height: 1.2; text-transform: uppercase;
}
.emas-abadi-event__date strong { font-size: 1.85rem; font-weight: 700; line-height: 1; letter-spacing: 0; color: var(--inv-shine); }
.emas-abadi-event__head { min-width: 0; padding-bottom: .1rem; }
.emas-abadi-event__media + .emas-abadi-event__top .emas-abadi-event__head { padding-top: 2.6rem; }
.emas-abadi-event__name { margin: 0; font-family: var(--emas-abadi-serif); font-size: 1.42rem; font-weight: 700; line-height: 1.15; color: var(--emas-abadi-title); }
.emas-abadi-event__full { margin: .15rem 0 0; font-size: .8rem; color: var(--emas-abadi-muted); }
.emas-abadi-event__rows { display: grid; gap: .7rem; margin: 1rem 1rem 0; padding: .95rem 0 0; list-style: none; font-size: .9rem; border-top: 1px solid var(--emas-abadi-line); }
.emas-abadi-event__rows li { display: flex; align-items: flex-start; gap: .65rem; }
.emas-abadi-event__rows .emas-abadi-icon { width: 2rem; height: 2rem; padding: .42rem; border-radius: 50%; color: var(--inv-deep); background: var(--emas-abadi-foil); background-size: 220% 100%; }
.emas-abadi-event__rows li > span { padding-top: .28rem; }
.emas-abadi-event__venue { display: block; font-weight: 600; }
.emas-abadi-event__address { display: block; font-size: .85rem; color: var(--emas-abadi-muted); }
.emas-abadi-event .inv-maps { margin: 1.1rem 1rem 0; text-align: center; }
.emas-abadi-event .inv-maps .inv-button { width: 100%; font-weight: 600; color: var(--inv-background); background: linear-gradient(180deg, var(--emas-abadi-emerald-hi), var(--emas-abadi-emerald)); box-shadow: inset 0 0 0 1px var(--emas-abadi-gold-2); }
.emas-abadi-event .inv-maps__frame { height: 180px; border-radius: 12px; }

/* countdown: round gold medallions on black velvet */
.emas-abadi-countdown .inv-countdown { gap: clamp(.45rem, 2.4vw, .8rem); }
.emas-abadi-countdown .inv-countdown__item {
    display: grid; place-content: center; width: clamp(4rem, 18.5vw, 4.7rem); min-width: 0; aspect-ratio: 1; padding: 0; border-radius: 50%;
    color: var(--inv-text); background: radial-gradient(circle at 38% 30%, #fffdf2, var(--emas-abadi-gold-3) 55%, var(--emas-abadi-gold-2) 85%, var(--emas-abadi-gold-1));
    box-shadow: 0 0 0 3px var(--inv-deep), 0 0 0 4.5px var(--emas-abadi-gold-2), 0 0 22px color-mix(in srgb, var(--inv-shine) 40%, transparent);
}
.emas-abadi-countdown .inv-countdown__value { font-variant-numeric: lining-nums tabular-nums; font-family: var(--emas-abadi-engraved); font-size: 1.7rem; font-weight: 700; line-height: 1; color: var(--inv-deep); }
.emas-abadi-countdown .inv-countdown__label { margin-top: .1rem; font-size: .52rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--inv-deep) 80%, transparent); }
.emas-abadi-countdown .inv-countdown__done { font-family: var(--emas-abadi-italic); font-size: 1.4rem; font-style: italic; color: var(--inv-shine); }
.emas-abadi-countdown .inv-countdown__actions { flex-direction: column; align-items: center; gap: .6rem; margin-top: 2rem; }
.emas-abadi-countdown .inv-countdown__actions .inv-button {
    width: min(100%, 17rem); min-height: 2.75rem; padding: .6rem 1rem; font-size: .84rem; font-weight: 600;
    color: var(--inv-background); background: color-mix(in srgb, var(--inv-background) 8%, transparent);
    box-shadow: inset 0 0 0 1px var(--emas-abadi-line);
}
.emas-abadi-countdown .inv-countdown__actions .inv-button:first-child { color: var(--inv-deep); background: var(--emas-abadi-foil); background-size: 220% 100%; box-shadow: none; }
.emas-abadi-countdown .inv-cal {
    --inv-cal-bg: var(--emas-abadi-paper); --inv-cal-mark: var(--inv-primary);
    max-width: 19rem; margin: 2.8rem auto 0; border-radius: 16px;
    box-shadow: inset 0 0 0 2px var(--emas-abadi-gold-2), inset 0 0 0 5px var(--emas-abadi-paper), inset 0 0 0 6px var(--emas-abadi-line), 0 22px 40px -24px rgb(0 0 0 / .7);
}
.emas-abadi-countdown .inv-cal__month { font-family: var(--emas-abadi-serif); font-size: 1.4rem; font-weight: 700; font-style: italic; color: var(--emas-abadi-title); }

/* prayer: an arched ivory panel, the shell crest on its apex */
.emas-abadi-prayer { padding-top: 5.6rem; }
.emas-abadi-prayer__panel {
    position: relative; max-width: 22rem; margin: 0 auto; padding: 3rem 1.4rem 2.8rem; border-radius: 11rem 11rem 16px 16px;
    color: var(--inv-text); background: var(--emas-abadi-paper);
    box-shadow: inset 0 0 0 2px var(--emas-abadi-gold-2), inset 0 0 0 6px var(--emas-abadi-paper), inset 0 0 0 7px var(--emas-abadi-line), var(--emas-abadi-drop);
}
.emas-abadi-prayer__moon { position: absolute; left: 50%; top: -2.2rem; width: 5.4rem; overflow: visible; transform: translateX(-50%); filter: drop-shadow(0 3px 6px rgb(0 0 0 / .5)); }
.emas-abadi-prayer__eyebrow { margin: 0 0 .9rem; font-family: var(--emas-abadi-engraved); font-size: .66rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--emas-abadi-gold-ink); }
.emas-abadi-prayer__arabic { margin: 0 0 1rem; font-size: 1.42rem; text-wrap: balance; }
.emas-abadi-prayer__text { margin: 0; }
.emas-abadi-prayer__text p { margin: 0; font-family: var(--emas-abadi-italic); font-size: 1.18rem; font-style: italic; font-weight: 500; line-height: 1.45; }
.emas-abadi-prayer__text cite {
    display: inline-block; margin-top: 1rem; padding: .28rem .95rem; border-radius: 999px; font-family: var(--emas-abadi-engraved); font-style: normal; font-size: .68rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; color: var(--inv-deep); background: var(--emas-abadi-foil); background-size: 220% 100%;
}

/* rundown: a gold thread; times on gold plaques; steps on ivory slips */
.emas-abadi-rundown__list { position: relative; max-width: 24rem; margin: 0 auto; padding: 0; list-style: none; text-align: left; }
.emas-abadi-rundown__list::before {
    content: ''; position: absolute; left: 2.35rem; top: .6rem; bottom: .6rem; width: 3px; margin-left: -1px; transform-origin: top; border-radius: 3px;
    background: linear-gradient(180deg, var(--emas-abadi-gold-2), var(--emas-abadi-gold-1) 50%, color-mix(in srgb, var(--inv-accent) 30%, transparent));
}
.emas-abadi-rundown__item { position: relative; display: grid; grid-template-columns: 4.7rem minmax(0, 1fr); align-items: start; column-gap: .8rem; padding: 0 0 1rem; }
.emas-abadi-rundown__item:last-child { padding-bottom: 0; }
.emas-abadi-rundown__time {
    position: relative; justify-self: center; margin-top: .45rem; padding: .24rem .62rem; border-radius: 6px; font-family: var(--emas-abadi-engraved); font-size: .8rem; font-weight: 700;
    font-variant-numeric: tabular-nums; color: var(--inv-deep); background: var(--emas-abadi-foil); background-size: 220% 100%;
    box-shadow: 0 0 0 3px var(--inv-background), 0 0 0 4px var(--emas-abadi-line);
}
.emas-abadi-rundown__body { padding: .7rem .95rem .75rem; border-radius: 12px; background: var(--emas-abadi-paper); box-shadow: inset 0 0 0 1px var(--emas-abadi-line), 0 10px 18px -14px rgb(0 0 0 / .5); border-left: 3px solid var(--emas-abadi-gold-2); }
.emas-abadi-rundown__body h3 { margin: 0; font-family: var(--emas-abadi-serif); font-size: 1.08rem; font-weight: 700; line-height: 1.3; color: var(--emas-abadi-title); }
.emas-abadi-rundown__body p { margin: .1rem 0 0; font-size: .85rem; color: var(--emas-abadi-muted); }

/* party: the theme cartouche, the gown and its swatches, the note and the hashtag */
.emas-abadi-party__label { display: block; font-family: var(--emas-abadi-engraved); font-size: .64rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--emas-abadi-gold-ink); }
.emas-abadi-party__theme-card {
    position: relative; max-width: 19rem; margin: 0 auto; padding: 1.6rem 3.4rem 1.7rem; border-radius: 50%; color: var(--inv-background);
    background: radial-gradient(80% 90% at 50% 20%, var(--emas-abadi-emerald-hi), var(--emas-abadi-emerald) 70%, var(--inv-deep));
    box-shadow: inset 0 0 0 3px var(--emas-abadi-gold-2), inset 0 0 0 6px var(--emas-abadi-emerald), inset 0 0 0 7px var(--emas-abadi-line), var(--emas-abadi-drop);
}
.emas-abadi-party__theme-card .emas-abadi-party__label { color: var(--inv-shine); }
.emas-abadi-party__theme { margin: .25rem 0 0; font-family: var(--emas-abadi-script); font-size: 2.3rem; line-height: 1.15; color: #fff; }
.emas-abadi-party__rose { position: absolute; top: 50%; width: 3.8rem; margin-top: -1.9rem; filter: drop-shadow(0 4px 6px rgb(0 0 0 / .35)); }
.emas-abadi-party__rose--left { left: -1.3rem; }
.emas-abadi-party__rose--right { right: -1.3rem; }
.emas-abadi-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: 14px; text-align: left; background: var(--emas-abadi-paper);
    box-shadow: inset 0 0 0 2px var(--emas-abadi-gold-2), inset 0 0 0 5px var(--emas-abadi-paper), inset 0 0 0 6px var(--emas-abadi-line), var(--emas-abadi-drop);
}
.emas-abadi-party__gown { width: 5rem; height: auto; }
.emas-abadi-party__gown-body { fill: var(--emas-abadi-pick, var(--inv-primary)); stroke: var(--emas-abadi-gold-1); stroke-width: 1.2; transition: fill .4s ease; }
.emas-abadi-party__gown-line { fill: none; stroke: color-mix(in srgb, #fff 55%, transparent); stroke-width: 1; }
.emas-abadi-party__dress-name { margin: .15rem 0 .55rem; font-family: var(--emas-abadi-serif); font-size: 1.16rem; font-weight: 700; line-height: 1.25; color: var(--emas-abadi-title); }
.emas-abadi-swatches { display: flex; flex-wrap: wrap; gap: .45rem; }
.emas-abadi-swatch {
    width: 2.1rem; height: 2.1rem; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: var(--emas-abadi-swatch);
    box-shadow: 0 0 0 2px var(--emas-abadi-paper), 0 0 0 3px var(--emas-abadi-line); transition: transform .2s ease;
}
.emas-abadi-swatch[aria-pressed=true] { transform: scale(1.12); box-shadow: 0 0 0 2px var(--emas-abadi-paper), 0 0 0 4px var(--inv-accent); }
.emas-abadi-party__hint { margin: .5rem 0 0 !important; font-size: .76rem; color: var(--emas-abadi-muted); }
.emas-abadi-party__hint--center { margin: .5rem auto 0 !important; text-align: center; }
.emas-abadi-party__note { margin-top: 1.4rem !important; font-family: var(--emas-abadi-italic); font-size: 1.16rem; font-style: italic; line-height: 1.45; color: var(--inv-text); }
.emas-abadi-party__hashtag {
    display: inline-flex; align-items: center; gap: .5rem; max-width: 100%; margin-top: .4rem; padding: .35rem .4rem .35rem .9rem; border-radius: 999px;
    background: var(--emas-abadi-paper); box-shadow: inset 0 0 0 1.5px var(--emas-abadi-gold-2);
}
.emas-abadi-party__hashtag .emas-abadi-icon { color: var(--emas-abadi-gold-ink); }
.emas-abadi-party__hashtag-text { font-weight: 600; color: var(--emas-abadi-title); overflow-wrap: anywhere; }
.emas-abadi-party__copy {
    min-height: 2.2rem; padding: .3rem .9rem; border: 0; border-radius: 999px; cursor: pointer; font: 600 .78rem/1 var(--emas-abadi-sans);
    color: var(--inv-deep); background: var(--emas-abadi-foil); background-size: 220% 100%; box-shadow: 0 0 0 1px var(--emas-abadi-gold-1);
}

/* story (black velvet): the jewellery box, then chapters in small gilded arches beside the text */
.emas-abadi-story__box { margin: 0 auto 2.8rem; }
.emas-abadi-story__box-label { margin: 0 0 .4rem; font-family: var(--emas-abadi-engraved); font-size: .74rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--inv-shine); }
.emas-abadi-story__list { display: grid; gap: 2.2rem; margin: 0; padding: 0; list-style: none; text-align: left; }
.emas-abadi-story__item { display: grid; grid-template-columns: 42% minmax(0, 1fr); align-items: center; gap: 1.2rem; }
.emas-abadi-story__item--flip { grid-template-columns: minmax(0, 1fr) 42%; }
.emas-abadi-story__item--flip .emas-abadi-story__media { order: 2; }
.emas-abadi-story__media { padding: 5px; border-radius: 999px 999px 10px 10px; background: var(--emas-abadi-foil-v); filter: drop-shadow(0 12px 16px rgb(0 0 0 / .5)); }
.emas-abadi-story__photo { display: block; width: 100%; aspect-ratio: 5 / 6.4; object-fit: cover; object-position: center 28%; border-radius: 999px 999px 7px 7px; border: 2px solid var(--emas-abadi-gold-1); }
.emas-abadi-story__when {
    display: inline-block; padding: .22rem .75rem; border-radius: 4px; font-family: var(--emas-abadi-engraved); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--inv-deep); background: var(--emas-abadi-foil); background-size: 220% 100%;
}
.emas-abadi-story__body h3 { margin: .5rem 0 0; font-family: var(--emas-abadi-serif); font-size: 1.3rem; font-weight: 700; line-height: 1.2; color: #fff; }
.emas-abadi-story__body p { margin: .35rem 0 0; font-size: .88rem; line-height: 1.55; color: var(--emas-abadi-cream); }
.emas-abadi-story__item--text {
    grid-template-columns: 2.6rem minmax(0, 1fr); align-items: start; gap: .9rem; padding: 1.15rem 1.2rem; border-radius: 14px; color: var(--inv-text);
    background: var(--emas-abadi-paper); box-shadow: inset 0 0 0 2px var(--emas-abadi-gold-2), inset 0 0 0 5px var(--emas-abadi-paper), inset 0 0 0 6px var(--emas-abadi-line);
}
.emas-abadi-story__item--text h3 { color: var(--emas-abadi-title); }
.emas-abadi-story__item--text p { color: var(--emas-abadi-muted); }
.emas-abadi-story__dot {
    display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; font-family: var(--emas-abadi-engraved); font-size: 1.1rem; font-weight: 700;
    color: var(--inv-deep); background: radial-gradient(circle at 35% 30%, #fffdf2, var(--emas-abadi-gold-3) 55%, var(--emas-abadi-gold-2));
    box-shadow: 0 0 0 2px var(--emas-abadi-gold-1);
}

/* ---------- 8. Kotak kenangan: the jewellery box (sections/_jewelbox) ---------- */
.emas-abadi-jewel { --foot: 2.9rem; position: relative; }
.emas-abadi-jewel__stage {
    position: relative; display: block; width: min(100%, 18rem); height: 13.8rem; margin: 0 auto; padding: 0; border: 0; border-radius: 16px;
    background: none; color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: height .8s cubic-bezier(.3, .8, .3, 1);
}
.emas-abadi-jewel__stage:focus-visible { outline: 2px solid var(--inv-shine); outline-offset: 4px; }
.emas-abadi-jewel.is-open .emas-abadi-jewel__stage { height: 22.6rem; }

/* the box */
.emas-abadi-jewel__box { position: absolute; left: 50%; bottom: var(--foot); z-index: 3; width: 13.6rem; height: 9.6rem; margin-left: -6.8rem; }
.emas-abadi-jewel__base {
    position: absolute; left: 0; right: 0; bottom: 0; height: 6rem; border-radius: 4px 4px 8px 8px;
    background:
        repeating-linear-gradient(90deg, rgb(255 255 255 / .025) 0 2px, transparent 2px 5px),
        radial-gradient(70% 90% at 50% 0%, color-mix(in srgb, var(--emas-abadi-emerald-hi) 80%, transparent), transparent 75%),
        linear-gradient(180deg, var(--emas-abadi-emerald), color-mix(in srgb, var(--emas-abadi-emerald) 55%, #000));
    box-shadow: inset 0 0 0 1.5px var(--emas-abadi-gold-1), 0 18px 26px -12px rgb(0 0 0 / .8);
}
/* gold bands along the top and the foot of the base */
.emas-abadi-jewel__base::before, .emas-abadi-jewel__base::after { content: ''; position: absolute; left: -2px; right: -2px; background: var(--emas-abadi-foil-v); box-shadow: 0 1px 0 var(--emas-abadi-gold-1), 0 -1px 0 var(--emas-abadi-gold-1); }
.emas-abadi-jewel__base::before { top: 0; height: .55rem; border-radius: 2px; }
.emas-abadi-jewel__base::after { bottom: 0; height: .45rem; border-radius: 0 0 8px 8px; }
.emas-abadi-jewel__plate { position: absolute; left: 50%; top: 1.1rem; width: 2.4rem; transform: translateX(-50%); filter: drop-shadow(0 2px 3px rgb(0 0 0 / .5)); }
.emas-abadi-jewel__cap { position: absolute; bottom: -1px; width: 1.6rem; height: 1.6rem; background: var(--emas-abadi-foil); background-size: 220% 100%; }
.emas-abadi-jewel__cap--l { left: -2px; clip-path: polygon(0 0, 30% 0, 30% 70%, 100% 70%, 100% 100%, 0 100%); border-bottom-left-radius: 8px; }
.emas-abadi-jewel__cap--r { right: -2px; clip-path: polygon(70% 0, 100% 0, 100% 100%, 0 100%, 0 70%, 70% 70%); border-bottom-right-radius: 8px; }
.emas-abadi-jewel__foot { position: absolute; bottom: -.8rem; width: 1.5rem; height: .95rem; border-radius: 40% 40% 50% 50%; background: radial-gradient(circle at 40% 30%, var(--emas-abadi-gold-3), var(--emas-abadi-gold-2) 50%, var(--emas-abadi-gold-1)); }
.emas-abadi-jewel__foot--l { left: .7rem; }
.emas-abadi-jewel__foot--r { right: .7rem; }

/* the domed lid: tips back on its gold hinges when the box opens */
.emas-abadi-jewel__lid {
    position: absolute; left: -.45rem; right: -.45rem; bottom: 5.85rem; height: 3.7rem; transform-origin: 50% 100%;
    border-radius: 50% 50% 6px 6px / 78% 78% 6px 6px;
    background:
        repeating-linear-gradient(90deg, rgb(255 255 255 / .025) 0 2px, transparent 2px 5px),
        radial-gradient(60% 80% at 40% 20%, color-mix(in srgb, var(--emas-abadi-emerald-hi) 90%, #fff 10%), transparent 70%),
        linear-gradient(180deg, var(--emas-abadi-emerald), color-mix(in srgb, var(--emas-abadi-emerald) 60%, #000));
    box-shadow: inset 0 0 0 1.5px var(--emas-abadi-gold-1), 0 -2px 10px rgb(0 0 0 / .3);
    transition: transform .5s cubic-bezier(.5, 0, .7, .4), opacity .2s ease .38s;
}
/* gold piping along the dome and a gold band at the lid's edge */
.emas-abadi-jewel__lid::before {
    content: ''; position: absolute; inset: .35rem .35rem .2rem; border: 2px solid var(--emas-abadi-gold-2); border-bottom: 0; border-radius: inherit;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--emas-abadi-gold-1) 70%, transparent);
}
.emas-abadi-jewel__lid::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: .6rem; border-radius: 2px; background: var(--emas-abadi-foil-v); box-shadow: 0 1px 0 var(--emas-abadi-gold-1); }
.emas-abadi-jewel__crest { position: absolute; left: 50%; top: -1rem; width: 3.3rem; overflow: visible; transform: translateX(-50%); filter: drop-shadow(0 2px 3px rgb(0 0 0 / .5)); }
.emas-abadi-jewel__hinge { position: absolute; bottom: -.4rem; z-index: 1; width: 1.2rem; height: .85rem; border-radius: 2px; background: var(--emas-abadi-foil-v); box-shadow: 0 0 0 1px var(--emas-abadi-gold-1); }
.emas-abadi-jewel__hinge::before { content: ''; position: absolute; left: 50%; top: 50%; width: .3rem; height: .3rem; margin: -.15rem 0 0 -.15rem; border-radius: 50%; background: var(--emas-abadi-gold-1); }
.emas-abadi-jewel__hinge--l { left: 1.6rem; }
.emas-abadi-jewel__hinge--r { right: 1.6rem; }
.emas-abadi-jewel.is-open .emas-abadi-jewel__lid { transform: translateY(-.3rem) scaleY(.05); opacity: 0; }

/* the inside of the lid: satin lining with tufts in a gold rim, standing up behind the box once open */
.emas-abadi-jewel__lining {
    position: absolute; left: 50%; bottom: calc(var(--foot) + 5.65rem); z-index: 1; width: 13rem; height: 11.2rem;
    transform: translateX(-50%) scaleY(0); transform-origin: 50% 100%;
    border-radius: 50% 50% 4px 4px / 26% 26% 4px 4px;
    background:
        radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--emas-abadi-gold-2) 70%, transparent) 0 1.6px, transparent 2.2px) 0 0 / 1.5rem 1.5rem,
        radial-gradient(70% 60% at 50% 30%, color-mix(in srgb, #fff 34%, var(--inv-primary)), transparent 75%),
        linear-gradient(180deg, color-mix(in srgb, var(--inv-primary) 70%, #fff 10%), color-mix(in srgb, var(--inv-primary) 60%, #000));
    box-shadow: inset 0 0 0 4px var(--emas-abadi-gold-2), inset 0 0 0 5.5px var(--emas-abadi-gold-1), inset 0 0 24px rgb(0 0 0 / .45);
    transition: transform .55s cubic-bezier(.2, .9, .3, 1.15) .38s;
}
.emas-abadi-jewel.is-open .emas-abadi-jewel__lining { transform: translateX(-50%) scaleY(1); }

/* the warm glow and the sparkles */
.emas-abadi-jewel__glow {
    position: absolute; left: 50%; bottom: calc(var(--foot) + 3rem); z-index: 0; width: 20rem; height: 20rem; pointer-events: none;
    margin-left: -10rem; border-radius: 50%; opacity: 0; transform: translateY(30%) scale(.3);
    background: radial-gradient(closest-side, color-mix(in srgb, var(--inv-shine) 75%, transparent), color-mix(in srgb, var(--inv-accent) 22%, transparent) 55%, transparent);
    transition: transform 1s cubic-bezier(.2, .8, .3, 1) .3s, opacity .8s ease .3s;
}
.emas-abadi-jewel.is-open .emas-abadi-jewel__glow { opacity: 1; transform: translateY(18%) scale(1); }
.emas-abadi-jewel__sparks { position: absolute; left: 50%; bottom: calc(var(--foot) + 7rem); z-index: 4; width: 0; height: 0; pointer-events: none; }
.emas-abadi-jewel__sparks i {
    position: absolute; left: -.4rem; top: -.4rem; width: .8rem; height: .8rem; opacity: 0;
    background: var(--emas-abadi-gold-3); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
    filter: drop-shadow(0 0 4px var(--inv-shine));
}
html.inv-anim .emas-abadi-jewel.is-open .emas-abadi-jewel__sparks i { animation: emas-abadi-spark 1.4s cubic-bezier(.2, .8, .3, 1) calc(.45s + var(--t)) both; }
@keyframes emas-abadi-spark {
    0% { opacity: 0; transform: rotate(var(--a)) translateY(0) scale(.3); }
    15% { opacity: 1; }
    100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--d) * -1)) scale(1.1) rotate(90deg); }
}

/* the locket on its chain, rising out of the box */
.emas-abadi-jewel__locket {
    position: absolute; left: 50%; bottom: calc(var(--foot) + 4.4rem); z-index: 2; display: flex; flex-direction: column; align-items: center; width: 8rem;
    opacity: 0; transform: translate(-50%, 5rem) scale(.6);
    transition: transform .9s cubic-bezier(.2, 1.15, .4, 1) .75s, opacity .4s ease .7s;
}
.emas-abadi-jewel.is-open .emas-abadi-jewel__locket { opacity: 1; transform: translate(-50%, -2.5rem) scale(1); }
.emas-abadi-jewel__chain { display: block; width: 2.4rem; height: 1.6rem; margin-bottom: -.25rem; overflow: visible; }
.emas-abadi-jewel__oval {
    position: relative; display: grid; place-items: center; width: 7.4rem; height: 9.4rem; padding: .5rem; border-radius: 50%; overflow: hidden;
    background: var(--emas-abadi-foil); background-size: 200% 100%;
    box-shadow: 0 0 0 1.5px var(--emas-abadi-gold-1), 0 0 26px color-mix(in srgb, var(--inv-shine) 70%, transparent), 0 14px 22px -10px rgb(0 0 0 / .7);
}
.emas-abadi-jewel__oval::after { content: ''; position: absolute; inset: .26rem; border-radius: 50%; border: 2.5px dotted color-mix(in srgb, #fffaf0 80%, var(--inv-shine)); pointer-events: none; }
.emas-abadi-jewel__oval img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 32%; border-radius: 50%; filter: sepia(.35) contrast(1.05); box-shadow: inset 0 0 0 1px var(--emas-abadi-gold-1); }
.emas-abadi-jewel__oval b { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; font-family: var(--emas-abadi-script); font-size: 2rem; font-weight: 400; color: var(--inv-shine); background: var(--inv-deep); }

/* the hint over the keyhole, its label under the box */
.emas-abadi-jewel__hint { position: absolute; left: 50%; bottom: calc(var(--foot) + 1.1rem); z-index: 5; width: 5.4rem; height: 5.4rem; margin-left: -2.7rem; pointer-events: none; }
.emas-abadi-jewel__hint .emas-abadi-tap__ring { width: 100%; margin: -50% 0 0 -50%; }
.emas-abadi-jewel__hint .emas-abadi-tap__hand { left: 50%; top: 56%; }
.emas-abadi-jewel__hint .emas-abadi-tap__label { bottom: auto; top: calc(100% + 2rem); }
.emas-abadi-jewel__caption { margin: -1.7rem auto 0; max-width: 28ch; font-family: var(--emas-abadi-italic); font-size: 1.1rem; font-style: italic; line-height: 1.35; color: var(--inv-shine); }
.emas-abadi-jewel__again { margin: .2rem auto 0; font-size: .78rem; color: var(--emas-abadi-cream); }

/* gallery: the first photo a tall arch over two rows, the others in a fine gold rule */
.emas-abadi-gallery .inv-gallery { gap: .6rem; }
.emas-abadi-gallery .inv-gallery__item { border-radius: 6px; box-shadow: 0 0 0 1.5px var(--emas-abadi-gold-2), 0 16px 28px -18px rgb(0 0 0 / .8); }
.emas-abadi-gallery .inv-gallery__item:first-child { grid-row: span 2; aspect-ratio: auto; border-radius: 999px 999px 8px 8px; box-shadow: 0 0 0 3px var(--emas-abadi-gold-2), 0 0 0 4px var(--emas-abadi-gold-1), 0 16px 28px -18px rgb(0 0 0 / .8); }

/* live streaming: a velvet card with a gold play medallion */
.emas-abadi-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.35rem;
    border-radius: 16px; color: var(--inv-background); text-align: left;
    background: radial-gradient(70% 90% at 0% 0%, var(--emas-abadi-emerald-hi), transparent 70%), linear-gradient(140deg, var(--emas-abadi-emerald), var(--inv-deep));
    box-shadow: inset 0 0 0 2px var(--emas-abadi-gold-2), inset 0 0 0 5px color-mix(in srgb, var(--inv-deep) 40%, transparent), inset 0 0 0 6px var(--emas-abadi-line), var(--emas-abadi-drop);
}
.emas-abadi-stream__icon { display: grid; place-items: center; width: 3.3rem; height: 3.3rem; border-radius: 50%; color: var(--inv-deep); background: var(--emas-abadi-foil); background-size: 220% 100%; box-shadow: 0 0 0 2px var(--emas-abadi-gold-1); }
.emas-abadi-stream__icon .emas-abadi-icon { width: 1.65rem; height: 1.65rem; }
.emas-abadi-stream__title { margin: 0 0 .1rem; font-family: var(--emas-abadi-serif); font-size: 1.5rem; font-weight: 700; line-height: 1.1; color: #fff; }
.emas-abadi-stream__text p { margin: 0; font-size: .86rem; color: var(--emas-abadi-cream); }
.emas-abadi-stream__text .emas-abadi-stream__note { margin-top: .3rem; font-weight: 600; color: var(--inv-shine); }
.emas-abadi-stream__button { grid-column: 1 / -1; min-height: 2.75rem; color: var(--inv-deep) !important; background: var(--emas-abadi-foil) !important; background-size: 220% 100% !important; font-weight: 600; }

/* RSVP card: ivory with a gold bead edge on top */
.emas-abadi-rsvp__card {
    position: relative; overflow: hidden; max-width: 25rem; margin: 0 auto; padding: 2.2rem 1.15rem 1.4rem; border-radius: 16px; color: var(--inv-text); background: var(--emas-abadi-paper);
    box-shadow: inset 0 0 0 2px var(--emas-abadi-gold-2), inset 0 0 0 5px var(--emas-abadi-paper), inset 0 0 0 6px var(--emas-abadi-line), 0 22px 40px -24px rgb(0 0 0 / .7);
}
.emas-abadi-rsvp__card::before {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 12px;
    background: radial-gradient(circle at 50% 0, var(--emas-abadi-gold-2) 4.5px, transparent 5.2px) 0 0 / 14px 12px repeat-x;
}
.emas-abadi-rsvp__intro { margin: 0 auto 1.1rem; max-width: 30ch; font-size: .9rem; color: var(--emas-abadi-muted); }
.emas-abadi-rsvp__sent { margin-bottom: 1rem; }
.emas-abadi-rsvp__check { display: block; width: 4.25rem; height: 4.25rem; margin: 0 auto .5rem; }
.emas-abadi-rsvp__check circle { fill: var(--inv-primary); stroke: var(--emas-abadi-gold-2); stroke-width: 2; }
.emas-abadi-rsvp__check path { fill: none; stroke: #fff; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
html.inv-anim .emas-abadi-rsvp__sent .emas-abadi-rsvp__check { animation: emas-abadi-bounce .8s cubic-bezier(.34, 1.56, .64, 1) both; }
html.inv-anim .emas-abadi-rsvp__sent .emas-abadi-rsvp__check path { animation: emas-abadi-draw .45s ease-out .35s both; }
.emas-abadi-rsvp__thanks { margin: 0; font-family: var(--emas-abadi-script); font-size: 2.3rem; line-height: 1.15; color: var(--emas-abadi-title); }
.emas-abadi-rsvp__line { margin: .1rem 0 0; font-size: .9rem; color: var(--emas-abadi-muted); }
.emas-abadi-rsvp .inv-rsvp__deadline { margin: 0 0 1rem; font-size: .84rem; font-weight: 600; color: var(--emas-abadi-title); }

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

/* co-hosts: names in the serif split by small gold diamonds, on the emerald velvet */
.emas-abadi-cohosts__list { display: flex; flex-direction: column; align-items: center; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.emas-abadi-cohosts__list li { max-width: 26ch; font-family: var(--emas-abadi-serif); font-size: 1.16rem; font-weight: 600; line-height: 1.3; color: #fff; }
.emas-abadi-cohosts__list li + li::before { content: ''; display: block; width: 7px; height: 7px; margin: 0 auto .55rem; transform: rotate(45deg); background: var(--emas-abadi-foil); box-shadow: 0 0 8px var(--inv-shine); }

/* contacts */
.emas-abadi-contacts__list { display: grid; gap: .7rem; max-width: 24rem; margin: 0 auto; }
.emas-abadi-contact {
    display: grid; grid-template-columns: 2.9rem minmax(0, 1fr) auto; align-items: center; gap: .8rem; padding: .55rem .55rem .55rem .6rem; border-radius: 999px;
    background: var(--emas-abadi-paper); text-align: left; box-shadow: inset 0 0 0 1.5px var(--emas-abadi-gold-2), 0 10px 18px -14px rgb(0 0 0 / .5);
}
.emas-abadi-contact__avatar {
    display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; font-family: var(--emas-abadi-engraved); font-size: 1.2rem; font-weight: 700;
    color: var(--inv-shine); background: radial-gradient(circle at 35% 30%, var(--emas-abadi-emerald-hi), var(--inv-deep)); box-shadow: 0 0 0 2px var(--emas-abadi-paper), 0 0 0 3.5px var(--inv-accent);
}
.emas-abadi-contact p { margin: 0; }
.emas-abadi-contact__name { font-weight: 600; font-size: .95rem; line-height: 1.3; overflow-wrap: anywhere; }
.emas-abadi-contact__role { font-size: .78rem; color: var(--emas-abadi-muted); }
.emas-abadi-contact__phone { font-size: .85rem; }
.emas-abadi-contact__button { min-height: 2.5rem; padding: .45rem .95rem; font-size: .8rem; font-weight: 600; }
.emas-abadi-contact__button .emas-abadi-icon { width: 1.05rem; height: 1.05rem; }

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

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

/* closing: compact — the photo melting into the velvet, the rings, thanks and the names (above the menu) */
.emas-abadi-closing { padding: 2.6rem 1.6rem 5.8rem; }
.emas-abadi-closing--photo { padding-top: 0; }
.emas-abadi-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, transparent, #000 10%, #000 52%, transparent); mask: linear-gradient(180deg, transparent, #000 10%, #000 52%, transparent);
}
.emas-abadi-closing__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 24%; }
.emas-abadi-closing__body { position: relative; }
.emas-abadi-closing--photo .emas-abadi-closing__body { margin-top: -4.6rem; }
.emas-abadi-closing__rings { width: 5rem; margin: 0 auto .4rem; filter: drop-shadow(0 3px 6px rgb(0 0 0 / .55)); }
.emas-abadi-closing__title { margin: 0 0 .6rem; font-family: var(--emas-abadi-serif); font-size: 2.05rem; font-weight: 600; line-height: 1.05; color: #fff; }
.emas-abadi-closing__title em { font-family: var(--emas-abadi-script); font-style: normal; font-weight: 400; font-size: 1.36em; color: var(--inv-shine); }
.emas-abadi-closing__message { margin: 0 auto; max-width: 32ch; font-size: .9rem; line-height: 1.55; color: var(--emas-abadi-cream); }
.emas-abadi-closing__salam { margin: .7rem auto 0; max-width: 28ch; font-family: var(--emas-abadi-italic); font-size: 1.1rem; font-style: italic; font-weight: 500; line-height: 1.35; color: var(--inv-shine); }
.emas-abadi-closing__signature { margin: .45rem auto 0; max-width: 30ch; font-size: .84rem; color: var(--emas-abadi-cream); }
.emas-abadi-closing__names { margin: .6rem 0 0; font-family: var(--emas-abadi-script); font-size: 2.6rem; line-height: 1.15; padding: 0 .2em .1em; }

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

/* the three answers as cards with icons (the radio dot is hidden but still focusable) */
.emas-abadi-rsvp .inv-form__choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.emas-abadi-rsvp .inv-form__choices legend { margin-bottom: .5rem; padding: 0; }
.emas-abadi-rsvp .inv-form__choices label {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: .45rem;
    min-height: 5.4rem; padding: .85rem .3rem .75rem; border-radius: 12px; cursor: pointer; text-align: center;
    font-size: .84rem; font-weight: 600; line-height: 1.2; color: var(--inv-text); background: #fff;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 70%, transparent);
    transition: background-color .25s ease, color .25s ease, transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s ease;
}
.emas-abadi-rsvp .inv-form__choices input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.emas-abadi-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; }
.emas-abadi-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(--emas-abadi-choice-icon) center / contain no-repeat; mask: var(--emas-abadi-choice-icon) center / contain no-repeat;
}
.emas-abadi-rsvp .inv-form__choices label:nth-of-type(1) { --emas-abadi-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"); }
.emas-abadi-rsvp .inv-form__choices label:nth-of-type(2) { --emas-abadi-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"); }
.emas-abadi-rsvp .inv-form__choices label:nth-of-type(3) { --emas-abadi-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"); }
.emas-abadi-rsvp .inv-form__choices label:has(input:checked) { color: #fff; background: linear-gradient(180deg, var(--emas-abadi-emerald-hi), var(--emas-abadi-emerald)); transform: translateY(-3px); box-shadow: 0 0 0 2px var(--inv-accent), 0 12px 24px -12px rgb(0 0 0 / .6); }
.emas-abadi-rsvp .inv-form__choices label:has(input:checked)::before { background-color: rgb(255 255 255 / .2); transform: scale(1.1); }
.emas-abadi-rsvp .inv-form__choices label:has(input:checked)::after { color: var(--inv-shine); }
.emas-abadi-rsvp .inv-form__choices label:has(input:focus-visible) { outline: 2px solid var(--inv-accent); outline-offset: 3px; }

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

/* ---------- 10. shared components ---------- */
.emas-abadi-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(--emas-abadi-sans);
    box-shadow: inset 0 1px 0 var(--emas-abadi-line);
}

/* ---------- 11. 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) {
    .emas-abadi-cover { --frame-cover: 15.2rem; }
    .emas-abadi-cover__names { font-size: 2.7rem; margin-top: .9rem; }
}
@media (max-height: 760px) {
    .emas-abadi-cover { --frame-cover: 14.2rem; padding-top: 1.2rem; padding-bottom: 1.3rem; }
    .emas-abadi-cover__art { margin-top: 2.2rem; }
    .emas-abadi-cover__names { font-size: 2.55rem; margin-top: .8rem; }
    .emas-abadi-cover__quote { font-size: 1rem; margin-top: .45rem; }
    .emas-abadi-cover__guest { margin-top: .6rem; }
    .emas-abadi-cover__open { margin-top: .7rem; }
    .emas-abadi-cover__roses { width: 9.6rem; }
}
@media (max-height: 700px) {
    .emas-abadi-cover { --frame-cover: 13rem; }
    .emas-abadi-cover__art { margin-top: 2rem; }
    .emas-abadi-cover__names { font-size: 2.4rem; margin-top: .7rem; }
}
@media (max-height: 660px) {
    .emas-abadi-cover { --frame-cover: 12rem; padding-top: 1rem; padding-bottom: 1.1rem; }
    .emas-abadi-cover__title { font-size: .66rem; }
    .emas-abadi-cover__art { margin-top: 1.85rem; }
    .emas-abadi-cover__names { font-size: 2.25rem; margin-top: .6rem; }
    .emas-abadi-cover__date span { font-size: .78rem; }
    .emas-abadi-cover__quote { font-size: .94rem; line-height: 1.26; }
    .emas-abadi-cover__guest { padding: .35rem .85rem .4rem; }
    .emas-abadi-cover__guest-name { font-size: 1.08rem; }
    .emas-abadi-cover__open { min-height: 2.7rem; padding: .55rem 1.7rem; }
    .emas-abadi-cover__roses { width: 8.6rem; }
}
@media (max-height: 600px) {
    .emas-abadi-cover { --frame-cover: 10.6rem; }
    .emas-abadi-cover__names { font-size: 2.1rem; }
    .emas-abadi-cover__quote { font-size: .88rem; }
}
@media (max-width: 380px) {
    .emas-abadi-cover__names { font-size: 2.3rem; }
    .emas-abadi-cover__date span { font-size: .74rem; letter-spacing: .04em; padding-left: 1.25rem; padding-right: 1.25rem; }
}

/* wide screens: the phone-width column on black velvet with the damask print */
@media (min-width: 560px) {
    body.emas-abadi-body {
        background: radial-gradient(70vw 60vh at 50% 0%, color-mix(in srgb, var(--inv-primary) 50%, transparent), transparent 70%), var(--inv-deep);
        background-attachment: fixed;
    }
    body.emas-abadi-body::before {
        content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .1; background: var(--inv-shine);
        -webkit-mask: var(--emas-abadi-damask) center / 64px 96px repeat; mask: var(--emas-abadi-damask) center / 64px 96px repeat;
    }
    .emas-abadi-main { box-shadow: 0 0 0 1px var(--emas-abadi-line), 0 30px 60px -30px rgb(0 0 0 / .7); }
}

/* ---------- 12. motion ---------- */
@keyframes emas-abadi-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes emas-abadi-bounce { 0% { transform: scale(0); } 55% { transform: scale(1.15); } 75% { transform: scale(.94); } 100% { transform: scale(1); } }
@keyframes emas-abadi-rise { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes emas-abadi-zoom-out { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes emas-abadi-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes emas-abadi-shine { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
@keyframes emas-abadi-breathe { 0%, 100% { opacity: .65; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes emas-abadi-bloom { from { opacity: 0; transform: scale(.6) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes emas-abadi-bloom-flip { from { opacity: 0; transform: rotate(172deg) scale(.6); } to { opacity: 1; transform: rotate(180deg); } }
@keyframes emas-abadi-ping { 0% { opacity: .9; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.9); } }
@keyframes emas-abadi-tap { 0%, 100% { transform: translate(0, 0) scale(1); } 45% { transform: translate(-3px, -5px) scale(.92); } }
@keyframes emas-abadi-sweep { 0% { transform: translateX(-40%); } 60%, 100% { transform: translateX(40%); } }
@keyframes emas-abadi-sheen { 0%, 70% { background-position: 120% 0; } 100% { background-position: -30% 0; } }
@keyframes emas-abadi-glint { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes emas-abadi-sway-x { 0%, 100% { left: 50%; } 30% { left: 38%; } 70% { left: 62%; } }
@keyframes emas-abadi-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 emas-abadi-nudge { 0%, 86%, 100% { transform: none; } 90% { transform: rotate(-2.5deg); } 94% { transform: rotate(2.5deg); } }

/* gold leaf: a slow moving shine */
html.inv-anim :is(.emas-abadi-heading__title em, .emas-abadi-cover__names, .emas-abadi-closing__names, .emas-abadi-cover__open, .emas-abadi-tap__label, .emas-abadi-cartouche__number, .emas-abadi-cover__date span, .emas-abadi-compare__hint) { animation: emas-abadi-shine 7s ease-in-out infinite; }

/* cover (≤ 2.5 s, once): the frame rises, its photo settles, the roses bloom; then a living ground */
html.inv-anim .emas-abadi-frame--cover { animation: emas-abadi-rise .9s cubic-bezier(.2, .7, .2, 1) .1s both; }
html.inv-anim .emas-abadi-frame--cover .emas-abadi-frame__photo { animation: emas-abadi-zoom-out 1.4s cubic-bezier(.2, .7, .2, 1) .1s both; }
html.inv-anim .emas-abadi-frame__sheen { animation: emas-abadi-sheen 8s ease-in-out 2s infinite; }
html.inv-anim .emas-abadi-cover__roses--tl { animation: emas-abadi-bloom 1.1s cubic-bezier(.2, .8, .3, 1) .3s both; }
html.inv-anim .emas-abadi-cover__roses--br { animation: emas-abadi-bloom-flip 1.1s cubic-bezier(.2, .8, .3, 1) .45s both; }
html.inv-anim .emas-abadi-cover__art::before { animation: emas-abadi-breathe 5s ease-in-out infinite; }

/* the tap marker: rings ping outward, the hand taps; the closed box gives a little nudge now and then */
html.inv-anim .emas-abadi-tap__ring { animation: emas-abadi-ping 1.8s ease-out infinite; }
html.inv-anim .emas-abadi-tap__ring--late { animation-delay: .9s; }
html.inv-anim .emas-abadi-tap__hand { animation: emas-abadi-tap 1.2s ease-in-out infinite; }
html:not(.inv-anim) .emas-abadi-tap__ring { opacity: .6; }
html.inv-anim .emas-abadi-jewel:not(.is-seen) .emas-abadi-jewel__box { animation: emas-abadi-nudge 3.2s ease-in-out 1.5s infinite; transform-origin: 50% 100%; }
html.inv-anim .emas-abadi-rings__gem { animation: emas-abadi-glint 2.6s ease-in-out infinite; }
html.inv-anim .emas-abadi-compare:not(.is-touched) .emas-abadi-compare__handle { animation: emas-abadi-sway-x 3.6s ease-in-out 1s infinite; }
html.inv-anim .emas-abadi-compare:not(.is-touched) .emas-abadi-compare__then { animation: emas-abadi-sway-clip 3.6s ease-in-out 1s infinite; }
/* without motion the box opens without its choreography */
html:not(.inv-anim) .emas-abadi-jewel * { transition: none !important; }

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

/* ---------- 13. intro scene "Tirai Beludru" (scene.json + sections/_scene) ----------
   The intro is teleported to <body>: everything here stands on its own classes. */
.emas-abadi-scene-damask { position: absolute; inset: 0; background: var(--inv-shine); opacity: .14; -webkit-mask: var(--emas-abadi-damask) center / 64px 96px repeat; mask: var(--emas-abadi-damask) center / 64px 96px repeat; }
.emas-abadi-scene-glow { position: absolute; inset: 0; background: radial-gradient(closest-side, color-mix(in srgb, var(--inv-shine) 42%, transparent), transparent); }
html.inv-anim .emas-abadi-scene-glow { animation: emas-abadi-breathe 4s ease-in-out infinite; }
.emas-abadi-scene-frame { position: absolute; inset: 0; container-type: size; display: grid; place-items: start center; }
.emas-abadi-scene-frame .emas-abadi-frame { --frame-w: min(100cqw - 2.4rem, (100cqh - 2.6rem) * .8); margin-top: 2rem; }
.emas-abadi-scene-flakes { position: absolute; inset: 0; }
.emas-abadi-scene-roses { position: absolute; inset: 0; }
.emas-abadi-scene-roses .emas-abadi-roses { width: 100%; height: auto; }

/* a half of the velvet curtain: deep folds, a sheen on each fold, the gold braid and fringe on the inner edge */
.emas-abadi-scene-curtain {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgb(0 0 0 / .35), transparent 18%, transparent 75%, rgb(0 0 0 / .5)),
        repeating-linear-gradient(90deg,
            color-mix(in srgb, var(--inv-primary) 45%, #000) 0,
            color-mix(in srgb, var(--inv-primary) 85%, #000) 7%,
            color-mix(in srgb, var(--inv-primary) 95%, #fff 5%) 10%,
            color-mix(in srgb, var(--inv-primary) 70%, #000) 14%,
            color-mix(in srgb, var(--inv-primary) 40%, #000) 19%);
    box-shadow: 0 0 40px rgb(0 0 0 / .7);
}
.emas-abadi-scene-curtain__braid { position: absolute; top: 0; bottom: 0; width: 1.6rem; }
.emas-abadi-scene-curtain--left .emas-abadi-scene-curtain__braid { right: 0; }
.emas-abadi-scene-curtain--right .emas-abadi-scene-curtain__braid { left: 0; transform: scaleX(-1); }
/* a twisted gold braid plus a fringe of gold threads */
.emas-abadi-scene-curtain__braid {
    background:
        repeating-linear-gradient(135deg, var(--emas-abadi-gold-1) 0 3px, var(--emas-abadi-gold-3) 3px 5px, var(--emas-abadi-gold-2) 5px 9px) 0 0 / .6rem 100% no-repeat,
        repeating-linear-gradient(90deg, var(--emas-abadi-gold-2) 0 1.5px, var(--emas-abadi-gold-1) 1.5px 2.5px, transparent 2.5px 4px) .6rem 0 / 1rem 100% no-repeat;
    filter: drop-shadow(0 0 4px rgb(0 0 0 / .5));
}
/* the tie-back with its tassel, a little above the middle */
.emas-abadi-scene-curtain__tassel { position: absolute; top: 56%; width: 2.6rem; height: auto; overflow: visible; filter: drop-shadow(0 4px 6px rgb(0 0 0 / .6)); }
.emas-abadi-scene-curtain--left .emas-abadi-scene-curtain__tassel { right: .2rem; }
.emas-abadi-scene-curtain--right .emas-abadi-scene-curtain__tassel { left: .2rem; }
/* the valance: velvet swags hemmed with a gold braid, a fringe and pearls */
.emas-abadi-scene-valance {
    position: absolute; inset: 0;
    background:
        radial-gradient(60% 90% at 50% 0%, color-mix(in srgb, var(--inv-primary) 75%, #000) 0 68%, transparent 70%) 0 0 / 33.34% 100% repeat-x,
        linear-gradient(180deg, color-mix(in srgb, var(--inv-primary) 55%, #000), color-mix(in srgb, var(--inv-primary) 70%, #000));
    -webkit-mask: radial-gradient(60% 100% at 50% 0%, #000 0 70%, transparent 71%) 0 0 / 33.34% 100% repeat-x, linear-gradient(#000, #000) 0 0 / 100% 45% no-repeat;
    mask: radial-gradient(60% 100% at 50% 0%, #000 0 70%, transparent 71%) 0 0 / 33.34% 100% repeat-x, linear-gradient(#000, #000) 0 0 / 100% 45% no-repeat;
    filter: drop-shadow(0 6px 8px rgb(0 0 0 / .6));
}
.emas-abadi-scene-valance::after {
    content: ''; position: absolute; left: 0; right: 0; top: 40%; height: 8px;
    background: radial-gradient(circle at 5px 4px, var(--emas-abadi-gold-3) 0 1px, var(--emas-abadi-gold-2) 2px, var(--emas-abadi-gold-1) 3.4px, transparent 4px) 0 0 / 10px 8px repeat-x;
}

/* the name card: black velvet in a double gold rule with an arched top, the names in gold leaf */
body.emas-abadi-body .inv-intro--scene .inv-scene__card {
    top: 79%;
    -webkit-mask: none; mask: none; -webkit-backdrop-filter: none; backdrop-filter: none; aspect-ratio: auto;
    padding: 1.5rem 1.2rem 1.15rem; border-radius: 999px 999px 12px 12px / 6rem 6rem 12px 12px; color: var(--inv-background);
    background: radial-gradient(80% 70% at 50% 0%, color-mix(in srgb, var(--inv-primary) 70%, transparent), transparent 80%), var(--inv-deep);
    box-shadow: inset 0 0 0 2px var(--emas-abadi-gold-2), inset 0 0 0 5px var(--inv-deep), inset 0 0 0 6px var(--emas-abadi-line), 0 0 0 1px var(--emas-abadi-gold-1), 0 24px 40px -14px rgb(0 0 0 / .8);
}
body.emas-abadi-body .inv-scene__card .inv-intro__label { font-family: var(--emas-abadi-engraved); font-size: .66rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--inv-shine); }
body.emas-abadi-body .inv-scene__card .inv-intro__names {
    line-height: 1.15; overflow-wrap: anywhere; padding: 0 .1em .1em;
    background: var(--emas-abadi-foil); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
}
body.emas-abadi-body .inv-scene__card .inv-intro__rule { height: 1px; width: 3.4rem; background: var(--inv-accent); }
body.emas-abadi-body .inv-scene__card .inv-intro__date { font-family: var(--emas-abadi-engraved); font-weight: 600; font-size: .82rem; letter-spacing: .06em; color: var(--emas-abadi-cream); white-space: nowrap; }
@media (max-height: 700px) {
    body.emas-abadi-body .inv-intro--scene .inv-scene__card { top: 81%; padding-top: 1.2rem; padding-bottom: 1rem; }
}
