/*
 * Template "Buku Tahunan" (Wisuda & Kelulusan) — a school yearbook and a corridor of lockers: deep locker metal (teal by
 * default) with a hot-pink marker and a sunny-yellow highlighter on lined notebook paper and kraft. Signature pieces: the
 * photo as a taped polaroid with washi tape, the "LULUS!" stamp and the varsity patch (sections/_polaroid, _stamp,
 * _badge), marker doodles (sections/_defs), locker doors with vents and a combination lock (sections/_locker), the
 * "Ketuk lokernya" interaction (sections/institution) and the "Dulu & Sekarang" slider (sections/_compare).
 * Mobile-first, one column (~460px) on the locker wall on wide screens.
 *
 * Colours come from the chosen colour variant (template.json → <x-inv.head>):
 *   --inv-primary (the locker metal, titles, buttons)   --inv-accent (the highlighter: strokes, sticky notes, buttons)
 *   --inv-petal (the marker: handwriting, stamps, felt)  --inv-deep (the locker wall at night)   --inv-shine (light text on deep)
 *   --inv-background (notebook paper)   --inv-text   --inv-soft (mint/blue/lilac notes)   --inv-leaf (kraft paper, wood)
 *
 * Section tones (set on each section in its partial): .bt-tone--light (lined notebook paper with a margin line and punched
 * holes), --soft (kraft paper), --deep (the locker wall). Motion only runs with html.inv-anim (set by <x-inv.head>
 * unless the guest prefers reduced motion); without it everything is shown finished.
 *
 * Revision standard (docs/template-guide.md section 10): the cover is sized in px steps per screen height, never svh/vh;
 * ornaments stay clear of faces and of the two top corners; photos melt into sections with masks; the closing is
 * compact and its names end above the bottom menu. Tilts use the `rotate` property, so they add to the reveal and
 * entrance animations (which use `transform`) instead of being replaced by them.
 *
 * Contents: 1 base · 2 tones · 3 shared pieces (heading, divider, tape, note, polaroid, stamp, badge, locker door,
 *           compare, tap marker) · 4 cover · 5 sections in page order · 6 forms · 7 shared components
 *           · 8 screen sizes · 9 motion · 10 intro scene
 */

