/*
 * Template "Tudung Saji" (Pengajian & Hari Besar Islam) — buka puasa bersama, warm but modern-elegant. A dusk sky in
 * deep teal (by default) over a long iftar table: coral, saffron and warm cream, a thin crescent, a faint modern
 * octagon tile on every section. Signature pieces (all inline SVG): the woven tudung saji (sections/_tudung), the
 * table seen from above (sections/_table), the photo under a cloche arch on a platter (sections/_dome), the sunset
 * over the countdown (sections/_sunset), dates (kurma) as list markers.
 * Mobile-first, one column (~460px) on a dusk backdrop on wide screens.
 *
 * Colours come from the chosen colour variant (template.json → <x-inv.head>):
 *   --inv-primary (teal / emerald / night blue / maroon: titles, the sky)   --inv-accent (saffron / copper: foil)
 *   --inv-background (warm cream)   --inv-text   --inv-deep (dusk bands, the cover)   --inv-shine (light saffron on dark)
 *   --inv-soft (peach tint: the soft tone)   --inv-coral (the coral of the table and the tudung bands)
 *   --inv-weave (the bamboo of the tudung)
 *
 * Section tones (set in each partial): .tds-tone--light (cream), --soft (peach wash), --deep (dusk colour with saffron),
 * --dusk (the sunset gradient of the countdown). 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 on the frame, 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, dome, tudung, table, sunset, 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 "Teal Koral" variant (the variant's colours override these) */
    --inv-primary: #0d7370;
    --inv-accent: #e9a427;
    --inv-background: #fcf3e3;
    --inv-text: #1c2e2c;
    --inv-deep: #073a3c;
    --inv-shine: #ffd47a;
    --inv-soft: #fde0cc;
    --inv-coral: #ef6a4f;
    --inv-weave: #d89b52;
    --inv-radius: 16px;

    --tds-serif: var(--inv-font-heading, 'Bodoni Moda'), 'Didot', Georgia, serif;
    --tds-script: var(--inv-font-display, 'Imperial Script'), 'Brush Script MT', cursive;
    --tds-sans: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --tds-col: 460px;

    /* saffron foil, mixed from the accent: dark bronze → saffron → pale light */
    --tds-gold-1: color-mix(in srgb, var(--inv-accent) 60%, #3a1a03);
    --tds-gold-2: var(--inv-accent);
    --tds-gold-3: color-mix(in srgb, var(--inv-accent) 42%, #fff6d8);
    --tds-gold-ink: color-mix(in srgb, var(--inv-accent) 58%, #3a1a03);
    --tds-foil: linear-gradient(100deg, var(--tds-gold-1), var(--tds-gold-2) 30%, var(--tds-gold-3) 48%, var(--tds-gold-2) 62%, var(--tds-gold-1));
    --tds-coral-ink: color-mix(in srgb, var(--inv-coral) 78%, #3a0a02);

    /* the bamboo of the tudung */
    --tds-weave-1: var(--inv-weave);
    --tds-weave-2: color-mix(in srgb, var(--inv-weave) 62%, #fff1d2);
    --tds-weave-3: color-mix(in srgb, var(--inv-weave) 55%, #3a1d05);

    --tds-paper: color-mix(in srgb, #fff 70%, var(--inv-background));
    --tds-title: color-mix(in srgb, var(--inv-primary) 80%, var(--inv-deep));
    --tds-muted: color-mix(in srgb, var(--inv-text) 76%, var(--inv-background));
    --tds-cream-muted: color-mix(in srgb, var(--inv-background) 86%, transparent);
    --tds-line: color-mix(in srgb, var(--inv-accent) 55%, transparent);
    --tds-coral-line: color-mix(in srgb, var(--inv-coral) 50%, transparent);
    --tds-drop: 0 24px 40px -24px color-mix(in srgb, var(--inv-deep) 70%, transparent);

    /* a modern octagon tile (the squares appear between the octagons), a mask so it takes any colour */
    --tds-ground: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23000' stroke-width='1'%3E%3Cpath d='M11.7 0H28.3L40 11.7V28.3L28.3 40H11.7L0 28.3V11.7Z'/%3E%3Cpath d='M20 15 25 20 20 25 15 20Z'/%3E%3C/g%3E%3C/svg%3E");
    /* the round-topped arch of the photo windows: 168:214, stretched to the box */
    --tds-arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 168 214' preserveAspectRatio='none'%3E%3Cpath d='M0 214V84A84 84 0 0 1 168 84V214Z'/%3E%3C/svg%3E");
    /* a wide cloche top for landscape photos: 300:200 */
    --tds-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 200V86C0 38 66 0 150 0S300 38 300 86V200Z'/%3E%3C/svg%3E");
    /* tumpal triangles in a row (a mask) */
    --tds-tumpal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M0 0L7 9L14 0Z'/%3E%3C/svg%3E");
    /* the shadows of a basket weave, laid over the bamboo colour */
    --tds-weave-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cg fill='%23502a05' fill-opacity='.38'%3E%3Crect y='1.6' width='6' height='.6'/%3E%3Crect y='3.6' width='6' height='.6'/%3E%3Crect y='5.4' width='6' height='.7'/%3E%3Crect x='6' y='7.6' width='6' height='.6'/%3E%3Crect x='6' y='9.6' width='6' height='.6'/%3E%3Crect x='6' y='11.4' width='6' height='.6'/%3E%3Crect x='7.6' width='.6' height='6'/%3E%3Crect x='9.6' width='.6' height='6'/%3E%3Crect x='11.4' width='.6' height='6'/%3E%3Crect x='1.6' y='6' width='.6' height='6'/%3E%3Crect x='3.6' y='6' width='.6' height='6'/%3E%3Crect x='5.4' y='6' width='.7' height='6'/%3E%3C/g%3E%3C/svg%3E");
    --tds-weave-band: var(--tds-weave-img) 0 0 / 12px 12px, linear-gradient(180deg, var(--tds-weave-2), var(--tds-weave-1));
    /* a date (kurma): the list marker */
    --tds-kurma: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-13 -7 26 14'%3E%3Cpath d='M-12 0C-12-4.6-6.5-6.4 0-6.4S12-4.4 12 0 6.5 6.4 0 6.4-12 4.6-12 0Z' fill='%237b3416'/%3E%3Cpath d='M-7-3.4C-3-5 3-5 6.5-3.6' fill='none' stroke='%23f2b37a' stroke-width='1.3' stroke-linecap='round' opacity='.75'/%3E%3Cpath d='M10.6-1.6 13.4-2.6 13.2 1.8 10.8 1.2Z' fill='%23d9a35b'/%3E%3C/svg%3E");

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

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

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

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

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

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

/* saffron foil text: the gradient clipped to the letters with a slow moving shine */
.tds-heading__title em, .tds-cover__title, .tds-occasion__type, .tds-occasion__hijri, .tds-closing__names, .tds-charity__plate span {
    background: var(--tds-foil); background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- 2. section tones ---------- */
/* light: warm cream, a coral glow in a corner, the octagon tile */
.tds-tone--light {
    background:
        radial-gradient(60% 26% at 100% 0%, color-mix(in srgb, var(--inv-soft) 90%, transparent), transparent 75%),
        radial-gradient(60% 26% at 0% 100%, color-mix(in srgb, var(--inv-accent) 14%, transparent), transparent 75%),
        var(--inv-background);
}
/* soft: a peach wash */
.tds-tone--soft {
    background:
        radial-gradient(80% 36% at 50% 0%, color-mix(in srgb, #fff 55%, transparent), transparent 75%),
        linear-gradient(180deg, var(--inv-soft), color-mix(in srgb, var(--inv-soft) 50%, var(--inv-background)));
}
.tds-tone--light::before, .tds-tone--soft::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: var(--inv-primary); opacity: .06;
    -webkit-mask: var(--tds-ground) center top / 40px 40px repeat; mask: var(--tds-ground) center top / 40px 40px repeat;
}
/* deep: the dusk colour with a glow of the primary and a coral light */
.tds-tone--deep {
    color: var(--inv-background);
    background:
        radial-gradient(90% 40% at 12% 0%, color-mix(in srgb, var(--inv-primary) 90%, transparent), transparent 75%),
        radial-gradient(70% 34% at 100% 100%, color-mix(in srgb, var(--inv-coral) 32%, transparent), transparent 75%),
        var(--inv-deep);
}
.tds-tone--deep::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: var(--inv-shine); opacity: .075;
    -webkit-mask: var(--tds-ground) center top / 40px 40px repeat; mask: var(--tds-ground) center top / 40px 40px repeat;
}
/* dusk: the evening sky, deep at the top, coral low down */
.tds-tone--dusk {
    background:
        radial-gradient(80% 22% at 50% 100%, color-mix(in srgb, var(--inv-accent) 40%, transparent), transparent 75%),
        linear-gradient(180deg, var(--inv-deep) 0%, color-mix(in srgb, var(--inv-primary) 70%, var(--inv-deep)) 40%, color-mix(in srgb, var(--inv-coral) 55%, var(--inv-deep)) 100%);
}
.tds-tone--deep a:not(.inv-button) { color: var(--inv-shine); }
.tds-tone--deep .tds-arabic { color: var(--inv-shine); }

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

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

/* heading: eyebrow between two tiny octagons, Bodoni title, the last word in the script font in saffron foil, divider */
.tds-heading { margin: 0 0 2rem; }
.tds-heading__eyebrow {
    display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 .55rem;
    font-size: .68rem; font-weight: 600; line-height: 1.2; letter-spacing: .26em; text-transform: uppercase; color: var(--tds-coral-ink);
}
.tds-heading__eyebrow::before, .tds-heading__eyebrow::after {
    content: ''; width: 8px; height: 8px; flex: none; background: var(--inv-accent);
    clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}
.tds-heading__title {
    margin: 0; font-family: var(--tds-serif); font-size: 2rem; font-weight: 600; line-height: 1.12;
    letter-spacing: -.01em; color: var(--tds-title); text-wrap: balance;
}
.tds-heading__title em {
    display: inline-block; padding: 0 .1em .12em; font-family: var(--tds-script); font-style: normal; font-weight: 400;
    font-size: 1.3em; line-height: .9; word-spacing: .12em;
}
.tds-heading__divider { margin: .8rem auto 0; }
.tds-tone--deep .tds-heading__eyebrow { color: var(--inv-shine); }
.tds-tone--deep .tds-heading__title { color: #fff; }
/* on light and soft sections the foil runs darker, so the script word keeps its contrast */
.tds-tone--light .tds-heading__title em, .tds-tone--soft .tds-heading__title em {
    background-image: linear-gradient(100deg, var(--tds-coral-ink), color-mix(in srgb, var(--inv-coral) 80%, var(--tds-gold-1)) 30%, var(--tds-gold-1) 50%, color-mix(in srgb, var(--inv-coral) 80%, var(--tds-gold-1)) 70%, var(--tds-coral-ink));
}

/* the divider */
.tds-divider { display: block; width: min(13rem, 70%); height: auto; overflow: visible; }
.tds-divider__rule { stroke: var(--inv-coral); }
.tds-divider__dot { fill: var(--inv-accent); }
.tds-tone--deep .tds-divider__rule { stroke: var(--inv-accent); }

/* the cloche photo window (sections/_dome): figure 200:272, the window inside the arch */
.tds-dome { --dome-w: 15rem; --dome-pos: center 25%; position: relative; width: var(--dome-w); aspect-ratio: 200 / 272; margin: 0 auto; flex: none; }
.tds-dome__window {
    position: absolute; left: 8%; right: 8%; top: 8.824%; bottom: 12.5%; overflow: hidden;
    background:
        radial-gradient(70% 40% at 50% 80%, color-mix(in srgb, var(--inv-coral) 60%, transparent), transparent 70%),
        linear-gradient(180deg, var(--inv-deep), color-mix(in srgb, var(--inv-primary) 80%, var(--inv-coral)));
    -webkit-mask: var(--tds-arch) center / 100% 100% no-repeat; mask: var(--tds-arch) center / 100% 100% no-repeat;
}
.tds-dome__photo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--dome-pos); }
.tds-dome__photo--bg { background: var(--dome-pos) / cover no-repeat; }
.tds-dome__empty { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: .4rem; padding-top: 8%; }
.tds-dome__crescent { width: 24%; }
.tds-dome__initials { font-family: var(--tds-serif); font-weight: 600; font-size: calc(var(--dome-w) * .2); line-height: 1; letter-spacing: .04em; color: #fff; white-space: nowrap; text-shadow: 0 6px 18px rgb(0 0 0 / .25); }
.tds-dome__frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; filter: drop-shadow(0 3px 4px rgb(0 0 0 / .3)); }
.tds-dome__inner { stroke: var(--inv-coral); }
.tds-dome__loop { stroke: var(--tds-weave-3); }
.tds-dome__knob { fill: var(--tds-weave-1); stroke: var(--tds-weave-3); stroke-width: 1; }
.tds-dome__platter { fill: #fffaf2; }
.tds-dome__platter-rim { stroke: var(--inv-primary); }
.tds-dome__platter-shadow { fill: #000; opacity: .28; }
/* the crescent on the upper-left shoulder, the little tudung on the platter's right edge */
.tds-dome__moon { position: absolute; left: -10%; top: 9%; width: 21%; overflow: visible; pointer-events: none; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--inv-shine) 70%, transparent)); }
.tds-dome__tudung { position: absolute; right: -12%; bottom: 7.5%; width: 42%; pointer-events: none; }

/* the tudung saji (sections/_tudung) */
.tds-tudung { display: block; overflow: visible; pointer-events: none; filter: drop-shadow(0 8px 10px rgb(0 0 0 / .3)); }
.tds-tudung__band--coral { fill: var(--inv-coral); }
.tds-tudung__band--primary { fill: var(--inv-primary); }
.tds-tudung__band--saffron { fill: var(--inv-accent); }
.tds-tudung__stitch { stroke: var(--inv-coral); }
.tds-tudung__edge { stroke: var(--tds-weave-3); }
.tds-tudung__rim { fill: var(--tds-weave-3); }
.tds-tudung__loop { stroke: var(--tds-weave-3); }
.tds-tudung__knob { fill: var(--tds-weave-1); stroke: var(--tds-weave-3); stroke-width: 1.2; }

/* the long table seen from above (sections/_table) */
.tds-table { display: block; width: 100%; height: auto; overflow: visible; pointer-events: none; filter: drop-shadow(0 10px 14px color-mix(in srgb, var(--inv-deep) 30%, transparent)); }
.tds-table__runner { fill: var(--inv-coral); }
.tds-table__tumpal { fill: var(--inv-accent); }
.tds-table__rule { stroke: color-mix(in srgb, #fff 60%, var(--inv-coral)); }
.tds-table__plate { fill: #fffdf8; stroke: color-mix(in srgb, var(--inv-primary) 60%, #fff); stroke-width: 2; }
.tds-table__plate-ring { stroke: color-mix(in srgb, var(--inv-primary) 40%, #fff); }
.tds-table__dish { fill: var(--inv-accent); }
.tds-table__bowl { fill: var(--inv-primary); }

/* the sunset over the countdown (sections/_sunset) */
.tds-sunset { position: relative; max-width: 22rem; margin: -.6rem auto 1.4rem; }
.tds-sunset svg { display: block; width: 100%; height: auto; border-radius: 160px 160px 18px 18px; overflow: hidden;
    -webkit-mask: var(--tds-arch-wide) center / 100% 100% no-repeat; mask: var(--tds-arch-wide) center / 100% 100% no-repeat; }
.tds-sunset::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: 0 0 18px 18px;
    -webkit-mask: var(--tds-arch-wide) center / 100% 100% no-repeat; mask: var(--tds-arch-wide) center / 100% 100% no-repeat;
    box-shadow: inset 0 0 0 1.5px var(--tds-line);
}
.tds-sunset__halo { fill: var(--inv-shine); opacity: .35; }
.tds-sunset__moon { fill: var(--inv-shine); opacity: .95; }
.tds-sunset__stars { opacity: .8; }
.tds-sunset__city { fill: color-mix(in srgb, var(--inv-deep) 82%, var(--inv-primary)); }
.tds-sunset__mosque { fill: color-mix(in srgb, var(--inv-deep) 90%, #000); }
.tds-sunset__water { fill: color-mix(in srgb, var(--inv-deep) 70%, var(--inv-primary)); }
.tds-sunset__glints { stroke: color-mix(in srgb, var(--inv-shine) 70%, var(--inv-coral)); }
.tds-sunset__horizon { stroke: var(--inv-shine); opacity: .7; }

/* the tap marker: two pulsing rings, a tapping hand and a label */
.tds-tap { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.tds-tap__ring {
    position: absolute; left: 50%; top: 48%; width: 6rem; aspect-ratio: 1; margin: -3rem 0 0 -3rem; border-radius: 50%;
    border: 2.5px solid var(--inv-shine); opacity: 0;
}
.tds-tap__hand {
    position: absolute; left: 54%; top: 52%; width: 2.6rem; height: 2.6rem;
    fill: #fff; stroke: var(--tds-gold-1); stroke-width: 1.4; stroke-linejoin: round;
    filter: drop-shadow(0 4px 6px rgb(0 0 0 / .35));
}
.tds-tap__label {
    position: absolute; left: 50%; top: 4%; transform: translateX(-50%); white-space: nowrap;
    padding: .38rem .95rem; border-radius: 999px; font-size: .74rem; font-weight: 600; letter-spacing: .06em;
    color: #fff; background: var(--inv-coral);
    box-shadow: 0 0 0 2px color-mix(in srgb, #fff 40%, transparent), 0 8px 16px -8px rgb(0 0 0 / .5);
}

/* ---------- 4. cover ---------- */
.tds-cover {
    --dome-cover: 15.6rem;
    position: fixed; inset: 0; z-index: 30; overflow-x: hidden; overflow-y: auto;
    display: flex; flex-direction: column; align-items: center; justify-content: safe center;
    padding: 1.5rem 1.4rem 1.8rem; isolation: isolate; color: var(--inv-background);
    background:
        linear-gradient(180deg,
            var(--inv-deep) 0%,
            color-mix(in srgb, var(--inv-primary) 80%, var(--inv-deep)) 20%,
            color-mix(in srgb, var(--inv-coral) 72%, var(--inv-primary)) 38%,
            color-mix(in srgb, var(--inv-primary) 60%, var(--inv-deep)) 54%,
            var(--inv-deep) 100%);
    transition: opacity .9s ease;
}
/* the octagon tile */
.tds-cover::before {
    content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: .09; background: var(--inv-shine);
    -webkit-mask: var(--tds-ground) center top / 40px 40px repeat; mask: var(--tds-ground) center top / 40px 40px repeat;
}
/* the first stars, twinkling in the upper sky */
.tds-cover__stars {
    position: absolute; inset: 0 0 50%; z-index: -1; pointer-events: none;
    background:
        radial-gradient(1.6px 1.6px at 14% 22%, #fff, transparent),
        radial-gradient(1.2px 1.2px at 30% 9%, #fff, transparent),
        radial-gradient(1.8px 1.8px at 78% 16%, #fff, transparent),
        radial-gradient(1.2px 1.2px at 90% 38%, #fff, transparent),
        radial-gradient(1.4px 1.4px at 6% 46%, #fff, transparent),
        radial-gradient(1.1px 1.1px at 62% 6%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 46% 30%, var(--inv-shine), transparent);
}
.tds-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); }

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

.tds-cover__art { position: relative; width: var(--dome-cover); }
/* the setting sun glowing behind the dome */
.tds-cover__sun {
    position: absolute; z-index: -1; left: -32%; right: -32%; top: 22%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, color-mix(in srgb, #fff5d6 70%, transparent), color-mix(in srgb, var(--inv-shine) 50%, transparent) 38%, color-mix(in srgb, var(--inv-coral) 34%, transparent) 62%, transparent);
}
.tds-dome--cover { --dome-w: var(--dome-cover); --dome-pos: center 25%; }

.tds-cover__title {
    margin: .2rem 0 0; max-width: 100%; font-family: var(--tds-script); font-size: 3.1rem; font-weight: 400; line-height: 1.08;
    padding: 0 .2em .08em; word-spacing: .14em; text-wrap: balance; filter: drop-shadow(0 2px 6px rgb(0 0 0 / .45));
    background-image: linear-gradient(100deg, var(--tds-gold-2), var(--tds-gold-3) 30%, #fffaf0 48%, var(--inv-shine) 62%, var(--tds-gold-2));
}
.tds-cover__date { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .3rem .6rem; margin: .35rem 0 0; }
.tds-cover__pill {
    display: inline-block; padding: .28rem 1.05rem .32rem; border-radius: 999px; font-size: .86rem; font-weight: 600; letter-spacing: .04em;
    color: #fff; background: var(--inv-coral); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--inv-shine) 70%, transparent), 0 8px 16px -10px rgb(0 0 0 / .5);
}
.tds-cover__hijri { font-family: var(--tds-serif); font-size: .96rem; font-style: italic; font-weight: 500; color: var(--inv-shine); }
.tds-cover__quote {
    max-width: 30ch; margin: .5rem 0 0; font-family: var(--tds-serif); font-style: italic; font-weight: 500;
    font-size: 1rem; line-height: 1.36; color: var(--tds-cream-muted);
}
.tds-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-deep) 60%, transparent);
    box-shadow: inset 0 0 0 1px var(--tds-line);
}
.tds-cover__guest p { margin: 0; font-size: .6rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--inv-shine); }
.tds-cover__guest-name { display: block; font-family: var(--tds-serif); font-size: 1.18rem; font-weight: 600; line-height: 1.24; color: #fff; overflow-wrap: anywhere; }
.tds-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(--tds-foil); background-size: 220% 100%;
    box-shadow: 0 0 0 3px var(--inv-deep), 0 0 0 4.2px var(--tds-line), 0 14px 26px -12px rgb(0 0 0 / .6);
}

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

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

/* opening: the cloche letter, the knob on its apex, a woven band at its foot, the table runner under it */
.tds-opening { padding: 4.4rem 1.3rem 2.4rem; }
.tds-letter {
    position: relative; max-width: 22.5rem; margin: 0 auto; padding: 3.2rem 1.5rem 3.6rem; overflow: visible;
    border-radius: 50% 50% 18px 18px / 9rem 9rem 18px 18px; background: var(--tds-paper);
    box-shadow: inset 0 0 0 1.5px var(--tds-coral-line), inset 0 0 0 6px var(--tds-paper), inset 0 0 0 7px var(--tds-line), var(--tds-drop);
}
.tds-letter__knob { position: absolute; left: 50%; top: -1.15rem; width: 2.6rem; margin-left: -1.3rem; overflow: visible; }
.tds-letter__knob path { stroke: var(--tds-weave-3); }
.tds-letter__knob ellipse { fill: var(--tds-weave-1); stroke: var(--tds-weave-3); stroke-width: 1.2; }
.tds-letter__weave {
    position: absolute; left: 7px; right: 7px; bottom: 7px; height: 1.1rem; border-radius: 0 0 12px 12px;
    background: var(--tds-weave-band); box-shadow: 0 -2px 0 var(--inv-coral);
}
.tds-letter__body { position: relative; }
.tds-opening__basmalah { margin: 0 0 .6rem; font-size: 1.75rem; }
.tds-opening__greeting { margin: 0 auto; max-width: 20ch; font-family: var(--tds-serif); font-size: 1.36rem; font-weight: 500; font-style: italic; line-height: 1.32; color: var(--tds-title); text-wrap: balance; }
.tds-opening__divider { margin: .9rem auto; }
.tds-opening__message { margin: 0 auto; max-width: 30ch; color: var(--tds-muted); }
.tds-opening__quote { margin: 1.5rem 0 0; padding-top: 1.3rem; border-top: 1px solid var(--tds-line); }
.tds-opening__mark { display: block; width: 2.1rem; height: 1.6rem; margin: 0 auto .6rem; }
.tds-opening__quote p { margin: 0; font-family: var(--tds-serif); font-style: italic; font-size: 1.08rem; font-weight: 500; line-height: 1.55; color: var(--inv-text); }
.tds-opening__quote cite,
.tds-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(--tds-coral-ink); box-shadow: inset 0 0 0 1px var(--tds-coral-line);
}
.tds-opening__table { width: calc(100% + 2.6rem); max-width: none; margin: 2rem -1.3rem 0; }

/* organizer: the dome, a plate seal with the logo or monogram on its platter, the board, the name and the motto */
.tds-organizer__art { position: relative; width: min(13.5rem, 62vw); margin: 0 auto; }
.tds-dome--organizer { --dome-w: 100%; --dome-pos: center 35%; }
.tds-organizer__seal {
    position: relative; z-index: 2; display: grid; place-items: center; width: 4.9rem; height: 4.9rem; margin: -3rem auto 0; overflow: hidden;
    border-radius: 50%; color: var(--tds-title);
    background: radial-gradient(circle, #fffdf8 0 56%, color-mix(in srgb, var(--inv-primary) 18%, #fff) 57% 60%, #fffaf0 61%);
    box-shadow: 0 0 0 3px var(--inv-coral), 0 0 0 5px var(--inv-soft), 0 0 0 6.2px var(--inv-accent), 0 12px 22px -10px color-mix(in srgb, var(--inv-deep) 70%, transparent);
    font-family: var(--tds-serif); font-size: 1.5rem; font-weight: 700; letter-spacing: .04em; line-height: 1;
}
.tds-organizer__seal span { padding: 0 .4rem; text-align: center; overflow-wrap: anywhere; }
.tds-organizer__seal--logo { background: #fff; }
.tds-organizer__seal img { width: 78%; height: 78%; object-fit: contain; }
.tds-organizer__unit { margin: 1.2rem auto 0 !important; font-size: .68rem; font-weight: 600; letter-spacing: .2em; line-height: 1.45; text-transform: uppercase; color: var(--tds-coral-ink); }
.tds-organizer__name { margin: .3rem auto 0; max-width: 18ch; font-family: var(--tds-serif); font-size: 1.95rem; font-weight: 700; line-height: 1.14; color: var(--tds-title); text-wrap: balance; overflow-wrap: anywhere; }
.tds-organizer__tagline { display: flex; align-items: center; justify-content: center; gap: .6rem; margin: .5rem auto 0 !important; font-family: var(--tds-serif); font-size: 1.04rem; font-style: italic; color: var(--tds-muted); text-wrap: balance; }
.tds-organizer__tagline::before, .tds-organizer__tagline::after { content: ''; width: 18px; height: 10px; flex: none; background: var(--tds-kurma) center / contain no-repeat; }

/* occasion: "Buka Tudung" — the type in saffron foil, the tudung on its platter, the menu card */
.tds-occasion { padding-bottom: 4.4rem; }
.tds-occasion__eyebrow { margin: 0 0 .5rem !important; font-size: .66rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--inv-shine); }
.tds-occasion__type { margin: 0 auto; max-width: 18ch; font-family: var(--tds-serif); font-size: 1.85rem; font-style: italic; font-weight: 600; line-height: 1.18; padding: 0 .1em .08em; text-wrap: balance; }
.tds-saji {
    position: relative; display: block; width: min(17.5rem, 82vw); aspect-ratio: 240 / 190; margin: 1.4rem auto 0; padding: 0; border: 0; cursor: pointer;
    background: none; -webkit-tap-highlight-color: transparent;
}
.tds-saji:focus-visible { outline: 2px solid var(--inv-shine); outline-offset: 4px; border-radius: 1rem; }
.tds-saji__feast { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; overflow: visible; }
.tds-saji__platter { fill: #fffaf2; }
.tds-saji__platter-rim { stroke: var(--inv-primary); }
.tds-saji__bowl { fill: var(--inv-primary); }
.tds-saji__straw { stroke: var(--inv-coral); }
.tds-saji__dish { fill: var(--inv-accent); }
.tds-saji__cover { position: absolute; z-index: 2; left: 6%; bottom: 0; width: 88%; transform-origin: 50% 85%; transition: transform 1.1s cubic-bezier(.3, 1.15, .4, 1); }
.tds-saji__tudung { width: 100%; height: auto; }
/* light and steam from the platter: shown open (also without JavaScript), hidden while the tudung is down */
.tds-saji__rays {
    position: absolute; left: 50%; top: 58%; width: 21rem; aspect-ratio: 1; margin: -10.5rem 0 0 -10.5rem; border-radius: 50%; pointer-events: none;
    background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--inv-shine) 50%, transparent) 0 5deg, transparent 5deg 20deg);
    -webkit-mask: radial-gradient(closest-side, #000 18%, transparent); mask: radial-gradient(closest-side, #000 18%, transparent);
    opacity: .5; transition: opacity 1s ease .2s;
}
.tds-saji__steam { position: absolute; left: 30%; bottom: 44%; width: 40%; overflow: visible; pointer-events: none; transition: opacity .8s ease .5s; }
.tds-saji__steam path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; opacity: .55; }
.tds-occasion.is-armed .tds-saji__rays, .tds-occasion.is-armed .tds-saji__steam { opacity: 0; }
/* lifted: off the platter and tilted away (the open state is the default without JavaScript) */
.tds-occasion:not(.is-armed) .tds-saji__cover { transform: translate(30%, -50%) rotate(17deg) scale(.88); }

.tds-occasion__menu {
    position: relative; max-width: 19rem; margin: 1.4rem auto 0; padding: 1.15rem 1.2rem 1.2rem; border-radius: 18px;
    color: var(--inv-text); background: var(--tds-paper);
    box-shadow: inset 0 0 0 1px var(--tds-coral-line), inset 0 0 0 5px var(--tds-paper), inset 0 0 0 6px var(--tds-line), 0 22px 40px -22px rgb(0 0 0 / .7);
    transition: opacity .9s ease .35s, transform .9s cubic-bezier(.2, .8, .3, 1) .35s, filter .9s ease .35s;
}
.tds-occasion__menu::before {
    content: ''; position: absolute; left: 6px; right: 6px; top: 6px; height: 9px; border-radius: 12px 12px 0 0; background: var(--inv-coral);
    -webkit-mask: var(--tds-tumpal) 0 0 / 14px 9px repeat-x; mask: var(--tds-tumpal) 0 0 / 14px 9px repeat-x;
}
.tds-occasion.is-armed .tds-occasion__menu { opacity: .14; transform: translateY(10px) scale(.96); filter: blur(2px); }
.tds-occasion__menu-label { margin: .3rem 0 .4rem; font-size: .62rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--tds-coral-ink); }
.tds-occasion__hijri { margin: 0; font-family: var(--tds-serif); font-size: clamp(1.3rem, 6.2vw, 1.65rem); font-weight: 700; line-height: 1.18; padding-bottom: .05em; text-wrap: balance;
    background-image: linear-gradient(100deg, var(--tds-gold-1), color-mix(in srgb, var(--inv-coral) 70%, var(--tds-gold-1)) 50%, var(--tds-gold-1)); }
.tds-occasion__theme-label { margin: .7rem 0 0; font-size: .6rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--tds-coral-ink); }
.tds-occasion__theme { margin: .15rem 0 0; font-family: var(--tds-serif); font-size: 1.14rem; font-style: italic; font-weight: 500; line-height: 1.38; color: var(--tds-title); text-wrap: balance; }
.tds-occasion__hijri + .tds-occasion__theme-label { padding-top: .7rem; border-top: 1px dashed var(--tds-coral-line); }
.tds-occasion__divider { margin: 1.6rem auto 1rem; }
.tds-occasion__intent { margin: 0 auto !important; max-width: 31ch; font-family: var(--tds-serif); font-size: 1.06rem; font-style: italic; line-height: 1.55; color: var(--tds-cream-muted); }

/* memorial: quiet — a small round-topped portrait under a crescent, the name in Bodoni, the years, the words */
.tds-memorial__crescent { display: block; width: 1.8rem; margin: 0 auto .4rem; fill: var(--tds-gold-1); }
.tds-memorial__eyebrow { margin: 0 auto .9rem !important; font-size: .7rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--tds-title); }
.tds-memorial__portrait {
    position: relative; display: grid; place-items: center; width: 8.4rem; aspect-ratio: 4 / 5; margin: 0 auto; overflow: hidden; border-radius: 999px 999px 14px 14px;
    background: linear-gradient(170deg, color-mix(in srgb, var(--inv-primary) 60%, #fff), var(--inv-deep));
    border: 2px solid color-mix(in srgb, var(--inv-primary) 60%, var(--inv-accent)); outline: 1px solid var(--tds-line); outline-offset: 5px;
}
.tds-memorial__portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; filter: saturate(.9); }
.tds-memorial__initial { font-family: var(--tds-serif); font-size: 3rem; font-weight: 600; color: #fff; }
.tds-memorial__name { margin: 1.3rem auto 0; max-width: 20ch; font-family: var(--tds-serif); font-size: 1.75rem; font-weight: 600; line-height: 1.18; color: var(--tds-title); text-wrap: balance; }
.tds-memorial__years { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem .9rem; margin: .45rem auto 0 !important; font-size: .86rem; color: var(--tds-muted); }
.tds-memorial__years span + span::before { content: '·'; margin-right: .9rem; color: var(--inv-accent); }
.tds-memorial__rule { display: block; width: 4rem; height: 1px; margin: 1.2rem auto; background: var(--inv-accent); }
.tds-memorial__message { font-family: var(--tds-serif); font-size: 1.08rem; font-style: italic; line-height: 1.6; color: var(--inv-text); max-width: 30ch !important; }
.tds-memorial__fatihah {
    display: inline-block; margin: .2rem auto 0 !important; padding: .32rem 1.1rem; border-radius: 999px; font-size: .74rem; font-weight: 600; letter-spacing: .1em;
    color: var(--tds-title); box-shadow: inset 0 0 0 1px var(--tds-line);
}

/* events: placemat cards — a tumpal edge on top, the photo in a wide cloche window, a plate date */
.tds-event {
    position: relative; margin: 0 auto; max-width: 25rem; padding: 1.1rem .75rem 2rem; border-radius: 20px; background: var(--tds-paper); text-align: left; overflow: hidden;
    box-shadow: inset 0 0 0 1px var(--tds-coral-line), var(--tds-drop);
}
.tds-event::before {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: var(--inv-coral);
    -webkit-mask: var(--tds-tumpal) 0 0 / 14px 10px repeat-x; mask: var(--tds-tumpal) 0 0 / 14px 10px repeat-x;
}
.tds-event::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: .7rem; background: var(--tds-weave-band); box-shadow: 0 -2px 0 var(--inv-accent); }
.tds-event + .tds-event { margin-top: 2.4rem; }
.tds-event__media { position: relative; margin: .4rem .3rem 0; }
.tds-event__photo {
    display: block; width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: center 30%; border-radius: 0 0 10px 10px;
    -webkit-mask: var(--tds-arch-wide) center / 100% 100% no-repeat; mask: var(--tds-arch-wide) center / 100% 100% no-repeat;
}
.tds-event__top { display: flex; align-items: center; gap: .9rem; padding: .7rem 1rem 0; }
.tds-event__media + .tds-event__top { margin-top: -2.4rem; align-items: flex-end; }
.tds-event__date {
    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: var(--tds-title);
    background: radial-gradient(circle, #fffdf8 0 60%, color-mix(in srgb, var(--inv-primary) 16%, #fff) 61% 64%, #fffaf0 65%);
    box-shadow: 0 0 0 3px var(--inv-coral), 0 0 0 5px var(--tds-paper), 0 0 0 6.2px var(--inv-accent), 0 12px 20px -10px color-mix(in srgb, var(--inv-deep) 70%, transparent);
    font-size: .56rem; font-weight: 600; letter-spacing: .1em; line-height: 1.2; text-transform: uppercase;
}
.tds-event__date strong { font-family: var(--tds-serif); font-size: 1.85rem; font-weight: 700; line-height: 1; letter-spacing: 0; color: var(--tds-title); }
.tds-event__date span:first-child { color: var(--tds-coral-ink); }
.tds-event__head { min-width: 0; padding-bottom: .1rem; }
.tds-event__media + .tds-event__top .tds-event__head { padding-top: 2.6rem; }
.tds-event__name { margin: 0; font-family: var(--tds-serif); font-size: 1.45rem; font-weight: 700; line-height: 1.15; color: var(--tds-title); }
.tds-event__full { margin: .15rem 0 0; font-size: .8rem; color: var(--tds-muted); }
.tds-event__rows { display: grid; gap: .7rem; margin: 1rem 1rem 0; padding: .95rem 0 0; list-style: none; font-size: .9rem; border-top: 1px dashed var(--tds-coral-line); }
.tds-event__rows li { display: flex; align-items: flex-start; gap: .65rem; }
.tds-event__rows .tds-icon { width: 2rem; height: 2rem; padding: .42rem; border-radius: 50%; color: #fff; background: var(--inv-primary); }
.tds-event__rows li > span { padding-top: .28rem; }
.tds-event__venue { display: block; font-weight: 600; }
.tds-event__address { display: block; font-size: .85rem; color: var(--tds-muted); }
.tds-event .inv-maps { margin: 1.1rem 1rem 0; text-align: center; }
.tds-event .inv-maps .inv-button { width: 100%; font-weight: 600; }
.tds-event .inv-maps__frame { height: 180px; border-radius: 14px; }

/* countdown: the sunset, then plates seen from above */
.tds-countdown .tds-heading { margin-bottom: 1.6rem; }
.tds-countdown .inv-countdown { gap: clamp(.45rem, 2.4vw, .8rem); }
.tds-countdown .inv-countdown__item {
    display: grid; place-content: center; width: clamp(4rem, 18.5vw, 4.7rem); min-width: 0; aspect-ratio: 1; padding: 0; border-radius: 50%;
    color: var(--inv-text); background: radial-gradient(circle, #fffdf8 0 58%, color-mix(in srgb, var(--inv-primary) 16%, #fff) 59% 62%, #fffaf0 63%);
    box-shadow: 0 0 0 3px var(--inv-coral), 0 0 0 4.5px color-mix(in srgb, #fff 60%, transparent), 0 14px 22px -10px rgb(0 0 0 / .6);
}
.tds-countdown .inv-countdown__value { font-variant-numeric: lining-nums tabular-nums; font-family: var(--tds-serif); font-size: 1.7rem; font-weight: 700; line-height: 1; color: var(--tds-title); }
.tds-countdown .inv-countdown__label { margin-top: .1rem; font-size: .52rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--tds-coral-ink); }
.tds-countdown .inv-countdown__done { font-family: var(--tds-serif); font-size: 1.3rem; font-style: italic; color: var(--inv-shine); }
.tds-countdown .inv-countdown__actions { flex-direction: column; align-items: center; gap: .6rem; margin-top: 2rem; }
.tds-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-deep) 40%, transparent);
    box-shadow: inset 0 0 0 1px var(--tds-line);
}
.tds-countdown .inv-countdown__actions .inv-button:first-child { color: var(--inv-deep); background: var(--tds-foil); background-size: 220% 100%; box-shadow: none; }
.tds-countdown .inv-cal {
    --inv-cal-bg: var(--tds-paper); --inv-cal-mark: var(--inv-coral);
    max-width: 19rem; margin: 2.6rem auto 0; border-radius: 22px;
    box-shadow: inset 0 0 0 1px var(--tds-line), 0 22px 40px -24px rgb(0 0 0 / .6);
}
.tds-countdown .inv-cal__month { font-family: var(--tds-serif); font-size: 1.4rem; font-weight: 700; font-style: italic; color: var(--tds-title); }

/* speakers: the main speaker as a wide card with a tall cloche portrait, the others as compact rows */
.tds-speakers__list { display: grid; gap: .85rem; max-width: 25rem; margin: 0 auto; padding: 0; list-style: none; }
.tds-speaker {
    display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); align-items: center; gap: 1rem; padding: .8rem 1rem .8rem .8rem; border-radius: 18px;
    text-align: left; background: var(--tds-paper); box-shadow: inset 0 0 0 1px var(--tds-coral-line);
}
.tds-speaker__window {
    position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 160 / 205; overflow: hidden;
    background: linear-gradient(180deg, var(--inv-deep), color-mix(in srgb, var(--inv-primary) 70%, var(--inv-coral)));
    -webkit-mask: var(--tds-arch) center / 100% 100% no-repeat; mask: var(--tds-arch) center / 100% 100% no-repeat;
}
.tds-speaker__window img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.tds-speaker__letter { padding-top: 18%; font-family: var(--tds-serif); font-size: 1.9rem; font-weight: 700; color: #fff; }
.tds-speaker__role { margin: 0; font-size: .62rem; font-weight: 600; letter-spacing: .16em; line-height: 1.4; text-transform: uppercase; color: var(--tds-coral-ink); }
.tds-speaker__name { margin: .15rem 0 0; font-family: var(--tds-serif); font-size: 1.25rem; font-weight: 700; line-height: 1.18; color: var(--tds-title); overflow-wrap: anywhere; }
.tds-speaker__topic { margin: .3rem 0 0; font-family: var(--tds-serif); font-size: .98rem; font-style: italic; line-height: 1.38; color: var(--tds-muted); }
.tds-speaker--main {
    grid-template-columns: 1fr; justify-items: center; gap: 0; padding: 1.2rem 1.1rem 1.4rem; text-align: center;
    box-shadow: inset 0 0 0 1px var(--tds-coral-line), inset 0 0 0 5px var(--tds-paper), inset 0 0 0 6px var(--tds-line), var(--tds-drop);
}
.tds-speaker--main .tds-speaker__window { width: min(12.5rem, 60vw); }
.tds-speaker--main .tds-speaker__letter { font-size: 3.4rem; }
.tds-speaker--main .tds-speaker__text { margin-top: 1rem; }
.tds-speaker--main .tds-speaker__name { font-size: 1.55rem; }
.tds-speaker--main .tds-speaker__topic {
    display: inline-block; margin-top: .6rem; padding: .5rem 1rem; border-radius: 14px; font-size: 1.02rem; color: var(--inv-text);
    background: color-mix(in srgb, var(--inv-soft) 70%, transparent); box-shadow: inset 0 0 0 1px var(--tds-coral-line);
}

/* prayer: a round-topped panel, a crescent over its apex, a dish of dates at its foot */
.tds-prayer { padding-top: 5.6rem; }
.tds-prayer__panel {
    position: relative; max-width: 22rem; margin: 0 auto; padding: 3rem 1.4rem 3.4rem; border-radius: 50% 50% 20px 20px / 8rem 8rem 20px 20px;
    color: var(--inv-text); background: var(--tds-paper);
    box-shadow: inset 0 0 0 1.5px var(--tds-coral-line), inset 0 0 0 6px var(--tds-paper), inset 0 0 0 7px var(--tds-line), var(--tds-drop);
}
.tds-prayer__moon { position: absolute; left: 50%; top: -2.8rem; width: 5rem; margin-left: -2.5rem; overflow: visible; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--inv-shine) 70%, transparent)); }
.tds-prayer__eyebrow { margin: 0 0 .9rem; font-size: .64rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--tds-coral-ink); }
.tds-prayer__arabic { margin: 0 0 1rem; font-size: 1.5rem; text-wrap: balance; }
.tds-prayer__text { margin: 0; }
.tds-prayer__text p { margin: 0; font-family: var(--tds-serif); font-size: 1.08rem; font-style: italic; font-weight: 500; line-height: 1.55; }
.tds-prayer__dates { position: absolute; left: 50%; bottom: -1.1rem; width: 6.2rem; margin-left: -3.1rem; overflow: visible; filter: drop-shadow(0 6px 6px rgb(0 0 0 / .2)); }
.tds-prayer__dish { fill: var(--inv-accent); }

/* rundown: a coral thread strung with dates; times on coral pills */
.tds-rundown__list { position: relative; max-width: 24rem; margin: 0 auto; padding: 0; list-style: none; text-align: left; }
.tds-rundown__list::before {
    content: ''; position: absolute; left: 2.35rem; top: .6rem; bottom: .6rem; width: 2px; transform-origin: top;
    background: repeating-linear-gradient(180deg, var(--inv-coral) 0 6px, transparent 6px 10px);
}
.tds-rundown__item { position: relative; display: grid; grid-template-columns: 4.7rem minmax(0, 1fr); align-items: start; column-gap: .8rem; padding: 0 0 1rem; }
.tds-rundown__item:last-child { padding-bottom: 0; }
.tds-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: var(--inv-coral);
    box-shadow: 0 0 0 3px var(--inv-background);
}
.tds-rundown__body { position: relative; padding: .7rem .95rem .75rem 2.1rem; border-radius: 14px; background: var(--tds-paper); box-shadow: inset 0 0 0 1px var(--tds-coral-line); }
.tds-rundown__body::before { content: ''; position: absolute; left: .55rem; top: 1rem; width: 1.15rem; height: .62rem; background: var(--tds-kurma) center / contain no-repeat; }
.tds-rundown__body h3 { margin: 0; font-family: var(--tds-serif); font-size: 1.08rem; font-weight: 700; line-height: 1.3; color: var(--tds-title); }
.tds-rundown__body p { margin: .1rem 0 0; font-size: .85rem; color: var(--tds-muted); }

/* charity: the programme, the beneficiaries on a big plate, the needs as chips with dates, the photo melting in */
.tds-charity--photo { padding-top: 0; }
.tds-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);
}
.tds-charity__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; opacity: .85; }
.tds-charity__title { margin: 0 auto; max-width: 20ch; font-family: var(--tds-serif); font-size: 1.55rem; font-weight: 700; line-height: 1.22; color: #fff; text-wrap: balance; }
.tds-charity__plate { position: relative; display: grid; place-items: center; width: 11rem; aspect-ratio: 1; margin: 1.4rem auto 1.2rem !important; }
.tds-charity__plate svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 16px 20px rgb(0 0 0 / .45)); }
.tds-charity__plate-rim { fill: #fffaf2; stroke: var(--inv-coral); stroke-width: 2.4; }
.tds-charity__plate-ring { stroke: color-mix(in srgb, var(--inv-primary) 40%, #fff); }
.tds-charity__plate span {
    position: relative; max-width: 6.6rem; padding-top: .9rem; font-family: var(--tds-serif); font-size: 1rem; font-weight: 700; line-height: 1.16; text-wrap: balance;
    background-image: linear-gradient(100deg, var(--tds-coral-ink), var(--tds-gold-1) 50%, var(--tds-coral-ink));
}
.tds-charity__text { color: var(--tds-cream-muted); font-size: .92rem; }
.tds-charity__needs { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; max-width: 24rem; margin: 1rem auto 0; padding: 0; list-style: none; }
.tds-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) 10%, transparent); box-shadow: inset 0 0 0 1px var(--tds-line);
}
.tds-charity__needs li::before { content: ''; width: 16px; height: 9px; flex: none; background: var(--tds-kurma) center / contain no-repeat; }
.tds-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(--tds-foil) !important; background-size: 220% 100% !important; font-weight: 600;
}

/* story: small cloche windows beside the text, alternating; text-only chapters as tinted cards */
.tds-story__list { display: grid; gap: 2.2rem; margin: 0; padding: 0; list-style: none; text-align: left; }
.tds-story__item { display: grid; grid-template-columns: 42% minmax(0, 1fr); align-items: center; gap: 1.2rem; }
.tds-story__item--flip { grid-template-columns: minmax(0, 1fr) 42%; }
.tds-story__item--flip .tds-story__media { order: 2; }
.tds-story__media { filter: drop-shadow(0 14px 18px color-mix(in srgb, var(--inv-deep) 30%, transparent)); }
.tds-story__photo {
    display: block; width: 100%; aspect-ratio: 5 / 6.6; object-fit: cover; object-position: center 28%;
    -webkit-mask: var(--tds-arch) center / 100% 100% no-repeat; mask: var(--tds-arch) center / 100% 100% no-repeat;
}
.tds-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(--inv-coral);
}
.tds-story__body h3 { margin: .5rem 0 0; font-family: var(--tds-serif); font-size: 1.32rem; font-weight: 700; line-height: 1.18; color: var(--tds-title); }
.tds-story__body p { margin: .35rem 0 0; font-size: .88rem; line-height: 1.55; color: var(--tds-muted); }
.tds-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(--tds-paper)); box-shadow: inset 0 0 0 1px var(--tds-coral-line); }
.tds-story__dot {
    display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; font-family: var(--tds-serif); font-size: 1.2rem; font-weight: 700;
    color: var(--tds-title); background: radial-gradient(circle, #fffdf8 0 58%, color-mix(in srgb, var(--inv-primary) 16%, #fff) 59% 63%, #fffaf0 64%);
    box-shadow: 0 0 0 2px var(--inv-coral);
}

/* etiquette: cream rows with a date as the marker, a tumpal edge on top of the card */
.tds-etiquette__list { position: relative; display: grid; gap: .55rem; max-width: 24rem; margin: 0 auto; padding: 1.4rem 1rem 1rem; list-style: none; text-align: left; border-radius: 20px; overflow: hidden; background: var(--tds-paper); box-shadow: inset 0 0 0 1px var(--tds-coral-line), var(--tds-drop); }
.tds-etiquette__list::before {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 9px; background: var(--inv-coral);
    -webkit-mask: var(--tds-tumpal) 0 0 / 14px 9px repeat-x; mask: var(--tds-tumpal) 0 0 / 14px 9px repeat-x;
}
.tds-etiquette__list li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); align-items: start; gap: .65rem; padding: .45rem .3rem; font-size: .92rem; line-height: 1.5; }
.tds-etiquette__list li + li { border-top: 1px dashed color-mix(in srgb, var(--inv-coral) 30%, transparent); padding-top: .65rem; }
.tds-etiquette__list svg { width: 1.5rem; height: .82rem; margin-top: .38rem; overflow: visible; }

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

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

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

