/* Seri Elegant dan Seri Immersive (18 Nov 2026): the layout the six series themes share. Each theme's
   theme.css sets the tokens below (palette, type, art) and may add its own touches.

   Tokens a theme sets on :root[data-theme="<key>"]:
     --bg --surface --ink --muted --accent --accent-ink --line --heading --body   palette and type
     --sr-panel, --sr-panel-line          the card each page's text sits on
     --sr-halo                            r, g, b of the glow behind text drawn straight on the scene
     --sr-sky --sr-far --sr-mid --sr-near --sr-front   the five depths of the scene (images or gradients)
     --sr-gate-l --sr-gate-r              the two halves of the cover's gate
     --sr-frame-radius --sr-frame-ring    the photo frame's shape and its ring
     --sr-rule                            the ornament in the middle of a rule (a mask image)
     --sr-spark --sr-spark-size --sr-spark-shape  what drifts upward (lanterns, fireflies, petals, sea foam)
   Immersive moves the depths with the scroll (--sr-p from seri.js): a camera walking into the scene. Elegant
   keeps the scene still. Without the script, or with prefers-reduced-motion: reduce, nothing moves and
   nothing is hidden. */

.sr { --sr-gutter: max(1.35rem, env(safe-area-inset-left)); --sr-out: cubic-bezier(.16, 1, .3, 1);
    position: relative; isolation: isolate; overflow-x: hidden; overflow-x: clip; }
:root:has(.sr) { scroll-snap-type: y proximity; }
:root.sr-framed, :root:has(body.is-preview .sr) { scroll-snap-type: none; }
:root:has(.sr) body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.05rem/1.65 var(--body); overflow-x: clip; }

/* ---------- The scene: five depths ---------- */
.sr-scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg); }
/* Each token is a full background value (image, position / size, repeat), so a theme places its own art. */
.sr-layer { position: absolute; inset: -4% -6%; will-change: transform; }
.sr-layer-sky { background: var(--sr-sky, none); }
.sr-layer-far { background: var(--sr-far, none); }
.sr-layer-mid { background: var(--sr-mid, none); }
.sr-layer-near { background: var(--sr-near, none); }
.sr-layer-front { background: var(--sr-front, none); }
.sr-immersive .sr-layer-sky { transform: translate3d(0, calc(var(--sr-p, 0) * -3vh), 0) scale(1.04); }
.sr-immersive .sr-layer-far { transform: translate3d(0, calc(var(--sr-p, 0) * -7vh), 0) scale(calc(1 + var(--sr-p, 0) * .06)); }
.sr-immersive .sr-layer-mid { transform: translate3d(0, calc(var(--sr-p, 0) * -14vh), 0) scale(calc(1 + var(--sr-p, 0) * .12)); }
.sr-immersive .sr-layer-near { transform: translate3d(0, calc(var(--sr-p, 0) * -24vh), 0) scale(calc(1 + var(--sr-p, 0) * .2)); transform-origin: 50% 100%; }
.sr-immersive .sr-layer-front { transform: translate3d(0, calc(var(--sr-p, 0) * 30vh), 0) scale(calc(1 + var(--sr-p, 0) * .45)); transform-origin: 50% 100%; }
.sr-elegant .sr-layer:not(.sr-layer-sky) { display: none; }

/* Things that drift upward through the scene: lanterns, fireflies, petals, sea foam. */
.sr-sparks { position: absolute; inset: 0; }
.sr-sparks span { position: absolute; bottom: -10%; width: var(--sr-spark-size, 10px); aspect-ratio: 1; border-radius: var(--sr-spark-shape, 50%); background: var(--sr-spark, transparent);
    opacity: 0; animation: sr-drift 18s linear infinite; }
