/* Galeri (theme key "modern"): the invitation as an exhibition. Rooms (.gl-page) snap one per screen;
   the couple's photos hang as works in white frames, the type is editorial (Instrument Serif over
   Inter) and the one accent is the red dot of a wall label. modern.js sets html.gl-motion (entrances,
   the white wall panel that slides away as a room arrives, the giant names drifting) and each page's
   distance --gl-l / --gl-la; theme.css turns them into transform/opacity only. Without the script,
   or with prefers-reduced-motion: reduce, every room is simply there. */
@font-face { font-family: "Instrument Serif"; src: url("/frontend/assets/fonts/instrument-serif-latin.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/frontend/assets/fonts/instrument-serif-italic-latin.woff2") format("woff2"); font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/frontend/assets/fonts/inter-latin.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

:root[data-theme="modern"] {
    --bg: #f4f3f0; --surface: #ffffff; --ink: #141414; --muted: #5d5d5d; --accent: #141414; --accent-ink: #ffffff; --line: #141414; --radius: 0;
    --heading: "Instrument Serif", Georgia, serif; --body: "Inter", system-ui, sans-serif;
    /* The one accent: 4.9:1 on the wall, 5.5:1 on white, and white on it 5.5:1. */
    --gl-accent: #c2361f;
    --gl-soft: #e7e5e0; --gl-panel: #fbfbfa; --gl-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 30px 60px -28px rgba(0, 0, 0, .45);
    --gl-wall: url("img/wall-sm.webp"); --gl-wall-shade: rgba(244, 243, 240, 0); --gl-blend: multiply;
    --gl-gutter: max(1.5rem, env(safe-area-inset-left)); --gl-out: cubic-bezier(.16, 1, .3, 1);
}
:root[data-theme="modern"][data-scheme="dark"] {
    color-scheme: dark;
    --bg: #141414; --surface: #1c1c1c; --ink: #f4f3f0; --muted: #a9a6a0; --accent: #f4f3f0; --accent-ink: #141414; --line: #f4f3f0;
    --gl-accent: #ff6a4d; --gl-soft: #2c2c2c; --gl-panel: #1c1c1c; --gl-shadow: 0 30px 60px -28px rgba(0, 0, 0, .9);
    --gl-wall-shade: rgba(20, 20, 20, .86); --gl-blend: screen;
}
@media (min-width: 900px) { :root[data-theme="modern"] { --gl-wall: url("img/wall.webp"); --gl-gutter: clamp(2.5rem, 7vw, 8rem); } }

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

/* ---------- Atoms ---------- */
.gl { position: relative; overflow-x: hidden; overflow-x: clip; }
.gl-main { outline: none; transition: opacity .6s ease .75s; }
body.is-locked .gl-main { opacity: 0; }
.gl-page { position: relative; min-height: 100svh; box-sizing: border-box; display: grid; align-content: center; scroll-snap-align: start; }
.gl-section { padding: clamp(4.5rem, 12vw, 7rem) var(--gl-gutter); }
.gl-narrow { width: 100%; max-width: 38rem; margin-inline: auto; }
.gl-wide { width: 100%; max-width: 60rem; margin-inline: auto; }
.gl-room { display: block; margin: 0 0 1.25rem; font: 500 .75rem/1.4 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.gl-room-split { display: flex; justify-content: space-between; gap: 1rem; }
.gl-kicker { margin: 0 0 .35rem; font: 500 .75rem/1.4 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.gl-title { margin: 0 0 1.25rem; font: 400 clamp(3rem, 13vw, 5.5rem)/.95 var(--heading); letter-spacing: -.02em; text-wrap: balance; }
.gl-title-xl { font-size: clamp(4.75rem, 24vw, 10rem); line-height: .88; }
.gl-lead { font-size: 1.05rem; margin: 0 0 1rem; }
.gl-muted, .gl-note { color: var(--muted); }
.gl-note { font-size: .85rem; }
.gl-amp { font-style: italic; }
.gl-dot { display: block; width: 10px; height: 10px; margin-top: .9rem; border-radius: 50%; background: var(--gl-accent); }
.gl-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: 52px; padding: 0 1.25rem; box-sizing: border-box;
    border: 1px solid var(--accent); border-radius: 0; background: var(--accent); color: var(--accent-ink); font: 500 .95rem/1 var(--body); text-decoration: none; cursor: pointer; }
.gl-button svg { width: 20px; height: 20px; flex: 0 0 auto; transition: transform .25s ease; }
.gl-button:hover svg { transform: translate3d(4px, 0, 0); }
.gl-button[hidden] { display: none; }
.gl-button-ghost { background: transparent; color: var(--ink); min-height: 44px; }
.gl-link { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; color: var(--gl-accent); font-weight: 600; font-size: .95rem; text-decoration: none; }
.gl-link svg { width: 16px; height: 16px; transition: transform .25s ease; }
.gl-link:hover svg { transform: translate3d(2px, -2px, 0); }
.gl :focus-visible, .gl-opening :focus-visible { outline: 3px solid var(--gl-accent); outline-offset: 3px; }
.gl-actions { margin: 2rem 0 0; }

/* ---------- The frame: a work in a white mat ---------- */
.gl-frame { --gl-mat: clamp(10px, 4%, 18px); position: relative; overflow: hidden; padding: var(--gl-mat); background: #fff; box-shadow: var(--gl-shadow); }
.gl-frame-photo, .gl-frame-type { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gl-frame-type { display: grid; place-items: center; background: #fbfbfa; color: #141414; font: italic 400 clamp(4.5rem, 26vw, 9rem)/1 var(--heading); letter-spacing: -.04em; box-shadow: inset 0 0 0 1px #e7e5e0; }
.gl-panel { position: absolute; inset: var(--gl-mat); background: #fbfbfa; box-shadow: -14px 0 30px rgba(0, 0, 0, .12); transform: translate3d(42%, 0, 0); transition: transform .75s var(--gl-out); }

/* ---------- Opening: the gallery wall ---------- */
.gl-opening { position: fixed; inset: 0; z-index: 20; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 1.25rem; overflow-y: auto;
    padding: max(2rem, env(safe-area-inset-top)) var(--gl-gutter) max(1.5rem, env(safe-area-inset-bottom));
    background: linear-gradient(var(--gl-wall-shade), var(--gl-wall-shade)), var(--gl-wall) center / cover no-repeat, var(--bg); color: var(--ink);
    transition: opacity .5s ease .75s; }
.gl-opening[hidden] { display: none; }
.gl-opening .gl-room { margin: 0; }
.gl-work { display: grid; place-items: center; min-height: 0; }
.gl-work .gl-frame { width: min(72vw, 20rem, calc((100svh - 23rem) * .8)); min-width: 9rem; transition: transform 1.1s var(--gl-out) .45s; }
.gl-label { display: grid; grid-template-columns: 10px minmax(0, 1fr); column-gap: .75rem; }
.gl-label p { margin: 0; }
.gl-label-title { margin: 0; font: 400 clamp(2.4rem, 11vw, 3.5rem)/1 var(--heading); letter-spacing: -.01em; }
.gl-label-medium { margin-top: .35rem !important; font: italic 1.2rem/1.3 var(--heading); color: var(--muted); }
.gl-label-date { margin-top: .5rem !important; font-size: .9rem; }
.gl-label-for { margin-top: .9rem !important; padding-top: .75rem; border-top: 1px solid var(--line); font: 500 .75rem/1.4 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
/* Tema Fase 1: the guest's name is the cover's moment, in the display serif. */
.gl-guest-name { margin-top: .2rem !important; font: 400 clamp(1.75rem, 7.5vw, 2.1rem)/1.15 var(--heading); }
.gl-label .gl-note { margin-top: .25rem !important; font-size: .8rem; }
.gl-open { width: 100%; }
.gl-opening :is(.gl-room, .gl-label, .gl-open) { transition: opacity .4s ease, transform .5s var(--gl-out); }
.gl-opening.is-closing { opacity: 0; pointer-events: none; }
.gl-opening.is-closing .gl-panel { transform: translate3d(101%, 0, 0); }
.gl-opening.is-closing .gl-work .gl-frame { transform: scale(1.08); }
.gl-opening.is-closing :is(.gl-room, .gl-label, .gl-open) { opacity: 0; transform: translate3d(0, 1rem, 0); }

/* ---------- Room 01: the work itself ---------- */
.gl-hero { padding: clamp(4rem, 10vw, 6rem) var(--gl-gutter) 6rem; background: linear-gradient(var(--gl-wall-shade), var(--gl-wall-shade)), var(--gl-wall) center / cover no-repeat, var(--bg); }
.gl-hero-grid { display: grid; gap: 1.75rem; width: 100%; max-width: 72rem; margin-inline: auto; }
.gl-hero-grid .gl-room { margin: 0; }
.gl-hero-work { margin: 0; justify-self: center; width: min(74vw, 22rem); }
.gl-hero-names { margin: 0; font: 400 clamp(2.75rem, 12vw, 6.5rem)/.95 var(--heading); letter-spacing: -.02em; text-wrap: balance; }
.gl-hero-date { margin: .9rem 0 0; font-size: .95rem; }
.gl-cue { position: absolute; left: 50%; bottom: max(1.25rem, env(safe-area-inset-bottom)); translate: -50% 0; display: grid; place-items: center; width: 44px; height: 44px;
    border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.gl-cue svg { width: 20px; height: 20px; animation: gl-bob 2s ease-in-out infinite; }
@keyframes gl-bob { 50% { transform: translate3d(0, 4px, 0); } }

/* ---------- Pengantar ---------- */
.gl-verse { margin: 2rem 0 0; padding: 1.75rem 1.5rem; background: var(--surface); box-shadow: inset 0 0 0 1px var(--gl-soft); }
.gl-verse blockquote { margin: 0; font: italic 400 1.45rem/1.35 var(--heading); }
.gl-verse figcaption { margin-top: .9rem; font: 500 .75rem/1.4 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* ---------- Mempelai: one room, two works ---------- */
.gl-person-grid { display: grid; gap: 1.25rem; width: 100%; max-width: 68rem; margin-inline: auto; }
.gl-person-grid .gl-room { margin: 0; }
.gl-person-stage { position: relative; padding-bottom: clamp(2.5rem, 13vw, 6.5rem); }
.gl-photo { display: block; width: min(68%, 24rem); aspect-ratio: 4 / 5; object-fit: cover; margin-left: auto; box-shadow: var(--gl-shadow); }
.gl-person-right .gl-photo { margin-left: 0; margin-right: auto; }
.gl-photo-type { display: grid; place-items: center; background: var(--surface); color: var(--ink); font: italic 400 clamp(7rem, 40vw, 14rem)/1 var(--heading); box-shadow: inset 0 0 0 1px var(--gl-soft); }
.gl-giant { position: absolute; left: -.04em; bottom: 0; margin: 0; font: 400 clamp(5.5rem, 30vw, 13rem)/.82 var(--heading); letter-spacing: -.035em; white-space: nowrap;
    mix-blend-mode: var(--gl-blend); pointer-events: none; }
.gl-person-right .gl-giant { left: auto; right: -.04em; font-style: italic; }
.gl-caption { display: grid; grid-template-columns: 10px minmax(0, 1fr); column-gap: .75rem; }
.gl-caption p { margin: 0 0 .25rem; }
.gl-caption .gl-dot { margin-top: .55rem; }
.gl-person-name { margin: .1rem 0 .4rem; font: 400 clamp(1.9rem, 8vw, 2.5rem)/1.1 var(--heading); }
.gl-socials { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.gl-socials a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 500; text-underline-offset: 4px; }

/* ---------- Hari bahagia, acara ---------- */
.gl-countdown-page { background: var(--surface); }
.gl-countdown-page .gl-scene { width: 100%; max-width: 64rem; margin-inline: auto; }
.gl-countdown { margin-top: 1.5rem; }
.gl-clock { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: .75rem; }
.gl-clock span { display: grid; gap: .35rem; padding-top: .6rem; border-top: 1px solid var(--line); font: 500 .75rem/1.3 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.gl-clock b { font: 400 clamp(2.5rem, 13vw, 8rem)/.9 var(--heading); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.gl-events { background: var(--surface); }
.gl-events-grid { display: grid; gap: 1.5rem; width: 100%; max-width: 72rem; margin-inline: auto; }
.gl-event { padding: 1.1rem 0 .6rem; border-top: 1px solid var(--line); }
.gl-event:last-child { border-bottom: 1px solid var(--line); }
.gl-event-title { margin: 0 0 .75rem; font: 400 clamp(2rem, 9vw, 2.75rem)/1 var(--heading); }
.gl-event-facts { display: grid; grid-template-columns: 5.25rem minmax(0, 1fr); gap: .35rem .75rem; margin: 0; font-size: .95rem; }
.gl-event-facts dt { color: var(--muted); }
.gl-event-facts dd { margin: 0; }
.gl-event-place, .gl-event-facts dd .gl-muted { display: block; }
.gl-event-place { font-weight: 600; }
.gl-event .gl-link { margin-top: .5rem; }

/* ---------- Busana: paint chips ---------- */
.gl-chips { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.gl-chip { display: grid; gap: .45rem; width: 6.25rem; padding: .45rem .45rem .55rem; background: var(--surface); box-shadow: var(--gl-shadow); }
.gl-chip::before { content: ""; display: block; aspect-ratio: 1; background: var(--swatch); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.gl-chip-no { font: 500 .75rem/1 var(--body); letter-spacing: .12em; color: var(--muted); }

/* ---------- Kisah, galeri, video ---------- */
.gl-story-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: 0 0 1.25rem; box-shadow: var(--gl-shadow); }
.gl-timeline { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.gl-timeline li { padding: 1rem 0; border-top: 1px solid var(--line); }
.gl-timeline li:last-child { border-bottom: 1px solid var(--line); }
.gl-timeline h3 { margin: 0 0 .35rem; font: 400 1.6rem/1.15 var(--heading); }
.gl-timeline p { margin: 0 0 .25rem; }
.gl-timeline img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: .5rem 0; }
.gl-gallery { background: var(--surface); padding-inline: 0; }
.gl-gallery-head { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: var(--gl-gutter); box-sizing: border-box; }
.gl-strip-nav { display: flex; align-items: center; gap: .5rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.gl-strip-count { margin: 0 auto 0 0; font: 500 .75rem/1.4 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.gl-arrow { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); cursor: pointer; }
.gl-arrow[hidden] { display: none; }
.gl-arrow:disabled { opacity: .35; cursor: default; }
.gl-arrow svg { width: 20px; height: 20px; }
/* The strip is native scrolling with snap points; modern.js only adds the count and the arrows. */
/* Its first photo lines up with the heading above (a 72rem column), then runs off to the edge. */
.gl-strip { --gl-edge: calc(max(0px, (100vw - 72rem) / 2) + var(--gl-gutter)); display: flex; gap: .75rem; margin-top: 1rem; padding: 0 var(--gl-edge) .75rem;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gl-edge); scrollbar-width: none; }
.gl-strip::-webkit-scrollbar { display: none; }
.gl-strip-item { flex: 0 0 min(72vw, 22rem); margin: 0; scroll-snap-align: start; }
.gl-strip .gallery-item { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gl-strip img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gl-strip figcaption { display: flex; gap: .6rem; padding-top: .5rem; font-size: .85rem; color: var(--muted); }
.gl-strip-no { font-weight: 600; color: var(--ink); }
.gl-video { aspect-ratio: 16 / 9; background: var(--surface); box-shadow: var(--gl-shadow); }
.gl-video iframe { display: block; width: 100%; height: 100%; border: 0; }
#gl-video .gl-note { margin-top: .75rem; }

/* ---------- Tanda kasih, buku tamu, penutup ---------- */
.gl-gift-shell summary { list-style: none; }
.gl-gift-shell summary::-webkit-details-marker { display: none; }
.gl-gift-shell[open] summary { background: transparent; color: var(--ink); }
.gl-gift-list { margin-top: 1.25rem; }
.gl-gift { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.gl-gift:last-child { border-bottom: 1px solid var(--line); }
.gl-gift p { margin: 0 0 .25rem; }
.gl-gift-number { font: 400 1.75rem/1.2 var(--heading); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.gl-gift .gl-button { margin-top: .5rem; }
.gl-rsvp, .gl-wishes { background: var(--surface); }
.gl-form { margin-top: 1.5rem; }
.gl-form > fieldset, .gl-attendance { min-width: 0; margin: 0; padding: 0; border: 0; }
.gl-field { display: grid; gap: .4rem; margin-bottom: 1rem; font-weight: 500; font-size: .9rem; }
.gl-field[hidden] { display: none; }
.gl-field :is(input, select, textarea) { width: 100%; min-height: 48px; box-sizing: border-box; padding: .65rem .85rem; border: 1px solid var(--line); border-radius: 0; background: var(--surface); color: var(--ink); font: 400 1rem/1.4 var(--body); }
.gl-field textarea { min-height: 7rem; resize: vertical; }
.gl-attendance legend { margin-bottom: .4rem; font-weight: 500; font-size: .9rem; }
.gl-attendance-options { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 1rem; }
.gl-attendance-options input { position: absolute; opacity: 0; pointer-events: none; }
.gl-attendance-options label { display: grid; place-items: center; min-height: 48px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.gl-attendance-options label + input + label { border-left: 0; }
.gl-attendance-options input:checked + label { background: var(--accent); color: var(--accent-ink); }
.gl-attendance-options input:focus-visible + label { outline: 3px solid var(--gl-accent); outline-offset: 2px; }
.gl-submit { width: 100%; justify-content: center; }
.gl-submit:disabled { opacity: .6; cursor: progress; }
.gl-form-status { min-height: 1.3rem; margin: .75rem 0 0; color: var(--muted); font-size: .9rem; }
.gl-wish-list { max-height: min(60svh, 32rem); margin: 1rem 0 0; padding: 0; overflow-y: auto; list-style: none; overscroll-behavior: contain; }
.gl-wish-list .cine-wish { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; padding: .9rem 0; border-top: 1px solid var(--line); }
.gl-wish-list .cine-wish strong { display: block; font: 400 1.25rem/1.2 var(--heading); }
.gl-wish-list .cine-wish p { margin: .25rem 0 0; color: var(--muted); font-size: .95rem; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-line; }
.gl-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: 0;
    background: transparent; color: var(--muted); font: 600 .85rem var(--body); cursor: pointer; }
.gl-wish-list .cine-like svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.gl-wish-list .cine-like.is-liked { color: var(--gl-accent); }
.gl-wish-list .cine-like.is-liked svg { fill: currentColor; }
.gl-closing { text-align: center; padding-bottom: max(1.25rem, env(safe-area-inset-bottom)); }
.gl-closing-title { margin: 1.5rem 0 1rem; font: italic 400 1.5rem/1.3 var(--heading); }
.gl-closing-names { margin: .25rem 0 0; font: 400 clamp(3.25rem, 15vw, 6.5rem)/.95 var(--heading); letter-spacing: -.02em; }
.gl-credit { display: grid; justify-items: center; gap: .25rem; margin-top: 4rem; font-size: .75rem; color: var(--muted); }
.gl-credit p { margin: 0; }
.gl-logo { width: 5.5rem; height: auto; }
.gl-logo-light { display: none; }
:root[data-scheme="dark"] .gl-logo-ink { display: none; }
:root[data-scheme="dark"] .gl-logo-light { display: block; }

/* ---------- Music and light/dark controls ---------- */
[data-theme="modern"] .music-toggle { border: 0; border-radius: 0; background: var(--ink); color: var(--bg); box-shadow: var(--gl-shadow); }
[data-theme="modern"] .music-toggle[aria-pressed="true"] { background: #c2361f; color: #fff; }
[data-theme="modern"] .scheme-toggle { border: 1px solid var(--line); border-radius: 0; background: var(--surface); color: var(--ink); }

/* ---------- Motion (only once modern.js has marked the page) ---------- */
[data-rv] { transition: opacity .9s ease, transform 1.2s var(--gl-out); transition-delay: calc(var(--i, 0) * 90ms); }
.gl-motion [data-rv]:not(.is-in) { opacity: 0; transition: none; }
.gl-motion [data-rv="up"]:not(.is-in) { transform: translate3d(0, 24px, 0); }
.gl-motion [data-rv="zoom"]:not(.is-in) { transform: scale(.94); }
/* A room arrives like the next wall of the exhibition: a white panel slides away as it comes on screen. */
.gl-motion .gl-section.gl-page::after { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--gl-panel); pointer-events: none;
    box-shadow: -18px 0 40px rgba(0, 0, 0, .1); transform: translate3d(calc((1 - var(--gl-la, 0)) * 101%), 0, 0); }
.gl-motion .gl-giant { transform: translate3d(calc(var(--gl-l, 0) * -22%), 0, 0); }
.gl-motion .gl-person-right .gl-giant { transform: translate3d(calc(var(--gl-l, 0) * 22%), 0, 0); }
body.is-locked .gl-hero-work .gl-frame { transform: scale(1.08); }
.gl-hero-work .gl-frame { transition: transform 1.4s var(--gl-out) .5s; }

/* ---------- Wide screens: the rooms open up into two columns ---------- */
@media (min-width: 900px) {
    .gl-opening { grid-template-columns: minmax(0, 1.15fr) minmax(0, 24rem); grid-template-rows: auto minmax(0, 1fr) auto; column-gap: clamp(3rem, 6vw, 6rem); align-items: center; }
    .gl-opening .gl-room { grid-column: 1 / -1; }
    .gl-work { grid-row: 2 / 4; justify-items: end; }
    .gl-work .gl-frame { width: min(34rem, calc((100svh - 10rem) * .8)); }
    .gl-label { align-self: end; }
    .gl-open { align-self: start; }
    .gl-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; column-gap: clamp(3rem, 6vw, 6rem); }
    .gl-hero-grid .gl-room { grid-column: 1 / -1; }
    .gl-hero-work { width: min(100%, 30rem, calc((100svh - 14rem) * .8)); justify-self: end; }
    .gl-person-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; column-gap: clamp(2.5rem, 5vw, 5rem); }
    .gl-person-grid .gl-room { grid-column: 1 / -1; }
    .gl-person-right .gl-person-stage { order: 2; }
    .gl-photo { width: min(78%, 26rem); }
    .gl-events-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: clamp(3rem, 6vw, 6rem); align-items: start; }
    .gl-event { display: grid; grid-template-columns: minmax(0, 10rem) minmax(0, 1fr) auto; column-gap: 1.5rem; align-items: start; }
    .gl-event-facts { grid-template-columns: 4.5rem minmax(0, 1fr); }
    .gl-event-title { margin: 0; }
    .gl-event .gl-link { margin-top: -.6rem; }
    .gl-strip-item { flex-basis: min(30vw, 24rem); }
}

@media (prefers-reduced-motion: reduce) {
    .gl *, .gl-opening, .gl-opening *, [data-theme="modern"] .music-toggle { animation: none !important; transition: none !important; }
    .gl-giant, .gl-hero-work .gl-frame { transform: none !important; }
    .gl-section.gl-page::after { content: none; }
}

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