/* Teduh (27 Nov 2026): calm and cool, after the owner's reference. Built on Sinematik: the same backdrop (their MP4,
 * or their photos taking turns), snapping one-screen pages, viewer, gift panel, menu and RSVP (cine.js). The first
 * part is Sinematik's stylesheet in slate and steel blue; the Teduh layout follows ("Teduh" at the end). Type, OFL and
 * self-hosted: Cormorant Garamond for display (upright and italic), Jost for reading. Dark is native; the menu offers light. */
@font-face { font-family: "Cormorant Garamond"; src: url("/frontend/assets/fonts/cormorant-garamond-latin.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/frontend/assets/fonts/cormorant-garamond-italic-latin.woff2") format("woff2"); font-weight: 300 700; font-style: italic; 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="teduh"] {
    color-scheme: dark;
    --c-night: #161c20; --c-ink: #eef2f4; --c-muted: rgba(238, 242, 244, .82); --c-accent: #b1c4cd; --c-accent-ink: #142027;
    --c-line: rgba(177, 196, 205, .42); --c-glass: rgba(18, 24, 28, .6); --c-field: rgba(255, 255, 255, .06);
    --c-veil: rgba(16, 22, 26, .58); --c-shade-top: rgba(16, 22, 26, .78); --c-shade-foot: rgba(16, 22, 26, .9); --c-photo-foot: rgba(16, 22, 26, .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: "Cormorant Garamond", Georgia, serif; --f-script: "Cormorant Garamond", Georgia, serif; --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="teduh"][data-scheme="light"] {
    color-scheme: light;
    --c-night: #eef2f4; --c-ink: #1b2429; --c-muted: #3e4c54; --c-accent: #3d5b69; /* 6.4:1 on the pale veil */ --c-accent-ink: #f4f7f8;
    --c-line: rgba(61, 91, 105, .38); --c-glass: rgba(240, 244, 246, .84); --c-field: rgba(255, 255, 255, .7);
    --c-text-shadow: 0 0 12px rgba(240, 244, 246, .9);
    --c-veil: rgba(238, 242, 244, .76); --c-shade-top: rgba(238, 242, 244, .9); --c-shade-foot: rgba(238, 242, 244, .94); --c-photo-foot: rgba(238, 242, 244, .95);
}

[data-theme="teduh"] 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="teduh"] :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="teduh"]:has(body.is-locked), [data-theme="teduh"] body.is-locked { overflow: hidden; overscroll-behavior: none; }
[data-theme="teduh"] 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="teduh"] { scroll-snap-type: y mandatory; }
.cine-page { scroll-snap-align: start; scroll-snap-stop: always; }
[data-theme="teduh"]: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%, #2c3940, #161c20 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); }
/* (Sinematik base) a hand-written capital; Teduh does not use it. */
.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(16, 22, 26, .2) 30%, rgba(16, 22, 26, .62) 60%, var(--c-photo-foot) 84%); }
[data-scheme="light"] .cine-person.has-photo::before { background: linear-gradient(180deg, transparent 42%, rgba(238, 242, 244, .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(16, 22, 26, .15), rgba(16, 22, 26, .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(10, 14, 16, .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: #142027; }
.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: #161c20; color: #eef2f4; 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: #12181b; color: #eef2f4;
    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%, #2c3940, #161c20 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(16, 22, 26, .78), rgba(16, 22, 26, .15) 34%, rgba(16, 22, 26, .2) 52%, rgba(16, 22, 26, .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: #b1c4cd; 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: #b1c4cd; font-size: .8em; line-height: .8; text-transform: none; }
.cine-opening-date { margin: 1rem 0 0; color: #b1c4cd; font: 500 .85rem/1.4 var(--f-body); letter-spacing: .3em; }
.cine-guest-label { margin: 0; color: rgba(238, 242, 244, .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(238, 242, 244, .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: #b1c4cd; color: #142027;
    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: #cfdde3; }
.cine-opening-cta:focus-visible { outline: 2px solid #eef2f4; 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(18, 24, 28, .35); color: #eef2f4; 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: #eef2f4;
    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(177, 196, 205, .2); background: rgba(18, 24, 28, .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: #eef2f4; 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: #eef2f4; 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: #b1c4cd; }
.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(238, 242, 244, .3);
    border-radius: 999px; background: transparent; color: #eef2f4; 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(238, 242, 244, .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="teduh"] .scheme-toggle { display: none !important; }
[data-theme="teduh"] .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(177, 196, 205, .6); background: rgba(18, 24, 28, .55); color: #eef2f4; font-size: 0;
    box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
[data-theme="teduh"] .music-toggle[hidden] { display: none; }
[data-theme="teduh"] .music-toggle[aria-pressed="true"] { background: rgba(18, 24, 28, .55); color: #b1c4cd; }

/* ---- 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(16, 22, 26, .42) 3rem, rgba(16, 22, 26, .42) calc(100% - 3rem), transparent); }
    [data-theme="teduh"][data-scheme="light"] .cine-main { background: linear-gradient(90deg, transparent, rgba(238, 242, 244, .5) 3rem, rgba(238, 242, 244, .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; }
}

/* ==== Teduh ====================================================================================================
   The quiet layer over the Sinematik base: names in a staircase, rules beside the kicker and the date, rounded photo
   cards cut by the screen's edge, polaroids for Our Story, events titled along a long rule, DRESSCODE upright down the
   edge, a gift between two vertical rules, and the backdrop a little cooler and quieter than the photos themselves. */
.teduh .cine-slide, .teduh .cine-backdrop-video, .td-opening-photo { filter: saturate(.7) brightness(.96); }
.td-title { margin: 0 0 1rem; font: 500 clamp(2.3rem, 10vw, 2.9rem)/1.06 var(--f-display); letter-spacing: .005em; text-wrap: balance; }
.teduh .cine-kicker { letter-spacing: .3em; }
.teduh .cine-lead { font-size: .98rem; }

/* "The Wedding of ——" and "—— Sunday, 20 June 2026": a rule beside the words. */
.td-kicker-line, .td-date-line { display: flex; align-items: center; gap: .8rem; margin: 0; font: 500 .76rem/1.4 var(--f-body); letter-spacing: .26em; text-transform: uppercase; white-space: nowrap; }
.td-kicker-line::after, .td-date-line::before { content: ""; flex: 1; height: 1px; background: var(--c-line); }
.td-date-line { margin-top: 1.3rem !important; color: var(--c-ink); }

/* ---- Names in a staircase: the groom left, a faint italic ampersand, the bride stepped to the right ---------------- */
.td-names { margin: .9rem 0 0; font: 500 clamp(3.3rem, 16vw, 4.4rem)/.92 var(--f-display); letter-spacing: .005em; }
.td-names-art, .td-names-aside { display: grid; }
.td-name-a { justify-self: start; }
.td-amp { justify-self: start; margin: -.05em 0 -.2em 1.9em; font: italic 300 .62em/1 var(--f-display); opacity: .45; }
.td-name-b { justify-self: end; }

/* ---- Hero ---------------------------------------------------------------------------------------------------- */
.td-hero { justify-content: flex-start; padding-top: clamp(4.5rem, 10svh, 6rem); }
.td-hero-block { width: 100%; max-width: 22rem; margin-inline: auto; }
.td-cue { margin-top: auto; }

/* ---- Verse: the source as the title, the words, a rounded photo card cut by the foot of the screen --------------- */
.td-verse { justify-content: flex-start; align-items: center; overflow: hidden; text-align: center; }
.td-verse-words { max-width: 24rem; }
.td-verse-card { margin: 0 0 1rem; }
.td-verse-card blockquote { margin: 0; font: italic 400 clamp(1.15rem, 4.8vw, 1.3rem)/1.6 var(--f-display); text-wrap: pretty; }
.td-verse-card figcaption { margin-top: .5rem; color: var(--c-accent); font: 500 .75rem/1.4 var(--f-body); letter-spacing: .22em; text-transform: uppercase; }
.td-card { display: block; object-fit: cover; box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, .35); }
.td-card-foot { position: absolute; bottom: 0; left: 7%; width: 72%; height: min(34lvh, 20rem); border-radius: 1.25rem 1.25rem 0 0; }

/* ---- The partners: a rounded card at the top for the groom, at the foot for the bride, words on the other side ---- */
.td-person { overflow: hidden; gap: 1.5rem; }
.td-person-start { justify-content: flex-start; padding-top: 0; }
.td-person-end { justify-content: flex-end; padding-bottom: 0; text-align: right; }
.td-person-end .td-person-words { margin-left: auto; margin-top: auto; }
.td-card-person { width: 78%; height: min(36lvh, 22rem); }
.td-person-start .td-card-person { border-radius: 0 0 1.25rem 1.25rem; }
.td-person-end .td-card-person { align-self: center; border-radius: 1.25rem 1.25rem 0 0; }
.td-person-name { margin: 0; font: 500 clamp(3rem, 14vw, 3.9rem)/1 var(--f-display); }
.td-person-full { margin-top: .3rem !important; font: 500 1.35rem/1.3 var(--f-display); }
.td-person-parent { display: grid; gap: .1rem; margin-top: .6rem !important; color: var(--c-muted); font-size: .95rem; line-height: 1.55; white-space: pre-line; }
.td-of { font-style: italic; }
.td-person-end .cine-socials { justify-content: flex-end; }
.td-socials a { border: 0; background: rgba(177, 196, 205, .22); }

/* ---- Our Story: polaroids, tilted, alternating sides ------------------------------------------------------------- */
.td-story { gap: 2rem; }
.td-chapters { display: grid; gap: 2.5rem; margin: 0; padding: 0; list-style: none; }
.td-chapter { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: center; }
.td-chapter.has-photo { grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); }
.td-chapter:nth-child(even).has-photo { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); }
.td-chapter:nth-child(even) .td-polaroid { order: 2; transform: rotate(5deg); }
.td-chapter:nth-child(even) .td-chapter-words { text-align: right; }
.td-polaroid { margin: 0; padding: .5rem .5rem 1.7rem; background: #f1ecec; box-shadow: 0 .9rem 2rem rgba(0, 0, 0, .35); transform: rotate(-4deg); }
.td-polaroid img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.td-chapter-date { color: var(--c-accent); font: 500 .75rem/1.4 var(--f-body); letter-spacing: .22em; text-transform: uppercase; }
.td-chapter h3 { margin: .25rem 0 .45rem; font: 500 1.5rem/1.15 var(--f-display); }
.td-chapter-words p:not(.td-chapter-date) { color: var(--c-muted); font-size: .92rem; line-height: 1.7; text-wrap: pretty; }

/* ---- Countdown ---------------------------------------------------------------------------------------------------- */
.td-countdown { justify-content: center; text-align: center; }
.td-countdown .cine-block { margin-inline: auto; }
.td-clock .cine-clock-cells div { padding: 0; border: 0; }
.td-clock .cine-clock-cells span { font: 500 clamp(2.2rem, 10vw, 2.7rem)/1 var(--f-display); }
.td-clock .cine-clock-cells small { letter-spacing: .1em; text-transform: none; font-size: .78rem; }

/* ---- Events: each titled along a long rule, the date stacked, alternate sides --------------------------------------- */
.td-events { justify-content: center; gap: clamp(2.5rem, 8svh, 3.75rem); }
.td-event { width: 100%; }
.td-event-title { display: flex; align-items: center; gap: .9rem; margin: 0 0 .6rem; font: 500 clamp(2rem, 9vw, 2.5rem)/1.1 var(--f-display); }
.td-event-title::after { content: ""; flex: 1; min-width: 2rem; height: 1px; background: var(--c-line); }
.td-event-end { text-align: right; }
.td-event-end .td-event-title { flex-direction: row-reverse; }
.td-event-date { font: 500 1.45rem/1.15 var(--f-display); color: var(--c-ink); }
.td-event-time { margin-top: .45rem !important; color: var(--c-muted); font: 500 .9rem/1.5 var(--f-body); letter-spacing: .08em; }
.td-event address { margin-top: .6rem; color: var(--c-muted); font-style: normal; font-size: .9rem; line-height: 1.6; text-wrap: pretty; }
.td-event address strong { display: block; color: var(--c-ink); font-weight: 600; }
.td-event-end .cine-event-links { justify-content: flex-end; }

/* ---- Dress code: the word upright down the right edge, circles overlapping ------------------------------------------- */
.td-dress { justify-content: center; align-items: center; overflow: hidden; text-align: center; }
.td-dress-word { position: absolute; top: 50%; right: clamp(.2rem, 2vw, 1rem); margin: 0; translate: 0 -50%; writing-mode: vertical-rl; color: var(--c-accent);
    font: 500 clamp(4rem, 21vw, 5.6rem)/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; opacity: .85; white-space: nowrap; } /* Tema Fase 1: was .55, under 3:1 on the photo */
.td-dress-words { position: relative; display: grid; justify-items: center; gap: 1.4rem; max-width: 17rem; margin-right: 3rem; }
.td-circles { display: flex; padding-left: 1rem; }
.td-circle { width: 4.1rem; height: 4.1rem; margin-left: -1rem; border-radius: 50%; background: var(--swatch); box-shadow: 0 .4rem 1rem rgba(0, 0, 0, .25); }

/* ---- Our Moments --------------------------------------------------------------------------------------------------- */
.td-moments { justify-content: center; gap: 1.25rem; }
.td-moments-title { margin: 0; color: var(--c-accent); }
.td-strips { display: grid; gap: .4rem; margin-inline: calc(clamp(1.5rem, 6vw, 2.25rem) * -1); }
.td-strip { gap: .4rem; }
.td-strip .cine-tile { height: 10rem; }
.td-quote { color: var(--c-muted); font: italic 400 clamp(1.25rem, 5.4vw, 1.45rem)/1.4 var(--f-display); text-align: center; text-wrap: balance; }

/* ---- RSVP and wishes ------------------------------------------------------------------------------------------------ */
.td-rsvp { justify-content: flex-start; text-align: center; padding-top: clamp(4rem, 9svh, 5rem); }
.td-wishes { justify-content: flex-start; gap: 1rem; padding-top: clamp(3.75rem, 8svh, 4.5rem); padding-bottom: clamp(3.5rem, 8svh, 4.5rem); }
.td-wishes .td-title { margin-bottom: .25rem; }
.td-form-block { width: 100%; max-width: 27rem; margin-inline: auto; text-align: center; }
.td-rsvp .cine-lead { font-size: .94rem; line-height: 1.6; }
.teduh .cine-field :is(input, select, textarea), .teduh .cine-attendance-options label { border-radius: .3rem; background: transparent; }
.teduh .cine-field :is(input, select, textarea) { min-height: 44px; padding: .6rem .8rem; }
.teduh .cine-rsvp-form > fieldset { gap: .85rem; }
.teduh .cine-wish strong { font: 600 1rem/1.3 var(--f-body); }
.teduh .cine-wish p { font-size: .9rem; }
.teduh .cine-wish { padding: .8rem 0; }

/* ---- Wedding gift: between two vertical rules ------------------------------------------------------------------------ */
.td-gift { justify-content: flex-start; padding-top: clamp(4rem, 9svh, 5.5rem); text-align: center; }
.td-gift-block { margin-inline: auto; }
.td-gift-block::before, .td-gift-block::after { content: ""; display: block; width: 1px; height: clamp(3rem, 10svh, 5rem); margin: 0 auto 1.6rem; background: var(--c-line); }
.td-gift-block::after { margin: 1.6rem auto 0; }
.teduh .cine-gift-box { min-height: 46px; border-color: var(--c-line); }
.teduh .cine-gift-row { text-align: left; }

/* ---- Closing: the words, then a quiet black-and-white photo above the credit ------------------------------------------- */
.td-closing { justify-content: flex-start; text-align: center; padding-top: clamp(4.5rem, 11svh, 6rem); padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); }
.td-closing .cine-block { margin-inline: auto; }
.td-signature { margin-top: 1.3rem !important; font: 500 1.55rem/1.3 var(--f-display); }
.td-closing-photo { width: calc(100% + 2 * clamp(1.5rem, 6vw, 2.25rem)); max-width: none; height: min(30lvh, 18rem); margin: auto calc(clamp(1.5rem, 6vw, 2.25rem) * -1) 0; object-fit: cover;
    filter: grayscale(1) brightness(.9); -webkit-mask-image: linear-gradient(transparent, #000 35%); mask-image: linear-gradient(transparent, #000 35%); }
.td-closing .cine-credit { margin-top: 1rem; }

/* ---- Cover --------------------------------------------------------------------------------------------------------- */
.td-opening-top { width: 100%; max-width: 22rem; margin-inline: auto; text-align: left; }
.td-opening .td-kicker-line, .td-opening .td-date-line { color: #eef2f4; }
.td-opening .td-kicker-line::after, .td-opening .td-date-line::before { background: rgba(238, 242, 244, .5); }
.td-opening-names { color: #eef2f4; }
.td-opening .cine-guest-name { font: 600 1.25rem/1.3 var(--f-body); }
.td-opening .cine-guest-name::after { content: ""; display: block; width: min(16rem, 70%); height: 1px; margin: .6rem auto 0; background: rgba(238, 242, 244, .5); }
.td-opening .cine-guest-note { font-style: italic; }
@media (max-height: 44rem) { .td-opening-names { font-size: clamp(2.4rem, 9svh, 3.4rem); } }
@media (max-height: 34rem) { .td-opening-names { font-size: 2rem; } .td-opening-names .td-names-art { display: block; } .td-opening-names .td-amp { margin: 0 .3em; } .td-opening .cine-guest-note { display: none; } }

/* Intro on slate: a rule draws across, the groom's name settles above it, the bride's below, then the slate lifts while
   the cover's words already rise. On open, the cover's own background drops at once and photo and shade fade together
   into the same cool backdrop (no dark dip, no zoom). */
.td-opening { --intro: 3.6s; }
.td-opening.intro-done { --intro: 0s; }
.td-intro { gap: 1rem; animation: td-intro-out 1.3s cubic-bezier(.4, 0, .2, 1) 3.2s forwards; }
@keyframes td-intro-out { to { opacity: 0; visibility: hidden; } }
.td-intro p { margin: 0; font: 500 clamp(2.4rem, 12vw, 3.2rem)/1 var(--f-display); }
.td-intro-a { justify-self: start; animation: td-down 1.4s cubic-bezier(.22, .8, .24, 1) .9s both; }
.td-intro-b { justify-self: end; animation: td-up 1.4s cubic-bezier(.22, .8, .24, 1) 1.3s both; }
.td-intro-rule { display: block; width: min(16rem, 64vw); height: 1px; background: #b1c4cd; transform-origin: left; animation: td-draw 1.2s cubic-bezier(.65, 0, .35, 1) .2s both; }
@keyframes td-draw { from { transform: scaleX(0); } }
@keyframes td-down { from { opacity: 0; transform: translate3d(0, -.8rem, 0); } }
@keyframes td-up { from { opacity: 0; transform: translate3d(0, .8rem, 0); } }
.td-opening .cine-opening-top > *, .td-opening .cine-opening-foot > * { animation-name: td-in; animation-duration: 1.4s; animation-timing-function: cubic-bezier(.22, .8, .24, 1); }
@keyframes td-in { from { opacity: 0; transform: translate3d(0, .9rem, 0); } }
.teduh .cine-slide:first-child { object-position: center 30%; }
.td-opening.is-closing { background-color: transparent; transition: none; }
.td-opening.is-closing .cine-opening-photo { opacity: 0; animation-play-state: paused; transition: opacity 1.2s cubic-bezier(.4, 0, .2, 1) .2s; }
.td-opening.is-closing .cine-opening-shade { opacity: 0; transition: opacity 1.2s cubic-bezier(.4, 0, .2, 1) .2s; }
.td-opening.is-closing .cine-opening-top > *, .td-opening.is-closing .cine-opening-foot > * { animation: td-out .8s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes td-out { to { opacity: 0; transform: translate3d(0, -1rem, 0); } }

/* ---- Menu: two plain lines --------------------------------------------------------------------------------------------- */
.td-menu-trigger { border: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .5)); }
.td-menu-trigger svg { width: 1.6rem; height: 1.6rem; stroke-width: 1.4; }

/* ---- Wide screens: the aside carries the staircase -------------------------------------------------------------------- */
.td-names-aside { width: min(26rem, 36vw); margin-top: 1rem !important; font: 500 clamp(3.5rem, 6.5vw, 6rem)/.92 var(--f-display); }
.teduh .cine-aside .td-kicker-line, .teduh .cine-aside .td-date-line { max-width: 30rem; }

/* ---- 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): "Biru senja" --------------------------------------------------------------------
   The photos behind the words cool towards the theme's slate blue (CSS only; the files are untouched). */
.cine-backdrop, .cine-opening-photo, .cine-section-photo img { filter: saturate(.65) sepia(.28) hue-rotate(168deg) brightness(.96); }