.sr-sparks span:nth-child(1) { left: 12%; animation-delay: -2s; }
.sr-sparks span:nth-child(2) { left: 28%; animation-delay: -9s; animation-duration: 22s; scale: .7; }
.sr-sparks span:nth-child(3) { left: 46%; animation-delay: -14s; }
.sr-sparks span:nth-child(4) { left: 63%; animation-delay: -5s; animation-duration: 25s; scale: .8; }
.sr-sparks span:nth-child(5) { left: 79%; animation-delay: -12s; scale: 1.2; }
.sr-sparks span:nth-child(6) { left: 90%; animation-delay: -17s; animation-duration: 20s; scale: .6; }
@keyframes sr-drift { 0% { transform: translate3d(0, 0, 0); opacity: 0; } 10% { opacity: .95; } 80% { opacity: .8; } 100% { transform: translate3d(3vw, -115vh, 0); opacity: 0; } }

/* ---------- Pages and atoms ---------- */
.sr-main { position: relative; outline: none; transition: opacity .8s ease .7s; }
body.is-locked .sr-main { opacity: 0; }
.sr-page { position: relative; min-height: 100svh; box-sizing: border-box; display: grid; align-content: center; scroll-snap-align: start; }
.sr-section { padding: clamp(4.5rem, 12vw, 6.5rem) var(--sr-gutter); }
.sr-center { text-align: center; }
.sr-panel { width: 100%; max-width: 34rem; margin-inline: auto; box-sizing: border-box; padding: clamp(1.75rem, 6vw, 2.75rem) clamp(1.25rem, 5vw, 2.5rem);
    border: 1px solid var(--sr-panel-line, var(--line)); border-radius: var(--sr-panel-radius, 1.5rem); background: var(--sr-panel, var(--surface));
    box-shadow: 0 24px 60px -36px rgba(0, 0, 0, .45); }
.sr-immersive .sr-panel { -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1); }
.sr-panel-wide { max-width: 58rem; }
.sr-kicker { margin: 0 0 .55rem; font: 600 .75rem/1.4 var(--body); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.sr-names { margin: .2rem 0 0; font: 400 clamp(2.5rem, 11vw, 4.75rem)/1.04 var(--heading); letter-spacing: -.005em; text-wrap: balance; }
.sr-amp { font-style: italic; color: var(--accent); }
.sr-title { margin: 0 0 1rem; font: 400 clamp(2.2rem, 9.5vw, 3.4rem)/1.08 var(--heading); text-wrap: balance; }
.sr-date { margin: 0; font: 400 1.15rem/1.4 var(--heading); color: var(--muted); }
.sr-lead { margin: 0 0 1rem; font-size: 1.06rem; }
.sr-muted, .sr-note { color: var(--muted); }
.sr-note { font-size: .88rem; }
.sr p { margin-top: 0; }
.sr-rule { display: flex; align-items: center; justify-content: center; gap: .75rem; margin: 1rem auto 1.1rem; width: min(12rem, 70%); }
.sr-rule::before, .sr-rule::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .45; color: var(--accent); }
.sr-rule-mark { width: 1.6rem; height: 1.6rem; background: var(--accent); -webkit-mask: var(--sr-rule) center / contain no-repeat; mask: var(--sr-rule) center / contain no-repeat; }
.sr-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: var(--sr-button-radius, 999px); background: var(--accent); color: var(--accent-ink); font: 600 .92rem/1 var(--body); letter-spacing: .05em; text-decoration: none; cursor: pointer; }
.sr-button svg { width: 18px; height: 18px; flex: 0 0 auto; }
.sr-button[hidden] { display: none; }
.sr-button-ghost { min-height: 44px; margin-top: .9rem; background: transparent; color: var(--ink); border-color: var(--accent); }
.sr :focus-visible, .sr-opening :focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.sr-actions { margin: 1.75rem 0 0; }
.sr-cue { position: absolute; left: 50%; bottom: max(1.25rem, env(safe-area-inset-bottom)); translate: -50% 0; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px;
    border: 1px solid var(--sr-panel-line, var(--line)); border-radius: 50%; background: var(--sr-panel, var(--surface)); color: var(--accent); text-decoration: none; }
