/* Taman Pagi (theme key "garden"): a bright morning in an olive garden, the opposite of Rimba Kabut's
   misty dawn. The fixed .tp-stage holds four depths painted by the owner: the morning sky, the far hills,
   near olive branches in the top corners and butterflies that cross now and then. garden.js follows the
   scroll (--tp-p, and each page's --tp-l/--tp-la) and sets html.tp-motion for the entrances; theme.css
   turns them into transform/opacity only. Petals fall on the cover and the thank-you page only. Without
   the script, or with prefers-reduced-motion: reduce, every page is simply there. Dark mode is dusk. */
@font-face { font-family: "Fraunces"; src: url("/frontend/assets/fonts/fraunces-latin.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/frontend/assets/fonts/fraunces-italic-latin.woff2") format("woff2"); font-style: italic; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("/frontend/assets/fonts/mulish-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root[data-theme="garden"] {
    --bg: #fbf8ee; --surface: #fffdf6; --ink: #2c3324; --muted: #5f6852; --accent: #56703f; --accent-ink: #ffffff; --line: #d5dcc6; --radius: 1rem;
    --heading: "Fraunces", Georgia, serif; --body: "Mulish", system-ui, sans-serif;
    /* Olive is the accent: 5.2:1 on the cream, white on it 5.55:1. */
    --tp-olive: #56703f; --tp-olive-deep: #445a31; --tp-leaf: #9bab84; --tp-petal: #e9c9b8; --tp-field: rgba(255, 253, 246, .88);
    --tp-sky: url("img/sky-sm.webp"); --tp-mist: rgba(251, 248, 238, .5); --tp-halo: 251, 248, 238; --tp-glow: 255, 226, 170;
    --tp-gutter: max(1.4rem, env(safe-area-inset-left)); --tp-out: cubic-bezier(.16, 1, .3, 1);
}
/* Dusk in the garden: the same painting under a deep olive veil, cream text, a light olive accent. */
:root[data-theme="garden"][data-scheme="dark"] {
    color-scheme: dark;
    --bg: #1f261b; --surface: #273022; --ink: #f3efe2; --muted: #c5c9b6; --accent: #b5cc95; --accent-ink: #1f261b; --line: #3c4734;
    --tp-olive-deep: #b5cc95; --tp-leaf: #6f8a59; --tp-field: rgba(39, 48, 34, .9);
    --tp-mist: rgba(31, 38, 27, .72); --tp-halo: 31, 38, 27; --tp-glow: 230, 170, 110;
    --tp-sky: url("img/sky-dusk-sm.webp");
}
@media (min-width: 900px) {
    :root[data-theme="garden"] { --tp-sky: url("img/sky.webp"); --tp-gutter: clamp(2.5rem, 6vw, 6rem); }
    :root[data-theme="garden"][data-scheme="dark"] { --tp-sky: url("img/sky-dusk.webp"); }
}

[data-theme="garden"] body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.05rem/1.65 var(--body); overflow-x: clip; }
html[data-theme="garden"] { scroll-snap-type: y proximity; }
/* Inside the Studio preview (iframe or preview page) a swipe must reach Studio: no snapping. */
html[data-theme="garden"].tp-framed, html[data-theme="garden"]:has(body.is-preview) { scroll-snap-type: none; }
[data-restricted="true"] .restricted:has(~ #invitation-root:not([hidden])) { display: none; }

/* ---------- Stage: four depths ---------- */
.tp { position: relative; isolation: isolate; overflow-x: hidden; overflow-x: clip; }
.tp-stage { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg); }
.tp-layer { position: absolute; left: 0; width: 100%; will-change: transform; }
.tp-sky { top: -6%; height: 112%; background: var(--tp-sky) 70% 20% / cover no-repeat; transform: translate3d(0, calc(var(--tp-p, 0) * -4vh), 0) scale(1.04); }
.tp-stage::after { content: ""; position: absolute; inset: 0; background: var(--tp-mist); }
.tp-hills { bottom: -2%; height: min(30vh, 17rem); z-index: 1; background: url("img/hills.webp") center bottom / auto 100% repeat-x;
    transform: translate3d(0, calc(var(--tp-p, 0) * 9vh), 0); opacity: .9; }
