/*
 * Template "Pohon Trah" (Reuni & Halal Bihalal) — the halal bihalal of a big Javanese family (a trah): warm, grand,
 * a touch of the kraton. Sogan brown, gold foil, young-leaf green and ivory; batik kawung (deep sections) and parang
 * (light sections) as faint grounds; carved Jepara teak (the gebyok frame of the cover, plaques, tiles), the pendopo
 * joglo, ketupat of woven janur, glass jars of Lebaran cookies, the takbiran crescent and the gunungan.
 * Signature: the family tree (sections/_tree) — behind the cover frame, growing in the intro scene, and the
 * interactive silsilah of co_hosts (tap the roots: the branches light up generation by generation).
 *
 * Colours come from the chosen colour variant (template.json → <x-inv.head>):
 *   --inv-primary (sogan / green / maroon / indigo: titles, wood tint)   --inv-accent (gold)   --inv-background (ivory)
 *   --inv-text   --inv-deep (dark bands)   --inv-shine (pale gold on dark)   --inv-soft (soft band)   --inv-leaf (young leaf)
 * Fonts: --inv-font-heading (titles, carved capitals: Cinzel by default) and --inv-font-display (script: Allura) from
 * the client's font pair; Cormorant Garamond (quotes) and Jost (reading text) from the template.
 *
 * Section tones (set in each partial): .pt-tone--light (ivory + parang), --soft (soft band + parang),
 * --deep (sogan + kawung). Motion only runs with html.inv-anim; without it everything is shown finished.
 *
 * Contents: 1 base · 2 tones · 3 shared pieces · 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 "Sogan Emas" variant (the variant's colours override these) */
    --inv-primary: #7a4420;
    --inv-accent: #d29a3a;
    --inv-background: #f8eedb;
    --inv-text: #2d1b0e;
    --inv-deep: #341c0c;
    --inv-shine: #f6d47c;
    --inv-soft: #efdcb6;
    --inv-leaf: #8fb83a;
    --inv-radius: 14px;

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

    /* gold foil mixed from the accent: dark bronze → gold → pale light */
    --pt-gold-1: color-mix(in srgb, var(--inv-accent) 55%, #3a2203);
    --pt-gold-3: color-mix(in srgb, var(--inv-accent) 36%, #fff7da);
    --pt-gold-ink: color-mix(in srgb, var(--inv-accent) 60%, #3a2203);
    --pt-foil: linear-gradient(100deg, var(--pt-gold-1), var(--inv-accent) 30%, var(--pt-gold-3) 48%, var(--inv-accent) 62%, var(--pt-gold-1));
    --pt-foil-dark: linear-gradient(100deg, var(--pt-gold-ink), var(--pt-gold-1) 30%, var(--inv-accent) 50%, var(--pt-gold-1) 70%, var(--pt-gold-ink));

    /* carved teak, tinted a little by the variant */
    --pt-wood-1: color-mix(in srgb, var(--inv-primary) 42%, #5a3214);
    --pt-wood-2: color-mix(in srgb, var(--inv-deep) 62%, #1c0d04);
    --pt-wood-3: color-mix(in srgb, var(--inv-primary) 34%, #93612e);
    --pt-wood: linear-gradient(180deg, var(--pt-wood-3), var(--pt-wood-1) 40%, var(--pt-wood-2));

    /* janur (young coconut leaf) of the ketupat */
    --pt-janur-1: color-mix(in srgb, var(--inv-leaf) 50%, #f4e27a);
    --pt-janur-2: color-mix(in srgb, var(--inv-leaf) 85%, #3e5a0c);
    --pt-janur-ink: color-mix(in srgb, var(--inv-leaf) 35%, #213207);
    --pt-gunungan-in: color-mix(in srgb, var(--inv-deep) 85%, var(--inv-primary));

    --pt-paper: color-mix(in srgb, #fff 62%, var(--inv-background));
    --pt-title: color-mix(in srgb, var(--inv-primary) 78%, var(--inv-deep));
    --pt-muted: color-mix(in srgb, var(--inv-text) 80%, var(--inv-background));
    --pt-cream: color-mix(in srgb, var(--inv-background) 88%, transparent);
    --pt-line: color-mix(in srgb, var(--inv-accent) 55%, transparent);
    --pt-drop: 0 24px 40px -24px color-mix(in srgb, var(--inv-deep) 75%, transparent);

    /* batik kawung (four petals around a dot) and parang (diagonal bands with mlinjon diamonds) as masks */
    --pt-kawung: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.1'%3E%3Cellipse cx='11.5' cy='11.5' rx='7.5' ry='4.3' transform='rotate(45 11.5 11.5)'/%3E%3Cellipse cx='24.5' cy='11.5' rx='7.5' ry='4.3' transform='rotate(-45 24.5 11.5)'/%3E%3Cellipse cx='11.5' cy='24.5' rx='7.5' ry='4.3' transform='rotate(-45 11.5 24.5)'/%3E%3Cellipse cx='24.5' cy='24.5' rx='7.5' ry='4.3' transform='rotate(45 24.5 24.5)'/%3E%3C/g%3E%3Cg fill='%23000'%3E%3Ccircle cx='18' cy='18' r='1.5'/%3E%3Ccircle cx='0' cy='0' r='1.7'/%3E%3Ccircle cx='36' cy='0' r='1.7'/%3E%3Ccircle cx='0' cy='36' r='1.7'/%3E%3Ccircle cx='36' cy='36' r='1.7'/%3E%3Ccircle cx='11.5' cy='11.5' r='.9'/%3E%3Ccircle cx='24.5' cy='11.5' r='.9'/%3E%3Ccircle cx='11.5' cy='24.5' r='.9'/%3E%3Ccircle cx='24.5' cy='24.5' r='.9'/%3E%3C/g%3E%3C/svg%3E");
    --pt-parang: 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='M-5 25 25-5M-5 45 45-5M15 45 45 15'/%3E%3Cpath d='M6 20c-2-4 2-7 5-4M26 40c-2-4 2-7 5-4M26 0c-2-4 2-7 5-4M16 30c-2-4 2-7 5-4M36 10c-2-4 2-7 5-4'/%3E%3C/g%3E%3Cg fill='%23000'%3E%3Cpath d='M15 12l3 3-3 3-3-3zM35 32l3 3-3 3-3-3zM35-8l3 3-3 3-3-3zM-5 32l3 3-3 3-3-3z'/%3E%3C/g%3E%3C/svg%3E");
    /* the kawung in pale gold as a background image (the intro scene) */
    --pt-kawung-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cg fill='none' stroke='%23f6d47c' stroke-opacity='.08' stroke-width='1.1'%3E%3Cellipse cx='11.5' cy='11.5' rx='7.5' ry='4.3' transform='rotate(45 11.5 11.5)'/%3E%3Cellipse cx='24.5' cy='11.5' rx='7.5' ry='4.3' transform='rotate(-45 24.5 11.5)'/%3E%3Cellipse cx='11.5' cy='24.5' rx='7.5' ry='4.3' transform='rotate(-45 11.5 24.5)'/%3E%3Cellipse cx='24.5' cy='24.5' rx='7.5' ry='4.3' transform='rotate(45 24.5 24.5)'/%3E%3C/g%3E%3Cg fill='%23f6d47c' fill-opacity='.1'%3E%3Ccircle cx='18' cy='18' r='1.5'/%3E%3Ccircle cx='0' cy='0' r='1.7'/%3E%3Ccircle cx='36' cy='0' r='1.7'/%3E%3Ccircle cx='0' cy='36' r='1.7'/%3E%3Ccircle cx='36' cy='36' r='1.7'/%3E%3C/g%3E%3C/svg%3E") center / 36px 36px repeat;

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

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

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

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

.pt-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }

.pt-preview {
    position: sticky; top: 0; z-index: 60; padding: .5rem 1rem; text-align: center;
    background: #fff4d6; color: #6b4e00; font-size: .8125rem;
}

.pt-main { max-width: var(--pt-col); margin: 0 auto; overflow-x: clip; }
.pt-branding { max-width: var(--pt-col); margin: 0 auto; }

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

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

/* gold foil text: the gradient clipped to the letters, with a slow moving shine */
.pt-heading__title em, .pt-cover__title span, .pt-cover__name, .pt-kop__name, .pt-closing__name, .pt-closing__title em,
.pt-letter__for, .pt-silsilah__plaque-name, .pt-cloth__theme, .pt-stream__title em, .pt-event__day {
    background: var(--pt-foil); background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- 2. section tones ---------- */
.pt-tone--light {
    background:
        radial-gradient(60% 26% at 100% 0%, color-mix(in srgb, var(--inv-shine) 30%, transparent), transparent 75%),
        radial-gradient(60% 26% at 0% 100%, color-mix(in srgb, var(--inv-leaf) 16%, transparent), transparent 75%),
        var(--inv-background);
}
.pt-tone--soft {
    background:
        radial-gradient(80% 36% at 50% 0%, color-mix(in srgb, #fff 50%, transparent), transparent 75%),
        radial-gradient(70% 30% at 100% 100%, color-mix(in srgb, var(--inv-leaf) 14%, transparent), transparent 75%),
        linear-gradient(180deg, var(--inv-soft), color-mix(in srgb, var(--inv-soft) 55%, var(--inv-background)));
}
.pt-tone--light::before, .pt-tone--soft::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: var(--inv-primary); opacity: .065;
    -webkit-mask: var(--pt-parang) center top / 40px 40px repeat; mask: var(--pt-parang) center top / 40px 40px repeat;
}
.pt-tone--deep {
    color: var(--inv-background);
    background:
        radial-gradient(90% 42% 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-accent) 22%, transparent), transparent 75%),
        var(--inv-deep);
}
.pt-tone--deep::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: var(--inv-shine); opacity: .1;
    -webkit-mask: var(--pt-kawung) center top / 36px 36px repeat; mask: var(--pt-kawung) center top / 36px 36px repeat;
}
.pt-tone--deep a:not(.inv-button) { color: var(--inv-shine); }
.pt-tone--deep .pt-arabic { color: var(--inv-shine); }

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

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

/* heading: eyebrow between two gold diamonds, carved capitals, the last word in script foil, the scroll divider */
.pt-heading { margin: 0 0 2rem; }
.pt-heading__eyebrow {
    display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 .55rem;
    font-size: .68rem; font-weight: 600; line-height: 1.2; letter-spacing: .26em; text-transform: uppercase; color: var(--pt-gold-ink);
}
.pt-heading__eyebrow::before, .pt-heading__eyebrow::after { content: ''; width: 7px; height: 7px; flex: none; rotate: 45deg; background: var(--inv-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--inv-accent) 25%, transparent); }
.pt-heading__title {
    margin: 0; font-family: var(--pt-heading); font-size: 1.75rem; font-weight: 500; line-height: 1.15;
    letter-spacing: .05em; color: var(--pt-title); text-wrap: balance;
}
.pt-heading__title em {
    display: inline-block; padding: 0 .1em .12em; font-family: var(--pt-script); font-style: normal; font-weight: 400;
    font-size: 1.62em; line-height: .9; letter-spacing: 0; word-spacing: .12em;
}
.pt-heading__divider { margin: .7rem auto 0; }
.pt-tone--deep .pt-heading__eyebrow { color: var(--inv-shine); }
.pt-tone--deep .pt-heading__title { color: #fff8ea; }
/* on light and soft sections the foil runs darker, so the script word keeps its contrast */
.pt-tone--light .pt-heading__title em, .pt-tone--soft .pt-heading__title em { background-image: var(--pt-foil-dark); }

/* the scroll divider */
.pt-divider { display: block; width: min(11rem, 64%); height: auto; overflow: visible; }
.pt-divider__line { stroke: var(--inv-accent); stroke-width: 1.2; opacity: .75; }
.pt-divider__vine { stroke: var(--inv-accent); stroke-width: 1.5; }
.pt-divider__leaf { fill: var(--inv-leaf); }
.pt-divider__flower ellipse { fill: color-mix(in srgb, var(--inv-accent) 22%, transparent); stroke: var(--inv-accent); stroke-width: 1.3; }
.pt-divider__dot { fill: var(--inv-accent); }
.pt-tone--deep .pt-divider__line, .pt-tone--deep .pt-divider__vine { stroke: var(--inv-shine); }
.pt-tone--deep .pt-divider__flower ellipse { stroke: var(--inv-shine); }
.pt-tone--deep .pt-divider__dot { fill: var(--inv-shine); }

/* the family tree (sections/_tree) */
.pt-tree { display: block; overflow: visible; }
.pt-tree__wood { stroke: var(--pt-wood-1); }
.pt-tree__w10 { stroke-width: 10; } .pt-tree__w8 { stroke-width: 8; } .pt-tree__w5 { stroke-width: 5; } .pt-tree__w4 { stroke-width: 4; } .pt-tree__w3 { stroke-width: 3; }
.pt-tree__trunk { fill: url(#pt-wood); }
.pt-tree__carving path { stroke: var(--inv-accent); stroke-width: 1.4; opacity: .85; }
.pt-tree__leaf { stroke: none; }
.pt-tree__leaf--gold { fill: url(#pt-foil); }
.pt-tree__leaf--green { fill: var(--inv-leaf); }
.pt-tree__leaf--pale { fill: var(--pt-gold-3); }
.pt-tree__leaf--deep { fill: color-mix(in srgb, var(--inv-leaf) 60%, var(--inv-deep)); }

/* the round gold medallion with the milestone ("Kumpul ke" small + "25" big) */
.pt-medal {
    display: grid; place-content: center; width: 4.4rem; height: 4.4rem; margin: 0; border-radius: 50%; text-align: center;
    color: var(--inv-deep); background: radial-gradient(circle at 35% 30%, var(--pt-gold-3), var(--inv-accent) 55%, var(--pt-gold-1));
    box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--pt-gold-3) 70%, transparent), inset 0 0 0 4.5px var(--pt-gold-1), 0 10px 18px -8px rgb(0 0 0 / .6);
}
.pt-medal strong { font-family: var(--pt-heading); font-size: 1.65rem; font-weight: 600; line-height: .95; }
.pt-medal span { font-size: .5rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1.15; padding: 0 .35rem; }
.pt-medal--text span { font-size: .56rem; letter-spacing: .06em; }

/* a carved plaque: teak with a gold inner line (the guest box) */
.pt-plaque {
    position: relative; margin: 0; padding: .55rem 1.1rem .6rem; border-radius: 10px; text-align: center;
    background: var(--pt-wood); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12), inset 0 0 0 4px var(--pt-wood-2), inset 0 0 0 5px color-mix(in srgb, var(--inv-accent) 80%, transparent), 0 14px 24px -14px rgb(0 0 0 / .8);
}
.pt-plaque__label { margin: 0; font-size: .6rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--inv-shine); }
.pt-plaque__name { display: block; margin: .1rem 0 0; font-family: var(--pt-heading); font-size: 1.12rem; font-weight: 500; line-height: 1.25; letter-spacing: .03em; color: #fff8ea; overflow-wrap: anywhere; }

/* a gold button */
.pt-button-gold, .pt-main .inv-form button[type=submit] {
    color: var(--inv-deep) !important; background: var(--pt-foil) !important; background-size: 220% 100% !important;
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / .35), 0 12px 22px -12px rgb(0 0 0 / .55) !important;
}

/* the tap marker: two pulsing rings, a tapping hand and a gold label */
.pt-tap { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.pt-tap__ring {
    position: absolute; left: 50%; top: 1.2rem; width: 4.6rem; aspect-ratio: 1; margin: -2.3rem 0 0 -2.3rem; border-radius: 50%;
    border: 2.5px solid var(--inv-accent); opacity: 0;
}
.pt-tap__hand {
    position: absolute; left: calc(50% + .3rem); top: 1rem; width: 2.5rem; height: 2.5rem;
    fill: #fff; stroke: var(--pt-gold-1); stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 4px 6px rgb(0 0 0 / .35));
}
.pt-tap__label {
    position: absolute; left: calc(50% + 2.9rem); top: 1.35rem; white-space: nowrap;
    padding: .34rem .85rem; border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .06em;
    color: var(--inv-deep); background: var(--pt-foil); background-size: 220% 100%; box-shadow: 0 8px 16px -8px rgb(0 0 0 / .5);
}

/* ---------- 4. cover ---------- */
.pt-cover {
    --pt-win-w: 214px; --pt-win-h: 262px; --pt-frame: 12px;
    position: fixed; inset: 0; z-index: 30; overflow-x: hidden; overflow-y: auto;
    display: flex; flex-direction: column; align-items: center;
    isolation: isolate; color: var(--inv-background);
    background:
        radial-gradient(70% 36% at 50% 32%, color-mix(in srgb, var(--inv-shine) 24%, transparent), transparent 72%),
        radial-gradient(90% 40% at 50% 104%, color-mix(in srgb, var(--inv-primary) 75%, transparent), transparent 75%),
        linear-gradient(180deg, color-mix(in srgb, var(--inv-deep) 82%, #000), var(--inv-deep) 50%, color-mix(in srgb, var(--inv-primary) 55%, var(--inv-deep)));
    transition: opacity .9s ease;
}
.pt-cover::before {
    content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--inv-shine); opacity: .1;
    -webkit-mask: var(--pt-kawung) center / 36px 36px repeat; mask: var(--pt-kawung) center / 36px 36px repeat;
}
.pt-cover__inner {
    display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; max-width: 420px; min-height: 100%;
    padding: 1.3rem 1.25rem 1.6rem; text-align: center; transition: transform .9s cubic-bezier(.5, 0, .3, 1);
}

.pt-cover__title {
    display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 .4rem; max-width: 100%;
    font-family: var(--pt-heading); font-size: .82rem; font-weight: 500; line-height: 1.25; letter-spacing: .24em; text-transform: uppercase;
}
.pt-cover__title::before, .pt-cover__title::after { content: ''; width: 6px; height: 6px; flex: none; rotate: 45deg; background: var(--inv-shine); }

/* the art: the tree behind, the gebyok frame with its crown, the ketupat */
.pt-cover__art { position: relative; display: flex; justify-content: center; width: 100%; padding-top: 50px; margin-bottom: 1.1rem; }
.pt-cover__glow {
    position: absolute; left: 50%; top: 42%; width: 130%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, color-mix(in srgb, var(--inv-shine) 36%, transparent), transparent 62%);
}
.pt-cover__tree {
    position: absolute; left: 50%; top: -6px; width: calc((var(--pt-win-w) + var(--pt-frame) * 2) * 2.05); translate: -50% 0; z-index: 0;
    -webkit-mask: linear-gradient(180deg, #000 0, #000 56%, transparent 70%); mask: linear-gradient(180deg, #000 0, #000 56%, transparent 70%);
}
.pt-cover__ketupat {
    position: absolute; z-index: 3; top: 82px; width: 34px; height: 51px; overflow: visible;
    filter: drop-shadow(0 6px 6px rgb(0 0 0 / .35)); transform-origin: 50% 0;
}
.pt-cover__ketupat--left { left: calc(50% - var(--pt-win-w) / 2 - var(--pt-frame) - 46px); }
.pt-cover__ketupat--right { right: calc(50% - var(--pt-win-w) / 2 - var(--pt-frame) - 46px); top: 100px; }

.pt-gebyok { position: relative; z-index: 2; margin: 0; }
.pt-gebyok__frame {
    position: relative; padding: var(--pt-frame); border-radius: 8px 8px 4px 4px;
    background:
        repeating-linear-gradient(90deg, rgb(255 255 255 / .05) 0 2px, transparent 2px 7px),
        linear-gradient(90deg, var(--pt-wood-2), var(--pt-wood-3) 18%, var(--pt-wood-1) 50%, var(--pt-wood-3) 82%, var(--pt-wood-2));
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14), 0 26px 40px -18px rgb(0 0 0 / .85);
}
/* the gold inner line and the carved bead row on the frame */
.pt-gebyok__frame::before {
    content: ''; position: absolute; inset: 4px; border-radius: 6px 6px 3px 3px; pointer-events: none;
    border: 1.5px solid color-mix(in srgb, var(--inv-accent) 85%, transparent);
    -webkit-mask: none; mask: none;
}
.pt-gebyok__frame::after {
    content: ''; position: absolute; inset: calc(var(--pt-frame) - 2px); border-radius: 3px; pointer-events: none;
    box-shadow: 0 0 0 2px var(--inv-accent), 0 0 0 3px var(--pt-wood-2);
}
.pt-gebyok__window { position: relative; width: var(--pt-win-w); height: var(--pt-win-h); overflow: hidden; border-radius: 2px; background: var(--inv-deep); }
.pt-gebyok__photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.pt-gebyok__empty {
    position: absolute; inset: 0; display: grid; place-items: center; padding: 10% 6% 0;
    background: radial-gradient(70% 45% at 50% 40%, color-mix(in srgb, var(--inv-shine) 30%, transparent), transparent 72%), linear-gradient(180deg, var(--inv-primary), var(--inv-deep));
}
.pt-gebyok__tree { width: 100%; }
.pt-gebyok__crown {
    position: absolute; z-index: 3; left: 50%; top: -56px; width: 54px; translate: -50% 0;
    filter: drop-shadow(0 6px 8px rgb(0 0 0 / .45));
}
.pt-gebyok__crown svg { display: block; width: 100%; height: auto; overflow: visible; }
.pt-gebyok__monogram {
    position: absolute; left: 50%; top: 52%; translate: -50% -50%; white-space: nowrap;
    font-family: var(--pt-heading); font-size: .82rem; font-weight: 600; letter-spacing: .06em; color: var(--inv-shine);
    text-shadow: 0 1px 2px rgb(0 0 0 / .6);
}
.pt-gebyok__corner {
    position: absolute; z-index: 3; bottom: -12px; width: 34px; height: 34px; overflow: visible;
    fill: none; stroke: var(--inv-accent); stroke-width: 2.4; stroke-linecap: round; filter: drop-shadow(0 2px 2px rgb(0 0 0 / .5));
}
.pt-gebyok__corner--left { left: -14px; }
.pt-gebyok__corner--right { right: -14px; scale: -1 1; }
.pt-cover__medal { position: absolute; z-index: 4; right: -24px; bottom: 26px; width: 4rem; height: 4rem; rotate: 8deg; }
.pt-cover__medal strong { font-size: 1.45rem; }

.pt-cover__text { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; width: 100%; }
.pt-cover__name {
    margin: 0; max-width: 100%; padding: 0 .1em .08em; font-family: var(--pt-script); font-size: 2.65rem; font-weight: 400; line-height: 1.02;
    word-spacing: .1em; text-wrap: balance; overflow-wrap: anywhere; filter: drop-shadow(0 2px 3px rgb(0 0 0 / .45));
}
.pt-cover__batch { margin: .3rem 0 0; font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--inv-shine); text-wrap: balance; }
.pt-cover__date { margin: .3rem 0 0; font-family: var(--pt-heading); font-size: .86rem; font-weight: 500; letter-spacing: .06em; color: #fff8ea; }
.pt-cover__quote {
    max-width: 31ch; margin: .35rem 0 0; font-family: var(--pt-serif); font-style: italic; font-weight: 500;
    font-size: 1.02rem; line-height: 1.32; color: var(--pt-cream); text-wrap: balance;
}
.pt-cover__guest { width: min(100%, 17rem); margin-top: .8rem; }
.pt-cover__open {
    margin-top: .9rem; min-height: 3rem; padding: .7rem 2rem; font-family: var(--pt-sans); font-weight: 600; letter-spacing: .06em;
    color: var(--inv-deep); background: var(--pt-foil); background-size: 220% 100%;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--inv-deep) 70%, transparent), 0 0 0 4.5px var(--inv-accent), 0 14px 26px -10px rgb(0 0 0 / .8);
}

.pt-cover--leave { transition: opacity .9s ease .1s; }
.pt-cover--gone { opacity: 0; }
.pt-cover--gone .pt-cover__inner { transform: translateY(-2.5rem); }

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

/* opening: the first screen — the joglo, the greeting, the hanging plaque */
.pt-opening {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: var(--inv-screen, 100svh); padding: 3.4rem 1.5rem 5.8rem;
}
.pt-opening__joglo-wrap { position: relative; width: min(15rem, 74%); margin: 0 auto 1.1rem; }
.pt-opening__joglo-wrap::after {
    content: ''; position: absolute; left: -24%; right: -24%; bottom: 4px; height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--inv-accent) 25%, var(--inv-accent) 75%, transparent);
}
.pt-joglo { display: block; width: 100%; height: auto; overflow: visible; }
.pt-joglo__roof-low { fill: color-mix(in srgb, var(--pt-wood-1) 88%, var(--inv-primary)); }
.pt-joglo__roof-mid { fill: var(--pt-wood-1); }
.pt-joglo__roof-top { fill: color-mix(in srgb, var(--pt-wood-1) 70%, var(--pt-wood-2)); }
.pt-joglo__edge, .pt-joglo__trim { stroke: var(--inv-accent); stroke-width: 1.6; }
.pt-joglo__ridge { stroke: var(--inv-accent); stroke-width: 2.6; }
.pt-joglo__pillar { stroke: var(--pt-wood-1); stroke-width: 5; }
.pt-joglo__base, .pt-joglo__floor { fill: var(--inv-accent); }
.pt-joglo__floor { fill: color-mix(in srgb, var(--inv-accent) 60%, var(--pt-wood-1)); }
.pt-joglo__beam { stroke: var(--inv-accent); stroke-width: 1.6; }
.pt-opening__basmalah { margin: 0 0 .5rem; font-size: 1.8rem; }
.pt-opening__greeting {
    margin: 0 auto .8rem; max-width: 22ch; font-family: var(--pt-heading); font-size: 1.32rem; font-weight: 500; letter-spacing: .04em;
    line-height: 1.35; color: var(--pt-title); text-wrap: balance;
}
.pt-opening__message { margin: 0 auto; max-width: 32ch; color: var(--pt-muted); }

/* a plaque hanging on two gold cords from a crescent */
.pt-hanging { position: relative; width: min(100%, 21.5rem); margin: 2.2rem auto 0; padding-top: 3.1rem; }
.pt-hanging__cords { position: absolute; left: 0; right: 0; top: 0; height: 3.4rem; pointer-events: none; }
.pt-hanging__cords::before {
    content: ''; position: absolute; left: 22%; right: 22%; top: 1.3rem; bottom: 0;
    background: linear-gradient(var(--inv-accent), var(--inv-accent)) left / 1.4px 100% no-repeat, linear-gradient(var(--inv-accent), var(--inv-accent)) right / 1.4px 100% no-repeat;
    clip-path: polygon(48% 0, 52% 0, 100% 100%, 0 100%);
}
.pt-hanging__cords::after { content: ''; position: absolute; left: 22%; right: 22%; top: 1.3rem; bottom: 0; background: linear-gradient(to bottom right, transparent calc(50% - .8px), var(--inv-accent) calc(50% - .7px), var(--inv-accent) calc(50% + .7px), transparent calc(50% + .8px)) left / 50% 100% no-repeat, linear-gradient(to bottom left, transparent calc(50% - .8px), var(--inv-accent) calc(50% - .7px), var(--inv-accent) calc(50% + .7px), transparent calc(50% + .8px)) right / 50% 100% no-repeat; }
.pt-hanging__moon { position: absolute; left: 50%; top: 0; width: 2.2rem; height: 2.2rem; translate: -50% 0; overflow: visible; filter: drop-shadow(0 3px 4px rgb(0 0 0 / .25)); }
.pt-hanging__board {
    position: relative; padding: 1.5rem 1.35rem 1.35rem; border-radius: 12px; color: #fff8ea; background: var(--pt-wood);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12), inset 0 0 0 6px var(--pt-wood-2), inset 0 0 0 7.5px color-mix(in srgb, var(--inv-accent) 85%, transparent), var(--pt-drop);
}
.pt-hanging__board::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: var(--inv-shine); opacity: .08;
    -webkit-mask: var(--pt-kawung) center / 30px 30px repeat; mask: var(--pt-kawung) center / 30px 30px repeat;
}
.pt-hanging blockquote { position: relative; margin: 0; font-family: var(--pt-serif); font-style: italic; font-weight: 500; font-size: 1.16rem; line-height: 1.45; text-wrap: balance; }
.pt-hanging figcaption {
    position: relative; display: inline-block; margin-top: .8rem; padding-top: .55rem; font-size: .66rem; font-weight: 600;
    letter-spacing: .2em; text-transform: uppercase; color: var(--inv-shine); border-top: 1.5px solid color-mix(in srgb, var(--inv-shine) 60%, transparent);
}

/* organizer: the oval portrait with its medallion, the carved "kop" plaque */
.pt-organizer__art { position: relative; width: min(15rem, 72%); margin: 0 auto; }
.pt-oval {
    position: relative; margin: 0; padding: 10px; border-radius: 50%; aspect-ratio: 4 / 5;
    background: conic-gradient(from 0deg, var(--pt-gold-1), var(--pt-gold-3), var(--inv-accent), var(--pt-gold-1), var(--pt-gold-3), var(--inv-accent), var(--pt-gold-1));
    box-shadow: 0 0 0 4px var(--pt-wood-2), 0 0 0 5.5px color-mix(in srgb, var(--inv-accent) 70%, transparent), 0 26px 40px -18px rgb(0 0 0 / .8);
}
.pt-oval::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--pt-wood-2) 70%, transparent); pointer-events: none; z-index: 1; }
.pt-oval__window { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 50%; background: var(--inv-deep); }
.pt-oval__photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; filter: sepia(.32) saturate(.9) contrast(1.02); }
.pt-oval__empty {
    position: absolute; inset: 0; display: grid; place-items: center;
    background: radial-gradient(70% 45% at 50% 40%, color-mix(in srgb, var(--inv-shine) 30%, transparent), transparent 72%), linear-gradient(180deg, var(--inv-primary), var(--inv-deep));
}
.pt-oval__tree { width: 92%; opacity: .9; }
.pt-oval__monogram { position: absolute; bottom: 14%; font-family: var(--pt-heading); font-size: 1.4rem; letter-spacing: .08em; color: var(--inv-shine); }
.pt-organizer__medal { position: absolute; z-index: 2; right: -1.6rem; bottom: .6rem; rotate: 8deg; }
.pt-kop {
    position: relative; margin: 2.9rem auto 0; max-width: 23rem; padding: 2.4rem 1.3rem 1.5rem; border-radius: 14px; color: #fff8ea;
    background: var(--pt-wood);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12), inset 0 0 0 6px var(--pt-wood-2), inset 0 0 0 7.5px var(--inv-accent), inset 0 0 0 11px var(--pt-wood-2), inset 0 0 0 12px color-mix(in srgb, var(--inv-accent) 50%, transparent), var(--pt-drop);
}
.pt-kop::before {
    content: ''; position: absolute; inset: 12px; border-radius: 4px; pointer-events: none; background: var(--inv-shine); opacity: .07;
    -webkit-mask: var(--pt-kawung) center / 30px 30px repeat; mask: var(--pt-kawung) center / 30px 30px repeat;
}
.pt-kop__crown { position: absolute; left: 50%; top: -2.1rem; width: 3.2rem; height: 4.2rem; translate: -50% 0; overflow: visible; filter: drop-shadow(0 6px 8px rgb(0 0 0 / .45)); }
.pt-kop__name { position: relative; margin: 0; padding: 0 .1em .08em; font-family: var(--pt-script); font-size: 2.6rem; font-weight: 400; line-height: 1.04; word-spacing: .1em; text-wrap: balance; overflow-wrap: anywhere; }
.pt-kop__batch {
    position: relative; display: flex; align-items: center; justify-content: center; gap: .6rem; margin: .5rem 0 0;
    font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--inv-shine); text-wrap: balance;
}
.pt-kop__milestone {
    position: relative; display: inline-block; margin: .65rem 0 0; padding: .22rem .8rem; border-radius: 999px; font-family: var(--pt-heading);
    font-size: .78rem; letter-spacing: .08em; color: var(--inv-deep); background: var(--pt-foil);
}
.pt-kop__tagline { position: relative; margin: .95rem auto 0; max-width: 28ch; font-family: var(--pt-serif); font-style: italic; font-weight: 500; font-size: 1.14rem; line-height: 1.42; color: var(--pt-cream); }