.sr-cue svg { width: 24px; height: 24px; }
/* Text drawn straight on the scene keeps a soft halo of the scene's own colour. */
.sr-scene-text :is(p, h1) { text-shadow: 0 0 18px rgba(var(--sr-halo, 255, 255, 255), .9), 0 0 3px rgba(var(--sr-halo, 255, 255, 255), .85); }

/* ---------- Hero: the names, then the couple ---------- */
.sr-hero { padding: max(4.5rem, env(safe-area-inset-top)) var(--sr-gutter) 4.5rem; align-content: start; justify-items: center; gap: 1.25rem; overflow: hidden; }
.sr-portrait { margin: 0; }
.sr-portrait img { display: block; width: 100%; height: 100%; }
/* A photo with its own background sits in the theme's frame. */
.sr-portrait.is-framed { width: min(72vw, 19rem); aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--sr-frame-radius, 999px 999px 1.25rem 1.25rem); box-shadow: var(--sr-frame-ring, 0 0 0 1px var(--accent), 0 0 0 8px var(--surface), 0 0 0 9px var(--accent)); }
.sr-portrait.is-framed img { object-fit: cover; }
/* A cut-out photo stands in the scene, feet on the ground, lit like it. */
.sr-portrait.is-cutout { width: min(86vw, 26rem); height: min(58svh, 36rem); }
.sr-portrait.is-cutout img { object-fit: contain; object-position: center bottom; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .35)) var(--sr-cutout-tone, saturate(1)); }
.sr-immersive .sr-hero .sr-portrait.is-cutout { position: absolute; left: 50%; bottom: 0; translate: -50% 0; transform: translate3d(0, calc(var(--sr-p, 0) * 18vh), 0) scale(calc(1 + var(--sr-p, 0) * .25)); transform-origin: 50% 100%; }
.sr-elegant .sr-portrait.is-cutout { height: auto; aspect-ratio: 3 / 4; width: min(72vw, 19rem); border-radius: var(--sr-frame-radius, 999px 999px 1.25rem 1.25rem); background: var(--sr-panel, var(--surface)); box-shadow: var(--sr-frame-ring); }

/* Without a photo the first page carries the initials, large, in the theme's accent. */
.sr-hero-monogram { margin: clamp(1.5rem, 6svh, 3rem) 0 0; font: 400 clamp(5rem, 30vw, 10rem)/1 var(--heading); color: var(--accent); opacity: .85;
    text-shadow: 0 0 30px rgba(var(--sr-halo, 255, 255, 255), .7); }
.sr-hero-monogram i { font-size: .45em; margin: 0 .08em; vertical-align: .35em; }

/* ---------- Pengantar ---------- */
.sr-verse { margin: 1.5rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--sr-panel-line, var(--line)); }
.sr-verse blockquote { margin: 0; font: italic 400 1.2rem/1.5 var(--heading); }
.sr-verse figcaption { margin-top: .6rem; font: 600 .75rem/1.4 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }

/* ---------- Mempelai: a page each ---------- */
.sr-frame { width: min(64vw, 17rem); aspect-ratio: 3 / 4; margin: .75rem auto 1.4rem; overflow: hidden; border-radius: var(--sr-frame-radius, 999px 999px 1.25rem 1.25rem);
    box-shadow: var(--sr-frame-ring, 0 0 0 1px var(--accent), 0 0 0 8px var(--surface), 0 0 0 9px var(--accent)); background: var(--surface); }
.sr-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.sr-photo-initial { display: grid; place-items: center; font: 400 clamp(4rem, 20vw, 6rem)/1 var(--heading); color: var(--accent); }
.sr-person-name { margin: 0 0 .4rem; font: 400 clamp(1.8rem, 8vw, 2.5rem)/1.12 var(--heading); }
.sr-socials { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: .75rem; }
.sr-socials a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .9rem; }

