/* Potret (26 Nov 2026): a black-and-white portrait magazine over the couple's own pictures.
 * Built on Sinematik: the same backdrop (their MP4, or their photos taking turns, here drained of colour), snapping
 * one-screen pages, viewer, gift panel, menu and RSVP (cine.js). The first part below is Sinematik's stylesheet in
 * neutral greys; the Potret layout follows it ("Potret" at the end). Type, all OFL and self-hosted: Marcellus for
 * display, Corinthia for the script ampersand and lines, Jost for reading. Dark is native; the menu offers light. */
@font-face { font-family: "Marcellus"; src: url("/frontend/assets/fonts/marcellus-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Corinthia"; src: url("/frontend/assets/fonts/corinthia-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("/frontend/assets/fonts/bodoni-moda-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/frontend/assets/fonts/jost-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root[data-theme="potret"] {
    color-scheme: dark;
    --c-night: #0b0b0b; --c-ink: #f5f5f3; --c-muted: rgba(245, 245, 243, .8); --c-accent: #f5f5f3; --c-accent-ink: #111111;
    --c-line: rgba(245, 245, 243, .42); --c-glass: rgba(12, 12, 12, .55); --c-field: rgba(255, 255, 255, .06);
    --c-veil: rgba(10, 10, 10, .6); --c-shade-top: rgba(10, 10, 10, .78); --c-shade-foot: rgba(10, 10, 10, .9); --c-photo-foot: rgba(10, 10, 10, .95);
    --c-pill: rgba(245, 245, 243, .2); --c-pill-hover: rgba(245, 245, 243, .32);
    --c-text-shadow: 0 1px 14px rgba(0, 0, 0, .55), 0 0 2px rgba(0, 0, 0, .35); /* words stay readable over a bright photo */
    --f-display: "Marcellus", Georgia, serif; --f-names: "Bodoni Moda", "Marcellus", Georgia, serif; --f-script: "Corinthia", "Marcellus", cursive; --f-body: "Jost", system-ui, sans-serif;
    --bg: var(--c-night); --surface: var(--c-glass); --ink: var(--c-ink); --muted: var(--c-muted); --accent: var(--c-accent); --accent-ink: var(--c-accent-ink);
    --line: var(--c-line); --hero-ink: var(--c-ink);
    --ease-film: cubic-bezier(.2, .7, .2, 1);
}
:root[data-theme="potret"][data-scheme="light"] {
    color-scheme: light;
    --c-night: #f2f1ee; --c-ink: #161616; --c-muted: #3d3d3b; --c-accent: #161616; --c-accent-ink: #f7f7f5;
    --c-line: rgba(22, 22, 22, .4); --c-glass: rgba(247, 247, 245, .84); --c-field: rgba(255, 255, 255, .7);
    --c-text-shadow: 0 0 12px rgba(247, 247, 245, .9);
    --c-veil: rgba(247, 247, 245, .76); --c-shade-top: rgba(247, 247, 245, .9); --c-shade-foot: rgba(247, 247, 245, .94); --c-photo-foot: rgba(247, 247, 245, .95);
    --c-pill: rgba(22, 22, 22, .12); --c-pill-hover: rgba(22, 22, 22, .22);
}

[data-theme="potret"] body { margin: 0; background: var(--c-night); color: var(--c-ink); font: 400 1rem/1.65 var(--f-body); -webkit-font-smoothing: antialiased; }
[data-theme="potret"] :focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
/* Locked behind the cover: nothing scrolls, not even a phone's rubber band (25 Nov 2026). */
[data-theme="potret"]:has(body.is-locked), [data-theme="potret"] body.is-locked { overflow: hidden; overscroll-behavior: none; }
[data-theme="potret"] body.is-locked { touch-action: none; }
/* Once open, the page snaps from section to section, one screen at a time, as in the reference (25 Nov 2026).
   A section taller than the screen (a long RSVP, the gift cards) is read to its end before the next snap. */
:root[data-theme="potret"] { scroll-snap-type: y mandatory; }
.cine-page { scroll-snap-align: start; scroll-snap-stop: always; }
[data-theme="potret"]:has(.cine-viewer[open]) { overflow: hidden; }
.cine { position: relative; isolation: isolate; }
.cine p { margin: 0; }
.cine a { color: inherit; }

/* ---- Backdrop: video or slideshow, under a veil ---------------------------------------- */
.cine-backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(120% 80% at 50% 18%, #2a2a2a, #0b0b0b 72%); }
.cine-slide, .cine-backdrop-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cine-slide { opacity: 0; transform: scale(1.06); transition: opacity 1.8s ease; }
.cine-slide.is-active, .cine-slide.is-leaving { animation: cine-drift 9s linear both; }
.cine-slide.is-active { opacity: 1; }
.cine-slide.is-leaving { animation-play-state: paused; }
@keyframes cine-drift { from { transform: scale(1.1) translate3d(1.2%, .8%, 0); } to { transform: scale(1.01) translate3d(0, 0, 0); } }
.cine-backdrop.no-video .cine-backdrop-video { display: none; }
.cine-shade { position: absolute; inset: 0; background: linear-gradient(180deg, var(--c-shade-top), transparent 30%, transparent 58%, var(--c-shade-foot)), var(--c-veil); transition: background .6s ease; }

/* ---- Pages: each a screen; the words sit where the section puts them ------------------ */
.cine-main { position: relative; z-index: 1; outline: 0; overflow-x: clip; /* entrances slide in from the side; the page never widens */ text-shadow: var(--c-text-shadow); }
/* 26 Nov 2026 (owner report): a page fills the tallest screen (browser bar hidden, 100lvh), so once the bar slides
   away on scroll the next page no longer peeks in at the foot; with the bar shown, the foot padding sits under it. */
.cine-page { position: relative; display: flex; flex-direction: column; gap: 2.25rem; min-height: 100vh; min-height: 100lvh; box-sizing: border-box;
    padding: clamp(5rem, 13svh, 7rem) clamp(1.5rem, 6vw, 2.25rem) clamp(4.5rem, 11svh, 6rem); }
.cine-at-top { justify-content: flex-start; }
.cine-at-centre { justify-content: center; text-align: center; }
.cine-at-foot { justify-content: flex-end; }
.cine-block { position: relative; max-width: 27rem; }
.cine-at-centre .cine-block, .cine-hero .cine-block, .cine-wishes .cine-block, .cine-closing .cine-block { margin-inline: auto; text-align: center; }
.cine-left { text-align: left; }
.cine-right { margin-left: auto; text-align: right; }
.cine-centre-text { text-align: center; }

.cine-kicker { margin-bottom: .7rem !important; color: var(--c-accent); font: 500 .75rem/1.4 var(--f-body); letter-spacing: .32em; text-transform: uppercase; }
.cine-title { margin: 0 0 1rem; font: 400 clamp(2.3rem, 10vw, 3.1rem)/1.02 var(--f-display); letter-spacing: .01em; text-wrap: balance; }
.cine-lead { color: var(--c-muted); font-size: 1rem; line-height: 1.75; text-wrap: pretty; }
.cine-lead + .cine-lead { margin-top: 1rem; }
.cine-caption { margin-top: 1rem !important; color: var(--c-muted); font-size: .82rem; line-height: 1.6; text-wrap: pretty; }
.cine-caption a { display: inline-flex; align-items: center; min-height: 44px; color: var(--c-accent); }
/* Each name opens with a hand-written capital (Corinthia) set into the Playfair capitals, as the reference does. */
.cine-initial { margin-right: -.04em; font-family: var(--f-script); font-style: normal; font-weight: 400; font-size: 1.6em; line-height: .5; letter-spacing: 0; text-transform: none; vertical-align: -.02em; }
.cine-amp { color: var(--c-accent); font-family: var(--f-script); font-style: normal; font-weight: 400; }

/* Line by line: each child of a revealed block rises out of a soft blur, in turn (--i, set by cine.js). */
.has-reveal .cine [data-reveal] > * { opacity: 0; transform: translate3d(0, 1.4rem, 0); filter: blur(8px); }
.has-reveal .cine [data-reveal].is-revealed > * { opacity: 1; transform: none; filter: none;
    transition: opacity .9s ease, transform 1.1s var(--ease-film), filter .9s ease; transition-delay: calc(var(--i, 0) * 120ms + 80ms); }
.has-reveal .cine [data-reveal].is-revealed > .cine-title, .has-reveal .cine [data-reveal].is-revealed > .cine-names { animation: cine-track 1.6s var(--ease-film) both; animation-delay: calc(var(--i, 0) * 120ms + 80ms); }
@keyframes cine-track { from { letter-spacing: .18em; } to { letter-spacing: .01em; } }

/* ---- Hero: names at the top, a cue at the foot ---------------------------------------- */
.cine-hero { justify-content: space-between; text-align: center; padding-top: clamp(4.5rem, 12svh, 6.5rem); }
.cine-names { margin: 0; font: 400 clamp(3.4rem, 17vw, 4.6rem)/.95 var(--f-display); letter-spacing: .01em; text-transform: uppercase; text-wrap: balance; }
.cine-names .cine-name { display: block; }
.cine-names .cine-amp { display: block; margin: .2em 0 .1em; font-size: .8em; line-height: .8; text-transform: none; }
.cine-date { margin-top: 1.1rem !important; color: var(--c-accent); font: 500 .85rem/1.4 var(--f-body); letter-spacing: .3em; text-transform: uppercase; }
.cine-cue { display: inline-flex; flex-direction: column; align-items: center; gap: .75rem; align-self: center; min-width: 44px; min-height: 44px; color: var(--c-ink); text-decoration: none; }
.cine-cue i { display: block; width: 1px; height: 3.4rem; background: currentColor; transform-origin: top; animation: cine-line 2.4s ease-in-out infinite; }
@keyframes cine-line { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 50.1% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---- Verse ------------------------------------------------------------------------------ */
.cine-arabic { margin: 0 0 1.25rem !important; color: var(--c-accent); font: 400 1.6rem/1.8 "Noto Naskh Arabic", "Geeza Pro", "Arabic Typesetting", "Traditional Arabic", serif; }
.cine-verse-card { margin: 0 0 1.5rem; }
.cine-verse-card blockquote { margin: 0; font: italic 400 clamp(1.3rem, 5.4vw, 1.55rem)/1.55 var(--f-display); text-wrap: pretty; }
.cine-verse-card figcaption { margin-top: .75rem; color: var(--c-accent); font: 500 .78rem/1.4 var(--f-body); letter-spacing: .22em; text-transform: uppercase; }

/* ---- The couple: each on their own photo, words at the foot ---------------------------- */
.cine-person { padding-bottom: clamp(5.5rem, 14svh, 7rem); }
.cine-person.has-photo { background: var(--c-night); }
.cine-person-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; z-index: 0; }
.cine-person.has-photo::before { z-index: 1; }
.cine-person .cine-block { z-index: 2; }
.cine-person.has-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 10, .2) 30%, rgba(10, 10, 10, .62) 60%, var(--c-photo-foot) 84%); }
[data-scheme="light"] .cine-person.has-photo::before { background: linear-gradient(180deg, transparent 42%, rgba(247, 247, 245, .5) 60%, var(--c-photo-foot) 84%); }
.cine-person-name { margin: 0; font: 400 clamp(3rem, 15vw, 4.4rem)/.95 var(--f-display); letter-spacing: .02em; text-transform: uppercase; }
.cine-person-full { margin-top: .55rem !important; font: italic 400 1.4rem/1.3 var(--f-display); }
.cine-person-parent { margin-top: .6rem !important; color: var(--c-muted); font-size: .95rem; line-height: 1.6; white-space: pre-line; }
.cine-person-note { margin-top: .6rem !important; color: var(--c-muted); font-size: .9rem; }
.cine-socials { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem !important; }
.cine-socials a { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 1.1rem; border: 1px solid var(--c-line); border-radius: 999px;
    background: var(--c-glass); font-size: .85rem; text-decoration: none; backdrop-filter: blur(6px); }
.cine-socials svg { width: 1rem; height: 1rem; }

/* ---- Our Story, after the reference: a photo band, the title, chapters in a zig-zag row to swipe ---- */
.cine-story { gap: 1.4rem; }
.cine-story.has-band { padding-top: 0; }
.cine-story-band { position: relative; height: 24svh; min-height: 9rem; margin: 0 calc(clamp(1.5rem, 6vw, 2.25rem) * -1); overflow: hidden; }
.cine-story-band img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.cine-story-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 10, .15), rgba(10, 10, 10, .7)); }
.cine-story .cine-title { margin-bottom: .6rem; }
.cine-chapters { margin: 0 calc(clamp(1.5rem, 6vw, 2.25rem) * -1); padding: 0 clamp(1.5rem, 6vw, 2.25rem) .25rem; overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; scroll-padding-inline: clamp(1.5rem, 6vw, 2.25rem); scrollbar-width: none; overscroll-behavior-x: contain; outline-offset: -2px; }
.cine-chapters::-webkit-scrollbar { display: none; }
.cine-chapters ol { display: flex; align-items: flex-start; gap: 1.75rem; width: max-content; margin: 0; padding: 0; list-style: none; }
.cine-chapter { width: min(68vw, 16.5rem); scroll-snap-align: start; }
.cine-chapter:nth-child(even) { margin-top: 5.5rem; }
.cine-chapter-date { color: var(--c-accent); font: 500 .75rem/1.4 var(--f-body); letter-spacing: .24em; text-transform: uppercase; }
.cine-chapter h3 { margin: .3rem 0 .55rem; font: 400 1.6rem/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.cine-chapter img { width: 100%; height: 8.5rem; margin-bottom: .7rem; object-fit: cover; border-radius: .2rem; }
.cine-chapter p:not(.cine-chapter-date) { color: var(--c-muted); font-size: .92rem; line-height: 1.7; text-wrap: pretty; }
.cine-swipe-cue { display: flex; align-items: center; gap: .6rem; margin-top: -.4rem !important; color: var(--c-muted); font: italic 400 .95rem/1 var(--f-display); letter-spacing: .04em; transition: opacity .4s ease; }
.cine-swipe-cue svg { width: 2.6rem; height: .8rem; animation: cine-nudge 2.2s ease-in-out infinite; }
.cine-swipe-cue.is-done { opacity: 0; }
@keyframes cine-nudge { 50% { transform: translateX(.4rem); } }

/* ---- Events: alternate sides, like credits ---------------------------------------------- */
.cine-events { justify-content: flex-start; gap: 2rem; }
.cine-events .cine-event:first-of-type { margin-top: auto; }
.cine-events .cine-event:last-of-type { margin-bottom: auto; }
.cine-event { max-width: 24rem; }
.cine-event-date { font: italic 400 1.3rem/1.3 var(--f-display); color: var(--c-muted); }
.cine-event h3 { margin: .25rem 0 .5rem; font: 400 clamp(1.9rem, 8.5vw, 2.4rem)/1.05 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.cine-event-time { color: var(--c-accent); font-weight: 500; letter-spacing: .06em; }
.cine-event address { margin-top: .5rem; color: var(--c-muted); font-style: normal; font-size: .92rem; line-height: 1.6; text-wrap: pretty; }
.cine-event address strong { display: block; color: var(--c-ink); font-weight: 500; }
.cine-event-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem !important; }
.cine-right .cine-event-links { justify-content: flex-end; }

.cine-button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: 0 1.25rem; border: 1px solid var(--c-line);
    border-radius: 999px; background: transparent; color: var(--c-ink); font: 500 .78rem/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
    cursor: pointer; transition: background .25s ease, color .25s ease, border-color .25s ease; }