/* ---------- 1. base ---------- */
:root {
    /* defaults = the "Teal Pink" variant (the variant's colours override these) */
    --inv-primary: #0d7a72;
    --inv-accent: #facc15;
    --inv-background: #fffaf0;
    --inv-text: #14262a;
    --inv-deep: #073f3c;
    --inv-shine: #fde68a;
    --inv-soft: #a7ece1;
    --inv-petal: #ec2f8b;
    --inv-leaf: #c99560;
    --inv-radius: 12px;

    --bt-title: 'Bricolage Grotesque', 'Arial Black', system-ui, sans-serif;
    --bt-hand: 'Caveat', 'Segoe Print', 'Comic Sans MS', cursive;
    --bt-varsity: 'Graduate', 'Rockwell', Georgia, serif;
    --bt-script: var(--inv-font-display, 'Parisienne'), 'Brush Script MT', cursive;
    --bt-sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bt-col: 460px;

    /* the locker metal (primary), the felt (petal), the highlighter (accent) */
    --bt-metal-1: color-mix(in srgb, var(--inv-primary) 62%, #000);
    --bt-metal-2: var(--inv-primary);
    --bt-metal-3: color-mix(in srgb, var(--inv-primary) 72%, #fff);
    --bt-pink-1: color-mix(in srgb, var(--inv-petal) 78%, #000);
    --bt-pink-2: color-mix(in srgb, var(--inv-petal) 88%, #fff);
    --bt-hi: color-mix(in srgb, var(--inv-accent) 82%, transparent);
    --bt-accent-ink: color-mix(in srgb, var(--inv-accent) 62%, #4a3000);
    --bt-note: color-mix(in srgb, var(--inv-accent) 48%, #fffbe8);
    --bt-mint: color-mix(in srgb, var(--inv-soft) 70%, #fff);

    --bt-white: #fffefa;
    --bt-ink: color-mix(in srgb, var(--inv-primary) 45%, var(--inv-deep));
    --bt-muted: color-mix(in srgb, var(--inv-text) 74%, var(--inv-background));
    --bt-cream: color-mix(in srgb, #fff 84%, transparent);
    --bt-line: color-mix(in srgb, var(--inv-primary) 28%, transparent);
    --bt-rule: color-mix(in srgb, var(--inv-primary) 15%, transparent);
    --bt-margin: color-mix(in srgb, var(--inv-petal) 48%, transparent);
    --bt-kraft: var(--inv-leaf);
    --bt-drop: 0 18px 28px -18px rgb(0 0 0 / .5);
    --bt-pop: 3px 3px 0 var(--inv-deep);

    /* lined notebook paper: blue rules every 30px */
    --bt-lines: repeating-linear-gradient(180deg, transparent 0 29px, var(--bt-rule) 29px 30px);
    /* the locker wall: one door with its vents, handle and number plate per 90×320 tile (a mask, so it takes any colour) */
    --bt-lockers: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='320' viewBox='0 0 90 320'%3E%3Crect x='3' y='3' width='84' height='314' rx='4' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M24 28h42M24 37h42M24 46h42M24 55h42M24 265h42M24 274h42M24 283h42M24 292h42' stroke='%23000' stroke-width='4' stroke-linecap='round'/%3E%3Crect x='70' y='140' width='6' height='32' rx='3'/%3E%3Crect x='33' y='82' width='24' height='11' rx='2'/%3E%3C/svg%3E");
    /* the wire coil of a spiral notebook: one ring per 24px */
    --bt-coil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='30' viewBox='0 0 24 30'%3E%3Ccircle cx='12' cy='22' r='3.3' fill='%23000' fill-opacity='.5'/%3E%3Cpath d='M10.5 22.5C8 13 9 3.5 14 3s6 7 3 16' fill='none' stroke='%23727c83' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M11.6 20C10 13 10.6 6 13.6 5.4' fill='none' stroke='%23e4e9ec' stroke-width='1.1' stroke-linecap='round'/%3E%3C/svg%3E");

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

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

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

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

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

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

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

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

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

/* ---------- 2. section tones ---------- */
/* light: lined notebook paper with a pink margin line and a column of punched holes */
.bt-tone--light {
    background:
        radial-gradient(.36rem circle at .55rem 3.6rem, color-mix(in srgb, var(--inv-text) 24%, transparent) 92%, transparent 100%) 0 0 / 100% 7.2rem repeat-y,
        linear-gradient(90deg, transparent 1.15rem, var(--bt-margin) 1.15rem calc(1.15rem + 1.5px), transparent calc(1.15rem + 1.5px)),
        var(--bt-lines),
        var(--inv-background);
}
/* soft: kraft paper with fibres */
.bt-tone--soft {
    background:
        radial-gradient(color-mix(in srgb, #3d2410 30%, transparent) .7px, transparent 1.3px) 0 0 / 11px 11px,
        radial-gradient(color-mix(in srgb, #fff 34%, transparent) .6px, transparent 1.1px) 5px 6px / 13px 13px,
        linear-gradient(172deg, color-mix(in srgb, var(--bt-kraft) 86%, #fff), var(--bt-kraft) 60%, color-mix(in srgb, var(--bt-kraft) 88%, #5a3410));
}
/* deep: the locker wall at night, a glow of the metal and a little pink light */
.bt-tone--deep {
    color: #fff;
    background:
        radial-gradient(90% 40% at 12% 0%, color-mix(in srgb, var(--inv-primary) 80%, transparent), transparent 75%),
        radial-gradient(70% 34% at 100% 100%, color-mix(in srgb, var(--inv-petal) 22%, transparent), transparent 75%),
        var(--inv-deep);
}
.bt-tone--deep::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: var(--inv-shine); opacity: .075;
    -webkit-mask: var(--bt-lockers) center top / 90px 320px repeat; mask: var(--bt-lockers) center top / 90px 320px repeat;
}
.bt-tone--deep a:not(.inv-button) { color: var(--inv-shine); }
.bt-tone--deep .bt-arabic { color: var(--inv-shine); }

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

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

/* heading: a handwritten eyebrow after a star, a bold title, the last word in marker over highlighter, the divider */
.bt-heading { margin: 0 0 1.9rem; }
.bt-heading__eyebrow {
    display: inline-flex; align-items: center; gap: .35rem; margin: 0 0 .25rem;
    font-family: var(--bt-hand); font-size: 1.35rem; font-weight: 700; line-height: 1.1; color: var(--inv-petal);
}
.bt-heading__eyebrow svg { width: 1.05rem; height: 1.05rem; flex: none; overflow: visible; color: var(--bt-accent-ink); }
.bt-heading__title {
    margin: 0; font-family: var(--bt-title); font-size: 2.15rem; font-weight: 800; line-height: 1.05;
    letter-spacing: -.02em; color: var(--bt-ink); text-wrap: balance;
}
.bt-heading__title em {
    display: inline-block; padding: 0 .14em; font-family: var(--bt-hand); font-style: normal; font-weight: 700;
    font-size: 1.22em; line-height: .9; letter-spacing: 0; color: var(--inv-petal); rotate: -2deg;
    background: linear-gradient(176deg, transparent 50%, var(--bt-hi) 50% 86%, transparent 86%);
}
.bt-heading__divider { margin: .8rem auto 0; }
.bt-tone--deep .bt-heading__eyebrow { color: var(--inv-shine); }
.bt-tone--deep .bt-heading__eyebrow svg { color: var(--inv-accent); }
.bt-tone--deep .bt-heading__title { color: #fff; }
.bt-tone--deep .bt-heading__title em { color: var(--inv-accent); background: linear-gradient(176deg, transparent 52%, color-mix(in srgb, var(--inv-petal) 70%, transparent) 52% 86%, transparent 86%); }
.bt-tone--soft .bt-heading__eyebrow { color: color-mix(in srgb, var(--inv-petal) 82%, #000); }

/* the doodle divider */
.bt-divider { display: block; width: min(12.5rem, 68%); height: auto; overflow: visible; }
.bt-divider__line { stroke: var(--inv-primary); }
.bt-divider__heart { color: var(--inv-petal); }
.bt-divider__star { color: var(--bt-accent-ink); }
.bt-divider__spark { color: var(--inv-petal); }
.bt-tone--deep .bt-divider__line { stroke: var(--inv-shine); }
.bt-tone--deep .bt-divider__star { color: var(--inv-accent); }

/* washi tape: a strip with torn ends, slightly see-through */
.bt-tape {
    position: absolute; z-index: 3; display: block; width: 4.4rem; height: 1.3rem; pointer-events: none; opacity: .93;
    clip-path: polygon(0 10%, 5% 0, 95% 6%, 100% 0, 97% 30%, 100% 55%, 96% 80%, 100% 100%, 5% 94%, 0 100%, 3% 70%, 0 45%, 3% 22%);
    box-shadow: 0 2px 3px rgb(0 0 0 / .14);
}
.bt-tape--pink { background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--inv-petal) 82%, #fff) 0 6px, color-mix(in srgb, var(--inv-petal) 48%, #fff) 6px 12px); }
.bt-tape--yellow { background: radial-gradient(circle, color-mix(in srgb, #fff 75%, transparent) 1.5px, transparent 2px) 0 0 / 8px 8px, color-mix(in srgb, var(--inv-accent) 88%, #fff); }
.bt-tape--teal { background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--inv-primary) 70%, #fff) 0 5px, color-mix(in srgb, var(--inv-primary) 40%, #fff) 5px 10px); }

/* a sticky note (yellow) taped at a small tilt */
.bt-note { position: relative; margin: 0; padding: 1.15rem 1.1rem 1rem; background: var(--bt-note); color: var(--inv-text); rotate: -1.4deg; box-shadow: 0 14px 18px -12px rgb(0 0 0 / .45); border-radius: 2px 2px 14px 2px; }
.bt-note__tape { top: -.62rem; left: 50%; margin-left: -2.2rem; rotate: -3deg; }

/* the polaroid (sections/_polaroid): --pw is its width, the photo window 4:4.6 */
.bt-polaroid {
    --pw: 15rem; --pol-tilt: -3deg; --pol-pos: center 25%;
    position: relative; width: var(--pw); margin: 0 auto; flex: none;
    padding: calc(var(--pw) * .055) calc(var(--pw) * .055) calc(var(--pw) * .2);
    background: var(--bt-white); border-radius: 3px; rotate: var(--pol-tilt);
    filter: drop-shadow(0 14px 16px rgb(0 0 0 / .38));
}
.bt-polaroid__window {
    position: relative; aspect-ratio: 4 / 4.6; overflow: hidden;
    background: radial-gradient(80% 60% at 50% 30%, color-mix(in srgb, var(--inv-primary) 70%, #fff), transparent 75%), linear-gradient(170deg, var(--inv-primary), var(--inv-deep));
}
.bt-polaroid__photo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--pol-pos); }
.bt-polaroid__photo--bg { background: var(--pol-pos) / cover no-repeat; }
.bt-polaroid__gloss { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(125deg, rgb(255 255 255 / .16), transparent 32%, transparent 70%, rgb(255 255 255 / .08)); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); }
.bt-polaroid__empty { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: .2rem; color: var(--inv-shine); }
.bt-polaroid__empty-cap { width: 38%; height: auto; overflow: visible; }
.bt-polaroid__initials { font-family: var(--bt-title); font-weight: 800; font-size: calc(var(--pw) * .19); line-height: 1; color: #fff; white-space: nowrap; }
.bt-polaroid__caption {
    position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--pw) * .2); display: flex; align-items: center;
    padding: 0 30% 0 8%; font-family: var(--bt-hand); font-size: calc(var(--pw) * .11); font-weight: 700; line-height: 1; color: var(--bt-ink);
}
.bt-polaroid__tape { width: calc(var(--pw) * .32); height: calc(var(--pw) * .085); top: calc(var(--pw) * -.03); }
.bt-polaroid__tape--left { left: calc(var(--pw) * -.08); rotate: -34deg; }
.bt-polaroid__tape--right { right: calc(var(--pw) * -.08); rotate: 32deg; }
.bt-polaroid__stamp { position: absolute; z-index: 4; right: calc(var(--pw) * -.07); bottom: calc(var(--pw) * -.02); width: calc(var(--pw) * .33); rotate: -14deg; }
.bt-polaroid__badge { position: absolute; z-index: 4; left: calc(var(--pw) * -.12); top: 56%; width: calc(var(--pw) * .27); rotate: -12deg; filter: drop-shadow(0 4px 4px rgb(0 0 0 / .3)); }

/* the "LULUS!" stamp */
.bt-stamp { display: block; height: auto; overflow: visible; }
.bt-stamp__ink { stroke: var(--inv-petal); color: var(--inv-petal); opacity: .9; }
.bt-stamp__band { fill: var(--inv-petal); stroke: none; }
.bt-stamp__word { font-family: var(--bt-varsity); font-size: 17px; letter-spacing: .02em; fill: #fff; stroke: none; }
.bt-stamp__stars use { stroke: none; }

/* the varsity patch */
.bt-badge { display: block; height: auto; overflow: visible; }
.bt-badge__disc { fill: var(--inv-deep); }
.bt-badge__text { font-family: var(--bt-varsity); font-size: 28px; fill: var(--inv-accent); stroke: #fff; stroke-width: 2.6px; paint-order: stroke; stroke-linejoin: round; }
.bt-badge__star { color: #fff; }

/* the locker door art */
.bt-door-art { display: block; }
.bt-door-art__number { font-family: var(--bt-varsity); font-size: 10px; fill: #2a3236; }
.bt-door-art__heart { color: var(--inv-petal); }
.bt-door-art__dot { fill: var(--inv-accent); }
.bt-door-art__star { color: #fff; }

/* "Dulu & Sekarang" (sections/_compare): a big taped polaroid, the handle drags */
.bt-compare-wrap { position: relative; width: min(100%, 18.5rem); margin: .8rem auto 0; padding: .7rem .7rem 0; background: var(--bt-white); border-radius: 3px; rotate: -2deg; filter: drop-shadow(0 14px 16px rgb(0 0 0 / .35)); }
.bt-compare { position: relative; aspect-ratio: 4 / 4.8; overflow: hidden; touch-action: pan-y; background: var(--inv-deep); }
.bt-compare__img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.bt-compare__then { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.bt-compare__then .bt-compare__img { filter: sepia(.4) saturate(1.2) contrast(1.05) hue-rotate(-8deg); }
.bt-compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 8px rgb(0 0 0 / .5); pointer-events: none; }
.bt-compare__knob {
    position: absolute; left: 50%; top: 55%; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; margin: -1.45rem 0 0 -1.45rem; border-radius: 50%;
    color: var(--inv-deep); background: var(--inv-accent); box-shadow: 0 0 0 3px #fff, 0 8px 18px -6px rgb(0 0 0 / .6);
}
.bt-compare__knob svg { width: 1.3rem; height: 1.3rem; }
.bt-compare .bt-tap { inset: auto; left: 50%; top: 55%; width: 5.5rem; height: 5.5rem; margin: -2.75rem 0 0 -2.75rem; }
.bt-compare .bt-tap__ring { left: 50%; top: 50%; width: 100%; margin: -50% 0 0 -50%; }
.bt-compare .bt-tap__hand { left: 46%; top: 58%; }
.bt-compare__hint {
    position: absolute; left: 50%; bottom: .8rem; translate: -50% 0; white-space: nowrap; pointer-events: none;
    padding: .34rem .9rem; border-radius: 999px; font: 700 .76rem/1.2 var(--bt-title);
    color: #fff; background: var(--inv-petal); box-shadow: var(--bt-pop);
}
.bt-compare__range { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.bt-compare__range:focus-visible { opacity: .01; }
.bt-compare:has(.bt-compare__range:focus-visible) .bt-compare__knob { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--inv-petal); }
.bt-compare__labels { display: flex; align-items: center; justify-content: space-between; gap: .4rem; height: 3.3rem; padding: 0 .3rem; font-family: var(--bt-hand); font-size: 1.45rem; font-weight: 700; color: var(--bt-ink); }
.bt-compare__labels svg { width: 3.4rem; height: auto; overflow: visible; color: var(--inv-petal); }
.bt-compare__tape { top: -.55rem; }
.bt-compare__tape--left { left: -1.2rem; rotate: -32deg; }
.bt-compare__tape--right { right: -1.2rem; rotate: 30deg; }

/* the tap marker: two pulsing rings, a tapping hand and a label */
.bt-tap { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; pointer-events: none; }
.bt-tap__ring {
    position: absolute; left: 50%; top: 52%; width: 5.6rem; aspect-ratio: 1; margin: -2.8rem 0 0 -2.8rem; border-radius: 50%;
    border: 3px solid var(--inv-accent); opacity: 0;
}
.bt-tap__hand {
    position: absolute; left: 54%; top: 56%; width: 2.6rem; height: 2.6rem;
    fill: #fff; stroke: var(--inv-deep); stroke-width: 1.5; stroke-linejoin: round;
    filter: drop-shadow(0 4px 6px rgb(0 0 0 / .4));
}
.bt-tap__label {
    position: absolute; left: 50%; bottom: -2.9rem; translate: -50% 0; white-space: nowrap;
    padding: .36rem .95rem; border-radius: 999px; font: 700 .8rem/1.2 var(--bt-title); letter-spacing: .01em;
    color: #fff; background: var(--inv-petal); box-shadow: var(--bt-pop), 0 0 0 2px #fff;
}

/* ---------- 4. cover ---------- */
.bt-cover {
    --pw: 15rem;
    position: fixed; inset: 0; z-index: 30; overflow-x: hidden; overflow-y: auto;
    display: flex; flex-direction: column; align-items: center; justify-content: safe center;
    padding: 2.9rem 1.3rem 1.7rem; isolation: isolate; color: #fff;
    background:
        radial-gradient(70% 36% at 50% 30%, color-mix(in srgb, var(--inv-primary) 88%, transparent), transparent 75%),
        radial-gradient(60% 30% at 0% 100%, color-mix(in srgb, var(--inv-petal) 26%, transparent), transparent 75%),
        radial-gradient(50% 26% at 100% 4%, color-mix(in srgb, var(--inv-accent) 18%, transparent), transparent 75%),
        var(--inv-deep);
    transition: opacity .9s ease;
}
/* the locker wall */
.bt-cover::before {
    content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: .12; background: var(--inv-shine);
    -webkit-mask: var(--bt-lockers) center top / 90px 320px repeat; mask: var(--bt-lockers) center top / 90px 320px repeat;
}
/* confetti drifting down (a living ground) */
.bt-cover::after {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .85;
    background:
        radial-gradient(3px 3px at 9% 12%, var(--inv-accent), transparent),
        radial-gradient(2.5px 2.5px at 22% 70%, var(--inv-petal), transparent),
        radial-gradient(3px 3px at 84% 22%, var(--inv-petal), transparent),
        radial-gradient(2.5px 2.5px at 93% 64%, var(--inv-accent), transparent),
        radial-gradient(2px 2px at 6% 48%, var(--inv-shine), transparent),
        radial-gradient(2px 2px at 72% 90%, var(--inv-shine), transparent),
        radial-gradient(2.5px 2.5px at 40% 4%, var(--bt-mint), transparent),
        radial-gradient(2.5px 2.5px at 60% 38%, var(--bt-mint), transparent);
    background-size: 100% 460px;
}
.bt-cover__glow {
    position: absolute; z-index: -1; left: 50%; top: 8%; width: 34rem; height: 30rem; margin-left: -17rem; border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--inv-shine) 34%, transparent), transparent);
}
/* doodles floating on the sides (in the band of the photo, clear of the top corners and of the text) */
.bt-cover__doodle { position: absolute; z-index: -1; width: 1.9rem; height: auto; overflow: visible; pointer-events: none; }
.bt-cover__doodle--star1 { left: 6%; top: 19%; color: var(--inv-accent); }
.bt-cover__doodle--heart { right: 6%; top: 17%; width: 2.1rem; color: var(--inv-petal); }
.bt-cover__doodle--star2 { right: 8%; top: 43%; width: 1.4rem; color: var(--bt-mint); }
.bt-cover__doodle--spark { left: 7%; top: 40%; width: 1.7rem; color: var(--inv-petal); }
.bt-cover__doodle--star3 { left: 4%; top: 30%; width: 1.25rem; color: var(--inv-shine); }
.bt-cover__doodle--cap { right: 4%; top: 30%; width: 2.2rem; color: var(--inv-shine); }

.bt-cover__inner { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 400px; text-align: center; transition: transform .9s cubic-bezier(.5, 0, .3, 1); }

.bt-cover__title { position: relative; z-index: 5; margin: 0 0 1.35rem; }
.bt-cover__title span {
    display: inline-block; padding: .02rem .75rem .1rem; font-family: var(--bt-hand); font-size: 1.6rem; font-weight: 700; line-height: 1.15;
    color: var(--inv-deep); background: var(--inv-accent); border-radius: .35rem .9rem .4rem 1rem; rotate: -2.5deg;
    box-shadow: 3px 3px 0 var(--inv-petal);
}

.bt-cover__art { position: relative; margin-bottom: .7rem; }
.bt-polaroid--cover { --pw: var(--pw-cover, 15rem); --pol-tilt: -3deg; }

.bt-cover__names { display: flex; flex-direction: column; align-items: center; margin: .55rem 0 0; max-width: 100%; font-weight: 400; }
.bt-cover__names > span {
    font-family: var(--bt-script); font-size: 3.4rem; line-height: 1.08; color: #fff;
    padding: 0 .2em .04em; word-spacing: .12em; text-wrap: balance; text-shadow: 0 3px 10px rgb(0 0 0 / .35);
}
.bt-cover__squiggle { display: block; width: min(12rem, 70%); height: .7rem; margin-top: -.15rem; overflow: visible; color: var(--inv-petal); }
.bt-cover__degree { margin: .35rem 0 0; font-size: .74rem; font-weight: 600; letter-spacing: .18em; line-height: 1.4; text-transform: uppercase; color: var(--inv-shine); text-wrap: balance; }
.bt-cover__date { margin: .55rem 0 0; }
.bt-cover__date span {
    display: inline-block; padding: .32rem 1.4rem .36rem; font-family: var(--bt-title); font-size: 1rem; font-weight: 700; letter-spacing: .01em;
    color: #fff; background: var(--inv-petal); rotate: 1.2deg;
    clip-path: polygon(0 0, 100% 0, calc(100% - .55rem) 50%, 100% 100%, 0 100%, .55rem 50%);
}
.bt-cover__quote {
    max-width: 28ch; margin: .45rem 0 0; font-family: var(--bt-hand); font-weight: 600;
    font-size: 1.42rem; line-height: 1.12; color: var(--bt-cream);
}
.bt-cover__guest {
    position: relative; width: min(100%, 17.5rem); margin: .85rem 0 0; padding: .55rem 1rem .5rem;
    color: var(--inv-text); background: var(--bt-lines) 0 .2rem, var(--bt-white); border-radius: 3px; rotate: -1deg;
    box-shadow: 0 12px 20px -12px rgb(0 0 0 / .6);
}
.bt-cover__guest-tape { top: -.45rem; left: -1.3rem; width: 3.8rem; height: 1.1rem; rotate: -38deg; }
.bt-cover__guest p { margin: 0; font-size: .6rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--inv-primary); }
.bt-cover__guest-name { display: block; font-family: var(--bt-title); font-size: 1.22rem; font-weight: 700; line-height: 1.2; color: var(--bt-ink); overflow-wrap: anywhere; }
.bt-cover__open {
    margin-top: .95rem; min-height: 2.95rem; padding: .62rem 1.9rem; border-radius: 999px;
    font-family: var(--bt-title); font-weight: 800; font-size: .98rem; letter-spacing: .01em;
    color: var(--inv-deep); background: var(--inv-accent);
    box-shadow: 0 0 0 2.5px #fff, 4px 5px 0 2.5px var(--inv-petal);
}

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

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

/* opening: a spiral notebook sheet on kraft */
.bt-opening { padding: 4rem 1.25rem 4.2rem; }
.bt-sheet {
    position: relative; max-width: 23rem; margin: 0 auto; padding: 3rem 1.35rem 2.1rem 2.2rem; border-radius: 3px; rotate: -.7deg;
    background:
        linear-gradient(90deg, transparent 1.45rem, var(--bt-margin) 1.45rem calc(1.45rem + 1.5px), transparent calc(1.45rem + 1.5px)),
        repeating-linear-gradient(180deg, transparent 0 27px, var(--bt-rule) 27px 28px) 0 2.6rem,
        var(--bt-white);
    box-shadow: var(--bt-drop), 0 1px 0 rgb(0 0 0 / .05);
}
.bt-sheet__rings { position: absolute; top: -.55rem; left: .8rem; right: .8rem; height: 30px; background: var(--bt-coil) left top / 24px 30px repeat-x; pointer-events: none; }
.bt-sheet__tape { right: -1.1rem; bottom: 1.6rem; rotate: -58deg; }
.bt-sheet__doodle { position: absolute; width: 1.8rem; height: auto; overflow: visible; }
.bt-sheet__doodle--star { right: .9rem; top: 2.3rem; color: var(--bt-accent-ink); rotate: 14deg; }
.bt-sheet__doodle--heart { left: .3rem; bottom: .7rem; width: 1.5rem; color: var(--inv-petal); }
.bt-sheet__body { position: relative; }
.bt-opening__basmalah { margin: 0 0 .5rem; font-size: 1.7rem; }
.bt-opening__greeting { margin: 0 auto; max-width: 18ch; font-family: var(--bt-hand); font-size: 2.2rem; font-weight: 700; line-height: 1.05; color: var(--bt-ink); text-wrap: balance; }
.bt-opening__divider { margin: .8rem auto; }
.bt-opening__message { margin: 0 auto; max-width: 30ch; font-size: .98rem; line-height: 1.7; color: var(--bt-muted); }
.bt-opening__quote { max-width: 18.5rem; margin: 1.8rem auto 0; }
.bt-opening__quote p { margin: 0; font-family: var(--bt-hand); font-size: 1.38rem; font-weight: 600; line-height: 1.18; color: var(--inv-text); }
.bt-opening__quote cite,
.bt-prayer__text cite { display: block; margin-top: .55rem; font-style: normal; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--bt-muted); }

/* graduate: one yearbook entry per graduate */
.bt-graduate__list { display: grid; gap: 3.2rem; }
.bt-entry { position: relative; max-width: 24rem; margin: 0 auto; }
.bt-polaroid--entry { --pw: min(14rem, 64vw); --pol-tilt: 2.5deg; margin-top: .7rem; }
.bt-entry--flip .bt-polaroid--entry { --pol-tilt: -2.5deg; }
.bt-entry__doodle { position: absolute; height: auto; overflow: visible; pointer-events: none; }
.bt-entry__doodle--arrow { left: -.2rem; top: 4.2rem; width: 3.6rem; color: var(--inv-petal); rotate: 28deg; }
.bt-entry__doodle--star { right: .3rem; top: 1rem; width: 1.7rem; color: var(--bt-accent-ink); }
.bt-entry--flip .bt-entry__doodle--arrow { left: auto; right: -.2rem; transform: scaleX(-1); rotate: -28deg; }
.bt-entry--flip .bt-entry__doodle--star { right: auto; left: .3rem; }
.bt-entry__name { margin: 1.6rem auto 0; max-width: 20ch; font-family: var(--bt-title); font-size: 1.8rem; font-weight: 800; line-height: 1.08; letter-spacing: -.015em; color: var(--bt-ink); text-wrap: balance; }
.bt-entry__degree { font-weight: 700; color: var(--inv-petal); }
.bt-entry__nick { margin: .15rem 0 0; font-family: var(--bt-hand); font-size: 1.7rem; font-weight: 700; line-height: 1.1; color: var(--inv-petal); rotate: -2deg; }
.bt-entry__major { margin: .4rem auto 0; }
.bt-entry__major span {
    display: inline; padding: .05rem .45rem; font-family: var(--bt-title); font-size: 1rem; font-weight: 700; line-height: 1.6; color: var(--bt-ink);
    background: linear-gradient(178deg, transparent 18%, var(--bt-hi) 18% 88%, transparent 88%);
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.bt-entry__award {
    display: inline-flex; align-items: center; gap: .5rem; max-width: 22rem; margin: 1rem auto 0; padding: .48rem 1.1rem .5rem .6rem; border-radius: 999px;
    font-family: var(--bt-title); font-size: .92rem; font-weight: 700; line-height: 1.25; text-align: left; color: #fff;
    background: var(--inv-petal); box-shadow: var(--bt-pop); rotate: -1.5deg;
}
.bt-entry__award svg { width: 1.5rem; height: 1.5rem; flex: none; overflow: visible; color: var(--inv-accent); }
.bt-entry__thesis { max-width: 21rem; margin: 1.5rem auto 0; }
.bt-entry__label { display: block; font-size: .6rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--bt-muted); }
.bt-entry__thesis p { margin: .2rem 0 0; font-family: var(--bt-hand); font-size: 1.32rem; font-weight: 600; line-height: 1.18; }
.bt-entry__parents { margin: 1.15rem auto 0; font-size: .9rem; color: var(--bt-muted); }
.bt-entry__parents span { display: block; font-size: .82rem; }
.bt-entry__parents strong { display: block; font-family: var(--bt-title); font-size: 1.12rem; font-weight: 700; line-height: 1.3; color: var(--inv-text); text-wrap: balance; }

/* institution: "Ketuk lokernya" — the school, a row of lockers on a bench, the yearbook page */
.bt-institution { padding-bottom: 4.4rem; }
.bt-institution__eyebrow { margin: 0 0 .3rem !important; font-family: var(--bt-hand); font-size: 1.4rem; font-weight: 700; line-height: 1.1; color: var(--inv-shine); }
.bt-institution__logo { display: block; width: 4.4rem; height: 4.4rem; margin: 0 auto .7rem; object-fit: contain; padding: .5rem; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--inv-accent), var(--bt-pop); }
.bt-institution__name { margin: 0 auto; max-width: 17ch; font-family: var(--bt-title); font-size: 2.05rem; font-weight: 800; line-height: 1.06; letter-spacing: -.015em; color: #fff; text-wrap: balance; }
.bt-institution__faculty { margin: .35rem auto 0 !important; font-family: var(--bt-hand); font-size: 1.35rem; font-weight: 600; line-height: 1.15; color: var(--bt-cream); }
.bt-institution__facts { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin: .8rem auto 0 !important; }
.bt-institution__facts span { padding: .22rem .8rem; border-radius: 999px; font-size: .74rem; font-weight: 600; letter-spacing: .04em; color: var(--inv-deep); background: var(--inv-shine); }

.bt-lockers { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: .35rem; width: max-content; margin: 1.9rem auto 0; padding: 0 .4rem .85rem; }
.bt-lockers__bench {
    position: absolute; left: -.6rem; right: -.6rem; bottom: 0; height: .85rem; border-radius: 3px; pointer-events: none;
    background: linear-gradient(180deg, color-mix(in srgb, var(--bt-kraft) 70%, #fff) 0 2px, var(--bt-kraft) 2px, color-mix(in srgb, var(--bt-kraft) 70%, #3a1f08));
    box-shadow: 0 10px 14px -6px rgb(0 0 0 / .55);
}
.bt-locker { position: relative; display: block; flex: none; width: 4.9rem; aspect-ratio: 100 / 240; padding: 0; border: 0; background: none; perspective: 700px; }
.bt-locker--main { width: 6.4rem; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bt-locker--main:focus-visible { outline: 3px solid var(--inv-accent); outline-offset: 4px; border-radius: 6px; }
.bt-locker__inside {
    position: absolute; inset: 0; display: block; overflow: hidden; border-radius: 4px;
    background: linear-gradient(180deg, #0b0e10, #262e32 55%, #101416);
    box-shadow: inset 0 0 0 3px var(--bt-metal-1), inset 0 8px 16px rgb(0 0 0 / .75);
}
.bt-locker__inside::after { content: ''; position: absolute; inset: 0; background: radial-gradient(80% 50% at 50% 40%, color-mix(in srgb, var(--inv-shine) 55%, transparent), transparent 75%); opacity: 0; transition: opacity 1s ease .5s; }
.bt-locker__shelf { position: absolute; left: 7%; right: 7%; top: 24%; height: 4px; border-radius: 2px; background: #9aa6ad; box-shadow: 0 3px 4px rgb(0 0 0 / .6); }
.bt-locker__pennant {
    position: absolute; left: 12%; top: 33%; width: 76%; height: 2.1rem; display: flex; align-items: center; padding-left: .45rem;
    background: linear-gradient(180deg, var(--bt-pink-2), var(--bt-pink-1)); clip-path: polygon(0 0, 100% 50%, 0 100%);
    font-family: var(--bt-varsity); font-size: .62rem; color: #fff;
}
.bt-locker__door { position: absolute; inset: 0; display: block; transform-origin: 0 50%; transform-style: preserve-3d; transform: rotateY(-112deg); }
.bt-locker__door::after { content: ''; position: absolute; inset: 0; border-radius: 4px; background: linear-gradient(90deg, var(--bt-metal-1), color-mix(in srgb, var(--bt-metal-1) 70%, #000)); transform: rotateY(180deg); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.bt-locker__art { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; filter: drop-shadow(0 2px 2px rgb(0 0 0 / .3)); }
.bt-locker--side .bt-locker__door { transform: none; }
.bt-locker--right .bt-locker__door { transform: rotateY(-16deg); }
.bt-dial { position: absolute; left: 50%; top: 50%; width: 46%; height: auto; margin: -23% 0 0 -23%; backface-visibility: hidden; -webkit-backface-visibility: hidden; filter: drop-shadow(0 3px 3px rgb(0 0 0 / .45)); }
.bt-dial__face { transform-box: view-box; transform-origin: 50% 50%; }
.bt-dial__mark { fill: var(--inv-accent); stroke: var(--inv-deep); stroke-width: .6; }
/* armed (Alpine running, not opened yet): the door shut; opened: it swings out */
.bt-institution.is-armed .bt-locker--main .bt-locker__door { transform: none; }
.bt-institution.is-open .bt-locker--main .bt-locker__door { transition: transform 1.15s cubic-bezier(.3, 1.3, .5, 1); }
.bt-institution:not(.is-armed) .bt-locker--main .bt-locker__inside::after { opacity: 1; }
.bt-locker--main .bt-tap__ring { top: 50%; }
.bt-locker--main .bt-tap__hand { left: 52%; top: 52%; }

/* the yearbook page the stickers land on */
.bt-page {
    position: relative; max-width: 22rem; margin: 3.1rem auto 0; padding: 1.7rem 1rem 1.3rem 1.6rem; border-radius: 3px; rotate: .6deg;
    color: var(--inv-text); text-align: center;
    background:
        linear-gradient(90deg, transparent 1rem, var(--bt-margin) 1rem calc(1rem + 1.5px), transparent calc(1rem + 1.5px)),
        repeating-linear-gradient(180deg, transparent 0 27px, var(--bt-rule) 27px 28px) 0 .9rem,
        var(--bt-white);
    box-shadow: 0 24px 40px -22px rgb(0 0 0 / .7);
}
.bt-page__tape { top: -.6rem; }
.bt-page__tape--left { left: -1rem; rotate: -30deg; }
.bt-page__tape--right { right: -1rem; rotate: 28deg; }
.bt-page__stickers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: .9rem .8rem; }
.bt-sticker { position: relative; margin: 0; rotate: var(--r); }
.bt-sticker--photo { grid-row: span 2; padding: .4rem .4rem 0; background: #fff; box-shadow: 0 10px 14px -8px rgb(0 0 0 / .45), 0 0 0 1px rgb(0 0 0 / .06); }
.bt-sticker__photo { position: relative; display: block; aspect-ratio: 1 / 1.12; overflow: hidden; background: linear-gradient(170deg, var(--inv-primary), var(--inv-deep)); }
.bt-sticker__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.bt-sticker__initial { position: absolute; inset: 0; display: grid; place-items: center; font: 800 2.2rem/1 var(--bt-title); color: #fff; }
.bt-sticker--photo figcaption { padding: .3rem .1rem .45rem; font-family: var(--bt-hand); font-size: 1.4rem; font-weight: 700; line-height: 1.02; color: var(--bt-ink); text-wrap: balance; }
.bt-sticker--note { padding: .7rem .65rem .75rem; background: var(--bt-note); text-align: left; box-shadow: 0 10px 14px -9px rgb(0 0 0 / .45); border-radius: 2px 2px 10px 2px; }
.bt-sticker__label { display: block; font-size: .55rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--bt-muted); }
.bt-sticker--note p { margin: .15rem 0 0; font: 700 .95rem/1.2 var(--bt-title); color: var(--bt-ink); overflow-wrap: anywhere; }
.bt-sticker--award { padding: .6rem .6rem .7rem; border-radius: 14px; color: #fff; background: var(--inv-petal); box-shadow: var(--bt-pop); }
.bt-sticker--award svg { display: block; width: 1.6rem; height: 1.6rem; margin: 0 auto .2rem; overflow: visible; color: var(--inv-accent); }
.bt-sticker--award p { margin: 0; font: 700 .84rem/1.25 var(--bt-title); text-wrap: balance; }
.bt-sticker--award p + p { margin-top: .3rem; }
.bt-sticker--patch { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: .7rem; padding-top: .2rem; }
.bt-sticker__badge { width: 4.2rem; flex: none; filter: drop-shadow(0 5px 5px rgb(0 0 0 / .3)); }
.bt-sticker--patch span { max-width: 12rem; font-family: var(--bt-hand); font-size: 1.32rem; text-wrap: balance; font-weight: 700; line-height: 1.05; text-align: left; color: var(--bt-ink); }
.bt-page__done { margin-top: 1.1rem; padding-top: .8rem; border-top: 2px dashed var(--bt-line); }
.bt-page__done-title { margin: 0; font-family: var(--bt-hand); font-size: 2.5rem; font-weight: 700; line-height: 1; color: var(--inv-petal); rotate: -2deg; }
.bt-page__ceremony { margin: .35rem 0 0; font-size: .84rem; font-weight: 500; color: var(--bt-muted); }
.bt-institution.is-armed .bt-sticker { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.2) rotate(-25deg); }
.bt-institution.is-armed .bt-page__done { opacity: .15; filter: blur(1.5px); }
/* while the locker is shut, a handwritten note on the empty page points up at it (only with JavaScript) */
.bt-page__hint { display: none; }
.bt-institution.is-armed .bt-page__hint {
    position: absolute; z-index: 2; left: 1.6rem; right: 1rem; top: 38%; display: flex; flex-direction: column; align-items: center; gap: .2rem;
    font-family: var(--bt-hand); font-size: 1.45rem; font-weight: 700; line-height: 1.1; color: var(--bt-ink); text-wrap: balance; pointer-events: none;
}
.bt-page__hint svg { width: 3.6rem; height: auto; overflow: visible; color: var(--inv-petal); rotate: -100deg; }
html.inv-anim .bt-institution.is-armed .bt-page__hint svg { animation: bt-float 2.4s ease-in-out infinite; }
.bt-institution.is-armed .bt-page__stickers { position: relative; }
.bt-institution.is-armed .bt-page__stickers::before {
    content: ''; position: absolute; inset: -.3rem; border: 2.5px dashed color-mix(in srgb, var(--inv-primary) 35%, transparent); border-radius: 12px;
}
.bt-institution.is-open .bt-page__done { transition: opacity .8s ease 2s, filter .8s ease 2s; }

/* thanks: a note torn from the notebook */
.bt-thanks__card {
    position: relative; max-width: 23rem; margin: 0 auto; padding: 2.3rem 1.3rem 1.6rem 1.9rem; text-align: left; rotate: 1deg;
    background:
        linear-gradient(90deg, transparent 1.25rem, var(--bt-margin) 1.25rem calc(1.25rem + 1.5px), transparent calc(1.25rem + 1.5px)),
        repeating-linear-gradient(180deg, transparent 0 27px, var(--bt-rule) 27px 28px) 0 1.4rem,
        var(--bt-white);
    clip-path: polygon(0 4px, 4% 0, 8% 5px, 12% 1px, 16% 6px, 20% 0, 24% 4px, 28% 1px, 32% 6px, 36% 0, 40% 5px, 44% 1px, 48% 6px, 52% 0, 56% 4px, 60% 1px, 64% 6px, 68% 0, 72% 5px, 76% 1px, 80% 6px, 84% 0, 88% 4px, 92% 1px, 96% 6px, 100% 0, 100% 100%, 0 100%);
    filter: drop-shadow(0 14px 14px rgb(0 0 0 / .3));
}
.bt-thanks__tape { top: .6rem; right: 1.4rem; rotate: 6deg; }
.bt-thanks__heart { position: absolute; right: 1rem; bottom: 1rem; width: 1.9rem; height: auto; overflow: visible; color: var(--inv-petal); rotate: 12deg; }
.bt-thanks__words { margin: 0; font-family: var(--bt-hand); font-size: 1.4rem; font-weight: 600; line-height: 1.2; color: var(--inv-text); }
.bt-thanks__names { display: grid; gap: .4rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.bt-thanks__names li { display: flex; align-items: flex-start; gap: .5rem; font-size: .92rem; font-weight: 600; line-height: 1.35; color: var(--bt-ink); }
.bt-thanks__names svg { width: 1.15rem; height: 1.15rem; flex: none; margin-top: .05rem; overflow: visible; color: var(--inv-primary); }
.bt-thanks__tick { stroke: var(--inv-petal); }
.bt-thanks__signature { display: block; margin-top: .9rem; padding-right: 2.6rem; font-family: var(--bt-script); font-style: normal; font-size: 2.3rem; line-height: 1.1; word-spacing: .12em; text-align: right; color: var(--inv-petal); }

/* next step: a paper plane flying off over a sticky note */
.bt-next { padding-top: 2.6rem; }
.bt-next__flight { display: block; width: min(100%, 21rem); height: auto; margin: 0 auto -1.2rem; overflow: visible; }
.bt-next__path { stroke: var(--inv-shine); opacity: .85; }
.bt-next__plane { color: var(--inv-accent); }
.bt-next__card { position: relative; max-width: 21rem; margin: 0 auto; padding: 1.9rem 1.3rem 1.5rem; color: var(--inv-text); background: var(--bt-note); rotate: -1.5deg; border-radius: 2px 2px 16px 2px; box-shadow: 0 22px 30px -18px rgb(0 0 0 / .7); }
.bt-next__tape { top: -.62rem; left: 50%; margin-left: -2.2rem; rotate: -3deg; }
.bt-next__label { margin: 0; font-family: var(--bt-hand); font-size: 1.4rem; font-weight: 700; line-height: 1.1; color: color-mix(in srgb, var(--inv-petal) 85%, #000); }
.bt-next__title { margin: .2rem auto 0; max-width: 18ch; font-family: var(--bt-title); font-size: 1.55rem; font-weight: 800; line-height: 1.12; color: var(--bt-ink); text-wrap: balance; }
.bt-next__text { margin: .5rem auto 0; max-width: 30ch; font-size: .92rem; color: var(--inv-text); }
.bt-next__star { position: absolute; right: .8rem; bottom: .7rem; width: 1.5rem; height: auto; overflow: visible; color: var(--inv-petal); }

/* events: index cards with a tear-off calendar block */
.bt-event {
    position: relative; margin: 0 auto; max-width: 25rem; padding: .8rem .8rem 1.5rem; border-radius: 4px; text-align: left; rotate: -.5deg;
    background: linear-gradient(180deg, transparent 0 .5rem, var(--bt-margin) .5rem calc(.5rem + 2px), transparent calc(.5rem + 2px)), var(--bt-white);
    box-shadow: var(--bt-drop), 0 0 0 1px rgb(0 0 0 / .05);
}
.bt-event:nth-of-type(even) { rotate: .6deg; }
.bt-event + .bt-event { margin-top: 2.6rem; }
.bt-event__tape { top: -.62rem; left: 50%; margin-left: -2.2rem; rotate: -2deg; }
.bt-event__media { position: relative; margin: .6rem .1rem 0; }
.bt-event__photo { display: block; width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: center 30%; border-radius: 3px; }
.bt-event__top { display: flex; align-items: center; gap: .9rem; padding: 1.2rem .4rem 0; }
.bt-event__media + .bt-event__top { margin-top: -2.2rem; align-items: flex-end; }
.bt-event__date {
    display: flex; flex-direction: column; align-items: stretch; flex: none; width: 4.7rem; margin: 0; overflow: hidden; text-align: center;
    border: 2px solid var(--inv-deep); border-radius: 8px; background: #fff; box-shadow: var(--bt-pop); rotate: -3deg;
}
.bt-event__month { display: block; padding: .2rem 0; font-size: .58rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--inv-petal); }
.bt-event__date strong { display: block; padding-top: .15rem; font-family: var(--bt-title); font-size: 2rem; font-weight: 800; line-height: 1; color: var(--bt-ink); }
.bt-event__weekday { display: block; padding: .05rem 0 .3rem; font-size: .58rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--bt-muted); }
.bt-event__head { min-width: 0; padding-bottom: .1rem; }
.bt-event__media + .bt-event__top .bt-event__head { padding-top: 2.4rem; }
.bt-event__name { margin: 0; font-family: var(--bt-title); font-size: 1.45rem; font-weight: 800; line-height: 1.1; color: var(--bt-ink); }
.bt-event__full { margin: .15rem 0 0; font-size: .8rem; color: var(--bt-muted); }
.bt-event__rows { display: grid; gap: .7rem; margin: 1rem .4rem 0; padding: .95rem 0 0; list-style: none; font-size: .9rem; border-top: 2px dashed var(--bt-line); }
.bt-event__rows li { display: flex; align-items: flex-start; gap: .65rem; }
.bt-event__rows .bt-icon { width: 2rem; height: 2rem; padding: .42rem; border-radius: 50%; color: var(--inv-deep); background: var(--bt-mint); }
.bt-event__rows li > span { padding-top: .28rem; }
.bt-event__venue { display: block; font-weight: 600; }
.bt-event__address { display: block; font-size: .85rem; color: var(--bt-muted); }
.bt-event .inv-maps { margin: 1.1rem .4rem 0; text-align: center; }
.bt-event .inv-maps .inv-button { width: 100%; font-weight: 700; }
.bt-event .inv-maps__frame { height: 180px; border-radius: 6px; }

/* countdown: locker number plates */
.bt-countdown .inv-countdown { gap: clamp(.45rem, 2.4vw, .8rem); }
.bt-countdown .inv-countdown__item {
    position: relative; display: grid; place-content: center; width: clamp(4rem, 18.5vw, 4.7rem); min-width: 0; aspect-ratio: .86; padding: .4rem 0 0; border-radius: 7px;
    color: var(--inv-deep);
    background:
        radial-gradient(circle at 14% 10%, #56616a 1.8px, #dfe5e8 2.4px, transparent 3.4px),
        radial-gradient(circle at 86% 10%, #56616a 1.8px, #dfe5e8 2.4px, transparent 3.4px),
        linear-gradient(160deg, #ffffff, #d5dce0 55%, #a7b2b8);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--inv-deep) 80%, #000), 4px 4px 0 2px var(--inv-petal);
}
.bt-countdown .inv-countdown__value { font-variant-numeric: lining-nums tabular-nums; font-family: var(--bt-varsity); font-size: 1.75rem; line-height: 1; color: var(--bt-ink); }
.bt-countdown .inv-countdown__label { margin-top: .35rem; font-size: .52rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--inv-deep) 85%, transparent); }
.bt-countdown .inv-countdown__done { font-family: var(--bt-hand); font-size: 1.6rem; font-weight: 700; color: var(--inv-shine); }
.bt-countdown .inv-countdown__actions { flex-direction: column; align-items: center; gap: .65rem; margin-top: 2.1rem; }
.bt-countdown .inv-countdown__actions .inv-button {
    width: min(100%, 17rem); min-height: 2.75rem; padding: .6rem 1rem; font-size: .86rem; font-weight: 700; font-family: var(--bt-title);
    color: #fff; background: color-mix(in srgb, #fff 10%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--inv-shine) 60%, transparent);
}
.bt-countdown .inv-countdown__actions .inv-button:first-child { color: var(--inv-deep); background: var(--inv-accent); box-shadow: 0 0 0 2px #fff, 3px 4px 0 2px var(--inv-petal); }
.bt-countdown .inv-cal {
    --inv-cal-bg: var(--bt-white); --inv-cal-mark: var(--inv-petal);
    max-width: 19rem; margin: 2.8rem auto 0; border-radius: 4px; rotate: -1deg;
    box-shadow: 0 22px 40px -24px rgb(0 0 0 / .7);
}
.bt-countdown .inv-cal__month { font-family: var(--bt-title); font-size: 1.35rem; font-weight: 800; color: var(--bt-ink); }

/* prayer: a lined page taped to the kraft */
.bt-prayer__panel {
    position: relative; max-width: 22rem; margin: 0 auto; padding: 2.6rem 1.4rem 2.3rem; color: var(--inv-text); rotate: -1deg; border-radius: 3px;
    background: repeating-linear-gradient(180deg, transparent 0 27px, var(--bt-rule) 27px 28px) 0 1.2rem, var(--bt-white);
    box-shadow: var(--bt-drop);
}
.bt-prayer__tape { top: -.62rem; }
.bt-prayer__tape--left { left: -.9rem; rotate: -28deg; }
.bt-prayer__tape--right { right: -.9rem; rotate: 26deg; }
.bt-prayer__cap { display: block; width: 3.2rem; height: auto; margin: 0 auto .3rem; overflow: visible; color: var(--inv-primary); rotate: -8deg; }
.bt-prayer__eyebrow { margin: 0 0 .7rem; font-family: var(--bt-hand); font-size: 1.4rem; font-weight: 700; line-height: 1.1; color: var(--inv-petal); }
.bt-prayer__arabic { margin: 0 0 .9rem; font-size: 1.6rem; text-wrap: balance; }
.bt-prayer__text { margin: 0; }
.bt-prayer__text p { margin: 0; font-family: var(--bt-hand); font-size: 1.42rem; font-weight: 600; line-height: 1.18; }
.bt-prayer__text cite span { padding: .05rem .5rem; color: var(--bt-ink); background: var(--bt-hi); }
.bt-prayer__star { position: absolute; right: .8rem; bottom: .7rem; width: 1.5rem; height: auto; overflow: visible; color: var(--bt-accent-ink); }

/* rundown: a timetable along a dashed line */
.bt-rundown__list { position: relative; max-width: 24rem; margin: 0 auto; padding: 0; list-style: none; text-align: left; }
.bt-rundown__list::before { content: ''; position: absolute; left: 2.4rem; top: .8rem; bottom: .8rem; width: 0; border-left: 2px dashed color-mix(in srgb, var(--inv-primary) 55%, transparent); transform-origin: top; }
.bt-rundown__item { position: relative; display: grid; grid-template-columns: 4.8rem minmax(0, 1fr); align-items: start; column-gap: .7rem; padding: 0 0 1rem; }
.bt-rundown__item:last-child { padding-bottom: 0; }
.bt-rundown__time {
    position: relative; justify-self: center; margin-top: .5rem; padding: .16rem .55rem; border-radius: .25rem .6rem .3rem .7rem;
    font: 700 .86rem/1.3 var(--bt-title); font-variant-numeric: tabular-nums; color: var(--inv-deep); background: var(--inv-accent); rotate: -3deg;
    box-shadow: 0 0 0 3px var(--inv-background);
}
.bt-rundown__body { padding: .65rem .9rem .7rem; border-radius: 10px; background: var(--bt-white); box-shadow: 0 0 0 1.5px var(--bt-line), 3px 3px 0 color-mix(in srgb, var(--inv-primary) 22%, transparent); }
.bt-rundown__body h3 { margin: 0; font-family: var(--bt-title); font-size: 1.05rem; font-weight: 700; line-height: 1.3; color: var(--bt-ink); }
.bt-rundown__body p { margin: .1rem 0 0; font-size: .85rem; color: var(--bt-muted); }

/* party: the felt pennant, the varsity jacket and its swatches, the note and the hashtag */
.bt-pennant { position: relative; display: flex; max-width: 21rem; margin: 0 auto; padding-left: .8rem; rotate: -2deg; filter: drop-shadow(0 12px 14px rgb(0 0 0 / .45)); }
.bt-pennant__stick { position: absolute; left: 0; top: -.7rem; bottom: -.7rem; width: .55rem; border-radius: 999px; background: linear-gradient(90deg, color-mix(in srgb, var(--bt-kraft) 70%, #fff), var(--bt-kraft), color-mix(in srgb, var(--bt-kraft) 60%, #2e1704)); }
.bt-pennant__stick::before { content: ''; position: absolute; left: 50%; top: -.45rem; width: .85rem; height: .85rem; margin-left: -.425rem; border-radius: 50%; background: var(--inv-accent); box-shadow: inset -2px -2px 0 rgb(0 0 0 / .2); }
.bt-pennant__flag {
    flex: 1; min-width: 0; padding: 1rem 3rem 1.1rem 1.2rem; text-align: left; color: #fff;
    background: radial-gradient(color-mix(in srgb, #fff 18%, transparent) .6px, transparent 1px) 0 0 / 5px 5px, linear-gradient(180deg, var(--bt-pink-2), var(--bt-pink-1));
    clip-path: polygon(0 0, 100% 18%, 100% 82%, 0 100%);
}
.bt-pennant__label { display: block; font-size: .6rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--inv-accent); }
.bt-pennant__theme { margin: .2rem 0 0; font-family: var(--bt-varsity); font-size: 1.4rem; line-height: 1.15; color: #fff; text-shadow: 2px 2px 0 var(--bt-pink-1); text-wrap: balance; overflow-wrap: anywhere; }
.bt-party__label { display: block; font-size: .6rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--bt-muted); }
.bt-party__dress {
    display: grid; grid-template-columns: 5.4rem minmax(0, 1fr); align-items: center; gap: 1rem; max-width: 22rem; margin: 2rem auto 0;
    padding: 1.1rem 1.1rem; border-radius: 6px; text-align: left; color: var(--inv-text); background: var(--bt-white); rotate: 1deg; box-shadow: 0 20px 30px -18px rgb(0 0 0 / .7);
}
.bt-jacket { width: 5.4rem; height: auto; overflow: visible; }
.bt-jacket__sleeve { fill: #fbf3e2; stroke: var(--inv-deep); stroke-width: 1.4; stroke-linejoin: round; }
.bt-jacket__body { fill: var(--bt-pick, var(--inv-primary)); stroke: var(--inv-deep); stroke-width: 1.4; stroke-linejoin: round; transition: fill .4s ease; }
.bt-jacket__rib { fill: var(--inv-deep); stroke: var(--inv-deep); stroke-width: 1; stroke-linejoin: round; }
.bt-jacket__line { fill: none; stroke: rgb(0 0 0 / .35); stroke-width: 1; }
.bt-jacket__snap { fill: #fff; stroke: rgb(0 0 0 / .3); stroke-width: .5; }
.bt-jacket__patch { fill: #fff; stroke: var(--inv-petal); stroke-width: 1.6; }
.bt-party__dress-name { margin: .15rem 0 .55rem; font-family: var(--bt-title); font-size: 1.12rem; font-weight: 700; line-height: 1.25; color: var(--bt-ink); }
.bt-swatches { display: flex; flex-wrap: wrap; gap: .45rem; }
.bt-swatch {
    width: 2.1rem; height: 2.1rem; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: var(--bt-swatch);
    box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--inv-deep); transition: transform .2s ease;
}
.bt-swatch[aria-pressed=true] { transform: scale(1.14); box-shadow: 0 0 0 2px #fff, 0 0 0 4.5px var(--inv-petal); }
.bt-party__hint { margin: .5rem 0 0 !important; font-size: .76rem; color: var(--bt-muted); }
.bt-party__hint--center { margin: .55rem auto 0 !important; text-align: center; color: var(--bt-cream); }
.bt-party__note { margin-top: 1.6rem !important; font-family: var(--bt-hand); font-size: 1.5rem; font-weight: 600; line-height: 1.15; color: var(--inv-shine); }
.bt-party__hashtag {
    display: inline-flex; align-items: center; gap: .5rem; max-width: 100%; margin-top: .3rem; padding: .35rem .4rem .35rem .9rem; border-radius: 999px;
    color: var(--inv-text); background: var(--bt-white); box-shadow: var(--bt-pop), 0 0 0 2px var(--inv-petal);
}
.bt-party__hashtag .bt-icon { color: var(--inv-petal); }
.bt-party__hashtag-text { font-family: var(--bt-title); font-weight: 700; color: var(--bt-ink); overflow-wrap: anywhere; }
.bt-party__copy { min-height: 2.2rem; padding: .3rem .9rem; border: 0; border-radius: 999px; cursor: pointer; font: 700 .8rem/1 var(--bt-title); color: var(--inv-deep); background: var(--inv-accent); }

/* wishlist: a to-do list with marker checkboxes */
.bt-wishlist__intro { color: var(--bt-muted); font-size: .92rem; }
.bt-wishlist__list { display: grid; gap: .7rem; max-width: 24rem; margin: 1.3rem auto 0; padding: 0; list-style: none; text-align: left; }
.bt-wishlist__item { display: grid; grid-template-columns: 2.8rem minmax(0, 1fr); align-items: start; gap: .85rem; padding: .85rem 1rem; border-radius: 8px; background: var(--bt-white); box-shadow: 0 0 0 1.5px var(--bt-line), 3px 3px 0 color-mix(in srgb, var(--inv-primary) 22%, transparent); }
.bt-wishlist__number {
    display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 2.5px solid var(--inv-primary); border-radius: 5px; rotate: -4deg;
    font-family: var(--bt-hand); font-size: 1.5rem; font-weight: 700; line-height: 1; color: var(--inv-petal);
}
.bt-wishlist__photo { display: block; width: 2.8rem; aspect-ratio: 3 / 4; object-fit: cover; padding: 2px 2px 6px; background: #fff; rotate: -4deg; box-shadow: 0 4px 8px -3px rgb(0 0 0 / .4); }
.bt-wishlist__text p { margin: 0; }
.bt-wishlist__name { padding-top: .1rem; font-family: var(--bt-title); font-size: 1.08rem; font-weight: 700; line-height: 1.3; color: var(--bt-ink); overflow-wrap: anywhere; }
.bt-wishlist__note { margin-top: .1rem !important; font-size: .86rem; color: var(--bt-muted); }
.bt-wishlist__shop { display: inline-flex; align-items: center; gap: .35rem; min-height: 2.2rem; margin-top: .25rem; font-size: .82rem; font-weight: 600; text-decoration: none; }
.bt-wishlist__shop .bt-icon { width: 1rem; height: 1rem; }

/* story: yearbook snapshots beside the text, alternating; text-only chapters as sticky notes */
.bt-story__list { display: grid; gap: 2.4rem; margin: 0; padding: 0; list-style: none; text-align: left; }
.bt-story__item { display: grid; grid-template-columns: 42% minmax(0, 1fr); align-items: center; gap: 1.2rem; }
.bt-story__item--flip { grid-template-columns: minmax(0, 1fr) 42%; }
.bt-story__item--flip .bt-story__media { order: 2; rotate: 3deg; }
.bt-story__media { position: relative; padding: .35rem .35rem 1.3rem; background: #fff; rotate: -3deg; box-shadow: 0 14px 18px -12px rgb(0 0 0 / .5); }
.bt-story__media::before { content: ''; position: absolute; z-index: 1; top: -.5rem; left: 50%; width: 3rem; height: 1rem; margin-left: -1.5rem; rotate: -4deg; opacity: .9; background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--inv-petal) 82%, #fff) 0 5px, color-mix(in srgb, var(--inv-petal) 48%, #fff) 5px 10px); }
.bt-story__photo { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 28%; }
.bt-story__when { display: inline-block; padding: 0 .4rem; font-family: var(--bt-hand); font-size: 1.35rem; font-weight: 700; line-height: 1.2; color: var(--bt-ink); background: linear-gradient(178deg, transparent 22%, var(--bt-hi) 22% 86%, transparent 86%); }
.bt-story__body h3 { margin: .35rem 0 0; font-family: var(--bt-title); font-size: 1.25rem; font-weight: 800; line-height: 1.15; color: var(--bt-ink); }
.bt-story__body p { margin: .35rem 0 0; font-size: .88rem; line-height: 1.55; color: var(--bt-muted); }
.bt-story__item--text { grid-template-columns: 2.7rem minmax(0, 1fr); align-items: start; gap: .9rem; padding: 1.15rem 1.15rem; border-radius: 2px 2px 14px 2px; background: var(--bt-mint); rotate: -.8deg; box-shadow: 0 14px 18px -12px rgb(0 0 0 / .4); }
.bt-story__dot { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 2.5px solid var(--inv-petal); border-radius: 50% 46% 52% 44%; font-family: var(--bt-hand); font-size: 1.5rem; font-weight: 700; color: var(--inv-petal); background: #fff; }

/* gallery: polaroids stuck on the locker wall */
.bt-gallery .inv-gallery { gap: .8rem; }
.bt-gallery .inv-gallery__item { padding: .35rem .35rem 1.15rem; border-radius: 2px; background: #fff; box-shadow: 0 16px 24px -16px rgb(0 0 0 / .8); }
.bt-gallery .inv-gallery__item:nth-child(odd) { rotate: -1.6deg; }
.bt-gallery .inv-gallery__item:nth-child(even) { rotate: 1.8deg; }
.bt-gallery .inv-gallery__item:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3.1; rotate: -1deg; }

/* live streaming: a locker-metal card */
.bt-stream__card {
    position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .9rem 1rem; max-width: 24rem; margin: 0 auto;
    padding: 1.9rem 1.3rem 1.35rem; border-radius: 8px; color: #fff; text-align: left;
    background: linear-gradient(90deg, var(--bt-metal-1), var(--bt-metal-3) 18%, var(--bt-metal-2) 50%, var(--bt-metal-1));
    box-shadow: 0 0 0 2px var(--inv-deep), var(--bt-pop), var(--bt-drop);
}
.bt-stream__card::before { content: ''; position: absolute; left: 30%; right: 30%; top: .6rem; height: .9rem; background: repeating-linear-gradient(180deg, rgb(0 0 0 / .4) 0 2.5px, transparent 2.5px 5px); border-radius: 2px; }
.bt-stream__icon { display: grid; place-items: center; width: 3.3rem; height: 3.3rem; border-radius: 50%; color: #fff; background: var(--inv-petal); box-shadow: 0 0 0 3px #fff; }
.bt-stream__icon .bt-icon { width: 1.65rem; height: 1.65rem; }
.bt-stream__title { margin: 0 0 .1rem; font-family: var(--bt-title); font-size: 1.5rem; font-weight: 800; line-height: 1.1; color: #fff; }
.bt-stream__text p { margin: 0; font-size: .86rem; color: var(--bt-cream); }
.bt-stream__text .bt-stream__note { margin-top: .3rem; font-weight: 600; color: var(--inv-shine); }
.bt-stream__button { grid-column: 1 / -1; min-height: 2.75rem; color: var(--inv-deep) !important; background: var(--inv-accent) !important; font-family: var(--bt-title); font-weight: 700; }

/* RSVP card: a spiral-bound notebook card */
.bt-rsvp__card {
    position: relative; max-width: 25rem; margin: 0 auto; padding: 2.6rem 1.1rem 1.4rem; border-radius: 4px; color: var(--inv-text);
    background: var(--bt-white); box-shadow: 0 24px 40px -24px rgb(0 0 0 / .7);
}
.bt-rsvp__card::before { content: ''; position: absolute; top: -.55rem; left: .8rem; right: .8rem; height: 30px; background: var(--bt-coil) left top / 24px 30px repeat-x; pointer-events: none; }
.bt-rsvp__intro { margin: 0 auto 1.1rem; max-width: 30ch; font-size: .9rem; color: var(--bt-muted); }
.bt-rsvp__sent { margin-bottom: 1rem; }
.bt-rsvp__check { display: block; width: 4.25rem; height: 4.25rem; margin: 0 auto .5rem; }
.bt-rsvp__check circle { fill: var(--inv-petal); }
.bt-rsvp__check path { fill: none; stroke: #fff; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
html.inv-anim .bt-rsvp__sent .bt-rsvp__check { animation: bt-bounce .8s cubic-bezier(.34, 1.56, .64, 1) both; }
html.inv-anim .bt-rsvp__sent .bt-rsvp__check path { animation: bt-draw .45s ease-out .35s both; }
.bt-rsvp__thanks { margin: 0; font-family: var(--bt-hand); font-size: 2.2rem; font-weight: 700; line-height: 1.1; color: var(--inv-petal); }
.bt-rsvp__line { margin: .1rem 0 0; font-size: .9rem; color: var(--bt-muted); }
.bt-rsvp .inv-rsvp__deadline { margin: 0 0 1rem; font-size: .84rem; font-weight: 600; color: var(--bt-ink); }

/* gift: student ID cards, two per row (odd last across) */
.bt-gift__intro { color: var(--bt-cream) !important; }
.bt-gift .inv-gift__accounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: 1.3rem; }
.bt-gift .inv-gift__account:last-child:nth-child(odd) { grid-column: 1 / -1; }
.bt-gift .inv-gift__account,
.bt-gift .inv-gift__address {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: .3rem; min-width: 0; margin: 0; overflow: hidden;
    padding: 2.2rem .75rem 1rem; border-radius: 10px; color: var(--inv-text); background: var(--bt-white);
    box-shadow: var(--bt-pop), 0 18px 30px -20px rgb(0 0 0 / .6);
}
.bt-gift .inv-gift__account::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1.25rem; background: var(--inv-petal); }
.bt-gift .inv-gift__account::after { content: ''; position: absolute; left: 50%; top: .4rem; width: 1.9rem; height: .42rem; margin-left: -.95rem; border-radius: 999px; background: var(--inv-deep); }
.bt-gift .inv-gift__account p, .bt-gift .inv-gift__address p { margin: 0; }
.bt-gift .inv-gift__bank { font-weight: 600; font-size: .85rem; color: var(--bt-ink); }
.bt-gift .inv-gift__logo { height: 1.6rem; padding: .2rem .5rem; border-radius: .4rem; background: #fff; }
.bt-gift .inv-gift__logo img { max-width: 5rem; }
.bt-gift .inv-gift__number { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: .98rem; font-weight: 700; letter-spacing: .03em; line-height: 1.3; overflow-wrap: anywhere; color: var(--inv-text); }
.bt-gift .inv-gift__holder { font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--bt-muted); overflow-wrap: anywhere; }
.bt-gift .inv-button { margin-top: .35rem; min-height: 2.25rem; padding: .35rem .9rem; font-size: .76rem; font-weight: 700; }
.bt-gift .inv-gift__address { margin-top: .8rem; padding-top: 1.1rem; font-size: .875rem; }
.bt-gift .inv-gift__address .inv-gift__holder { font-size: .72rem; }

/* co-hosts: name-tag stickers on the wall */
.bt-cohosts__list { display: flex; flex-direction: column; align-items: center; gap: .85rem; margin: 0; padding: 0; list-style: none; }
.bt-cohosts__list li {
    max-width: 22rem; padding: .5rem 1.2rem .6rem; border-top: .55rem solid var(--inv-petal); border-radius: 8px;
    font-family: var(--bt-title); font-size: 1.12rem; font-weight: 700; line-height: 1.3; color: var(--bt-ink); background: var(--bt-white);
    box-shadow: 0 12px 18px -12px rgb(0 0 0 / .7); rotate: -1.5deg; text-wrap: balance;
}
.bt-cohosts__list li:nth-child(even) { rotate: 1.6deg; border-top-color: var(--inv-accent); }

/* contacts */
.bt-contacts__list { display: grid; gap: .75rem; max-width: 24rem; margin: 0 auto; }
.bt-contact {
    display: grid; grid-template-columns: 2.9rem minmax(0, 1fr) auto; align-items: center; gap: .8rem; padding: .55rem .55rem .55rem .6rem; border-radius: 999px;
    background: var(--bt-white); text-align: left; box-shadow: 0 0 0 1.5px var(--bt-line), 3px 3px 0 color-mix(in srgb, var(--inv-primary) 22%, transparent);
}
.bt-contact__avatar { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; font-family: var(--bt-title); font-size: 1.3rem; font-weight: 800; color: #fff; background: var(--inv-petal); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--inv-deep); }
.bt-contact p { margin: 0; }
.bt-contact__name { font-weight: 600; font-size: .95rem; line-height: 1.3; overflow-wrap: anywhere; }
.bt-contact__role { font-size: .78rem; color: var(--bt-muted); }
.bt-contact__phone { font-size: .85rem; }
.bt-contact__button { min-height: 2.5rem; padding: .45rem .95rem; font-size: .8rem; font-weight: 700; }
.bt-contact__button .bt-icon { width: 1.05rem; height: 1.05rem; }

/* health protocol */
.bt-protocol__list { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.bt-protocol__list li { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .85rem; border-radius: 999px; font-size: .84rem; font-weight: 500; background: var(--bt-white); box-shadow: var(--bt-pop); }
.bt-protocol__list .bt-icon { width: 1rem; height: 1rem; color: var(--inv-petal); }
.bt-protocol__note { font-size: .9rem; color: var(--inv-text); }

/* vendors */
.bt-vendors__list { max-width: 24rem; margin: 0 auto; padding: .3rem 1.15rem; list-style: none; border-radius: 6px; background: var(--bt-white); box-shadow: 0 0 0 1.5px var(--bt-line), var(--bt-drop); }
.bt-vendor { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .85rem 0; text-align: left; border-bottom: 2px dashed var(--bt-line); }
.bt-vendor:last-child { border-bottom: 0; }
.bt-vendor__text { display: flex; flex-direction: column; min-width: 0; }
.bt-vendor__role { font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--inv-petal); }
.bt-vendor__name { font-family: var(--bt-title); font-size: 1.1rem; font-weight: 700; line-height: 1.25; color: var(--inv-text); overflow-wrap: anywhere; }
.bt-vendor__link { display: inline-flex; align-items: center; gap: .3rem; flex: none; min-height: 2.2rem; padding: .3rem .7rem; border-radius: 999px; font-size: .74rem; font-weight: 600; text-decoration: none; color: var(--bt-ink); box-shadow: inset 0 0 0 1.5px var(--bt-line); }
.bt-vendor__link .bt-icon { width: .95rem; height: .95rem; }

/* closing: compact — the photo melting into the wall, the varsity crest, thanks and the name (above the menu) */
.bt-closing { padding: 2.6rem 1.6rem 5.8rem; }
.bt-closing--photo { padding-top: 0; }
.bt-closing__photo {
    position: relative; z-index: -1; height: min(22rem, calc(var(--inv-screen, 100svh) * .48)); margin: 0 -1.6rem; overflow: hidden;
    -webkit-mask: linear-gradient(180deg, #000 55%, transparent); mask: linear-gradient(180deg, #000 55%, transparent);
}
.bt-closing__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.bt-closing__body { position: relative; }
.bt-closing--photo .bt-closing__body { margin-top: -4.2rem; }
.bt-closing__crest { display: flex; justify-content: center; align-items: center; gap: .5rem; margin: 0 auto .4rem; }
.bt-closing__badge { width: 4.4rem; filter: drop-shadow(0 6px 8px rgb(0 0 0 / .4)); rotate: -8deg; }
.bt-closing__star { width: 1.5rem; height: auto; overflow: visible; color: var(--inv-accent); }
.bt-closing__star--right { color: var(--inv-petal); }
.bt-closing__title { margin: 0 0 .55rem; font-family: var(--bt-title); font-size: 2.2rem; font-weight: 800; line-height: 1.05; letter-spacing: -.015em; color: #fff; }
.bt-closing__title em { display: inline-block; font-family: var(--bt-hand); font-style: normal; font-weight: 700; font-size: 1.25em; line-height: .9; color: var(--inv-accent); rotate: -3deg; }
.bt-closing__message { margin: 0 auto; max-width: 32ch; font-size: .9rem; line-height: 1.55; color: var(--bt-cream); }
.bt-closing__salam { margin: .65rem auto 0; max-width: 28ch; font-family: var(--bt-hand); font-size: 1.5rem; font-weight: 700; line-height: 1.1; color: var(--inv-shine); }
.bt-closing__signature { margin: .4rem auto 0; max-width: 30ch; font-size: .84rem; color: var(--bt-cream); }
.bt-closing__names { display: flex; flex-direction: column; align-items: center; margin: .45rem auto 0; }
.bt-closing__names span { max-width: 16ch; font-family: var(--bt-script); font-size: 2.7rem; word-spacing: .12em; line-height: 1.1; padding: 0 .15em .04em; color: #fff; text-wrap: balance; }
.bt-closing__names svg { display: block; width: min(10rem, 60%); height: .65rem; margin-top: -.1rem; overflow: visible; color: var(--inv-petal); }

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

/* the three answers as sticker cards with icons (the radio dot is hidden but still focusable) */
.bt-rsvp .inv-form__choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.bt-rsvp .inv-form__choices legend { margin-bottom: .5rem; padding: 0; }
.bt-rsvp .inv-form__choices label {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: .45rem;
    min-height: 5.4rem; padding: .85rem .3rem .75rem; border-radius: 12px; 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) 45%, transparent);
    transition: background-color .25s ease, color .25s ease, transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s ease;
}
.bt-rsvp .inv-form__choices input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.bt-rsvp .inv-form__choices label::before { content: ''; width: 2.1rem; height: 2.1rem; border-radius: 50%; flex: none; background: var(--bt-mint); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), background-color .25s ease; }
.bt-rsvp .inv-form__choices label::after {
    content: ''; position: absolute; left: 50%; top: 1.3rem; width: 1.2rem; height: 1.2rem; margin-left: -.6rem;
    background: currentColor; color: var(--inv-primary); pointer-events: none;
    -webkit-mask: var(--bt-choice-icon) center / contain no-repeat; mask: var(--bt-choice-icon) center / contain no-repeat;
}
.bt-rsvp .inv-form__choices label:nth-of-type(1) { --bt-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"); }
.bt-rsvp .inv-form__choices label:nth-of-type(2) { --bt-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"); }
.bt-rsvp .inv-form__choices label:nth-of-type(3) { --bt-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"); }
.bt-rsvp .inv-form__choices label:has(input:checked) { color: #fff; background: var(--inv-primary); transform: translateY(-3px) rotate(-1.5deg); box-shadow: 0 0 0 2px var(--inv-deep), 3px 4px 0 2px var(--inv-petal); }
.bt-rsvp .inv-form__choices label:has(input:checked)::before { background-color: rgb(255 255 255 / .2); transform: scale(1.1); }
.bt-rsvp .inv-form__choices label:has(input:checked)::after { color: #fff; }
.bt-rsvp .inv-form__choices label:has(input:focus-visible) { outline: 2px solid var(--inv-petal); outline-offset: 3px; }

/* wishes: the form on lined paper, every wish a sticky note */
.bt-wishes .inv-wishes { --inv-wishes-height: 20rem; }
.bt-wishes .inv-form {
    padding: 1.3rem 1.1rem; border-radius: 4px; box-shadow: var(--bt-drop);
    background: repeating-linear-gradient(180deg, transparent 0 27px, var(--bt-rule) 27px 28px) 0 .6rem, var(--bt-white);
}
.bt-wishes .inv-wishes__list { margin-top: 1.4rem; }
.bt-wishes .inv-wishes:not(.inv-wishes--paged) .inv-wishes__list { padding: .65rem; border-radius: 6px; background: color-mix(in srgb, #000 10%, transparent); box-shadow: inset 0 2px 6px rgb(0 0 0 / .18); }
.bt-wishes .inv-wish { padding: .75rem .9rem; border-radius: 2px 2px 12px 2px; background: var(--bt-note); text-align: left; box-shadow: 0 6px 10px -6px rgb(0 0 0 / .35); }
.bt-wishes .inv-wish:nth-child(3n + 2) { background: color-mix(in srgb, var(--inv-petal) 22%, #fff); }
.bt-wishes .inv-wish:nth-child(3n) { background: var(--bt-mint); }
.bt-wishes .inv-wish__name { font-family: var(--bt-title); font-weight: 700; color: var(--bt-ink); }
.bt-wishes .inv-wish__message { font-size: .9rem; line-height: 1.5; }
.bt-wishes .inv-wish__time { font-size: .72rem; color: var(--bt-muted); }

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

/* ---------- 8. screen sizes ---------- */
/* the cover in px steps per screen height (never svh: Chrome on iPhone sizes it to the whole screen) */
@media (max-height: 800px) {
    .bt-cover { --pw-cover: 14rem; }
    .bt-cover__names > span { font-size: 3.15rem; }
}
@media (max-height: 760px) {
    .bt-cover { --pw-cover: 12.6rem; padding-top: 2.7rem; padding-bottom: 1.4rem; }
    .bt-cover__title { margin-bottom: 1.15rem; }
    .bt-cover__title span { font-size: 1.45rem; }
    .bt-cover__names > span { font-size: 2.9rem; }
    .bt-cover__quote { font-size: 1.32rem; margin-top: .35rem; }
    .bt-cover__guest { margin-top: .7rem; }
    .bt-cover__open { margin-top: .8rem; }
}
@media (max-height: 700px) {
    .bt-cover { --pw-cover: 11.2rem; padding-top: 2.5rem; padding-bottom: 1.2rem; }
    .bt-cover__title { margin-bottom: 1rem; }
    .bt-cover__title span { font-size: 1.35rem; }
    .bt-cover__art { margin-bottom: .45rem; }
    .bt-cover__names { margin-top: .35rem; }
    .bt-cover__names > span { font-size: 2.6rem; }
    .bt-cover__degree { font-size: .68rem; margin-top: .25rem; }
    .bt-cover__date { margin-top: .45rem; }
    .bt-cover__date span { font-size: .94rem; padding: .26rem 1.2rem .3rem; }
    .bt-cover__quote { font-size: 1.22rem; line-height: 1.08; }
    .bt-cover__guest { margin-top: .6rem; padding: .42rem .9rem .4rem; }
    .bt-cover__guest-name { font-size: 1.1rem; }
    .bt-cover__open { margin-top: .7rem; min-height: 2.7rem; padding: .5rem 1.6rem; }
    .bt-cover__doodle { width: 1.5rem; }
}
@media (max-height: 660px) {
    .bt-cover { --pw-cover: 10rem; padding-top: 2.4rem; }
    .bt-cover__names > span { font-size: 2.4rem; }
    .bt-cover__quote { font-size: 1.14rem; max-width: 30ch; }
}
@media (max-height: 600px) {
    .bt-cover { --pw-cover: 8.8rem; padding-top: 2.2rem; }
    .bt-cover__title span { font-size: 1.2rem; }
    .bt-cover__names > span { font-size: 2.2rem; }
    .bt-cover__quote { font-size: 1.06rem; }
}
@media (max-width: 360px) {
    .bt-cover__names > span { font-size: 2.6rem; }
    .bt-lockers { gap: .28rem; }
    .bt-locker { width: 4.5rem; }
    .bt-locker--main { width: 6rem; }
}

/* wide screens: the phone-width column on the locker wall */
@media (min-width: 560px) {
    body.bt-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.bt-body::before {
        content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .1; background: var(--inv-shine);
        -webkit-mask: var(--bt-lockers) center / 90px 320px repeat; mask: var(--bt-lockers) center / 90px 320px repeat;
    }
    .bt-main { box-shadow: 0 30px 60px -30px rgb(0 0 0 / .6); }
}

/* ---------- 9. motion ---------- */
@keyframes bt-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes bt-bounce { 0% { transform: scale(0); } 55% { transform: scale(1.15); } 75% { transform: scale(.94); } 100% { transform: scale(1); } }
@keyframes bt-drop { 0% { opacity: 0; transform: translateY(-2.6rem) rotate(-12deg) scale(.92); } 60% { opacity: 1; transform: translateY(.3rem) rotate(2deg) scale(1.01); } 100% { opacity: 1; transform: none; } }
@keyframes bt-develop { 0% { filter: brightness(1.9) saturate(0) contrast(.55) blur(2px); } 100% { filter: none; } }
@keyframes bt-press { 0% { opacity: 0; transform: scale(1.5) translateY(-.6rem); } 100% { opacity: .93; transform: none; } }
@keyframes bt-thump { 0% { opacity: 0; transform: scale(2.3); } 60% { opacity: 1; transform: scale(.9); } 80% { transform: scale(1.05); } 100% { opacity: 1; transform: scale(1); } }
@keyframes bt-spin-in { 0% { opacity: 0; transform: rotate(-220deg) scale(.3); } 100% { opacity: 1; transform: none; } }
@keyframes bt-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-7px) rotate(8deg); } }
@keyframes bt-twinkle { 0%, 100% { opacity: .55; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.12); } }
@keyframes bt-breathe { 0%, 100% { opacity: .65; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes bt-confetti { from { background-position: 0 0; } to { background-position: 0 460px; } }
@keyframes bt-reveal-x { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes bt-ping { 0% { opacity: .95; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.9); } }
@keyframes bt-tap { 0%, 100% { transform: translate(0, 0) scale(1); } 45% { transform: translate(-3px, -5px) scale(.92); } }
@keyframes bt-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes bt-sway-x { 0%, 100% { left: 50%; } 30% { left: 38%; } 70% { left: 62%; } }
@keyframes bt-sway-clip { 0%, 100% { clip-path: inset(0 50% 0 0); } 30% { clip-path: inset(0 62% 0 0); } 70% { clip-path: inset(0 38% 0 0); } }
@keyframes bt-dial-spin { 0% { transform: rotate(0); } 35% { transform: rotate(260deg); } 65% { transform: rotate(130deg); } 100% { transform: rotate(330deg); } }
@keyframes bt-dial-wiggle { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-18deg); } 88% { transform: rotate(12deg); } }
@keyframes bt-rattle { 0%, 80%, 100% { transform: none; } 84% { transform: rotateY(-3deg); } 90% { transform: rotateY(-1deg); } 95% { transform: rotateY(-2.5deg); } }
@keyframes bt-tumble {
    0% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.2) rotate(-30deg); }
    15% { opacity: 1; }
    55% { transform: translate(calc(var(--dx) * .35), calc(var(--dy) * .12 - 2rem)) scale(1.08) rotate(18deg); }
    80% { transform: translate(0, .3rem) scale(.97) rotate(-4deg); }
    100% { opacity: 1; transform: none; }
}

/* cover (≤ 2.5 s, once): the polaroid drops in and develops, the tapes press on, the stamp thumps, the patch spins in, the
   squiggle is drawn; then a living ground: the light breathes, doodles float and twinkle, confetti drifts down */
html.inv-anim .bt-polaroid--cover { animation: bt-drop 1s cubic-bezier(.25, .8, .3, 1) .1s both; }
html.inv-anim .bt-polaroid--cover .bt-polaroid__photo { animation: bt-develop 2s ease-out .5s both; }
html.inv-anim .bt-polaroid--cover .bt-polaroid__tape--left { animation: bt-press .45s cubic-bezier(.3, 1.4, .5, 1) .75s both; }
html.inv-anim .bt-polaroid--cover .bt-polaroid__tape--right { animation: bt-press .45s cubic-bezier(.3, 1.4, .5, 1) .9s both; }
html.inv-anim .bt-polaroid--cover .bt-polaroid__stamp { animation: bt-thump .55s cubic-bezier(.3, 1, .5, 1) 1.25s both; }
html.inv-anim .bt-polaroid--cover .bt-polaroid__badge { animation: bt-spin-in .8s cubic-bezier(.3, 1.3, .5, 1) 1.05s both; }
html.inv-anim .bt-cover__squiggle { animation: bt-reveal-x .7s ease-out 1.35s both; }
html.inv-anim .bt-cover__glow { animation: bt-breathe 5s ease-in-out infinite; }
html.inv-anim .bt-cover::after { animation: bt-confetti 26s linear infinite; }
html.inv-anim .bt-cover__doodle { animation: bt-float 5.5s ease-in-out infinite; }
html.inv-anim .bt-cover__doodle--heart, html.inv-anim .bt-cover__doodle--star2 { animation: bt-twinkle 3.2s ease-in-out infinite; }
html.inv-anim .bt-cover__doodle--spark { animation-delay: -2s; }
html.inv-anim .bt-cover__doodle--cap { animation-delay: -3.4s; }
html.inv-anim .bt-cover__doodle--star3 { animation: bt-twinkle 2.6s ease-in-out -1s infinite; }

/* Ketuk lokernya: the dial wiggles and the door rattles while it waits; tapped, the dial spins, the door swings out
   (transition) and the stickers tumble onto the page one after another */
html.inv-anim .bt-institution.is-armed:not(.is-spinning) .bt-dial__face { animation: bt-dial-wiggle 3s ease-in-out infinite; }
html.inv-anim .bt-institution.is-armed:not(.is-spinning) .bt-locker--main .bt-locker__door { animation: bt-rattle 3s ease-in-out infinite; }
html.inv-anim .bt-institution.is-spinning .bt-dial__face { animation: bt-dial-spin .75s ease-in-out both; }
html.inv-anim .bt-institution.is-open .bt-sticker { animation: bt-tumble 1.1s cubic-bezier(.3, .7, .3, 1) calc(.7s + var(--i) * .22s) both; }

/* the compare handle sways until touched */
html.inv-anim .bt-compare:not(.is-touched) .bt-compare__handle { animation: bt-sway-x 3.6s ease-in-out 1s infinite; }
html.inv-anim .bt-compare:not(.is-touched) .bt-compare__then { animation: bt-sway-clip 3.6s ease-in-out 1s infinite; }

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

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

@media (prefers-reduced-motion: reduce) {
    .bt-cover, .bt-cover--leave, .bt-cover__inner, .bt-page__done, .bt-locker__door, .bt-locker__inside::after { transition: none !important; }
}

/* ---------- 10. intro scene "Lorong Loker" (scene.json + sections/_scene) ----------
   The intro is teleported to <body>: everything here stands on its own classes. The doors open with CSS animations that
   start when the intro plays (.inv-intro--scene.is-playing); without motion they stay shut. */
.bt-scene-hall { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(180deg, color-mix(in srgb, var(--inv-deep) 80%, var(--inv-primary)) 0 66%, transparent 66%); }
.bt-scene-hall::before { content: ''; position: absolute; inset: 0 0 34% 0; opacity: .1; background: var(--inv-shine); -webkit-mask: var(--bt-lockers) center top / 90px 320px repeat; mask: var(--bt-lockers) center top / 90px 320px repeat; }
.bt-scene-hall__light { position: absolute; left: 14%; right: 14%; top: 0; height: 2.4%; border-radius: 0 0 10px 10px; background: linear-gradient(180deg, #fffbe6, var(--inv-shine)); box-shadow: 0 0 40px 16px color-mix(in srgb, var(--inv-shine) 45%, transparent); }
.bt-scene-hall__light::after { content: ''; position: absolute; left: -20%; right: -20%; top: 100%; height: 30vh; background: linear-gradient(180deg, color-mix(in srgb, var(--inv-shine) 22%, transparent), transparent); clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); }
.bt-scene-hall__floor { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; overflow: hidden; background: linear-gradient(180deg, color-mix(in srgb, var(--bt-kraft) 55%, var(--inv-deep)), color-mix(in srgb, var(--bt-kraft) 30%, #000)); box-shadow: inset 0 6px 0 color-mix(in srgb, var(--bt-kraft) 70%, #3a1f08); }
.bt-scene-hall__floor::before {
    content: ''; position: absolute; left: -60%; right: -60%; top: 0; height: 160%; transform-origin: 50% 0; transform: perspective(260px) rotateX(58deg);
    background: repeating-linear-gradient(90deg, rgb(0 0 0 / .28) 0 2px, transparent 2px 64px), repeating-linear-gradient(0deg, rgb(0 0 0 / .28) 0 2px, transparent 2px 64px);
}
.bt-scene-hall__row { position: absolute; left: 3%; right: 3%; top: 22%; height: 44%; display: flex; gap: 1.4%; }
.bt-scene-locker { position: relative; flex: 1; order: var(--slot); perspective: 420px; }
/* inside each locker: a shelf, a row of books in the template colours, a sticker on the back wall */
.bt-scene-locker__inside {
    position: absolute; inset: 0; overflow: hidden; border-radius: 4px;
    background:
        linear-gradient(#a9b4ba, #6f7b82) 50% 25% / 84% 3px no-repeat,
        radial-gradient(circle, var(--inv-accent) 0 45%, transparent 48%) 70% 15% / 34% 9% no-repeat,
        linear-gradient(90deg, var(--inv-petal) 0 20%, transparent 20% 25%, var(--inv-accent) 25% 45%, transparent 45% 50%, var(--bt-mint) 50% 66%, transparent 66% 71%, var(--inv-primary) 71% 92%, transparent 92%) 40% 94% / 70% 17% no-repeat,
        linear-gradient(180deg, #1a2226, #3a464c 55%, #1c2427);
    box-shadow: inset 0 0 0 3px var(--bt-metal-1), inset 0 10px 18px rgb(0 0 0 / .7);
}
.bt-scene-locker:nth-child(even) .bt-scene-locker__inside { background-position: 50% 25%, 30% 15%, 70% 94%, 0 0; }
.bt-scene-locker--middle .bt-scene-locker__inside { background: linear-gradient(#a9b4ba, #6f7b82) 50% 25% / 84% 3px no-repeat, linear-gradient(180deg, #1a2226, #3a464c 55%, #1c2427); }
.bt-scene-locker__glow { position: absolute; inset: 0; opacity: 0; background: radial-gradient(90% 50% at 50% 45%, #fff 0, color-mix(in srgb, var(--inv-shine) 90%, #fff) 25%, transparent 80%); }
.bt-scene-locker__door { position: absolute; inset: 0; transform-origin: 0 50%; transform-style: preserve-3d; }
.bt-scene-locker__door::after { content: ''; position: absolute; inset: 0; border-radius: 4px; background: var(--bt-metal-1); transform: rotateY(180deg); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.bt-scene-locker__art { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
@keyframes bt-scene-door { 0% { transform: rotateY(0); } 70% { transform: rotateY(-78deg); } 85% { transform: rotateY(-66deg); } 100% { transform: rotateY(-72deg); } }
@keyframes bt-scene-glow { from { opacity: 0; } to { opacity: 1; } }
html.inv-anim .inv-intro--scene.is-playing .bt-scene-locker__door { animation: bt-scene-door 1.1s cubic-bezier(.35, 0, .3, 1) var(--d) both; }
html.inv-anim .inv-intro--scene.is-playing .bt-scene-locker__glow { animation: bt-scene-glow .8s ease-out 2.1s both; }
/* the polaroid that flies out: sized to its box like every part of it */
.bt-scene-box { position: absolute; inset: 0; container-type: size; display: grid; place-items: center; }
.bt-scene-pol { --pw: min(74cqw, 74cqh * .78); --pol-tilt: 0deg; }
.bt-scene-doodles { position: absolute; inset: 0; }
.bt-scene-doodle { position: absolute; width: 11%; height: auto; overflow: visible; }
.bt-scene-doodle--1 { left: 2%; top: 10%; color: var(--inv-accent); }
.bt-scene-doodle--2 { right: 3%; top: 6%; color: var(--inv-petal); }
.bt-scene-doodle--3 { left: 4%; bottom: 14%; color: var(--inv-petal); }
.bt-scene-doodle--4 { right: 2%; bottom: 22%; color: var(--inv-shine); }
html.inv-anim .inv-intro--scene.is-playing .bt-scene-doodle { animation: bt-twinkle 2.4s ease-in-out infinite; }
/* the name card: a sheet of lined notebook paper with a strip of washi tape */
body.bt-body .inv-intro--scene .inv-scene__card {
    top: 76%; rotate: -1.5deg;
    -webkit-mask: none; mask: none; -webkit-backdrop-filter: none; backdrop-filter: none; aspect-ratio: auto;
    padding: 1.5rem 1.2rem 1.15rem; border-radius: 3px;
    background:
        linear-gradient(90deg, transparent 1rem, var(--bt-margin) 1rem calc(1rem + 1.5px), transparent calc(1rem + 1.5px)),
        repeating-linear-gradient(180deg, transparent 0 25px, var(--bt-rule) 25px 26px) 0 .5rem,
        var(--bt-white);
    box-shadow: 0 24px 40px -14px rgb(0 0 0 / .6);
}
body.bt-body .inv-intro--scene .inv-scene__card::before {
    content: ''; position: absolute; top: -.6rem; left: 50%; width: 4.6rem; height: 1.25rem; margin-left: -2.3rem; rotate: -3deg; opacity: .92;
    background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--inv-petal) 82%, #fff) 0 6px, color-mix(in srgb, var(--inv-petal) 48%, #fff) 6px 12px);
}
body.bt-body .inv-scene__card .inv-intro__label { font-family: var(--bt-hand); font-size: 1.3rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--inv-petal); }
body.bt-body .inv-scene__card .inv-intro__names { color: var(--bt-ink); line-height: 1.1; overflow-wrap: anywhere; }
body.bt-body .inv-scene__card .inv-intro__rule { height: 2px; width: 3rem; background: var(--inv-petal); }
body.bt-body .inv-scene__card .inv-intro__date { font-family: var(--bt-title); font-weight: 700; font-size: .95rem; color: var(--bt-muted); white-space: nowrap; }