/* ---------- Hitung mundur, acara, busana ---------- */
.sr-clock { display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr)); gap: .4rem; margin-top: 1rem; }
.sr-clock span { display: grid; gap: .2rem; font: 600 .75rem/1.2 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.sr-clock b { font: 400 clamp(2.2rem, 10.5vw, 3.6rem)/1 var(--heading); color: var(--accent); font-variant-numeric: tabular-nums; }
.sr-countdown[hidden] { display: none; }
.sr-event-list { display: grid; gap: 1.75rem; margin-top: .5rem; }
.sr-event { padding-top: 1.5rem; border-top: 1px solid var(--sr-panel-line, var(--line)); }
.sr-event:first-child { padding-top: 0; border-top: 0; }
.sr-event p { margin: 0 0 .2rem; }
.sr-event-date { margin: .25rem 0 .2rem; font: 400 1.55rem/1.2 var(--heading); }
.sr-event-place { margin-top: .5rem !important; font-weight: 600; }
.sr-swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-top: 1.25rem; }
.sr-swatch { width: 3rem; height: 3rem; border-radius: var(--sr-swatch-radius, 50%); background: var(--swatch); box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line); }

/* ---------- Cerita, galeri, video ---------- */
.sr-story-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: 0 0 1.25rem; border-radius: 1rem; }
.sr-timeline { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
.sr-timeline li { position: relative; padding-left: 1.5rem; border-left: 1px solid var(--accent); }
.sr-timeline li::before { content: ""; position: absolute; left: -5px; top: .45rem; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.sr-timeline h3 { margin: 0 0 .3rem; font: 400 1.35rem/1.2 var(--heading); }
.sr-timeline p { margin: 0 0 .2rem; }
.sr-timeline img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: .5rem 0; border-radius: 1rem; }
.sr-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; width: 100%; max-width: 62rem; margin: .5rem auto 0; }
.sr-photo-item { margin: 0; min-width: 0; }
.sr-photo-item:nth-child(3n + 1) { grid-column: span 2; }
.sr-photos .gallery-item { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.sr-photos img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--sr-photo-radius, 1rem); }
.sr-photo-item:nth-child(3n + 1) img { aspect-ratio: 16 / 10; }
.sr-photos figcaption { padding: .35rem .25rem 0; font-size: .85rem; color: var(--muted); text-align: center; }
.sr-video { aspect-ratio: 16 / 9; border-radius: 1rem; overflow: hidden; background: var(--surface); }
.sr-video iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------- Kado, RSVP, ucapan ---------- */
.sr-gift-shell summary { list-style: none; }
.sr-gift-shell summary::-webkit-details-marker { display: none; }
.sr-gift-shell[open] summary { background: transparent; color: var(--ink); }
.sr-gift-list { margin-top: 1.25rem; }
.sr-gift { padding: 1rem 0; border-top: 1px solid var(--sr-panel-line, var(--line)); }
.sr-gift p { margin: 0 0 .2rem; }
.sr-gift-number { font: 400 1.4rem/1.3 var(--heading); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.sr-form { margin-top: 1.5rem; }
.sr-form > fieldset, .sr-attendance { min-width: 0; margin: 0; padding: 0; border: 0; }
.sr-field { display: grid; gap: .35rem; margin-bottom: 1rem; font-weight: 600; font-size: .92rem; }
.sr-field[hidden] { display: none; }
.sr-field :is(input, select, textarea) { width: 100%; min-height: 48px; box-sizing: border-box; padding: .65rem 1rem; border: 1px solid var(--line); border-radius: var(--sr-field-radius, .9rem);
    background: var(--surface); color: var(--ink); font: 400 1rem/1.4 var(--body); }
.sr-field textarea { min-height: 7rem; resize: vertical; }
.sr-attendance legend { margin-bottom: .35rem; font-weight: 600; font-size: .92rem; }
.sr-attendance-options { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: 1rem; }
.sr-attendance-options input { position: absolute; opacity: 0; pointer-events: none; }
.sr-attendance-options label { display: grid; place-items: center; min-height: 48px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; font-weight: 600; }
.sr-attendance-options input:checked + label { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.sr-attendance-options input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 2px; }
.sr-submit { width: 100%; }
.sr-form-status { min-height: 1.3rem; margin: .75rem 0 0; color: var(--muted); font-size: .92rem; text-align: center; }
.sr-wish-list { max-height: min(56svh, 30rem); margin: 1rem 0 0; padding: 0; overflow-y: auto; list-style: none; overscroll-behavior: contain; }
.sr-wish-list .cine-wish { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; padding: .9rem 0; border-top: 1px solid var(--sr-panel-line, var(--line)); }
.sr-wish-list .cine-wish strong { display: block; font: 400 1.15rem/1.3 var(--heading); }
.sr-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; }
.sr-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(--surface); color: var(--muted); font: 600 .85rem var(--body); cursor: pointer; }
.sr-wish-list .cine-like svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.sr-wish-list .cine-like.is-liked { color: var(--accent); }
.sr-wish-list .cine-like.is-liked svg { fill: currentColor; }

