/*
 * Template "Korporat Bersih" (Acara Kantor & Komunitas) — a calm, premium corporate invitation in the manner of an
 * annual report / Swiss design: warm white paper, a strict left-aligned grid with faint column guides, thin
 * rules, large serif numerals, a near-black slate for the deep bands, ONE brand colour and a neutral grey.
 * Signature pieces: the letterhead (logo lockup + thick-thin rule with a brand segment) on the cover and at the
 * close, the "Undangan resmi" letter card with its Nomor / Perihal lines, numbered section headings on a
 * hairline, an executive summary with KPI figures, schedule sheets with a spec table, a minimal speaker list, an
 * agenda table, a formal reply form and a signature block. Mobile-first, one column (~460px).
 *
 * Colours come from the chosen colour variant (template.json → <x-inv.head>):
 *   --inv-primary (the brand colour: numbers, rules, links, buttons on light grounds; ≥ 4.5:1 on the paper)
 *   --inv-accent (a light tint of the brand colour for text and rules on the deep bands)
 *   --inv-background (warm white paper)   --inv-text (ink)   --inv-deep (slate / black / navy / graphite bands)
 *   --inv-grey (secondary text, ≥ 4.5:1 on the paper)   --inv-line (hairlines)   --inv-soft (warm grey tint)
 *
 * Section tones (set on each section in its partial): .kb-tone--light (paper + column guides), --soft (warm
 * grey tint), --deep (the band colour). Light and deep alternate.
 *
 * 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 & photo backgrounds · 3 shared pieces (heading, logo, rules) · 4 cover ·
 *           5 sections in page order · 6 forms (RSVP, wishes) · 7 shared components · 8 screen sizes · 9 motion
 */

/* ---------- 1. base ---------- */
:root {
    /* defaults = the "Slate Biru Korporat" variant (the variant's colours override these) */
    --inv-primary: #1d55d0;
    --inv-accent: #8db1ff;
    --inv-background: #fbfaf7;
    --inv-text: #161b24;
    --inv-deep: #18202b;
    --inv-grey: #5b616c;
    --inv-line: #dcd8cf;
    --inv-soft: #f1efe9;
    --inv-radius: 2px;

    --kb-display: 'Inter Tight', 'Inter', 'Segoe UI', system-ui, sans-serif;
    --kb-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --kb-serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
    --kb-col: 460px;
    --kb-pad: 1.5rem;
    --kb-paper: #fff;
    --kb-ink: var(--inv-text);
    --kb-guide: color-mix(in srgb, var(--inv-text) 5%, transparent);
    --kb-lift: 0 1px 0 color-mix(in srgb, var(--inv-line) 80%, transparent), 0 24px 40px -32px color-mix(in srgb, var(--inv-deep) 55%, transparent);

    --inv-ambient-1: var(--inv-primary);
    --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(--kb-sans);
    font-size: 15px;
    line-height: 1.65;
    font-variant-numeric: lining-nums;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--inv-primary); }
[x-cloak] { display: none !important; }

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

/* the one column of the page; every section paints its own full-width background */
.kb-main { max-width: var(--kb-col); margin: 0 auto; counter-reset: kb-section; }
.kb-branding { max-width: var(--kb-col); margin: 0 auto; }

.kb-section { position: relative; isolation: isolate; overflow: hidden; padding: 4.75rem var(--kb-pad); text-align: left; }
.kb-section > p { margin: 0 0 1rem; max-width: 36ch; }

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

/* small capital label used across the page */
.kb-subtitle, .kb-cover__ref, .kb-cover__fact dt, .kb-cover__guest-label, .kb-heading__label, .kb-letter__meta dt,
.kb-organizer__label, .kb-organizer__facts dt, .kb-about__kpi dt, .kb-sheet__no, .kb-sheet__specs dt, .kb-speaker__key,
.kb-agenda th, .kb-stream__live, .kb-form__label, .kb-vendor__role, .kb-closing__label, .kb-closing__tagline {
    font-family: var(--kb-sans); font-size: .66rem; font-weight: 600; line-height: 1.3; letter-spacing: .16em; text-transform: uppercase;
}

/* ---------- 2. section tones & photo backgrounds ---------- */

/* faint column guides: four equal columns with a line at each edge (the Swiss grid made visible) */
.kb-tone--light::before, .kb-tone--deep::before, .kb-cover::before {
    content: ''; position: absolute; top: 0; bottom: 0; left: var(--kb-pad); right: var(--kb-pad); z-index: -1; pointer-events: none;
    background: repeating-linear-gradient(90deg, var(--kb-guide) 0 1px, transparent 1px 25%);
    border-right: 1px solid var(--kb-guide);
}

/* light: warm white paper */
.kb-tone--light { background: var(--inv-background); }

/* soft: the warm grey tint, sheets sit on it in white */
.kb-tone--soft { background: var(--inv-soft); }