.tp-olive { top: 0; height: min(34vh, 20rem); z-index: 1;
    background: url("img/olive-left.webp") left -3rem top -2rem / auto 100% no-repeat, url("img/olive-right.webp") right -3rem top -2rem / auto 100% no-repeat;
    transform: translate3d(0, calc(var(--tp-p, 0) * -6vh), 0); }
:root[data-scheme="dark"] :is(.tp-hills, .tp-olive) { opacity: .45; }
/* Butterflies cross now and then: most of each cycle they wait off screen. */
.tp-flight { position: absolute; z-index: 2; left: 0; top: var(--y); width: 100%; animation: tp-cross 28s linear infinite; animation-delay: calc(var(--d) * -1); }
.tp-butterfly { position: relative; display: block; width: calc(52px * var(--s)); aspect-ratio: 220 / 166; }
/* Wings beat by trading the open and the closed painting (opacity, in steps). */
.tp-butterfly img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.tp-wings-closed { opacity: 0; animation: tp-flap-closed .36s linear infinite; }
.tp-wings-open { animation: tp-flap-open .36s linear infinite; }
@keyframes tp-cross { 0% { transform: translate3d(-18%, 0, 0); } 18% { transform: translate3d(40%, -5vh, 0); } 36% { transform: translate3d(112%, 2vh, 0); } 100% { transform: translate3d(112%, 2vh, 0); } }
@keyframes tp-flap-open { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes tp-flap-closed { 0%, 49% { opacity: 0; } 50%, 100% { opacity: 1; } }
@keyframes tp-fall { from { transform: translate3d(0, -100%, 0); } to { transform: translate3d(0, 100%, 0); } }
@keyframes tp-bob { 50% { transform: translate3d(0, -6px, 0) rotate(-4deg); } }
@keyframes tp-nudge { 50% { transform: translate3d(0, 4px, 0); } }

/* ---------- Type and atoms ---------- */
.tp-main { position: relative; outline: none; transition: opacity .8s ease .8s; }
body.is-locked .tp-main { opacity: 0; }
.tp-main :is(p, h1, h2, h3, li, blockquote, figcaption, legend, label) { text-shadow: 0 0 14px rgba(var(--tp-halo), .95), 0 0 3px rgba(var(--tp-halo), .9); }
.tp-page { position: relative; min-height: 100svh; box-sizing: border-box; display: grid; align-content: center; scroll-snap-align: start; }
.tp-section { padding: clamp(5rem, 13vw, 7rem) var(--tp-gutter); }
.tp-center { text-align: center; }
.tp-narrow { width: 100%; max-width: 36rem; margin-inline: auto; }
.tp-wide { width: 100%; max-width: 56rem; margin-inline: auto; }
.tp-kicker { margin: 0 0 .5rem; font: 800 .75rem/1.4 var(--body); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.tp-names { margin: .25rem 0 0; font: 400 clamp(2.6rem, 11.5vw, 5rem)/1.02 var(--heading); letter-spacing: -.01em; text-wrap: balance; }
.tp-amp, .tp-title em { font-style: italic; color: var(--accent); }
.tp-title { margin: 0 0 1rem; font: 400 clamp(2.4rem, 10vw, 3.6rem)/1.05 var(--heading); letter-spacing: -.01em; text-wrap: balance; }
.tp-date { margin: 0; font: italic 400 1.2rem/1.4 var(--heading); color: var(--muted); }
.tp-lead { margin: 0 0 1rem; font-size: 1.08rem; }
.tp-muted, .tp-note { color: var(--muted); }
.tp-note { font-size: .88rem; }
.tp-sprig-rule { display: block; width: 9.5rem; height: auto; margin: 1rem auto 1.1rem; overflow: visible; }
.tp-sprig-stem { fill: none; stroke: var(--accent); stroke-width: 1; }
.tp-sprig-leaf { fill: var(--tp-leaf); }
.tp-sprig-olive { fill: var(--accent); }
.tp-button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: 0 1.5rem; box-sizing: border-box; border: 1.5px solid var(--accent);
    border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 700 .92rem/1 var(--body); letter-spacing: .04em; text-decoration: none; cursor: pointer;
    box-shadow: 0 10px 22px -10px rgba(68, 90, 49, .55); }
.tp-button svg { width: 18px; height: 18px; flex: 0 0 auto; }
.tp-button[hidden] { display: none; }
.tp-button-ghost { min-height: 44px; margin-top: .9rem; background: transparent; color: var(--tp-olive-deep); box-shadow: none; }
.tp-main .tp-button, .tp-main .tp-button * { text-shadow: none; }
.tp :focus-visible, .tp-opening :focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.tp-actions { margin: 1.75rem 0 0; }
.tp-cue { position: absolute; left: 50%; bottom: max(1.25rem, env(safe-area-inset-bottom)); translate: -50% 0; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px;
    border-radius: 50%; background: rgba(var(--tp-halo), .85); color: var(--accent); text-decoration: none; box-shadow: 0 6px 16px -8px rgba(68, 90, 49, .6); }
.tp-cue svg { width: 18px; height: 18px; animation: tp-nudge 2s ease-in-out infinite; }

/* ---------- Opening: the morning ---------- */
.tp-opening { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; overflow: hidden auto; text-align: center; color: var(--ink);
    padding: max(2rem, env(safe-area-inset-top)) var(--tp-gutter) max(1.75rem, env(safe-area-inset-bottom)); transition: opacity .6s ease .8s; }
.tp-opening[hidden] { display: none; }
.tp-opening-sky { position: absolute; inset: 0; z-index: -2; background: radial-gradient(60% 40% at 78% 22%, rgba(var(--tp-glow), .55), transparent 70%), var(--tp-sky) 70% 20% / cover no-repeat, var(--bg);
    transition: transform 1.4s var(--tp-out); }
.tp-opening-sky::after { content: ""; position: absolute; inset: 0; background: var(--tp-mist); opacity: .7; }
.tp-petals, .tp-closing-petals { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.tp-petals span, .tp-closing-petals span { position: absolute; inset: 0; background: url("img/petals.webp") -2rem 0 / min(48%, 17rem) auto repeat-y; opacity: .55;
    animation: tp-fall 16s linear infinite; }
.tp-petals span + span, .tp-closing-petals span + span { background-position: right -2rem top 45%; background-size: min(40%, 14rem) auto; opacity: .45; animation-duration: 22s; animation-delay: -9s; }
.tp-branch { position: absolute; top: -2%; z-index: 0; width: min(64vw, 25rem); height: auto; pointer-events: none; transition: transform 1.2s var(--tp-out); }
.tp-branch-l { left: -12%; }
.tp-branch-r { right: -12%; }
.tp-opening-butterfly { position: absolute; z-index: 1; right: 16%; top: 24%; width: 2.8rem; height: auto; animation: tp-bob 3.2s ease-in-out infinite; }
.tp-opening-text { position: relative; z-index: 1; display: grid; justify-items: center; gap: .2rem; padding-top: 6rem; transition: opacity .5s ease, transform .7s var(--tp-out); }
.tp-opening-text p { margin: 0; }
.tp-opening-text :is(p, h2) { text-shadow: 0 0 16px rgba(var(--tp-halo), .95), 0 0 3px rgba(var(--tp-halo), .9); }
.tp-opening-title { margin: .2rem 0 .3rem; font: 400 clamp(3rem, 15vw, 5.25rem)/1 var(--heading); letter-spacing: -.015em; }
.tp-opening-date { font: italic 400 1.15rem/1.4 var(--heading); color: var(--muted); }
.tp-guest { display: grid; justify-items: center; gap: .15rem; margin: 2.25rem 0 1.25rem; }
.tp-guest-name { font: 400 clamp(1.5rem, 6.5vw, 1.9rem)/1.25 var(--heading); }
.tp-guest .tp-note { max-width: 19rem; }
.tp-opening.is-closing { opacity: 0; pointer-events: none; }
.tp-opening.is-closing .tp-branch-l { transform: translate3d(-75%, -10%, 0) rotate(-10deg); }
.tp-opening.is-closing .tp-branch-r { transform: translate3d(75%, -10%, 0) rotate(10deg); }
.tp-opening.is-closing .tp-opening-sky { transform: scale(1.08); }
.tp-opening.is-closing .tp-opening-text { opacity: 0; transform: translate3d(0, 1rem, 0); }

/* ---------- Pengantar: the one box ---------- */
.tp-verse { margin: 1.75rem 0 0; padding: 1.5rem 1.35rem; border: 1px solid rgba(86, 112, 63, .25); border-radius: 1.5rem; background: rgba(255, 253, 246, .85);
    box-shadow: 0 18px 40px -24px rgba(68, 90, 49, .5); }
:root[data-scheme="dark"] .tp-verse { background: rgba(39, 48, 34, .88); border-color: rgba(181, 204, 149, .25); }
.tp-verse blockquote { margin: 0; font: italic 400 1.2rem/1.5 var(--heading); }
.tp-verse figcaption { margin-top: .6rem; font: 800 .75rem/1.4 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--tp-olive-deep); }

/* ---------- Mempelai: under the pergola ---------- */
/* 18 Nov 2026: one page per partner (see garden.blade.php). */
.tp-arbour { position: relative; width: min(86vw, 24rem, calc((100svh - 15rem) * .82)); aspect-ratio: 640 / 781; margin: .5rem auto 0; }
.tp-pergola { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.tp-arbour-photos { position: absolute; left: 25%; right: 27%; top: 27%; bottom: 8%; display: flex; gap: 4%; }
.tp-photo { flex: 1; min-width: 0; height: 100%; object-fit: cover; border-radius: 999px 999px .75rem .75rem; box-shadow: 0 0 0 3px rgba(255, 253, 246, .9); }
.tp-photo-initial { display: grid; place-items: center; background: #eef1e6; font: italic 400 clamp(2rem, 9vw, 3rem)/1 var(--heading); color: var(--tp-olive); }
.tp-person p { margin: 0 0 .2rem; font-size: .95rem; }
.tp-person-name { margin: 1rem 0 .35rem; font: 500 clamp(1.3rem, 5.6vw, 1.75rem)/1.15 var(--heading); }
.tp-socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1rem; }
.tp-socials a { display: inline-flex; align-items: center; min-height: 44px; color: var(--tp-olive-deep); font-weight: 700; text-underline-offset: 3px; }

/* ---------- Hitung mundur, acara ---------- */
.tp-countdown { margin-top: 1.25rem; }
.tp-clock { display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr)); gap: .4rem; }
.tp-clock span { display: grid; gap: .2rem; font: 800 .75rem/1.2 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.tp-clock b { font: 400 clamp(2.3rem, 11vw, 4rem)/1 var(--heading); letter-spacing: -.02em; color: var(--accent); font-variant-numeric: tabular-nums; }
.tp-events-inner { width: 100%; max-width: 34rem; margin-inline: auto; text-align: center; }
.tp-event-list { margin-top: 1rem; }
.tp-event p { margin: 0 0 .2rem; }
.tp-event-title { font: 800 .76rem/1.4 var(--body); letter-spacing: .24em; text-transform: uppercase; color: var(--tp-olive-deep); }
.tp-event-date { margin: .35rem 0 .2rem; font: 400 1.6rem/1.2 var(--heading); }
.tp-event-place { margin-top: .5rem !important; font-weight: 700; }

/* ---------- Busana, kisah, galeri, video ---------- */
.tp-swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-top: 1.25rem; }
.tp-swatch { width: 3rem; height: 3rem; border-radius: 0 70% 0 70%; background: var(--swatch); box-shadow: 0 0 0 3px rgba(255, 253, 246, .9), 0 10px 20px -10px rgba(44, 51, 36, .55); }
.tp-story-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: 0 0 1.25rem; border-radius: 1.25rem; }
.tp-timeline { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
.tp-timeline li { position: relative; padding-left: 1.5rem; border-left: 1px dashed var(--accent); }
.tp-timeline li::before { content: ""; position: absolute; left: -6px; top: .5rem; width: 11px; height: 11px; border-radius: 0 70% 0 70%; background: var(--accent); }
.tp-timeline h3 { margin: 0 0 .3rem; font: 500 1.35rem/1.2 var(--heading); }
.tp-timeline p { margin: 0 0 .2rem; }
.tp-timeline img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: .5rem 0; border-radius: 1rem; }
.tp-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; width: 100%; max-width: 62rem; margin: .5rem auto 0; }
.tp-photo-item { margin: 0; min-width: 0; }
.tp-photo-item:nth-child(3n + 1) { grid-column: span 2; }
.tp-photos .gallery-item { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.tp-photos img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 1.1rem; }
.tp-photo-item:nth-child(3n + 1) img { aspect-ratio: 16 / 10; }
.tp-photos figcaption { padding: .35rem .25rem 0; font-size: .85rem; color: var(--muted); text-align: center; }
.tp-video { aspect-ratio: 16 / 9; border-radius: 1.25rem; overflow: hidden; background: var(--surface); }
.tp-video iframe { display: block; width: 100%; height: 100%; border: 0; }
#tp-video .tp-note { margin-top: .75rem; }