/* ---------- Penutup: the couple once more; the copyright rests at the foot of the page ---------- */
.sr-closing { grid-template-rows: minmax(0, 1fr) auto; align-content: stretch; }
.sr-closing-body { align-self: center; display: grid; justify-items: center; gap: 1.25rem; }
.sr-immersive .sr-portrait-closing.is-cutout { height: min(46svh, 28rem); margin-bottom: -2.5rem; position: relative; z-index: 0; }
/* The framed photo on the closing page is a keepsake, small enough that the thanks fit beside it on one screen. */
.sr-portrait-closing.is-framed { width: min(44vw, 11rem, 26svh * .75); }
.sr-closing-words { position: relative; z-index: 1; }
.sr-closing-title { margin: .5rem 0 0; font: 400 clamp(1.6rem, 7vw, 2.2rem)/1.25 var(--heading); }
.sr-closing-names { margin: .25rem 0 0; font: 400 clamp(2.6rem, 12vw, 4.25rem)/1.05 var(--heading); }
.sr-closing > .sr-credit { align-self: end; display: grid; justify-items: center; gap: .25rem; margin-top: 2.5rem; font-size: .75rem; color: var(--muted); }
.sr-credit p { margin: 0; }
.sr-immersive .sr-credit p { text-shadow: 0 0 10px rgba(var(--sr-halo, 255, 255, 255), .9); }
.sr-logo { width: 5.5rem; height: auto; }
.sr-logo-light { display: none; }
:root[data-scheme="dark"] .sr-logo-ink, .sr-on-dark .sr-logo-ink { display: none; }
:root[data-scheme="dark"] .sr-logo-light, .sr-on-dark .sr-logo-light { display: block; }

/* ---------- Opening: a card behind a gate ---------- */
.sr-opening { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; overflow: hidden auto; text-align: center; color: var(--ink);
    padding: max(1.75rem, env(safe-area-inset-top)) var(--sr-gutter) max(1.75rem, env(safe-area-inset-bottom)); transition: opacity .6s ease .85s; }
.sr-opening[hidden] { display: none; }
.sr-opening-veil { position: fixed; inset: 0; z-index: -2; background: var(--sr-veil, var(--bg)); transition: opacity .9s ease .3s; }
.sr-gate { position: fixed; inset: 0; z-index: -1; display: grid; grid-template-columns: 1fr 1fr; pointer-events: none; }
.sr-gate-half { transition: transform 1.2s var(--sr-out); }
.sr-gate-l { background: var(--sr-gate-l, none); }
.sr-gate-r { background: var(--sr-gate-r, none); }
.sr-opening-card { position: relative; display: grid; justify-items: center; gap: .15rem; width: 100%; max-width: 26rem; box-sizing: border-box; padding: 2rem 1.5rem;
    border: 1px solid var(--sr-panel-line, var(--line)); border-radius: var(--sr-panel-radius, 1.5rem); background: var(--sr-panel, var(--surface));
    box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .6); transition: opacity .5s ease, transform .8s var(--sr-out); }
