/*
 * Template "Taman Mawar Merah" (Anniversary Pernikahan) — a romantic red rose garden for a love that lasts:
 * crimson velvet, ivory and blush pages, painted garden roses with many petals, deep green serrated leaves and
 * gold foil. Signature pieces: the rose arbour round the photo (sections/_frame), the gold heart locket
 * (sections/_locket), "Dulu & Sekarang" as an open locket (sections/_compare) and the love letter sealed with
 * red wax (sections/message).
 *
 * Colours come from the chosen colour variant (template.json → <x-inv.head>): --inv-primary (crimson / wine /
 * emerald / coral), --inv-accent (the gold foil), --inv-background (ivory), --inv-text, --inv-deep (the velvet
 * bands, the cover), --inv-shine (light foil on dark), --inv-soft (the blush tone), --inv-petal and --inv-leaf
 * (the roses).
 *
 * Section tones: .tmm-tone--light (ivory), --blush (rose blush), --deep (crimson velvet with gold).
 * 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 "Mawar Merah" variant (the variant's colours override these) */
    --inv-primary: #b80f2e;
    --inv-accent: #d6a645;
    --inv-background: #fff7ef;
    --inv-text: #3d0a15;
    --inv-deep: #5c0616;
    --inv-shine: #f7d68b;
    --inv-soft: #fbd9d5;
    --inv-petal: #dc1838;
    --inv-leaf: #2f6e36;
    --inv-radius: 16px;

    --tmm-serif: var(--inv-font-heading, 'Playfair Display'), Georgia, 'Times New Roman', serif;
    --tmm-script: var(--inv-font-display, 'Pinyon Script'), 'Brush Script MT', cursive;
    --tmm-hand: 'Dancing Script', 'Segoe Script', cursive;
    --tmm-sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --tmm-col: 460px;

    /* gold foil, mixed from the accent: dark bronze → gold → pale light */
    --tmm-gold-1: color-mix(in srgb, var(--inv-accent) 58%, #3a2203);
    --tmm-gold-2: var(--inv-accent);
    --tmm-gold-3: color-mix(in srgb, var(--inv-accent) 40%, #fff7da);
    --tmm-gold-ink: color-mix(in srgb, var(--inv-accent) 62%, #3a1a03);
    --tmm-foil: linear-gradient(100deg, var(--tmm-gold-1), var(--tmm-gold-2) 30%, var(--tmm-gold-3) 48%, var(--tmm-gold-2) 62%, var(--tmm-gold-1));

    /* the painted roses: a dark heart, the variant red, a bright rolled edge */
    --tmm-petal-0: color-mix(in srgb, var(--inv-petal) 48%, #1a0006);
    --tmm-petal-1: color-mix(in srgb, var(--inv-petal) 70%, #2a000c);
    --tmm-petal-2: var(--inv-petal);
    --tmm-petal-3: color-mix(in srgb, var(--inv-petal) 72%, #ff9f9a);
    --tmm-petal-4: color-mix(in srgb, var(--inv-petal) 38%, #ffeae6);
    --tmm-petal-line: color-mix(in srgb, var(--inv-petal) 50%, #2a000c);
    --tmm-leaf-1: var(--inv-leaf);
    --tmm-leaf-2: color-mix(in srgb, var(--inv-leaf) 62%, #051a09);
    --tmm-leaf-3: color-mix(in srgb, var(--inv-leaf) 55%, #dff3b8);

    --tmm-paper: color-mix(in srgb, #fff 70%, var(--inv-background));
    --tmm-title: color-mix(in srgb, var(--inv-primary) 84%, var(--inv-deep));
    --tmm-muted: color-mix(in srgb, var(--inv-text) 78%, var(--inv-background));
    --tmm-cream-muted: color-mix(in srgb, var(--inv-background) 86%, transparent);
    --tmm-line: color-mix(in srgb, var(--inv-accent) 58%, transparent);
    --tmm-drop: 0 24px 40px -24px color-mix(in srgb, var(--inv-deep) 70%, transparent);
    --tmm-velvet:
        radial-gradient(90% 42% at 15% 0%, color-mix(in srgb, var(--inv-primary) 90%, transparent), transparent 75%),
        radial-gradient(70% 36% at 100% 100%, color-mix(in srgb, var(--inv-petal) 34%, transparent), transparent 75%),
        radial-gradient(60% 30% at 100% 30%, color-mix(in srgb, var(--inv-accent) 14%, transparent), transparent 75%),
        var(--inv-deep);

    /* a rose damask: small stamped roses with leaves and dots on a staggered grid (a mask, so it takes any colour) */
    --tmm-damask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.1' stroke-linecap='round'%3E%3Cpath d='M16 11c-3.2 0-5.4 2.2-5.4 5s2.2 5 5.4 5 5.4-2.2 5.4-5-2.2-5-5.4-5Zm0 3c-1.2 0-2.1.8-2.1 1.8s.9 1.8 2.1 1.8 2-.8 2-1.8'/%3E%3Cpath d='M10.6 17.5c-3 1.6-4.4 4.4-3 6.8 2.4-.4 4.4-2.6 5-5.2M21.4 17.5c3 1.6 4.4 4.4 3 6.8-2.4-.4-4.4-2.6-5-5.2M16 21v6'/%3E%3Cpath d='M48 43c-3.2 0-5.4 2.2-5.4 5s2.2 5 5.4 5 5.4-2.2 5.4-5-2.2-5-5.4-5Zm0 3c-1.2 0-2.1.8-2.1 1.8s.9 1.8 2.1 1.8 2-.8 2-1.8'/%3E%3Cpath d='M42.6 49.5c-3 1.6-4.4 4.4-3 6.8 2.4-.4 4.4-2.6 5-5.2M53.4 49.5c3 1.6 4.4 4.4 3 6.8-2.4-.4-4.4-2.6-5-5.2M48 53v6'/%3E%3C/g%3E%3Cg fill='%23000'%3E%3Ccircle cx='48' cy='16' r='1.4'/%3E%3Ccircle cx='16' cy='48' r='1.4'/%3E%3Ccircle cx='32' cy='32' r='.9'/%3E%3Ccircle cx='0' cy='32' r='.9'/%3E%3Ccircle cx='64' cy='32' r='.9'/%3E%3C/g%3E%3C/svg%3E");
    --tmm-heart-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='4 4 92 88' preserveAspectRatio='none'%3E%3Cpath d='M50 92C22 72 4 56 4 32 4 16 16 4 30 4c10 0 16 6 20 14 4-8 10-14 20-14 14 0 26 12 26 28 0 24-18 40-46 60Z'/%3E%3C/svg%3E");

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

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

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

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

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

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

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

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

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

/* ---------- 2. section tones ---------- */
/* light: ivory with a rose glow in a corner and the damask */
.tmm-tone--light {
    background:
        radial-gradient(70% 28% at 100% 0%, color-mix(in srgb, var(--inv-petal) 18%, transparent), transparent 75%),
        radial-gradient(70% 28% at 0% 100%, color-mix(in srgb, var(--inv-petal) 15%, transparent), transparent 75%),
        radial-gradient(50% 20% at 0% 20%, color-mix(in srgb, var(--inv-accent) 14%, transparent), transparent 75%),
        var(--inv-background);
}
/* blush: a warm wash of rose */
.tmm-tone--blush {
    background:
        radial-gradient(80% 30% at 50% 0%, color-mix(in srgb, #fff 45%, transparent), transparent 75%),
        radial-gradient(70% 34% at 0% 100%, color-mix(in srgb, var(--inv-petal) 26%, transparent), transparent 75%),
        radial-gradient(60% 30% at 100% 40%, color-mix(in srgb, var(--inv-petal) 14%, transparent), transparent 75%),
        linear-gradient(180deg, color-mix(in srgb, var(--inv-soft) 82%, var(--inv-petal)), color-mix(in srgb, var(--inv-soft) 80%, var(--inv-background)));
}
.tmm-tone--light::before, .tmm-tone--blush::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: var(--inv-primary); opacity: .09;
    -webkit-mask: var(--tmm-damask) center top / 64px 64px repeat; mask: var(--tmm-damask) center top / 64px 64px repeat;
}
/* deep: crimson velvet with a gold damask */
.tmm-tone--deep { color: var(--inv-background); background: var(--tmm-velvet); }
.tmm-tone--deep::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: var(--inv-shine); opacity: .09;
    -webkit-mask: var(--tmm-damask) center top / 64px 64px repeat; mask: var(--tmm-damask) center top / 64px 64px repeat;
}
.tmm-tone--deep a:not(.inv-button) { color: var(--inv-shine); }
.tmm-tone--deep .tmm-arabic { color: var(--inv-shine); }

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

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

/* heading: eyebrow between two tiny petals, serif title, the last word in the script font, the rose divider */
.tmm-heading { margin: 0 0 2rem; }
.tmm-heading__eyebrow {
    display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 .45rem;
    font-size: .68rem; font-weight: 600; line-height: 1.2; letter-spacing: .26em; text-transform: uppercase; color: var(--tmm-gold-ink);
}
.tmm-heading__eyebrow::before, .tmm-heading__eyebrow::after {
    content: ''; width: 7px; height: 9px; flex: none; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: radial-gradient(circle at 50% 30%, var(--tmm-petal-3), var(--tmm-petal-1));
}
.tmm-heading__eyebrow::before { transform: rotate(-30deg); }
.tmm-heading__eyebrow::after { transform: rotate(30deg); }
.tmm-heading__title {
    margin: 0; font-family: var(--tmm-serif); font-size: 2.05rem; font-weight: 600; line-height: 1.12;
    letter-spacing: -.005em; color: var(--tmm-title); text-wrap: balance;
}
.tmm-heading__title em {
    display: inline-block; padding: 0 .1em .12em; font-family: var(--tmm-script); font-style: normal; font-weight: 400;
    font-size: 1.3em; line-height: .9; color: var(--inv-primary);
}
.tmm-heading__divider { margin: .7rem auto 0; }
.tmm-tone--deep .tmm-heading__eyebrow { color: var(--inv-shine); }
.tmm-tone--deep .tmm-heading__title { color: #fff; }

/* the rose divider */
.tmm-divider { display: block; width: min(14rem, 74%); height: auto; overflow: visible; filter: drop-shadow(0 2px 2px rgb(0 0 0 / .15)); }

/* rose sprays */
.tmm-roses { display: block; overflow: visible; pointer-events: none; }
.tmm-roses { filter: drop-shadow(0 6px 8px color-mix(in srgb, var(--inv-deep) 40%, transparent)); }

/* the tap marker (the seal, the Dulu & Sekarang handle): two pulsing gold rings and a hand */
.tmm-tap { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; pointer-events: none; }
.tmm-tap__ring {
    position: absolute; left: 50%; top: 50%; width: 100%; aspect-ratio: 1; margin: -50% 0 0 -50%; border-radius: 50%;
    border: 2.5px solid var(--inv-shine); opacity: 0;
}
.tmm-tap__hand {
    position: absolute; left: 54%; top: 56%; width: 2.6rem; height: 2.6rem;
    fill: #fff; stroke: var(--tmm-gold-1); stroke-width: 1.4; stroke-linejoin: round;
    filter: drop-shadow(0 4px 6px rgb(0 0 0 / .35));
}

/* ---------- 4. cover ---------- */
.tmm-cover {
    --frame-cover: 16.2rem;
    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.4rem 1.4rem 1.8rem; isolation: isolate; color: var(--inv-background);
    background:
        radial-gradient(70% 34% at 50% 32%, color-mix(in srgb, var(--inv-primary) 92%, transparent), transparent 75%),
        radial-gradient(60% 30% at 0% 100%, color-mix(in srgb, var(--inv-petal) 34%, transparent), transparent 75%),
        radial-gradient(50% 26% at 100% 0%, color-mix(in srgb, var(--inv-accent) 22%, transparent), transparent 75%),
        var(--inv-deep);
    transition: opacity .9s ease;
}
/* the gold damask */
.tmm-cover::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .1; background: var(--inv-shine);
    -webkit-mask: var(--tmm-damask) center top / 64px 64px repeat; mask: var(--tmm-damask) center top / 64px 64px repeat;
}
/* gold motes drifting up slowly (a living ground) */
.tmm-cover::after {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .8;
    background:
        radial-gradient(1.6px 1.6px at 12% 82%, var(--inv-shine), transparent),
        radial-gradient(1.2px 1.2px at 28% 64%, var(--inv-shine), transparent),
        radial-gradient(2px 2px at 76% 74%, var(--inv-shine), transparent),
        radial-gradient(1.3px 1.3px at 88% 40%, var(--inv-shine), transparent),
        radial-gradient(1.8px 1.8px at 8% 30%, var(--inv-shine), transparent),
        radial-gradient(1.2px 1.2px at 62% 18%, var(--inv-shine), transparent),
        radial-gradient(1.5px 1.5px at 42% 92%, var(--inv-shine), transparent);
    background-size: 100% 420px;
}
.tmm-cover__roses { position: absolute; z-index: -1; width: 12rem; }
.tmm-cover__roses--tl { left: -2.6rem; top: -2rem; }
.tmm-cover__roses--br { right: -2.6rem; bottom: -2rem; transform: rotate(180deg); }

/* painted petals falling slowly across the cover */
.tmm-cover__petals { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.tmm-cover__petals svg, .tmm-scene-petals svg {
    position: absolute; left: var(--x); top: -6%; width: calc(1.2rem * var(--s)); height: auto; opacity: 0; overflow: visible;
    filter: drop-shadow(0 2px 3px rgb(0 0 0 / .3));
}

.tmm-cover__inner { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 400px; text-align: center; transition: transform .9s cubic-bezier(.5, 0, .3, 1); }

.tmm-cover__title {
    display: inline-flex; align-items: center; gap: .6rem; margin: 0;
    font-size: .7rem; font-weight: 500; line-height: 1.25; letter-spacing: .28em; text-transform: uppercase; color: var(--inv-shine);
}
.tmm-cover__title::before, .tmm-cover__title::after { content: ''; width: 1.5rem; height: 1px; background: var(--inv-shine); opacity: .8; }

.tmm-cover__art { position: relative; width: var(--frame-cover); }
/* a warm light breathing behind the arbour */
.tmm-cover__art::before {
    content: ''; position: absolute; z-index: -1; left: -24%; right: -24%; top: 0; bottom: -4%; border-radius: 50%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--inv-shine) 34%, transparent), color-mix(in srgb, var(--inv-petal) 14%, transparent) 60%, transparent);
}

.tmm-cover__names {
    margin: .2rem 0 0; max-width: 100%; font-family: var(--tmm-script); font-size: 2.75rem; font-weight: 400; line-height: 1.18;
    padding: 0 .25em .06em; white-space: nowrap; overflow-wrap: normal;
    filter: drop-shadow(0 2px 6px rgb(0 0 0 / .35));
}
.tmm-cover__date { margin: .3rem 0 0; }
.tmm-cover__date span {
    display: inline-block; padding: .3rem 1.6rem .34rem; font-family: var(--tmm-serif); font-size: .98rem; font-weight: 600; letter-spacing: .03em;
    color: #fff; background: linear-gradient(180deg, color-mix(in srgb, var(--inv-petal) 85%, #fff), var(--tmm-petal-1));
    clip-path: polygon(0 0, 100% 0, calc(100% - .7rem) 50%, 100% 100%, 0 100%, .7rem 50%);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .3), inset 0 -2px 0 rgb(0 0 0 / .15);
}
.tmm-cover__quote {
    max-width: 30ch; margin: .5rem 0 0; font-family: var(--tmm-serif); font-style: italic; font-weight: 500;
    font-size: 1rem; line-height: 1.34; color: var(--tmm-cream-muted);
}
.tmm-cover__guest {
    width: min(100%, 18.5rem); margin: .7rem 0 0; padding: .45rem 1rem .5rem; border-radius: 14px;
    background: color-mix(in srgb, var(--inv-background) 9%, transparent);
    border: 1px solid var(--tmm-line);
}
.tmm-cover__guest p { margin: 0; font-size: .6rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--inv-shine); }
.tmm-cover__guest-name { display: block; font-family: var(--tmm-serif); font-size: 1.2rem; font-weight: 600; line-height: 1.22; color: #fff; overflow-wrap: anywhere; }
.tmm-cover__open {
    margin-top: .8rem; min-height: 2.9rem; padding: .65rem 1.9rem; font-weight: 600; letter-spacing: .06em;
    color: var(--inv-deep); background: var(--tmm-foil); background-size: 220% 100%;
    border: 1px solid var(--tmm-gold-3);
    filter: drop-shadow(0 10px 14px rgb(0 0 0 / .45));
}

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

/* ---------- 5. the rose arbour (sections/_frame) ---------- */
.tmm-arbor {
    --frame-w: 15rem; --frame-pos: center 24%; --arch: 50% 50% 14px 14px / 28% 28% 14px 14px;
    position: relative; width: var(--frame-w); aspect-ratio: 4 / 5; margin: calc(var(--frame-w) * .2) auto 0; flex: none;
}
/* the gold garden trellis glowing behind the window */
.tmm-arbor__trellis {
    position: absolute; inset: -9% -17% -5%; z-index: -1; border-radius: 50% 50% 8px 8px / 32% 32% 8px 8px; pointer-events: none; opacity: .5;
    background:
        repeating-linear-gradient(45deg, var(--tmm-gold-2) 0 1.2px, transparent 1.2px 16px),
        repeating-linear-gradient(-45deg, var(--tmm-gold-2) 0 1.2px, transparent 1.2px 16px);
    -webkit-mask: radial-gradient(closest-side, #000 55%, transparent); mask: radial-gradient(closest-side, #000 55%, transparent);
}
.tmm-arbor__rim {
    position: absolute; inset: 0; padding: 5px; border-radius: var(--arch); background: var(--tmm-foil); background-size: 200% 100%;
    filter: drop-shadow(0 18px 22px rgb(0 0 0 / .45));
}
.tmm-arbor__gap { height: 100%; padding: 3px; border-radius: var(--arch); background: color-mix(in srgb, var(--inv-deep) 88%, #000); }
.tmm-arbor__window {
    position: relative; height: 100%; overflow: hidden; border-radius: var(--arch); border: 1.4px solid var(--tmm-gold-3);
    background:
        radial-gradient(80% 50% at 50% 30%, color-mix(in srgb, var(--inv-petal) 45%, transparent), transparent 70%),
        linear-gradient(170deg, color-mix(in srgb, var(--inv-primary) 82%, #fff), var(--inv-deep));
}
.tmm-arbor__photo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--frame-pos); }
.tmm-arbor__photo--bg { background: var(--frame-pos) / cover no-repeat; }
.tmm-arbor__empty { position: absolute; inset: 0; display: grid; place-items: center; }
.tmm-arbor__initials { font-family: var(--tmm-script); font-size: calc(var(--frame-w) * .2); line-height: 1; color: #fff; white-space: nowrap; text-shadow: 0 6px 18px rgb(0 0 0 / .25); }
.tmm-arbor__vine { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; filter: drop-shadow(0 2px 2px rgb(0 0 0 / .3)); }
.tmm-arbor__crown { position: absolute; left: 17%; width: 66%; top: -15.5%; overflow: visible; pointer-events: none; filter: drop-shadow(0 6px 8px rgb(0 0 0 / .4)); }
.tmm-arbor__foot { position: absolute; bottom: -9%; width: 50%; }
.tmm-arbor__foot--l { left: -24%; transform: scaleY(-1); }
.tmm-arbor__foot--r { right: -24%; transform: scale(-1, -1); }
.tmm-arbor .tmm-arbor__locket { position: absolute; left: 36%; width: 28%; bottom: -15%; z-index: 2; }

/* the gold heart locket (sections/_locket) */
.tmm-locket { position: relative; margin: 0; aspect-ratio: 100 / 112; filter: drop-shadow(0 8px 10px rgb(0 0 0 / .45)); }
.tmm-locket__art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tmm-locket__enamel { fill: url(#tmm-petal-a); }
.tmm-locket__inner {
    position: absolute; left: 18%; right: 18%; top: 27%; bottom: 30%; display: flex; flex-direction: column; align-items: center; justify-content: center;
    container-type: inline-size;
}
.tmm-locket__mono { display: flex; align-items: baseline; justify-content: center; gap: .04em; font-family: var(--tmm-serif); font-weight: 700; font-size: 34cqw; line-height: 1; color: var(--tmm-gold-3); text-shadow: 0 1px 1px rgb(0 0 0 / .45); white-space: nowrap; }
.tmm-locket__mono i { font-family: var(--tmm-script); font-style: normal; font-weight: 400; font-size: .8em; color: #fff; opacity: .9; }
.tmm-locket__years { font-family: var(--tmm-serif); font-size: 62cqw; font-weight: 700; line-height: .9; letter-spacing: -.02em; filter: drop-shadow(0 2px 3px rgb(0 0 0 / .5)); }
.tmm-locket__unit { margin-top: .1rem; font-size: 11cqw; font-weight: 600; letter-spacing: .3em; text-indent: .3em; text-transform: uppercase; color: #fff; }

/* the cover arbour */
.tmm-arbor--cover { --frame-w: var(--frame-cover); --frame-pos: center 22%; margin-bottom: calc(var(--frame-w) * .19); }

/* ---------- 6. sections ---------- */

/* opening: the garden gate */
.tmm-opening { padding: 5.6rem 1.3rem 4.2rem; }
.tmm-gate {
    position: relative; max-width: 22.5rem; margin: 0 auto; padding: 5rem 1.5rem 4.4rem;
    border-radius: 11.25rem 11.25rem 18px 18px; background: var(--tmm-paper);
    border: 1px solid var(--tmm-line); outline: 1px solid var(--tmm-line); outline-offset: -7px;
    filter: drop-shadow(0 22px 26px color-mix(in srgb, var(--inv-deep) 22%, transparent));
}
.tmm-gate__garland { position: absolute; left: -1px; right: -1px; top: -1px; width: calc(100% + 2px); height: auto; overflow: visible; pointer-events: none; filter: drop-shadow(0 4px 5px rgb(0 0 0 / .25)); }
.tmm-gate__corner { position: absolute; bottom: -.9rem; width: 5.4rem; }
.tmm-gate__corner--bl { left: -1.3rem; transform: scaleY(-1); }
.tmm-gate__corner--br { right: -1.3rem; transform: scale(-1, -1); }
.tmm-gate__body { position: relative; }
.tmm-opening__basmalah { margin: 0 0 .6rem; font-size: 1.7rem; }
.tmm-opening__greeting { margin: 0 auto; max-width: 22ch; font-family: var(--tmm-serif); font-size: 1.32rem; font-weight: 600; font-style: italic; line-height: 1.32; color: var(--tmm-title); }
.tmm-opening__divider { margin: .9rem auto; }
.tmm-opening__message { margin: 0 auto; max-width: 28ch; color: var(--tmm-muted); }
.tmm-opening__quote { margin: 1.1rem auto 0; max-width: 28ch; }
.tmm-opening__quote p { margin: 0; font-family: var(--tmm-serif); font-size: 1.02rem; font-style: italic; line-height: 1.55; color: var(--tmm-title); }
.tmm-opening__quote cite { display: block; margin-top: .45rem; font-style: normal; font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--tmm-gold-ink); }

/* couple */
/* the couple photo is often wide: a square arch (no vine) so both faces stay in */
.tmm-arbor--couple { --frame-w: min(17rem, 76vw); --frame-pos: center 32%; --arch: 50% 50% 14px 14px / 36% 36% 14px 14px; aspect-ratio: 1; margin-bottom: 1rem; }
.tmm-arbor--couple .tmm-arbor__vine { display: none; }
.tmm-arbor--couple .tmm-arbor__crown { top: -19%; }
.tmm-arbor--couple .tmm-arbor__foot { bottom: -12%; width: 46%; }
.tmm-couple__people { display: grid; grid-template-columns: minmax(0, 1fr) 3rem minmax(0, 1fr); align-items: center; gap: .4rem; margin-top: 3rem; }
.tmm-couple__person { min-width: 0; }
.tmm-couple__role { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--tmm-gold-ink); }
.tmm-couple__nickname { margin: .1rem 0 0; font-family: var(--tmm-script); font-size: clamp(1.6rem, 7.6vw, 2.35rem); line-height: 1.15; color: var(--tmm-title); overflow-wrap: break-word; }
.tmm-couple__name { margin: .15rem 0 0; font-family: var(--tmm-serif); font-size: .98rem; font-weight: 600; line-height: 1.3; color: var(--tmm-muted); overflow-wrap: anywhere; }
.tmm-couple__heart { width: 3rem; height: auto; filter: drop-shadow(0 4px 6px rgb(0 0 0 / .25)); }

/* milestone: the years in the locket inside a rose wreath, since when, then & now */
.tmm-milestone__eyebrow { margin: 0 0 .6rem !important; font-size: .66rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--inv-shine); }
.tmm-milestone__badge { position: relative; width: min(16.5rem, 74vw); aspect-ratio: 1; margin: 0 auto; }
.tmm-milestone__wreath { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 4px 6px rgb(0 0 0 / .4)); }
.tmm-milestone__badge .tmm-milestone__locket { position: absolute; left: 26%; width: 48%; top: 22%; }
.tmm-milestone__label { position: absolute; left: 50%; bottom: -1rem; transform: translateX(-50%); filter: drop-shadow(0 6px 8px rgb(0 0 0 / .45)); }
.tmm-milestone__label span {
    display: block; white-space: nowrap; padding: .32rem 1.7rem .36rem; font-family: var(--tmm-serif); font-size: 1rem; font-weight: 700; letter-spacing: .04em;
    color: var(--inv-deep); background: var(--tmm-foil); background-size: 220% 100%;
    clip-path: polygon(0 0, 100% 0, calc(100% - .75rem) 50%, 100% 100%, 0 100%, .75rem 50%);
}
.tmm-milestone__since { display: flex; flex-direction: column; gap: .15rem; margin: 2.3rem auto 0 !important; font-family: var(--tmm-serif); font-size: 1.04rem; line-height: 1.4; color: var(--tmm-cream-muted); }
.tmm-milestone__since strong { font-weight: 700; color: #fff; }
.tmm-milestone .tmm-heading { margin-top: 2.8rem; margin-bottom: 1rem; }
.tmm-arbor--then { --frame-w: min(14rem, 62vw); }
.tmm-arbor--then .tmm-arbor__photo { filter: sepia(.45) contrast(1.05); }

/* Dulu & Sekarang: an open gold locket, the photo of then clipped at --pos over the photo of now */
.tmm-compare-wrap { position: relative; width: min(100%, 19.5rem); margin: 0 auto; }
.tmm-compare__bow { display: block; width: 6.4rem; margin: 0 auto -.9rem; position: relative; z-index: 2; filter: drop-shadow(0 4px 5px rgb(0 0 0 / .4)); }
.tmm-ribbon { fill: var(--inv-petal); stroke: var(--tmm-petal-line); stroke-width: 1; }
.tmm-ribbon--tail { fill: var(--tmm-petal-1); }
.tmm-compare {
    position: relative; width: 100%; aspect-ratio: 1; padding: 7px; border-radius: 50%; touch-action: pan-y;
    background: var(--tmm-foil); background-size: 200% 100%;
    filter: drop-shadow(0 22px 26px rgb(0 0 0 / .5));
}
.tmm-compare__window { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--inv-deep) 85%, #000); }
.tmm-compare__pearls { position: absolute; inset: 3px; border-radius: 50%; border: 3px dotted #fffbe8; opacity: .85; pointer-events: none; }
.tmm-compare__img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.tmm-compare__then { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.tmm-compare__then .tmm-compare__img { filter: sepia(.55) contrast(1.05) brightness(.97); }
.tmm-compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--tmm-gold-3); box-shadow: 0 0 8px rgb(0 0 0 / .5); pointer-events: none; }
.tmm-compare__knob { position: absolute; left: 50%; top: 50%; width: 3.2rem; margin: -1.5rem 0 0 -1.6rem; filter: drop-shadow(0 4px 6px rgb(0 0 0 / .55)); }
.tmm-compare__knob svg { display: block; width: 100%; height: auto; }
.tmm-compare .tmm-tap { inset: auto; left: 50%; top: 50%; width: 5.6rem; height: 5.6rem; margin: -2.8rem 0 0 -2.8rem; }
.tmm-compare__hint {
    position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
    padding: .36rem .95rem; border-radius: 999px; font-size: .74rem; font-weight: 600; letter-spacing: .04em;
    color: var(--inv-deep); background: var(--tmm-foil); background-size: 220% 100%; box-shadow: 0 8px 16px -8px rgb(0 0 0 / .6);
}
.tmm-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; }
.tmm-compare__range:focus-visible { opacity: .01; }
.tmm-compare:has(.tmm-compare__range:focus-visible) .tmm-compare__knob { filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 6px var(--inv-shine)); }
.tmm-compare__tags { display: flex; justify-content: space-between; gap: .5rem; margin: -.6rem .4rem 0; position: relative; z-index: 2; }
.tmm-compare__tag {
    padding: .26rem .9rem .3rem; font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff;
    background: linear-gradient(180deg, color-mix(in srgb, var(--inv-petal) 85%, #fff), var(--tmm-petal-1));
    clip-path: polygon(0 0, 100% 0, calc(100% - .5rem) 50%, 100% 100%, 0 100%, .5rem 50%);
}
.tmm-compare__tag--now { color: var(--inv-deep); background: var(--tmm-foil); background-size: 220% 100%; }

/* family: the photo, the rose stem of children, the grandchildren card */
.tmm-family__photo { position: relative; margin: 0 -1.4rem 1.8rem; -webkit-mask: linear-gradient(180deg, transparent, #000 10%, #000 70%, transparent); mask: linear-gradient(180deg, transparent, #000 10%, #000 70%, transparent); }
.tmm-family__photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; }
.tmm-family__tree { position: relative; display: grid; gap: 1rem; max-width: 22rem; margin: 0 auto; padding: .4rem 0 .4rem 2.6rem; list-style: none; text-align: left; }
.tmm-family__tree::before { content: ''; position: absolute; left: .9rem; top: 0; bottom: 0; width: 3px; border-radius: 3px; background: linear-gradient(180deg, transparent, var(--tmm-leaf-1) 10%, var(--tmm-leaf-2) 90%, transparent); }
.tmm-family__child { position: relative; display: flex; flex-direction: column; padding: .55rem .9rem .6rem; border-radius: 14px; background: var(--tmm-paper); border: 1px solid var(--tmm-line); }
.tmm-family__bud { position: absolute; left: -2.35rem; top: .2rem; width: 1.6rem; height: auto; transform: rotate(-20deg); }
.tmm-family__name { font-family: var(--tmm-serif); font-size: 1.12rem; font-weight: 700; line-height: 1.25; color: var(--tmm-title); overflow-wrap: anywhere; }
.tmm-family__note { font-size: .8rem; color: var(--tmm-muted); }
.tmm-family__grand { position: relative; max-width: 22rem; margin: 2.6rem auto 0; padding: 1.7rem 1.2rem 1.1rem; border-radius: 16px; background: var(--tmm-paper); border: 1px solid var(--tmm-line); outline: 1px solid var(--tmm-line); outline-offset: -6px; }
.tmm-family__grand-rose { position: absolute; left: 50%; top: -1.9rem; width: 6rem; margin-left: -3rem; filter: drop-shadow(0 4px 5px rgb(0 0 0 / .25)); }
.tmm-family__grand-label { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--tmm-gold-ink); }
.tmm-family__grand p { margin: .3rem 0 0; font-family: var(--tmm-serif); font-size: 1.08rem; font-style: italic; line-height: 1.5; color: var(--inv-text); }

/* the love letter: the envelope, the wax seal, the letter */
.tmm-env { --rise: 0px; --env-w: min(100%, 20.5rem); width: var(--env-w); margin: 0 auto; }
.tmm-env__stage {
    position: relative; width: 100%; aspect-ratio: 320 / 205; perspective: 900px;
    transition: margin-top 1.2s cubic-bezier(.3, .7, .2, 1) 1s;
    filter: drop-shadow(0 20px 22px color-mix(in srgb, var(--inv-deep) 34%, transparent));
}
.tmm-env.is-open .tmm-env__stage { margin-top: var(--rise); }
.tmm-env__back {
    position: absolute; inset: 0; border-radius: 8px; background: var(--tmm-velvet);
}
.tmm-env__back::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--inv-shine); opacity: .14;
    -webkit-mask: var(--tmm-damask) center / 48px 48px repeat; mask: var(--tmm-damask) center / 48px 48px repeat;
}
/* the letter lies in a slot inside the envelope; the slot clips it until the flap is open */
.tmm-env__slot {
    position: absolute; left: 4.5%; right: 4.5%; top: 5%; bottom: 3%; z-index: 1;
    clip-path: inset(0 0 0 0);
}
/* once the flap is open the slot stops clipping (the letter's lower part still hides behind the pocket) */
.tmm-env__slot.is-free { clip-path: none; }
.tmm-env__letter {
    position: absolute; left: 0; right: 0; top: 0; padding: 2.1rem 1.25rem 4.4rem; text-align: left;
    border-radius: 6px; color: color-mix(in srgb, var(--inv-text) 92%, var(--inv-primary));
    background:
        repeating-linear-gradient(180deg, transparent 0 calc(1.95rem - 1px), color-mix(in srgb, var(--inv-primary) 14%, transparent) calc(1.95rem - 1px) 1.95rem) 0 2.2rem / 100% calc(100% - 6.4rem) no-repeat,
        linear-gradient(180deg, #fffdf8, color-mix(in srgb, #fff 80%, var(--inv-background)));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--inv-accent) 30%, transparent), 0 10px 20px -12px rgb(0 0 0 / .4);
    /* its words stay hidden until the flap is open (a closed letter is not "cut-off text") */
    visibility: hidden;
    transition: transform 1.2s cubic-bezier(.3, .7, .2, 1) 1s, visibility 0s linear .8s;
}
.tmm-env.is-open .tmm-env__letter { transform: translateY(calc(var(--rise) * -1)); visibility: visible; }
.tmm-env__spray { position: absolute; right: -.5rem; top: -.6rem; width: 4.4rem; transform: scaleX(-1) rotate(-6deg); }
.tmm-env__text { margin: 0; max-width: 30ch; font-family: var(--tmm-hand); font-size: 1.3rem; font-weight: 500; line-height: 1.95rem; }
.tmm-env__from { margin: .5rem 0 0; text-align: right; font-family: var(--tmm-script); font-size: 2rem; line-height: 1.2; color: var(--tmm-title); }
/* the front of the envelope */
.tmm-env__pocket { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.tmm-env__side { fill: color-mix(in srgb, var(--tmm-paper) 88%, var(--inv-soft)); stroke: color-mix(in srgb, var(--inv-accent) 40%, transparent); stroke-width: .8; }
.tmm-env__bottom { fill: var(--tmm-paper); stroke: color-mix(in srgb, var(--inv-accent) 40%, transparent); stroke-width: .8; }
/* the flap: ivory outside, the crimson liner inside, swinging open on its fold */
.tmm-env__flap {
    position: absolute; left: 0; right: 0; top: 0; height: 60.5%; z-index: 3; transform-origin: 50% 0; transform-style: preserve-3d;
    transition: transform .75s cubic-bezier(.45, 0, .2, 1) .35s, z-index 0s linear .7s;
}
.tmm-env__flap-face { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.tmm-env__flap-face--out path:first-child { fill: color-mix(in srgb, #fff 55%, var(--tmm-paper)); stroke: color-mix(in srgb, var(--inv-accent) 45%, transparent); stroke-width: .8; }
.tmm-env__flap-face--out { filter: drop-shadow(0 3px 3px rgb(0 0 0 / .12)); }
.tmm-env__flap-face--in { transform: rotateX(180deg); }
.tmm-env__flap-face--in path { fill: var(--tmm-petal-1); }
.tmm-env.is-open .tmm-env__flap { transform: rotateX(180deg); z-index: 0; }
/* the red wax seal on the flap's tip, cracking in two */
.tmm-seal {
    position: absolute; left: 50%; top: 58%; z-index: 4; width: 5.2rem; height: 5.2rem; margin: -2.6rem 0 0 -2.6rem; padding: 0; border: 0;
    background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.tmm-seal:focus-visible { outline: 2px solid var(--inv-shine); outline-offset: 4px; border-radius: 50%; }
.tmm-seal__half { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 5px 5px rgb(0 0 0 / .35)); transition: transform .8s cubic-bezier(.5, 0, .7, .4), opacity .6s ease .25s; }
.tmm-seal__half--l { clip-path: polygon(0 0, 53% 0, 47% 20%, 56% 38%, 46% 58%, 55% 78%, 49% 100%, 0 100%); }
.tmm-seal__half--r { clip-path: polygon(53% 0, 100% 0, 100% 100%, 49% 100%, 55% 78%, 46% 58%, 56% 38%, 47% 20%); }
.tmm-seal__wax { fill: url(#tmm-petal-a); stroke: var(--tmm-petal-line); stroke-width: 1; }
.tmm-seal__rim { fill: color-mix(in srgb, var(--inv-petal) 82%, #2a000c); stroke: color-mix(in srgb, var(--inv-petal) 45%, #1a0006); stroke-width: 1.6; }
.tmm-seal__ring { stroke: color-mix(in srgb, var(--inv-petal) 40%, #ffd9d4); }
.tmm-seal__stamp { stroke: color-mix(in srgb, var(--inv-petal) 40%, #ffd9d4); }
.tmm-env.is-open .tmm-seal { pointer-events: none; }
.tmm-env.is-open .tmm-seal__half--l { transform: translate(-46%, 70%) rotate(-38deg); opacity: 0; }
.tmm-env.is-open .tmm-seal__half--r { transform: translate(46%, 76%) rotate(34deg); opacity: 0; }
.tmm-seal .tmm-tap { inset: -.4rem; }
.tmm-seal .tmm-tap__hand { left: 58%; top: 60%; }
.tmm-env__hint {
    position: absolute; left: 50%; top: 84%; z-index: 4; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
    padding: .34rem 1rem; border-radius: 999px; font-size: .74rem; font-weight: 600; letter-spacing: .06em;
    color: var(--inv-deep); background: var(--tmm-foil); background-size: 220% 100%; box-shadow: 0 8px 16px -8px rgb(0 0 0 / .5);
}

/* events: ivory cards with a wide arched photo and a wax-seal date */
.tmm-event {
    position: relative; margin: 0 auto; max-width: 25rem; padding: .7rem .7rem 1.8rem; border-radius: 20px; background: var(--tmm-paper); text-align: left;
    border: 1px solid var(--tmm-line); outline: 1px solid var(--tmm-line); outline-offset: -6px;
    filter: drop-shadow(0 18px 20px color-mix(in srgb, var(--inv-deep) 18%, transparent));
}
.tmm-event + .tmm-event { margin-top: 2.6rem; }
.tmm-event__corner { position: absolute; bottom: -.7rem; width: 4.4rem; }
.tmm-event__corner--bl { left: -.9rem; transform: scaleY(-1); }
.tmm-event__corner--br { right: -.9rem; transform: scale(-1, -1); }
.tmm-event__media { position: relative; margin: .3rem .3rem 0; }
.tmm-event__photo {
    display: block; width: 100%; aspect-ratio: 16 / 10.5; object-fit: cover; object-position: center 30%; border-radius: 999px 999px 10px 10px / 70% 70% 10px 10px;
    -webkit-mask: linear-gradient(180deg, #000 72%, transparent); mask: linear-gradient(180deg, #000 72%, transparent);
}
.tmm-event__top { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1rem 0; }
.tmm-event__media + .tmm-event__top { margin-top: -2.6rem; align-items: flex-end; }
.tmm-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 36% 30%, var(--tmm-petal-3), var(--tmm-petal-2) 45%, var(--tmm-petal-0));
    border: 3px solid var(--tmm-gold-2); outline: 3px solid var(--tmm-paper);
    filter: drop-shadow(0 8px 10px color-mix(in srgb, var(--inv-deep) 45%, transparent));
    font-size: .56rem; font-weight: 600; letter-spacing: .1em; line-height: 1.2; text-transform: uppercase;
}
.tmm-event__date strong { font-family: var(--tmm-serif); font-size: 1.85rem; font-weight: 700; line-height: 1; letter-spacing: 0; }
.tmm-event__date span:first-child { color: var(--inv-shine); }
.tmm-event__head { min-width: 0; padding-bottom: .1rem; }
.tmm-event__media + .tmm-event__top .tmm-event__head { padding-top: 2.8rem; }
.tmm-event__name { margin: 0; font-family: var(--tmm-serif); font-size: 1.42rem; font-weight: 700; line-height: 1.15; color: var(--tmm-title); }
.tmm-event__full { margin: .15rem 0 0; font-size: .8rem; color: var(--tmm-muted); }
.tmm-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(--tmm-line); }
.tmm-event__rows li { display: flex; align-items: flex-start; gap: .65rem; }
.tmm-event__rows .tmm-icon { width: 2rem; height: 2rem; padding: .42rem; border-radius: 50%; color: #fff; background: var(--tmm-title); }
.tmm-event__rows li > span { padding-top: .28rem; }
.tmm-event__venue { display: block; font-weight: 600; }
.tmm-event__address { display: block; font-size: .85rem; color: var(--tmm-muted); }
.tmm-event .inv-maps { margin: 1.1rem 1rem 0; text-align: center; }
.tmm-event .inv-maps .inv-button { width: 100%; font-weight: 600; }
.tmm-event .inv-maps__frame { height: 180px; border-radius: 14px; }

/* countdown: gold-rimmed red hearts */
.tmm-countdown .inv-countdown { gap: clamp(.4rem, 2.2vw, .7rem); }
.tmm-countdown .inv-countdown__item {
    position: relative; display: grid; place-content: center; width: clamp(4.1rem, 19vw, 4.9rem); min-width: 0; aspect-ratio: 100 / 92; padding: 0 0 .7rem; border-radius: 0;
    color: #fff; background: none; isolation: isolate; filter: drop-shadow(0 8px 10px rgb(0 0 0 / .45));
}
.tmm-countdown .inv-countdown__item::before, .tmm-countdown .inv-countdown__item::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    -webkit-mask: var(--tmm-heart-mask) center / 100% 100% no-repeat; mask: var(--tmm-heart-mask) center / 100% 100% no-repeat;
}
.tmm-countdown .inv-countdown__item::before { background: var(--tmm-foil); background-size: 200% 100%; }
.tmm-countdown .inv-countdown__item::after { inset: 6%; background: radial-gradient(circle at 36% 28%, var(--tmm-petal-3), var(--tmm-petal-2) 45%, var(--tmm-petal-0)); }
.tmm-countdown .inv-countdown__value { font-variant-numeric: lining-nums tabular-nums; font-family: var(--tmm-serif); font-size: 1.6rem; font-weight: 700; line-height: 1; color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / .4); }
.tmm-countdown .inv-countdown__label { margin-top: .05rem; font-size: .48rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--inv-shine); }
.tmm-countdown .inv-countdown__done { font-family: var(--tmm-serif); font-size: 1.3rem; font-style: italic; color: var(--inv-shine); }
.tmm-countdown .inv-countdown__actions { flex-direction: column; align-items: center; gap: .6rem; margin-top: 2rem; }
.tmm-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) 10%, transparent);
    border: 1px solid var(--tmm-line);
}
.tmm-countdown .inv-countdown__actions .inv-button:first-child { color: var(--inv-deep); background: var(--tmm-foil); background-size: 220% 100%; border-color: var(--tmm-gold-3); }
.tmm-countdown .inv-cal {
    --inv-cal-bg: var(--tmm-paper); --inv-cal-mark: var(--inv-primary);
    max-width: 19rem; margin: 2.8rem auto 0; border-radius: 22px; border: 1px solid var(--tmm-line);
    filter: drop-shadow(0 18px 24px rgb(0 0 0 / .45));
}
.tmm-countdown .inv-cal__month { font-family: var(--tmm-serif); font-size: 1.4rem; font-weight: 700; font-style: italic; color: var(--tmm-title); }

/* prayer: an arched panel, a rose on its apex */
.tmm-prayer { padding-top: 5.6rem; }
.tmm-prayer__panel {
    position: relative; max-width: 22rem; margin: 0 auto; padding: 3rem 1.4rem 2.8rem; border-radius: 11rem 11rem 20px 20px;
    color: var(--inv-text); background: var(--tmm-paper);
    border: 1px solid var(--tmm-line); outline: 1px solid var(--tmm-line); outline-offset: -7px;
    filter: drop-shadow(0 18px 22px color-mix(in srgb, var(--inv-deep) 18%, transparent));
}
.tmm-prayer__rose { position: absolute; left: 50%; top: -2.2rem; width: 7.4rem; margin-left: -3.7rem; filter: drop-shadow(0 4px 5px rgb(0 0 0 / .25)); }
.tmm-prayer__eyebrow { margin: 0 0 .9rem; font-size: .64rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--tmm-gold-ink); }
.tmm-prayer__arabic { margin: 0 0 1rem; font-size: 1.4rem; text-wrap: balance; }
.tmm-prayer__text { margin: 0; }
.tmm-prayer__text p { margin: 0; font-family: var(--tmm-serif); font-size: 1.08rem; font-style: italic; font-weight: 500; line-height: 1.55; }
.tmm-prayer__text cite {
    display: inline-block; margin-top: 1rem; padding: .26rem .9rem; border-radius: 999px; font-style: normal; font-size: .7rem; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--tmm-title);
}

/* rundown: a green rose stem with leaves; times on crimson pills */
.tmm-rundown__list { position: relative; max-width: 24rem; margin: 0 auto; padding: 0; list-style: none; text-align: left; }
.tmm-rundown__list::before {
    content: ''; position: absolute; left: 2.35rem; top: .6rem; bottom: .6rem; width: 3px; margin-left: -1px; border-radius: 3px; transform-origin: top;
    background: linear-gradient(180deg, var(--tmm-leaf-1), var(--tmm-leaf-2));
}
.tmm-rundown__item { position: relative; display: grid; grid-template-columns: 4.7rem minmax(0, 1fr); align-items: start; column-gap: .8rem; padding: 0 0 1rem; }
.tmm-rundown__item:last-child { padding-bottom: 0; }
/* a leaf on the stem beside each step */
.tmm-rundown__item::before {
    content: ''; position: absolute; left: 2.45rem; top: 2.4rem; width: 1.1rem; height: .6rem; border-radius: 0 100% 0 100%;
    background: linear-gradient(135deg, var(--tmm-leaf-3), var(--tmm-leaf-1)); transform: rotate(-20deg);
}
.tmm-rundown__item:last-child::before { display: none; }
.tmm-rundown__time {
    position: relative; justify-self: center; margin-top: .45rem; padding: .22rem .62rem; border-radius: 999px; font-size: .84rem; font-weight: 600;
    font-variant-numeric: tabular-nums; color: #fff; background: linear-gradient(180deg, color-mix(in srgb, var(--inv-petal) 85%, #fff), var(--tmm-petal-1));
    outline: 3px solid var(--inv-background);
}
.tmm-rundown__body { padding: .7rem .95rem .75rem; border-radius: 14px; background: var(--tmm-paper); border: 1px solid var(--tmm-line); }
.tmm-rundown__body h3 { margin: 0; font-family: var(--tmm-serif); font-size: 1.08rem; font-weight: 700; line-height: 1.3; color: var(--tmm-title); }
.tmm-rundown__body p { margin: .1rem 0 0; font-size: .85rem; color: var(--tmm-muted); }

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

/* story: arches with a gold rim beside the text, alternating; text-only chapters as blush cards */
.tmm-story__list { display: grid; gap: 2.2rem; margin: 0; padding: 0; list-style: none; text-align: left; }
.tmm-story__item { display: grid; grid-template-columns: 44% minmax(0, 1fr); align-items: center; gap: 1.2rem; }
.tmm-story__item--flip { grid-template-columns: minmax(0, 1fr) 44%; }
.tmm-story__item--flip .tmm-story__media { order: 2; }
.tmm-story__media { padding: 4px; border-radius: 999px 999px 14px 14px; background: var(--tmm-foil); filter: drop-shadow(0 12px 14px color-mix(in srgb, var(--inv-deep) 30%, transparent)); }
.tmm-story__photo { display: block; width: 100%; aspect-ratio: 5 / 6.4; object-fit: cover; object-position: center 28%; border-radius: 999px 999px 10px 10px; }
.tmm-story__when {
    display: inline-block; padding: .2rem .75rem; border-radius: 999px; font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: #fff; background: var(--tmm-title);
}
.tmm-story__body h3 { margin: .5rem 0 0; font-family: var(--tmm-serif); font-size: 1.28rem; font-weight: 700; line-height: 1.2; color: var(--tmm-title); }
.tmm-story__body p { margin: .35rem 0 0; font-size: .88rem; line-height: 1.55; color: var(--tmm-muted); }
.tmm-story__item--text { grid-template-columns: 2.6rem minmax(0, 1fr); align-items: start; gap: .9rem; padding: 1.15rem 1.2rem; border-radius: 18px; background: color-mix(in srgb, var(--inv-soft) 55%, var(--tmm-paper)); border: 1px solid var(--tmm-line); }
.tmm-story__dot {
    display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; font-family: var(--tmm-serif); font-size: 1.15rem; font-weight: 700;
    color: #fff; background: radial-gradient(circle at 36% 30%, var(--tmm-petal-3), var(--tmm-petal-1));
}

/* gallery: the first photo a tall arch over two rows, the others with a fine gold rule */
.tmm-gallery .inv-gallery { gap: .6rem; }
.tmm-gallery .inv-gallery__item { border-radius: 14px; outline: 1px solid var(--tmm-line); outline-offset: 2px; }
.tmm-gallery .inv-gallery__item:first-child { grid-row: span 2; aspect-ratio: auto; border-radius: 999px 999px 14px 14px; outline: 2px solid var(--inv-accent); }

/* live streaming */
.tmm-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: 22px; color: var(--inv-background); text-align: left; background: var(--tmm-velvet);
    border: 1px solid var(--tmm-line); filter: drop-shadow(0 18px 22px color-mix(in srgb, var(--inv-deep) 30%, transparent));
}
.tmm-stream__icon { display: grid; place-items: center; width: 3.3rem; height: 3.3rem; border-radius: 50%; color: var(--inv-deep); background: var(--tmm-foil); background-size: 220% 100%; }
.tmm-stream__icon .tmm-icon { width: 1.65rem; height: 1.65rem; }
.tmm-stream__title { margin: 0 0 .1rem; font-family: var(--tmm-serif); font-size: 1.5rem; font-weight: 700; line-height: 1.1; color: #fff; }
.tmm-stream__text p { margin: 0; font-size: .86rem; color: var(--tmm-cream-muted); }
.tmm-stream__text .tmm-stream__note { margin-top: .3rem; font-weight: 600; color: var(--inv-shine); }
.tmm-stream__button { grid-column: 1 / -1; min-height: 2.75rem; color: var(--inv-deep) !important; background: var(--tmm-foil) !important; background-size: 220% 100% !important; font-weight: 600; }

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

/* gift: ivory cards with a crimson band and a small wax seal, two per row (odd last across) */
.tmm-gift__intro { color: var(--tmm-cream-muted) !important; }
.tmm-gift .inv-gift__accounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: 1.3rem; }
.tmm-gift .inv-gift__account:last-child:nth-child(odd) { grid-column: 1 / -1; }
.tmm-gift .inv-gift__account,
.tmm-gift .inv-gift__address {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: .3rem; min-width: 0; margin: 0; overflow: hidden;
    padding: 2.1rem .75rem 1rem; border-radius: 16px; color: var(--inv-text); background: var(--tmm-paper);
    border: 1px solid var(--tmm-line);
}
.tmm-gift .inv-gift__account::before {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1rem;
    background: linear-gradient(180deg, color-mix(in srgb, var(--inv-petal) 85%, #fff), var(--tmm-petal-1));
    border-bottom: 2px solid var(--tmm-gold-2);
}
.tmm-gift .inv-gift__account::after {
    content: ''; position: absolute; left: 50%; top: .35rem; width: 1.3rem; height: 1.3rem; margin-left: -.65rem; border-radius: 50%;
    background: radial-gradient(circle at 36% 30%, var(--tmm-petal-3), var(--tmm-petal-1)); border: 1.5px solid var(--tmm-gold-2);
}
.tmm-gift .inv-gift__account p, .tmm-gift .inv-gift__address p { margin: 0; }
.tmm-gift .inv-gift__bank { font-weight: 600; font-size: .85rem; color: var(--tmm-title); }
.tmm-gift .inv-gift__logo { height: 1.6rem; padding: .2rem .5rem; border-radius: .4rem; background: #fff; }
.tmm-gift .inv-gift__logo img { max-width: 5rem; }
.tmm-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); }
.tmm-gift .inv-gift__holder { font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--tmm-muted); overflow-wrap: anywhere; }
.tmm-gift .inv-button { margin-top: .35rem; min-height: 2.25rem; padding: .35rem .9rem; font-size: .74rem; font-weight: 600; }
.tmm-gift .inv-gift__address { margin-top: .75rem; padding-top: 1.1rem; font-size: .875rem; }
.tmm-gift .inv-gift__address .inv-gift__holder { font-size: .72rem; }

/* co-hosts: names in the serif split by small rose petals, on the velvet */
.tmm-cohosts__list { display: flex; flex-direction: column; align-items: center; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.tmm-cohosts__list li { max-width: 26ch; font-family: var(--tmm-serif); font-size: 1.12rem; font-weight: 600; line-height: 1.35; color: #fff; }
.tmm-cohosts__list li + li::before {
    content: ''; display: block; width: 8px; height: 10px; margin: 0 auto .55rem; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: radial-gradient(circle at 50% 30%, var(--tmm-petal-4), var(--tmm-petal-2));
}

/* contacts */
.tmm-contacts__list { display: grid; gap: .7rem; max-width: 24rem; margin: 0 auto; }
.tmm-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(--tmm-paper); text-align: left; border: 1px solid var(--tmm-line);
}
.tmm-contact__avatar {
    display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; font-family: var(--tmm-serif); font-size: 1.3rem; font-weight: 700;
    color: #fff; background: radial-gradient(circle at 36% 30%, var(--tmm-petal-3), var(--tmm-petal-1)); border: 2px solid var(--tmm-gold-2);
}
.tmm-contact p { margin: 0; }
.tmm-contact__name { font-weight: 600; font-size: .95rem; line-height: 1.3; overflow-wrap: anywhere; }
.tmm-contact__role { font-size: .78rem; color: var(--tmm-muted); }
.tmm-contact__phone { font-size: .85rem; }
.tmm-contact__button { min-height: 2.5rem; padding: .45rem .95rem; font-size: .8rem; font-weight: 600; }
.tmm-contact__button .tmm-icon { width: 1.05rem; height: 1.05rem; }

/* health protocol */
.tmm-protocol__list { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.tmm-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(--tmm-paper); border: 1px solid var(--tmm-line); }
.tmm-protocol__list .tmm-icon { width: 1rem; height: 1rem; color: var(--inv-primary); }
.tmm-protocol__note { font-size: .88rem; color: var(--tmm-muted); }

/* vendors */
.tmm-vendors__list { max-width: 24rem; margin: 0 auto; padding: .3rem 1.15rem; list-style: none; border-radius: 18px; background: var(--tmm-paper); border: 1px solid var(--tmm-line); }
.tmm-vendor { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .85rem 0; text-align: left; border-bottom: 1px solid var(--tmm-line); }
.tmm-vendor:last-child { border-bottom: 0; }
.tmm-vendor__text { display: flex; flex-direction: column; min-width: 0; }
.tmm-vendor__role { font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--tmm-gold-ink); }
.tmm-vendor__name { font-family: var(--tmm-serif); font-size: 1.08rem; font-weight: 700; line-height: 1.3; color: var(--inv-text); overflow-wrap: anywhere; }
.tmm-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(--tmm-title); border: 1px solid var(--tmm-line);
}
.tmm-vendor__link .tmm-icon { width: .95rem; height: .95rem; }

/* closing: compact — the photo melting into the velvet, roses at its feet, the locket, thanks and the names (above the menu) */
.tmm-closing { padding: 2.6rem 1.6rem 5.8rem; }
.tmm-closing--photo { padding-top: 0; }
.tmm-closing__photo {
    position: relative; z-index: -1; height: min(22rem, calc(var(--inv-screen, 100svh) * .48)); margin: 0 -1.6rem; overflow: hidden;
    -webkit-mask: linear-gradient(180deg, #000 55%, transparent); mask: linear-gradient(180deg, #000 55%, transparent);
}
.tmm-closing__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.tmm-closing__roses { position: absolute; width: 8.5rem; top: calc(min(22rem, var(--inv-screen, 100svh) * .48) - 6.6rem); }
.tmm-closing:not(.tmm-closing--photo) .tmm-closing__roses { top: -1.4rem; }
.tmm-closing__roses--l { left: -2rem; transform: scaleY(-1); }
.tmm-closing__roses--r { right: -2rem; transform: scale(-1, -1); }
.tmm-closing__body { position: relative; }
.tmm-closing--photo .tmm-closing__body { margin-top: -4.6rem; }
.tmm-closing__locket { width: 4.4rem; margin: 0 auto .5rem; }
.tmm-closing__title { margin: 0 0 .55rem; font-family: var(--tmm-serif); font-size: 2.05rem; font-weight: 600; line-height: 1.05; color: #fff; }
.tmm-closing__title em { font-family: var(--tmm-script); font-style: normal; font-weight: 400; font-size: 1.3em; color: var(--inv-shine); }
.tmm-closing__message { margin: 0 auto; max-width: 32ch; font-size: .9rem; line-height: 1.55; color: var(--tmm-cream-muted); }
.tmm-closing__salam { margin: .7rem auto 0; max-width: 28ch; font-family: var(--tmm-serif); font-size: 1rem; font-style: italic; font-weight: 500; line-height: 1.35; color: var(--inv-shine); }
.tmm-closing__signature { margin: .45rem auto 0; max-width: 30ch; font-size: .84rem; color: var(--tmm-cream-muted); }
.tmm-closing__names { margin: .5rem 0 0; font-family: var(--tmm-script); font-size: 2.4rem; line-height: 1.2; padding: 0 .2em .08em; }

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

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

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

/* ---------- 8. shared components ---------- */
.tmm-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(--tmm-sans);
}

/* ---------- 9. 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) {
    .tmm-cover { --frame-cover: 15rem; }
    .tmm-cover__names { font-size: 2.6rem; }
}
@media (max-height: 760px) {
    .tmm-cover { --frame-cover: 13.4rem; padding-top: 1.1rem; padding-bottom: 1.3rem; }
    .tmm-cover__names { font-size: 2.45rem; }
    .tmm-cover__quote { font-size: .95rem; margin-top: .4rem; }
    .tmm-cover__guest { margin-top: .55rem; }
    .tmm-cover__open { margin-top: .65rem; }
    .tmm-cover__roses { width: 10.5rem; }
}
@media (max-height: 700px) {
    .tmm-cover { --frame-cover: 12.4rem; padding-top: .9rem; padding-bottom: 1.1rem; }
    .tmm-cover__title { font-size: .64rem; }
    .tmm-cover__names { font-size: 2.3rem; }
    .tmm-cover__date span { font-size: .9rem; }
    .tmm-cover__quote { font-size: .9rem; line-height: 1.28; }
    .tmm-cover__guest { padding: .35rem .85rem .4rem; }
    .tmm-cover__guest-name { font-size: 1.1rem; }
    .tmm-cover__open { min-height: 2.7rem; padding: .55rem 1.6rem; }
    .tmm-cover__roses { width: 9rem; }
}
@media (max-height: 660px) {
    .tmm-cover { --frame-cover: 11.8rem; }
    .tmm-cover__names { font-size: 2.15rem; }
    .tmm-cover__quote { font-size: .86rem; margin-top: .3rem; }
}
@media (max-height: 600px) {
    .tmm-cover { --frame-cover: 10rem; }
    .tmm-cover__names { font-size: 2rem; }
}
@media (max-width: 360px) {
    .tmm-cover__names { font-size: 2.2rem; }
}

/* wide screens: the phone-width column on the velvet backdrop with the damask */
@media (min-width: 560px) {
    body.tmm-body { background: var(--tmm-velvet); background-attachment: fixed; }
    body.tmm-body::before {
        content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .1; background: var(--inv-shine);
        -webkit-mask: var(--tmm-damask) center / 64px 64px repeat; mask: var(--tmm-damask) center / 64px 64px repeat;
    }
    .tmm-main { box-shadow: 0 30px 60px -30px rgb(0 0 0 / .6); }
}

/* ---------- 10. motion ---------- */
@keyframes tmm-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes tmm-bounce { 0% { transform: scale(0); } 55% { transform: scale(1.15); } 75% { transform: scale(.94); } 100% { transform: scale(1); } }
@keyframes tmm-rise { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes tmm-zoom-out { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes tmm-shine { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
@keyframes tmm-breathe { 0%, 100% { opacity: .65; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes tmm-motes { from { background-position: 0 0; } to { background-position: 0 -420px; } }
@keyframes tmm-bloom { from { opacity: 0; transform: scale(.5) rotate(-14deg); } to { opacity: 1; transform: none; } }
@keyframes tmm-bloom-flip { from { opacity: 0; transform: rotate(166deg) scale(.5); } to { opacity: 1; transform: rotate(180deg); } }
@keyframes tmm-crown { from { opacity: 0; transform: translateY(10px) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes tmm-swing { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes tmm-ping { 0% { opacity: .9; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.9); } }
@keyframes tmm-tap { 0%, 100% { transform: translate(0, 0) scale(1); } 45% { transform: translate(-3px, -5px) scale(.92); } }
@keyframes tmm-fall {
    0% { opacity: 0; transform: translate(0, 0) rotate(0deg); }
    10% { opacity: .95; }
    50% { transform: translate(28px, 52vh) rotate(160deg); }
    90% { opacity: .9; }
    100% { opacity: 0; transform: translate(-14px, 108vh) rotate(330deg); }
}
@keyframes tmm-glint { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes tmm-wobble { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-4deg) scale(1.03); } 75% { transform: rotate(4deg) scale(1.03); } }
@keyframes tmm-sway-x { 0%, 100% { left: 50%; } 30% { left: 38%; } 70% { left: 62%; } }
@keyframes tmm-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); } }

/* gold foil: a slow moving shine */
html.inv-anim :is(.tmm-tone--deep .tmm-heading__title em, .tmm-cover__names, .tmm-closing__names, .tmm-cover__open, .tmm-locket__years, .tmm-arbor__rim, .tmm-compare) { animation: tmm-shine 7s ease-in-out infinite; }

/* cover (≤ 2.5 s, once): the corner roses bloom, the arbour rises, its crown opens;
   then a living ground: the light behind the arbour breathes, gold motes drift up, petals fall, the locket swings */
html.inv-anim .tmm-cover__roses--tl { animation: tmm-bloom 1.1s cubic-bezier(.2, .8, .3, 1) .3s both; }
html.inv-anim .tmm-cover__roses--br { animation: tmm-bloom-flip 1.1s cubic-bezier(.2, .8, .3, 1) .45s both; }
html.inv-anim .tmm-cover__art::before { animation: tmm-breathe 5s ease-in-out infinite; }
html.inv-anim .tmm-cover::after { animation: tmm-motes 22s linear infinite; }
html.inv-anim .tmm-cover__petals svg { animation: tmm-fall 13s linear var(--d) infinite; }
html.inv-anim .tmm-arbor--cover { animation: tmm-rise .9s cubic-bezier(.2, .7, .2, 1) .1s both; }
html.inv-anim .tmm-arbor--cover .tmm-arbor__photo { animation: tmm-zoom-out 1.4s cubic-bezier(.2, .7, .2, 1) .1s both; }
html.inv-anim .tmm-arbor--cover .tmm-arbor__crown { transform-origin: 50% 80%; animation: tmm-crown 1s cubic-bezier(.2, .9, .3, 1.15) .6s both; }
html.inv-anim .tmm-arbor__locket { transform-origin: 50% 0; animation: tmm-swing 4s ease-in-out 1.2s infinite; }

/* the tap marker: rings ping outward, the hand taps; the seal wobbles a little until tapped */
html.inv-anim .tmm-tap__ring { animation: tmm-ping 1.8s ease-out infinite; }
html.inv-anim .tmm-tap__ring--late { animation-delay: .9s; }
html.inv-anim .tmm-tap__hand { animation: tmm-tap 1.2s ease-in-out infinite; }
html:not(.inv-anim) .tmm-tap__ring { opacity: .6; }
html.inv-anim .tmm-env:not(.is-open) .tmm-seal__half { animation: tmm-wobble 2.4s ease-in-out infinite; }

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

/* without motion the letter opens at once */
html:not(.inv-anim) .tmm-env__stage, html:not(.inv-anim) .tmm-env__letter, html:not(.inv-anim) .tmm-env__flap,
html:not(.inv-anim) .tmm-seal__half { transition: none; }

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

/* ---------- 11. intro scene "Liontin Mawar" (scene.json + sections/_scene) ----------
   The intro is teleported to <body>: everything here stands on its own classes. */
.tmm-scene-velvet { position: absolute; inset: 0; background: var(--inv-shine); opacity: .1; -webkit-mask: var(--tmm-damask) center / 64px 64px repeat; mask: var(--tmm-damask) center / 64px 64px repeat; }
.tmm-scene-glow { position: absolute; inset: 0; background: radial-gradient(closest-side, color-mix(in srgb, var(--inv-shine) 40%, transparent), color-mix(in srgb, var(--inv-petal) 16%, transparent) 60%, transparent); }
html.inv-anim .tmm-scene-glow { animation: tmm-breathe 4s ease-in-out infinite; }
.tmm-scene-roses { position: absolute; inset: 0; }
.tmm-scene-roses .tmm-roses { width: 100%; height: auto; }
.tmm-scene-bloom { position: absolute; inset: 0; display: grid; place-items: center; }
.tmm-scene-bloom svg { width: min(100%, 100cqh); height: auto; max-height: 100%; overflow: visible; filter: drop-shadow(0 8px 10px rgb(0 0 0 / .45)); }
.tmm-scene-bloom { container-type: size; }
.tmm-scene-petals { position: absolute; inset: 0; overflow: hidden; }
html.inv-anim .tmm-scene-petals svg { animation: tmm-fall 7s linear var(--d) infinite; }
/* the locket and its lid share one box: the heart sized to fit, at the foot of the box */
.tmm-scene-locket, .tmm-scene-lid { position: absolute; inset: 0; container-type: size; display: grid; place-items: end center; }
.tmm-scene-locket__heart { position: relative; width: min(100cqw, 100cqh * 100 / 156); aspect-ratio: 100 / 156; }
.tmm-scene-locket__heart > svg, .tmm-scene-lid > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 10px 14px rgb(0 0 0 / .5)); }
.tmm-scene-lid > svg { position: relative; width: min(100cqw, 100cqh * 100 / 156); height: auto; aspect-ratio: 100 / 156; clip-path: inset(0 50% 0 0); }
.tmm-scene-lid--right > svg { clip-path: inset(0 0 0 50%); }
.tmm-scene-locket__photo {
    position: absolute; left: 4%; right: 4%; top: 41%; height: 56.4%; display: grid; place-items: center;
    background: radial-gradient(80% 50% at 50% 30%, color-mix(in srgb, var(--inv-petal) 45%, transparent), transparent 70%), linear-gradient(170deg, color-mix(in srgb, var(--inv-primary) 82%, #fff), var(--inv-deep));
    background-size: cover; background-position: 50% 22%;
    -webkit-mask: var(--tmm-heart-mask) center / 100% 100% no-repeat; mask: var(--tmm-heart-mask) center / 100% 100% no-repeat;
}
.tmm-scene-locket__photo[style] { background-size: cover; background-position: 50% 22%; }
.tmm-scene-locket__initials { margin-top: -10%; font-family: var(--tmm-script); font-size: 18cqw; color: #fff; }
/* the name card: ivory stationery in a double gold rule with a rose-red arched top */
body.tmm-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 16px 16px / 6rem 6rem 16px 16px;
    background: var(--tmm-paper); border: 1px solid var(--tmm-line); outline: 1px solid var(--tmm-line); outline-offset: -6px;
    box-shadow: 0 24px 40px -14px rgb(0 0 0 / .6);
}
body.tmm-body .inv-scene__card .inv-intro__label { font-family: var(--tmm-sans); font-size: .62rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--tmm-gold-ink); }
body.tmm-body .inv-scene__card .inv-intro__names { color: var(--tmm-title); line-height: 1.15; overflow-wrap: anywhere; }
body.tmm-body .inv-scene__card .inv-intro__rule { height: 1px; width: 3rem; background: var(--inv-accent); }
body.tmm-body .inv-scene__card .inv-intro__date { font-family: var(--tmm-serif); font-weight: 600; font-size: .92rem; color: var(--tmm-muted); white-space: nowrap; }