/* gift: cream cards with a coral band edged in tumpal triangles, two per row (odd last across) */
.tds-gift__intro { color: var(--tds-cream-muted) !important; }
.tds-gift__recipient { margin: 1.2rem auto 0 !important; font-size: .86rem; color: var(--tds-cream-muted); }
.tds-gift__recipient strong { color: var(--inv-shine); font-weight: 600; }
.tds-gift .inv-gift__accounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: 1.3rem; }
.tds-gift .inv-gift__account:last-child:nth-child(odd) { grid-column: 1 / -1; }
.tds-gift .inv-gift__account,
.tds-gift .inv-gift__address {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: .3rem; min-width: 0; margin: 0; overflow: hidden;
    padding: 2rem .75rem 1rem; border-radius: 16px; color: var(--inv-text); background: var(--tds-paper);
    box-shadow: inset 0 0 0 1px var(--tds-line), 0 18px 30px -20px rgb(0 0 0 / .6);
}
.tds-gift .inv-gift__account::before {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1.05rem;
    background: linear-gradient(var(--inv-coral), var(--inv-coral)) 0 0 / 100% .6rem no-repeat;
}
.tds-gift .inv-gift__account::after {
    content: ''; position: absolute; left: 0; right: 0; top: .6rem; height: 7px; background: var(--inv-coral);
    -webkit-mask: var(--tds-tumpal) 0 0 / 11px 7px repeat-x; mask: var(--tds-tumpal) 0 0 / 11px 7px repeat-x;
}
.tds-gift .inv-gift__account p, .tds-gift .inv-gift__address p { margin: 0; }
.tds-gift .inv-gift__bank { font-weight: 600; font-size: .85rem; color: var(--tds-title); }
.tds-gift .inv-gift__logo { height: 1.6rem; padding: .2rem .5rem; border-radius: .4rem; background: #fff; }
.tds-gift .inv-gift__logo img { max-width: 5rem; }
.tds-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); }
.tds-gift .inv-gift__holder { font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--tds-muted); overflow-wrap: anywhere; }
.tds-gift .inv-button { margin-top: .35rem; min-height: 2.25rem; padding: .35rem .9rem; font-size: .74rem; font-weight: 600; }
.tds-gift .inv-gift__address { margin-top: .75rem; padding-top: 1.1rem; font-size: .875rem; }
.tds-gift .inv-gift__address .inv-gift__holder { font-size: .72rem; }

