/*
 * Template "Teduh Haul" (Pengajian & Hari Besar Islam) — a calm, respectful page for a haul, a prayer gathering, tahlil
 * or a santunan in the name of the late one, rich and never pale: deep forest green (by default), warm cream, muted
 * antique gold and a touch of deep teal. Signature pieces: strings of white jasmine hanging like a curtain at the
 * edges (sections/_jasmine), a quiet mihrab niche with a conch hood, muqarnas cells and an oil lamp to light
 * (sections/memorial + _pelita), the photo in an ogee arch with fine gold rules and arabesque scrolls (sections/_arch),
 * cartouche frames with scooped corners (sections/_corners). Slow, gentle motion only; no bursts.
 * Mobile-first, one column (~460px) on a deep backdrop on wide screens.
 *
 * Colours come from the chosen colour variant (template.json → <x-inv.head>):
 *   --inv-primary (forest green / night blue / wood brown / olive: titles, buttons)   --inv-accent (antique gold)
 *   --inv-background (warm cream)   --inv-text   --inv-deep (night bands, the cover)   --inv-shine (light gold on dark)
 *   --inv-soft (the sage wash of the soft tone)   --inv-teal (the jewel accent)   --inv-petal (jasmine white)
 *   --inv-leaf (jasmine leaves)
 *
 * Section tones (set on each section in its partial): .teduh-tone--light (cream), --soft (sage wash), --deep (the
 * night colour with gold). Motion only runs with html.inv-anim (set by <x-inv.head> unless the guest prefers reduced
 * motion); without it everything is shown finished.
 *
 * Revision standard (docs/template-guide.md section 10): the cover is sized in px steps per screen height, never
 * svh/vh; ornaments stay beside the photos, clear of faces; photos melt into sections with masks; the closing is
 * compact and its names end above the bottom menu.
 *
 * Contents: 1 base · 2 tones · 3 shared pieces (heading, divider, cartouche, arch, jasmine, lamp, tap marker)
 *           · 4 cover · 5 sections in page order · 6 forms · 7 shared components · 8 screen sizes · 9 motion
 *           · 10 intro scene
 */

