/* Sinematik (25 Nov 2026 redesign): a film over the couple's own pictures.
 * One backdrop stays behind every section (their MP4, or their photos taking turns with a slow drift) under a
 * dark veil; the words sit where a film would put them and rise in line by line. Type (25 Nov 2026, after the
 * reference): Playfair Display for display, Corinthia for the hand-written capitals and lines, Jost for reading.
 * Dark is native; the menu offers a light veil. On wide screens the reading column sits right, the names stay large on the left. */
@font-face { font-family: "Playfair Display"; src: url("/frontend/assets/fonts/playfair-display-latin.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("/frontend/assets/fonts/playfair-display-italic-latin.woff2") format("woff2"); font-weight: 400 900; font-style: italic; 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: "Jost"; src: url("/frontend/assets/fonts/jost-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root[data-theme="sinematik"] {
    color-scheme: dark;
    --c-night: #0c0b09; --c-ink: #f6f0e6; --c-muted: rgba(246, 240, 230, .8); --c-accent: #eac29a; --c-accent-ink: #1d140b;
    --c-line: rgba(234, 194, 154, .4); --c-glass: rgba(14, 12, 10, .58); --c-field: rgba(255, 255, 255, .07);
    --c-veil: rgba(8, 7, 6, .56); --c-shade-top: rgba(8, 7, 6, .8); --c-shade-foot: rgba(8, 7, 6, .92); --c-photo-foot: rgba(8, 7, 6, .95);
    --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: "Playfair Display", Georgia, serif; --f-script: "Corinthia", "Playfair Display", 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="sinematik"][data-scheme="light"] {
    color-scheme: light;
    --c-night: #f4ede3; --c-ink: #2a2119; --c-muted: #574738; --c-accent: #8a5a2b; /* 5.6:1 on the cream veil */ --c-accent-ink: #fffaf3;
    --c-line: rgba(138, 90, 43, .38); --c-glass: rgba(250, 245, 238, .84); --c-field: rgba(255, 255, 255, .7);
    --c-text-shadow: 0 0 12px rgba(250, 246, 240, .9);
    --c-veil: rgba(250, 246, 240, .74); --c-shade-top: rgba(250, 246, 240, .9); --c-shade-foot: rgba(250, 246, 240, .94); --c-photo-foot: rgba(250, 246, 240, .95);
}

[data-theme="sinematik"] 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="sinematik"] :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="sinematik"]:has(body.is-locked), [data-theme="sinematik"] body.is-locked { overflow: hidden; overscroll-behavior: none; }
[data-theme="sinematik"] 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="sinematik"] { scroll-snap-type: y mandatory; }
.cine-page { scroll-snap-align: start; scroll-snap-stop: always; }
[data-theme="sinematik"]: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%, #2b231a, #0c0b09 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); }
/* 26 Nov 2026 (owner request): the names on the first page a size smaller. */
.cine-names { margin: 0; font: 400 clamp(2.6rem, 12.5vw, 3.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(8, 7, 6, .2) 30%, rgba(8, 7, 6, .62) 60%, var(--c-photo-foot) 84%); }
[data-scheme="light"] .cine-person.has-photo::before { background: linear-gradient(180deg, transparent 42%, rgba(250, 246, 240, .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; }
/* 26 Nov 2026 (owner request): the full name upright in the reading face, like the parents' line, not italic. */
.cine-person-full { margin-top: .6rem !important; font: 500 1.2rem/1.35 var(--f-body); letter-spacing: .01em; }
.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(8, 7, 6, .15), rgba(8, 7, 6, .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; }
/* 26 Nov 2026 (owner request): the date sits under the title, set like the time beneath it. */
.cine-event-date { margin-top: .1rem !important; color: var(--c-accent); font: 500 1rem/1.5 var(--f-body); letter-spacing: .06em; }
.cine-event h3 { margin: 0 0 .45rem; 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: 500 1rem/1.5 var(--f-body); 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); }
/* 26 Nov 2026 (owner request): the line under Our Moments in the plain reading face, not the script. */
.cine-script { max-width: 24rem; color: var(--c-muted); font: 400 1.05rem/1.7 var(--f-body); }
[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, 5, 4, .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: #1d140b; }
.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%; min-height: 46px; /* never a bare line while the label fades */ 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: #0c0b09; color: #f6f0e6; 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: #050403; color: #f6f0e6;
    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%, #2b231a, #0c0b09 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(8, 7, 6, .78), rgba(8, 7, 6, .15) 34%, rgba(8, 7, 6, .2) 52%, rgba(8, 7, 6, .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: #eac29a; 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: #eac29a; font-size: .8em; line-height: .8; text-transform: none; }
.cine-opening-date { margin: 1rem 0 0; color: #eac29a; font: 500 .85rem/1.4 var(--f-body); letter-spacing: .3em; }
.cine-guest-label { margin: 0; color: rgba(246, 240, 230, .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(246, 240, 230, .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: #eac29a; color: #1d140b;
    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: #f3d6b6; }
.cine-opening-cta:focus-visible { outline: 2px solid #f6f0e6; 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, 11, 9, .35); color: #f6f0e6; 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: #f6f0e6;
    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(234, 194, 154, .2); background: rgba(10, 9, 7, .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: #f6f0e6; 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: #f6f0e6; 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: #eac29a; }
.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(246, 240, 230, .3);
    border-radius: 999px; background: transparent; color: #f6f0e6; 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(246, 240, 230, .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="sinematik"] .scheme-toggle { display: none !important; }
[data-theme="sinematik"] .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(234, 194, 154, .6); background: rgba(12, 11, 9, .55); color: #f6f0e6; font-size: 0;
    box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
[data-theme="sinematik"] .music-toggle[hidden] { display: none; }
[data-theme="sinematik"] .music-toggle[aria-pressed="true"] { background: rgba(12, 11, 9, .55); color: #eac29a; }

/* ---- 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(8, 7, 6, .42) 3rem, rgba(8, 7, 6, .42) calc(100% - 3rem), transparent); }
    [data-theme="sinematik"][data-scheme="light"] .cine-main { background: linear-gradient(90deg, transparent, rgba(250, 246, 240, .5) 3rem, rgba(250, 246, 240, .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; }
}

/* ---- Wide screens with no landscape photo (27 Nov 2026, owner request, as in Potret) ---------------------------
   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. */
.cine-backdrop.is-fit::before { content: ""; position: absolute; inset: -4rem; background: var(--fill) center / cover no-repeat; filter: blur(40px) saturate(.9) brightness(.45); }
.cine-backdrop.is-fit .cine-slide { object-fit: contain; object-position: center; }
.cine-backdrop.is-fit .cine-slide.is-active, .cine-backdrop.is-fit .cine-slide.is-leaving { animation: none; transform: none; }
.cine-opening-photo.is-fit { background-size: contain; background-position: center; }
.cine-opening:has(> .cine-opening-photo.is-fit)::before { content: ""; position: fixed; inset: -4rem; background: var(--fill) center / cover no-repeat; filter: blur(40px) saturate(.9) brightness(.45); }
.cine-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): "Golden hour" -------------------------------------------------------------------
   The couple's photos behind the words are warmed towards amber (CSS only; the files are untouched), with a fine
   film grain. Gallery and couple portraits keep their own colours. */
.cine-backdrop, .cine-opening-photo, .cine-section-photo img { filter: sepia(.32) saturate(1.2) hue-rotate(-8deg) contrast(1.04); }
/* Film grain over the photos only (under every word), still with reduced motion. */
:is(.cine-backdrop, .cine-opening-photo)::after { content: ""; position: absolute; inset: -20%; z-index: 1; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.16; mix-blend-mode: overlay; }
@media (prefers-reduced-motion: no-preference) {
    :is(.cine-backdrop, .cine-opening-photo)::after { animation: sm-grain 1s steps(1) infinite; }
}
@keyframes sm-grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }
