/* Pesisir (27 Nov 2026, owner request, after porto-1597): black and white over the couple's own photos, on Sinematik's
 * script (cine.js). This file starts from Sinematik's (backdrop, snapping pages, viewer, menu, gift panel) with the
 * colours made monochrome; the Pesisir layout follows at the end (.psr). Type, after the reference: August for the
 * names and event names (licensed by the owner, references/fonts), Playfair Display for headings, Corinthia for the
 * verse and the ampersand, Metropolis (Unlicense) for reading. Every heading and line is the owner's to change. */
@font-face { font-family: "August"; src: url("/frontend/assets/fonts/august.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@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: "Corinthia"; src: url("/frontend/assets/fonts/corinthia-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
/* Tema Fase 1: two Metropolis files instead of four; the light 300 lines use 400 (steadier on photos), italics are slanted by the browser. */
@font-face { font-family: "Metropolis"; src: url("/frontend/assets/fonts/metropolis-latin-400-normal.woff2") format("woff2"); font-weight: 300 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Metropolis"; src: url("/frontend/assets/fonts/metropolis-latin-600-normal.woff2") format("woff2"); font-weight: 500 700; font-style: normal; font-display: swap; }

:root[data-theme="pesisir"] {
    color-scheme: dark;
    --c-night: #111111; --c-ink: #ffffff; --c-muted: rgba(255, 255, 255, .86); --c-accent: #ffffff; --c-accent-ink: #141414;
    --c-line: rgba(255, 255, 255, .55); --c-glass: rgba(16, 16, 16, .55); --c-field: rgba(255, 255, 255, .04);
    --c-veil: rgba(10, 10, 10, .5); --c-shade-top: rgba(10, 10, 10, .72); --c-shade-foot: rgba(10, 10, 10, .9); --c-photo-foot: rgba(10, 10, 10, .9);
    --c-text-shadow: 0 1px 12px rgba(0, 0, 0, .5), 0 0 2px rgba(0, 0, 0, .3);
    --f-names: "August", "Playfair Display", Georgia, serif; --f-display: "Playfair Display", Georgia, serif; --f-script: "Corinthia", cursive;
    --f-body: "Metropolis", 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="pesisir"][data-scheme="light"] {
    color-scheme: light;
    --c-night: #f4f2ef; --c-ink: #1c1c1c; --c-muted: #3f3f3f; --c-accent: #1c1c1c; --c-accent-ink: #ffffff;
    --c-line: rgba(28, 28, 28, .45); --c-glass: rgba(248, 247, 245, .84); --c-field: rgba(255, 255, 255, .7);
    --c-text-shadow: 0 0 12px rgba(248, 247, 245, .9);
    --c-veil: rgba(248, 247, 245, .74); --c-shade-top: rgba(248, 247, 245, .9); --c-shade-foot: rgba(248, 247, 245, .94); --c-photo-foot: rgba(248, 247, 245, .95);
}

[data-theme="pesisir"] 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="pesisir"] :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="pesisir"]:has(body.is-locked), [data-theme="pesisir"] body.is-locked { overflow: hidden; overscroll-behavior: none; }
[data-theme="pesisir"] 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="pesisir"] { scroll-snap-type: y mandatory; }
.cine-page { scroll-snap-align: start; scroll-snap-stop: always; }
[data-theme="pesisir"]: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, #111111 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(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(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(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; }
/* 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(8, 8, 8, .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 "Metropolis", 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: #141414; }
.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: #111111; color: #ffffff; 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: #0a0a0a; color: #ffffff;
    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, #111111 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: #ffffff; 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: #ffffff; font-size: .8em; line-height: .8; text-transform: none; }
.cine-opening-date { margin: 1rem 0 0; color: #ffffff; font: 500 .85rem/1.4 var(--f-body); letter-spacing: .3em; }
.cine-guest-label { margin: 0; color: rgba(255, 255, 255, .85); 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(255, 255, 255, .8); 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: #ffffff; color: #141414;
    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: #e9e9e9; }
.cine-opening-cta:focus-visible { outline: 2px solid #ffffff; 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(14, 14, 14, .35); color: #ffffff; 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: #ffffff;
    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(255, 255, 255, .18); 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: #ffffff; 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: #ffffff; 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: #ffffff; }
.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(255, 255, 255, .3);
    border-radius: 999px; background: transparent; color: #ffffff; 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(255, 255, 255, .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="pesisir"] .scheme-toggle { display: none !important; }
[data-theme="pesisir"] .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(255, 255, 255, .55); background: rgba(14, 14, 14, .55); color: #ffffff; font-size: 0;
    box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
[data-theme="pesisir"] .music-toggle[hidden] { display: none; }
[data-theme="pesisir"] .music-toggle[aria-pressed="true"] { background: rgba(14, 14, 14, .55); color: #ffffff; }

/* ---- 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="pesisir"][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; }

/* =====================================================================================================
   Pesisir's own layout, after porto-1597 (27 Nov 2026). Everything above is Sinematik's machinery.
   ===================================================================================================== */