/* deep: the band colour with a barely-there lighter corner */
.kb-tone--deep {
    --kb-guide: color-mix(in srgb, #fff 5%, transparent);
    --kb-ink: #fff;
    color: color-mix(in srgb, #fff 86%, var(--inv-deep));
    background:
        radial-gradient(90% 45% at 0% 0%, color-mix(in srgb, #fff 6%, transparent), transparent 75%),
        var(--inv-deep);
}
.kb-tone--deep a:not(.inv-button) { color: var(--inv-accent); }
.kb-tone--deep .kb-arabic { color: var(--inv-accent); }

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

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

/* section heading: a hairline with a brand segment, the running number as a big serif numeral, a label, the title */
.kb-heading { margin: 0 0 2.1rem; counter-increment: kb-section; }
.kb-heading__rule {
    position: relative; display: flex; align-items: baseline; gap: .85rem; margin: 0 0 1.05rem; padding-top: .7rem;
    border-top: 1px solid var(--inv-line);
}
.kb-heading__rule::before {
    content: ''; position: absolute; left: 0; top: -2px; width: 2.75rem; height: 3px; background: var(--inv-primary); transform-origin: 0 50%;
}
.kb-heading__no::before {
    content: counter(kb-section, decimal-leading-zero);
    font-family: var(--kb-serif); font-size: 2.7rem; font-weight: 400; line-height: .8; letter-spacing: -.02em; color: var(--inv-primary);
}
.kb-heading__label { color: var(--inv-grey); }
.kb-heading__title {
    margin: 0; max-width: 15ch; font-family: var(--kb-display); font-weight: 600; font-size: clamp(1.95rem, 8.6vw, 2.35rem);
    line-height: 1.04; letter-spacing: -.035em; color: var(--kb-ink); text-wrap: balance;
}
.kb-heading__title em { font-style: normal; color: var(--inv-primary); }
.kb-tone--deep .kb-heading__rule { border-top-color: color-mix(in srgb, #fff 20%, transparent); }
.kb-tone--deep .kb-heading__rule::before { background: var(--inv-accent); }
.kb-tone--deep .kb-heading__no::before { color: var(--inv-accent); }
.kb-tone--deep .kb-heading__label { color: color-mix(in srgb, #fff 66%, transparent); }
.kb-tone--deep .kb-heading__title em { color: var(--inv-accent); }

.kb-subtitle { margin: 2.2rem 0 .4rem; color: var(--inv-grey); }

/* icons */
.kb-icon { display: block; flex: none; width: 1.2rem; height: 1.2rem; }

/* the organizer's logo tile (sections/_logo): white with the logo, or the monogram wordmark on the brand colour */
.kb-logo {
    --logo-size: 3rem;
    position: relative; display: inline-grid; place-items: center; flex: none; width: var(--logo-size); height: var(--logo-size);
    overflow: hidden; background: var(--kb-paper); box-shadow: inset 0 0 0 1px var(--inv-line);
}
.kb-logo__img { display: block; width: 78%; height: 78%; object-fit: contain; }
.kb-logo--empty { background: var(--inv-primary); box-shadow: none; }
.kb-logo__mono {
    position: relative; padding-bottom: .14em; font-family: var(--kb-display); font-weight: 700; font-size: calc(var(--logo-size) * .34);
    line-height: 1; letter-spacing: -.03em; color: #fff;
}
/* a thin rule under the letters makes the monogram read as a wordmark */
.kb-logo__mono::after { content: ''; position: absolute; left: 0; bottom: 0; width: 55%; height: max(1px, .06em); background: currentColor; opacity: .75; }
.kb-logo--long .kb-logo__mono { font-size: calc(var(--logo-size) * .25); }
.kb-logo--sm { --logo-size: 2.75rem; }
.kb-logo--md { --logo-size: 3.5rem; }
.kb-logo--lg { --logo-size: 5.25rem; }

/* ---------- 4. cover: a formal letterhead invitation ---------- */
.kb-cover {
    --cover-photo-h: clamp(9rem, 30svh, 17rem);
    --kb-pad: max(1.35rem, calc((100% - 400px) / 2));
    position: fixed; inset: 0; z-index: 30; overflow-x: hidden; overflow-y: auto;
    display: flex; flex-direction: column; align-items: center; justify-content: safe center;
    min-height: 100svh; padding: 1.5rem 1.35rem 1.6rem;
    isolation: isolate; color: var(--inv-text); background: var(--inv-background);
    transition: opacity .9s ease;
}
.kb-cover__inner {
    position: relative; display: flex; flex-direction: column; align-items: stretch; width: 100%; max-width: 400px; text-align: left;
    transition: transform .9s cubic-bezier(.5, 0, .3, 1);
}

.kb-cover__head { display: flex; align-items: center; gap: .8rem; }
.kb-cover__org { display: flex; flex-direction: column; min-width: 0; margin: 0; line-height: 1.25; }
.kb-cover__org-name { font-family: var(--kb-display); font-weight: 600; font-size: .98rem; letter-spacing: -.01em; color: var(--inv-text); }
.kb-cover__org-unit { margin-top: .1rem; font-size: .74rem; color: var(--inv-grey); }

/* the letterhead rule: thick ink line + hairline under it, the first part of the thick line in the brand colour */
.kb-cover__rule, .kb-closing__rule {
    display: block; height: 6px; transform-origin: 0 50%;
    background:
        linear-gradient(var(--inv-primary), var(--inv-primary)) left top / 3.5rem 3px no-repeat,
        linear-gradient(var(--kb-ink), var(--kb-ink)) left top / 100% 2px no-repeat,
        linear-gradient(var(--kb-ink), var(--kb-ink)) left bottom / 100% 1px no-repeat;
}
.kb-cover__rule { margin: .85rem 0 1.05rem; }

.kb-cover__ref { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1rem; margin: 0; color: var(--inv-primary); }
.kb-cover__ref-no { font-weight: 500; letter-spacing: .1em; color: var(--inv-grey); font-variant-numeric: tabular-nums; }

.kb-cover__title {
    margin: .45rem 0 0; font-family: var(--kb-display); font-weight: 600; font-size: clamp(2.3rem, 11vw, 2.9rem);
    line-height: 1; letter-spacing: -.045em; color: var(--inv-text); text-wrap: balance;
}
.kb-cover__title--long { font-size: clamp(1.8rem, 8.4vw, 2.25rem); line-height: 1.04; }

/* the photo in a clean frame: a white mat with a hairline edge and two crop marks outside its corners */
.kb-cover__frame {
    position: relative; height: var(--cover-photo-h); margin: 1.05rem 0 0; padding: 5px;
    background: var(--kb-paper); box-shadow: inset 0 0 0 1px var(--inv-line), 0 22px 36px -30px color-mix(in srgb, var(--inv-deep) 70%, transparent);
}
.kb-cover__frame::before, .kb-cover__frame::after {
    content: ''; position: absolute; width: 14px; height: 14px; pointer-events: none;
    background: linear-gradient(var(--inv-primary), var(--inv-primary)) 0 0 / 100% 1.5px no-repeat, linear-gradient(var(--inv-primary), var(--inv-primary)) 0 0 / 1.5px 100% no-repeat;
}
.kb-cover__frame::before { top: -7px; left: -7px; }
.kb-cover__frame::after { right: -7px; bottom: -7px; transform: rotate(180deg); }
.kb-cover__photo, .kb-cover__empty { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.kb-cover__empty {
    position: relative; display: grid; place-items: center; overflow: hidden;
    background:
        repeating-linear-gradient(90deg, color-mix(in srgb, #fff 7%, transparent) 0 1px, transparent 1px 25%),
        radial-gradient(90% 70% at 0% 0%, color-mix(in srgb, #fff 8%, transparent), transparent 70%),
        var(--inv-deep);
}
.kb-cover__empty-mono { font-family: var(--kb-display); font-weight: 700; font-size: clamp(3rem, 18vw, 5rem); line-height: 1; letter-spacing: -.05em; color: #fff; }
.kb-cover__empty-mono::after { content: ''; display: block; width: 40%; height: 3px; margin-top: .3rem; background: var(--inv-accent); }

/* the facts row: date numeral | time | place, between hairlines */
.kb-cover__facts {
    display: grid; grid-template-columns: auto auto minmax(0, 1fr); margin: 1rem 0 0;
    border-top: 1px solid var(--inv-text); border-bottom: 1px solid var(--inv-line);
}
.kb-cover__fact { min-width: 0; padding: .6rem .8rem; border-left: 1px solid var(--inv-line); }
.kb-cover__fact:first-child { padding-left: 0; border-left: 0; }
.kb-cover__fact dt { color: var(--inv-grey); }
.kb-cover__fact dd { margin: .15rem 0 0; font-size: .8rem; font-weight: 600; line-height: 1.3; color: var(--inv-text); }
.kb-cover__fact--date dd { display: flex; align-items: center; gap: .45rem; margin: 0; }
.kb-cover__day { font-family: var(--kb-serif); font-size: 2.65rem; font-weight: 400; line-height: .85; letter-spacing: -.02em; color: var(--inv-primary); }
.kb-cover__month { font-size: .7rem; font-weight: 500; line-height: 1.3; color: var(--inv-grey); }
.kb-cover__fact--venue dd { font-weight: 500; overflow-wrap: anywhere; }

/* the guest: "Kepada Yth." on a brand-colour edge */
.kb-cover__guest { margin-top: 1rem; padding: .1rem 0 .1rem .9rem; border-left: 3px solid var(--inv-primary); }
.kb-cover__guest-label { margin: 0; color: var(--inv-grey); }
.kb-cover__guest-name { display: block; margin-top: .1rem; font-family: var(--kb-display); font-weight: 600; font-size: 1.2rem; line-height: 1.22; letter-spacing: -.015em; color: var(--inv-text); overflow-wrap: anywhere; }

.kb-cover__quote { margin: .9rem 0 0; font-family: var(--kb-serif); font-style: italic; font-size: 1.12rem; line-height: 1.35; color: var(--inv-grey); }

.kb-cover__open {
    position: relative; width: 100%; min-height: 3.1rem; margin-top: 1.1rem; padding: .7rem 1.2rem; border-radius: 2px;
    font-family: var(--kb-sans); font-weight: 600; font-size: .92rem; letter-spacing: .02em; color: #fff; background: var(--inv-deep);
    box-shadow: inset 0 -3px 0 var(--inv-primary);
}
.kb-cover__open::after { content: '→'; margin-left: .6rem; font-weight: 400; }

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

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

/* opening: the "Undangan resmi" letter card over a faint photo */
.kb-letter {
    position: relative; padding: 1.35rem 1.3rem 1.6rem; background: var(--kb-paper);
    border-top: 3px solid var(--inv-primary); box-shadow: var(--kb-lift), inset 0 0 0 1px color-mix(in srgb, var(--inv-line) 60%, transparent);
}
.kb-letter__meta { margin: 0 0 1.4rem; border-bottom: 1px solid var(--inv-text); }
.kb-letter__meta div { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: .75rem; padding: .45rem 0; border-top: 1px solid var(--inv-line); }
.kb-letter__meta div:first-child { border-top: 0; padding-top: 0; }
.kb-letter__meta dt { padding-top: .2rem; color: var(--inv-grey); }
.kb-letter__meta dd { margin: 0; font-size: .86rem; font-weight: 500; line-height: 1.4; color: var(--inv-text); font-variant-numeric: tabular-nums; }
.kb-letter__basmalah { margin: 0 0 .8rem; font-size: 1.45rem; text-align: right; }
.kb-letter__greeting { margin: 0 0 .7rem; font-family: var(--kb-display); font-weight: 600; font-size: 1.4rem; line-height: 1.2; letter-spacing: -.02em; color: var(--inv-text); }
.kb-letter__message { margin: 0; font-size: .97rem; color: var(--inv-text); }
.kb-letter__quote { margin: 1.5rem 0 0; padding: .1rem 0 .1rem 1rem; border-left: 2px solid var(--inv-primary); }
.kb-letter__quote blockquote { margin: 0; font-family: var(--kb-serif); font-style: italic; font-size: 1.5rem; line-height: 1.22; letter-spacing: -.005em; color: var(--inv-text); }
.kb-letter__quote figcaption { margin-top: .7rem; font-size: .74rem; font-weight: 500; color: var(--inv-grey); }
.kb-letter__quote figcaption::before { content: '— '; }

/* organizer: a letterhead block on the deep band, the monogram faint and very large */
.kb-organizer__emboss {
    position: absolute; right: -.08em; bottom: -.24em; z-index: -1; max-width: none !important; margin: 0 !important;
    font-family: var(--kb-display); font-weight: 700; font-size: 11rem; line-height: 1; letter-spacing: -.06em; white-space: nowrap;
    color: color-mix(in srgb, #fff 5%, transparent); pointer-events: none;
}
.kb-organizer__lockup { display: flex; align-items: center; gap: 1rem; }
.kb-organizer__label { margin: 0; padding: .3rem 0 .3rem 1rem; border-left: 1px solid color-mix(in srgb, #fff 26%, transparent); color: color-mix(in srgb, #fff 70%, transparent); }
.kb-organizer__name { margin: 1.5rem 0 1.6rem; max-width: 16ch; font-family: var(--kb-display); font-weight: 600; font-size: clamp(2rem, 9vw, 2.45rem); line-height: 1.05; letter-spacing: -.035em; color: #fff; text-wrap: balance; }
.kb-organizer__facts { margin: 0; border-top: 2px solid #fff; }
.kb-organizer__facts div { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr); gap: .9rem; padding: .8rem 0; border-bottom: 1px solid color-mix(in srgb, #fff 18%, transparent); }
.kb-organizer__facts dt { padding-top: .25rem; color: var(--inv-accent); }
.kb-organizer__facts dd { margin: 0; font-size: .98rem; font-weight: 500; line-height: 1.4; color: #fff; }
.kb-organizer__facts .kb-organizer__tagline { font-family: var(--kb-serif); font-style: italic; font-weight: 400; font-size: 1.3rem; line-height: 1.25; }

/* about: the executive summary — summary paragraph, numbered highlights, KPI figures */
.kb-section > .kb-about__summary { max-width: none; margin: 0; font-size: 1.04rem; line-height: 1.62; color: var(--inv-text); }
.kb-about__summary::first-line { font-weight: 600; }
.kb-about__list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--inv-line); }
.kb-about__list li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); align-items: baseline; gap: .5rem; padding: .7rem 0; border-top: 1px solid var(--inv-line); }
.kb-about__list li:first-child { border-top-color: var(--inv-text); }
.kb-about__no { font-family: var(--kb-serif); font-size: 1.55rem; line-height: 1; color: var(--inv-primary); }
.kb-about__text { font-size: .98rem; font-weight: 500; line-height: 1.4; color: var(--inv-text); }
.kb-about__kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 2.4rem 0 0; border-top: 3px solid var(--inv-text); }
.kb-about__kpis--one { grid-template-columns: minmax(0, 1fr); }
.kb-about__kpi { min-width: 0; padding: .85rem 1rem 0 0; }
.kb-about__kpi + .kb-about__kpi { padding-left: 1rem; border-left: 1px solid var(--inv-line); }
.kb-about__kpi dt { color: var(--inv-grey); }
.kb-about__kpi dd { margin: .45rem 0 0; }
.kb-about__figure { display: block; font-family: var(--kb-serif); font-size: 3.6rem; line-height: .9; letter-spacing: -.02em; color: var(--inv-primary); }
.kb-about__unit { display: block; margin-top: .3rem; font-size: .84rem; color: var(--inv-grey); }
.kb-about__kpi-text { font-family: var(--kb-display); font-weight: 600; font-size: 1.18rem; line-height: 1.22; letter-spacing: -.015em; color: var(--inv-text); }

/* events: schedule sheets — photo, a date numeral beside the name, a spec table, the map button */
.kb-events__list { display: grid; gap: 1.4rem; }
.kb-sheet { background: var(--kb-paper); border-top: 3px solid var(--inv-primary); box-shadow: var(--kb-lift); }
.kb-sheet__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--inv-deep); }
.kb-sheet__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kb-sheet__head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 1rem; padding: 1.2rem 1.25rem 1rem; }
.kb-sheet__date { display: flex; flex-direction: column; margin: 0; }
.kb-sheet__day { font-family: var(--kb-serif); font-size: 3.5rem; line-height: .8; letter-spacing: -.03em; color: var(--inv-primary); }
.kb-sheet__month { margin-top: .45rem; font-size: .68rem; font-weight: 500; line-height: 1.35; color: var(--inv-grey); }
.kb-sheet__title { min-width: 0; padding-left: 1rem; border-left: 1px solid var(--inv-line); }
.kb-sheet__head > .kb-sheet__title:only-child { padding-left: 0; border-left: 0; }
.kb-sheet__no { margin: 0; color: var(--inv-primary); }
.kb-sheet__name { margin: .3rem 0 0; font-family: var(--kb-display); font-weight: 600; font-size: 1.42rem; line-height: 1.12; letter-spacing: -.025em; color: var(--inv-text); }
.kb-sheet__specs { margin: 0 1.25rem; border-top: 1px solid var(--inv-text); }
.kb-sheet__specs div { display: grid; grid-template-columns: 4.8rem minmax(0, 1fr); gap: .75rem; padding: .65rem 0; border-bottom: 1px solid var(--inv-line); }
.kb-sheet__specs dt { padding-top: .2rem; color: var(--inv-grey); }
.kb-sheet__specs dd { margin: 0; font-size: .9rem; line-height: 1.45; color: var(--inv-text); }
.kb-sheet__venue { display: block; font-weight: 600; }
.kb-sheet__address { display: block; margin-top: .15rem; font-size: .84rem; color: var(--inv-grey); }
.kb-sheet__maps { padding: 1rem 1.25rem 1.25rem; }
.kb-sheet .inv-maps { margin: 0; }
.kb-sheet .inv-maps .inv-button {
    width: 100%; min-height: 2.8rem; border-radius: 2px; font-weight: 600; color: var(--inv-text); background: transparent;
    box-shadow: inset 0 0 0 1px var(--inv-text);
}
.kb-sheet .inv-maps__frame { height: 180px; margin-top: .85rem; border-radius: 0; background: var(--inv-soft); }

/* countdown: big serif figures in four columns divided by hairlines, the calendar on a white sheet */
.kb-countdown .inv-countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid #fff; border-bottom: 1px solid color-mix(in srgb, #fff 22%, transparent); }
.kb-countdown .inv-countdown__item { min-width: 0; padding: .9rem .2rem .8rem .7rem; border-radius: 0; text-align: left; background: none; border-left: 1px solid color-mix(in srgb, #fff 18%, transparent); }
.kb-countdown .inv-countdown__item:first-child { padding-left: 0; border-left: 0; }
.kb-countdown .inv-countdown__value { font-family: var(--kb-serif); font-weight: 400; font-size: clamp(2.6rem, 12vw, 3.3rem); line-height: .9; letter-spacing: -.02em; color: #fff; font-variant-numeric: lining-nums tabular-nums; }
.kb-countdown .inv-countdown__label { margin-top: .4rem; font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: 1; color: var(--inv-accent); }
.kb-countdown .inv-countdown__done { font-family: var(--kb-display); font-size: 1.3rem; font-weight: 600; color: var(--inv-accent); }
.kb-countdown .inv-countdown__actions { flex-direction: column; align-items: stretch; gap: .6rem; margin-top: 1.8rem; }
.kb-countdown .inv-countdown__actions .inv-button {
    width: 100%; min-height: 2.85rem; border-radius: 2px; font-weight: 600; font-size: .88rem; color: #fff; background: transparent;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 55%, transparent);
}
.kb-countdown .inv-countdown__actions .inv-button:first-child { color: var(--inv-deep); background: #fff; box-shadow: none; }
.kb-countdown .inv-cal {
    --inv-cal-bg: #fff; --inv-cal-text: var(--inv-text); --inv-cal-mark: var(--inv-primary);
    margin-top: 2.4rem; border-radius: 0; text-align: center; box-shadow: inset 0 3px 0 var(--inv-primary), 0 24px 40px -26px rgb(0 0 0 / .6);
}
.kb-countdown .inv-cal__month { font-family: var(--kb-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -.02em; color: var(--inv-text); }

/* speakers: a minimal profile list between hairlines; the keynote with a larger portrait */
.kb-speakers__list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--inv-line); }
.kb-speaker { position: relative; display: grid; grid-template-columns: 4.6rem minmax(0, 1fr) auto; align-items: start; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--inv-line); }
.kb-speaker:first-child { border-top-color: var(--inv-text); }
.kb-speaker--key { grid-template-columns: 7.4rem minmax(0, 1fr) auto; padding: 1.3rem 0; }
.kb-speaker__media { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--inv-soft); }
.kb-speaker--key .kb-speaker__media { aspect-ratio: 4 / 5; }
.kb-speaker__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.kb-speaker__media--empty { display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--inv-line); }
.kb-speaker__initials { font-family: var(--kb-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -.02em; color: var(--inv-grey); }
.kb-speaker--key .kb-speaker__initials { font-size: 2rem; }
.kb-speaker__text { min-width: 0; }
.kb-speaker__text p { margin: 0; }
.kb-speaker__key { margin-bottom: .4rem !important; color: var(--inv-primary); }
.kb-speaker__name { margin: 0; font-family: var(--kb-display); font-weight: 600; font-size: 1.1rem; line-height: 1.2; letter-spacing: -.02em; color: var(--inv-text); }
.kb-speaker--key .kb-speaker__name { font-size: 1.38rem; }
.kb-speaker__role { margin-top: .2rem !important; font-size: .82rem; line-height: 1.4; color: var(--inv-grey); }
.kb-speaker__topic { margin-top: .5rem !important; font-size: .84rem; font-weight: 600; line-height: 1.35; color: var(--inv-primary); }
.kb-speaker__topic::before { content: ''; display: block; width: 1.25rem; height: 1.5px; margin-bottom: .45rem; background: var(--inv-primary); }
.kb-speaker__no { font-family: var(--kb-serif); font-size: 1.25rem; line-height: 1; color: color-mix(in srgb, var(--inv-grey) 70%, var(--inv-background)); }

/* rundown: an agenda table */
.kb-agenda { width: 100%; border-collapse: collapse; border-top: 3px solid var(--inv-text); }
.kb-agenda th { padding: .65rem 0 .55rem; text-align: left; color: var(--inv-grey); border-bottom: 1px solid var(--inv-text); }
.kb-agenda th:first-child { width: 5rem; }
.kb-agenda td { padding: .85rem 0; vertical-align: top; border-bottom: 1px solid color-mix(in srgb, var(--inv-line) 85%, var(--inv-grey)); }
.kb-agenda__time { font-family: var(--kb-serif); font-size: 1.45rem; line-height: 1; letter-spacing: -.01em; color: var(--inv-primary); font-variant-numeric: tabular-nums; }
.kb-agenda__title { display: block; font-size: .98rem; font-weight: 600; line-height: 1.35; color: var(--inv-text); }
.kb-agenda__note { display: block; margin-top: .2rem; font-size: .84rem; line-height: 1.4; color: var(--inv-grey); }
.kb-agenda tbody tr:last-child td { border-bottom-color: var(--inv-text); }

/* gallery: a tight photo spread with square corners, the first photo a wide plate */
.kb-gallery .inv-gallery { gap: 5px; }
.kb-gallery .inv-gallery__item { border-radius: 0; background: color-mix(in srgb, #fff 6%, transparent); }
.kb-gallery .inv-gallery__item:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

/* live streaming: a bordered notice panel */
.kb-stream__panel { padding: 1.35rem 1.3rem 1.4rem; background: var(--kb-paper); box-shadow: inset 0 0 0 1px var(--inv-line), inset 3px 0 0 var(--inv-primary); }
.kb-stream__live { display: flex; align-items: center; gap: .5rem; margin: 0; color: var(--inv-primary); }
.kb-stream__live span { width: 7px; height: 7px; border-radius: 50%; background: var(--inv-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--inv-primary) 18%, transparent); }
.kb-stream__text { margin: .7rem 0 0; font-size: .95rem; color: var(--inv-text); }
.kb-stream__note { margin: .5rem 0 0; font-size: .84rem; color: var(--inv-grey); }
.kb-stream__button {
    display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; min-height: 2.9rem; margin-top: 1.2rem; border-radius: 2px;
    font-weight: 600; color: #fff !important; background: var(--inv-primary) !important;
}

/* RSVP: a formal reply form on a white sheet */
.kb-form { position: relative; max-width: 25rem; color: var(--inv-text); background: var(--kb-paper); box-shadow: 0 30px 50px -30px rgb(0 0 0 / .7); }
.kb-form__head {
    padding: 1.25rem 1.3rem 1.1rem;
    background:
        linear-gradient(var(--inv-text), var(--inv-text)) left bottom 4px / 100% 2px no-repeat,
        linear-gradient(var(--inv-text), var(--inv-text)) left bottom / 100% 1px no-repeat;
}
.kb-form__head p { margin: 0; }
.kb-form__label { color: var(--inv-primary); }
.kb-form__ref { margin-top: .2rem !important; font-size: .74rem; color: var(--inv-grey); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.kb-form__event { margin-top: .55rem !important; font-family: var(--kb-display); font-weight: 600; font-size: 1.32rem; line-height: 1.15; letter-spacing: -.02em; }
.kb-form__body { padding: 1.3rem 1.3rem 1.4rem; }
.kb-form__intro { margin: 0 0 1.2rem; font-size: .88rem; color: var(--inv-grey); }
.kb-form__sent { margin-bottom: 1rem; }
.kb-form__check { display: block; width: 3.6rem; height: 3.6rem; margin-bottom: .6rem; }
.kb-form__check circle, .kb-form__check path { fill: none; stroke: var(--inv-primary); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.kb-form__check circle { stroke-width: 1.5; }
.kb-form__thanks { margin: 0; font-family: var(--kb-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -.02em; color: var(--inv-text); }
.kb-form__line { margin: .15rem 0 0; font-size: .9rem; color: var(--inv-grey); }
.kb-rsvp .inv-rsvp__deadline { margin: 0 0 1rem; padding: .5rem .7rem; font-size: .8rem; font-weight: 600; color: var(--inv-primary); background: color-mix(in srgb, var(--inv-primary) 7%, transparent); }

/* wishes: the form on a white sheet; the messages as a scroll box divided by hairlines */
.kb-section > .kb-wishes__intro { margin: -1rem 0 1.6rem; color: var(--inv-grey); }
.kb-wishes .inv-wishes { --inv-wishes-height: 20rem; }
.kb-wishes .inv-form { padding: 1.3rem 1.25rem 1.4rem; background: var(--kb-paper); border-top: 3px solid var(--inv-primary); box-shadow: var(--kb-lift), inset 0 0 0 1px color-mix(in srgb, var(--inv-line) 60%, transparent); }
.kb-wishes .inv-wishes__list { margin-top: 1.6rem; gap: 0; }
.kb-wishes .inv-wishes:not(.inv-wishes--paged) .inv-wishes__list { padding: 0 .9rem; border-radius: 0; background: var(--kb-paper); box-shadow: inset 0 0 0 1px var(--inv-line); }
.kb-wishes .inv-wish { padding: .85rem 0; border-radius: 0; background: none; border-bottom: 1px solid var(--inv-line); }
.kb-wishes .inv-wish:last-child { border-bottom: 0; }
.kb-wishes .inv-wish__name { font-weight: 600; color: var(--inv-text); }
.kb-wishes .inv-wish__message { font-size: .88rem; line-height: 1.5; }
.kb-wishes .inv-wish__time { font-size: .72rem; opacity: 1; color: var(--inv-grey); }

/* co-hosts ("Didukung oleh"): names in two columns under a short brand rule */
.kb-cohosts__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; margin: 0; padding: 0; list-style: none; }
.kb-cohosts__list--one { grid-template-columns: minmax(0, 1fr); }
.kb-cohosts__list li {
    position: relative; padding: .85rem 0 1rem; border-top: 1px solid var(--inv-line);
    font-family: var(--kb-display); font-weight: 600; font-size: 1.04rem; line-height: 1.25; letter-spacing: -.015em; color: var(--inv-text);
}
.kb-cohosts__list li::before { content: ''; position: absolute; top: -2px; left: 0; width: 1.5rem; height: 3px; background: var(--inv-primary); }

/* vendors ("Sponsor & mitra"): a credits table; the main sponsor as a large wordmark on a slate plate */
.kb-vendors__list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--inv-line); }
.kb-vendor { display: grid; grid-template-columns: 6.4rem minmax(0, 1fr); gap: .9rem; padding: .95rem 0; border-top: 1px solid var(--inv-line); }
.kb-vendor__role { padding-top: .3rem; color: var(--inv-grey); }
.kb-vendor__body { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.kb-vendor__name { font-family: var(--kb-display); font-weight: 600; font-size: 1.14rem; line-height: 1.2; letter-spacing: -.02em; color: var(--inv-text); overflow-wrap: anywhere; }
.kb-vendor__link { display: inline-flex; align-items: center; gap: .35rem; margin-top: .3rem; font-size: .8rem; font-weight: 600; text-decoration: none; }
.kb-vendor__link .kb-icon { width: .95rem; height: .95rem; }
.kb-vendor--main { grid-template-columns: minmax(0, 1fr); gap: .5rem; margin-bottom: .9rem; padding: 1.4rem 1.3rem 1.5rem; border-top: 0; color: #fff; background: var(--inv-deep); }
.kb-vendor--main .kb-vendor__role { padding-top: 0; color: var(--inv-accent); }
.kb-vendor--main .kb-vendor__name { font-size: 1.75rem; line-height: 1.1; letter-spacing: -.03em; color: #fff; }
.kb-vendor--main .kb-vendor__link { margin-top: .5rem; color: var(--inv-accent); }

/* contacts: a directory between hairlines */
.kb-contacts__list { border-top: 1px solid var(--inv-text); border-bottom: 1px solid var(--inv-line); }
.kb-contact { display: flex; align-items: center; gap: .9rem; padding: .9rem 0; }
.kb-contact + .kb-contact { border-top: 1px solid var(--inv-line); }
.kb-contact__avatar { display: grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; font-family: var(--kb-display); font-weight: 600; font-size: 1.1rem; color: #fff; background: var(--inv-deep); }
.kb-contact__text { flex: 1; min-width: 0; }
.kb-contact__text p { margin: 0; }
.kb-contact__name { font-weight: 600; line-height: 1.3; color: var(--inv-text); }
.kb-contact__role { font-size: .8rem; color: var(--inv-grey); }
.kb-contact__phone { font-size: .8rem; color: var(--inv-grey); font-variant-numeric: tabular-nums; }
.kb-contact__button {
    display: inline-flex; align-items: center; gap: .4rem; min-height: 2.4rem; padding: .4rem .75rem; border-radius: 2px;
    font-size: .78rem; font-weight: 600; color: var(--inv-text); background: transparent; box-shadow: inset 0 0 0 1px var(--inv-text);
}
.kb-contact__button .kb-icon { width: 1rem; height: 1rem; color: var(--inv-primary); }

/* health protocol: a checklist between hairlines */
.kb-protocol__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--inv-text); }
.kb-protocol__list li { display: flex; align-items: center; gap: .7rem; padding: .7rem 0; font-size: .94rem; font-weight: 500; border-bottom: 1px solid var(--inv-line); }
.kb-protocol__list .kb-icon { color: var(--inv-primary); }
.kb-section > .kb-protocol__note { margin-top: 1.1rem; font-size: .88rem; color: var(--inv-grey); }

/* closing: the full photo fading into the slate, the thanks, the signature block, the letterhead rule */
.kb-closing { padding: 3.4rem var(--kb-pad) 2.4rem; }
.kb-closing--photo { padding-top: 0; }
.kb-closing__photo { position: relative; z-index: -1; height: min(94vw, 26rem); margin: 0 calc(var(--kb-pad) * -1); overflow: hidden; -webkit-mask: linear-gradient(180deg, #000 0, #000 52%, rgb(0 0 0 / .55) 74%, rgb(0 0 0 / .18) 90%, transparent 100%); mask: linear-gradient(180deg, #000 0, #000 52%, rgb(0 0 0 / .55) 74%, rgb(0 0 0 / .18) 90%, transparent 100%); }
.kb-closing__photo img { display: block; width: 100%; height: calc(100% + 60px); margin-top: -30px; object-fit: cover; object-position: center 35%; --inv-parallax: 30px; }
.kb-closing__photo::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 38%, color-mix(in srgb, var(--inv-deep) 55%, transparent) 64%, var(--inv-deep) 97%);
}
.kb-closing__body { position: relative; }
.kb-closing--photo .kb-closing__body { margin-top: -4.6rem; }
.kb-closing__label { margin: 0 0 .5rem; color: var(--inv-accent); }
.kb-closing__title { margin: 0 0 .8rem; font-family: var(--kb-display); font-weight: 600; font-size: clamp(2.1rem, 9.8vw, 2.6rem); line-height: .98; letter-spacing: -.045em; color: #fff; }
.kb-closing__title em { font-style: normal; color: var(--inv-accent); }
.kb-closing__message { margin: 0; max-width: 34ch; font-size: .93rem; line-height: 1.6; color: color-mix(in srgb, #fff 84%, var(--inv-deep)); }
.kb-sign {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; padding-top: 1rem;
    border-top: 1px solid color-mix(in srgb, #fff 20%, transparent);
}
.kb-sign__text { min-width: 0; }
.kb-sign__text p { margin: 0; }
.kb-sign__salam { font-family: var(--kb-serif); font-style: italic; font-size: 1.2rem; line-height: 1.2; color: #fff; }
.kb-sign__line { display: block; width: min(11rem, 100%); height: 1px; margin: 1.7rem 0 .5rem; background: color-mix(in srgb, #fff 55%, transparent); transform-origin: 0 50%; }
.kb-sign__name { font-weight: 600; font-size: .98rem; line-height: 1.35; color: #fff; }
.kb-sign__org { margin-top: .15rem !important; font-size: .8rem; line-height: 1.35; color: color-mix(in srgb, #fff 68%, transparent); }
.kb-closing__foot { margin-top: 1.4rem; }
.kb-closing__rule { --kb-ink: color-mix(in srgb, #fff 80%, transparent); }
.kb-closing__rule { background:
    linear-gradient(var(--inv-accent), var(--inv-accent)) left top / 3.5rem 3px no-repeat,
    linear-gradient(var(--kb-ink), var(--kb-ink)) left top / 100% 2px no-repeat,
    linear-gradient(var(--kb-ink), var(--kb-ink)) left bottom / 100% 1px no-repeat; }
.kb-closing__tagline { margin: .7rem 0 0; color: color-mix(in srgb, #fff 62%, transparent); }

/* ---------- 6. forms (shared RSVP + wishes, restyled): underline-only fields ---------- */
.kb-main .inv-form { gap: 1.05rem; text-align: left; }
.kb-main .inv-form label, .kb-main .inv-form__choices legend { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--inv-grey); }
.kb-main .inv-form input:not([type=radio]):not([type=checkbox]),
.kb-main .inv-form select,
.kb-main .inv-form textarea {
    width: 100%; min-height: 2.6rem; padding: .55rem 0; border: 0; border-radius: 0;
    font: 500 1rem/1.4 var(--kb-sans); letter-spacing: 0; text-transform: none; color: var(--inv-text); background: transparent;
    box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--inv-text) 35%, transparent);
    transition: box-shadow .2s ease;
}
.kb-main .inv-form textarea { min-height: 5.5rem; padding: .55rem .6rem; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-text) 25%, transparent); }
.kb-main .inv-form select {
    appearance: none; padding-right: 2rem;
    background: transparent 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 .2rem center / 1.1rem no-repeat;
}
.kb-main .inv-form input:not([type=radio]):focus-visible,
.kb-main .inv-form select:focus-visible { outline: none; box-shadow: inset 0 -2px 0 var(--inv-primary); }
.kb-main .inv-form textarea:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--inv-primary); }
.kb-main .inv-form button[type=submit] { width: 100%; min-height: 3rem; border-radius: 2px; font-weight: 600; letter-spacing: .02em; color: #fff; background: var(--inv-primary); }
.kb-main .inv-form .inv-button--outline { width: 100%; min-height: 2.75rem; border-radius: 2px; }
.kb-main .inv-form__notice { text-align: left; border-radius: 0; }

/* the three answers as a segmented row (the radio dot is hidden but still focusable) */
.kb-rsvp .inv-form__choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.kb-rsvp .inv-form__choices legend { margin-bottom: .55rem; padding: 0; }
.kb-rsvp .inv-form__choices label {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
    min-height: 4.4rem; padding: .7rem .25rem; cursor: pointer; text-align: center;
    font-size: .78rem; font-weight: 600; letter-spacing: 0; text-transform: none; line-height: 1.2; color: var(--inv-text); background: transparent;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-text) 25%, transparent);
    transition: background-color .25s ease, color .25s ease;
}
.kb-rsvp .inv-form__choices label + label { margin-left: -1px; }
.kb-rsvp .inv-form__choices input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.kb-rsvp .inv-form__choices label::before {
    content: ''; width: 1.1rem; height: 1.1rem; flex: none; background: currentColor; color: var(--inv-primary);
    -webkit-mask: var(--kb-choice-icon) center / contain no-repeat; mask: var(--kb-choice-icon) center / contain no-repeat;
}
.kb-rsvp .inv-form__choices label:nth-of-type(1) {
    --kb-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.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.kb-rsvp .inv-form__choices label:nth-of-type(2) {
    --kb-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.4' stroke-linecap='round'%3E%3Cpath d='M6.5 6.5l11 11M17.5 6.5l-11 11'/%3E%3C/svg%3E");
}
.kb-rsvp .inv-form__choices label:nth-of-type(3) {
    --kb-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.4' 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");
}
.kb-rsvp .inv-form__choices label:has(input:checked) { z-index: 1; color: #fff; background: var(--inv-deep); box-shadow: inset 0 0 0 1px var(--inv-deep), inset 0 -3px 0 var(--inv-primary); }
.kb-rsvp .inv-form__choices label:has(input:checked)::before { color: #fff; }
.kb-rsvp .inv-form__choices label:has(input:focus-visible) { outline: 2px solid var(--inv-primary); outline-offset: 2px; z-index: 2; }

/* ---------- 7. shared components ---------- */
.kb-main .inv-button { font-weight: 600; }
body .inv-nav {
    --inv-nav-bg: color-mix(in srgb, #fff 95%, transparent);
    --inv-nav-text: color-mix(in srgb, var(--inv-text) 72%, transparent);
    --inv-nav-active: var(--inv-primary);
    font-family: var(--kb-sans);
}

/* the room under the page (for the fixed menu and music button) continues the closing's deep colour; with the
   platform credit present, the credit's own measured colour wins */
.kb-main ~ .inv-music__space { background: var(--inv-deep); }
.kb-main ~ .kb-branding ~ .inv-music__space { background: var(--inv-end-bg, var(--inv-deep)); }

/* ---------- 8. screen sizes ---------- */

/* short phones: the cover photo and type step down so everything fits without scrolling */
@media (max-height: 760px) {
    .kb-cover { --cover-photo-h: clamp(7.5rem, 25svh, 13rem); padding-top: 1.2rem; padding-bottom: 1.3rem; }
    .kb-cover__rule { margin: .7rem 0 .85rem; }
    .kb-cover__title { font-size: clamp(2.05rem, 9.8vw, 2.5rem); }
    .kb-cover__title--long { font-size: clamp(1.6rem, 7.6vw, 2rem); }
    .kb-cover__frame { margin-top: .85rem; }
    .kb-cover__facts { margin-top: .85rem; }
    .kb-cover__day { font-size: 2.35rem; }
    .kb-cover__guest { margin-top: .85rem; }
    .kb-cover__quote { margin-top: .75rem; font-size: 1.02rem; }
    .kb-cover__open { margin-top: .9rem; }
}
@media (max-height: 660px) {
    .kb-cover { --cover-photo-h: clamp(6.5rem, 20svh, 10rem); padding-top: 1rem; padding-bottom: 1.1rem; }
    .kb-cover .kb-logo--sm { --logo-size: 2.4rem; }
    .kb-cover__rule { margin: .6rem 0 .7rem; }
    .kb-cover__title { margin-top: .3rem; font-size: clamp(1.85rem, 8.8vw, 2.2rem); }
    .kb-cover__title--long { font-size: clamp(1.45rem, 7vw, 1.8rem); }
    .kb-cover__frame { margin-top: .7rem; padding: 4px; }
    .kb-cover__facts { margin-top: .7rem; }
    .kb-cover__fact { padding-top: .45rem; padding-bottom: .45rem; }
    .kb-cover__day { font-size: 2.1rem; }
    .kb-cover__guest { margin-top: .7rem; }
    .kb-cover__guest-name { font-size: 1.08rem; }
    .kb-cover__quote { margin-top: .6rem; font-size: .95rem; line-height: 1.3; }
    .kb-cover__open { margin-top: .75rem; min-height: 2.8rem; padding: .55rem 1.2rem; }
}
/* very short screens (in-app browsers): a smaller photo, quote and title so everything fits */
@media (max-height: 600px) {
    .kb-cover { --cover-photo-h: clamp(5.5rem, 17svh, 8rem); padding-top: .85rem; padding-bottom: 1rem; }
    .kb-cover__title { font-size: clamp(1.65rem, 8vw, 1.95rem); }
    .kb-cover__title--long { font-size: clamp(1.35rem, 6.4vw, 1.6rem); }
    .kb-cover__fact dd { font-size: .74rem; }
    .kb-cover__quote { font-size: .9rem; }
}

/* wide screens: the phone-width page on a warm grey desk */
@media (min-width: 560px) {
    body.kb-body { background: color-mix(in srgb, var(--inv-soft) 55%, var(--inv-line)); }
    .kb-main { box-shadow: 0 0 0 1px var(--inv-line), 0 30px 60px -30px rgb(0 0 0 / .35); }
}

/* ---------- 9. motion ---------- */
@keyframes kb-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes kb-rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes kb-unveil { from { clip-path: inset(-12px -12px 100% -12px); } to { clip-path: inset(-12px); } }
@keyframes kb-settle { from { transform: scale(1.08); } to { transform: scale(1); } }

/* cover (≤ 2.5 s, once): the letterhead rule draws from the left (.15–1.05 s), the photo is unveiled top-down
   (.4–1.5 s) while it settles from a slight zoom (to 2.2 s); the text follows through its inv-enter delays */
html.inv-anim .kb-cover__rule { animation: kb-rule .9s cubic-bezier(.7, 0, .2, 1) .15s both; }
html.inv-anim .kb-cover__frame { animation: kb-unveil 1.1s cubic-bezier(.7, 0, .2, 1) .4s both; }
html.inv-anim .kb-cover__photo { animation: kb-settle 1.8s cubic-bezier(.2, .7, .2, 1) .4s both; }

/* the brand segment of each heading grows along its hairline when the heading appears */
html.inv-anim .kb-heading__rule::before { transform: scaleX(0); transition: transform .9s cubic-bezier(.7, 0, .2, 1) .25s; }
html.inv-anim .kb-heading.is-revealed .kb-heading__rule::before { transform: none; }

/* the signature line and the closing letterhead rule draw once */
html.inv-anim .kb-sign__line { transform: scaleX(0); transition: transform 1s cubic-bezier(.7, 0, .2, 1) .3s; }
html.inv-anim .kb-closing__body.is-revealed .kb-sign__line { transform: none; }
html.inv-anim .kb-closing__rule { transform: scaleX(0); transition: transform 1s cubic-bezier(.7, 0, .2, 1) .5s; }
html.inv-anim .kb-closing__body.is-revealed .kb-closing__rule { transform: none; }

/* the reply check draws itself */
html.inv-anim .kb-form__sent .kb-form__check circle { animation: kb-draw .6s ease-out both; }
html.inv-anim .kb-form__sent .kb-form__check path { animation: kb-draw .4s ease-out .45s both; }

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

/* the open button only rises in with the text; no breathing ring (calm, formal) */
html.inv-anim .kb-cover__open.inv-enter { animation: inv-enter 1.1s cubic-bezier(.2, .7, .2, 1) var(--enter-delay, 0s) both; }
/* list items typed in lower case ("doorprize, makan malam") still start with a capital */
.kb-about__text::first-letter { text-transform: uppercase; }

/* ---------- 10. intro scene "Surat Resmi di Meja Direksi" (scene.json + sections/_scene) ----------
   The intro is teleported to <body>: everything is scoped to .kb-scene-* and body.kb-body, colours from the variant. */
.kb-scene-desk {
    position: absolute; inset: 0;
    background:
        repeating-linear-gradient(90deg, color-mix(in srgb, #fff 4%, transparent) 0 1px, transparent 1px 25%),
        radial-gradient(70% 45% at 85% 8%, color-mix(in srgb, var(--inv-primary) 30%, transparent), transparent 75%),
        radial-gradient(90% 60% at 0% 100%, color-mix(in srgb, #fff 7%, transparent), transparent 70%),
        var(--inv-deep);
}
/* the sheets: white paper with a soft shadow on the desk */
.kb-scene-agenda, .kb-scene-sheet { position: absolute; inset: 0; background: var(--kb-paper); box-shadow: 0 30px 50px -24px rgb(0 0 0 / .55), 0 0 0 1px rgb(0 0 0 / .04); }
.kb-scene-agenda { display: flex; flex-direction: column; gap: 4.2%; padding: 13% 9% 0 22%; border-top: 4px solid var(--inv-primary); background-color: var(--inv-soft); }
.kb-scene-agenda span { display: block; width: var(--w); height: 5px; border-radius: 1px; background: color-mix(in srgb, var(--inv-text) 14%, transparent); }
.kb-scene-agenda span:nth-child(odd)::before { content: ''; float: left; width: 2.2rem; height: 5px; margin-left: -3rem; background: color-mix(in srgb, var(--inv-primary) 55%, transparent); }

.kb-scene-sheet { padding: 7% 8% 0; color: var(--inv-text); font-family: var(--kb-sans); }
/* faint column guides on the letter too */
.kb-scene-sheet::before { content: ''; position: absolute; inset: 0 8%; pointer-events: none; background: repeating-linear-gradient(90deg, var(--kb-guide) 0 1px, transparent 1px 25%); border-right: 1px solid var(--kb-guide); }
.kb-scene-sheet__head { position: relative; display: flex; align-items: center; gap: .75rem; }
.kb-scene-sheet__logo { display: grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; background: var(--inv-primary); }
.kb-scene-sheet__logo b { padding-bottom: .1em; font: 700 .95rem/1 var(--kb-display); letter-spacing: -.03em; color: #fff; box-shadow: inset 0 -2px 0 color-mix(in srgb, #fff 70%, transparent); }
.kb-scene-sheet__logo--img { background: var(--kb-paper) center / 78% no-repeat; box-shadow: inset 0 0 0 1px var(--inv-line); }
.kb-scene-sheet__org { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.kb-scene-sheet__org b { font: 600 .9rem/1.25 var(--kb-display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.kb-scene-sheet__org small { margin-top: .1rem; font-size: .68rem; color: var(--inv-grey); }
.kb-scene-sheet__rule {
    position: relative; display: block; height: 6px; margin: .8rem 0 .7rem; transform-origin: 0 50%;
    background:
        linear-gradient(var(--inv-primary), var(--inv-primary)) left top / 3.5rem 3px no-repeat,
        linear-gradient(var(--inv-text), var(--inv-text)) left top / 100% 2px no-repeat,
        linear-gradient(var(--inv-text), var(--inv-text)) left bottom / 100% 1px no-repeat;
}
.kb-scene-sheet__ref {
    position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem 1rem; margin: 0;
    font-size: .6rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--inv-primary);
}
.kb-scene-sheet__ref span + span { font-weight: 500; letter-spacing: .1em; color: var(--inv-grey); }
.kb-scene-sheet__body { position: absolute; left: 8%; right: 8%; top: 22%; bottom: 33%; display: flex; flex-direction: column; justify-content: space-between; }
.kb-scene-sheet__body span:first-child { height: 7px; background: color-mix(in srgb, var(--inv-text) 24%, transparent); }
.kb-scene-sheet__body span { display: block; width: var(--w); height: 5px; border-radius: 1px; transform-origin: 0 50%; background: color-mix(in srgb, var(--inv-text) 11%, transparent); }
.kb-scene-sheet__sign { position: absolute; right: 9%; bottom: 10%; display: flex; flex-direction: column; align-items: flex-start; width: 42%; }
.kb-scene-sheet__sign small { font-size: .6rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--inv-grey); }
.kb-scene-sheet__sign span { display: block; width: 100%; height: 1px; margin: 2.6rem 0 .35rem; background: var(--inv-text); transform-origin: 0 50%; }

/* the cover photo as a print: a white mat with a hairline, crop marks in the brand colour, a paper clip */
.kb-scene-print { position: absolute; inset: 0; padding: 5px; background: var(--kb-paper); box-shadow: 0 18px 30px -16px rgb(0 0 0 / .6), inset 0 0 0 1px var(--inv-line); }
.kb-scene-print::before, .kb-scene-print::after {
    content: ''; position: absolute; width: 13px; height: 13px;
    background: linear-gradient(var(--inv-primary), var(--inv-primary)) 0 0 / 100% 1.5px no-repeat, linear-gradient(var(--inv-primary), var(--inv-primary)) 0 0 / 1.5px 100% no-repeat;
}
.kb-scene-print::before { top: -7px; left: -7px; }
.kb-scene-print::after { right: -7px; bottom: -7px; transform: rotate(180deg); }
.kb-scene-print__photo {
    position: relative; display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden;
    background:
        repeating-linear-gradient(90deg, color-mix(in srgb, #fff 7%, transparent) 0 1px, transparent 1px 25%),
        radial-gradient(90% 70% at 0% 0%, color-mix(in srgb, #fff 8%, transparent), transparent 70%),
        var(--inv-deep);
}
.kb-scene-print__photo b { font: 700 2.4rem/1 var(--kb-display); letter-spacing: -.05em; color: #fff; }
.kb-scene-print__photo i { position: absolute; inset: 0; background: center 40% / cover no-repeat; }
.kb-scene-print__photo b::after { content: ''; display: block; width: 40%; height: 3px; margin-top: .25rem; background: var(--inv-accent); }
.kb-scene-print__clip { position: absolute; right: 16%; top: -14%; width: 7%; min-width: 14px; height: auto; stroke: color-mix(in srgb, var(--inv-grey) 70%, #fff); filter: drop-shadow(0 1px 1px rgb(0 0 0 / .35)); }

/* the fountain pen: lacquer in the brand colour over the band colour, ring and clip in the accent */
.kb-scene-pen { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 8px 6px rgb(0 0 0 / .4)); }
.kb-scene-pen__nib { fill: color-mix(in srgb, var(--inv-accent) 45%, #d9d4c8); }
.kb-scene-pen__slit { stroke: color-mix(in srgb, var(--inv-deep) 70%, transparent); stroke-width: 1; }
.kb-scene-pen__grip { fill: color-mix(in srgb, var(--inv-deep) 70%, #000); }
.kb-scene-pen__body { fill: color-mix(in srgb, var(--inv-primary) 55%, var(--inv-deep)); stroke: color-mix(in srgb, #fff 22%, transparent); stroke-width: 1; }
.kb-scene-pen__ring { fill: var(--inv-accent); }
.kb-scene-pen__clip { fill: none; stroke: var(--inv-accent); stroke-width: 2.4; stroke-linecap: round; }
.kb-scene-pen__shine { stroke: rgb(255 255 255 / .35); stroke-width: 2; stroke-linecap: round; }

/* the committee's stamp: brand-colour ink pressed into the paper */
.inv-scene__layer:has(.kb-scene-stamp) { mix-blend-mode: multiply; }
.kb-scene-stamp { display: block; width: 100%; height: 100%; stroke: var(--inv-primary); fill: var(--inv-primary); }
.kb-scene-stamp__ring { font: 700 9.4px/1 var(--kb-sans); letter-spacing: .14em; stroke: none; }
.kb-scene-stamp__mono { font: 700 22px/1 var(--kb-display); letter-spacing: -.03em; stroke: none; }

/* the letter writes itself: the letterhead rule draws from the left, the body lines and the signature line follow */
@keyframes kb-scene-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.inv-intro--scene.is-playing .kb-scene-sheet__rule { animation: kb-scene-line .9s cubic-bezier(.7, 0, .2, 1) 1.15s both; }
.inv-intro--scene.is-playing .kb-scene-sheet__body span { animation: kb-scene-line .55s cubic-bezier(.6, 0, .3, 1) var(--d, 1.6s) both; }
.inv-intro--scene.is-playing .kb-scene-sheet__sign span { animation: kb-scene-line .8s cubic-bezier(.7, 0, .2, 1) 3.3s both; }

/* the name card: the "Undangan resmi" letter card — white, the brand edge on top, left-aligned like the page */
body.kb-body .inv-intro--scene .inv-scene__card {
    top: 45%; aspect-ratio: auto; place-content: center stretch; padding: 1.6rem 1.5rem 1.5rem; text-align: left;
    -webkit-mask: none; mask: none; -webkit-backdrop-filter: none; backdrop-filter: none;
    background: var(--kb-paper); border-top: 3px solid var(--inv-primary);
    box-shadow: 0 1px 0 var(--inv-line), 0 26px 44px -24px color-mix(in srgb, var(--inv-deep) 70%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--inv-line) 70%, transparent);
}
body.kb-body .inv-scene__card .inv-intro__label { margin: 0 0 .75rem; padding-bottom: .55rem; border-bottom: 1px solid var(--inv-line); font: 600 .62rem/1.3 var(--kb-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--inv-primary); }
body.kb-body .inv-scene__card .inv-intro__names { margin: 0; font-family: var(--kb-display) !important; font-weight: 600; font-size: clamp(1.6rem, 7.6vw, 2.15rem); line-height: 1.06; letter-spacing: -.035em; color: var(--inv-text); text-wrap: balance; }
body.kb-body .inv-scene__card .inv-intro__rule { display: block; width: 2.75rem; height: 3px; margin: 1rem 0 .7rem; background: var(--inv-primary); }
body.kb-body .inv-scene__card .inv-intro__date { margin: 0; font: 500 .74rem/1.4 var(--kb-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--inv-grey); }

@media (prefers-reduced-motion: reduce) {
    .inv-intro--scene.is-playing .kb-scene-sheet__rule,
    .inv-intro--scene.is-playing .kb-scene-sheet__body span,
    .inv-intro--scene.is-playing .kb-scene-sheet__sign span { animation: none; }
}