/* ---------- Tanda kasih, RSVP, ucapan, penutup ---------- */
.tp-gift-shell summary { list-style: none; }
.tp-gift-shell summary::-webkit-details-marker { display: none; }
.tp-gift-shell[open] summary { background: transparent; color: var(--tp-olive-deep); box-shadow: none; }
.tp-gift-list { margin-top: 1.25rem; }
.tp-gift { padding: 1rem 0; border-top: 1px dashed rgba(86, 112, 63, .45); }
.tp-gift p { margin: 0 0 .2rem; }
.tp-gift-number { font: 500 1.4rem/1.3 var(--heading); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.tp-form { margin-top: 1.5rem; }
.tp-form > fieldset, .tp-attendance { min-width: 0; margin: 0; padding: 0; border: 0; }
.tp-field { display: grid; gap: .35rem; margin-bottom: 1rem; font-weight: 700; font-size: .92rem; }
.tp-field[hidden] { display: none; }
.tp-field :is(input, select, textarea) { width: 100%; min-height: 48px; box-sizing: border-box; padding: .65rem 1rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--tp-field); color: var(--ink); font: 400 1rem/1.4 var(--body); }
.tp-field textarea { min-height: 7rem; resize: vertical; }
.tp-attendance legend { margin-bottom: .35rem; font-weight: 700; font-size: .92rem; }
.tp-attendance-options { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: 1rem; }
.tp-attendance-options input { position: absolute; opacity: 0; pointer-events: none; }
.tp-attendance-options label { display: grid; place-items: center; min-height: 48px; border: 1px solid var(--line); border-radius: 999px; background: var(--tp-field); cursor: pointer; font-weight: 700; text-shadow: none; }
.tp-attendance-options input:checked + label { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.tp-attendance-options input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 2px; }
.tp-submit { width: 100%; margin-top: .25rem; }
.tp-submit:disabled { opacity: .6; cursor: progress; }
.tp-form-status { min-height: 1.3rem; margin: .75rem 0 0; color: var(--muted); font-size: .92rem; text-align: center; }
.tp-wish-list { max-height: min(58svh, 32rem); margin: 1rem 0 0; padding: 0; overflow-y: auto; list-style: none; overscroll-behavior: contain; }
.tp-wish-list .cine-wish { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; padding: .9rem 0; border-top: 1px dashed rgba(86, 112, 63, .45); }
.tp-wish-list .cine-wish strong { display: block; font: 500 1.1rem/1.3 var(--heading); }
.tp-wish-list .cine-wish p { margin: .2rem 0 0; color: var(--muted); font-size: .95rem; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-line; }
.tp-wish-list .cine-like { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .3rem; min-width: 44px; min-height: 44px; padding: 0 .7rem; border: 1px solid var(--line); border-radius: 999px;
    background: var(--tp-field); color: var(--muted); font: 700 .85rem var(--body); cursor: pointer; }
