/*
 * Template "Ketupat Geometri" (Reuni & Halal Bihalal) — a corporate halal bihalal, modern and premium: deep sapphire,
 * gold foil, a fresh mint and warm ivory; geometric and crisp. Signature pieces: the low-poly ketupat (sections/_ketupat,
 * .kg-kt), the eight-point star tessellation (.kg-tess, a CSS mask so it takes the variant colour), the eight-point
 * star (sections/_star), the low-poly crescent (sections/_crescent), cut-corner cards (.kg-chamfer / .kg-cut), the
 * gem photo frame (.kg-gem), the ID card on a lanyard (cover, RSVP), the corporate letterhead (organizer) and the
 * flipping greeting cards "Kartu Salam" (co_hosts, .kg-flip). Mobile-first, one column (~460px) on a deep backdrop on
 * wide screens.
 *
 * Colours come from the chosen colour variant (template.json → <x-inv.head>):
 *   --inv-primary (sapphire: titles, buttons, bands)   --inv-accent (mint: fresh edges, the ketupat's green family)
 *   --inv-background (ivory)   --inv-text   --inv-deep (dark bands)   --inv-shine (gold on dark, foil, the ketupat's
 *   gold family)   --inv-gold (darker gold for lines and foil on light grounds)   --inv-soft (mint tint)
 * Fonts: the client's pair (--inv-font-heading = titles, --inv-font-display = script accents) + Outfit (reading text).
 *
 * Section tones (set on each section in its partial): .kg-tone--light (ivory + a fine grid), --soft (mint tint +
 * grid), --deep (sapphire night with the tessellation in its own <span class="kg-tess">).
 *
 * Motion only runs with html.inv-anim (set by <x-inv.head> unless the guest prefers reduced motion); 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 "Safir Emas" variant (the variant's colours override these) */
    --inv-primary: #1f4fb8;
    --inv-accent: #3fcfa4;
    --inv-background: #fbf8f0;
    --inv-text: #121a33;
    --inv-deep: #0a1a45;
    --inv-shine: #f1c75b;
    --inv-gold: #9c7418;
    --inv-soft: #dff5ee;
    --inv-radius: 12px;

    --kg-head: var(--inv-font-heading, 'Bodoni Moda'), 'Didot', Georgia, 'Times New Roman', serif;
    --kg-script: var(--inv-font-display, 'Imperial Script'), 'Brush Script MT', cursive;
    --kg-sans: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --kg-col: 460px;
    --kg-ivory: color-mix(in srgb, #fff 55%, var(--inv-background));
    --kg-title: color-mix(in srgb, var(--inv-primary) 62%, var(--inv-deep));
    --kg-muted: color-mix(in srgb, var(--inv-text) 74%, var(--inv-background));
    --kg-cream: color-mix(in srgb, var(--inv-background) 84%, transparent);
    --kg-line: color-mix(in srgb, var(--inv-primary) 16%, transparent);
    --kg-gold-line: color-mix(in srgb, var(--inv-shine) 70%, var(--inv-gold));
    --kg-mint: color-mix(in srgb, var(--inv-accent) 80%, #fff);
    /* gold foil: on dark grounds, and a deeper one that stays readable on ivory */
    --kg-foil: linear-gradient(100deg, var(--inv-gold), var(--inv-shine) 28%, color-mix(in srgb, var(--inv-shine) 45%, #fff) 50%, var(--inv-shine) 72%, var(--inv-gold));
    /* foil for thin text on dark grounds: no dark ends */
    --kg-foil-text: linear-gradient(100deg, color-mix(in srgb, var(--inv-shine) 80%, #fff), var(--inv-shine) 30%, color-mix(in srgb, var(--inv-shine) 30%, #fff) 50%, var(--inv-shine) 70%, color-mix(in srgb, var(--inv-shine) 80%, #fff));
    --kg-foil-ink: linear-gradient(100deg, color-mix(in srgb, var(--inv-gold) 72%, var(--inv-text)), var(--inv-gold) 30%, color-mix(in srgb, var(--inv-gold) 70%, var(--inv-shine)) 50%, var(--inv-gold) 70%, color-mix(in srgb, var(--inv-gold) 72%, var(--inv-text)));
    /* the eight-point star tessellation tile (a mask: it takes the colour of the element) */
    --kg-tess-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23000' stroke-width='1'%3E%3Cpath d='M20 20h24v24H20zM32 15l17 17-17 17-17-17z'/%3E%3Cpath d='M32 0v15M32 49v15M0 32h15M49 32h15M0 0l20 20M64 0 44 20M0 64l20-20M64 64 44 44'/%3E%3Ccircle cx='32' cy='32' r='5'/%3E%3C/svg%3E");
    --kg-drop: 0 24px 40px -24px color-mix(in srgb, var(--inv-deep) 75%, transparent);

    --inv-ambient-1: var(--inv-shine);
    --inv-ambient-2: var(--inv-accent);
}

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

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

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

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

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

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

.kg-arabic { font-family: 'Amiri', 'Traditional Arabic', serif; line-height: 1.9; color: var(--inv-primary); }

/* ---------- 2. section tones ---------- */
.kg-tone--light {
    background:
        radial-gradient(60% 24% at 100% 0%, color-mix(in srgb, var(--inv-shine) 20%, transparent), transparent 75%),
        radial-gradient(60% 24% at 0% 100%, color-mix(in srgb, var(--inv-accent) 18%, transparent), transparent 75%),
        linear-gradient(90deg, color-mix(in srgb, var(--inv-primary) 5%, transparent) 1px, transparent 1px) 0 0 / 28px 28px,
        linear-gradient(0deg, color-mix(in srgb, var(--inv-primary) 5%, transparent) 1px, transparent 1px) 0 0 / 28px 28px,
        var(--inv-background);
}
.kg-tone--soft {
    background:
        radial-gradient(80% 30% at 50% 0%, color-mix(in srgb, #fff 55%, transparent), transparent 75%),
        linear-gradient(90deg, color-mix(in srgb, var(--inv-primary) 5%, transparent) 1px, transparent 1px) 0 0 / 28px 28px,
        linear-gradient(0deg, color-mix(in srgb, var(--inv-primary) 5%, transparent) 1px, transparent 1px) 0 0 / 28px 28px,
        linear-gradient(180deg, var(--inv-soft), color-mix(in srgb, var(--inv-soft) 45%, var(--inv-background)));
}
.kg-tone--deep {
    color: var(--inv-background);
    background:
        radial-gradient(90% 40% at 15% 0%, color-mix(in srgb, var(--inv-primary) 80%, transparent), transparent 75%),
        radial-gradient(70% 30% at 90% 100%, color-mix(in srgb, var(--inv-accent) 18%, transparent), transparent 75%),
        var(--inv-deep);
}
.kg-tone--deep a:not(.inv-button) { color: var(--inv-shine); }
.kg-tone--deep .kg-arabic { color: var(--inv-shine); }

/* the tessellation (an empty span in the section, or anywhere positioned): gold lines, faint behind the content in
   the middle and clearer towards the edges, like a frame */
.kg-tess {
    position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--inv-shine); opacity: .11;
    -webkit-mask: var(--kg-tess-tile) 50% 0 / 64px 64px repeat, radial-gradient(80% 60% at 50% 45%, rgb(0 0 0 / .18) 30%, #000 100%);
    -webkit-mask-composite: source-in;
    mask: var(--kg-tess-tile) 50% 0 / 64px 64px repeat, radial-gradient(80% 60% at 50% 45%, rgb(0 0 0 / .18) 30%, #000 100%);
    mask-composite: intersect;
}

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

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

/* section heading: an eight-point star between two gold rules, the eyebrow, the serif title, the script word in foil */
.kg-heading { margin: 0 0 2.2rem; }
.kg-heading__mark { display: flex; align-items: center; justify-content: center; gap: .65rem; margin: 0 0 .7rem; color: var(--inv-gold); }
.kg-heading__mark::before, .kg-heading__mark::after { content: ''; width: 2.6rem; height: 1px; background: linear-gradient(90deg, transparent, var(--kg-gold-line)); }
.kg-heading__mark::after { background: linear-gradient(90deg, var(--kg-gold-line), transparent); }
.kg-heading__star { width: 1.35rem; height: 1.35rem; stroke-width: 1.6; }
.kg-star__core { fill: color-mix(in srgb, var(--inv-shine) 55%, transparent); }
.kg-heading__eyebrow {
    margin: 0 0 .5rem; font-size: .7rem; font-weight: 600; line-height: 1.3; letter-spacing: .28em; text-transform: uppercase; color: var(--inv-primary);
}
.kg-heading__title {
    margin: 0; font-family: var(--kg-head); font-size: 2.3rem; font-weight: 500; line-height: 1.1;
    letter-spacing: -.01em; color: var(--kg-title); text-wrap: balance;
}
.kg-heading__title em {
    display: inline-block; padding: 0 .16em .08em .1em; font-family: var(--kg-script); font-style: normal; font-weight: 400; font-size: 1.32em;
    line-height: .9; letter-spacing: 0; word-spacing: .12em;
    background: var(--kg-foil-ink); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
}
.kg-tone--deep .kg-heading__mark { color: var(--inv-shine); }
.kg-tone--deep .kg-heading__eyebrow { color: var(--kg-mint); }
.kg-tone--deep .kg-heading__title { color: #fff; }
.kg-tone--deep .kg-heading__title em { background-image: var(--kg-foil-text); -webkit-text-stroke: .5px color-mix(in srgb, var(--inv-shine) 70%, transparent); }

.kg-icon { width: 1.15rem; height: 1.15rem; flex: none; }

/* the low-poly ketupat: two woven families (accent, gold) shaded light → dark, light seams, weave, rim, tails, cord */
.kg-kt, .kg-moon, .kg-star { display: block; overflow: visible; }
.kg-kt__f { stroke: color-mix(in srgb, #fff 60%, var(--inv-shine)); stroke-width: .45; stroke-opacity: .6; stroke-linejoin: round; }
.kg-kt__f--a1 { fill: color-mix(in srgb, var(--inv-accent) 42%, #fff); }
.kg-kt__f--a2 { fill: color-mix(in srgb, var(--inv-accent) 70%, #fff); }
.kg-kt__f--a3 { fill: var(--inv-accent); }
.kg-kt__f--a4 { fill: color-mix(in srgb, var(--inv-accent) 82%, var(--inv-primary)); }
.kg-kt__f--a5 { fill: color-mix(in srgb, var(--inv-accent) 62%, var(--inv-primary)); }
.kg-kt__f--a6 { fill: color-mix(in srgb, var(--inv-accent) 46%, var(--inv-deep)); }
.kg-kt__f--a7 { fill: color-mix(in srgb, var(--inv-accent) 30%, var(--inv-deep)); }
.kg-kt__f--g1 { fill: color-mix(in srgb, var(--inv-shine) 40%, #fff); }
.kg-kt__f--g2 { fill: color-mix(in srgb, var(--inv-shine) 72%, #fff); }
.kg-kt__f--g3 { fill: var(--inv-shine); }
.kg-kt__f--g4 { fill: color-mix(in srgb, var(--inv-shine) 74%, var(--inv-gold)); }
.kg-kt__f--g5 { fill: color-mix(in srgb, var(--inv-shine) 45%, var(--inv-gold)); }
.kg-kt__f--g6 { fill: var(--inv-gold); }
.kg-kt__f--g7 { fill: color-mix(in srgb, var(--inv-gold) 72%, var(--inv-deep)); }
.kg-kt__weave line { stroke: rgb(255 255 255 / .42); stroke-width: .7; stroke-linecap: round; }
.kg-kt__rim { fill: none; stroke: var(--inv-shine); stroke-width: 1.3; stroke-linejoin: round; }
.kg-kt__cord { fill: none; stroke: var(--inv-shine); stroke-width: 1.3; stroke-linecap: round; }
.kg-kt__glint { fill: #fff; }
.kg-moon__star { fill: #fff; }
.kg-moon { filter: drop-shadow(0 6px 10px color-mix(in srgb, var(--inv-deep) 40%, transparent)); }

/* the monogram diamond: a gold-rimmed square turned 45° */
.kg-diamond {
    --d: 2.5rem;
    display: inline-grid; place-items: center; width: var(--d); height: var(--d); flex: none; rotate: 45deg;
    border: 1.5px solid var(--inv-shine); border-radius: 3px; background: linear-gradient(135deg, var(--inv-primary), var(--inv-deep));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--inv-deep) 60%, transparent), 0 0 0 4px color-mix(in srgb, var(--inv-shine) 45%, transparent);
}
.kg-diamond > span {
    rotate: -45deg; font-family: var(--kg-head); font-weight: 600; font-size: calc(var(--d) * .38); line-height: 1; white-space: nowrap; color: var(--inv-shine);
}

/* cut-corner card with a gold rim: the outer box is the rim, the inner one the card */
.kg-chamfer {
    --cut: 16px;
    position: relative; padding: 1.5px; background: linear-gradient(135deg, var(--inv-shine), var(--inv-gold) 45%, var(--inv-shine) 70%, var(--inv-gold));
    clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
}
.kg-chamfer__inner {
    position: relative; isolation: isolate; overflow: hidden; background: #fff;
    clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
}
.kg-chamfer--deep .kg-chamfer__inner { color: var(--inv-background); background: radial-gradient(90% 60% at 20% 0%, color-mix(in srgb, var(--inv-primary) 80%, transparent), transparent 75%), var(--inv-deep); }
.kg-chamfer--deep .kg-chamfer__inner .kg-tess { opacity: .2; }
.kg-cut {
    --cut: 14px;
    clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
}

/* the gem photo frame: a tall hexagon with the corners cut like a ketupat, a faceted gold rim */
.kg-gem {
    --gem-h: 300px;
    --gem: polygon(50% 0, 100% 14%, 100% 86%, 50% 100%, 0 86%, 0 14%);
    position: relative; z-index: 1; width: calc(var(--gem-h) * .8); height: var(--gem-h); margin: 0; padding: 5px;
    clip-path: var(--gem);
    background: conic-gradient(from 200deg, color-mix(in srgb, var(--inv-shine) 40%, #fff), var(--inv-gold), var(--inv-shine), color-mix(in srgb, var(--inv-gold) 70%, var(--inv-deep)), var(--inv-shine), color-mix(in srgb, var(--inv-shine) 40%, #fff));
}
.kg-gem__window { position: relative; width: 100%; height: 100%; overflow: hidden; clip-path: var(--gem); background: var(--inv-deep); }
.kg-gem__photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.kg-gem__empty {
    position: absolute; inset: 0; display: grid; place-items: center;
    background: radial-gradient(70% 45% at 50% 55%, color-mix(in srgb, var(--inv-accent) 30%, transparent), transparent 72%), linear-gradient(180deg, var(--inv-primary), var(--inv-deep));
}
.kg-gem__ketupat { width: 46%; }

/* the ID card on a lanyard (guest box) */
.kg-idcard { position: relative; width: min(100%, 18.5rem); padding-top: 1.05rem; text-align: left; }
.kg-idcard__strap {
    position: absolute; top: 0; left: 50%; width: 4.4rem; height: 1.25rem; translate: -50% 0;
    background: repeating-linear-gradient(90deg, var(--inv-accent) 0 5px, color-mix(in srgb, var(--inv-accent) 70%, var(--inv-primary)) 5px 7px);
    clip-path: polygon(0 0, 22% 0, 50% 72%, 78% 0, 100% 0, 57% 100%, 43% 100%);
}
.kg-idcard__clip {
    position: absolute; z-index: 2; top: .85rem; left: 50%; width: 1.7rem; height: .6rem; translate: -50% 0; border-radius: 3px;
    background: linear-gradient(180deg, #f4f6fa, #9aa3b2 55%, #e5e8ee); box-shadow: 0 1px 2px rgb(0 0 0 / .35);
}
.kg-idcard__body {
    position: relative; display: grid; grid-template-columns: 2.9rem minmax(0, 1fr); align-items: center; gap: .8rem;
    padding: .75rem 1rem .7rem .7rem; border-radius: 10px; color: var(--inv-text);
    background:
        linear-gradient(135deg, transparent 0 82%, color-mix(in srgb, var(--inv-accent) 35%, transparent) 82% 88%, transparent 88% 91%, color-mix(in srgb, var(--inv-shine) 55%, transparent) 91% 94%, transparent 94%),
        var(--kg-ivory);
    box-shadow: inset 0 4px 0 var(--inv-accent), 0 18px 26px -16px rgb(0 0 0 / .6);
}
.kg-idcard__badge {
    display: grid; place-items: center; width: 2.9rem; height: 3.3rem; padding: .3rem; background: linear-gradient(180deg, var(--inv-primary), var(--inv-deep));
    clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
}
.kg-idcard__ketupat { width: 72%; }
.kg-idcard__text { display: flex; flex-direction: column; min-width: 0; }
.kg-idcard__label { font-size: .6rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--inv-primary); }
.kg-idcard__name {
    display: block; margin-top: .05rem; font-family: var(--kg-head); font-weight: 600; font-size: 1.24rem; line-height: 1.15;
    color: var(--inv-deep); overflow-wrap: anywhere; text-wrap: balance;
}

/* the gold hexagon seal (milestone) */
.kg-seal {
    display: grid; place-content: center; width: 5.6rem; height: 4.9rem; margin: 0; text-align: center; color: var(--inv-deep);
    background: var(--kg-foil); background-size: 220% 100%;
    clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.kg-seal strong { font-family: var(--kg-head); font-size: 1.9rem; font-weight: 700; line-height: .95; }
.kg-seal span { padding: 0 .9rem; font-size: .52rem; font-weight: 700; letter-spacing: .12em; line-height: 1.2; text-transform: uppercase; }
.kg-seal--text span { font-size: .6rem; }

/* the tap marker: two pulsing rings, a tapping hand and a label */
.kg-tap { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.kg-tap__ring {
    position: absolute; left: 50%; top: 2.85rem; width: 4.4rem; aspect-ratio: 1; margin: -2.2rem 0 0 -2.2rem; border-radius: 50%;
    border: 2.5px solid var(--inv-shine); opacity: 0;
}
.kg-tap__hand {
    position: absolute; left: 55%; top: 2.9rem; width: 2.4rem; height: 2.4rem;
    fill: #fff; stroke: var(--inv-deep); stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 4px 6px rgb(0 0 0 / .4));
}
.kg-tap__label {
    position: absolute; left: 50%; top: -.75rem; transform: translateX(-50%); white-space: nowrap;
    padding: .3rem .85rem; border-radius: 999px; font-size: .7rem; font-weight: 600; letter-spacing: .05em;
    color: var(--inv-deep); background: var(--kg-foil); background-size: 220% 100%; box-shadow: 0 8px 16px -8px rgb(0 0 0 / .6);
}

/* ---------- 4. cover ---------- */
.kg-cover {
    --gem-w: 240px; /* the gem's width, for the ornaments beside it (steps down with the screen height) */
    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% 38% at 50% 34%, color-mix(in srgb, var(--inv-primary) 85%, transparent), transparent 72%),
        radial-gradient(60% 28% at 50% 100%, color-mix(in srgb, var(--inv-accent) 22%, transparent), transparent 75%),
        linear-gradient(90deg, rgb(255 255 255 / .035) 1px, transparent 1px) 50% 0 / 32px 32px,
        linear-gradient(0deg, rgb(255 255 255 / .035) 1px, transparent 1px) 0 0 / 32px 32px,
        linear-gradient(180deg, var(--inv-deep), color-mix(in srgb, var(--inv-deep) 85%, #000));
    transition: opacity .9s ease;
}
.kg-cover__tess { opacity: .16; }
.kg-cover__sweep {
    position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
    background: linear-gradient(105deg, transparent 38%, color-mix(in srgb, var(--inv-shine) 20%, transparent) 48%, color-mix(in srgb, #fff 16%, transparent) 50%, color-mix(in srgb, var(--inv-shine) 20%, transparent) 52%, transparent 62%);
}
.kg-cover__inner {
    display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; max-width: 400px; min-height: 100%;
    margin: 0 auto; padding: 1.5rem 1.25rem 1.6rem; text-align: center; transition: transform .9s cubic-bezier(.5, 0, .3, 1);
}
.kg-cover__kop { margin: .3rem 0 0; }
.kg-cover__kop .kg-diamond { --d: 2.05rem; }

.kg-cover__art { position: relative; display: flex; justify-content: center; width: 100%; margin: 1.15rem 0 .95rem; }
.kg-cover__art::before {
    content: ''; position: absolute; z-index: 0; left: 50%; top: 50%; width: 130%; aspect-ratio: 1; translate: -50% -50%; pointer-events: none;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--inv-shine) 28%, transparent), color-mix(in srgb, var(--inv-accent) 10%, transparent) 55%, transparent);
}
.kg-cover__gem { --gem-h: 300px; filter: drop-shadow(0 22px 30px rgb(0 0 0 / .5)); }
.kg-cover__hang { position: absolute; z-index: 2; top: -1.1rem; transform-origin: 50% 0; }
/* the cord continues up and fades out before the screen's top corners */
.kg-cover__hang::before {
    content: ''; position: absolute; left: 50%; bottom: 100%; width: 1.3px; height: 7rem; margin-left: -.65px;
    background: linear-gradient(180deg, transparent, var(--inv-shine));
}
.kg-cover__hang--big { left: calc(50% + var(--gem-w, 240px) / 2 - 18px); width: 4rem; }
.kg-cover__hang--small { z-index: 0; top: 34%; left: calc(50% - var(--gem-w, 240px) / 2 - 28px); width: 2.6rem; }
.kg-cover__hang--small::before { height: 12rem; }
.kg-cover__ketupat { width: 100%; filter: drop-shadow(0 10px 12px rgb(0 0 0 / .45)); }
.kg-cover__moon { position: absolute; z-index: 2; top: .4rem; left: calc(50% - var(--gem-w, 240px) / 2 - 3.4rem); width: 3.5rem; rotate: -14deg; }

.kg-cover__text { display: flex; flex-direction: column; align-items: center; width: 100%; }
.kg-cover__title {
    margin: 0; max-width: 16ch; font-family: var(--kg-head); font-weight: 500; font-size: 1.95rem; line-height: 1.08;
    letter-spacing: -.005em; color: #fff; text-wrap: balance;
}
.kg-cover__name {
    margin: .45rem 0 0; max-width: 100%; font-size: .74rem; font-weight: 600; line-height: 1.35; letter-spacing: .22em; text-transform: uppercase; text-wrap: balance;
    background: var(--kg-foil-text); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
}
.kg-cover__date {
    margin: .6rem 0 0; padding: .2rem .9rem; border-radius: 999px; font-size: .8rem; font-weight: 500; letter-spacing: .04em; color: #fff;
    background: color-mix(in srgb, #fff 7%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 70%, transparent);
}
.kg-cover__quote {
    max-width: 30ch; margin: .55rem 0 0; font-family: var(--kg-head); font-style: italic; font-weight: 400;
    font-size: .95rem; line-height: 1.38; color: var(--kg-cream); text-wrap: balance;
}
.kg-cover__guest { margin-top: .75rem; }
.kg-cover__open {
    margin-top: .95rem; min-height: 3rem; padding: .7rem 2rem; font-weight: 600; letter-spacing: .04em;
    color: var(--inv-deep) !important; background: var(--kg-foil) !important; background-size: 220% 100% !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--inv-deep) 70%, transparent), 0 0 0 4px color-mix(in srgb, var(--inv-shine) 60%, transparent), 0 16px 26px -12px rgb(0 0 0 / .7);
}

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

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

/* opening: the crescent on a gold rule, greeting, message, the quote on a cut-corner card */
.kg-opening {
    display: flex; flex-direction: column; justify-content: center;
    min-height: var(--inv-screen, 100svh); padding-top: 5rem; padding-bottom: 5.8rem;
}
.kg-opening__hang { position: absolute; z-index: 1; top: 0; width: 2.3rem; transform-origin: 50% 0; }
.kg-opening__hang::before { content: ''; position: absolute; left: 50%; bottom: 96%; width: 1.3px; height: 6rem; margin-left: -.65px; background: linear-gradient(180deg, transparent, var(--inv-gold)); }
.kg-opening__hang--left { left: 1.1rem; top: 6.5rem; }
.kg-opening__hang--right { right: 1.3rem; top: 8.2rem; width: 1.9rem; }
.kg-opening__hang .kg-kt { width: 100%; filter: drop-shadow(0 8px 10px color-mix(in srgb, var(--inv-deep) 35%, transparent)); }
.kg-opening__mark { position: relative; width: 4.4rem; margin: 0 auto 1.2rem; }
.kg-opening__mark::before, .kg-opening__mark::after { content: ''; position: absolute; top: 55%; width: 4.5rem; height: 1px; }
.kg-opening__mark::before { right: 115%; background: linear-gradient(90deg, transparent, var(--kg-gold-line)); }
.kg-opening__mark::after { left: 115%; background: linear-gradient(90deg, var(--kg-gold-line), transparent); }
.kg-opening__moon { width: 100%; }
.kg-opening__basmalah { margin: 0 0 .5rem; font-size: 1.85rem; }
.kg-opening__greeting {
    margin: 0 auto .9rem !important; max-width: 18ch !important; font-family: var(--kg-head); font-size: 1.85rem; font-weight: 500; line-height: 1.18;
    color: var(--kg-title); text-wrap: balance;
}
.kg-opening__message { max-width: 32ch !important; color: var(--kg-muted); }
.kg-opening__quote { max-width: 22rem; margin: 2.4rem auto 0; filter: drop-shadow(0 18px 24px color-mix(in srgb, var(--inv-deep) 22%, transparent)); }
.kg-opening__quote .kg-chamfer__inner { padding: 1.7rem 1.4rem 1.5rem; }
.kg-opening__quote blockquote { margin: 0; font-family: var(--kg-head); font-style: italic; font-weight: 400; font-size: 1.1rem; line-height: 1.5; color: var(--kg-title); }
.kg-opening__quote figcaption {
    display: inline-block; margin-top: .9rem; padding: .22rem .9rem; font-size: .66rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
    color: #fff; background: var(--inv-primary); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.kg-opening__star { position: absolute; z-index: 1; right: -1.6rem; bottom: -1.6rem; width: 7.5rem; height: 7.5rem; color: var(--inv-gold); opacity: .16; stroke-width: 1; pointer-events: none; }

/* organizer: the corporate letterhead */
.kg-letter {
    max-width: 24rem; margin: 0 auto; overflow: hidden; border-radius: 6px; background: #fff;
    box-shadow: 0 0 0 1px var(--kg-line), var(--kg-drop);
}
.kg-letter__head {
    position: relative; isolation: isolate; padding: 1.7rem 1.2rem 1.3rem; color: #fff;
    background: radial-gradient(90% 80% at 50% 0%, color-mix(in srgb, var(--inv-primary) 85%, transparent), transparent 75%), var(--inv-deep);
}
.kg-letter__tess { opacity: .22; }
.kg-letter__mono { --d: 2.4rem; margin-bottom: .95rem; }
.kg-letter__name { margin: 0; font-family: var(--kg-head); font-weight: 500; font-size: 1.7rem; line-height: 1.12; text-wrap: balance; overflow-wrap: anywhere; }
.kg-letter__batch { margin: .5rem 0 0; font-size: .66rem; font-weight: 600; letter-spacing: .2em; line-height: 1.4; text-transform: uppercase; color: var(--inv-shine); }
/* a gold rule with a small diamond in the middle */
.kg-letter__rule {
    position: relative; display: block; height: 3px;
    background: linear-gradient(90deg, var(--inv-gold), var(--inv-shine) 30%, color-mix(in srgb, var(--inv-shine) 45%, #fff) 50%, var(--inv-shine) 70%, var(--inv-gold));
}
.kg-letter__rule::after {
    content: ''; position: absolute; left: 50%; top: 50%; width: .8rem; height: .8rem; margin: -.4rem 0 0 -.4rem; rotate: 45deg;
    background: var(--inv-shine); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--inv-gold);
}
.kg-letter__body { padding: 1.7rem 1.3rem 1.5rem; }
.kg-letter__art { position: relative; margin: 0 .4rem 1.6rem; }
.kg-letter__art--seal-only { display: flex; justify-content: center; margin-bottom: 1.2rem; }
.kg-letter__photo { margin: 0; padding: 3px; background: var(--kg-foil); }
.kg-letter__photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; clip-path: inherit; }
.kg-letter__seal { position: absolute; right: -1rem; bottom: -1.4rem; filter: drop-shadow(0 8px 10px rgb(0 0 0 / .3)); }
.kg-letter__art--seal-only .kg-letter__seal { position: static; }
.kg-letter__tagline {
    position: relative; margin: 0 auto; max-width: 26ch; padding: .9rem 0; font-family: var(--kg-head); font-style: italic; font-weight: 400;
    font-size: 1.15rem; line-height: 1.5; color: var(--kg-title);
}
.kg-letter__tagline::before, .kg-letter__tagline::after { content: ''; position: absolute; left: 50%; width: 3.2rem; height: 1px; margin-left: -1.6rem; background: var(--kg-gold-line); }
.kg-letter__tagline::before { top: 0; }
.kg-letter__tagline::after { bottom: 0; }
/* a letterhead footer: a strip of small low-poly triangles */
.kg-letter__foot {
    height: 14px;
    background:
        linear-gradient(135deg, var(--inv-accent) 50%, transparent 50%) 0 0 / 14px 14px,
        linear-gradient(225deg, var(--inv-shine) 50%, transparent 50%) 0 0 / 14px 14px,
        var(--inv-primary);
}

/* co_hosts: "Kartu Salam" — greeting cards that flip */
.kg-cards__hint { margin: -1.3rem auto 1.7rem !important; font-size: .82rem; color: var(--kg-mint); }
.kg-cards__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem .85rem; max-width: 24rem; margin: 0 auto; padding: 0; list-style: none; }
.kg-cards__list--one { grid-template-columns: minmax(0, 15rem); justify-content: center; }
.kg-flip { position: relative; perspective: 900px; filter: drop-shadow(0 16px 18px rgb(0 0 0 / .4)); }
.kg-cards__list:not(.kg-cards__list--one) .kg-flip:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - .43rem); }
.kg-flip__card {
    position: relative; display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
    font: inherit; color: inherit; text-align: center; -webkit-tap-highlight-color: transparent;
}
.kg-flip__card:focus-visible { outline: 2px solid var(--inv-shine); outline-offset: 4px; }
.kg-flip__face {
    --cut: 12px;
    position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem;
    min-height: 10rem; padding: 1.1rem .7rem 1.2rem;
    clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
}
.kg-flip__front {
    color: var(--inv-text);
    background: radial-gradient(80% 50% at 50% 0%, color-mix(in srgb, var(--inv-accent) 18%, transparent), transparent 75%), linear-gradient(180deg, #fff, var(--kg-ivory));
    box-shadow: inset 0 5px 0 var(--inv-accent), inset 0 0 0 1px color-mix(in srgb, var(--inv-shine) 55%, transparent);
}
.kg-flip__ketupat { width: 2.3rem; margin-bottom: .35rem; }
.kg-flip__from { font-size: .58rem; font-weight: 600; letter-spacing: .2em; line-height: 1.3; text-transform: uppercase; color: var(--inv-primary); }
.kg-flip__name { font-family: var(--kg-head); font-weight: 600; font-size: 1.04rem; line-height: 1.22; color: var(--kg-title); text-wrap: balance; overflow-wrap: anywhere; }
.kg-flip__turn { position: absolute; right: .55rem; bottom: .45rem; width: 1rem; height: 1rem; color: var(--inv-primary); opacity: .55; }
.kg-flip__turn svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kg-flip__back {
    margin-top: .5rem; color: #fff;
    background: radial-gradient(90% 60% at 50% 0%, color-mix(in srgb, var(--inv-primary) 85%, transparent), transparent 75%), var(--inv-deep);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-shine) 60%, transparent), inset 0 -4px 0 var(--inv-shine);
}
.kg-flip__back .kg-tess { opacity: .2; }
.kg-flip__star { width: 1.5rem; height: 1.5rem; color: var(--inv-shine); stroke-width: 1.6; margin-bottom: .2rem; }
.kg-flip__greeting {
    font-family: var(--kg-script); font-size: 1.85rem; line-height: 1.05; word-spacing: .1em; text-wrap: balance;
    background: var(--kg-foil-text); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
    padding: 0 .1em .1em; -webkit-text-stroke: .5px color-mix(in srgb, var(--inv-shine) 70%, transparent);
}
.kg-flip__sign { margin-top: .3rem; font-size: .56rem; font-weight: 600; letter-spacing: .16em; line-height: 1.35; text-transform: uppercase; color: var(--kg-cream); text-wrap: balance; }
/* with JavaScript: the two faces stack in 3D and the card turns */
.kg-cards.is-armed .kg-flip__card { display: grid; transform-style: preserve-3d; transition: transform .85s cubic-bezier(.3, 1.25, .45, 1); }
.kg-cards.is-armed .kg-flip__face { grid-area: 1 / 1; margin: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.kg-cards.is-armed .kg-flip__back { transform: rotateY(180deg); }
.kg-cards.is-armed .kg-flip.is-open .kg-flip__card { transform: rotateY(180deg); }
/* the hidden side is also made invisible half-way through the turn (for screen readers and text checks) */
.kg-cards.is-armed .kg-flip__face { transition: visibility 0s linear .4s; }
.kg-cards.is-armed .kg-flip:not(.is-open) .kg-flip__back, .kg-cards.is-armed .kg-flip.is-open .kg-flip__front { visibility: hidden; }

/* party: the theme plaque, the dress-code card with the geometric shirt, the note, the hashtag */
.kg-party__theme { max-width: 22rem; margin: 0 auto; filter: drop-shadow(0 18px 22px color-mix(in srgb, var(--inv-deep) 35%, transparent)); }
.kg-party__theme .kg-chamfer__inner { display: flex; flex-direction: column; justify-content: center; min-height: 6.6rem; padding: 1.2rem 1.2rem 1.2rem 5rem; text-align: left; }
.kg-party__ketupat { position: absolute; left: 1.1rem; top: 50%; width: 2.9rem; translate: 0 -50%; filter: drop-shadow(0 6px 8px rgb(0 0 0 / .4)); }
.kg-party__label { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--inv-primary); }
.kg-party__theme .kg-party__label { color: var(--kg-mint); }
.kg-party__theme-text { margin: .15rem 0 0; font-family: var(--kg-head); font-weight: 500; font-size: 1.6rem; line-height: 1.12; color: #fff; overflow-wrap: anywhere; }
.kg-party__dress {
    position: relative; display: grid; grid-template-columns: 4.8rem minmax(0, 1fr); align-items: center; gap: 1.1rem; max-width: 22rem; margin: 1.5rem auto 0;
    padding: 1.2rem 1.15rem; border-radius: 4px; text-align: left; background: #fff; box-shadow: 0 0 0 1px var(--kg-line), var(--kg-drop);
}
/* gold corner brackets */
.kg-party__dress::before, .kg-party__dress::after { content: ''; position: absolute; width: 1.2rem; height: 1.2rem; border: 2px solid var(--kg-gold-line); pointer-events: none; }
.kg-party__dress::before { top: -5px; left: -5px; border-right: 0; border-bottom: 0; }
.kg-party__dress::after { right: -5px; bottom: -5px; border-left: 0; border-top: 0; }
.kg-party__shirt { display: block; width: 100%; overflow: visible; }
.kg-party__panel { fill: var(--kg-pick, #fff); transition: fill .35s ease; }
.kg-party__panel-light { fill: rgb(255 255 255 / .22); }
.kg-party__panel-dark { fill: rgb(0 0 0 / .14); }
.kg-party__panel-lines { fill: none; stroke: var(--inv-deep); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.kg-party__dress-name { margin: .15rem 0 0; font-family: var(--kg-head); font-weight: 500; font-size: 1.12rem; line-height: 1.28; color: var(--kg-title); }
.kg-swatches { position: relative; display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .7rem; padding: .3rem; }
.kg-swatch {
    width: 1.6rem; height: 1.6rem; padding: 0; border: 0; border-radius: 3px; cursor: pointer; rotate: 45deg;
    background: linear-gradient(135deg, rgb(255 255 255 / .45) 0 42%, transparent 42% 58%, rgb(0 0 0 / .14) 58%), var(--kg-swatch);
    box-shadow: inset 0 0 0 1px rgb(0 0 0 / .18), 0 0 0 2px #fff, 0 0 0 3px var(--kg-line);
    transition: scale .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s ease;
}
.kg-swatch[aria-pressed="true"] { 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-shine); }
.kg-swatch:focus-visible { outline: 2px solid var(--inv-primary); outline-offset: 4px; }
.kg-swatches__ping { position: absolute; left: 1.1rem; top: 1.1rem; width: 2.8rem; height: 2.8rem; margin: -1.4rem 0 0 -1.4rem; border-radius: 50%; border: 2px solid var(--inv-primary); pointer-events: none; opacity: .6; }
.kg-party__hint { margin: .45rem 0 0; font-size: .74rem; color: var(--kg-muted); }
.kg-party__hint--center { margin: .6rem auto 0 !important; }
.kg-party__note {
    position: relative; max-width: 22rem !important; margin: 1.5rem auto 0 !important; padding: 1.05rem 1.2rem 1.05rem 1.35rem; text-align: left;
    font-size: .92rem; line-height: 1.6; color: var(--inv-text); background: var(--inv-soft);
    box-shadow: inset 4px 0 0 var(--inv-accent);
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
.kg-party__note::after { content: ''; position: absolute; top: 0; right: 0; width: 16px; height: 16px; background: linear-gradient(225deg, transparent 50%, var(--kg-gold-line) 50%); }
.kg-party__hashtag {
    display: inline-flex; align-items: center; gap: .6rem; max-width: 100%; margin-top: 1.6rem; padding: .35rem .4rem .35rem 1.05rem; border-radius: 999px;
    background: #fff; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--inv-primary) 35%, transparent);
}
.kg-party__hashtag-text { min-width: 0; font-family: var(--kg-head); font-style: italic; font-weight: 500; font-size: 1.08rem; color: var(--kg-title); overflow-wrap: anywhere; }
.kg-party__copy {
    flex: none; min-height: 2.2rem; padding: .3rem .95rem; border: 0; border-radius: 999px; cursor: pointer;
    font: 600 .76rem/1 var(--kg-sans); color: #fff; background: var(--inv-primary);
}

/* events: access passes with cut corners */
.kg-event { max-width: 25rem; margin: 0 auto; filter: drop-shadow(0 20px 26px color-mix(in srgb, var(--inv-deep) 24%, transparent)); }
.kg-event + .kg-event { margin-top: 2.4rem; }
.kg-event__card {
    --cut: 18px;
    overflow: hidden; padding-bottom: 1.25rem; text-align: left; background: #fff;
    clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
}
.kg-event__media { position: relative; background: var(--inv-deep); }
.kg-event__media img {
    display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 45%;
    -webkit-mask: linear-gradient(180deg, #000 55%, transparent); mask: linear-gradient(180deg, #000 55%, transparent);
}
.kg-event__media + .kg-event__head { margin-top: -2.4rem; background: linear-gradient(180deg, transparent, var(--inv-deep) 2.4rem); }
.kg-event__head {
    position: relative; isolation: isolate; display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.15rem 1.15rem; color: #fff;
    background: radial-gradient(90% 90% at 0% 0%, color-mix(in srgb, var(--inv-primary) 80%, transparent), transparent 75%), var(--inv-deep);
    box-shadow: inset 0 -3px 0 var(--inv-shine);
}
.kg-event__head .kg-tess { opacity: .2; }
.kg-event--flip .kg-event__head { flex-direction: row-reverse; text-align: right; box-shadow: inset 0 -3px 0 var(--inv-accent); }
.kg-event__date {
    display: flex; flex-direction: column; align-items: center; flex: none; width: 4.4rem; margin: 0; padding: .6rem .2rem .55rem; color: var(--inv-deep);
    background: var(--kg-foil); background-size: 220% 100%;
    clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
}
.kg-event--flip .kg-event__date { background: linear-gradient(160deg, color-mix(in srgb, var(--inv-accent) 55%, #fff), var(--inv-accent)); }
.kg-event__weekday { font-size: .6rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.kg-event__day { font-family: var(--kg-head); font-weight: 600; font-size: 2.2rem; line-height: 1; }
.kg-event__month { margin-top: .15rem; font-size: .56rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.kg-event__title { display: flex; flex-direction: column; min-width: 0; }
.kg-event__no { font-size: .6rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--kg-mint); }
.kg-event__name { margin: .1rem 0 0; font-family: var(--kg-head); font-weight: 500; font-size: 1.36rem; line-height: 1.15; color: #fff; overflow-wrap: anywhere; }
.kg-event__full { margin: .2rem 0 0; font-size: .78rem; color: var(--kg-cream); }
.kg-event__rows { display: grid; gap: .8rem; margin: 0; padding: 1.25rem 1.15rem 0; list-style: none; font-size: .9rem; }
.kg-event__rows li { display: flex; align-items: flex-start; gap: .8rem; }
.kg-event__icon {
    display: grid; place-items: center; flex: none; width: 1.95rem; height: 1.95rem; margin: .1rem .1rem 0; rotate: 45deg; border-radius: 4px;
    color: var(--inv-primary); background: var(--inv-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-shine) 70%, transparent);
}
.kg-event__icon .kg-icon { rotate: -45deg; width: 1.05rem; height: 1.05rem; }
.kg-event__rows li > span:last-child { padding-top: .2rem; }
.kg-event__venue { display: block; font-weight: 600; }
.kg-event__address { display: block; font-size: .85rem; color: var(--kg-muted); }
.kg-event .inv-maps { margin: 1.2rem 1.15rem 0; text-align: center; }
.kg-event .inv-maps .inv-button { width: 100%; font-weight: 600; }
.kg-event .inv-maps__frame { height: 190px; border-radius: 6px; }

/* countdown: the hanging ketupat in a turning star, the date plate, glass tiles */
.kg-countdown__stage { position: relative; width: 12rem; height: 12.5rem; margin: -.8rem auto 1.1rem; }
.kg-countdown__halo { position: absolute; left: 50%; top: 58%; width: 11.5rem; height: 11.5rem; margin: -5.75rem 0 0 -5.75rem; color: var(--inv-shine); opacity: .42; stroke-width: .7; }
.kg-countdown__hang { position: absolute; left: 50%; top: 0; width: 6.2rem; margin-left: -3.1rem; transform-origin: 50% 0; }
.kg-countdown__ketupat { width: 100%; filter: drop-shadow(0 12px 14px rgb(0 0 0 / .5)); }
.kg-plate { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; max-width: 21rem !important; margin: 0 auto 2rem !important; }
.kg-plate__side { font-size: .7rem; font-weight: 600; letter-spacing: .16em; line-height: 1.35; text-transform: uppercase; color: var(--kg-cream); }
.kg-plate__side:first-child { text-align: right; }
.kg-plate__side:nth-child(3) { text-align: left; }
.kg-plate__day {
    margin: 0 .9rem; padding: 0 .9rem; font-family: var(--kg-head); font-weight: 600; font-size: 3.4rem; line-height: 1;
    border-left: 1px solid var(--kg-gold-line); border-right: 1px solid var(--kg-gold-line);
    background: var(--kg-foil); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
}
.kg-plate__time { grid-column: 1 / -1; margin-top: .55rem; font-size: .82rem; font-weight: 500; letter-spacing: .06em; color: var(--kg-mint); }
.kg-countdown .inv-countdown { gap: clamp(.45rem, 2.4vw, .7rem); }
.kg-countdown .inv-countdown__item {
    display: grid; place-content: center; width: clamp(4rem, 18.5vw, 4.6rem); min-width: 0; aspect-ratio: 4 / 4.5; padding: .3rem 0;
    color: #fff; background: linear-gradient(180deg, color-mix(in srgb, #fff 12%, transparent), color-mix(in srgb, #fff 4%, transparent));
    box-shadow: inset 0 2px 0 var(--inv-shine), inset 0 -2px 0 color-mix(in srgb, var(--inv-shine) 45%, transparent);
    clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.kg-countdown .inv-countdown__value { font-variant-numeric: lining-nums tabular-nums; font-family: var(--kg-head); font-weight: 600; font-size: 1.85rem; line-height: 1.05; }
.kg-countdown .inv-countdown__label { margin-top: .1rem; font-size: .55rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--kg-mint); opacity: 1; }
.kg-countdown .inv-countdown__done { font-family: var(--kg-head); font-size: 1.3rem; font-style: italic; color: var(--inv-shine); }
.kg-countdown .inv-countdown__actions { flex-direction: column; align-items: center; gap: .6rem; margin-top: 2rem; }
.kg-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, #fff 8%, transparent);
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--inv-background) 50%, transparent);
}
.kg-countdown .inv-countdown__actions .inv-button:first-child { color: var(--inv-deep); background: var(--kg-foil); background-size: 220% 100%; box-shadow: none; }

/* rundown: a gold line, diamond nodes, time tabs, cut-corner cards */
.kg-rundown__list { position: relative; max-width: 24rem; margin: 0 auto; padding: 0; list-style: none; text-align: left; }
.kg-rundown__list::before {
    content: ''; position: absolute; left: 1.05rem; top: .6rem; bottom: .6rem; width: 2px; transform-origin: 50% 0;
    background: linear-gradient(180deg, var(--inv-shine), var(--inv-gold) 50%, color-mix(in srgb, var(--inv-gold) 30%, transparent));
}
.kg-rundown__step { position: relative; padding-left: 2.9rem; }
.kg-rundown__step + .kg-rundown__step { margin-top: 1.05rem; }
.kg-rundown__node {
    position: absolute; left: .55rem; top: .3rem; width: 1.05rem; height: 1.05rem; rotate: 45deg; border-radius: 2px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--inv-shine) 45%, #fff) 0 48%, var(--inv-shine) 48% 70%, var(--inv-gold) 70%);
    box-shadow: 0 0 0 3px var(--inv-soft), 0 0 0 4px color-mix(in srgb, var(--inv-gold) 50%, transparent);
}
.kg-rundown__time {
    display: inline-block; padding: .16rem .8rem .16rem .6rem; font-size: .8rem; font-weight: 600; letter-spacing: .04em; font-variant-numeric: tabular-nums;
    color: #fff; background: var(--inv-primary); clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
}
.kg-rundown__body {
    margin-top: .35rem; padding: .7rem .95rem .75rem; background: #fff; box-shadow: inset 3px 0 0 var(--inv-accent);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.kg-rundown__body h3 { margin: 0; font-size: .97rem; font-weight: 600; line-height: 1.35; color: var(--inv-text); }
.kg-rundown__body p { margin: .12rem 0 0; font-size: .84rem; line-height: 1.45; color: var(--kg-muted); }

/* story: hexagon photos with a gold rim, a gold tab with the time, alternating sides */
.kg-story__list { display: grid; gap: 2.5rem; margin: 0; padding: 0; list-style: none; text-align: left; }
.kg-story__item { display: grid; grid-template-columns: 42% minmax(0, 1fr); align-items: center; gap: 1.2rem; }
.kg-story__item--flip { grid-template-columns: minmax(0, 1fr) 42%; }
.kg-story__item--flip .kg-story__media { order: 2; }
.kg-story__media { margin: 0; text-align: center; }
.kg-hex {
    display: block; padding: 3px; aspect-ratio: 1 / 1.12; background: var(--kg-foil); background-size: 220% 100%;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.kg-hex img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.kg-story__when {
    display: inline-block; margin-top: .55rem; padding: .14rem .85rem; font-size: .78rem; font-weight: 600; letter-spacing: .06em;
    color: var(--inv-deep); background: var(--kg-foil); background-size: 220% 100%; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.kg-story__body h3 { margin: 0; font-family: var(--kg-head); font-weight: 500; font-size: 1.3rem; line-height: 1.18; color: #fff; }
.kg-story__body p { margin: .45rem 0 0; font-size: .87rem; line-height: 1.55; color: var(--kg-cream); }
.kg-story__item--text {
    position: relative; display: block; padding: 1.5rem 1.15rem 1.2rem;
    background: linear-gradient(180deg, color-mix(in srgb, #fff 10%, transparent), color-mix(in srgb, #fff 4%, transparent));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-shine) 40%, transparent);
    clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
}
.kg-story__item--text > .kg-story__when { margin: 0 0 .5rem; }

/* gallery: cut-corner photos with a thin gold rim; the first tall over two rows */
.kg-gallery .inv-gallery { gap: .7rem; }
.kg-gallery .inv-gallery__item {
    padding: 2px; border-radius: 0; background: var(--kg-foil-ink);
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.kg-gallery .inv-gallery__item img, .kg-gallery .inv-gallery__item video { clip-path: polygon(11px 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%, 0 11px); }
.kg-gallery .inv-gallery__item:nth-child(even) { clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); }
.kg-gallery .inv-gallery__item:nth-child(even) img, .kg-gallery .inv-gallery__item:nth-child(even) video { clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 11px 100%, 0 calc(100% - 11px)); }
.kg-gallery .inv-gallery__item:first-child { grid-row: span 2; aspect-ratio: auto; }

/* live streaming: a deep cut-corner screen */
.kg-stream__screen { max-width: 22rem; margin: 0 auto; filter: drop-shadow(0 20px 26px color-mix(in srgb, var(--inv-deep) 35%, transparent)); }
.kg-stream__screen .kg-chamfer__inner { display: flex; flex-direction: column; align-items: center; padding: 1.6rem 1.3rem 1.5rem; }
.kg-stream__live {
    display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .9rem; padding: .15rem .65rem; border-radius: 999px;
    font-size: .62rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #fff; background: rgb(255 255 255 / .1);
}
.kg-stream__live span { width: .5rem; height: .5rem; border-radius: 50%; background: #ff5a5a; box-shadow: 0 0 0 3px rgb(255 90 90 / .25); }
.kg-stream__icon {
    display: grid; place-items: center; width: 3.1rem; height: 3.1rem; margin-bottom: .9rem; rotate: 45deg; border-radius: 6px; color: var(--inv-deep);
    background: var(--kg-foil); background-size: 220% 100%;
}
.kg-stream__icon .kg-icon { rotate: -45deg; width: 1.6rem; height: 1.6rem; }
.kg-stream__title { margin: 0 0 .25rem; font-family: var(--kg-head); font-weight: 500; font-size: 1.6rem; line-height: 1.1; color: #fff; }
.kg-stream__screen p { margin: 0; max-width: 28ch; font-size: .86rem; color: var(--kg-cream); }
.kg-stream__screen .kg-stream__note { margin-top: .4rem; font-weight: 500; color: var(--kg-mint); }
.kg-stream__button { width: 100%; margin-top: 1.1rem; min-height: 2.75rem; color: var(--inv-deep) !important; background: var(--kg-foil) !important; background-size: 220% 100% !important; font-weight: 600; }

/* RSVP: a registration pass on a lanyard */
.kg-pass { position: relative; max-width: 25rem; margin: 0 auto; padding-top: 2.2rem; filter: drop-shadow(0 24px 28px rgb(0 0 0 / .45)); }
.kg-pass__strap {
    position: absolute; top: 0; left: 50%; width: 6rem; height: 2.5rem; translate: -50% 0;
    background: repeating-linear-gradient(90deg, var(--inv-accent) 0 6px, color-mix(in srgb, var(--inv-accent) 70%, var(--inv-primary)) 6px 8px);
    clip-path: polygon(0 0, 20% 0, 50% 78%, 80% 0, 100% 0, 56% 100%, 44% 100%);
}
.kg-pass__clip {
    position: absolute; z-index: 2; top: 1.95rem; left: 50%; width: 2.2rem; height: .8rem; translate: -50% 0; border-radius: 4px;
    background: linear-gradient(180deg, #f4f6fa, #9aa3b2 55%, #e5e8ee); box-shadow: 0 1px 3px rgb(0 0 0 / .4);
}
.kg-pass__card { overflow: hidden; border-radius: 14px; background: var(--kg-ivory); }
.kg-pass__head {
    position: relative; isolation: isolate; padding: 1.6rem 1.2rem 1.25rem; color: #fff;
    background: radial-gradient(90% 90% at 50% 0%, color-mix(in srgb, var(--inv-primary) 85%, transparent), transparent 75%), var(--inv-deep);
}
.kg-pass__head .kg-tess { opacity: .22; }
.kg-pass__label { margin: 0; font-size: .64rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--kg-mint); }
.kg-pass__for { margin: .2rem auto 0; max-width: 24ch; font-family: var(--kg-head); font-weight: 500; font-size: 1.32rem; line-height: 1.2; overflow-wrap: anywhere; text-wrap: balance; }
.kg-pass__body { position: relative; padding: 1.5rem 1.15rem 1.4rem; color: var(--inv-text); }
.kg-pass__intro { margin: 0 auto 1.1rem; max-width: 30ch; font-size: .9rem; color: var(--kg-muted); }
.kg-pass__sent { margin-bottom: 1rem; }
.kg-pass__seal {
    display: inline-grid; place-items: center; width: 7rem; height: 7rem; margin: .2rem 0 .7rem; rotate: -8deg; color: var(--inv-deep);
    font-family: var(--kg-head); font-weight: 700; font-size: 1rem; line-height: 1.1; letter-spacing: .04em; text-transform: uppercase;
    background: var(--kg-foil); background-size: 220% 100%;
    box-shadow: inset 0 0 0 5px color-mix(in srgb, #fff 35%, transparent), inset 0 0 0 6.5px color-mix(in srgb, var(--inv-gold) 70%, transparent);
    clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}
.kg-pass__seal span { padding: 0 .8rem; }
html.inv-anim .kg-pass__sent .kg-pass__seal { animation: kg-stamp .55s cubic-bezier(.3, 1.4, .6, 1) both; }
.kg-pass__line { margin: 0; font-size: .9rem; color: var(--kg-muted); }
.kg-rsvp .inv-rsvp__deadline { margin: 0 0 1rem; font-size: .84rem; font-weight: 600; color: var(--inv-primary); }

/* gift: premium cards */
.kg-gift__intro { color: var(--kg-cream); }
.kg-gift__treasurer { display: inline-flex !important; align-items: center; gap: .5rem; padding: .35rem .95rem; border-radius: 999px; font-size: .84rem; font-weight: 500; color: var(--inv-deep); background: var(--kg-foil); background-size: 220% 100%; }
.kg-gift .inv-gift__accounts { display: grid; gap: 1rem; max-width: 21rem; margin: 1.5rem auto 0; }
.kg-gift .inv-gift__account {
    position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; min-width: 0; margin: 0;
    padding: 1.15rem 1.2rem 1.1rem; border-radius: 14px; text-align: left; color: #fff;
    background: radial-gradient(90% 90% at 100% 0%, color-mix(in srgb, var(--inv-accent) 30%, transparent), transparent 60%), linear-gradient(135deg, var(--inv-primary), var(--inv-deep) 75%);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-shine) 50%, transparent), 0 20px 30px -18px rgb(0 0 0 / .7);
}
/* the tessellation on the card, and the gold chip */
.kg-gift .inv-gift__account::before {
    content: ''; position: absolute; inset: 0; z-index: -1; background: var(--inv-shine); opacity: .14;
    -webkit-mask: var(--kg-tess-tile) 0 0 / 48px 48px repeat; mask: var(--kg-tess-tile) 0 0 / 48px 48px repeat;
}
.kg-gift .inv-gift__account::after {
    content: ''; position: absolute; top: 1.15rem; right: 1.2rem; width: 2.3rem; height: 1.7rem; border-radius: 5px;
    background: linear-gradient(90deg, transparent 32%, rgb(0 0 0 / .18) 32% 36%, transparent 36% 64%, rgb(0 0 0 / .18) 64% 68%, transparent 68%), linear-gradient(0deg, transparent 45%, rgb(0 0 0 / .18) 45% 55%, transparent 55%), var(--kg-foil);
}
.kg-gift .inv-gift__account p { margin: 0; }
.kg-gift .inv-gift__bank { min-height: 1.7rem; font-weight: 600; font-size: .9rem; color: #fff; }
.kg-gift .inv-gift__logo { display: inline-flex; height: 1.7rem; padding: .2rem .5rem; border-radius: .35rem; background: #fff; }
.kg-gift .inv-gift__logo img { max-width: 5rem; }
.kg-gift .inv-gift__number {
    margin-top: .65rem !important; font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 1.12rem; font-weight: 600;
    letter-spacing: .08em; line-height: 1.3; overflow-wrap: anywhere; color: #fff;
}
.kg-gift .inv-gift__holder { font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--kg-cream); overflow-wrap: anywhere; }
.kg-gift .inv-button { align-self: flex-end; margin-top: .5rem; min-height: 2.2rem; padding: .35rem .95rem; font-size: .74rem; font-weight: 600; color: var(--inv-deep); background: var(--kg-foil); background-size: 220% 100%; border: 0; }
.kg-gift .inv-gift__address { max-width: 21rem; margin: 1rem auto 0; align-items: center; text-align: center; color: var(--inv-text); background: var(--kg-ivory); font-size: .875rem; }
.kg-gift .inv-gift__address::before, .kg-gift .inv-gift__address::after { display: none; }
.kg-gift .inv-gift__address .inv-gift__bank { color: var(--inv-primary); }
.kg-gift .inv-gift__address .inv-gift__holder { color: var(--kg-muted); font-size: .72rem; }
.kg-gift .inv-gift__address .inv-button { align-self: center; }

/* contacts: business cards */
.kg-contacts__list { display: grid; gap: .8rem; max-width: 24rem; margin: 0 auto; }
.kg-contact {
    display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; align-items: center; gap: .85rem; padding: .85rem .8rem .85rem 1rem; text-align: left;
    color: var(--inv-text); background: #fff; box-shadow: inset 4px 0 0 var(--inv-primary);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.kg-contact__avatar { --d: 2.1rem; margin-left: .35rem; }
.kg-contact p { margin: 0; }
.kg-contact__name { font-weight: 600; font-size: .95rem; line-height: 1.3; overflow-wrap: anywhere; }
.kg-contact__role { font-size: .78rem; color: var(--kg-muted); }
.kg-contact__phone { font-size: .85rem; }
.kg-contact__button { min-height: 2.5rem; padding: .45rem .95rem; font-size: .8rem; font-weight: 600; }
.kg-contact__button .kg-icon { width: 1.05rem; height: 1.05rem; }

/* health protocol */
.kg-protocol__list { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.kg-protocol__list li {
    display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .95rem .45rem .6rem; border-radius: 999px; font-size: .84rem; font-weight: 500;
    background: #fff; box-shadow: inset 0 0 0 1px var(--kg-line);
}
.kg-protocol__check { display: grid; place-items: center; width: 1.2rem; height: 1.2rem; rotate: 45deg; border-radius: 3px; color: var(--inv-deep); background: var(--inv-accent); }
.kg-protocol__check .kg-icon { rotate: -45deg; width: .85rem; height: .85rem; stroke-width: 2.4; }
.kg-protocol__note { font-size: .88rem; color: var(--kg-muted); }

/* vendors */
.kg-vendors__list {
    max-width: 24rem; margin: 0 auto; padding: .4rem 1.2rem; list-style: none; background: #fff;
    clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
    box-shadow: inset 0 3px 0 var(--inv-shine);
}
.kg-vendor { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .45rem .8rem; padding: .9rem 0; text-align: left; border-bottom: 1px solid color-mix(in srgb, var(--inv-shine) 45%, transparent); }
.kg-vendor:last-child { border-bottom: 0; }
.kg-vendor__text { display: flex; flex: 1 1 11rem; flex-direction: column; min-width: 0; }
.kg-vendor__role { font-size: .62rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--inv-primary); }
.kg-vendor__name { font-family: var(--kg-head); font-weight: 500; font-size: 1.1rem; line-height: 1.25; color: var(--inv-text); overflow-wrap: anywhere; }
.kg-vendor__link {
    display: inline-flex; align-items: center; gap: .3rem; flex: none; min-height: 2.2rem; padding: .3rem .75rem; border-radius: 999px;
    font-size: .74rem; font-weight: 600; text-decoration: none; color: var(--inv-primary); background: var(--inv-soft);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-primary) 25%, transparent);
}
.kg-vendor__link .kg-icon { width: .95rem; height: .95rem; }

/* closing: the photo fading into the deep colour, two hanging ketupat, the thanks */
.kg-closing { padding: 3.6rem 1.5rem 2.6rem; }
.kg-closing--photo { padding-top: 0; }
.kg-closing__photo {
    position: relative; z-index: -1; height: 21rem; margin: 0 -1.5rem; overflow: hidden;
    -webkit-mask: linear-gradient(180deg, #000 0, #000 50%, rgb(0 0 0 / .5) 74%, rgb(0 0 0 / .15) 90%, transparent 100%);
    mask: linear-gradient(180deg, #000 0, #000 50%, rgb(0 0 0 / .5) 74%, rgb(0 0 0 / .15) 90%, transparent 100%);
}
.kg-closing__photo img { display: block; width: 100%; height: calc(100% + 60px); margin-top: -30px; object-fit: cover; object-position: center 30%; --inv-parallax: 30px; }
.kg-closing__hang { position: absolute; z-index: 1; top: -.6rem; width: 2.5rem; transform-origin: 50% 0; }
.kg-closing__hang--left { left: 1rem; }
.kg-closing__hang--right { right: 1rem; width: 2.1rem; top: -1.6rem; }
.kg-closing__ketupat { width: 100%; filter: drop-shadow(0 8px 10px rgb(0 0 0 / .45)); }
.kg-closing__body { position: relative; }
.kg-closing--photo > .kg-tess { top: 19rem; }
.kg-closing--photo .kg-closing__body { margin-top: -5.5rem; }
.kg-closing__star { width: 2rem; height: 2rem; margin: 0 auto .4rem; color: var(--inv-shine); stroke-width: 1.4; }
.kg-closing__title {
    margin: 0 0 .7rem; padding: 0 .1em .1em; font-family: var(--kg-script); font-weight: 400; font-size: 3.2rem; line-height: 1.05; word-spacing: .12em;
    background: var(--kg-foil-text); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
}
.kg-closing__message { margin: 0 auto; max-width: 32ch; font-size: .92rem; line-height: 1.6; color: var(--kg-cream); }
.kg-closing__salam { margin: .8rem auto 0; max-width: 26ch; font-family: var(--kg-head); font-size: 1.05rem; font-style: italic; line-height: 1.35; color: var(--inv-shine); }
.kg-closing__signature { margin: .4rem auto 0; max-width: 32ch; font-size: .84rem; color: var(--kg-cream); }
.kg-closing__kop {
    display: flex; align-items: center; justify-content: center; gap: .85rem; margin: 1.4rem auto 0; padding-top: 1.1rem; max-width: 22rem;
    border-top: 1px solid color-mix(in srgb, var(--inv-shine) 40%, transparent);
}
.kg-closing__mono { --d: 1.65rem; }
.kg-closing__org { font-size: .66rem; font-weight: 600; letter-spacing: .2em; line-height: 1.4; text-transform: uppercase; text-align: left; color: var(--inv-shine); }

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

/* the three answers as cut-corner tiles with icons (the radio dot is hidden but still focusable) */
.kg-rsvp .inv-form__choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.kg-rsvp .inv-form__choices legend { margin-bottom: .5rem; padding: 0; }
.kg-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; 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-primary) 20%, transparent);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: background-color .25s ease, color .25s ease, transform .25s cubic-bezier(.34, 1.56, .64, 1);
}
.kg-rsvp .inv-form__choices input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.kg-rsvp .inv-form__choices label::before {
    content: ''; width: 2rem; height: 2rem; flex: none; rotate: 45deg; border-radius: 5px; background: var(--inv-soft);
    transition: scale .3s cubic-bezier(.34, 1.56, .64, 1), background-color .25s ease;
}
.kg-rsvp .inv-form__choices label::after {
    content: ''; position: absolute; left: 50%; top: 1.25rem; width: 1.15rem; height: 1.15rem; margin-left: -.575rem;
    background: currentColor; color: var(--inv-primary); pointer-events: none;
    -webkit-mask: var(--kg-choice-icon) center / contain no-repeat; mask: var(--kg-choice-icon) center / contain no-repeat;
}
.kg-rsvp .inv-form__choices label:nth-of-type(1) {
    --kg-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");
}
.kg-rsvp .inv-form__choices label:nth-of-type(2) {
    --kg-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");
}
.kg-rsvp .inv-form__choices label:nth-of-type(3) {
    --kg-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");
}
.kg-rsvp .inv-form__choices label:has(input:checked) { color: #fff; background: var(--inv-primary); transform: translateY(-3px); box-shadow: inset 0 -3px 0 var(--inv-shine); }
.kg-rsvp .inv-form__choices label:has(input:checked)::before { background-color: rgb(255 255 255 / .2); scale: 1.1; }
.kg-rsvp .inv-form__choices label:has(input:checked)::after { color: #fff; }
.kg-rsvp .inv-form__choices label:has(input:focus-visible) { outline: 2px solid var(--inv-accent); outline-offset: 3px; }

/* wishes: the form on a white cut-corner card with gold corner lines, the wishes as small cards */
.kg-wishes .inv-wishes { --inv-wishes-height: 20rem; }
.kg-wishes .inv-form {
    padding: 1.4rem 1.15rem 1.3rem 1.3rem;
    background:
        linear-gradient(225deg, transparent 0 13px, var(--kg-gold-line) 13px 15px, transparent 15px) top right / 40px 40px no-repeat,
        linear-gradient(45deg, transparent 0 13px, var(--kg-gold-line) 13px 15px, transparent 15px) bottom left / 40px 40px no-repeat,
        #fff;
    box-shadow: inset 4px 0 0 var(--inv-primary);
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.kg-wishes .inv-wishes__list { margin-top: 1.5rem; }
.kg-wishes .inv-wishes:not(.inv-wishes--paged) .inv-wishes__list {
    padding: .55rem; border-radius: 8px; background: color-mix(in srgb, var(--inv-soft) 60%, transparent); box-shadow: inset 0 0 0 1px var(--kg-line);
}
.kg-wishes .inv-wish {
    padding: .75rem .9rem; background: #fff; text-align: left; box-shadow: inset 3px 0 0 var(--inv-accent);
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.kg-wishes .inv-wish__name { font-weight: 600; color: var(--kg-title); }
.kg-wishes .inv-wish__message { font-size: .88rem; line-height: 1.5; }
.kg-wishes .inv-wish__time { font-size: .72rem; color: var(--kg-muted); opacity: 1; }

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

/* ---------- 8. screen sizes ---------- */
@media (max-width: 370px) {
    .kg-heading__title { font-size: 2.1rem; }
    .kg-cover__title { font-size: 1.8rem; }
}
/* short phones: the gem and type step down in px (never svh: on iPhone Chrome it is the whole screen) */
@media (max-height: 760px) {
    .kg-cover__gem { --gem-h: 264px; }
    .kg-cover { --gem-w: 211px; }
    .kg-cover__inner { padding-top: 1.2rem; padding-bottom: 1.3rem; }
    .kg-cover__art { margin: .95rem 0 .8rem; }
    .kg-cover__title { font-size: 1.8rem; }
    .kg-cover__quote { font-size: .9rem; }
    .kg-cover__guest { margin-top: .6rem; }
    .kg-cover__open { margin-top: .8rem; }
}
@media (max-height: 700px) {
    .kg-cover__gem { --gem-h: 236px; }
    .kg-cover { --gem-w: 189px; }
    .kg-cover__hang--big { width: 3.4rem; }
}
@media (max-height: 660px) {
    .kg-cover__gem { --gem-h: 222px; }
    .kg-cover { --gem-w: 178px; }
    .kg-cover__inner { padding-top: 1rem; padding-bottom: 1.1rem; }
    .kg-cover__kop .kg-diamond { --d: 1.75rem; }
    .kg-cover__art { margin: .8rem 0 .7rem; }
    .kg-cover__moon { width: 2.9rem; left: calc(50% - var(--gem-w) / 2 - 2.9rem); }
    .kg-cover__hang--big { width: 3rem; }
    .kg-cover__hang--small { width: 2.2rem; left: calc(50% - var(--gem-w) / 2 - 24px); }
    .kg-cover__title { font-size: 1.62rem; }
    .kg-cover__name { margin-top: .35rem; font-size: .68rem; }
    .kg-cover__date { margin-top: .45rem; font-size: .76rem; }
    .kg-cover__quote { margin-top: .4rem; font-size: .84rem; line-height: 1.32; }
    .kg-cover__guest { margin-top: .5rem; }
    .kg-idcard__body { padding-top: .6rem; padding-bottom: .55rem; }
    .kg-idcard__name { font-size: 1.12rem; }
    .kg-cover__open { min-height: 2.75rem; margin-top: .7rem; padding: .6rem 1.7rem; }
}
@media (max-height: 600px) {
    .kg-cover__gem { --gem-h: 176px; }
    .kg-cover { --gem-w: 141px; }
    .kg-cover__title { font-size: 1.45rem; }
    .kg-cover__quote { font-size: .8rem; line-height: 1.26; }
}
/* wide screens: the phone-width column on a deep backdrop with the tessellation */
@media (min-width: 560px) {
    body.kg-body {
        background: radial-gradient(70vw 60vh at 50% 0%, color-mix(in srgb, var(--inv-primary) 60%, transparent), transparent 70%), var(--inv-deep);
        background-attachment: fixed;
    }
    body.kg-body::before {
        content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--inv-shine); opacity: .1;
        -webkit-mask: var(--kg-tess-tile) 50% 0 / 72px 72px repeat; mask: var(--kg-tess-tile) 50% 0 / 72px 72px repeat;
    }
    .kg-main { box-shadow: 0 30px 60px -30px rgb(0 0 0 / .6); }
}

/* ---------- 9. motion ---------- */
@keyframes kg-rise { from { opacity: 0; translate: 0 26px; scale: .96; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes kg-zoom-out { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes kg-kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.07) translate(-1.5%, -1%); } }
@keyframes kg-drop { from { opacity: 0; translate: 0 -3.5rem; } to { opacity: 1; translate: 0 0; } }
@keyframes kg-sway { 0%, 100% { rotate: -3deg; } 50% { rotate: 3deg; } }
@keyframes kg-turn-in { from { opacity: 0; transform: rotate(-120deg) scale(.5); } to { opacity: 1; transform: none; } }
@keyframes kg-breathe { 0%, 100% { opacity: .65; scale: .96; } 50% { opacity: 1; scale: 1.04; } }
@keyframes kg-sweep { 0%, 62% { opacity: 0; transform: translateX(-70%); } 70% { opacity: 1; } 92% { opacity: 1; } 100% { opacity: 0; transform: translateX(70%); } }
@keyframes kg-shine { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes kg-spin { to { rotate: 360deg; } }
@keyframes kg-ping { 0% { opacity: .9; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.8); } }
@keyframes kg-tap { 0%, 100% { transform: translate(0, 0) scale(1); } 45% { transform: translate(-3px, -5px) scale(.92); } }
@keyframes kg-stamp { 0% { opacity: 0; scale: 1.8; } 70% { opacity: 1; scale: .94; } 100% { opacity: 1; scale: 1; } }
@keyframes kg-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes kg-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes kg-twinkle { 0%, 100% { opacity: .35; scale: .8; } 50% { opacity: 1; scale: 1.1; } }
@keyframes kg-wiggle { 0%, 100% { rotate: 0deg; } 20% { rotate: -6deg; } 40% { rotate: 5deg; } 60% { rotate: -3deg; } 80% { rotate: 2deg; } }

/* gold foil: a slow moving shine */
html.inv-anim :is(.kg-heading__title em, .kg-cover__name, .kg-cover__open, .kg-tap__label, .kg-flip__greeting, .kg-plate__day, .kg-closing__title, .kg-seal, .kg-event__date, .kg-hex, .kg-story__when) { animation: kg-shine 7s ease-in-out infinite; }

/* cover (≤ 2.5 s, once): the gem rises, its photo settles, the ketupat drop in on their cords and sway, the crescent
   turns in; then a living ground: the glow breathes, the photo zooms very slowly, a light sweeps across now and then */
html.inv-anim .kg-cover__gem { animation: kg-rise .9s cubic-bezier(.2, .7, .2, 1) .1s both; }
html.inv-anim .kg-cover__gem .kg-gem__photo { animation: kg-zoom-out 1.3s cubic-bezier(.2, .7, .2, 1) .1s both, kg-kenburns 18s ease-in-out 1.4s infinite alternate; }
html.inv-anim .kg-cover__hang--big { animation: kg-drop 1s cubic-bezier(.3, 1.3, .5, 1) .45s both, kg-sway 5.5s ease-in-out 1.5s infinite; }
html.inv-anim .kg-cover__hang--small { animation: kg-drop 1s cubic-bezier(.3, 1.3, .5, 1) .6s both, kg-sway 6.5s ease-in-out 1.6s infinite reverse; }
html.inv-anim .kg-cover__moon { animation: kg-turn-in 1.1s cubic-bezier(.2, .8, .3, 1) .35s both; }
html.inv-anim .kg-cover__art::before { animation: kg-breathe 5s ease-in-out infinite; }
html.inv-anim .kg-cover__sweep { animation: kg-sweep 9s ease-in-out 2s infinite; }

/* hanging ketupat in the page sway; the countdown star turns slowly */
html.inv-anim :is(.kg-countdown__hang, .kg-closing__hang, .kg-opening__hang) { animation: kg-sway 5.5s ease-in-out infinite; }
html.inv-anim :is(.kg-closing__hang--right, .kg-opening__hang--right) { animation-duration: 6.5s; animation-direction: reverse; }
html.inv-anim .kg-countdown__halo { animation: kg-spin 50s linear infinite; }
html.inv-anim .kg-stream__live span { animation: kg-blink 1.4s ease-in-out infinite; }

/* Kartu Salam: the tap marker; an unopened card wiggles a little now and then */
html.inv-anim .kg-tap__ring { animation: kg-ping 1.8s ease-out infinite; }
html.inv-anim .kg-tap__ring--late { animation-delay: .9s; }
html.inv-anim .kg-tap__hand { animation: kg-tap 1.2s ease-in-out infinite; }
html:not(.inv-anim) .kg-tap__ring { opacity: .6; }
html.inv-anim .kg-swatches__ping { animation: kg-ping 1.8s ease-out infinite; }

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

@media (prefers-reduced-motion: reduce) {
    .kg-cover, .kg-cover--leave, .kg-cover__inner { transition: none; }
    .kg-cards.is-armed .kg-flip__card { transition: none; }
}

/* ---------- 10. intro scene "Ketupat Merakit" (scene.json + sections/_scene) ----------
   The intro is teleported to <body>: everything here stands on its own classes. */
.kg-scene-tess { position: absolute; inset: 0; }
.kg-scene-tess .kg-tess { z-index: 0; opacity: .22; }
.inv-scene__art > svg.kg-scene-kt { overflow: visible; }
.kg-scene-sweep {
    position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 40%, color-mix(in srgb, var(--inv-shine) 30%, transparent) 48.5%, color-mix(in srgb, #fff 55%, transparent) 50%, color-mix(in srgb, var(--inv-shine) 30%, transparent) 51.5%, transparent 60%);
}
.kg-scene-burst { overflow: visible; fill: none; stroke: var(--inv-shine); stroke-width: 1.2; stroke-linecap: round; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--inv-shine) 70%, transparent)); }
.kg-scene-stars { position: absolute; inset: 0; }
.kg-scene-stars > span { position: absolute; width: calc(1.5rem * var(--s)); color: var(--inv-shine); }
.kg-scene-star { width: 100%; height: auto; stroke-width: 1.6; }
html.inv-anim .kg-scene-stars > span { animation: kg-twinkle 2.6s ease-in-out var(--d) infinite; }

/* the name card: an ID badge — a deep band with a slot, the label, the name in the heading serif, a gold rule */
body.kg-body .inv-intro--scene .inv-scene__card {
    top: 71%; aspect-ratio: auto; overflow: hidden;
    -webkit-mask: none; mask: none; -webkit-backdrop-filter: none; backdrop-filter: none;
    padding: 0 1.3rem 1.35rem; border-radius: 14px; background: var(--kg-ivory);
    box-shadow: inset 0 -5px 0 var(--inv-accent), 0 0 0 1px color-mix(in srgb, var(--inv-shine) 60%, transparent), 0 26px 40px -16px rgb(0 0 0 / .7);
}
body.kg-body .inv-scene__card::before {
    content: ''; display: block; height: 2.3rem; margin: 0 -1.3rem .9rem;
    background:
        radial-gradient(closest-side, color-mix(in srgb, var(--inv-deep) 85%, #000) 92%, transparent) 50% 45% / 2.8rem .55rem no-repeat,
        linear-gradient(180deg, transparent calc(100% - 3px), var(--inv-shine) calc(100% - 3px)),
        linear-gradient(135deg, var(--inv-primary), var(--inv-deep));
}
body.kg-body .inv-scene__card .inv-intro__label {
    justify-self: center; font-family: var(--kg-sans); font-size: .64rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--inv-primary);
}
body.kg-body .inv-scene__card .inv-intro__names {
    font-family: var(--kg-head) !important; font-weight: 500; font-size: clamp(1.6rem, 7vw, 2.1rem); line-height: 1.1; color: var(--inv-deep); overflow-wrap: anywhere; text-wrap: balance;
}
body.kg-body .inv-scene__card .inv-intro__rule { height: 3px; width: 2.6rem; border-radius: 2px; background: var(--kg-foil); }
body.kg-body .inv-scene__card .inv-intro__date { font-family: var(--kg-sans); font-weight: 500; font-size: .84rem; color: var(--kg-title); }
@media (min-aspect-ratio: 10 / 19) {
    body.kg-body .inv-intro--scene .inv-scene__card { top: 73%; padding-bottom: 1.1rem; }
    body.kg-body .inv-scene__card::before { height: 1.9rem; margin-bottom: .7rem; }
}