/* party: the batik cloth, the beskap card, the jars + note, the hashtag */
.pt-cloth {
    position: relative; max-width: 22rem; margin: 0 auto; padding: 1.6rem 1.2rem 1.5rem; color: #fff8ea;
    background: radial-gradient(80% 90% at 50% 50%, color-mix(in srgb, var(--inv-primary) 85%, var(--inv-deep)), var(--inv-deep));
    box-shadow: var(--pt-drop);
}
/* parang borders top and bottom, and the kawung faint inside */
.pt-cloth::before, .pt-cloth::after {
    content: ''; position: absolute; left: 0; right: 0; height: 12px; background: var(--inv-accent);
    -webkit-mask: var(--pt-parang) 0 0 / 20px 20px repeat-x; mask: var(--pt-parang) 0 0 / 20px 20px repeat-x;
}
.pt-cloth::before { top: 5px; }
.pt-cloth::after { bottom: 5px; }
.pt-cloth__label { display: block; font-size: .64rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--inv-shine); }
.pt-cloth__theme { margin: .2rem 0 0; font-family: var(--pt-heading); font-size: 1.6rem; font-weight: 500; line-height: 1.2; letter-spacing: .04em; overflow-wrap: anywhere; text-wrap: balance; }
.pt-party__dress {
    display: grid; grid-template-columns: 4.8rem minmax(0, 1fr); align-items: center; gap: 1rem; max-width: 22rem; margin: 1.4rem auto 0; padding: 1.1rem 1.15rem;
    border-radius: 16px; text-align: left; background: var(--pt-paper); box-shadow: inset 0 0 0 1.5px var(--pt-line), var(--pt-drop);
}
.pt-beskap { display: block; width: 100%; overflow: visible; }
.pt-beskap__body { fill: var(--pt-pick, var(--inv-primary)); stroke: var(--pt-wood-2); stroke-width: 1.8; stroke-linejoin: round; transition: fill .35s ease; }
.pt-beskap__line { fill: none; stroke: var(--pt-wood-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.pt-beskap__button { fill: var(--inv-accent); stroke: var(--pt-wood-2); stroke-width: .6; }
.pt-beskap__jarik { fill: var(--inv-accent); opacity: .85; }
.pt-party__label { display: block; font-size: .64rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--pt-gold-ink); }
.pt-party__dress-name { margin: .15rem 0 0; font-family: var(--pt-heading); font-weight: 500; font-size: 1.02rem; line-height: 1.35; color: var(--pt-title); }
.pt-swatches { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .6rem; }
.pt-swatch {
    width: 1.9rem; height: 1.9rem; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: var(--pt-swatch);
    box-shadow: inset 0 0 0 1px rgb(0 0 0 / .18), 0 0 0 2px #fff, 0 0 0 3px var(--pt-line);
    transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s ease;
}
.pt-swatch[aria-pressed="true"] { transform: scale(1.15); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .18), 0 0 0 2px #fff, 0 0 0 4px var(--inv-accent); }
.pt-swatch:focus-visible { outline: 2px solid var(--pt-title); outline-offset: 4px; }
.pt-party__hint { margin: .5rem 0 0; font-size: .74rem; color: var(--pt-muted); }
.pt-party__hint--center { margin: .55rem auto 0 !important; }
.pt-party__note { position: relative; max-width: 22rem; margin: 2.2rem auto 0; padding: 4.6rem 1.25rem 1.2rem; border-radius: 16px; background: var(--pt-paper); box-shadow: inset 0 0 0 1.5px var(--pt-line), var(--pt-drop); }
.pt-party__note p { margin: 0; font-family: var(--pt-serif); font-style: italic; font-weight: 500; font-size: 1.1rem; line-height: 1.42; color: var(--pt-title); }
.pt-party__jars { position: absolute; left: 50%; top: -1.6rem; display: flex; align-items: flex-end; gap: .2rem; translate: -50% 0; }
.pt-party__jar { display: block; width: 4.1rem; height: auto; overflow: visible; filter: drop-shadow(0 8px 8px rgb(0 0 0 / .25)); }
.pt-party__jar--side { width: 3.3rem; }
.pt-jar__glass { fill: url(#pt-glass); stroke: color-mix(in srgb, var(--pt-wood-2) 45%, #fff); stroke-width: 1.4; }
.pt-jar__shine { stroke: #fff; stroke-width: 2.2; opacity: .75; }
.pt-jar__lid { fill: url(#pt-foil); stroke: var(--pt-gold-1); stroke-width: 1; }
.pt-jar--kastengel .pt-jar__lid { fill: var(--inv-primary); }
.pt-jar--salju .pt-jar__lid { fill: color-mix(in srgb, var(--inv-leaf) 75%, var(--inv-deep)); }
.pt-jar__rim { fill: var(--pt-gold-1); }
.pt-jar__knob { fill: var(--inv-accent); }
.pt-jar__lid-line { stroke: rgb(255 255 255 / .55); stroke-width: 1.2; }
.pt-jar__nastar { fill: #e5a23a; stroke: #b0661c; stroke-width: 1; }
.pt-jar__clove { stroke: #5a2e12; stroke-width: 1.8; }
.pt-jar__glaze { stroke: #ffe1a0; stroke-width: 1.2; }
.pt-jar__stick { fill: #f0c867; stroke: #c48a2c; stroke-width: .9; }
.pt-jar__cheese { stroke: #fff3c4; stroke-width: 1.6; }
.pt-jar__salju { fill: #fffaf0; stroke: #e2d2b2; stroke-width: .9; }
.pt-party__hashtag {
    display: inline-flex; align-items: center; gap: .6rem; max-width: 100%; margin-top: 1.9rem; padding: .35rem .4rem .35rem 1rem; border-radius: 999px;
    background: var(--pt-paper); box-shadow: inset 0 0 0 1.5px var(--inv-accent);
}
.pt-party__hashtag-text { min-width: 0; font-family: var(--pt-heading); font-weight: 500; font-size: .98rem; letter-spacing: .03em; color: var(--pt-title); overflow-wrap: anywhere; }
.pt-party__copy {
    flex: none; min-height: 2.2rem; padding: .3rem .95rem; border: 0; border-radius: 999px; cursor: pointer;
    font: 600 .76rem/1 var(--pt-sans); color: var(--inv-deep); background: var(--pt-foil); background-size: 220% 100%;
}

/* events: the joglo roof, the card with the photo, the carved date block */
.pt-event { max-width: 24rem; margin: 0 auto; }
.pt-event + .pt-event { margin-top: 2.6rem; }
.pt-event__roof { display: block; width: 100%; height: 46px; margin-bottom: -1px; overflow: visible; }
.pt-event__roof-fill { fill: url(#pt-wood); }
.pt-event__roof-line { fill: none; stroke: var(--inv-accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.pt-event__card {
    position: relative; padding: 0 0 1.25rem; border-radius: 0 0 18px 18px; text-align: left; background: var(--pt-paper);
    box-shadow: inset 0 0 0 1.5px var(--pt-line), var(--pt-drop);
}
.pt-event__media { position: relative; overflow: hidden; border-radius: 0; -webkit-mask: linear-gradient(180deg, #000 70%, transparent); mask: linear-gradient(180deg, #000 70%, transparent); }
.pt-event__photo { display: block; width: 100%; aspect-ratio: 16 / 10.5; object-fit: cover; object-position: 50% 35%; }
.pt-event__top { position: relative; display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.15rem 0; }
.pt-event__media + .pt-event__top { margin-top: -2.2rem; }
.pt-event--flip .pt-event__top { flex-direction: row-reverse; text-align: right; }
.pt-event__date {
    display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; width: 4.7rem; margin: 0; padding: .65rem .2rem .6rem;
    border-radius: 10px; color: #fff8ea; background: var(--pt-wood);
    box-shadow: inset 0 0 0 3px var(--pt-wood-2), inset 0 0 0 4.5px var(--inv-accent), 0 10px 18px -10px rgb(0 0 0 / .7);
}
.pt-event--flip .pt-event__date { background: linear-gradient(180deg, color-mix(in srgb, var(--inv-leaf) 70%, var(--inv-deep)), color-mix(in srgb, var(--inv-leaf) 35%, var(--inv-deep))); }
.pt-event__weekday { font-size: .58rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--inv-shine); }
.pt-event__day { font-family: var(--pt-heading); font-weight: 600; font-size: 2.3rem; line-height: 1.05; }
.pt-event__month { font-size: .58rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.pt-event__head { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.pt-event__no { font-size: .62rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--pt-gold-ink); }
.pt-event__name { margin: .1rem 0 0; font-family: var(--pt-heading); font-weight: 500; font-size: 1.3rem; line-height: 1.22; letter-spacing: .02em; color: var(--pt-title); text-wrap: balance; }
.pt-event__full { margin: .2rem 0 0; font-size: .8rem; font-weight: 500; color: var(--pt-muted); }
.pt-event__divider { margin: 1rem auto .9rem; }
.pt-event__rows { display: grid; gap: .75rem; margin: 0; padding: 0 1.15rem; list-style: none; font-size: .9rem; }
.pt-event__rows li { display: flex; align-items: flex-start; gap: .7rem; }
.pt-event__rows .pt-icon { width: 2.1rem; height: 2.1rem; padding: .45rem; border-radius: 50%; color: var(--inv-deep); background: color-mix(in srgb, var(--inv-shine) 45%, #fff); box-shadow: inset 0 0 0 1px var(--pt-line); }
.pt-event__rows li > span { padding-top: .3rem; }
.pt-event__venue { display: block; font-weight: 600; color: var(--pt-title); }
.pt-event__address { display: block; font-size: .85rem; color: var(--pt-muted); }
.pt-event .inv-maps { margin: 1.15rem 1.15rem 0; text-align: center; }
.pt-event .inv-maps .inv-button { width: 100%; font-weight: 600; color: #fff8ea; background: var(--pt-wood); box-shadow: inset 0 0 0 1.5px var(--inv-accent); }
.pt-event .inv-maps__frame { height: 190px; border-radius: 14px; }

/* countdown: the takbiran crescent with its ketupat, carved teak tiles */
.pt-takbir { position: relative; width: 12rem; height: 8.6rem; margin: -1rem auto .4rem; }
.pt-takbir__glow { position: absolute; left: 50%; top: 2.2rem; width: 9rem; height: 9rem; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--inv-shine) 42%, transparent), transparent 64%); }
.pt-takbir__moon { position: absolute; left: 50%; top: .2rem; width: 4.2rem; height: 4.2rem; translate: -50% 0; overflow: visible; filter: drop-shadow(0 0 12px color-mix(in srgb, var(--inv-shine) 60%, transparent)); }
.pt-takbir__ketupat { position: absolute; top: 2.6rem; width: 1.9rem; height: 2.85rem; overflow: visible; transform-origin: 50% 0; filter: drop-shadow(0 5px 5px rgb(0 0 0 / .4)); }
.pt-takbir__ketupat--1 { left: 1.6rem; top: 2.2rem; }
.pt-takbir__ketupat--2 { left: calc(50% - .95rem); top: 4.4rem; height: 3.6rem; width: 2.4rem; margin-left: -.25rem; }
.pt-takbir__ketupat--3 { right: 1.6rem; top: 2.6rem; }
.pt-countdown__when { margin: -.9rem auto 1.6rem !important; font-family: var(--pt-heading); font-size: .92rem; letter-spacing: .06em; color: var(--inv-shine); }
.pt-countdown__when span { display: block; margin-top: .1rem; font-family: var(--pt-sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--pt-cream); }
.pt-countdown .inv-countdown { gap: clamp(.45rem, 2.4vw, .75rem); }
.pt-countdown .inv-countdown__item {
    display: grid; place-content: center; width: clamp(4rem, 18.5vw, 4.7rem); min-width: 0; aspect-ratio: 4 / 4.6; padding: .4rem 0 .2rem;
    border-radius: 10px; color: #fff8ea; background: var(--pt-wood);
    box-shadow: inset 0 0 0 3px var(--pt-wood-2), inset 0 0 0 4.5px var(--inv-accent), 0 16px 24px -12px rgb(0 0 0 / .6);
}
.pt-countdown .inv-countdown__value { font-variant-numeric: lining-nums tabular-nums; font-family: var(--pt-heading); font-weight: 600; font-size: 1.7rem; line-height: 1.1; color: var(--inv-shine); }
.pt-countdown .inv-countdown__label { margin-top: .1rem; font-size: .55rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--pt-cream); opacity: 1; }
.pt-countdown .inv-countdown__done { font-family: var(--pt-heading); font-size: 1.2rem; color: var(--inv-shine); }
.pt-countdown .inv-countdown__actions { flex-direction: column; align-items: center; gap: .6rem; margin-top: 2rem; }
.pt-countdown .inv-countdown__actions .inv-button {
    width: min(100%, 17rem); min-height: 2.75rem; padding: .6rem 1rem; font-size: .84rem; font-weight: 600;
    color: var(--inv-background); background: color-mix(in srgb, var(--inv-background) 10%, transparent);
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--inv-shine) 65%, transparent);
}
.pt-countdown .inv-countdown__actions .inv-button:first-child { color: var(--inv-deep); background: var(--pt-foil); background-size: 220% 100%; box-shadow: none; }

/* rundown: the steps along a growing branch */
.pt-vine { position: relative; max-width: 24rem; margin: 0 auto; padding: 0 0 1.4rem 3.3rem; list-style: none; text-align: left; }
.pt-vine::before {
    content: ''; position: absolute; left: 1.35rem; top: .4rem; bottom: .6rem; width: 5px; border-radius: 5px; transform-origin: 50% 0;
    background: linear-gradient(90deg, var(--pt-wood-3), var(--pt-wood-1) 50%, var(--pt-wood-2));
}
/* the gold bud at the end of the branch */
.pt-vine::after {
    content: ''; position: absolute; left: calc(1.35rem - 5px); bottom: -.2rem; width: 15px; height: 20px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: radial-gradient(circle at 40% 35%, var(--pt-gold-3), var(--inv-accent) 60%, var(--pt-gold-1));
}
.pt-vine__step { position: relative; }
.pt-vine__step + .pt-vine__step { margin-top: 1rem; }
.pt-vine__leaves { position: absolute; left: -2.95rem; top: -.3rem; width: 2.6rem; height: 2.6rem; overflow: visible; }
.pt-vine__leaf--gold { fill: url(#pt-foil); }
.pt-vine__leaf--green { fill: var(--inv-leaf); }
.pt-vine__time {
    display: inline-block; margin: 0 0 -.1rem; padding: .18rem .7rem; border-radius: 999px 999px 999px 4px; position: relative; z-index: 1;
    font-family: var(--pt-heading); font-size: .82rem; font-weight: 600; letter-spacing: .04em; font-variant-numeric: tabular-nums;
    color: var(--inv-shine); background: var(--pt-wood);
}
.pt-vine__body { padding: .85rem 1rem .8rem; border-radius: 4px 14px 14px 14px; background: var(--pt-paper); box-shadow: inset 0 0 0 1px var(--pt-line), 0 12px 20px -16px rgb(0 0 0 / .5); }
.pt-vine__body h3 { margin: 0; font-size: .98rem; font-weight: 600; line-height: 1.35; color: var(--pt-title); }
.pt-vine__body p { margin: .15rem 0 0; font-size: .84rem; line-height: 1.45; color: var(--pt-muted); }

/* story: the rings of the family, photos in tall arches */
.pt-story__list { display: grid; gap: 0; max-width: 24rem; margin: 0 auto; padding: 0; list-style: none; }
.pt-story__item { position: relative; display: flex; flex-direction: column; align-items: center; }
.pt-story__item + .pt-story__item { margin-top: 3.2rem; }
/* between two moments: a short gold stem with a leaf */
.pt-story__item + .pt-story__item::before {
    content: ''; position: absolute; left: 50%; top: -2.8rem; width: 1.5px; height: 2.2rem; background: var(--inv-shine); opacity: .7;
}
.pt-story__item + .pt-story__item::after {
    content: ''; position: absolute; left: calc(50% + 1px); top: -2.2rem; width: .7rem; height: 1rem; border-radius: 0 100% 0 100%;
    background: var(--inv-leaf); rotate: -10deg;
}
.pt-story__when {
    position: relative; z-index: 2; display: grid; place-items: center; min-width: 4.2rem; height: 4.2rem; padding: 0 .5rem; margin-bottom: -2rem;
    border-radius: 999px; font-family: var(--pt-heading); font-size: .92rem; font-weight: 600; line-height: 1.1; letter-spacing: .02em;
    color: var(--inv-deep); background: radial-gradient(circle at 35% 30%, var(--pt-gold-3), var(--inv-accent) 55%, var(--pt-gold-1));
    box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--pt-gold-3) 70%, transparent), 0 0 0 4px var(--inv-deep), 0 10px 18px -8px rgb(0 0 0 / .6);
}
.pt-story__media {
    position: relative; width: 86%; aspect-ratio: 4 / 4.6; overflow: hidden; border-radius: 999px 999px 0 0;
    -webkit-mask: linear-gradient(180deg, #000 62%, transparent 98%); mask: linear-gradient(180deg, #000 62%, transparent 98%);
}
.pt-story__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: sepia(.12); }
/* the carved gold edge of the arch */
.pt-story__media::after { content: ''; position: absolute; inset: 6px; border-radius: 999px 999px 0 0; border: 1.5px solid color-mix(in srgb, var(--inv-shine) 75%, transparent); border-bottom: 0; pointer-events: none; }
.pt-story__body { position: relative; margin-top: -2.4rem; padding: 0 .4rem; }
.pt-story__item--text .pt-story__body { margin-top: 0; padding: 2.8rem 1.2rem 1.3rem; border-radius: 14px; background: var(--pt-wood); box-shadow: inset 0 0 0 5px var(--pt-wood-2), inset 0 0 0 6.5px color-mix(in srgb, var(--inv-accent) 75%, transparent), var(--pt-drop); }
.pt-story__body h3 { margin: 0; font-family: var(--pt-heading); font-weight: 500; font-size: 1.32rem; line-height: 1.2; letter-spacing: .03em; color: #fff8ea; text-wrap: balance; }
.pt-story__body p { margin: .45rem auto 0; max-width: 32ch; font-size: .9rem; line-height: 1.55; color: var(--pt-cream); }

/* gallery: carved teak frames with a gold inner line */
.pt-gallery .inv-gallery { gap: .8rem .75rem; padding: .2rem; }
.pt-gallery .inv-gallery__item {
    border: 5px solid var(--pt-wood-1); border-radius: 6px;
    box-shadow: inset 0 0 0 1.5px var(--inv-accent), 0 0 0 1px var(--pt-wood-2), 0 14px 22px -14px rgb(0 0 0 / .6);
}
.pt-gallery .inv-gallery__item img { outline: 1.5px solid color-mix(in srgb, var(--inv-accent) 85%, transparent); outline-offset: -5px; }
.pt-gallery .inv-gallery__item:first-child { grid-row: span 2; aspect-ratio: auto; }

/* live streaming: a carved panel */
.pt-panel {
    position: relative; max-width: 22rem; margin: 0 auto; padding: 1.8rem 1.3rem 1.5rem; border-radius: 16px; color: #fff8ea; background: var(--pt-wood);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12), inset 0 0 0 6px var(--pt-wood-2), inset 0 0 0 7.5px var(--inv-accent), var(--pt-drop);
}
.pt-panel::before {
    content: ''; position: absolute; inset: 8px; border-radius: 10px; pointer-events: none; background: var(--inv-shine); opacity: .07;
    -webkit-mask: var(--pt-kawung) center / 30px 30px repeat; mask: var(--pt-kawung) center / 30px 30px repeat;
}
.pt-stream__icon { position: relative; display: inline-grid; place-items: center; width: 3.3rem; height: 3.3rem; margin-bottom: .6rem; border-radius: 50%; color: var(--inv-deep); background: var(--pt-foil); box-shadow: 0 0 0 4px color-mix(in srgb, var(--inv-shine) 30%, transparent); }
.pt-stream__icon .pt-icon { width: 1.7rem; height: 1.7rem; }
.pt-stream__title { position: relative; margin: 0 0 .3rem; font-family: var(--pt-heading); font-weight: 500; font-size: 1.4rem; letter-spacing: .04em; line-height: 1.2; color: #fff8ea; }
.pt-stream__title em { font-family: var(--pt-script); font-style: normal; font-size: 1.5em; letter-spacing: 0; padding: 0 .08em .1em; }
.pt-panel p { position: relative; margin: 0 auto; max-width: 28ch; font-size: .88rem; color: var(--pt-cream); }
.pt-panel .pt-stream__note { margin-top: .35rem; font-weight: 600; color: var(--inv-shine); }
.pt-stream__button { position: relative; width: 100%; min-height: 2.8rem; margin-top: 1.1rem; font-weight: 600; }

/* RSVP: an ivory letter under a carved head */
.pt-letter { max-width: 25rem; margin: 0 auto; border-radius: 16px; overflow: hidden; background: var(--pt-paper); box-shadow: 0 26px 40px -22px rgb(0 0 0 / .8); }
.pt-letter__head {
    position: relative; padding: 2.4rem 1.2rem 1.1rem; color: #fff8ea; background: var(--pt-wood);
    box-shadow: inset 0 -1.5px 0 var(--inv-accent), inset 0 -5px 0 var(--pt-wood-2);
}
.pt-letter__crown { position: absolute; left: 50%; top: .55rem; width: 1.6rem; height: 2.1rem; translate: -50% 0; overflow: visible; }
.pt-letter__label { margin: .4rem 0 0; font-size: .62rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--inv-shine); }
.pt-letter__for { margin: .1rem 0 0; padding: 0 .1em .08em; font-family: var(--pt-script); font-size: 2rem; line-height: 1.08; word-spacing: .1em; overflow-wrap: anywhere; text-wrap: balance; }
.pt-letter__body { position: relative; padding: 1.4rem 1.15rem 1.4rem; color: var(--inv-text); }
.pt-letter__intro { margin: 0 auto 1.1rem; max-width: 30ch; font-size: .9rem; color: var(--pt-muted); }
.pt-letter__sent { margin-bottom: 1rem; }
.pt-seal {
    display: inline-grid; place-items: center; width: 4rem; height: 4rem; margin: .2rem 0 .5rem; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, var(--pt-gold-3), var(--inv-accent) 55%, var(--pt-gold-1));
    box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--pt-gold-3) 70%, transparent), inset 0 0 0 5px var(--pt-gold-1), 0 10px 18px -8px rgb(0 0 0 / .5);
}
.pt-seal svg { width: 2rem; height: 2rem; fill: color-mix(in srgb, var(--inv-leaf) 55%, var(--inv-deep)); overflow: visible; }
html.inv-anim .pt-letter__sent .pt-seal { animation: pt-stamp .55s cubic-bezier(.3, 1.4, .6, 1) both; }
.pt-letter__answer { margin: 0; font-family: var(--pt-heading); font-size: 1.15rem; font-weight: 500; letter-spacing: .03em; color: var(--pt-title); }
.pt-letter__line { margin: .2rem 0 0; font-size: .88rem; color: var(--pt-muted); }
.pt-rsvp .inv-rsvp__deadline { margin: 0 0 1rem; font-size: .84rem; font-weight: 600; color: var(--pt-gold-ink); }

/* gift ("Iuran & donasi"): ivory cards with a kawung band and a gold inner line */
.pt-gift__intro { color: var(--pt-cream); }
.pt-gift__treasurer { display: inline-flex !important; align-items: center; gap: .5rem; padding: .35rem .9rem; border-radius: 999px; font-size: .84rem; font-weight: 600; color: var(--inv-deep); background: var(--pt-foil); }
.pt-gift .inv-gift__accounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: 1.4rem; }
.pt-gift .inv-gift__account:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* narrow phones: one account per row, so long account numbers stay on one line */
@media (max-width: 380px) { .pt-gift .inv-gift__accounts { grid-template-columns: minmax(0, 1fr); } }
.pt-gift .inv-gift__account,
.pt-gift .inv-gift__address {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: .3rem; min-width: 0; margin: 0;
    padding: 1.6rem .75rem 1rem; border-radius: 12px; color: var(--inv-text); background: var(--pt-paper);
    box-shadow: inset 0 0 0 4px var(--pt-paper), inset 0 0 0 5.5px var(--inv-accent), 0 18px 28px -20px rgb(0 0 0 / .7);
    overflow: hidden;
}
.pt-gift .inv-gift__account::before, .pt-gift .inv-gift__address::before {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: .85rem; background: var(--inv-primary);
    -webkit-mask: var(--pt-kawung) center / 14px 14px repeat-x; mask: var(--pt-kawung) center / 14px 14px repeat-x;
}
.pt-gift .inv-gift__account p, .pt-gift .inv-gift__address p { margin: 0; }
.pt-gift .inv-gift__bank { font-weight: 600; font-size: .85rem; color: var(--pt-title); }
.pt-gift .inv-gift__logo { height: 1.6rem; padding: .2rem .5rem; border-radius: .4rem; background: #fff; }
.pt-gift .inv-gift__logo img { max-width: 5rem; }
.pt-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); }
.pt-gift .inv-gift__holder { font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--pt-muted); overflow-wrap: anywhere; }
.pt-gift .inv-button { margin-top: .35rem; min-height: 2.25rem; padding: .35rem .9rem; font-size: .74rem; font-weight: 600; color: #fff8ea; background: var(--pt-wood); box-shadow: inset 0 0 0 1px var(--inv-accent); }
.pt-gift .inv-gift__address { margin-top: .8rem; font-size: .875rem; }
.pt-gift .inv-gift__address .inv-gift__holder { font-size: .72rem; }

/* co-hosts: the interactive silsilah */
.pt-silsilah__intro { color: var(--pt-muted); margin-top: -.8rem !important; }
.pt-silsilah__tree { position: relative; max-width: 24rem; margin: 1.6rem auto 0; padding-top: 4.4rem; }
.pt-silsilah__crown { position: absolute; z-index: 2; left: 50%; top: 0; width: 3.4rem; translate: -50% 0; filter: drop-shadow(0 6px 8px rgb(0 0 0 / .3)); transition: filter 1s ease, opacity 1s ease; }
.pt-silsilah__crown svg { display: block; width: 100%; height: auto; overflow: visible; }
.pt-silsilah__trunk {
    position: absolute; z-index: 0; left: 50%; top: 4rem; bottom: 5.2rem; width: 12px; margin-left: -6px; border-radius: 6px;
    background: linear-gradient(90deg, var(--pt-wood-3), var(--pt-wood-1) 45%, var(--pt-wood-2));
}
/* the light rising in the trunk as it grows */
.pt-silsilah__trunk::before {
    content: ''; position: absolute; left: 4px; right: 4px; top: 0; bottom: 0; border-radius: 3px; transform-origin: 50% 100%;
    background: linear-gradient(180deg, var(--pt-gold-3), var(--inv-accent));
}
.pt-silsilah__list { position: relative; z-index: 1; display: flex; flex-direction: column-reverse; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.pt-branch { position: relative; display: flex; align-items: center; justify-content: flex-start; min-height: 4.4rem; }
.pt-branch--right { justify-content: flex-end; }
/* boughs on alternating sides overlap a little, so the crown reads as one tree */
.pt-branch:not(:first-child) { margin-bottom: -1.5rem; }
.pt-branch__bough { position: absolute; left: calc(50% - 1.9rem); top: calc(50% - .9rem); width: 1.9rem; height: 2.2rem; overflow: visible; }
.pt-branch--right .pt-branch__bough { left: 50%; scale: -1 1; }
.pt-branch__bough path { fill: none; stroke: var(--pt-wood-1); stroke-width: 4.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pt-branch__leaf {
    position: relative; display: flex; flex-direction: column; width: calc(50% - 1.5rem); padding: .65rem .8rem .7rem 1.6rem; text-align: left;
    border-radius: 1.8rem .4rem 1.8rem .4rem;
    background: linear-gradient(155deg, color-mix(in srgb, var(--inv-leaf) 24%, #fffdf3), color-mix(in srgb, var(--inv-leaf) 48%, #fffdf3));
    box-shadow: inset 0 0 0 1.5px var(--inv-accent), 0 10px 18px -12px rgb(0 0 0 / .45);
}
.pt-branch--right .pt-branch__leaf { padding: .65rem 1.6rem .7rem .8rem; text-align: right; border-radius: .4rem 1.8rem .4rem 1.8rem; }
/* the leaf's midrib */
.pt-branch__leaf::before { content: ''; position: absolute; left: .9rem; right: .9rem; top: 50%; height: 1px; background: color-mix(in srgb, var(--inv-leaf) 45%, transparent); opacity: .6; pointer-events: none; display: none; }
.pt-branch__mark { position: absolute; top: -.55rem; left: -.35rem; width: 1.4rem; height: 1.5rem; overflow: visible; fill: url(#pt-foil); rotate: -35deg; }
.pt-branch--right .pt-branch__mark { left: auto; right: -.35rem; rotate: 35deg; }
.pt-branch__no { font-size: .54rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--pt-gold-ink); }
.pt-branch__label { font-family: var(--pt-script); font-size: 1.25rem; line-height: 1; color: color-mix(in srgb, var(--inv-leaf) 30%, var(--inv-deep)); }
.pt-branch__name { font-family: var(--pt-serif); font-size: 1.08rem; font-weight: 600; line-height: 1.2; color: var(--pt-title); overflow-wrap: break-word; text-wrap: balance; }
.pt-silsilah__root { position: relative; display: block; width: 100%; margin: .3rem 0 0; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
.pt-silsilah__root:focus-visible { outline: 2px solid var(--inv-accent); outline-offset: 4px; border-radius: 14px; }
.pt-silsilah__roots { display: block; width: min(15rem, 70%); height: auto; margin: 0 auto; overflow: visible; }
.pt-silsilah__roots path { stroke: var(--pt-wood-1); stroke-width: 4; }
.pt-silsilah__plaque {
    position: relative; display: inline-flex; flex-direction: column; align-items: center; margin-top: -.2rem; padding: .6rem 1.4rem .65rem; border-radius: 12px;
    background: var(--pt-wood); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12), inset 0 0 0 5px var(--pt-wood-2), inset 0 0 0 6.5px var(--inv-accent), var(--pt-drop);
}
.pt-silsilah__plaque-label { font-size: .58rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--inv-shine); }
.pt-silsilah__plaque-name { padding: 0 .1em .08em; font-family: var(--pt-script); font-size: 1.75rem; line-height: 1.08; word-spacing: .1em; text-wrap: balance; }
.pt-silsilah__root .pt-tap { inset: 0 0 auto; height: 4rem; }
.pt-silsilah__root .pt-tap__ring { top: .7rem; }
.pt-silsilah__root .pt-tap__hand { top: .5rem; }
.pt-silsilah__root .pt-tap__label { top: .85rem; }
.pt-silsilah__count { margin: 1.4rem auto 0 !important; font-size: .7rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--pt-gold-ink); }

/* armed (JavaScript on, not grown yet): a pale outline of the tree waiting for the tap */
.pt-silsilah.is-armed .pt-branch__leaf { opacity: .38; filter: grayscale(.85); transform: scale(.94); }
.pt-silsilah.is-armed .pt-branch__bough path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.pt-silsilah.is-armed .pt-silsilah__trunk { opacity: .45; }
.pt-silsilah.is-armed .pt-silsilah__trunk::before { transform: scaleY(0); }
.pt-silsilah.is-armed .pt-silsilah__crown { opacity: .4; filter: grayscale(.9); }
.pt-silsilah.is-armed .pt-silsilah__count { opacity: 0; }
/* growing: the trunk lights upwards, each generation's bough draws and its leaf lights */
.pt-silsilah__trunk, .pt-silsilah__count { transition: opacity .8s ease; }
.pt-silsilah__trunk::before { transition: transform calc(.5s + var(--n) * .38s) cubic-bezier(.4, 0, .3, 1) .15s; }
.pt-branch__bough path { transition: stroke-dashoffset .5s ease-out calc(.3s + var(--i) * .38s); }
.pt-branch__leaf { transition: opacity .6s ease calc(.5s + var(--i) * .38s), filter .6s ease calc(.5s + var(--i) * .38s), transform .6s cubic-bezier(.34, 1.56, .64, 1) calc(.5s + var(--i) * .38s); }
.pt-silsilah__crown { transition-delay: calc(.6s + var(--n) * .38s); }
.pt-silsilah__count { transition-delay: calc(.9s + var(--n) * .38s); }
html.inv-anim .pt-silsilah.is-grown .pt-branch__leaf { animation: pt-leaf-glow 1.2s ease-out calc(.6s + var(--i) * .38s) both; }
html.inv-anim .pt-silsilah.is-grown .pt-silsilah__crown svg { animation: pt-crown-glow 1.6s ease-out calc(.6s + var(--n) * .38s) both; }

/* contacts: ivory rows with a gunungan-shaped gold initial */
.pt-contacts__list { display: grid; gap: .75rem; max-width: 24rem; margin: 0 auto; }
.pt-contact {
    display: grid; grid-template-columns: 2.9rem minmax(0, 1fr) auto; align-items: center; gap: .8rem; padding: .65rem .65rem .65rem .75rem; border-radius: 16px;
    color: var(--inv-text); background: var(--pt-paper); text-align: left; box-shadow: inset 0 0 0 3px var(--pt-paper), inset 0 0 0 4.5px var(--inv-accent), 0 18px 26px -18px rgb(0 0 0 / .7);
}
.pt-contact__avatar {
    display: grid; place-items: center; width: 2.9rem; height: 3.3rem; padding-top: .5rem;
    font-family: var(--pt-heading); font-weight: 600; font-size: 1.25rem; color: var(--inv-deep); background: var(--pt-foil);
    clip-path: path('M23.2 0C31 8 44 22 46 34C47.5 44 44 50 41 53H5.4C2.4 50-1 44 .4 34C2.4 22 15.4 8 23.2 0Z');
}
.pt-contact p { margin: 0; }
.pt-contact__name { font-weight: 600; font-size: .95rem; line-height: 1.3; color: var(--pt-title); overflow-wrap: anywhere; }
.pt-contact__role { font-size: .78rem; color: var(--pt-muted); }
.pt-contact__phone { font-size: .85rem; }
.pt-contact__button { min-height: 2.5rem; padding: .45rem .95rem; font-size: .8rem; font-weight: 600; color: #fff8ea; background: color-mix(in srgb, var(--inv-leaf) 45%, var(--inv-deep)); }
.pt-contact__button .pt-icon { width: 1.05rem; height: 1.05rem; }

/* health protocol */
.pt-protocol__list { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.pt-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(--pt-paper); box-shadow: inset 0 0 0 1.5px var(--pt-line); }
.pt-protocol__list .pt-icon { width: 1rem; height: 1rem; color: color-mix(in srgb, var(--inv-leaf) 60%, var(--inv-deep)); }
.pt-protocol__note { font-size: .88rem; color: var(--pt-muted); }

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

/* closing: the photo under a wide arch, melting into the deep colour */
.pt-closing { padding: 3rem 1.6rem 2.6rem; }
.pt-closing--photo { padding-top: 1.4rem; }
.pt-closing__photo {
    position: relative; z-index: -1; height: min(86vw, 22rem); margin: 0 -.2rem; overflow: hidden; border-radius: 999px 999px 0 0;
    -webkit-mask: linear-gradient(180deg, #000 0, #000 50%, rgb(0 0 0 / .5) 74%, transparent 100%); mask: linear-gradient(180deg, #000 0, #000 50%, rgb(0 0 0 / .5) 74%, transparent 100%);
}
.pt-closing__photo img { display: block; width: 100%; height: calc(100% + 60px); margin-top: -30px; object-fit: cover; object-position: 50% 25%; --inv-parallax: 30px; }
.pt-closing__photo::after { content: ''; position: absolute; inset: 7px 7px 0; border-radius: 999px 999px 0 0; border: 1.5px solid color-mix(in srgb, var(--inv-shine) 70%, transparent); border-bottom: 0; pointer-events: none; }
.pt-closing__body { position: relative; }
.pt-closing--photo .pt-closing__body { margin-top: -3.6rem; }
.pt-closing__crown { display: block; width: 2.6rem; height: 3.4rem; margin: 0 auto .5rem; overflow: visible; filter: drop-shadow(0 4px 6px rgb(0 0 0 / .45)); }
.pt-closing__eyebrow { margin: 0 0 .2rem; font-size: .68rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--inv-shine); }
.pt-closing__title { margin: 0 0 .6rem; font-family: var(--pt-heading); font-weight: 500; font-size: 1.8rem; letter-spacing: .05em; line-height: 1.1; color: #fff8ea; }
.pt-closing__title em { display: inline-block; padding: 0 .08em .1em; font-family: var(--pt-script); font-style: normal; font-size: 1.55em; letter-spacing: 0; line-height: .9; }
.pt-closing__message { margin: 0 auto; max-width: 32ch; font-size: .92rem; line-height: 1.6; color: var(--pt-cream); }
.pt-closing__salam { margin: .7rem auto 0; max-width: 26ch; font-family: var(--pt-serif); font-size: 1.1rem; font-style: italic; line-height: 1.35; color: var(--inv-shine); }
.pt-closing__signature { margin: .35rem auto 0; max-width: 30ch; font-size: .84rem; color: var(--pt-cream); }
.pt-closing__divider { margin: .9rem auto .1rem; }
.pt-closing__name { margin: 0 auto; max-width: 100%; padding: 0 .1em .1em; font-family: var(--pt-script); font-size: 2.45rem; line-height: 1.05; word-spacing: .1em; text-wrap: balance; overflow-wrap: anywhere; }

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

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

/* wishes: the "buku trah" — an ivory page with a teak spine, the wishes as cards with a gold leaf mark */
.pt-wishes .inv-wishes { --inv-wishes-height: 20rem; }
.pt-wishes .inv-form {
    position: relative; padding: 1.4rem 1.1rem 1.3rem 1.9rem; border-radius: 6px 14px 14px 6px;
    background: linear-gradient(90deg, var(--pt-wood-1) 0 10px, var(--inv-accent) 10px 11.5px, transparent 11.5px), var(--pt-paper);
    box-shadow: inset 0 0 0 1px var(--pt-line), var(--pt-drop);
}
.pt-wishes .inv-wishes__list { margin-top: 1.5rem; }
.pt-wishes .inv-wishes:not(.inv-wishes--paged) .inv-wishes__list { padding: .55rem; border-radius: 16px; background: color-mix(in srgb, #fff 40%, transparent); box-shadow: inset 0 0 0 1px var(--pt-line); }
.pt-wishes .inv-wish { position: relative; padding: .75rem .9rem .75rem 1.1rem; border-radius: 4px 12px 12px 4px; background: var(--pt-paper); text-align: left; box-shadow: 0 2px 10px rgb(0 0 0 / .05); border-left: 3px solid var(--inv-accent); }
.pt-wishes .inv-wish__name { font-weight: 600; color: var(--pt-title); }
.pt-wishes .inv-wish__message { font-size: .88rem; line-height: 1.5; }
.pt-wishes .inv-wish__time { font-size: .72rem; color: var(--pt-muted); opacity: 1; }

/* ---------- 7. shared components ---------- */
.pt-main .inv-button { font-weight: 600; }
body .inv-nav {
    --inv-nav-bg: color-mix(in srgb, var(--inv-background) 95%, transparent);
    --inv-nav-text: color-mix(in srgb, var(--inv-text) 74%, transparent);
    --inv-nav-active: var(--pt-title);
    font-family: var(--pt-sans);
}
.pt-main ~ .inv-music__space { background: var(--inv-deep); }
.pt-main ~ .pt-branding ~ .inv-music__space { background: var(--inv-end-bg, var(--inv-deep)); }

/* ---------- 8. screen sizes ---------- */
@media (max-height: 760px) {
    .pt-cover { --pt-win-w: 192px; --pt-win-h: 222px; --pt-frame: 11px; }
    .pt-cover__inner { padding-top: 1.1rem; padding-bottom: 1.4rem; }
    .pt-cover__art { padding-top: 46px; margin-bottom: .9rem; }
    .pt-gebyok__crown { top: -50px; width: 48px; }
    .pt-cover__ketupat { top: 72px; width: 30px; height: 45px; }
    .pt-cover__ketupat--right { top: 90px; }
    .pt-cover__name { font-size: 2.4rem; }
    .pt-cover__quote { font-size: .96rem; }
    .pt-cover__guest { margin-top: .65rem; }
    .pt-cover__open { margin-top: .75rem; }
}
@media (max-height: 700px) {
    .pt-cover { --pt-win-w: 178px; --pt-win-h: 206px; --pt-frame: 10px; }
    .pt-cover__title { font-size: .74rem; }
    .pt-cover__medal { width: 3.5rem; height: 3.5rem; right: -20px; }
    .pt-cover__medal strong { font-size: 1.25rem; }
    .pt-cover__medal span { font-size: .44rem; }
    .pt-cover__name { font-size: 2.2rem; }
    .pt-cover__quote { font-size: .9rem; line-height: 1.28; }
    .pt-plaque { padding: .42rem 1rem .48rem; }
    .pt-plaque__name { font-size: 1.02rem; }
    .pt-cover__open { min-height: 2.8rem; padding: .6rem 1.7rem; }
}
@media (max-height: 660px) {
    .pt-cover { --pt-win-w: 160px; --pt-win-h: 182px; }
    .pt-cover__inner { padding-top: .8rem; padding-bottom: 1.2rem; }
    .pt-cover__art { padding-top: 40px; margin-bottom: .7rem; }
    .pt-gebyok__crown { top: -44px; width: 42px; }
    .pt-gebyok__monogram { font-size: .7rem; }
    .pt-cover__ketupat { top: 60px; width: 26px; height: 39px; }
    .pt-cover__ketupat--right { top: 76px; }
    .pt-cover__name { font-size: 2rem; }
    .pt-cover__batch { font-size: .6rem; }
    .pt-cover__date { font-size: .8rem; margin-top: .2rem; }
    .pt-cover__quote { font-size: .84rem; margin-top: .25rem; }
    .pt-cover__guest { margin-top: .55rem; }
    .pt-cover__open { margin-top: .65rem; min-height: 2.7rem; }
}
@media (max-height: 600px) {
    .pt-cover { --pt-win-w: 140px; --pt-win-h: 156px; --pt-frame: 9px; }
    .pt-cover__name { font-size: 1.8rem; }
    .pt-cover__quote { font-size: .8rem; line-height: 1.24; }
}

/* wide screens: the phone-width column on a deep backdrop with the kawung ground */
@media (min-width: 560px) {
    body.pt-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.pt-body::before {
        content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--inv-shine); opacity: .08;
        -webkit-mask: var(--pt-kawung) center / 40px 40px repeat; mask: var(--pt-kawung) center / 40px 40px repeat;
    }
    .pt-main { box-shadow: 0 30px 60px -30px rgb(0 0 0 / .6); }
}

/* ---------- 9. motion ---------- */
@keyframes pt-shine { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes pt-breathe { 0%, 100% { opacity: .75; scale: .94; } 50% { opacity: 1; scale: 1.04; } }
@keyframes pt-kenburns { from { transform: scale(1.02); } to { transform: scale(1.1) translateY(-1.5%); } }
@keyframes pt-rise { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
@keyframes pt-zoom-out { from { scale: 1.14; } to { scale: 1; } }
@keyframes pt-drop { from { opacity: 0; translate: -50% -26px; } to { opacity: 1; translate: -50% 0; } }
@keyframes pt-swing-in { 0% { opacity: 0; rotate: -38deg; } 55% { opacity: 1; rotate: 12deg; } 78% { rotate: -5deg; } 100% { opacity: 1; rotate: 0deg; } }
@keyframes pt-sway { 0%, 100% { rotate: -4deg; } 50% { rotate: 4deg; } }
@keyframes pt-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pt-pop { 0% { opacity: 0; scale: .4; } 70% { opacity: 1; scale: 1.1; } 100% { opacity: 1; scale: 1; } }
@keyframes pt-stamp { 0% { opacity: 0; scale: 1.8; } 70% { opacity: 1; scale: .94; } 100% { opacity: 1; scale: 1; } }
@keyframes pt-ping { 0% { opacity: .9; transform: scale(.55); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes pt-tap { 0%, 100% { transform: translate(0, 0) scale(1); } 45% { transform: translate(-3px, -5px) scale(.92); } }
@keyframes pt-leaf-glow { 0% { box-shadow: inset 0 0 0 1.5px var(--inv-accent), 0 0 0 0 color-mix(in srgb, var(--inv-shine) 85%, transparent); } 100% { box-shadow: inset 0 0 0 1.5px var(--inv-accent), 0 0 0 16px transparent; } }
@keyframes pt-crown-glow { 0% { filter: drop-shadow(0 0 0 transparent); } 40% { filter: drop-shadow(0 0 16px var(--inv-shine)); } 100% { filter: drop-shadow(0 0 5px color-mix(in srgb, var(--inv-shine) 60%, transparent)); } }
@keyframes pt-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pt-grow-up { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* gold foil: a slow moving shine */
html.inv-anim :is(.pt-heading__title em, .pt-cover__title span, .pt-cover__name, .pt-kop__name, .pt-closing__name, .pt-closing__title em, .pt-cover__open, .pt-tap__label, .pt-letter__for, .pt-silsilah__plaque-name, .pt-cloth__theme) { animation: pt-shine 7s ease-in-out infinite; }

/* cover (≤ 2.5 s, once): the light swells, the tree rises in, the frame rises with its photo settling, the crown
   drops on, the ketupat swing in and keep swaying; the text follows through its inv-enter delays */
html.inv-anim .pt-cover__glow { animation: pt-breathe 6s ease-in-out infinite; }
html.inv-anim .pt-cover__tree { animation: pt-fade 1.2s ease .1s both; }
html.inv-anim .pt-cover__tree .pt-tree__leaf { animation: pt-fade .6s ease both; animation-delay: calc(.35s + var(--i) * .12s); }
html.inv-anim .pt-gebyok { animation: pt-rise .9s cubic-bezier(.2, .7, .2, 1) .1s both; }
html.inv-anim .pt-gebyok__photo { animation: pt-zoom-out 1.3s cubic-bezier(.2, .7, .2, 1) .1s both, pt-kenburns 16s ease-in-out 1.4s infinite alternate; }
html.inv-anim .pt-gebyok__crown { animation: pt-drop .7s cubic-bezier(.2, .8, .3, 1.1) .7s both; }
html.inv-anim .pt-cover__medal { animation: pt-pop .5s cubic-bezier(.34, 1.56, .64, 1) 1.05s both; }
html.inv-anim .pt-cover__ketupat--left { animation: pt-swing-in 1.1s ease-out .8s both, pt-sway 4.2s ease-in-out 1.9s infinite; }
html.inv-anim .pt-cover__ketupat--right { animation: pt-swing-in 1.1s ease-out .95s both, pt-sway 4.6s ease-in-out 2.05s infinite reverse; }

/* countdown ketupat sway on their strings */
html.inv-anim .pt-takbir__ketupat { animation: pt-sway 4.4s ease-in-out infinite; }
html.inv-anim .pt-takbir__ketupat--2 { animation-duration: 5.2s; animation-direction: reverse; }
html.inv-anim .pt-takbir__glow { animation: pt-breathe 5s ease-in-out infinite; }

/* rundown: the branch grows as it scrolls in (the default, without support, is the finished branch) */
@supports (animation-timeline: view()) {
    html.inv-anim .pt-vine::before { animation: pt-grow-up linear both; animation-timeline: view(); animation-range: entry 15% cover 55%; }
}

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

@media (prefers-reduced-motion: reduce) {
    .pt-cover, .pt-cover--leave, .pt-cover__inner { transition: none; }
    .pt-silsilah *, .pt-silsilah *::before { transition: none !important; }
}

/* ---------- 10. intro scene "Pohon Trah" (scene.json + sections/_scene) ----------
   The intro is teleported to <body>: everything here stands on its own classes. The tree grows by its own CSS,
   timed to the scene: roots .2–1.2 s, trunk 1.0–2.2 s, boughs 1.8–3.4 s, leaves 2.6–4.2 s, ketupat 3.2–4.4 s. */
.pt-scene-tree { position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: center; }
.inv-scene__art > .pt-scene-tree > svg { width: 100%; height: 100%; }
html.inv-anim .pt-scene-tree .pt-tree__roots path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: pt-draw 1s ease-out .2s forwards; }
html.inv-anim .pt-scene-tree .pt-tree__trunk { transform-box: fill-box; transform-origin: 50% 100%; animation: pt-grow-up 1.2s cubic-bezier(.3, 0, .2, 1) .9s both; }
html.inv-anim .pt-scene-tree .pt-tree__carving path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: pt-draw 1s ease-out 1.9s forwards; }
html.inv-anim .pt-scene-tree .pt-tree__branches path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: pt-draw 1.1s cubic-bezier(.3, 0, .3, 1) 1.8s forwards; }
html.inv-anim .pt-scene-tree .pt-tree__branches path:nth-child(n + 6) { animation-delay: 2.4s; }
html.inv-anim .pt-scene-tree .pt-tree__branches path:nth-child(n + 10) { animation-delay: 2.8s; }
html.inv-anim .pt-scene-tree .pt-tree__leaf { opacity: 0; animation: pt-fade .5s ease forwards; animation-delay: calc(2.5s + (5 - var(--i)) * .32s); }
html.inv-anim .pt-scene-tree .pt-tree__ketupat { transform-box: fill-box; transform-origin: 50% 0; animation: pt-swing-in 1.2s ease-out 3.3s both; }
html.inv-anim .pt-scene-tree .pt-tree__ketupat--right { animation-delay: 3.5s; }
.pt-scene-moon, .pt-scene-joglo { position: absolute; inset: 0; display: grid; place-items: center; }
.inv-scene__art > .pt-scene-moon > svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 14px color-mix(in srgb, var(--inv-shine) 70%, transparent)); }
.inv-scene__art > .pt-scene-joglo > svg { width: 100%; height: 100%; filter: drop-shadow(0 0 18px color-mix(in srgb, var(--inv-shine) 25%, transparent)); }
.pt-scene-joglo .pt-joglo__roof-low, .pt-scene-joglo .pt-joglo__roof-mid, .pt-scene-joglo .pt-joglo__roof-top { fill: color-mix(in srgb, var(--pt-wood-3) 80%, var(--inv-accent)); }
@media (prefers-reduced-motion: reduce) {
    .pt-scene-tree * { animation: none !important; opacity: 1; stroke-dashoffset: 0; }
}

/* the name card: a carved ivory plaque with a gold inner line and a gunungan-like peak */
body.pt-body .inv-intro--scene .inv-scene__card {
    top: 66%; aspect-ratio: auto; -webkit-mask: none; mask: none; -webkit-backdrop-filter: none; backdrop-filter: none;
    padding: 1.5rem 1.2rem 1.4rem; border-radius: 16px; background: var(--pt-paper);
    box-shadow: inset 0 0 0 5px var(--pt-paper), inset 0 0 0 6.5px var(--inv-accent), 0 0 0 4px var(--pt-wood-1), 0 0 0 5.5px color-mix(in srgb, var(--inv-accent) 70%, transparent), 0 26px 40px -14px rgb(0 0 0 / .8);
}
body.pt-body .inv-scene__card .inv-intro__label { justify-self: center; font-family: var(--pt-heading); font-size: .7rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--pt-gold-ink); }
body.pt-body .inv-scene__card .inv-intro__names {
    font-family: var(--pt-script) !important; font-weight: 400; font-size: clamp(2.3rem, 10.5vw, 3rem); line-height: 1.05; word-spacing: .1em; color: var(--pt-title);
    overflow-wrap: anywhere; text-wrap: balance;
}
body.pt-body .inv-scene__card .inv-intro__rule { height: 2px; width: 3rem; background: linear-gradient(90deg, transparent, var(--inv-accent), transparent); }
body.pt-body .inv-scene__card .inv-intro__date { font-family: var(--pt-sans); font-weight: 500; font-size: .84rem; letter-spacing: .04em; color: var(--pt-title); }
@media (min-aspect-ratio: 10 / 19) {
    body.pt-body .inv-intro--scene .inv-scene__card { top: 70%; padding: 1.1rem 1rem 1.05rem; }
    body.pt-body .inv-scene__card .inv-intro__names { font-size: clamp(2rem, 9vw, 2.6rem); }
}