.tp-wish-list .cine-like svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.tp-wish-list .cine-like.is-liked { color: var(--tp-olive-deep); }
.tp-wish-list .cine-like.is-liked svg { fill: currentColor; }
.tp-closing { overflow: hidden; padding-bottom: max(1.25rem, env(safe-area-inset-bottom)); }
.tp-closing-title { margin: 1rem 0 0; font: italic 400 1.6rem/1.3 var(--heading); }
.tp-closing-names { margin: .25rem 0 0; font: 400 clamp(2.8rem, 13vw, 4.5rem)/1.05 var(--heading); }
.tp-credit { display: grid; justify-items: center; gap: .25rem; margin-top: 3rem; font-size: .75rem; color: var(--muted); }
.tp-credit p { margin: 0; }
.tp-logo { width: 5.5rem; height: auto; }
.tp-logo-light { display: none; }
:root[data-scheme="dark"] .tp-logo-ink { display: none; }
:root[data-scheme="dark"] .tp-logo-light { display: block; }

/* ---------- Music and light/dark controls ---------- */
[data-theme="garden"] .music-toggle { border: 0; background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 22px -10px rgba(68, 90, 49, .6); }
[data-theme="garden"] .music-toggle[aria-pressed="true"] { background: var(--surface); color: var(--tp-olive-deep); }
[data-theme="garden"] .scheme-toggle { border: 1px solid var(--line); background: var(--surface); color: var(--tp-olive-deep); }