.cine-button[hidden] { display: none; }
.cine-button:hover { border-color: var(--c-accent); background: var(--c-accent); color: var(--c-accent-ink); }
.cine-button:disabled { opacity: .4; cursor: default; }
.cine-button:disabled:hover { border-color: var(--c-line); background: transparent; color: var(--c-ink); }
.cine-button-solid { border-color: var(--c-accent); background: var(--c-accent); color: var(--c-accent-ink); }

/* ---- Countdown ------------------------------------------------------------------------ */
.cine-clock { margin: 1rem 0 1.5rem; }
.cine-clock[hidden] { display: none; }
.cine-clock-cells { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.cine-clock-cells div { display: grid; gap: .3rem; padding: .9rem 0 .7rem; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.cine-clock-cells span { font: 400 clamp(2.1rem, 10vw, 2.8rem)/1 var(--f-display); font-variant-numeric: tabular-nums; }
.cine-clock-cells small { color: var(--c-muted); font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; }
.cine-countdown .cine-lead { margin-bottom: 1.25rem; }

/* ---- Dress code -------------------------------------------------------------------------- */
.cine-swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin: .5rem 0 1.25rem; }
.cine-swatch { width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--swatch); }

/* ---- Momen Kami: a mosaic that opens a full-screen viewer -------------------------------- */
.cine-moments { gap: 1.5rem; }
/* Two strips to swipe sideways, words beneath: the title in the accent, a line in a hand-written script. */
.cine-moments { justify-content: center; gap: 1.75rem; }
.cine-strips { display: grid; gap: .3rem; margin-inline: calc(clamp(1.5rem, 6vw, 2.25rem) * -1); }
.cine-strip { display: flex; gap: .3rem; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; outline-offset: -2px; }
.cine-strip::-webkit-scrollbar { display: none; }
.cine-tile { position: relative; flex: 0 0 auto; width: 7.5rem; height: 11.25rem; overflow: hidden; padding: 0; border: 0; border-radius: 0;
    background: rgba(255, 255, 255, .06); cursor: zoom-in; scroll-snap-align: start; }