/* co-hosts: names in Bodoni split by dates, on the deep band */
.tds-cohosts__list { display: flex; flex-direction: column; align-items: center; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.tds-cohosts__list li { max-width: 26ch; font-family: var(--tds-serif); font-size: 1.16rem; font-weight: 600; line-height: 1.3; color: #fff; }
.tds-cohosts__list li + li::before { content: ''; display: block; width: 18px; height: 10px; margin: 0 auto .55rem; background: var(--tds-kurma) center / contain no-repeat; }

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

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

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

/* closing: compact — the photo melting into the deep colour, a crescent over a small tudung, thanks and the name */
.tds-closing { padding: 2.6rem 1.6rem 5.8rem; }
.tds-closing--photo { padding-top: 0; }
.tds-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);
}
.tds-closing__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.tds-closing__body { position: relative; }
.tds-closing--photo .tds-closing__body { margin-top: -4.6rem; }
.tds-closing__emblem { position: relative; width: 5.2rem; margin: 0 auto .5rem; }
.tds-closing__tudung { width: 100%; }
.tds-closing__moon { position: absolute; right: -1.6rem; top: -1.1rem; width: 1.7rem; overflow: visible; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--inv-shine) 70%, transparent)); }
.tds-closing__title { margin: 0 0 .6rem; font-family: var(--tds-serif); font-size: 2.1rem; font-weight: 600; line-height: 1.05; color: #fff; }
.tds-closing__title em { font-family: var(--tds-script); font-style: normal; font-weight: 400; font-size: 1.3em; color: var(--inv-shine); }
.tds-closing__message { margin: 0 auto; max-width: 32ch; font-size: .9rem; line-height: 1.55; color: var(--tds-cream-muted); }
.tds-closing__salam { margin: .7rem auto 0; max-width: 28ch; font-family: var(--tds-serif); font-size: 1rem; font-style: italic; font-weight: 500; line-height: 1.38; color: var(--inv-shine); }
.tds-closing__signature { margin: .45rem auto 0; max-width: 30ch; font-size: .84rem; color: var(--tds-cream-muted); }
.tds-closing__names { margin: .6rem auto 0; max-width: 16ch; font-family: var(--tds-script); font-size: 2.4rem; word-spacing: .14em; line-height: 1.14; padding: 0 .15em .1em; text-wrap: balance; }

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

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

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

/* ---------- 7. shared components ---------- */
.tds-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(--tds-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) {
    .tds-cover { --dome-cover: 14.6rem; }
    .tds-cover__title { font-size: 2.9rem; }
}
@media (max-height: 740px) {
    .tds-cover { --dome-cover: 13.2rem; padding-top: 1.2rem; padding-bottom: 1.3rem; }
    .tds-cover__title { font-size: 2.65rem; }
    .tds-cover__quote { font-size: .95rem; margin-top: .4rem; }
    .tds-cover__guest { margin-top: .55rem; }
    .tds-cover__open { margin-top: .65rem; }
}
@media (max-height: 680px) {
    .tds-cover { --dome-cover: 11.8rem; padding-top: 1rem; padding-bottom: 1.1rem; }
    .tds-cover__host { font-size: .62rem; margin-bottom: .3rem; }
    .tds-cover__title { font-size: 2.4rem; }
    .tds-cover__pill { font-size: .8rem; }
    .tds-cover__hijri { font-size: .88rem; }
    .tds-cover__quote { font-size: .9rem; line-height: 1.3; }
    .tds-cover__guest { padding: .35rem .85rem .4rem; }
    .tds-cover__guest-name { font-size: 1.08rem; }
    .tds-cover__open { min-height: 2.7rem; padding: .55rem 1.6rem; }
}
@media (max-height: 620px) {
    .tds-cover { --dome-cover: 10.2rem; }
    .tds-cover__title { font-size: 2.15rem; }
    .tds-cover__quote { font-size: .84rem; }
}
@media (max-width: 360px) {
    .tds-cover__title { font-size: 2.4rem; }
}

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

/* ---------- 9. motion ---------- */
@keyframes tds-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes tds-bounce { 0% { transform: scale(0); } 55% { transform: scale(1.15); } 75% { transform: scale(.94); } 100% { transform: scale(1); } }
@keyframes tds-rise { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes tds-zoom-out { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes tds-shine { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
@keyframes tds-breathe { 0%, 100% { opacity: .7; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes tds-twinkle { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes tds-drop-in { 0% { opacity: 0; transform: translateY(-2.6rem) rotate(-8deg); } 60% { opacity: 1; transform: translateY(.2rem) rotate(2deg); } 80% { transform: translateY(-.15rem) rotate(-1deg); } 100% { opacity: 1; transform: none; } }
@keyframes tds-moon-in { from { opacity: 0; transform: rotate(-30deg) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes tds-rock { 0%, 70%, 100% { transform: none; } 76% { transform: translateY(-4px) rotate(-3deg); } 82% { transform: translateY(0) rotate(2.5deg); } 88% { transform: translateY(-2px) rotate(-1.5deg); } 94% { transform: rotate(.8deg); } }
@keyframes tds-steam { 0% { opacity: 0; transform: translateY(12px) scaleY(.8); } 30% { opacity: .9; } 100% { opacity: 0; transform: translateY(-26px) scaleY(1.1); } }
@keyframes tds-rays { to { transform: rotate(360deg); } }
@keyframes tds-ping { 0% { opacity: .9; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.9); } }
@keyframes tds-tap { 0%, 100% { transform: translate(0, 0) scale(1); } 45% { transform: translate(-3px, -5px) scale(.92); } }
@keyframes tds-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes tds-set { from { transform: translateY(-52px); } to { transform: translateY(0); } }
@keyframes tds-glow { 0%, 100% { opacity: .3; } 50% { opacity: .5; } }
@keyframes tds-moon-show { from { opacity: 0; } to { opacity: .95; } }

/* saffron foil: a slow moving shine */
html.inv-anim :is(.tds-heading__title em, .tds-cover__title, .tds-occasion__type, .tds-closing__names, .tds-cover__open) { animation: tds-shine 7s ease-in-out infinite; }

/* cover (≤ 2.5 s, once): the dome rises, its photo settles, the little tudung drops onto the platter, the crescent
   glows in; then a living sky: the sun breathes behind the dome, the stars twinkle */
html.inv-anim .tds-dome--cover { animation: tds-rise .9s cubic-bezier(.2, .7, .2, 1) .1s both; }
html.inv-anim .tds-dome--cover .tds-dome__photo { animation: tds-zoom-out 1.3s cubic-bezier(.2, .7, .2, 1) .1s both; }
html.inv-anim .tds-dome--cover .tds-dome__tudung { animation: tds-drop-in 1s cubic-bezier(.3, .9, .4, 1) .7s both; transform-origin: 50% 90%; }
html.inv-anim .tds-dome--cover .tds-dome__moon { animation: tds-moon-in 1.2s cubic-bezier(.2, .8, .3, 1) .5s both; }
html.inv-anim .tds-cover__sun { animation: tds-breathe 6s ease-in-out infinite; }
html.inv-anim .tds-cover__stars { animation: tds-twinkle 4s ease-in-out infinite; }

/* Buka Tudung: the tudung rocks now and then while it waits; once lifted the rays turn and the steam rises */
html.inv-anim .tds-occasion.is-armed .tds-saji__tudung { transform-origin: 50% 90%; animation: tds-rock 3.6s ease-in-out 1s infinite; }
html.inv-anim .tds-occasion.is-open .tds-saji__rays { animation: tds-rays 40s linear infinite; }
html.inv-anim .tds-occasion.is-open .tds-saji__steam path { animation: tds-steam 2.8s ease-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
html.inv-anim .tds-occasion.is-open .tds-saji__steam path:nth-child(2) { animation-delay: .9s; }
html.inv-anim .tds-occasion.is-open .tds-saji__steam path:nth-child(3) { animation-delay: 1.8s; }

/* the sunset: the sun sets once as the section comes in, then glows; the crescent comes out */
html.inv-anim .tds-sunset__sun { transform: translateY(-52px); }
html.inv-anim .tds-sunset.is-revealed .tds-sunset__sun { animation: tds-set 5.5s cubic-bezier(.3, .1, .3, 1) .3s both; }
html.inv-anim .tds-sunset__halo { animation: tds-glow 4s ease-in-out infinite; }
html.inv-anim .tds-sunset__moon { opacity: 0; }
html.inv-anim .tds-sunset.is-revealed .tds-sunset__moon { animation: tds-moon-show 1.6s ease 4.6s both; }

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

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

@media (prefers-reduced-motion: reduce) {
    .tds-cover, .tds-cover--leave, .tds-cover__inner, .tds-occasion__menu, .tds-saji__cover { transition: none; }
}

/* ---------- 10. intro scene "Buka Tudung" (scene.json + sections/_scene) ----------
   The intro is teleported to <body>: everything here stands on its own classes. */
.tds-scene-tile { position: absolute; inset: 0; background: var(--inv-shine); opacity: .1; -webkit-mask: var(--tds-ground) center / 40px 40px repeat; mask: var(--tds-ground) center / 40px 40px repeat; }
.tds-scene-sun { position: absolute; inset: 0; display: grid; place-items: center; }
.tds-scene-sun span {
    width: min(64vw, 18rem); aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle, #fffbe8 0 22%, var(--inv-shine) 34%, color-mix(in srgb, var(--inv-accent) 55%, transparent) 46%, color-mix(in srgb, var(--inv-coral) 22%, transparent) 60%, transparent 70%);
}
html.inv-anim .tds-scene-sun span { animation: tds-breathe 4s ease-in-out infinite; }
.tds-scene-moon, .tds-scene-table, .tds-scene-light, .tds-scene-tudung { display: block; width: 100%; height: 100%; overflow: visible; }
.tds-scene-table__top { fill: color-mix(in srgb, var(--inv-primary) 50%, var(--inv-deep)); }
.tds-scene-table__band { fill: var(--inv-coral); }
.tds-scene-table__tumpal { fill: var(--inv-accent); }
.tds-scene-table__platter { fill: #fffaf2; }
.tds-scene-table__rim { stroke: var(--inv-primary); }
.tds-scene-table__dish { fill: var(--inv-accent); }
.tds-scene-table__bowl { fill: var(--inv-primary); }
.tds-scene-tudung { filter: drop-shadow(0 10px 12px rgb(0 0 0 / .35)); }
/* the name card: a cream menu card with a cloche top, a coral and saffron double rule */
body.tds-body .inv-intro--scene .inv-scene__card {
    top: 40%;
    -webkit-mask: none; mask: none; -webkit-backdrop-filter: none; backdrop-filter: none; aspect-ratio: auto;
    padding: 1.7rem 1.2rem 1.3rem; border-radius: 999px 999px 18px 18px / 6.5rem 6.5rem 18px 18px;
    background: var(--tds-paper);
    box-shadow: inset 0 0 0 1.5px var(--tds-coral-line), inset 0 0 0 5px var(--tds-paper), inset 0 0 0 6px var(--tds-line), 0 24px 40px -14px rgb(0 0 0 / .6);
}
body.tds-body .inv-scene__card .inv-intro__label { font-family: var(--tds-sans); font-size: .62rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--tds-coral-ink); }
body.tds-body .inv-scene__card .inv-intro__names { color: var(--tds-title); line-height: 1.1; overflow-wrap: anywhere; }
body.tds-body .inv-scene__card .inv-intro__rule { height: 1px; width: 3rem; background: var(--inv-coral); }
body.tds-body .inv-scene__card .inv-intro__date { font-family: var(--tds-serif); font-weight: 600; font-size: .92rem; color: var(--tds-muted); white-space: nowrap; }