.sr-immersive .sr-opening-card { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.sr-opening-card p { margin: 0; }
.sr-monogram { display: block; margin: .25rem 0 .5rem; font: 400 clamp(3.25rem, 16vw, 4.5rem)/1 var(--heading); color: var(--accent); }
.sr-monogram i { font-size: .5em; margin: 0 .1em; }
.sr-opening-title { margin: 0; font: 400 clamp(1.9rem, 8.5vw, 2.6rem)/1.15 var(--heading); }
.sr-opening-date { color: var(--muted); font: 400 1.05rem/1.4 var(--heading); }
.sr-guest { display: grid; justify-items: center; gap: .15rem; margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--sr-panel-line, var(--line)); width: 100%; }
.sr-guest-to { font-size: .88rem; color: var(--muted); }
.sr-guest-name { font: 400 clamp(1.4rem, 6vw, 1.8rem)/1.25 var(--heading); --ct-shine: var(--accent); }
.sr-guest .sr-note { max-width: 19rem; margin-bottom: 1rem; }
.sr-opening.is-closing { opacity: 0; pointer-events: none; }
.sr-opening.is-closing .sr-gate-l { transform: translate3d(-101%, 0, 0); }
.sr-opening.is-closing .sr-gate-r { transform: translate3d(101%, 0, 0); }
.sr-opening.is-closing .sr-opening-veil { opacity: 0; }
.sr-opening.is-closing .sr-opening-card { opacity: 0; transform: translate3d(0, -1.5rem, 0) scale(.97); }

/* ---------- Entrances (only with the script; never with reduced motion) ---------- */
:root.sr-motion [data-rv] { opacity: 0; transition: opacity .8s ease, transform .9s var(--sr-out); transition-delay: calc(var(--i, 0) * 90ms); }
:root.sr-motion [data-rv="up"] { transform: translate3d(0, 1.25rem, 0); }
:root.sr-motion [data-rv="rise"] { transform: translate3d(0, 2.5rem, 0) scale(.96); }
:root.sr-motion [data-rv].is-in { opacity: 1; transform: none; }
:root.sr-motion .sr-immersive .sr-hero .sr-portrait.is-cutout.is-in { transform: translate3d(0, calc(var(--sr-p, 0) * 18vh), 0) scale(calc(1 + var(--sr-p, 0) * .25)); }

/* ---------- Floating controls ---------- */
.sr ~ .scheme-toggle, :root:has(.sr) .scheme-toggle { border-color: var(--line); background: var(--surface); color: var(--accent); }
:root:has(.sr) .music-toggle { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }

@media (min-width: 900px) {
    .sr { --sr-gutter: clamp(2.5rem, 6vw, 6rem); }
    .sr-event-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 2.5rem; }
    .sr-event { padding-top: 0; border-top: 0; }
    .sr-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
    .sr-photo-item:nth-child(3n + 1) { grid-column: auto; }
    .sr-photo-item:nth-child(3n + 1) img { aspect-ratio: 4 / 5; }
    .sr-frame { width: 19rem; }
    .sr-portrait.is-cutout { width: 30rem; height: min(64svh, 42rem); }
}

@media (prefers-reduced-motion: reduce) {
    .sr *, .sr-opening, .sr-opening * { animation: none !important; transition: none !important; }
    .sr-immersive .sr-layer, .sr-immersive .sr-hero .sr-portrait.is-cutout { transform: none !important; }
    .sr-sparks { display: none; }
}