/* Flush to the left edge, narrow and wide in turn (as the reference: 120 · 320 · 120 · 270, the second row offset). */
.cine-strip .cine-tile:nth-child(4n + 2) { width: 20rem; }
.cine-strip .cine-tile:nth-child(4n + 4) { width: 17rem; }
.cine-strip + .cine-strip .cine-tile:nth-child(4n + 1) { width: 20rem; }
.cine-strip + .cine-strip .cine-tile:nth-child(4n + 2) { width: 7.5rem; }
.cine-strip + .cine-strip .cine-tile:nth-child(4n + 3) { width: 17rem; }
.cine-strip + .cine-strip .cine-tile:nth-child(4n + 4) { width: 8.5rem; }
.cine-moments .cine-title { margin-bottom: .2rem; color: var(--c-accent); }
.cine-script { font: 400 clamp(2.1rem, 9.5vw, 2.6rem)/1.05 var(--f-script); color: rgba(245, 245, 243, .66); }
[data-scheme="light"] .cine-script { color: var(--c-muted); }
.cine-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-film), filter .6s ease; }
.cine-tile:hover img, .cine-tile:focus-visible img { transform: scale(1.05); }
.cine-tile:focus-visible { outline-offset: -3px; }
.cine-tile-video { cursor: pointer; }
.cine-tile-video img { filter: brightness(.62); }
.cine-play { position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: 4rem; height: 4rem; border: 1px solid rgba(255, 255, 255, .8); border-radius: 50%;
    background: rgba(0, 0, 0, .25); color: #fff; backdrop-filter: blur(4px); }
.cine-play svg { width: 1.6rem; height: 1.6rem; margin-left: .2rem; }
.has-reveal .cine .cine-strips[data-reveal] > * { transform: translate3d(2rem, 0, 0); }

.cine-viewer { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; background: rgba(6, 6, 6, .97); color: #fff;
    translate: 0 var(--pull, 0); transition: translate .3s var(--ease-film); }
.cine-viewer[open] { display: block; animation: cine-viewer-in .45s var(--ease-film) both; }
@keyframes cine-viewer-in { from { opacity: 0; transform: scale(.97); } }
.cine-viewer::backdrop { background: rgba(0, 0, 0, .75); }
.cine-viewer-track { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; outline: 0; }
.cine-viewer-track::-webkit-scrollbar { display: none; }
.cine-viewer-slide { box-sizing: border-box; display: grid; place-items: center; flex: 0 0 100%; height: 100%; margin: 0; padding: 4.25rem .5rem 4.25rem; scroll-snap-align: center; scroll-snap-stop: always; }
.cine-viewer-slide img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cine-viewer-video { width: 100%; max-width: 60rem; aspect-ratio: 16 / 9; background: #000; }
.cine-viewer-video iframe { width: 100%; height: 100%; border: 0; }
.cine-viewer-count { position: absolute; top: max(1.1rem, env(safe-area-inset-top)); left: 1.25rem; margin: 0; color: rgba(255, 255, 255, .85); font: 500 .8rem/2.75rem "Jost", system-ui, sans-serif; letter-spacing: .2em; }
.cine-viewer-close, .cine-viewer-nav { position: absolute; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%; background: rgba(0, 0, 0, .35); color: #fff; cursor: pointer; }
.cine-viewer-close { top: max(1.1rem, env(safe-area-inset-top)); right: 1rem; }
.cine-viewer-nav { top: 50%; translate: 0 -50%; }
.cine-viewer-prev { left: .75rem; }
.cine-viewer-next { right: .75rem; }
.cine-viewer-nav:disabled { opacity: 0; pointer-events: none; }
.cine-viewer :is(button) svg { width: 1.2rem; height: 1.2rem; }
.cine-viewer :focus-visible { outline-color: #fff; }
@media (pointer: coarse) { .cine-viewer-nav { display: none; } }

/* ---- RSVP: one glass panel ------------------------------------------------------------- */
.cine-panel, .cine-gift-box.is-open, .cine-viewer { text-shadow: none; }
.cine-panel { width: 100%; box-sizing: border-box; padding: 2rem 1.35rem 1.6rem; border: 1px solid var(--c-line); border-radius: 1.25rem; background: var(--c-glass);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.cine-rsvp-form { margin-top: 1.4rem; text-align: left; }
.cine-rsvp-form > fieldset { display: grid; gap: 1.1rem; margin: 0; padding: 0; border: 0; }
.cine-field, .cine-attendance legend { display: grid; gap: .45rem; color: var(--c-muted); font: 500 .75rem/1.4 var(--f-body); letter-spacing: .2em; text-transform: uppercase; }
.cine-field[hidden] { display: none; }
.cine-field :is(input, select, textarea) { box-sizing: border-box; width: 100%; min-height: 48px; padding: .75rem .9rem; border: 1px solid var(--c-line); border-radius: .6rem;
    background: var(--c-field); color: var(--c-ink); font: 400 1rem/1.5 var(--f-body); letter-spacing: 0; text-transform: none; }
.cine-field select option { color: #111111; }
.cine-field :is(input, select, textarea)::placeholder { color: var(--c-muted); opacity: .75; }
.cine-attendance { margin: 0; padding: 0; border: 0; }
.cine-attendance legend { padding: 0; margin-bottom: .45rem; }
.cine-attendance-options { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.cine-attendance-options input { position: absolute; opacity: 0; pointer-events: none; }
.cine-attendance-options label { display: grid; place-items: center; min-height: 48px; border: 1px solid var(--c-line); border-radius: .6rem; background: var(--c-field);
    font-size: .78rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: background .2s ease, color .2s ease; }
.cine-attendance-options input:checked + label { border-color: var(--c-accent); background: var(--c-accent); color: var(--c-accent-ink); }
.cine-attendance-options input:focus-visible + label { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.cine-submit { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; min-height: 50px; border: 0; border-radius: 999px; background: var(--c-accent);
    color: var(--c-accent-ink); font: 600 .82rem/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }
.cine-submit:disabled { opacity: .6; cursor: progress; }
.cine-form-status { min-height: 1.4em; margin-top: .9rem !important; color: var(--c-ink); font-size: .9rem; text-align: center; }

/* ---- Wishes, five to a page ------------------------------------------------------------- */
.cine-wish-list { display: grid; gap: 0; width: 100%; max-width: 27rem; margin: 0 auto; padding: 0; list-style: none; text-align: left; }
.cine-wish { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; padding: 1.05rem 0; border-bottom: 1px solid var(--c-line); }
.cine-wish[hidden] { display: none; }
.cine-wish strong { display: block; font: 400 1.25rem/1.2 var(--f-display); }
.cine-wish p { margin-top: .3rem !important; color: var(--c-muted); line-height: 1.65; overflow-wrap: anywhere; white-space: pre-line; }
.cine-like { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .3rem; min-width: 44px; min-height: 44px; padding: 0 .75rem; border: 1px solid var(--c-line); border-radius: 999px;
    background: transparent; color: var(--c-muted); font: 500 .85rem var(--f-body); cursor: pointer; }
.cine-like svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.cine-like.is-liked { color: var(--c-accent); }
.cine-like.is-liked svg { fill: currentColor; }
.cine-wishes > .cine-caption { text-align: center; }
.cine-pager { display: flex; align-items: center; justify-content: center; gap: 1rem; font-size: .85rem; letter-spacing: .14em; white-space: nowrap; }
.cine-pager[hidden] { display: none; }

/* ---- Gift: a button that opens into cards ----------------------------------------------- */
.cine-gift-box { position: relative; width: 11.5rem; max-width: 100%; margin: 1.6rem auto 0; overflow: hidden; border: 1px solid var(--c-line); border-radius: 1.6rem;
    transition: width .5s var(--ease-film) .4s, border-radius .5s ease .4s, background-color .4s ease .4s; }
.cine-gift-open { display: block; width: 100%; min-height: 46px; padding: 0 1.25rem; border: 0; background: transparent; color: var(--c-ink); font: 500 .76rem/1 var(--f-body);
    letter-spacing: .24em; text-transform: uppercase; cursor: pointer; transition: opacity .25s ease .45s; }
.cine-gift-body { max-height: 0; opacity: 0; transition: max-height .45s ease, opacity .25s ease; }
.cine-gift-close { display: block; min-height: 44px; margin-left: auto; padding: 0 1.1rem; border: 0; background: none; color: var(--c-muted); font: italic 400 .95rem/1 var(--f-display);
    text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.cine-gift-rows { margin: 0; padding: 0 1.1rem .6rem; list-style: none; text-align: left; }
.cine-gift-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem 0; border-top: 1px solid var(--c-line);
    opacity: 0; transform: translate3d(0, .5rem, 0); transition: opacity .25s ease, transform .3s ease; }
.cine-gift-row:first-child { border-top: 0; }
.cine-gift-label { font: 400 1.35rem/1.2 var(--f-display); }
.cine-gift-number { margin-top: .15rem !important; font: 500 1.12rem/1.3 var(--f-body); letter-spacing: .08em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cine-gift-name, .cine-gift-address { color: var(--c-muted); font-size: .9rem; line-height: 1.5; }
.cine-gift-address { white-space: pre-line; }
/* Open: wider first, then taller, then the rows one by one; closing runs it backwards. Without JS it is simply open. */
.cine-gift-box.is-open, .cine-gift-box:not(.is-ready) { width: 100%; border-radius: 1rem; background-color: var(--c-glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    transition: width .5s var(--ease-film), border-radius .5s ease, background-color .4s ease; }
.cine-gift-box.is-open .cine-gift-open, .cine-gift-box:not(.is-ready) .cine-gift-open { position: absolute; opacity: 0; pointer-events: none; transition: opacity .15s ease; }
.cine-gift-box.is-open .cine-gift-body, .cine-gift-box:not(.is-ready) .cine-gift-body { max-height: 28rem; opacity: 1; transition: max-height .6s var(--ease-film) .45s, opacity .3s ease .45s; }
.cine-gift-box.is-open .cine-gift-row, .cine-gift-box:not(.is-ready) .cine-gift-row { opacity: 1; transform: none; transition: opacity .4s ease, transform .5s var(--ease-film); transition-delay: calc(.8s + var(--i, 0) * .12s); }
.cine-copy { position: relative; flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--c-line); border-radius: 50%;
    background: transparent; color: var(--c-ink); cursor: pointer; transition: background .25s ease, color .25s ease; }
.cine-copy svg { width: 1.1rem; height: 1.1rem; }
.cine-copy .cine-copy-done { display: none; }
.cine-copy.is-copied .cine-copy-idle { display: none; }
.cine-copy.is-copied .cine-copy-done { display: block; }
.cine-copy.is-copied { border-color: var(--c-accent); background: var(--c-accent); color: var(--c-accent-ink); }
.cine-gift [data-copy-status]:empty { display: none; }

/* Gift rows after the reference (26 Nov 2026): the mark on the left, the holder's name (bold) and the number beside it,
   copy on the right. The mark is the owner's logo card, else a badge in the bank's colours, else a plain icon. */
.cine-gift-row { justify-content: flex-start; gap: .9rem; padding: .85rem 0; }
.cine-gift-text { flex: 1; min-width: 0; }
.bank-mark { flex: 0 0 auto; box-sizing: border-box; display: grid; place-items: center; width: 3.4rem; height: 2.45rem; overflow: hidden; border-radius: .45rem;
    background: var(--bank); color: var(--bank-ink); font: 700 .75rem/1 var(--f-body); letter-spacing: .01em; text-shadow: none; }
.bank-mark-logo { object-fit: cover; background: #ffffff; }
.bank-mark-icon { border: 1px solid var(--c-line); background: transparent; color: var(--c-ink); }
.bank-mark-icon svg { width: 1.35rem; height: 1.35rem; }
.cine-gift-row .cine-gift-name { color: var(--c-ink); font: 600 1rem/1.35 var(--f-body); }
.cine-gift-row .cine-gift-number { margin-top: .1rem !important; color: var(--c-muted); font: 400 .95rem/1.35 var(--f-body); letter-spacing: .04em; }
.cine-gift-row .cine-gift-label:not(.sr-only) { font-size: 1.15rem; }

/* ---- Closing ------------------------------------------------------------------------------ */
.cine-closing { justify-content: space-between; text-align: center; padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); }
.cine-closing .cine-title { font-size: clamp(1.9rem, 8vw, 2.5rem); }
.cine-signoff { margin-top: 1.6rem !important; color: var(--c-muted); font-style: italic; }
.cine-closing-names { margin-top: .35rem !important; font: 400 clamp(2rem, 9vw, 2.6rem)/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.cine-closing .cine-arabic { margin: 1.4rem 0 0 !important; }
.cine-credit { display: grid; justify-items: center; gap: .45rem; margin: 0; color: var(--c-muted); font-size: .75rem; letter-spacing: .08em; }
.cine-credit p { margin: 0; }
.cine-logo { display: inline-flex; min-height: 44px; align-items: center; }
.cine-logo img { display: block; width: 7.5rem; height: auto; opacity: .92; }
.cine-logo-ink, [data-scheme="light"] .cine-logo-light { display: none !important; }
[data-scheme="light"] .cine-logo-ink { display: block !important; }

/* ---- Cover --------------------------------------------------------------------------------- */
.cine-opening { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; box-sizing: border-box;
    padding: max(3.5rem, 9svh) 1.5rem max(2.5rem, 6svh); background: #0b0b0b; color: #f5f5f3; text-align: center; font: 400 1rem/1.6 var(--f-body);
    transition: background-color .6s ease .9s; }
.cine-opening[hidden] { display: none; }
/* The cinematic intro (after the reference): black; "The Wedding of"; the names; their initials rise above them;
   then the black lifts onto the cover, whose words wait for it (--intro). Skipped with a tap, and once a session. */
.cine-opening { --intro: 4.4s; }
.cine-opening.intro-done { --intro: 0s; }
.cine-intro { position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; gap: 1rem; background: #050505; color: #f5f5f3;
    cursor: pointer; animation: cine-intro-out 1s ease 4.2s forwards; }
.cine-opening.intro-done .cine-intro { display: none; }
@keyframes cine-intro-out { to { opacity: 0; visibility: hidden; } }
.cine-intro p { margin: 0; }
.cine-intro-kicker { position: absolute; left: 0; right: 0; top: 50%; translate: 0 -50%; font: 500 .75rem/1 var(--f-body); letter-spacing: .42em; text-transform: uppercase;
    animation: cine-intro-blink 1.5s ease .3s both; }
@keyframes cine-intro-blink { 0% { opacity: 0; letter-spacing: .7em; } 35%, 70% { opacity: 1; letter-spacing: .42em; } 100% { opacity: 0; } }
.cine-intro-mark { overflow: hidden; padding: 0 .1em; }
.cine-intro-initials { display: block; font: 400 clamp(4.5rem, 24vw, 7rem)/1 var(--f-display); letter-spacing: .02em; animation: cine-intro-rise 1.3s cubic-bezier(.2, .7, .2, 1) 2.6s both; }
@keyframes cine-intro-rise { from { transform: translate3d(0, 108%, 0); } }
.cine-intro-names { font: 500 .75rem/1 var(--f-body); letter-spacing: .4em; text-transform: uppercase; animation: cine-intro-in 1.1s ease 1.8s both; }
@keyframes cine-intro-in { from { opacity: 0; filter: blur(6px); } }
.cine-opening-photo { position: absolute; inset: 0; background: var(--cover, radial-gradient(120% 80% at 50% 18%, #2a2a2a, #0b0b0b 72%)) center 30% / cover no-repeat;
    animation: cine-cover 18s ease-out both; transition: opacity 1.1s ease .35s, transform 1.5s var(--ease-film); }
@keyframes cine-cover { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.cine-opening-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 10, .78), rgba(10, 10, 10, .15) 34%, rgba(10, 10, 10, .2) 52%, rgba(10, 10, 10, .9)); transition: opacity 1s ease .4s; }
.cine-opening-top, .cine-opening-foot { position: relative; }
.cine-opening-top > *, .cine-opening-foot > * { animation: cine-in 1.2s var(--ease-film) both; animation-delay: var(--intro); }
.cine-opening-top > :nth-child(2) { animation-delay: calc(var(--intro) + .25s); }
.cine-opening-top > :nth-child(3) { animation-delay: calc(var(--intro) + .5s); }
.cine-opening-foot > :nth-child(1) { animation-delay: calc(var(--intro) + .8s); }
.cine-opening-foot > :nth-child(2) { animation-delay: calc(var(--intro) + .95s); }
.cine-opening-foot > :nth-child(3) { animation-delay: calc(var(--intro) + 1.1s); }
.cine-opening-foot > :nth-child(4) { animation-delay: calc(var(--intro) + 1.3s); }
@keyframes cine-in { from { opacity: 0; transform: translate3d(0, 1.2rem, 0); filter: blur(8px); } }
.cine-opening-kicker { margin: 0; color: #f5f5f3; font: 500 .75rem/1.4 var(--f-body); letter-spacing: .34em; text-transform: uppercase; }
.cine-opening-names { margin: .9rem 0 0; font: 400 clamp(2.7rem, 13vw, 4rem)/.98 var(--f-display); text-transform: uppercase; letter-spacing: .01em; }
.cine-opening-names .cine-name { display: block; }
.cine-opening-names .cine-amp { display: block; margin: .2em 0 .1em; color: #f5f5f3; font-size: .8em; line-height: .8; text-transform: none; }
.cine-opening-date { margin: 1rem 0 0; color: #f5f5f3; font: 500 .85rem/1.4 var(--f-body); letter-spacing: .3em; }
.cine-guest-label { margin: 0; color: rgba(245, 245, 243, .82); font-size: .85rem; }
.cine-guest-name { margin: .3rem 0 0; font: 400 clamp(1.6rem, 7vw, 2rem)/1.2 var(--f-display); overflow-wrap: anywhere; }
.cine-guest-note { max-width: 21rem; margin: .4rem auto 1.4rem; color: rgba(245, 245, 243, .78); font-size: .78rem; line-height: 1.5; text-wrap: balance; }
.cine-opening-cta { min-height: 48px; padding: 0 2rem; border: 0; border-radius: 999px; background: #f5f5f3; color: #111111;
    font: 600 .75rem/1 var(--f-body); letter-spacing: .26em; text-transform: uppercase; cursor: pointer; transition: background .25s ease; }
.cine-opening-cta:hover, .cine-opening-cta:focus-visible { background: #ffffff; }
.cine-opening-cta:focus-visible { outline: 2px solid #f5f5f3; outline-offset: 3px; }
/* Opening: the words lift away, the photo dissolves into the same photo behind the invitation. */
.cine-opening.is-closing { pointer-events: none; background-color: transparent; }
.cine-opening.is-closing .cine-opening-top > *, .cine-opening.is-closing .cine-opening-foot > * { animation: cine-out .7s ease-in both; }
.cine-opening.is-closing .cine-opening-top > :nth-child(2) { animation-delay: .06s; }
.cine-opening.is-closing .cine-opening-top > :nth-child(3) { animation-delay: .12s; }
@keyframes cine-out { to { opacity: 0; transform: translate3d(0, -1.5rem, 0); filter: blur(10px); } }
.cine-opening.is-closing .cine-opening-photo { opacity: 0; transform: scale(1.04); }
.cine-opening.is-closing .cine-opening-shade { opacity: 0; }
/* Short screens (a laptop with its toolbars, a phone held sideways): the names shrink with the height, and a cover
   that still runs over scrolls rather than hiding its button. */
.cine-opening { overflow-y: auto; overscroll-behavior: contain; }
/* The drifting photo and its shade are fixed layers, so their zoom never makes the cover scroll. */
.cine-opening-photo, .cine-opening-shade { position: fixed; }
@media (max-height: 44rem) {
    .cine-opening-names { font-size: clamp(2rem, 9svh, 3.2rem); }
    .cine-guest-note { margin-bottom: .9rem; }
}
@media (max-height: 34rem) {
    .cine-opening { padding-block: 1.25rem; }
    .cine-opening-names { font-size: 2rem; }
    .cine-opening-names .cine-name, .cine-opening-names .cine-amp { display: inline; }
    .cine-guest-note { display: none; }
}

/* ---- Menu: a glass panel that grows from the trigger ------------------------------------- */
html.menu-open, html.menu-open body { overflow: hidden; overscroll-behavior: none; }
.cine-menu-trigger { position: fixed; top: max(14px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); z-index: 31; display: grid; place-items: center;
    width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; background: rgba(12, 12, 12, .35); color: #f5f5f3; cursor: pointer;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: transform .18s ease; }
.cine-menu-trigger[hidden] { display: none; }
.cine-menu-trigger svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.6; }
.cine-menu-trigger:hover, .cine-menu-trigger:focus-visible { transform: translateY(-.1rem); }
.cine-menu { position: fixed; inset: 0; z-index: 35; visibility: hidden; pointer-events: none; transition: visibility 0s .65s; }
.cine-menu.is-open { visibility: visible; pointer-events: auto; transition: visibility 0s; }
.cine-menu-surface { position: absolute; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); display: flex; flex-direction: column;
    width: 48px; height: 48px; max-height: calc(100dvh - 24px); padding: 0; overflow: hidden; border: 1px solid transparent; border-radius: 24px; background: rgba(0, 0, 0, 0); color: #f5f5f3;
    transition: width .65s ease-in-out, height .65s ease-in-out, padding .65s ease-in-out, background .65s ease-in-out; }
.cine-menu.is-open .cine-menu-surface { width: min(400px, calc(100vw - 24px)); height: min(600px, calc(100dvh - 24px)); padding: 64px 12px 16px; overflow-y: auto;
    border-color: rgba(245, 245, 243, .2); background: rgba(12, 12, 12, .82); box-shadow: 0 8px 32px rgba(0, 0, 0, .35); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.cine-menu-close { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #f5f5f3; cursor: pointer; }
.cine-menu-close svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.cine-menu-nav { display: grid; align-content: start; gap: 4px; }
.cine-menu-nav a { display: block; padding: 10px 20px; color: #f5f5f3; font: 400 1.65rem/1.15 var(--f-display); text-decoration: none; opacity: 0; filter: blur(10px);
    transition: color .18s ease, transform .18s ease, opacity .5s ease-in-out, filter .5s ease-in-out; }
.cine-menu-nav a:hover, .cine-menu-nav a:focus-visible, .cine-menu-nav a.is-active { color: #f5f5f3; }
.cine-menu-nav a:hover, .cine-menu-nav a:focus-visible { transform: translateX(5px); }
.cine-menu.is-open .cine-menu-nav a { opacity: 1; filter: blur(0); transition-delay: .55s; }
.cine-menu.is-open .cine-menu-nav a:nth-child(2) { transition-delay: .62s; }
.cine-menu.is-open .cine-menu-nav a:nth-child(3) { transition-delay: .69s; }
.cine-menu.is-open .cine-menu-nav a:nth-child(4) { transition-delay: .76s; }
.cine-menu.is-open .cine-menu-nav a:nth-child(5) { transition-delay: .83s; }
.cine-menu.is-open .cine-menu-nav a:nth-child(6) { transition-delay: .9s; }
.cine-menu.is-open .cine-menu-nav a:nth-child(7) { transition-delay: .97s; }
.cine-menu.is-open .cine-menu-nav a:nth-child(8) { transition-delay: 1.04s; }
.cine-menu-scheme { display: flex; align-items: center; gap: .6rem; min-height: 44px; margin: .9rem 20px 0; padding: 0 1rem; border: 1px solid rgba(245, 245, 243, .3);
    border-radius: 999px; background: transparent; color: #f5f5f3; font: 500 .95rem var(--f-body); cursor: pointer; opacity: 0; transition: opacity .5s ease-in-out; }
.cine-menu.is-open .cine-menu-scheme { opacity: 1; transition-delay: 1.1s; }
.cine-menu-hint { margin: 0; padding: .75rem 0 0; color: rgba(245, 245, 243, .72); font: 400 .85rem/1.5 var(--f-body); text-align: center; opacity: 0; transition: opacity .5s ease-in-out; }
.cine-menu.is-open .cine-menu-hint { opacity: 1; transition-delay: 1.2s; }

/* ---- Floating control: music bottom-left (no RSVP button: owner request, 25 Nov 2026) ----------- */
[data-theme="potret"] .scheme-toggle { display: none !important; }
[data-theme="potret"] .music-toggle { left: max(1rem, env(safe-area-inset-left)); right: auto; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 30; display: grid; place-items: center;
    width: 2.75rem; height: 2.75rem; border: 1px solid rgba(245, 245, 243, .6); background: rgba(12, 12, 12, .55); color: #f5f5f3; font-size: 0;
    box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
[data-theme="potret"] .music-toggle[hidden] { display: none; }
[data-theme="potret"] .music-toggle[aria-pressed="true"] { background: rgba(12, 12, 12, .55); color: #f5f5f3; }

/* ---- Wide screens: the backdrop fills the window, the names stay left, the column reads right ---- */
.cine-aside { display: none; }
@media (min-width: 900px) {
    .cine-main { width: min(31rem, 46vw); margin-left: auto; margin-right: clamp(0rem, 5vw, 5rem);
        background: linear-gradient(90deg, transparent, rgba(10, 10, 10, .42) 3rem, rgba(10, 10, 10, .42) calc(100% - 3rem), transparent); }
    [data-theme="potret"][data-scheme="light"] .cine-main { background: linear-gradient(90deg, transparent, rgba(247, 247, 245, .5) 3rem, rgba(247, 247, 245, .5) calc(100% - 3rem), transparent); }
    /* The names on the left appear once the hero (which already shows them) has scrolled away. */
    .cine-aside { position: fixed; left: clamp(2rem, 6vw, 6rem); bottom: clamp(2.5rem, 9vh, 6rem); z-index: 0; display: block; max-width: 38vw; text-shadow: var(--c-text-shadow);
        opacity: 0; transform: translate3d(0, 1rem, 0); transition: opacity 1s ease, transform 1.2s var(--ease-film); }
    .cine.is-past-hero .cine-aside { opacity: 1; transform: none; }
    .cine-aside-kicker { color: var(--c-accent); font: 500 .8rem/1.4 var(--f-body); letter-spacing: .34em; text-transform: uppercase; }
    .cine-aside-names { margin-top: 1rem !important; font: 400 clamp(3.5rem, 6.5vw, 6rem)/.95 var(--f-display); text-transform: uppercase; }
    .cine-aside-names .cine-name { display: block; }
    .cine-aside-names .cine-amp { display: block; margin: .15em 0; font-size: .75em; line-height: .8; text-transform: none; }
    .cine-aside-date { margin-top: 1.25rem !important; color: var(--c-accent); font: 500 .9rem/1.4 var(--f-body); letter-spacing: .32em; }
    .cine-opening { padding-inline: 10vw; }
}

@media (prefers-reduced-motion: reduce) {
    .cine *, .cine-opening * { animation: none !important; transition: none !important; }
    .cine-intro { display: none; }
    .cine-opening { --intro: 0s; }
    .has-reveal .cine [data-reveal] > *, .has-reveal .cine .cine-strips[data-reveal] > * { opacity: 1; transform: none; filter: none; }
    .cine-slide.is-active { transform: none; }
}

/* ==== Potret ===================================================================================
   The editorial layer over the Sinematik base: stacked names with a script ampersand, a monogram page, a vertical
   label beside each partner, the date stacked by the countdown, a date block per event, colour bars, a collage
   around Our Moments, framed photos beside the story and the gift, and grey glass pills for every button. */
.pot-title { margin: 0 0 1rem; font: 400 clamp(2.2rem, 10vw, 2.9rem)/1.08 var(--f-display); letter-spacing: .01em; text-wrap: balance; }
.pot-caps { font-size: clamp(1.75rem, 7.6vw, 2.2rem); line-height: 1.15; text-transform: uppercase; letter-spacing: .02em; }
.pot .cine-kicker { color: var(--c-ink); font-weight: 600; letter-spacing: .24em; }

/* Buttons: grey glass pills, no outline, as the reference wears them. */
.pot .cine-button, .pot .cine-submit, .pot-opening .cine-opening-cta { border: 0; background: var(--c-pill, rgba(245, 245, 243, .2)); color: var(--c-ink);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); letter-spacing: .16em; }
.pot .cine-button:hover, .pot .cine-submit:hover { border: 0; background: var(--c-pill-hover); color: var(--c-ink); }
.pot .cine-button:disabled:hover { border: 0; background: var(--c-pill); color: var(--c-ink); }
.pot .cine-submit { font-weight: 500; }
.pot-opening .cine-opening-cta { min-height: 48px; padding: 0 2.2rem; border-radius: .5rem; background: rgba(245, 245, 243, .22); color: #f5f5f3; font-weight: 500; }
.pot-opening .cine-opening-cta:hover, .pot-opening .cine-opening-cta:focus-visible { background: rgba(245, 245, 243, .34); }


/* ---- Names: stacked, the ampersand large and faint across them -------------------------------- */
.pot-names { margin: .55rem 0 0; font: 400 clamp(3rem, 15vw, 4.3rem)/.95 var(--f-names); letter-spacing: -.005em; }
.pot-names-art { position: relative; display: inline-block; padding-right: .35em; text-align: left; }
.pot-names-art > span:not(.pot-amp), .pot-names-aside > span:not(.pot-amp) { position: relative; z-index: 1; display: block; }
.pot-names-art > span:nth-child(2), .pot-names-aside > span:nth-child(2) { padding-left: .02em; }
/* Owner request (26 Nov 2026): the ampersand sits close, right after the second name, and fainter, as in the reference. */
/* Owner request (27 Nov 2026): the ampersand in the names' own serif, larger than them, faint, tucked in after the second name
   and dropping a little below it, as in the reference. */
.pot-amp { position: relative; z-index: -1; display: inline-block; margin-left: -.24em; top: .16em; color: currentColor; font: 400 1.32em/0 var(--f-names); opacity: .42; }
.pot-date { margin-top: 1.4rem !important; font: 500 .82rem/1.4 var(--f-body); letter-spacing: .14em; text-transform: uppercase; }

/* ---- Hero: the names near the top, the cue down the right edge ---------------------------------- */
.pot-hero { justify-content: flex-start; align-items: center; text-align: center; padding-top: clamp(4.5rem, 10svh, 6rem); }
.pot-hero-block { position: relative; }
.pot-cue { position: absolute; right: clamp(1rem, 5vw, 1.75rem); top: 50%; translate: 0 -50%; }

/* ---- Monogram page ------------------------------------------------------------------------------ */
.pot-monogram { justify-content: space-between; }
.pot-mark, .pot-intro-mark { position: relative; display: grid; grid-template-columns: auto auto; align-self: center; margin: clamp(1rem, 8svh, 4rem) 0 0 !important;
    font: 400 clamp(5rem, 26vw, 7rem)/.9 var(--f-names); }
.pot-mark-a { position: relative; z-index: 1; grid-column: 1; grid-row: 1; }
.pot-mark-b { position: relative; z-index: 1; grid-column: 2; grid-row: 2; margin-top: -.3em; margin-left: -.12em; }
.pot-mark-amp { position: absolute; left: 50%; top: 50%; translate: -50% -50%; font: 400 .9em/1 var(--f-script); opacity: .32; }
/* Owner request (27 Nov 2026): the initials sit over the ampersand, which stays a faint grey behind them. */
.pot-mark-amp { z-index: 0; text-shadow: none; }
/* A faint colour rather than opacity: the reveal sets every child of [data-reveal] back to opacity 1. */
.pot-mark .pot-mark-amp, .pot-intro-mark .pot-mark-amp { opacity: 1; color: color-mix(in srgb, var(--c-ink) 40%, transparent); }
/* With the kicker gone, the story title keeps its old place: a little down the photo's side, over its edge. */
.pot-story .pot-frame-head.has-photo > div { padding-top: 1.5rem; }
/* Owner request (27 Nov 2026): no names under the monogram, and the verse sits centred beneath it. */
.pot-monogram-words { max-width: 27rem; align-self: center; margin-inline: auto; text-align: center; }
.pot-verse { margin: 0 0 1rem; }
.pot-verse blockquote { margin: 0; color: var(--c-muted); font-size: .95rem; line-height: 1.75; text-wrap: pretty; }
.pot-verse figcaption { margin-top: .5rem; font: 600 .75rem/1.4 var(--f-body); letter-spacing: .2em; text-transform: uppercase; }
.pot-monogram .cine-lead { font-size: .95rem; }

/* ---- The couple: their photo, a vertical label down the left, the name with its script echo ------ */
.pot-person { justify-content: flex-end; padding-bottom: clamp(5.5rem, 13svh, 7rem); }
.pot-person.has-photo { background: var(--c-night); }
.pot-person-photo { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.pot-person.has-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10, 10, 10, .35), rgba(10, 10, 10, .08) 28%, rgba(10, 10, 10, .25) 50%, var(--c-photo-foot) 86%); }
[data-scheme="light"] .pot-person.has-photo::before { background: linear-gradient(180deg, transparent 42%, rgba(247, 247, 245, .5) 60%, var(--c-photo-foot) 86%); }
.pot-side { position: absolute; z-index: 2; top: clamp(1.6rem, 4svh, 2.4rem); left: clamp(1.1rem, 5vw, 1.6rem); display: flex; align-items: center; gap: .9rem; margin: 0;
    writing-mode: vertical-rl; transform: rotate(180deg); font: 500 .8rem/1 var(--f-body); letter-spacing: .32em; text-transform: uppercase; }
.pot-side::before { content: ""; width: 1px; height: clamp(5rem, 22svh, 11rem); background: currentColor; opacity: .7; }
.pot-person-words { z-index: 2; }
.pot-person-name { position: relative; margin: 0; font: 400 clamp(3rem, 15vw, 4.2rem)/1 var(--f-display); }
.pot-echo { position: absolute; left: -.05em; top: .3em; z-index: -1; font: 400 1.35em/1 var(--f-script); opacity: .28; white-space: nowrap; pointer-events: none; }
.pot-person-full { margin-top: .5rem !important; font: 600 1.15rem/1.35 var(--f-body); }
.pot-person-parent { display: grid; gap: .1rem; margin-top: .5rem !important; padding-bottom: 1rem; border-bottom: 1px solid var(--c-line); color: var(--c-muted); font-size: .95rem; line-height: 1.55; white-space: pre-line; }
.pot-of { color: var(--c-ink); }
.pot-socials a { border: 0; background: var(--c-pill); }

/* ---- Framed photo with its title beside it (story and gift) ---------------------------------------- */
.pot-frame-head { display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; gap: 1rem; }
.pot-frame-head.has-photo { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; }
.pot-frame { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.pot-frame-head.has-photo .pot-title { margin-left: -1.4rem; }
.pot-frame-head .pot-title { margin-bottom: 0; }

/* ---- Our Story ------------------------------------------------------------------------------------- */
.pot-story { gap: 1.4rem; padding-top: clamp(4.5rem, 11svh, 6rem); }
.pot-story .pot-title { font-size: clamp(2rem, 9vw, 2.6rem); }
.pot-chapters .cine-chapter h3 { text-transform: none; font-size: 1.45rem; }
.pot-chapters .cine-chapter-date { color: var(--c-ink); font-weight: 600; }
.pot-swipe-cue { font: italic 300 .85rem/1 var(--f-body); }
.pot-swipe-cue svg { width: 7rem; }

/* ---- Countdown: the date stacked down the left edge, a rule through it ------------------------------- */
.pot-countdown { justify-content: center; padding-left: clamp(4rem, 18vw, 5rem); }
.pot-stack { position: absolute; top: 0; left: clamp(1.1rem, 5vw, 1.6rem); display: grid; justify-items: center; gap: .1rem; margin: 0;
    font: 400 clamp(2.2rem, 10vw, 2.8rem)/1 var(--f-display); opacity: .55; }
.pot-stack::before, .pot-stack::after { content: ""; width: 1px; background: currentColor; }
.pot-stack::before { height: clamp(3rem, 12svh, 6rem); margin-bottom: .6rem; }
.pot-stack::after { height: clamp(6rem, 40svh, 22rem); margin-top: .6rem; }
.pot-countdown-words { max-width: 22rem; }
.pot-clock { margin: 1.25rem 0 1.5rem; }
.pot-clock .cine-clock-cells { gap: .25rem; }
.pot-clock .cine-clock-cells div { padding: 0; border: 0; }
.pot-clock .cine-clock-cells span { font-size: clamp(1.9rem, 8vw, 2.3rem); }
.pot-clock .cine-clock-cells small { color: var(--c-ink); font-size: .75rem; letter-spacing: .04em; text-transform: none; }

/* ---- Events: a title, then day | date | time between rules ----------------------------------------- */
.pot-events { justify-content: center; gap: clamp(2.25rem, 7svh, 3.5rem); text-align: center; }
.pot-event { width: 100%; max-width: 24rem; margin-inline: auto; }
.pot-event .pot-title { margin-bottom: .9rem; }
.pot-when { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: .75rem; margin: 0 0 .9rem !important; }
.pot-when-side { padding: .55rem 0; border-block: 1px solid var(--c-ink); font: 400 .9rem/1.3 var(--f-body); letter-spacing: .06em; text-transform: uppercase; }
.pot-when-side:first-child { text-align: right; }
.pot-when-side:last-child { text-align: left; }
.pot-when-day { display: grid; justify-items: center; line-height: 1; }
.pot-when-day small { font: 400 .95rem/1.2 var(--f-display); }
.pot-when-day strong { font: 400 2.6rem/1 var(--f-display); }
.pot-when-plain { margin-bottom: .8rem !important; font-size: 1rem; }
.pot-event address { color: var(--c-muted); font-style: normal; font-size: .92rem; line-height: 1.6; text-wrap: balance; }
.pot-event address strong { display: block; color: var(--c-ink); font-weight: 600; }
.pot-event .cine-event-links { justify-content: center; }

/* ---- Dress code: a faded photo panel, the colours as bars to its right ------------------------------- */
.pot-dress { justify-content: center; }
.pot-dress-photo { position: absolute; left: 0; top: 50%; translate: 0 -50%; width: 66%; height: min(62svh, 34rem); object-fit: cover; }
/* 27 Nov 2026 (owner request): the photo stays whole (no backdrop showing through), only dimmed a little so the words over it read. */
.pot-dress-photo { opacity: 1; filter: brightness(.8); }
.pot-dress-words { position: relative; display: grid; gap: 1.5rem; }
.pot-dress .pot-title { margin: 0 0 0 12%; }
.pot-bars { display: grid; justify-items: end; gap: .5rem; }
.pot-bar { display: block; width: 52%; height: clamp(2.6rem, 7svh, 3.3rem); background: var(--swatch); }
.pot-bar:nth-child(even) { margin-right: 6%; }
.pot-dress .cine-lead { max-width: 52%; font-size: .9rem; line-height: 1.6; }
/* Tema Fase 1: the words sit over the photo; a panel keeps them readable whatever the photo holds. */
.pot-dress .cine-lead { position: relative; padding: .75rem .9rem; background: rgba(10, 10, 10, .72); }
[data-scheme="light"] .pot-dress .cine-lead { background: rgba(247, 247, 245, .9); }

/* ---- RSVP and wishes: a label with a rule, square fields ---------------------------------------------- */
.pot-rsvp, .pot-wishes { justify-content: flex-start; }
.pot-rsvp { padding-top: clamp(4rem, 9svh, 5rem); }
.pot-form-block { width: 100%; max-width: 27rem; margin-inline: auto; }
.pot-rule { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.1rem !important; font: 600 .85rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; }
.pot-rule::after { content: ""; flex: 1; height: 1px; background: var(--c-line); }
.pot-rsvp .pot-title { margin-bottom: .6rem; }
.pot-rsvp .cine-lead { font-size: .92rem; line-height: 1.6; }
.pot .cine-field :is(input, select, textarea), .pot .cine-attendance-options label { border-radius: 0; background: transparent; }
.pot .cine-field :is(input, select, textarea) { min-height: 44px; padding: .6rem .8rem; }
.pot .cine-rsvp-form > fieldset { gap: .85rem; }
.pot .cine-attendance-options input:checked + label { border-color: var(--c-ink); background: var(--c-ink); color: var(--c-night); text-shadow: none; }
.pot .cine-field select option { color: #111111; }
.pot-wishes { gap: 1.25rem; padding-top: clamp(4rem, 9svh, 5rem); padding-bottom: clamp(3.5rem, 8svh, 4.5rem); }
.pot-wishes .cine-wish-list { margin-top: -.75rem; }
.pot .cine-wish { padding: .8rem 0; }
.pot .cine-wish p { margin-top: .2rem !important; line-height: 1.55; }
.pot .cine-wish strong { font: 600 1rem/1.3 var(--f-body); }
.pot .cine-wish p { font-size: .9rem; }

/* ---- Our Moments: a strip, the title and a script line, another strip ---------------------------------- */
.pot-moments { justify-content: center; gap: 1rem; }
.pot-strip { margin-inline: calc(clamp(1.5rem, 6vw, 2.25rem) * -1); padding-inline: clamp(1.5rem, 6vw, 2.25rem); gap: .5rem; scroll-padding-inline: clamp(1.5rem, 6vw, 2.25rem); }
/* Owner request (26 Nov 2026): every photo in the collage is the same height; only the widths vary. */
.pot-strip .cine-tile { width: 8.5rem; height: 10.5rem; }
.pot-strip .cine-tile:nth-child(3n + 2) { width: 7rem; }
.pot-strip .cine-tile:nth-child(3n) { width: 9.5rem; }
.pot-moments-words + .pot-strip .cine-tile { width: 9.5rem; }
.pot-moments-words + .pot-strip .cine-tile:nth-child(even) { width: 12rem; }
.pot-moments-words { position: relative; display: grid; gap: .2rem; }
.pot-moments .pot-title { margin: 0; font-size: clamp(2.6rem, 12vw, 3.3rem); line-height: 1; }
.pot-script { justify-self: end; max-width: 15rem; margin-top: -.4rem !important; transform: rotate(-5deg); font: 400 clamp(1.7rem, 7.5vw, 2.1rem)/1.05 var(--f-script); text-align: right; opacity: .85; }
.pot-swipe-note { align-self: flex-end; margin-top: -.5rem !important; color: var(--c-muted); font: italic 300 .78rem/1 var(--f-body); letter-spacing: .04em; }
.has-reveal .pot .pot-strip[data-reveal] > * { transform: translate3d(2rem, 0, 0); }
.has-reveal .pot .pot-strip[data-reveal].is-revealed > * { transform: none; }

/* ---- Wedding gift ---------------------------------------------------------------------------------------- */
/* Anchored from the top (26 Nov 2026): the panel grows downwards only, so the title and words never jump while it opens. */
.pot-gift { justify-content: flex-start; padding-top: clamp(5rem, 14svh, 8rem); }
.pot-gift-block { width: 100%; max-width: 27rem; text-align: left; }
.pot-gift .pot-frame-head { align-items: end; margin-bottom: 1rem; }
.pot-gift .pot-frame-head.has-photo .pot-title { margin-left: -.6rem; padding-bottom: .4rem; }
.pot-gift .cine-lead { font-size: .95rem; line-height: 1.65; }
/* The pill keeps its height while it widens (it no longer collapses to a line when its label fades), then grows
   taller; the border is there from the start (transparent) so nothing shifts by a pixel when it shows. */
.pot .cine-gift-box { min-height: 46px; border: 1px solid transparent; background-color: var(--c-pill); }
.pot .cine-gift-box.is-open, .pot .cine-gift-box:not(.is-ready) { border-color: var(--c-line); background-color: var(--c-glass);
    transition: width .65s cubic-bezier(.45, 0, .2, 1), border-radius .6s ease, background-color .5s ease, border-color .5s ease; }
.pot .cine-gift-box.is-open .cine-gift-body { transition: max-height .8s cubic-bezier(.45, 0, .2, 1) .55s, opacity .4s ease .6s; }
.pot .cine-gift-box.is-open .cine-gift-row { transition-delay: calc(1s + var(--i, 0) * .12s); }

/* ---- Closing --------------------------------------------------------------------------------------------- */
.pot-closing { justify-content: space-between; text-align: center; padding-top: clamp(4.5rem, 10svh, 6rem); padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); }
.pot-closing .cine-block { margin-inline: auto; }
.pot-closing .cine-lead { font-size: .95rem; }
.pot-signature { margin-top: 1.4rem !important; font: 400 1.05rem/1.4 var(--f-display); letter-spacing: .2em; text-transform: uppercase; }

/* ---- Cover ------------------------------------------------------------------------------------------------ */
.pot-opening .cine-opening-kicker { color: #f5f5f3; font-weight: 600; letter-spacing: .24em; }
.pot-opening-names { font-size: clamp(3rem, 15vw, 4.3rem); }
.pot-opening .cine-opening-date { color: #f5f5f3; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; }
.pot-opening .cine-guest-name { font: 600 1.25rem/1.3 var(--f-body); }
.pot-opening .cine-guest-name::after { content: ""; display: block; width: min(16rem, 70%); height: 1px; margin: .6rem auto 0; background: rgba(245, 245, 243, .55); }
.pot-opening .cine-guest-note { font-style: italic; }
@media (max-height: 44rem) { .pot-opening-names { font-size: clamp(2.2rem, 9svh, 3.4rem); } }
@media (max-height: 34rem) { .pot-opening-names { font-size: 2rem; } .pot-opening-names .pot-names-art > span { display: inline; margin-right: .3em; } .pot-opening-names .pot-amp { display: none; } }
/* The intro: on black, the two initials slide in from either side and cross into a monogram, then the names. */
.pot-intro { gap: 1.6rem; }
.pot-intro-mark { margin: 0 !important; }
.pot-intro .pot-mark-a { animation: pot-from-left 1.4s var(--ease-film) .3s both; }
.pot-intro .pot-mark-b { animation: pot-from-right 1.4s var(--ease-film) .3s both; }
.pot-intro .pot-mark-amp { animation: pot-fade 1.2s ease 1.4s both; }
.pot-intro-names { font: 500 .75rem/1 var(--f-body); letter-spacing: .4em; text-transform: uppercase; animation: pot-fade 1.1s ease 2.2s both; }
@keyframes pot-from-left { from { opacity: 0; transform: translate3d(-40vw, 0, 0); } }
@keyframes pot-from-right { from { opacity: 0; transform: translate3d(40vw, 0, 0); } }
@keyframes pot-fade { from { opacity: 0; filter: blur(6px); } }

/* ---- Menu: two plain lines, no circle ---------------------------------------------------------------------- */
.pot-menu-trigger { border: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .5)); }
.pot-menu-trigger svg { width: 1.6rem; height: 1.6rem; stroke-width: 1.4; }
.pot .cine-menu-nav a { font-size: 1.5rem; }

/* ---- Wide screens: the aside carries the stacked names ------------------------------------------------------ */
.pot .cine-aside-date, .pot .cine-aside-kicker { color: var(--c-ink); text-transform: uppercase; letter-spacing: .2em; }
.pot-names-aside { position: relative; display: inline-block; margin-top: 1rem !important; padding-right: .35em; font: 400 clamp(3.5rem, 6.5vw, 6rem)/.92 var(--f-names); }
@media (min-width: 900px) {
    .pot-dress-photo { width: 70%; }
}

/* ---- Smoother opening (26 Nov 2026, owner request) -----------------------------------------------------------
   Intro: the monogram never stands still (a slow zoom under the letters), the names follow sooner, and the black
   lifts gently while the cover's words already start to rise (--intro overlaps the fade).
   Open: the cover's own black drops at once, so the photo dissolves straight into the same black-and-white backdrop
   (no dark dip in between); photo and shade fade together, without a zoom, while the words drift up. */
.pot-opening { --intro: 3.7s; }
.pot-opening.intro-done { --intro: 0s; }
.pot-intro { animation: pot-intro-out 1.3s cubic-bezier(.4, 0, .2, 1) 3.3s forwards; }
@keyframes pot-intro-out { to { opacity: 0; visibility: hidden; } }
.pot-intro-mark { animation: pot-breathe 4.6s cubic-bezier(.25, .1, .25, 1) both; }
@keyframes pot-breathe { from { transform: scale(.94); } to { transform: scale(1.06); } }
.pot-intro .pot-mark-a { animation: pot-from-left 1.5s cubic-bezier(.22, .8, .24, 1) .2s both; }
.pot-intro .pot-mark-b { animation: pot-from-right 1.5s cubic-bezier(.22, .8, .24, 1) .2s both; }
.pot-intro .pot-mark-amp { animation: pot-fade 1.1s ease 1.1s both; }
.pot-intro-names { animation: pot-fade 1s ease 1.7s both; }
@keyframes pot-from-left { from { opacity: 0; transform: translate3d(-28vw, 0, 0); } }
@keyframes pot-from-right { from { opacity: 0; transform: translate3d(28vw, 0, 0); } }
.pot-opening .cine-opening-top > *, .pot-opening .cine-opening-foot > * { animation-name: pot-in; animation-duration: 1.4s; animation-timing-function: cubic-bezier(.22, .8, .24, 1); }
@keyframes pot-in { from { opacity: 0; transform: translate3d(0, .9rem, 0); } }
.pot-opening-photo { will-change: transform, opacity; }
/* The first backdrop photo is framed like the cover (centre, 30 % down), so the dissolve does not shift it. */
.pot .cine-slide:first-child { object-position: center 30%; }
/* Owner request (27 Nov 2026): the backdrop and cover photos keep their colour, darkened as in the reference (the veil
   does most of it); cover and backdrop share one filter, so the dissolve shows no change of tone. */
.pot .cine-slide, .pot .cine-backdrop-video, .pot-opening-photo { filter: saturate(.9) brightness(.7); }
.pot-opening.is-closing { background-color: transparent; transition: none; }
.pot-opening.is-closing .cine-opening-photo { opacity: 0; transform: none; animation-play-state: paused; transition: opacity 1.2s cubic-bezier(.4, 0, .2, 1) .2s; }
.pot-opening.is-closing .cine-opening-shade { opacity: 0; transition: opacity 1.2s cubic-bezier(.4, 0, .2, 1) .2s; }
.pot-opening.is-closing .cine-opening-top > *, .pot-opening.is-closing .cine-opening-foot > * { animation: pot-out .8s cubic-bezier(.4, 0, .2, 1) both; }
.pot-opening.is-closing .cine-opening-foot > * { animation-delay: 0s; }
.pot-opening.is-closing .cine-opening-top > :nth-child(2) { animation-delay: .05s; }
.pot-opening.is-closing .cine-opening-top > :nth-child(3) { animation-delay: .1s; }
@keyframes pot-out { to { opacity: 0; transform: translate3d(0, -1rem, 0); } }

/* ---- Wide screens with no landscape photo (27 Nov 2026, owner request) -------------------------------------
   cine.js adds .is-fit: the photo shows whole, centred, over a darker blurred copy of itself, instead of being
   stretched until the faces leave the frame. With landscape photos, cine.js swaps them in and none of this applies. */
.pot .cine-backdrop.is-fit::before { content: ""; position: absolute; inset: -4rem; background: var(--fill) center / cover no-repeat; filter: blur(40px) saturate(.9) brightness(.45); }
.pot .cine-backdrop.is-fit .cine-slide { object-fit: contain; object-position: center; }
.pot .cine-backdrop.is-fit .cine-slide.is-active, .pot .cine-backdrop.is-fit .cine-slide.is-leaving { animation: none; transform: none; }
.pot-opening-photo.is-fit { background-size: contain; background-position: center; }
.pot-opening:has(> .pot-opening-photo.is-fit)::before { content: ""; position: fixed; inset: -4rem; background: var(--fill) center / cover no-repeat; filter: blur(40px) saturate(.9) brightness(.45); }
.pot-opening.is-closing::before { opacity: 0; transition: opacity 1.2s cubic-bezier(.4, 0, .2, 1) .2s; }

/* ---- A section's own photo (27 Nov 2026, Teks & gambar tema) ---------------------------------------------------
   The owner may give a section one of their gallery photos as its background. It sits under everything the section
   holds (a layer below the section's own content, so nothing inside it moves), darkened so the words keep their contrast. */
.has-section-photo { isolation: isolate; }
.cine-section-photo { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.cine-section-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
/* Tema Fase 1: deep enough for body text on a bright photo (the closing's trees), AA on white. */
.cine-section-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, .58) 45%, rgba(0, 0, 0, .8)); }
[data-scheme="light"] .cine-section-photo::after { background: linear-gradient(180deg, rgba(250, 248, 244, .82), rgba(250, 248, 244, .7) 45%, rgba(250, 248, 244, .88)); }

/* ---- Tema Fase 2 (3 Dec 2026): a print's white border on the framed photos (story, gift); photo colours unchanged.
   The border is a shadow, so nothing moves. */
.pot-frame { box-shadow: 0 0 0 5px #f4f2ee, 0 18px 36px -14px rgba(0, 0, 0, .7); }