.psr .cine-kicker, .psr-opening .cine-opening-kicker { color: var(--c-ink); font: 300 .82rem/1.4 var(--f-body); letter-spacing: .22em; text-transform: uppercase; }
.psr .cine-title { font: 400 clamp(1.85rem, 8.2vw, 2.15rem)/1.15 var(--f-display); letter-spacing: .01em; }
.psr .psr-upper { text-transform: uppercase; }
.psr .cine-lead, .psr .psr-text { color: var(--c-muted); font: 300 .9rem/1.8 var(--f-body); }
.psr .cine-date, .psr-opening .cine-opening-date { color: var(--c-ink); font: 400 .82rem/1.4 var(--f-body); letter-spacing: .1em; text-transform: uppercase; }
.psr .cine-button { min-height: 40px; padding: 0 1.4rem; border-color: var(--c-line); font: 400 .75rem/1 var(--f-body); letter-spacing: .16em; }
.psr .cine-button:hover { border-color: var(--c-ink); background: var(--c-ink); color: var(--c-accent-ink); }

/* The names: August capitals, stacked, a large faint Corinthia ampersand tucked between the two lines. */
.psr-names { position: relative; display: grid; justify-items: center; margin: 0; color: var(--c-ink); font: 400 clamp(3.1rem, 15vw, 3.75rem)/.98 var(--f-names);
    letter-spacing: .01em; text-transform: uppercase; }
.psr-names .psr-name { position: relative; z-index: 1; display: block; }
.psr-names .psr-amp { position: absolute; left: 50%; top: 52%; z-index: 0; translate: -50% -50%; color: color-mix(in srgb, var(--c-ink) 42%, transparent);
    font: 400 2.1em/1 var(--f-script); text-transform: none; pointer-events: none; }
.psr-hero-names { margin: .9rem 0 0; font-size: inherit; }
.psr .cine-hero .cine-date { margin-top: .9rem !important; }
/* A faint colour, not opacity: the reveal resets every child of a revealed block to opacity 1. */
.has-reveal .psr [data-reveal].is-revealed .psr-amp { opacity: 1; }
.psr-names-small { justify-items: end; font-size: clamp(2rem, 9.5vw, 2.4rem); }
.psr-names-small .psr-amp { left: 55%; font-size: 1.9em; }

/* ---- Verse: the source as the title, the verse hand-written, the couple and the hashtag at the foot ---- */
.psr-verse { justify-content: space-between; }
.psr-verse-title { margin-bottom: 1.2rem; }
.psr-verse-card { margin: 0 0 1rem; }
.psr-verse-card blockquote { margin: 0; font: 400 clamp(1.45rem, 6.2vw, 1.65rem)/1.55 var(--f-script); text-wrap: pretty; }
.psr-verse-card figcaption { margin-top: .5rem; font: 400 .78rem/1.4 var(--f-body); letter-spacing: .18em; text-transform: uppercase; }
.psr-signature { display: grid; justify-items: end; gap: .45rem; }
.psr-hashtag { font: 400 .85rem/1.3 var(--f-display); letter-spacing: .02em; }

/* ---- The couple: label, the nickname large in August, the full name in Playfair, the parents beneath ---- */
.psr .cine-person .cine-kicker { margin-bottom: .35rem !important; font-size: .85rem; letter-spacing: .08em; }
.psr-person-name { margin: 0; font: 400 clamp(3.2rem, 15.5vw, 3.75rem)/1 var(--f-names); text-transform: uppercase; letter-spacing: .01em; }
.psr-person-full { margin-top: .35rem !important; font: 400 1.15rem/1.35 var(--f-display); }
.psr-person-parent { margin-top: .55rem !important; color: var(--c-muted); font: 300 .9rem/1.55 var(--f-body); white-space: pre-line; }
.psr .cine-person.has-photo::before { background: linear-gradient(180deg, transparent 38%, rgba(10, 10, 10, .45) 62%, rgba(10, 10, 10, .82) 92%); }