/* ---------- 1. base ---------- */
:root {
    /* defaults = the "Hijau Teduh" variant (the variant's colours override these) */
    --inv-primary: #1d5b45;
    --inv-accent: #b48d48;
    --inv-background: #f7efdc;
    --inv-text: #1b2a22;
    --inv-deep: #0b2a1f;
    --inv-shine: #ecd193;
    --inv-soft: #dce6d2;
    --inv-teal: #17656a;
    --inv-petal: #fffdf4;
    --inv-leaf: #4f8a4a;
    --inv-radius: 16px;

    --teduh-head: var(--inv-font-heading, 'Marcellus'), Georgia, 'Times New Roman', serif;
    --teduh-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --teduh-script: var(--inv-font-display, 'Parisienne'), 'Brush Script MT', cursive;
    --teduh-sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --teduh-col: 460px;

    /* antique gold, mixed from the accent: dark bronze → muted gold → pale light (never brassy) */
    --teduh-gold-1: color-mix(in srgb, var(--inv-accent) 58%, #2c1e08);
    --teduh-gold-2: var(--inv-accent);
    --teduh-gold-3: color-mix(in srgb, var(--inv-accent) 45%, #fbf1d4);
    --teduh-gold-ink: color-mix(in srgb, var(--inv-accent) 64%, #2c1e08);
    --teduh-foil: linear-gradient(100deg, var(--teduh-gold-1), var(--teduh-gold-2) 30%, var(--teduh-gold-3) 50%, var(--teduh-gold-2) 66%, var(--teduh-gold-1));

    /* jasmine: white petals, a cream shade, a fine edge so they read on cream too */
    --teduh-petal-2: color-mix(in srgb, var(--inv-petal) 88%, #ece2c6);
    --teduh-petal-3: color-mix(in srgb, var(--inv-petal) 66%, #cfc39d);
    --teduh-petal-edge: color-mix(in srgb, #7d6c42 42%, transparent);
    --teduh-petal-vein: color-mix(in srgb, #b3a170 45%, transparent);
    --teduh-petal-heart: color-mix(in srgb, var(--inv-leaf) 28%, #f3e6a0);

    --teduh-paper: color-mix(in srgb, #fff 52%, var(--inv-background));
    --teduh-title: color-mix(in srgb, var(--inv-primary) 84%, var(--inv-deep));
    --teduh-muted: color-mix(in srgb, var(--inv-text) 76%, var(--inv-background));
    --teduh-cream-muted: color-mix(in srgb, var(--inv-background) 84%, transparent);
    --teduh-line: color-mix(in srgb, var(--inv-accent) 62%, transparent);
    --teduh-drop: 0 24px 40px -26px color-mix(in srgb, var(--inv-deep) 70%, transparent);
    --teduh-glass: color-mix(in srgb, var(--inv-primary) 40%, var(--inv-deep));

    /* the ground: an eight-pointed star in a turned square with quarter-circle arabesque at the corners (a mask, any colour) */
    --teduh-ground: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23000' stroke-width='1' stroke-linejoin='round'%3E%3Cpath d='M28 17 31.2 24.8 39 28 31.2 31.2 28 39 24.8 31.2 17 28 24.8 24.8Z'/%3E%3Cpath d='M20.2 20.2 28 23.4 35.8 20.2 32.6 28 35.8 35.8 28 32.6 20.2 35.8 23.4 28Z'/%3E%3Cpath d='M0 13A13 13 0 0 0 13 0M43 0A13 13 0 0 0 56 13M56 43A13 13 0 0 0 43 56M13 56A13 13 0 0 0 0 43'/%3E%3C/g%3E%3C/svg%3E");
    /* the ogee arch of the photo windows: 160:260, stretched to the box (spring at 40%) */
    --teduh-arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 260' preserveAspectRatio='none'%3E%3Cpath d='M0 260V104C0 66 44 52 66 34C74 27 78 14 80 0C82 14 86 27 94 34C116 52 160 66 160 104V260Z'/%3E%3C/svg%3E");
    /* a wide ogee arch for landscape photos (events, story): 300:200 */
    --teduh-arch-wide: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 200' preserveAspectRatio='none'%3E%3Cpath d='M0 200V80C0 56 92 40 128 22C138 16 146 8 150 0C154 8 162 16 172 22C208 40 300 46 300 80V200Z'/%3E%3C/svg%3E");
    /* the ogee cap of the prayer panel: 300:80 */
    --teduh-cap: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80V64C0 46 110 40 138 14C144 8 148 4 150 0C152 4 156 8 162 14C190 40 300 46 300 64V80Z'/%3E%3C/svg%3E");

    /* colours of the shared components: jasmine petals drifting down (white: they show on the deep bands, vanish on cream) */
    --inv-ambient-1: var(--inv-petal);
    --inv-ambient-2: color-mix(in srgb, var(--inv-petal) 88%, #e6dcc2);
}

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

body {
    margin: 0;
    background: var(--inv-background);
    color: var(--inv-text);
    font-family: var(--teduh-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 */
.teduh-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }

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

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

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

/* gold text: the antique gold gradient clipped to the letters (a very slow shine) */
.teduh-heading__title em, .teduh-cover__title, .teduh-closing__names, .teduh-charity__badge span, .teduh-occasion__hijri {
    background: var(--teduh-foil); background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- 2. section tones ---------- */
/* light: warm cream with a breath of sage in a corner and the star ground */
.teduh-tone--light {
    background:
        radial-gradient(60% 26% at 100% 0%, color-mix(in srgb, var(--inv-soft) 80%, transparent), transparent 75%),
        radial-gradient(60% 26% at 0% 100%, color-mix(in srgb, var(--inv-accent) 16%, transparent), transparent 75%),
        var(--inv-background);
}
/* soft: a sage wash, deepening a little toward the foot */
.teduh-tone--soft {
    background:
        radial-gradient(80% 34% at 50% 0%, color-mix(in srgb, #fff 45%, transparent), transparent 75%),
        linear-gradient(180deg, color-mix(in srgb, var(--inv-soft) 78%, var(--inv-background)), var(--inv-soft) 70%, color-mix(in srgb, var(--inv-soft) 88%, var(--inv-primary)));
}
.teduh-tone--light::before, .teduh-tone--soft::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: var(--inv-primary); opacity: .06;
    -webkit-mask: var(--teduh-ground) center top / 56px 56px repeat; mask: var(--teduh-ground) center top / 56px 56px repeat;
}
/* deep: the night colour with a glow of the primary and a breath of teal */
.teduh-tone--deep {
    color: var(--inv-background);
    background:
        radial-gradient(90% 40% at 15% 0%, color-mix(in srgb, var(--inv-primary) 80%, transparent), transparent 75%),
        radial-gradient(70% 34% at 100% 100%, color-mix(in srgb, var(--inv-teal) 50%, transparent), transparent 75%),
        var(--inv-deep);
}
.teduh-tone--deep::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: var(--inv-shine); opacity: .07;
    -webkit-mask: var(--teduh-ground) center top / 56px 56px repeat; mask: var(--teduh-ground) center top / 56px 56px repeat;
}
.teduh-tone--deep a:not(.inv-button) { color: var(--inv-shine); }
.teduh-tone--deep .teduh-arabic { color: var(--inv-shine); }

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

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

/* heading: eyebrow between hairlines, the title in the heading font, the last words in the script font in gold */
.teduh-heading { margin: 0 0 2.1rem; }
.teduh-heading__eyebrow {
    display: inline-flex; align-items: center; gap: .65rem; margin: 0 0 .55rem;
    font-size: .68rem; font-weight: 600; line-height: 1.3; letter-spacing: .26em; text-transform: uppercase; color: var(--teduh-gold-ink);
}
.teduh-heading__eyebrow::before, .teduh-heading__eyebrow::after { content: ''; width: 1.6rem; height: 1px; flex: none; background: linear-gradient(90deg, transparent, var(--inv-accent)); }
.teduh-heading__eyebrow::after { transform: scaleX(-1); }
.teduh-heading__title {
    margin: 0; font-family: var(--teduh-head); font-size: 2rem; font-weight: 400; line-height: 1.15;
    letter-spacing: .01em; color: var(--teduh-title); text-wrap: balance;
}
.teduh-heading__title em {
    display: inline-block; padding: 0 .1em .12em; font-family: var(--teduh-script); font-style: normal; font-weight: 400;
    font-size: 1.22em; line-height: .95; word-spacing: .12em;
}
.teduh-heading__divider { margin: .85rem auto 0; }
.teduh-tone--deep .teduh-heading__eyebrow { color: var(--inv-shine); }
.teduh-tone--deep .teduh-heading__title { color: #fff; }

/* the jasmine divider */
.teduh-divider { display: block; width: min(13.5rem, 72%); height: auto; overflow: visible; }

/* a cartouche frame: a fine gold rule 6px in, cut at the corners, where sections/_corners draws the scooped turns */
.teduh-cartouche { position: relative; background: var(--teduh-paper); }
.teduh-cartouche::before {
    content: ''; position: absolute; inset: 6px; z-index: 0; pointer-events: none; border: 1px solid var(--teduh-line);
    -webkit-mask:
        radial-gradient(circle at 0 0, #0000 16px, #000 16.5px) 0 0 / 51% 51% no-repeat,
        radial-gradient(circle at 100% 0, #0000 16px, #000 16.5px) 100% 0 / 51% 51% no-repeat,
        radial-gradient(circle at 0 100%, #0000 16px, #000 16.5px) 0 100% / 51% 51% no-repeat,
        radial-gradient(circle at 100% 100%, #0000 16px, #000 16.5px) 100% 100% / 51% 51% no-repeat;
    mask:
        radial-gradient(circle at 0 0, #0000 16px, #000 16.5px) 0 0 / 51% 51% no-repeat,
        radial-gradient(circle at 100% 0, #0000 16px, #000 16.5px) 100% 0 / 51% 51% no-repeat,
        radial-gradient(circle at 0 100%, #0000 16px, #000 16.5px) 0 100% / 51% 51% no-repeat,
        radial-gradient(circle at 100% 100%, #0000 16px, #000 16.5px) 100% 100% / 51% 51% no-repeat;
}
.teduh-corner { position: absolute; z-index: 1; width: 26px; height: 26px; overflow: visible; pointer-events: none; }
.teduh-corner--tl { top: 6px; left: 6px; }
.teduh-corner--tr { top: 6px; right: 6px; transform: scaleX(-1); }
.teduh-corner--bl { bottom: 6px; left: 6px; transform: scaleY(-1); }
.teduh-corner--br { bottom: 6px; right: 6px; transform: scale(-1, -1); }
.teduh-cartouche > :not(.teduh-corner) { position: relative; z-index: 1; }

/* the photo window (sections/_arch): figure 200:290, the window inside the edge rule */
.teduh-arch { --arch-w: 15rem; --arch-pos: center 24%; position: relative; width: var(--arch-w); aspect-ratio: 200 / 290; margin: 0 auto; flex: none; }
.teduh-arch__window {
    position: absolute; left: 10%; right: 10%; top: 10.345%; bottom: 0; overflow: hidden;
    background:
        radial-gradient(80% 50% at 50% 30%, color-mix(in srgb, var(--inv-teal) 50%, transparent), transparent 70%),
        linear-gradient(170deg, color-mix(in srgb, var(--inv-primary) 85%, #fff), var(--inv-deep));
    -webkit-mask: var(--teduh-arch) center / 100% 100% no-repeat; mask: var(--teduh-arch) center / 100% 100% no-repeat;
}
.teduh-arch__photo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--arch-pos); }
.teduh-arch__photo--bg { background: var(--arch-pos) / cover no-repeat; }
.teduh-arch__empty { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: .4rem; padding-top: 18%; }
.teduh-arch__crescent { width: 22%; }
.teduh-arch__initials { font-family: var(--teduh-head); font-weight: 400; font-size: calc(var(--arch-w) * .19); line-height: 1; letter-spacing: .06em; color: #fff; white-space: nowrap; text-shadow: 0 6px 18px rgb(0 0 0 / .25); }
.teduh-arch__frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.teduh-arch__rule { stroke-width: 1.5; }
.teduh-arch__rule--edge { stroke-width: 1; }
.teduh-arch__rule--hair { stroke-width: .6; opacity: .85; }
.teduh-arch__scroll path { stroke-width: .9; }
.teduh-arch__key { filter: drop-shadow(0 0 4px color-mix(in srgb, var(--inv-shine) 60%, transparent)); }
/* a jasmine string on each shoulder, beside the photo */
.teduh-arch__strings { position: absolute; inset: 0; pointer-events: none; }
.teduh-arch__string { position: absolute; top: 36%; width: 7%; }
.teduh-arch__string--l { left: -1%; }
.teduh-arch__string--r { right: -1%; }

/* a string of jasmine */
.teduh-jasmine { display: block; height: auto; overflow: visible; pointer-events: none; transform-origin: 50% 0; filter: drop-shadow(0 2px 2px rgb(0 0 0 / .18)); }
.teduh-jasmine__thread { fill: none; stroke: color-mix(in srgb, var(--inv-leaf) 55%, var(--teduh-gold-3)); stroke-width: .7; }

/* the oil lamp */
.teduh-pelita { display: block; overflow: visible; pointer-events: none; filter: drop-shadow(0 6px 8px rgb(0 0 0 / .3)); }
.teduh-pelita__halo { fill: url(#teduh-halo); transition: fill-opacity 2.4s ease .5s; }
.teduh-pelita__fire { transform-box: fill-box; transform-origin: 50% 96%; transition: transform 1.8s cubic-bezier(.2, .7, .3, 1) .15s, opacity 1.2s ease .15s; }
.teduh-pelita__flame { fill: url(#teduh-flame); transform-box: fill-box; transform-origin: 50% 92%; }
.teduh-pelita__core { fill: #fffef6; }
.teduh-pelita__wick { fill: #2a1a0c; }
.teduh-pelita__glass { fill: #fff4cf; fill-opacity: .24; stroke: var(--teduh-gold-3); stroke-width: .8; transition: fill-opacity 2s ease .4s; }
/* unlit until the guest lights it (only once Alpine armed the interaction: without JavaScript it stays lit) */
.is-armed .teduh-pelita--dim .teduh-pelita__fire { opacity: 0; transform: scale(.15); }
/* (fill-opacity, not opacity: the halo's breathing animation owns its opacity) */
.is-armed .teduh-pelita--dim .teduh-pelita__halo { fill-opacity: 0; }
.is-armed .teduh-pelita--dim .teduh-pelita__glass { fill-opacity: .1; }

/* the tap marker (the lamp): two pulsing gold rings, a tapping hand and a label */
.teduh-tap { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.teduh-tap__ring {
    position: absolute; left: 50%; top: var(--tap-y, 50%); width: 5.4rem; aspect-ratio: 1; margin: -2.7rem 0 0 -2.7rem; border-radius: 50%;
    border: 2px solid var(--inv-shine); opacity: 0;
}
.teduh-tap__hand {
    position: absolute; left: 55%; top: calc(var(--tap-y, 50%) + 1.2rem); width: 2.5rem; height: 2.5rem;
    fill: #fff; stroke: var(--teduh-gold-1); stroke-width: 1.4; stroke-linejoin: round;
    filter: drop-shadow(0 4px 6px rgb(0 0 0 / .35));
}
.teduh-tap__label {
    position: absolute; left: 50%; bottom: -.9rem; transform: translateX(-50%); width: max-content; max-width: 92%;
    padding: .4rem 1rem; border-radius: 999px; font-size: .74rem; font-weight: 600; letter-spacing: .04em; line-height: 1.3;
    color: var(--inv-deep); background: var(--teduh-foil); background-size: 220% 100%;
    box-shadow: 0 8px 16px -8px rgb(0 0 0 / .5);
}

/* ---------- 4. cover ---------- */
.teduh-cover {
    --arch-cover: 15.2rem;
    --string-w: 17px;
    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.6rem 1.4rem 1.9rem; isolation: isolate; color: var(--inv-background);
    background:
        radial-gradient(70% 34% at 50% 34%, color-mix(in srgb, var(--inv-primary) 82%, transparent), transparent 75%),
        radial-gradient(70% 28% at 50% 100%, color-mix(in srgb, var(--inv-teal) 46%, transparent), transparent 75%),
        radial-gradient(40% 24% at 0% 0%, color-mix(in srgb, var(--inv-accent) 16%, transparent), transparent 75%),
        var(--inv-deep);
    transition: opacity .9s ease;
}
/* the star ground */
.teduh-cover::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .08; background: var(--inv-shine);
    -webkit-mask: var(--teduh-ground) center top / 56px 56px repeat; mask: var(--teduh-ground) center top / 56px 56px repeat;
}
/* the curtain: jasmine strings hanging from the top edge at both sides */
.teduh-cover__curtain { position: absolute; inset: 0 0 auto; z-index: -1; height: 0; pointer-events: none; }
.teduh-cover__curtain::before {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px;
    background: linear-gradient(90deg, var(--inv-accent) 0 27%, transparent 27% 73%, var(--inv-accent) 73%);
    opacity: .75;
}
.teduh-cover__hang { position: absolute; top: 0; width: var(--string-w); transform-origin: 50% 0; }
.teduh-cover__hang--l { left: var(--at); }
.teduh-cover__hang--r { right: var(--at); }
.teduh-cover__string { width: 100%; }
.teduh-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); }

.teduh-cover__host {
    max-width: 16rem; margin: 0 0 .5rem;
    font-size: .68rem; font-weight: 600; line-height: 1.4; letter-spacing: .22em; text-transform: uppercase; color: var(--inv-shine); text-wrap: balance;
}

.teduh-cover__art { position: relative; width: var(--arch-cover); }
/* a warm light breathing behind the arch */
.teduh-cover__art::before {
    content: ''; position: absolute; z-index: -1; left: -22%; right: -22%; top: 6%; bottom: -6%; border-radius: 50%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--inv-shine) 30%, transparent), transparent);
}
.teduh-arch--cover { --arch-w: var(--arch-cover); --arch-pos: center 24%; }
/* the gold sill under the arch and the lit lamp standing on it */
.teduh-cover__sill { position: absolute; left: -14%; right: -14%; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--inv-accent) 22%, var(--teduh-gold-3) 50%, var(--inv-accent) 78%, transparent); }
/* the foot of the photo darkens a little so the lamp's light reads */
.teduh-arch--cover .teduh-arch__window::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 66%, color-mix(in srgb, var(--inv-deep) 82%, transparent)); }
.teduh-cover__pelita { position: absolute; left: 50%; bottom: -.35rem; width: 3.1rem; margin-left: -1.55rem; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--inv-shine) 50%, transparent)) drop-shadow(0 4px 6px rgb(0 0 0 / .35)); }

.teduh-cover__title {
    margin: .55rem 0 0; max-width: 100%; font-family: var(--teduh-script); font-size: 3.05rem; font-weight: 400; line-height: 1.1;
    padding: 0 .2em .08em; word-spacing: .14em; text-wrap: balance; filter: drop-shadow(0 2px 6px rgb(0 0 0 / .3));
}
.teduh-cover__date { display: flex; flex-direction: column; align-items: center; gap: .1rem; margin: .3rem 0 0; }
.teduh-cover__day {
    display: inline-flex; align-items: center; gap: .7rem; font-family: var(--teduh-head); font-size: 1.02rem; letter-spacing: .05em; color: #fff;
}
.teduh-cover__day::before, .teduh-cover__day::after { content: ''; width: 1.8rem; height: 1px; background: linear-gradient(90deg, transparent, var(--inv-accent)); }
.teduh-cover__day::after { transform: scaleX(-1); }
.teduh-cover__hijri { font-family: var(--teduh-serif); font-size: 1rem; font-style: italic; font-weight: 600; color: var(--inv-shine); }
.teduh-cover__quote {
    max-width: 30ch; margin: .5rem 0 0; font-family: var(--teduh-serif); font-style: italic; font-weight: 500;
    font-size: 1.05rem; line-height: 1.32; color: var(--teduh-cream-muted); text-wrap: balance;
}
.teduh-cover__guest {
    width: min(100%, 18.5rem); margin: .75rem 0 0; padding: .45rem 1rem .5rem; border-radius: 14px;
    background: color-mix(in srgb, var(--inv-deep) 55%, transparent);
    box-shadow: inset 0 0 0 1px var(--teduh-line);
}
.teduh-cover__guest p { margin: 0; font-size: .6rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--inv-shine); }
.teduh-cover__guest-name { display: block; font-family: var(--teduh-serif); font-size: 1.26rem; font-weight: 600; line-height: 1.22; color: #fff; overflow-wrap: anywhere; }
.teduh-cover__open {
    margin-top: .85rem; min-height: 2.9rem; padding: .65rem 1.9rem; font-weight: 600; letter-spacing: .06em;
    color: var(--inv-deep); background: var(--teduh-foil); background-size: 220% 100%;
    box-shadow: 0 0 0 3px var(--inv-deep), 0 0 0 4.2px var(--teduh-line), 0 14px 26px -12px rgb(0 0 0 / .6);
}

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

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

/* opening: a cream letter in a cartouche with an ogee hood line on top */
.teduh-opening { padding: 5.2rem 1.3rem 4.4rem; }
.teduh-letter { max-width: 22.5rem; margin: 0 auto; padding: 3rem 1.6rem 2.8rem; border-radius: 6px; box-shadow: var(--teduh-drop); }
.teduh-letter__crown { position: absolute !important; left: 50%; top: -2.2rem; width: 62%; height: auto; transform: translateX(-50%); overflow: visible; }
.teduh-letter__body { padding: 0 .6rem; }
.teduh-opening__basmalah { margin: 0 0 .6rem; font-size: 1.7rem; }
.teduh-opening__greeting { margin: 0 auto; max-width: 20ch; font-family: var(--teduh-head); font-size: 1.32rem; line-height: 1.35; color: var(--teduh-title); text-wrap: balance; }
.teduh-opening__divider { margin: 1rem auto; }
.teduh-opening__message { margin: 0 auto; max-width: 28ch; color: var(--teduh-muted); }
.teduh-opening__quote { margin: 1.6rem 0 0; padding-top: 1.4rem; border-top: 1px solid color-mix(in srgb, var(--inv-accent) 35%, transparent); }
.teduh-opening__mark { display: block; width: 2rem; height: 1.5rem; margin: 0 auto .6rem; opacity: .85; }
.teduh-opening__quote p { margin: 0; font-family: var(--teduh-serif); font-style: italic; font-size: 1.14rem; font-weight: 500; line-height: 1.5; color: var(--inv-text); }
.teduh-opening__quote cite,
.teduh-prayer__text cite {
    display: inline-block; margin-top: .9rem; padding: .26rem .9rem; border-radius: 999px; font-style: normal; font-size: .7rem; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase; color: var(--teduh-gold-ink); box-shadow: inset 0 0 0 1px var(--teduh-line);
}

/* organizer: the arch with jasmine strings, a seal with the logo or monogram on its foot, the board, the name, the motto */
.teduh-organizer__art { position: relative; width: min(14rem, 64vw); margin: 0 auto; }
.teduh-arch--organizer { --arch-w: 100%; --arch-pos: center 35%; }
.teduh-organizer__seal {
    position: relative; z-index: 2; display: grid; place-items: center; width: 4.7rem; height: 4.7rem; margin: -2.5rem auto 0; overflow: hidden;
    border-radius: 50%; color: #fff; background: radial-gradient(circle at 38% 32%, color-mix(in srgb, var(--inv-primary) 70%, #fff), var(--inv-deep));
    box-shadow: 0 0 0 3px var(--inv-soft), 0 0 0 4.4px var(--inv-accent), 0 12px 22px -10px color-mix(in srgb, var(--inv-deep) 70%, transparent);
    font-family: var(--teduh-head); font-size: 1.45rem; letter-spacing: .06em; line-height: 1;
}
.teduh-organizer__seal span { padding: 0 .4rem; text-align: center; overflow-wrap: anywhere; }
.teduh-organizer__seal--logo { background: #fff; }
.teduh-organizer__seal img { width: 78%; height: 78%; object-fit: contain; }
.teduh-organizer__unit { margin: 1.25rem auto 0 !important; font-size: .66rem; font-weight: 600; letter-spacing: .22em; line-height: 1.45; text-transform: uppercase; color: var(--teduh-gold-ink); text-wrap: balance; }
.teduh-organizer__name { margin: .35rem auto 0; max-width: 17ch; font-family: var(--teduh-head); font-size: 1.68rem; font-weight: 400; line-height: 1.2; color: var(--teduh-title); text-wrap: balance; overflow-wrap: anywhere; }
.teduh-organizer__tagline { display: flex; align-items: center; justify-content: center; gap: .55rem; margin: .55rem auto 0 !important; font-family: var(--teduh-serif); font-size: 1.12rem; font-style: italic; color: var(--teduh-muted); }
.teduh-organizer__tagline::before, .teduh-organizer__tagline::after { content: ''; width: 9px; height: 5px; flex: none; border-radius: 0 100%; background: var(--inv-leaf); }
.teduh-organizer__tagline::after { transform: scaleX(-1); }

/* memorial: the niche with the lamp to light — the heart of the page */
.teduh-memorial { padding: 4.6rem 1.4rem 4.8rem; }
.teduh-niche {
    --tap-y: 77.8%;
    position: relative; display: block; width: min(17rem, 76vw); aspect-ratio: 200 / 340; margin: 0 auto; padding: 0; border: 0; cursor: pointer;
    background: none; color: inherit; font: inherit; -webkit-tap-highlight-color: transparent;
}
.teduh-niche:focus-visible { outline: 2px solid var(--inv-shine); outline-offset: 6px; border-radius: 1rem; }
.teduh-niche__recess {
    position: absolute; left: 11%; right: 11%; top: 10%; bottom: 8.235%; overflow: hidden;
    background:
        radial-gradient(60% 30% at 50% 26%, color-mix(in srgb, var(--inv-teal) 50%, transparent), transparent 75%),
        linear-gradient(180deg, color-mix(in srgb, var(--inv-primary) 55%, var(--inv-deep)), color-mix(in srgb, var(--inv-deep) 85%, #000) 78%);
    -webkit-mask: var(--teduh-arch) center / 100% 100% no-repeat; mask: var(--teduh-arch) center / 100% 100% no-repeat;
    transition: filter 2.4s ease .3s;
}
/* the warm light of the lamp filling the niche */
.teduh-niche__glow {
    position: absolute; inset: 0;
    background:
        radial-gradient(48% 30% at 50% 79%, rgb(255 228 160 / .78), color-mix(in srgb, var(--inv-shine) 34%, transparent) 50%, transparent 78%),
        radial-gradient(90% 60% at 50% 70%, color-mix(in srgb, var(--inv-shine) 26%, transparent), transparent 75%);
    transition: opacity 2.6s ease .35s;
}
.teduh-niche__frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.teduh-niche__hood { fill: color-mix(in srgb, var(--inv-teal) 40%, var(--inv-deep)); opacity: .85; }
.teduh-niche__scallop { fill: color-mix(in srgb, var(--inv-shine) 22%, transparent); }
.teduh-niche__cells path { fill: color-mix(in srgb, var(--inv-primary) 55%, var(--inv-deep)); }
.teduh-niche__ledge { fill: color-mix(in srgb, var(--inv-accent) 35%, var(--inv-deep)); }
.teduh-niche__strings { position: absolute; inset: 0; pointer-events: none; }
.teduh-niche__string { position: absolute; top: 44.7%; width: 7.5%; transition: filter 2.4s ease .4s; }
.teduh-niche__string--l { left: 13%; }
.teduh-niche__string--r { right: 13%; }
.teduh-niche__portrait {
    position: absolute; left: 33%; width: 34%; top: 45.3%; aspect-ratio: 4 / 5; display: grid; place-items: center; overflow: hidden; border-radius: 50%;
    background: radial-gradient(circle at 40% 32%, color-mix(in srgb, var(--inv-primary) 60%, #fff), var(--inv-deep));
    border: 1.5px solid var(--inv-accent); outline: 1px solid var(--teduh-line); outline-offset: 4px;
    transition: filter 2.6s ease .5s;
}
.teduh-niche__portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.teduh-niche__initial { font-family: var(--teduh-head); font-size: 2.4rem; line-height: 1; color: #fff; }
.teduh-niche__pelita { position: absolute; left: 40%; width: 20%; bottom: calc(11.2% - 6px); }
/* dark until lit */
.teduh-memorial.is-armed .teduh-niche__glow { opacity: 0; }
.teduh-memorial.is-armed .teduh-niche__recess { filter: brightness(.72); }
.teduh-memorial.is-armed .teduh-niche__portrait { filter: brightness(.48) saturate(.55); }
.teduh-memorial.is-armed .teduh-niche__string { filter: brightness(.6) saturate(.7); }
.teduh-niche .teduh-tap__label { bottom: -1.1rem; }

.teduh-memorial__name { margin: 2.2rem auto 0; max-width: 19ch; font-family: var(--teduh-head); font-size: 1.8rem; font-weight: 400; line-height: 1.2; color: #fff; text-wrap: balance; }
.teduh-memorial__years { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem .9rem; margin: .5rem auto 0 !important; font-size: .86rem; color: var(--teduh-cream-muted); }
.teduh-memorial__years span + span::before { content: '·'; margin-right: .9rem; color: var(--inv-shine); }
.teduh-memorial__light { transition: opacity 1.6s ease 1.5s, transform 1.6s cubic-bezier(.2, .8, .3, 1) 1.5s, filter 1.6s ease 1.5s; }
.teduh-memorial.is-armed .teduh-memorial__light { opacity: .1; transform: translateY(10px); filter: blur(2px); }
.teduh-memorial__divider { margin: 1.2rem auto; }
.teduh-memorial__message { margin: 0 auto; max-width: 30ch; font-family: var(--teduh-serif); font-size: 1.16rem; font-style: italic; line-height: 1.55; color: var(--teduh-cream-muted); }
.teduh-memorial__fatihah {
    display: inline-block; margin: 1rem auto 0; padding: .36rem 1.15rem; border-radius: 999px; font-size: .76rem; font-weight: 600; letter-spacing: .1em;
    color: var(--inv-shine); box-shadow: inset 0 0 0 1px var(--teduh-line);
}

/* occasion: a small lit lamp, the type in the heading font, the Hijri date and theme in a cartouche, the intent */
.teduh-occasion__pelita { width: 2.4rem; margin: 0 auto .7rem; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--inv-accent) 45%, transparent)) drop-shadow(0 4px 6px rgb(0 0 0 / .2)); }
.teduh-occasion__eyebrow { margin: 0 0 .55rem !important; font-size: .66rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--teduh-gold-ink); }
.teduh-occasion__type { margin: 0 auto; max-width: 17ch; font-family: var(--teduh-head); font-size: 2.05rem; font-weight: 400; line-height: 1.18; color: var(--teduh-title); text-wrap: balance; }
.teduh-occasion__panel { max-width: 20rem; margin: 1.6rem auto 0; padding: 1.5rem 1.4rem 1.45rem; border-radius: 4px; box-shadow: var(--teduh-drop); }
.teduh-occasion__hijri { margin: 0; font-family: var(--teduh-serif); font-size: 1.65rem; font-weight: 700; line-height: 1.2; padding-bottom: .05em; }
.teduh-occasion__theme-label { margin: .75rem 0 0; font-size: .6rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--teduh-gold-ink); }
.teduh-occasion__theme { margin: .2rem 0 0; font-family: var(--teduh-serif); font-size: 1.2rem; font-style: italic; font-weight: 600; line-height: 1.35; color: var(--teduh-title); text-wrap: balance; }
.teduh-occasion__hijri + .teduh-occasion__theme-label { padding-top: .75rem; border-top: 1px solid color-mix(in srgb, var(--inv-accent) 35%, transparent); }
.teduh-occasion__divider { margin: 1.7rem auto 1.1rem; }
.teduh-occasion__intent { margin: 0 auto !important; max-width: 30ch; font-family: var(--teduh-serif); font-size: 1.14rem; font-style: italic; line-height: 1.5; color: var(--teduh-muted); }

/* events: cream cards in a cartouche with a wide ogee photo and a date medallion in a khatam star */
.teduh-event { margin: 0 auto; max-width: 25rem; padding: .8rem .8rem 1.6rem; border-radius: 6px; text-align: left; box-shadow: var(--teduh-drop); }
.teduh-event + .teduh-event { margin-top: 2.4rem; }
.teduh-event__media { margin: .25rem .25rem 0; }
.teduh-event__photo {
    display: block; width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: center 30%;
    -webkit-mask: var(--teduh-arch-wide) center / 100% 100% no-repeat; mask: var(--teduh-arch-wide) center / 100% 100% no-repeat;
}
.teduh-event__top { display: flex; align-items: center; gap: .9rem; padding: 1.2rem 1rem 0; }
.teduh-event__media + .teduh-event__top { margin-top: -2.3rem; align-items: flex-end; }
.teduh-event__date {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; width: 4.9rem; height: 4.9rem; margin: 0;
    color: #fff; font-size: .55rem; font-weight: 600; letter-spacing: .1em; line-height: 1.2; text-transform: uppercase;
}
.teduh-event__star { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: var(--teduh-glass); stroke: var(--inv-accent); stroke-width: .5; filter: drop-shadow(0 8px 10px color-mix(in srgb, var(--inv-deep) 40%, transparent)); }
.teduh-event__date span, .teduh-event__date strong { position: relative; }
.teduh-event__date strong { font-family: var(--teduh-head); font-size: 1.7rem; font-weight: 400; line-height: 1; letter-spacing: 0; }
.teduh-event__date span:first-of-type { color: var(--inv-shine); }
.teduh-event__head { min-width: 0; padding-bottom: .15rem; }
.teduh-event__media + .teduh-event__top .teduh-event__head { padding-top: 2.6rem; }
.teduh-event__name { margin: 0; font-family: var(--teduh-head); font-size: 1.45rem; font-weight: 400; line-height: 1.2; color: var(--teduh-title); }
.teduh-event__full { margin: .15rem 0 0; font-size: .8rem; color: var(--teduh-muted); }
.teduh-event__rows { display: grid; gap: .7rem; margin: 1rem 1rem 0; padding: .95rem 0 0; list-style: none; font-size: .9rem; border-top: 1px solid color-mix(in srgb, var(--inv-accent) 35%, transparent); }
.teduh-event__rows li { display: flex; align-items: flex-start; gap: .65rem; }
.teduh-event__rows .teduh-icon { width: 2rem; height: 2rem; padding: .42rem; border-radius: 50%; color: var(--teduh-gold-ink); box-shadow: inset 0 0 0 1px var(--teduh-line); }
.teduh-event__rows li > span { padding-top: .28rem; }
.teduh-event__venue { display: block; font-weight: 600; }
.teduh-event__address { display: block; font-size: .85rem; color: var(--teduh-muted); }
.teduh-event .inv-maps { margin: 1.1rem 1rem 0; text-align: center; }
.teduh-event .inv-maps .inv-button { width: 100%; font-weight: 600; }
.teduh-event .inv-maps__frame { height: 180px; border-radius: 12px; }

/* countdown: small cream ogee tiles with serif numerals */
.teduh-countdown .inv-countdown { gap: clamp(.45rem, 2.4vw, .8rem); }
.teduh-countdown .inv-countdown__item {
    display: grid; place-content: center; width: clamp(4rem, 18.5vw, 4.6rem); min-width: 0; aspect-ratio: 160 / 205; padding: 1.1rem 0 0; border-radius: 0;
    color: var(--inv-text); background: linear-gradient(180deg, var(--teduh-paper), color-mix(in srgb, var(--inv-background) 80%, var(--inv-accent)));
    -webkit-mask: var(--teduh-arch) center / 100% 100% no-repeat; mask: var(--teduh-arch) center / 100% 100% no-repeat;
}
.teduh-countdown .inv-countdown__value { font-variant-numeric: lining-nums tabular-nums; font-family: var(--teduh-head); font-size: 1.75rem; font-weight: 400; line-height: 1; color: var(--teduh-title); }
.teduh-countdown .inv-countdown__label { margin-top: .15rem; font-size: .52rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teduh-gold-ink); }
.teduh-countdown .inv-countdown__done { font-family: var(--teduh-serif); font-size: 1.3rem; font-style: italic; color: var(--inv-shine); }
.teduh-countdown .inv-countdown__actions { flex-direction: column; align-items: center; gap: .6rem; margin-top: 2rem; }
.teduh-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(--teduh-line);
}
.teduh-countdown .inv-countdown__actions .inv-button:first-child { color: var(--inv-deep); background: var(--teduh-foil); background-size: 220% 100%; box-shadow: none; }
.teduh-countdown .inv-cal {
    --inv-cal-bg: var(--teduh-paper); --inv-cal-mark: var(--inv-primary);
    max-width: 19rem; margin: 2.8rem auto 0; border-radius: 8px;
    box-shadow: inset 0 0 0 1px var(--teduh-line), 0 22px 40px -24px rgb(0 0 0 / .6);
}
.teduh-countdown .inv-cal__month { font-family: var(--teduh-head); font-size: 1.35rem; font-weight: 400; color: var(--teduh-title); }

/* speakers: the main speaker as a cartouche card with a tall ogee portrait, the others as compact rows */
.teduh-speakers__list { display: grid; gap: .85rem; max-width: 25rem; margin: 0 auto; padding: 0; list-style: none; }
.teduh-speaker {
    display: grid; grid-template-columns: 4.4rem minmax(0, 1fr); align-items: center; gap: 1rem; padding: .8rem 1rem .8rem .8rem; border-radius: 6px;
    text-align: left; background: var(--teduh-paper); box-shadow: inset 0 0 0 1px var(--teduh-line);
}
.teduh-speaker__window {
    position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 160 / 210; overflow: hidden;
    background: linear-gradient(170deg, color-mix(in srgb, var(--inv-primary) 80%, #fff), var(--inv-deep));
    -webkit-mask: var(--teduh-arch) center / 100% 100% no-repeat; mask: var(--teduh-arch) center / 100% 100% no-repeat;
}
.teduh-speaker__window img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.teduh-speaker__letter { padding-top: 24%; font-family: var(--teduh-head); font-size: 1.8rem; color: #fff; }
.teduh-speaker__role { margin: 0; font-size: .62rem; font-weight: 600; letter-spacing: .16em; line-height: 1.4; text-transform: uppercase; color: var(--teduh-gold-ink); }
.teduh-speaker__name { margin: .15rem 0 0; font-family: var(--teduh-head); font-size: 1.22rem; font-weight: 400; line-height: 1.22; color: var(--teduh-title); overflow-wrap: anywhere; }
.teduh-speaker__topic { margin: .3rem 0 0; font-family: var(--teduh-serif); font-size: 1rem; font-style: italic; line-height: 1.35; color: var(--teduh-muted); }
.teduh-speaker--main { grid-template-columns: 1fr; justify-items: center; gap: 0; padding: 1.5rem 1.2rem 1.6rem; text-align: center; box-shadow: var(--teduh-drop); }
.teduh-speaker--main .teduh-speaker__window { width: min(11.5rem, 56vw); }
.teduh-speaker--main .teduh-speaker__letter { font-size: 3.2rem; }
.teduh-speaker--main .teduh-speaker__text { margin-top: 1rem; }
.teduh-speaker--main .teduh-speaker__name { font-size: 1.55rem; }
.teduh-speaker--main .teduh-speaker__topic {
    display: inline-block; margin-top: .65rem; padding: .5rem 1rem; border-radius: 10px; font-size: 1.06rem; color: var(--inv-text);
    background: color-mix(in srgb, var(--inv-soft) 65%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 40%, transparent);
}

/* prayer: a deep glass panel with an ogee cap, jasmine strings on its shoulders, a lit lamp over its apex */
.teduh-prayer { padding-top: 5rem; }
.teduh-prayer__panel {
    --cap: 4.6rem;
    position: relative; max-width: 22rem; margin: 0 auto; padding: calc(var(--cap) + .3rem) 1.5rem 2.6rem; color: var(--inv-background);
    background:
        radial-gradient(80% 40% at 50% 0%, color-mix(in srgb, var(--inv-shine) 18%, transparent), transparent 70%),
        color-mix(in srgb, var(--inv-primary) 42%, var(--inv-deep));
    -webkit-mask: var(--teduh-cap) top / 100% var(--cap) no-repeat, linear-gradient(#000, #000) 0 calc(var(--cap) - 1px) / 100% calc(100% - var(--cap) + 1px) no-repeat;
    mask: var(--teduh-cap) top / 100% var(--cap) no-repeat, linear-gradient(#000, #000) 0 calc(var(--cap) - 1px) / 100% calc(100% - var(--cap) + 1px) no-repeat;
}
/* the gold rule: the cap's curve (svg) and the sides and foot (::before) */
.teduh-prayer__cap { position: absolute; left: 7px; right: 7px; top: 9px; width: calc(100% - 14px); height: calc(var(--cap) - 9px); overflow: visible; fill: none; stroke: var(--inv-accent); stroke-width: 1; }
.teduh-prayer__panel::before {
    content: ''; position: absolute; left: 7px; right: 7px; top: var(--cap); bottom: 7px; pointer-events: none;
    border: 1px solid var(--inv-accent); border-top: 0;
}
.teduh-prayer__pelita { position: absolute; left: 50%; top: -.4rem; width: 2.2rem; margin-left: -1.1rem; filter: drop-shadow(0 0 12px color-mix(in srgb, var(--inv-shine) 60%, transparent)); }
.teduh-prayer__strings { position: absolute; inset: 0; pointer-events: none; }
.teduh-prayer__string { position: absolute; top: calc(var(--cap) - .4rem); width: 12px; }
.teduh-prayer__string--l { left: 1.1rem; }
.teduh-prayer__string--r { right: 1.1rem; }
.teduh-prayer__eyebrow { position: relative; margin: 0 0 .9rem; font-size: .64rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--inv-shine); }
.teduh-prayer__arabic { position: relative; margin: 0 .6rem 1rem; font-size: 1.5rem; text-wrap: balance; }
.teduh-prayer__text { position: relative; margin: 0 .6rem; }
.teduh-prayer__text p { margin: 0; font-family: var(--teduh-serif); font-size: 1.14rem; font-style: italic; font-weight: 500; line-height: 1.5; color: var(--teduh-cream-muted); }
.teduh-prayer__text cite { color: var(--inv-shine); }

/* rundown: a thread like a jasmine string, a blossom at every step */
.teduh-rundown__list { position: relative; max-width: 24rem; margin: 0 auto; padding: 0; list-style: none; text-align: left; }
.teduh-rundown__list::before {
    content: ''; position: absolute; left: 4.65rem; top: .9rem; bottom: .9rem; width: 1px; transform-origin: top;
    background: linear-gradient(180deg, var(--inv-leaf), color-mix(in srgb, var(--inv-accent) 60%, transparent));
}
.teduh-rundown__item { position: relative; display: grid; grid-template-columns: 3.4rem 1.5rem minmax(0, 1fr); align-items: start; column-gap: .5rem; padding: 0 0 .9rem; }
.teduh-rundown__item:last-child { padding-bottom: 0; }
.teduh-rundown__time { margin-top: .62rem; font-family: var(--teduh-head); font-size: 1.02rem; font-variant-numeric: tabular-nums; text-align: right; color: var(--teduh-gold-ink); }
.teduh-rundown__bloom { width: 1.5rem; height: 1.5rem; margin-top: .55rem; overflow: visible; filter: drop-shadow(0 2px 2px rgb(0 0 0 / .16)); }
.teduh-rundown__body { padding: .7rem .95rem .75rem; border-radius: 6px; background: var(--teduh-paper); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 45%, transparent); }
.teduh-rundown__body h3 { margin: 0; font-family: var(--teduh-head); font-size: 1.06rem; font-weight: 400; line-height: 1.35; color: var(--teduh-title); }
.teduh-rundown__body p { margin: .15rem 0 0; font-size: .85rem; color: var(--teduh-muted); }

/* charity: the programme, the beneficiaries in a khatam badge, the needs as chips, the photo melting in */
.teduh-charity--photo { padding-top: 0; }
.teduh-charity__photo {
    position: relative; z-index: -1; height: 14rem; margin: 0 -1.4rem -3rem; overflow: hidden;
    -webkit-mask: linear-gradient(180deg, #000 45%, transparent); mask: linear-gradient(180deg, #000 45%, transparent);
}
.teduh-charity__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; opacity: .85; }
.teduh-charity__title { margin: 0 auto; max-width: 20ch; font-family: var(--teduh-head); font-size: 1.55rem; font-weight: 400; line-height: 1.25; color: #fff; text-wrap: balance; }
.teduh-charity__badge { position: relative; display: grid; place-items: center; width: 11.6rem; aspect-ratio: 1; margin: 1.4rem auto 1.2rem !important; }
.teduh-charity__badge svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: color-mix(in srgb, var(--inv-teal) 30%, var(--inv-deep)); stroke: var(--inv-shine); stroke-width: .3; filter: drop-shadow(0 0 14px color-mix(in srgb, var(--inv-shine) 28%, transparent)); }
.teduh-charity__badge span { position: relative; max-width: 6.8rem; font-family: var(--teduh-serif); font-size: 1.16rem; font-weight: 700; line-height: 1.15; text-wrap: balance; }
.teduh-charity__text { color: var(--teduh-cream-muted); font-size: .92rem; }
.teduh-charity__needs { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; max-width: 24rem; margin: 1rem auto 0; padding: 0; list-style: none; }
.teduh-charity__needs li {
    display: inline-flex; align-items: center; gap: .45rem; padding: .42rem .9rem; border-radius: 999px; font-size: .86rem; font-weight: 500;
    color: #fff; background: color-mix(in srgb, var(--inv-background) 8%, transparent); box-shadow: inset 0 0 0 1px var(--teduh-line);
}
.teduh-charity__needs li::before { content: ''; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--inv-petal); box-shadow: 0 0 0 2px color-mix(in srgb, var(--inv-petal) 25%, transparent); }
.teduh-charity__button {
    display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.5rem; min-height: 2.9rem; padding: .6rem 1.6rem; text-decoration: none;
    color: var(--inv-deep) !important; background: var(--teduh-foil) !important; background-size: 220% 100% !important; font-weight: 600;
}

/* story: small ogee arches beside the text, alternating; text-only chapters as tinted cards */
.teduh-story__list { display: grid; gap: 2.2rem; margin: 0; padding: 0; list-style: none; text-align: left; }
.teduh-story__item { display: grid; grid-template-columns: 42% minmax(0, 1fr); align-items: center; gap: 1.2rem; }
.teduh-story__item--flip { grid-template-columns: minmax(0, 1fr) 42%; }
.teduh-story__item--flip .teduh-story__media { order: 2; }
.teduh-story__media { filter: drop-shadow(0 14px 18px color-mix(in srgb, var(--inv-deep) 30%, transparent)); }
.teduh-story__photo {
    display: block; width: 100%; aspect-ratio: 5 / 6.6; object-fit: cover; object-position: center 28%;
    -webkit-mask: var(--teduh-arch) center / 100% 100% no-repeat; mask: var(--teduh-arch) center / 100% 100% no-repeat;
}
.teduh-story__when {
    display: inline-block; padding: .2rem .75rem; border-radius: 999px; font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--teduh-gold-ink); box-shadow: inset 0 0 0 1px var(--teduh-line);
}
.teduh-story__body h3 { margin: .5rem 0 0; font-family: var(--teduh-head); font-size: 1.3rem; font-weight: 400; line-height: 1.22; color: var(--teduh-title); }
.teduh-story__body p { margin: .35rem 0 0; font-size: .88rem; line-height: 1.55; color: var(--teduh-muted); }
.teduh-story__item--text { grid-template-columns: 2.6rem minmax(0, 1fr); align-items: start; gap: .9rem; padding: 1.15rem 1.2rem; border-radius: 6px; background: color-mix(in srgb, var(--inv-soft) 55%, var(--teduh-paper)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 45%, transparent); }
.teduh-story__dot {
    display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; font-family: var(--teduh-head); font-size: 1.15rem;
    color: #fff; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--inv-primary) 75%, #fff), var(--inv-deep)); box-shadow: 0 0 0 2px var(--teduh-paper), 0 0 0 3.2px var(--inv-accent);
}

/* etiquette: rows with a small jasmine blossom in a cartouche card */
.teduh-etiquette__card { max-width: 24rem; margin: 0 auto; padding: 1.2rem 1.1rem; border-radius: 4px; box-shadow: var(--teduh-drop); }
.teduh-etiquette__list { display: grid; gap: .4rem; margin: 0; padding: 0; list-style: none; text-align: left; }
.teduh-etiquette__list li { display: grid; grid-template-columns: 1.45rem minmax(0, 1fr); align-items: start; gap: .7rem; padding: .45rem .3rem; font-size: .92rem; line-height: 1.5; }
.teduh-etiquette__list li + li { border-top: 1px solid color-mix(in srgb, var(--inv-accent) 28%, transparent); padding-top: .6rem; }
.teduh-etiquette__list svg { width: 1.45rem; height: 1.45rem; margin-top: .05rem; padding: .12rem; overflow: visible; border-radius: 50%; background: color-mix(in srgb, var(--inv-leaf) 70%, var(--inv-deep)); }

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

/* live streaming */
.teduh-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: 10px; color: var(--inv-background); text-align: left;
    background: radial-gradient(70% 90% at 0% 0%, color-mix(in srgb, var(--inv-teal) 50%, transparent), transparent 70%), linear-gradient(140deg, var(--inv-primary), var(--inv-deep));
    box-shadow: inset 0 0 0 1px var(--teduh-line), var(--teduh-drop);
}
.teduh-stream__icon { display: grid; place-items: center; width: 3.3rem; height: 3.3rem; border-radius: 50%; color: var(--inv-deep); background: var(--teduh-foil); background-size: 220% 100%; }
.teduh-stream__icon .teduh-icon { width: 1.65rem; height: 1.65rem; }
.teduh-stream__title { margin: 0 0 .1rem; font-family: var(--teduh-head); font-size: 1.5rem; font-weight: 400; line-height: 1.15; color: #fff; }
.teduh-stream__text p { margin: 0; font-size: .86rem; color: var(--teduh-cream-muted); }
.teduh-stream__text .teduh-stream__note { margin-top: .3rem; font-weight: 600; color: var(--inv-shine); }
.teduh-stream__button { grid-column: 1 / -1; min-height: 2.75rem; color: var(--inv-deep) !important; background: var(--teduh-foil) !important; background-size: 220% 100% !important; font-weight: 600; }

/* RSVP card: cream in a cartouche */
.teduh-rsvp__card { max-width: 25rem; margin: 0 auto; padding: 2rem 1.2rem 1.5rem; border-radius: 4px; color: var(--inv-text); box-shadow: 0 22px 40px -24px rgb(0 0 0 / .6); }
.teduh-rsvp__intro { margin: 0 auto 1.1rem; max-width: 30ch; font-size: .9rem; color: var(--teduh-muted); }
.teduh-rsvp__sent { margin-bottom: 1rem; }
.teduh-rsvp__check { display: block; width: 4.25rem; height: 4.25rem; margin: 0 auto .5rem; }
.teduh-rsvp__check circle { fill: var(--inv-primary); }
.teduh-rsvp__check path { fill: none; stroke: #fff; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
html.inv-anim .teduh-rsvp__sent .teduh-rsvp__check { animation: teduh-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
html.inv-anim .teduh-rsvp__sent .teduh-rsvp__check path { animation: teduh-draw .7s ease-out .35s both; }
.teduh-rsvp__thanks { margin: 0; font-family: var(--teduh-head); font-size: 1.7rem; line-height: 1.2; color: var(--teduh-title); }
.teduh-rsvp__line { margin: .15rem 0 0; font-size: .9rem; color: var(--teduh-muted); }
.teduh-rsvp .inv-rsvp__deadline { margin: 0 0 1rem; font-size: .84rem; font-weight: 600; color: var(--teduh-title); }

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

/* co-hosts: names in the heading font split by small jasmine blossoms, on cream */
.teduh-cohosts__list { display: flex; flex-direction: column; align-items: center; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.teduh-cohosts__list li { max-width: 26ch; font-family: var(--teduh-head); font-size: 1.14rem; line-height: 1.35; color: var(--teduh-title); text-wrap: balance; }
.teduh-cohosts__list li + li::before {
    content: ''; display: block; width: 13px; height: 13px; margin: 0 auto .55rem;
    background: var(--inv-accent);
    clip-path: polygon(50% 0, 62% 34%, 98% 35%, 69% 57%, 79% 91%, 50% 70%, 21% 91%, 31% 57%, 2% 35%, 38% 34%);
}

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

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

/* vendors (donatur & sponsor) */
.teduh-vendors__list { max-width: 24rem; margin: 0 auto; padding: .3rem 1.15rem; list-style: none; border-radius: 8px; background: var(--teduh-paper); box-shadow: inset 0 0 0 1px var(--teduh-line), var(--teduh-drop); }
.teduh-vendor { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .85rem 0; text-align: left; border-bottom: 1px solid color-mix(in srgb, var(--inv-accent) 35%, transparent); }
.teduh-vendor:last-child { border-bottom: 0; }
.teduh-vendor__text { display: flex; flex-direction: column; min-width: 0; }
.teduh-vendor__role { font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--teduh-gold-ink); }
.teduh-vendor__name { font-family: var(--teduh-head); font-size: 1.1rem; line-height: 1.3; color: var(--inv-text); overflow-wrap: anywhere; }
.teduh-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(--teduh-title); box-shadow: inset 0 0 0 1px var(--teduh-line);
}
.teduh-vendor__link .teduh-icon { width: .95rem; height: .95rem; }

/* closing: compact — the photo melting into the deep colour, jasmine at the edges, a lamp, thanks and the name */
.teduh-closing { padding: 3rem 1.6rem 5.8rem; }
.teduh-closing--photo { padding-top: 0; }
.teduh-closing__photo {
    position: relative; z-index: -1; height: min(20.5rem, calc(var(--inv-screen, 100svh) * .45)); margin: 0 -1.6rem; overflow: hidden;
    -webkit-mask: linear-gradient(180deg, #000 52%, transparent); mask: linear-gradient(180deg, #000 52%, transparent);
}
.teduh-closing__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.teduh-closing__strings { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.teduh-closing__string { position: absolute; top: 0; width: 14px; }
.teduh-closing__string--l { left: .7rem; }
.teduh-closing__string--r { right: .7rem; }
.teduh-closing__body { position: relative; }
.teduh-closing--photo .teduh-closing__body { margin-top: -4.6rem; }
.teduh-closing__pelita { width: 2.3rem; margin: 0 auto .5rem; filter: drop-shadow(0 0 12px color-mix(in srgb, var(--inv-shine) 55%, transparent)); }
.teduh-closing__title { margin: 0 0 .6rem; font-family: var(--teduh-head); font-size: 2.1rem; font-weight: 400; line-height: 1.1; color: #fff; }
.teduh-closing__title em { font-family: var(--teduh-script); font-style: normal; font-weight: 400; font-size: 1.28em; color: var(--inv-shine); }
.teduh-closing__message { margin: 0 auto; max-width: 32ch; font-size: .9rem; line-height: 1.55; color: var(--teduh-cream-muted); }
.teduh-closing__salam { margin: .75rem auto 0; max-width: 28ch; font-family: var(--teduh-serif); font-size: 1.06rem; font-style: italic; font-weight: 600; line-height: 1.35; color: var(--inv-shine); }
.teduh-closing__signature { margin: .45rem auto 0; max-width: 30ch; font-size: .84rem; color: var(--teduh-cream-muted); }
.teduh-closing__names { margin: .6rem auto 0; max-width: 24ch; font-family: var(--teduh-script); font-size: 1.9rem; word-spacing: .12em; line-height: 1.18; padding: 0 .15em .1em; text-wrap: balance; }

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

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

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

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

/* ---------- 8. screen sizes ---------- */
/* the cover in px steps per screen height (never svh: Chrome on iPhone sizes it to the whole screen) */
@media (max-height: 800px) {
    .teduh-cover { --arch-cover: 14rem; }
    .teduh-cover__title { font-size: 2.85rem; }
}
@media (max-height: 740px) {
    .teduh-cover { --arch-cover: 12.4rem; --string-w: 15px; padding-top: 1.3rem; padding-bottom: 1.4rem; }
    .teduh-cover__title { font-size: 2.6rem; margin-top: .4rem; }
    .teduh-cover__quote { font-size: .98rem; margin-top: .4rem; }
    .teduh-cover__guest { margin-top: .55rem; }
    .teduh-cover__open { margin-top: .65rem; }
    .teduh-cover__pelita { width: 2.8rem; margin-left: -1.4rem; }
}
@media (max-height: 680px) {
    .teduh-cover { --arch-cover: 10.9rem; --string-w: 13px; padding-top: 1rem; padding-bottom: 1.1rem; }
    .teduh-cover__host { font-size: .62rem; margin-bottom: .35rem; }
    .teduh-cover__title { font-size: 2.35rem; }
    .teduh-cover__day { font-size: .94rem; }
    .teduh-cover__hijri { font-size: .92rem; }
    .teduh-cover__quote { font-size: .92rem; line-height: 1.28; }
    .teduh-cover__guest { padding: .35rem .85rem .4rem; }
    .teduh-cover__guest-name { font-size: 1.12rem; }
    .teduh-cover__open { min-height: 2.7rem; padding: .55rem 1.6rem; }
    .teduh-cover__pelita { width: 2.5rem; margin-left: -1.25rem; }
}
@media (max-height: 620px) {
    .teduh-cover { --arch-cover: 9.4rem; --string-w: 12px; }
    .teduh-cover__title { font-size: 2.1rem; }
    .teduh-cover__quote { font-size: .86rem; }
}
@media (max-width: 360px) {
    .teduh-cover__title { font-size: 2.4rem; }
    .teduh-niche { width: min(16rem, 80vw); }
}

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

/* ---------- 9. motion (slow and gentle) ---------- */
@keyframes teduh-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes teduh-rise { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes teduh-zoom-out { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes teduh-shine { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
@keyframes teduh-breathe { 0%, 100% { opacity: .6; transform: scale(.97); } 50% { opacity: 1; transform: scale(1.03); } }
@keyframes teduh-descend { from { opacity: 0; transform: translateY(-40%); } to { opacity: 1; transform: none; } }
@keyframes teduh-sway { 0%, 100% { transform: rotate(-1.6deg); } 50% { transform: rotate(1.6deg); } }
@keyframes teduh-flicker { 0%, 100% { transform: scale(1, 1); } 35% { transform: scale(.95, 1.04); } 65% { transform: scale(1.03, .97); } }
@keyframes teduh-halo { 0%, 100% { opacity: .82; } 50% { opacity: 1; } }
@keyframes teduh-ping { 0% { opacity: .9; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.8); } }
@keyframes teduh-tap { 0%, 100% { transform: translate(0, 0) scale(1); } 45% { transform: translate(-3px, -5px) scale(.92); } }
@keyframes teduh-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* gold text and buttons: a very slow shine */
html.inv-anim :is(.teduh-heading__title em, .teduh-cover__title, .teduh-closing__names, .teduh-cover__open, .teduh-tap__label) { animation: teduh-shine 10s ease-in-out infinite; }

/* cover (≤ 2.5 s, once): the jasmine strings come down, the arch rises, its photo settles; then a living ground: the
   strings sway slowly (each at its own pace), the light behind the arch breathes, the lamp flickers */
html.inv-anim .teduh-cover__hang {
    animation: teduh-descend 1.6s cubic-bezier(.25, .8, .35, 1) calc(.1s + var(--i) * .12s) both, teduh-sway calc(6.5s + var(--i) * .7s) ease-in-out calc(1.8s + var(--i) * .3s) infinite;
}
html.inv-anim .teduh-arch--cover { animation: teduh-rise 1s cubic-bezier(.2, .7, .2, 1) .1s both; }
html.inv-anim .teduh-arch--cover .teduh-arch__photo { animation: teduh-zoom-out 1.6s cubic-bezier(.2, .7, .2, 1) .1s both; }
html.inv-anim .teduh-cover__pelita { animation: teduh-rise 1s cubic-bezier(.2, .7, .2, 1) .6s both; }
html.inv-anim .teduh-cover__art::before { animation: teduh-breathe 6s ease-in-out infinite; }

/* jasmine strings in the page sway softly from their tops */
html.inv-anim :is(.teduh-arch__string, .teduh-niche__string, .teduh-prayer__string, .teduh-closing__string) { animation: teduh-sway 7s ease-in-out infinite; }
html.inv-anim :is(.teduh-arch__string--r, .teduh-niche__string--r, .teduh-prayer__string--r, .teduh-closing__string--r) { animation-duration: 8.2s; animation-delay: -3s; }

/* every lit lamp: the flame flickers gently and the halo breathes */
html.inv-anim .teduh-pelita__flame { animation: teduh-flicker 2.2s ease-in-out infinite; }
html.inv-anim .teduh-pelita__halo { animation: teduh-halo 4s ease-in-out infinite; }

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

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

@media (prefers-reduced-motion: reduce) {
    .teduh-cover, .teduh-cover--leave, .teduh-cover__inner, .teduh-memorial__light, .teduh-niche__glow, .teduh-niche__recess,
    .teduh-niche__portrait, .teduh-niche__string, .teduh-pelita__fire, .teduh-pelita__halo, .teduh-pelita__glass { transition: none; }
}

/* ---------- 10. intro scene "Lorong Pelita" (scene.json + sections/_scene) ----------
   The intro is teleported to <body>: everything here stands on its own classes. */
.teduh-scene-ground { position: absolute; inset: 0; background: var(--inv-shine); opacity: .09; -webkit-mask: var(--teduh-ground) center / 56px 56px repeat; mask: var(--teduh-ground) center / 56px 56px repeat; }
.teduh-scene-svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: hidden; }
.teduh-scene-corridor__wall { fill: color-mix(in srgb, var(--inv-primary) 30%, var(--inv-deep)); }
.teduh-scene-corridor__depth--0 { fill: color-mix(in srgb, var(--inv-primary) 20%, var(--inv-deep)); }
.teduh-scene-corridor__depth--1 { fill: color-mix(in srgb, var(--inv-primary) 11%, var(--inv-deep)); }
.teduh-scene-corridor__depth--2 { fill: color-mix(in srgb, var(--inv-deep) 88%, #000); }
.teduh-scene-corridor__depth--3 { fill: color-mix(in srgb, var(--inv-deep) 70%, #000); }
.teduh-scene-corridor__floor { fill: color-mix(in srgb, var(--inv-deep) 70%, #000); opacity: .55; }
.teduh-scene-corridor__glass { fill: #fff; fill-opacity: .1; stroke: var(--teduh-gold-3); stroke-width: .8; }
.teduh-scene-light__fire { transform-box: fill-box; transform-origin: 50% 92%; }
html.inv-anim .teduh-scene-light__fire { animation: teduh-flicker 2.2s ease-in-out infinite; }
html.inv-anim .teduh-scene-light__halo { animation: teduh-halo 4s ease-in-out infinite; }
.teduh-scene-strings { position: absolute; inset: 0; display: flex; justify-content: space-evenly; align-items: flex-start; }
.teduh-scene-strings .teduh-jasmine { width: 18px; }
.teduh-scene-strings .teduh-jasmine:nth-child(2) { margin-top: -6px; }
/* the name card: cream stationery in a double gold rule, low on the screen under the niche */
body.teduh-body .inv-intro--scene .inv-scene__card {
    top: 76%;
    -webkit-mask: none; mask: none; -webkit-backdrop-filter: none; backdrop-filter: none; aspect-ratio: auto;
    padding: 1.5rem 1.2rem 1.25rem; border-radius: 6px;
    background: var(--teduh-paper);
    box-shadow: inset 0 0 0 1px var(--teduh-line), inset 0 0 0 5px var(--teduh-paper), inset 0 0 0 6px var(--teduh-line), 0 24px 40px -14px rgb(0 0 0 / .6);
}
body.teduh-body .inv-scene__card .inv-intro__label { font-family: var(--teduh-sans); font-size: .62rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--teduh-gold-ink); }
body.teduh-body .inv-scene__card .inv-intro__names { font-size: clamp(1.9rem, 8.4vw, 2.6rem); color: var(--teduh-title); line-height: 1.15; overflow-wrap: anywhere; word-spacing: .12em; text-wrap: balance; }
body.teduh-body .inv-scene__card .inv-intro__rule { height: 1px; width: 3rem; background: var(--inv-accent); }
body.teduh-body .inv-scene__card .inv-intro__date { font-family: var(--teduh-serif); font-weight: 600; font-size: .95rem; color: var(--teduh-muted); white-space: nowrap; }