/* ---------- Motion (only once garden.js has marked the page) ---------- */
[data-rv] { transition: opacity .9s ease, transform 1.2s var(--tp-out); transition-delay: calc(var(--i, 0) * 90ms); }
.tp-motion [data-rv]:not(.is-in) { opacity: 0; transition: none; }
.tp-motion [data-rv="up"]:not(.is-in) { transform: translate3d(0, 24px, 0); }
.tp-motion .tp-scene { opacity: calc(1 - var(--tp-la, 0) * .9); transform: translate3d(0, calc(var(--tp-l, 0) * 7vh), 0); }

/* ---------- Wide screens ---------- */
@media (min-width: 900px) {
    .tp-olive { height: min(46vh, 30rem); }
    .tp-branch { width: min(30vw, 26rem); }
    .tp-arbour { width: min(26rem, calc((100svh - 15rem) * .82)); }
    .tp-event-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 3rem; }
    .tp-event-list .tp-sprig-rule { display: none; }
    .tp-events-inner { max-width: 62rem; }
    .tp-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
    .tp-photo-item:nth-child(3n + 1) { grid-column: auto; }
    .tp-photo-item:nth-child(3n + 1) img { aspect-ratio: 4 / 5; }
}

@media (prefers-reduced-motion: reduce) {
    .tp *, .tp-opening, .tp-opening *, [data-theme="garden"] .music-toggle { animation: none !important; transition: none !important; }
    .tp-layer, .tp-scene { transform: none !important; }
    .tp-flight, .tp-petals span + span, .tp-closing-petals span + span { display: none; }
}

/* Janur stage 8: the hills and the pergola appear after the cover opens, so they wait for it. */
:root.has-cover .tp-hills { background-image: none; }
:root.has-cover .tp-pergola { display: none; }

/* 18 Nov 2026 (owner request): the closing words stay centred; the logo and copyright rest at the foot of the page. */
.tp-closing { grid-template-rows: minmax(0, 1fr) auto; align-content: stretch; }
.tp-closing > :not(.tp-credit) { align-self: center; }
.tp-closing > .tp-credit { align-self: end; margin-top: 2.5rem; }