/* ---- Story (when the couple wrote one): chapters down the page, left and right in turn ------------- */
.psr-chapters { display: grid; gap: 1.75rem; margin: 0; padding: 0; list-style: none; }
.psr-chapter { max-width: 19rem; }
.psr-chapter-date { font: 300 .78rem/1.4 var(--f-body); letter-spacing: .16em; text-transform: uppercase; }
.psr-chapter h3 { margin: .25rem 0 .5rem; font: 400 1.5rem/1.1 var(--f-names); text-transform: uppercase; }
.psr-chapter img { width: 100%; height: 9rem; margin-bottom: .6rem; object-fit: cover; }
.psr-chapter p:not(.psr-chapter-date) { color: var(--c-muted); font: 300 .88rem/1.7 var(--f-body); }

/* ---- Events: the title large at the top left, the events right and left in turn ------------------------ */
.psr-events { gap: 2.25rem; }
.psr-events-title { max-width: 11.5rem; margin: 0; font-size: clamp(2.2rem, 9.8vw, 2.4rem); line-height: 1.12; }
.psr-event { max-width: 17rem; }
.psr-event-date { font: 400 1.2rem/1.3 var(--f-display); }
.psr-event-name { margin: .7rem 0 .55rem; font: 400 clamp(1.5rem, 6.8vw, 1.65rem)/1.1 var(--f-names); letter-spacing: .02em; text-transform: uppercase; }
.psr-event-time { font: 300 .82rem/1.5 var(--f-body); letter-spacing: .06em; }
.psr-event address { margin-top: .55rem; color: var(--c-muted); font: 400 .8rem/1.6 var(--f-body); font-style: normal; text-wrap: pretty; }
.psr-event address strong { display: block; font-weight: 400; }
.psr-event .cine-event-links { margin-top: .8rem !important; }
.psr-event.cine-right .cine-event-links { justify-content: flex-end; }

/* ---- Countdown: open numbers, no rules ------------------------------------------------------------------ */
.psr .cine-clock-cells { gap: .25rem; max-width: 17rem; margin: 0 auto; }
.psr .cine-clock-cells div { gap: .25rem; padding: .4rem 0; border: 0; }
.psr .cine-clock-cells span { font: 300 2rem/1 var(--f-display); }
.psr .cine-clock-cells small { color: var(--c-muted); font: 300 .75rem/1 var(--f-body); letter-spacing: .02em; text-transform: none; }

/* ---- Dress code: a framed photo with the colours on it --------------------------------------------------- */
.psr-dress { padding-inline: clamp(1rem, 4.5vw, 1.4rem); }
.psr-dress-card { position: relative; display: grid; place-items: center; width: 100%; min-height: min(70svh, 34rem); overflow: hidden; border-radius: .2rem; }
.psr-dress-card.has-photo { background: #1a1a1a; }
.psr-dress-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.psr-dress-card.has-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(10, 10, 10, .42); }
.psr-dress-words { position: relative; z-index: 2; max-width: 20rem; padding: 2rem 1.25rem; }
.psr .cine-swatches { gap: .7rem; margin: .4rem 0 1rem; }
.psr .cine-swatch { width: 2.6rem; height: 2.6rem; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }

/* ---- RSVP: on the photo, square fields, a white pill to send ------------------------------------------------ */
.psr-rsvp .cine-block { width: 100%; }
.psr .cine-rsvp-form { margin-top: 1.6rem; }
.psr .cine-field, .psr .cine-attendance legend { color: var(--c-ink); font: 300 .75rem/1.4 var(--f-body); letter-spacing: .08em; }
.psr .cine-field :is(input, select, textarea) { min-height: 42px; padding: .55rem .75rem; border-color: var(--c-line); border-radius: 0; background: rgba(0, 0, 0, .12); font: 300 .88rem/1.5 var(--f-body); }
.psr .cine-attendance-options label { min-height: 42px; border-color: var(--c-line); border-radius: 0; background: transparent; font: 300 .75rem/1 var(--f-body); letter-spacing: .08em; }
.psr .cine-attendance-options input:checked + label { border-color: var(--c-ink); background: var(--c-ink); color: var(--c-accent-ink); }
.psr .cine-submit { min-height: 44px; background: #f4f4f4; color: #141414; font: 500 .75rem/1 var(--f-body); letter-spacing: .16em; }
[data-scheme="light"] .psr .cine-submit { background: #1c1c1c; color: #ffffff; }

/* ---- Wishes: a plain list with pages; no likes in this theme ------------------------------------------------ */
.psr-wishes-title { margin: 0; font: 400 .85rem/1.4 var(--f-body); letter-spacing: .16em; text-transform: uppercase; }
.psr .cine-wish { padding: .95rem 0; }
.psr .cine-wish strong { font: 600 .9rem/1.3 var(--f-body); }
.psr .cine-wish p { font: 300 .85rem/1.65 var(--f-body); }
.psr .cine-like { display: none; }
.psr .cine-pager { font: 300 .78rem/1 var(--f-body); letter-spacing: .06em; }

/* ---- Closing: the thanks centred, the couple's names small in August ----------------------------------------- */
.psr-closing { justify-content: space-between; padding-top: clamp(3.5rem, 9svh, 5rem); }
.psr-closing-title { font-size: clamp(1.75rem, 7.6vw, 2rem); }
.psr-closing-names { justify-items: center; margin-top: 1.2rem !important; font-size: 1.35rem; }
.psr-closing-names .psr-name { display: inline; }
.psr-closing-names.psr-names { display: flex; justify-content: center; align-items: baseline; gap: .35em; }
.psr-closing-names .psr-amp { position: static; translate: none; color: var(--c-ink); font-size: 1.35em; }

/* ---- Cover: no black intro; a lighter shade, the guest at the foot, a translucent button ----------------------- */
.psr-opening { --intro: 0s; }
/* Tema Fase 1: a deeper foot so the guest's name reads on any photo (AA on white). */
.psr-opening .cine-opening-shade { background: linear-gradient(180deg, rgba(10, 10, 10, .58), rgba(10, 10, 10, .08) 36%, rgba(10, 10, 10, .2) 56%, rgba(10, 10, 10, .78) 76%, rgba(10, 10, 10, .88)); }
.psr-opening .psr-names { margin-top: .8rem; }
.psr-opening .cine-opening-date { margin-top: .9rem; }
.psr-opening .cine-guest-label { color: #ffffff; font: 400 .82rem/1.4 var(--f-body); }
.psr-opening .cine-guest-name { margin-top: .2rem; padding-bottom: .55rem; border-bottom: 1px solid rgba(255, 255, 255, .55); font: 600 1.4rem/1.3 var(--f-body); text-shadow: var(--c-text-shadow); }
.psr-opening .cine-guest-name { display: inline-block; min-width: min(15rem, 70vw); }
.psr-opening .cine-guest-note { margin: .55rem auto 1rem; color: rgba(255, 255, 255, .88); font: italic 300 .75rem/1.5 var(--f-body); }
.psr-opening .cine-opening-cta { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: 0 1.5rem; border-radius: .3rem;
    background: rgba(255, 255, 255, .78); color: #141414; font: 500 .78rem/1 var(--f-body); letter-spacing: .1em; backdrop-filter: blur(4px); }
.psr-opening .cine-opening-cta svg { width: 1.05rem; height: 1.05rem; }
.psr-opening .cine-opening-cta:hover, .psr-opening .cine-opening-cta:focus-visible { background: #ffffff; }

/* ---- Wide screens: the names on the left in August, as on the cover ------------------------------------------- */
@media (min-width: 900px) {
    .psr-aside-names { justify-items: start; margin-top: 1rem !important; font-size: clamp(3.5rem, 6vw, 5.5rem); }
    .psr-aside-names .psr-amp { left: 30%; }
}
[data-theme="pesisir"] .music-toggle { border-color: rgba(255, 255, 255, .5); }
[data-theme="pesisir"] .music-toggle[aria-pressed="true"] { color: #ffffff; }

/* The menu: two plain lines, no ring, as in the reference. */
[data-theme="pesisir"] .cine-menu-trigger { border: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .5)); }
[data-theme="pesisir"] .cine-menu-trigger svg { width: 1.6rem; height: 1.6rem; stroke-width: 1.4; }

/* ---- 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): "Film perak" --------------------------------------------------------------------
   Every photo behind the words is a soft, slightly faded black and white (colour photos too; the files are
   untouched), with film grain. */
.cine-backdrop, .cine-opening-photo, .cine-section-photo img { filter: grayscale(1) contrast(.92) brightness(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.2; mix-blend-mode: overlay; }
@media (prefers-reduced-motion: no-preference) {
    :is(.cine-backdrop, .cine-opening-photo)::after { animation: psr-grain 1s steps(1) infinite; }
}
@keyframes psr-grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }
