/*
 * Sinema Sepia (Pernikahan), "Sinema" series — every section one full photo scene in one mood: black and white plus the variant's tint
 * (--inv-tint, blended as colour), darkened where the text sits. Small type straight on the photo: a light serif
 * (--inv-font-heading) for names and titles, a script (--inv-font-display) for accents, Jost for text and labels.
 * Phones: one column. ≥ 960px: split screen, a large photo on the left (.sn-aside), the column on the right.
 */

:root {
    --inv-primary: #f1ede6;
    --inv-accent: #d9d2c3;
    --inv-background: #0b0b0c;
    --inv-text: #f1ede6;
    --inv-tint: #808080;
    --inv-deep: #050506;
    --inv-radius: 14px;
    --sn-serif: var(--inv-font-heading, 'Cormorant Garamond'), Georgia, serif;
    --sn-script: var(--inv-font-display, 'Great Vibes'), cursive;
    --sn-sans: 'Jost', system-ui, sans-serif;
    --sn-soft: color-mix(in srgb, var(--inv-text) 78%, transparent);
    --sn-faint: color-mix(in srgb, var(--inv-text) 20%, transparent);
    --sn-glass: color-mix(in srgb, #fff 7%, transparent);
    --sn-col: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.sn-body {
    margin: 0; min-height: 100vh;
    background: var(--inv-background); color: var(--inv-text);
    font: 300 1rem/1.7 var(--sn-sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
p, h1, h2, h3, blockquote { margin: 0; }

.sn-preview {
    position: fixed; z-index: 60; top: 0; left: 0; right: 0; padding: .35rem 1rem; text-align: center;
    background: rgb(0 0 0 / .7); color: #fff; font-size: .72rem; letter-spacing: .04em;
}

/* ---------- type ---------- */
.sn-label { font: 400 .66rem/1.5 var(--sn-sans); letter-spacing: .34em; text-transform: uppercase; color: var(--inv-accent); }
.sn-script { font: 400 2rem/1.15 var(--sn-script); color: var(--inv-accent); }
.sn-title { font: 300 clamp(2.1rem, 9vw, 2.5rem)/1.1 var(--sn-serif); letter-spacing: .01em; }
.sn-text { font-size: .92rem; line-height: 1.8; color: var(--sn-soft); }
.sn-names { font: 300 clamp(2.5rem, 11vw, 3.3rem)/1.06 var(--sn-serif); letter-spacing: .01em; }
.sn-amp { font-family: var(--sn-script); font-size: .78em; color: var(--inv-accent); padding: 0 .08em; }
.sn-rule { display: block; width: 3rem; height: 1px; margin: .7rem auto; background: color-mix(in srgb, var(--inv-accent) 60%, transparent); }
.sn-dateline { display: flex; align-items: center; justify-content: center; gap: .8rem; font: 400 .7rem/1.5 var(--sn-sans); letter-spacing: .28em; text-transform: uppercase; color: var(--sn-soft); }
.sn-dateline::before, .sn-dateline::after { content: ''; width: 1.6rem; height: 1px; background: color-mix(in srgb, var(--inv-accent) 55%, transparent); }
.sn-arabic { font: 400 1.6rem/1.9 'Amiri', serif; color: var(--inv-accent); }

/* the initials in a thin circle, a slanted hairline between them */
.sn-mono {
    display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
    width: 3.6rem; height: 3.6rem; margin: 0 auto; border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--inv-accent) 70%, transparent);
    font: 300 1rem/1 var(--sn-serif); letter-spacing: .04em;
}
.sn-mono i { width: 1px; height: 1.1rem; background: var(--inv-accent); transform: rotate(18deg); opacity: .8; }

/* thin outlined buttons and pills, frosted a little so they read on any photo */
.sn-button, .sn-body .inv-button {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .8rem 1.6rem; border: 0; border-radius: 999px; cursor: pointer;
    background: color-mix(in srgb, #fff 6%, transparent); color: var(--inv-text);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-text) 55%, transparent);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    font: 400 .7rem/1.2 var(--sn-sans); letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
    transition: background-color .25s ease, box-shadow .25s ease;
}
.sn-button:hover, .sn-body .inv-button:hover { background: color-mix(in srgb, #fff 16%, transparent); box-shadow: inset 0 0 0 1px var(--inv-text); }
.sn-pill {
    display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .85rem; border-radius: 999px;
    color: var(--inv-text); text-decoration: none; font-size: .78rem; letter-spacing: .04em;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-text) 40%, transparent);
}
.sn-icon { color: var(--inv-accent); }

/* ---------- the photo of a scene: black and white + the variant's tint, darkened where the text sits ---------- */
.sn-photo { position: absolute; inset: 0; z-index: 0; overflow: hidden; isolation: isolate; background: radial-gradient(80% 50% at 50% 30%, color-mix(in srgb, var(--inv-tint) 28%, var(--inv-background)), var(--inv-background) 75%); }
.sn-photo__img {
    position: absolute; inset: -40px 0; --inv-parallax: 34px;
    background: var(--sn-photo, none) center 30% / cover no-repeat;
    filter: grayscale(1) contrast(1.08) brightness(.86);
}
/* the tint: a colour layer over the grey photo (a neutral grey keeps it pure black and white) */
.sn-photo::before { content: ''; position: absolute; inset: 0; z-index: 1; background: var(--inv-tint); mix-blend-mode: color; opacity: .62; }
.sn-photo::after {
    content: ''; position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--inv-background) 55%, transparent) 0%,
        transparent 20%,
        transparent 42%,
        color-mix(in srgb, var(--inv-background) 70%, transparent) 64%,
        var(--inv-background) 100%);
}
.sn-photo--full::after {
    background:
        radial-gradient(90% 60% at 50% 50%, color-mix(in srgb, var(--inv-background) 35%, transparent), color-mix(in srgb, var(--inv-background) 72%, transparent)),
        linear-gradient(180deg, var(--inv-background) 0%, transparent 16%, transparent 84%, var(--inv-background) 100%);
}
/* a photo scene follows the previous one without a seam: both ends meet in the background colour */
html.inv-anim .sn-photo[data-reveal] { opacity: 1; transform: none; }

/* ---------- scenes ---------- */
.sn-scene {
    position: relative; isolation: isolate;
    display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 100vh; min-height: 100svh;
    /* the foot clears the bottom menu and the floating buttons */
    padding: 6rem 1.6rem calc(8.5rem + env(safe-area-inset-bottom));
    text-align: center;
}
.sn-scene--center { justify-content: center; }
.sn-scene--short { min-height: 72vh; min-height: 72svh; }
.sn-scene__body { position: relative; z-index: 3; width: 100%; max-width: 26rem; margin: 0 auto; display: grid; justify-items: center; gap: .5rem; }

.sn-opening__greeting { font: 300 1.5rem/1.35 var(--sn-serif); font-style: italic; }
.sn-quote { margin-top: .2rem; }
.sn-quote p { font: 300 italic 1.12rem/1.65 var(--sn-serif); color: var(--inv-text); }
.sn-quote cite { display: block; margin-top: .8rem; font: 400 .64rem/1.5 var(--sn-sans); letter-spacing: .3em; text-transform: uppercase; font-style: normal; color: var(--inv-accent); }

/* couple: the groom's text keeps left, the bride's right */
.sn-person .sn-scene__body { max-width: 30rem; }
.sn-person--groom .sn-scene__body { justify-items: start; text-align: left; }
.sn-person--bride .sn-scene__body { justify-items: end; text-align: right; }
.sn-person__role { font-size: 1.7rem; }
.sn-person__name { font: 300 clamp(2rem, 9vw, 2.5rem)/1.12 var(--sn-serif); }
.sn-person__parents { margin-top: .3rem; }
.sn-couple__amp {
    position: relative; z-index: 4; height: 0; text-align: center;
    font: 400 3.6rem/0 var(--sn-script); color: var(--inv-accent);
}

/* countdown */
.sn-countdown__date { font: 300 clamp(2.3rem, 11.5vw, 3.4rem)/1.05 var(--sn-serif); letter-spacing: .04em; white-space: nowrap; }
.sn-body .inv-countdown { margin-top: 1.4rem; gap: .5rem; }
.sn-body .inv-countdown__item {
    min-width: 0; flex: 1; max-width: 4.8rem; padding: .8rem .2rem .7rem; border-radius: 4px;
    background: color-mix(in srgb, #fff 5%, transparent); box-shadow: inset 0 0 0 1px var(--sn-faint);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.sn-body .inv-countdown__value { font: 300 1.9rem/1.1 var(--sn-serif); }
.sn-body .inv-countdown__label { margin-top: .2rem; font: 400 .56rem/1.3 var(--sn-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--sn-soft); }
.sn-body .inv-countdown__actions { margin-top: 1.4rem; display: grid; gap: .6rem; justify-items: center; }

/* events */
.sn-event__name { font: 300 clamp(2.3rem, 10vw, 2.8rem)/1.1 var(--sn-serif); }
.sn-event__date { color: var(--inv-text); }
.sn-event__venue { font: 400 1.15rem/1.4 var(--sn-serif); letter-spacing: .03em; }
.sn-event__address { font-size: .86rem; }
.sn-event__dress { font-style: italic; }
.sn-event .inv-button { margin-top: .6rem; }
.sn-body .inv-maps__frame { width: 100%; height: 12rem; border: 0; border-radius: 12px; filter: grayscale(1) invert(.88) contrast(.9); opacity: .9; }

/* love story */
.sn-story__title { font-size: 2.4rem; margin-bottom: .4rem; }
.sn-moment__title { font: 300 clamp(1.9rem, 8vw, 2.3rem)/1.15 var(--sn-serif); }

/* ---------- panels: deep ground for the forms and lists ---------- */
.sn-panel { position: relative; isolation: isolate; padding: 5.5rem 1.4rem 5rem; text-align: center; background: var(--inv-background); }
.sn-panel--photo > .sn-photo { opacity: .5; }
.sn-panel > :not(.sn-photo) { position: relative; z-index: 3; }
.sn-panel__head { display: grid; justify-items: center; gap: .3rem; max-width: 26rem; margin: 0 auto 2rem; }
.sn-panel__head .sn-text { margin-top: .6rem; }
.sn-glass {
    max-width: 28rem; margin: 0 auto; padding: 1.4rem 1.2rem; border-radius: 18px; text-align: left;
    background: var(--sn-glass); box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 12%, transparent);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}

/* forms (rsvp, wishes) on the dark glass */
.sn-body .inv-form label, .sn-body .inv-form__choices legend { color: var(--sn-soft); font-size: .8rem; letter-spacing: .04em; }
.sn-body .inv-form input:not([type=radio]):not([type=checkbox]), .sn-body .inv-form select, .sn-body .inv-form textarea {
    padding: .75rem .9rem; border: 1px solid color-mix(in srgb, #fff 16%, transparent); border-radius: 10px;
    background: color-mix(in srgb, #fff 6%, transparent); color: var(--inv-text); font: 300 1rem/1.4 var(--sn-sans);
}
.sn-body .inv-form select option { color: #111; }
.sn-body .inv-form input::placeholder, .sn-body .inv-form textarea::placeholder { color: color-mix(in srgb, var(--inv-text) 45%, transparent); }
.sn-body .inv-form input:focus, .sn-body .inv-form select:focus, .sn-body .inv-form textarea:focus { outline: none; border-color: var(--inv-accent); }
.sn-body .inv-form input[type=radio], .sn-body .inv-form input[type=checkbox] { accent-color: var(--inv-text); }
.sn-body .inv-form__choices label { padding: .45rem .85rem; border-radius: 999px; box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 18%, transparent); color: var(--inv-text); }
.sn-body .inv-form__notice { background: color-mix(in srgb, #fff 8%, transparent); color: var(--inv-text); }
.sn-body .inv-form .inv-button { width: 100%; }

/* wishes */
.sn-body .inv-wish { background: color-mix(in srgb, #fff 5%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 9%, transparent); }
.sn-body .inv-wish__name { font: 400 1.05rem/1.3 var(--sn-serif); letter-spacing: .02em; }
.sn-body .inv-wish__message { color: var(--sn-soft); }
.sn-body .inv-wishes__list { scrollbar-color: color-mix(in srgb, #fff 25%, transparent) transparent; }
.sn-body .inv-wishes__page-button { color: var(--inv-text); border-color: var(--sn-faint); }

/* gift: frosted cards */
.sn-body .inv-gift__account, .sn-body .inv-gift__address {
    max-width: 26rem; margin-inline: auto; padding: 1.2rem; border-radius: 16px; text-align: center;
    background: var(--sn-glass); box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 12%, transparent);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.sn-body .inv-gift__number { font: 300 1.5rem/1.3 var(--sn-serif); letter-spacing: .08em; }
.sn-body .inv-gift__account .inv-button { margin-top: .7rem; padding: .55rem 1.1rem; }

/* gallery: edge to edge, every photo in the mood until it is opened */
.sn-gallery { padding-inline: 0; }
.sn-body .inv-gallery { gap: 3px; }
.sn-body .inv-gallery__item { border-radius: 0; }
.sn-body .inv-gallery__item img { filter: grayscale(1) contrast(1.06) brightness(.9); transition: filter .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.sn-body .inv-gallery__item:hover img { filter: none; }

/* closing: a compact last scene (no taller than a phone screen), the page-end room for the menu stays */
.sn-closing { min-height: min(100vh, 820px); min-height: min(100svh, 820px); }
.sn-closing .sn-scene__body { gap: .4rem; }
.sn-closing__thanks { font-size: clamp(1.9rem, 8.5vw, 2.4rem); margin-bottom: .1rem; }
.sn-closing .sn-text { line-height: 1.65; }
.sn-closing .sn-rule { margin-block: .4rem; }
.sn-names.sn-closing__names { margin: .2rem 0 .6rem; font-size: clamp(2.1rem, 9.5vw, 2.6rem); }
.sn-closing .sn-mono { width: 2.8rem; height: 2.8rem; font-size: .85rem; }

/* ---------- cover ---------- */
.sn-cover { position: fixed; inset: 0; z-index: 30; display: flex; overflow: hidden; background: var(--inv-background); }
.sn-cover > .sn-photo { z-index: 0; }
.sn-cover__photo .sn-photo__img { inset: 0; background-position: center 28%; }
html.inv-anim .sn-cover--photo .sn-cover__photo .sn-photo__img { animation: sn-zoom 14s ease-out both; }
@keyframes sn-zoom { from { transform: scale(1.14); } to { transform: scale(1); } }
.sn-cover__photo::after {
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--inv-background) 70%, transparent) 0%,
        transparent 22%,
        transparent 40%,
        color-mix(in srgb, var(--inv-background) 72%, transparent) 60%,
        var(--inv-background) 92%);
}
.sn-cover__inner {
    position: relative; z-index: 3; width: 100%; min-height: 100%;
    display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 1rem;
    padding: calc(2rem + env(safe-area-inset-top)) 1.6rem calc(2rem + env(safe-area-inset-bottom));
    text-align: center;
}
.sn-cover__top { display: grid; justify-items: center; gap: .8rem; }
.sn-cover__foot { width: 100%; max-width: 26rem; display: grid; justify-items: center; gap: .6rem; }
.sn-cover__names { font-size: clamp(2.6rem, 12vw, 3.5rem); }
.sn-cover__quote { max-width: 22rem; font: 300 italic .98rem/1.55 var(--sn-serif); color: var(--sn-soft); }
.sn-guest { margin-top: .5rem; display: grid; gap: .15rem; }
.sn-guest__label { font: 400 .62rem/1.5 var(--sn-sans); letter-spacing: .32em; text-transform: uppercase; color: var(--inv-accent); }
.sn-guest__name { font: 400 1.35rem/1.3 var(--sn-serif); overflow-wrap: anywhere; }
.sn-cover__open { margin-top: .8rem; }
.sn-cover--leave { transition: opacity 1.1s ease, transform 1.2s cubic-bezier(.6, 0, .3, 1); }
.sn-cover--gone { opacity: 0; transform: scale(1.04); }

@media (max-height: 740px) {
    .sn-cover__foot { gap: .45rem; }
    .sn-cover__names { font-size: clamp(2.3rem, 10.5vw, 3rem); }
    .sn-cover__quote { font-size: .9rem; line-height: 1.45; }
    .sn-mono { width: 3.1rem; height: 3.1rem; }
}
@media (max-height: 640px) {
    .sn-cover__inner { padding-top: calc(1.3rem + env(safe-area-inset-top)); padding-bottom: calc(1.4rem + env(safe-area-inset-bottom)); }
    .sn-cover__top { gap: .5rem; }
    .sn-cover__quote { font-size: .84rem; }
    .sn-guest__name { font-size: 1.2rem; }
    .sn-cover__open { margin-top: .4rem; }
}

/* ---------- shared floating UI in glass ---------- */
.sn-body .inv-nav {
    --inv-nav-bg: color-mix(in srgb, var(--inv-background) 55%, transparent);
    --inv-nav-text: color-mix(in srgb, var(--inv-text) 70%, transparent);
    --inv-nav-active: color-mix(in srgb, #fff 16%, transparent);
    border: 1px solid color-mix(in srgb, #fff 14%, transparent);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    box-shadow: 0 14px 30px -14px rgb(0 0 0 / .8);
}
.sn-body .inv-nav--icons .inv-nav__item.is-active { color: var(--inv-text); transform: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 22%, transparent); }
.sn-body .inv-music__button, .sn-body .inv-scroller__toggle, .sn-body .inv-pb-button, .sn-body .inv-to-top {
    background: color-mix(in srgb, var(--inv-background) 50%, transparent); color: var(--inv-text);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 22%, transparent), 0 8px 18px -8px rgb(0 0 0 / .7);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.sn-body .inv-scroller.is-running .inv-scroller__toggle { background: var(--inv-text); color: var(--inv-background); }
.sn-body .inv-to-top { border-radius: 50%; }
.sn-body .inv-music__space { background: var(--inv-background); }
.sn-body .inv-branding { color: color-mix(in srgb, var(--inv-text) 60%, transparent); }
/* the cinematic intro shows the photos in the same mood */
.sn-body .inv-intro__photo { filter: grayscale(1) contrast(1.06); }

/* ---------- split screen on tablets and laptops ---------- */
.sn-aside { display: none; }
@media (min-width: 960px) {
    :root { --sn-col: clamp(420px, 36vw, 520px); }
    .sn-aside { display: block; position: fixed; top: 0; bottom: 0; left: 0; right: var(--sn-col); z-index: 1; overflow: hidden; background: var(--inv-background); }
    .sn-aside__photo {
        position: absolute; inset: 0; opacity: 0; transform: scale(1.06);
        background: var(--sn-photo, none) center 30% / cover no-repeat;
        filter: grayscale(1) contrast(1.08) brightness(.82);
        transition: opacity 1.4s ease, transform 9s ease-out;
    }
    .sn-aside__photo.is-on { opacity: 1; transform: scale(1); }
    .sn-aside__tint { position: absolute; inset: 0; background: var(--inv-tint); mix-blend-mode: color; opacity: .62; }
    .sn-aside::after {
        content: ''; position: absolute; inset: 0;
        background: linear-gradient(90deg, transparent 60%, color-mix(in srgb, var(--inv-background) 80%, transparent)),
            linear-gradient(180deg, color-mix(in srgb, var(--inv-background) 45%, transparent), transparent 25%, transparent 55%, color-mix(in srgb, var(--inv-background) 85%, transparent));
    }
    .sn-aside__text { position: absolute; z-index: 2; left: clamp(2.5rem, 5vw, 4.5rem); bottom: clamp(2.5rem, 7vh, 4.5rem); display: grid; gap: .6rem; }
    .sn-aside__names { font: 300 clamp(3rem, 5vw, 4.6rem)/1.05 var(--sn-serif); }
    .sn-aside__date { font: 400 .8rem/1.5 var(--sn-sans); letter-spacing: .4em; color: var(--sn-soft); }

    .sn-main, .sn-body .inv-branding, .sn-body .inv-music__space { position: relative; z-index: 2; width: var(--sn-col); margin-left: auto; }
    .sn-main { box-shadow: -30px 0 60px -30px rgb(0 0 0 / .9); }

    /* the floating buttons and the menu belong to the column */
    .sn-body .inv-nav { left: calc(100% - var(--sn-col) / 2); max-width: calc(var(--sn-col) - 1.5rem); }
    .sn-body .inv-to-top, .sn-body .inv-pb-button { left: calc(100% - var(--sn-col) + 1rem); }

    /* the cover: the photo across the whole screen, the words in a column at the foot */
    .sn-cover__photo .sn-photo__img { background-position: center 32%; }
    .sn-cover__names { font-size: clamp(3.4rem, 5vw, 4.6rem); }
    .sn-cover__foot { max-width: 34rem; }
}

/* ================= Sepia mood: analog film ================= */
:root {
    --inv-primary: #f1e4cf; --inv-accent: #d6b88a; --inv-background: #120d09; --inv-text: #f1e4cf; --inv-tint: #8a6237; --inv-deep: #080503;
    --sn-grain: 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
/* sepia: grey photo, a strong warm colour layer, a little fade like old print */
.sn-photo__img, .sn-aside__photo { filter: grayscale(1) contrast(1.02) brightness(.9) sepia(.25); }
.sn-photo::before, .sn-aside__tint { opacity: .8; }
/* a warm light leak at the upper corner, the grain over every photo */
.sn-photo__img::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(45% 30% at 100% 6%, rgb(255 150 70 / .32), transparent 72%), radial-gradient(35% 25% at 0% 92%, rgb(255 120 60 / .14), transparent 70%);
    mix-blend-mode: screen;
}
.sn-photo > .sn-photo__img + *, .sn-body::after { pointer-events: none; }
.sn-body::after { content: ''; position: fixed; inset: 0; z-index: 29; background: var(--sn-grain); opacity: .09; mix-blend-mode: overlay; }
.sn-cover::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: var(--sn-grain); opacity: .12; mix-blend-mode: overlay; }
/* every scene numbered in its corner, like frames of a reel */
.sn-main { counter-reset: sn-scene; }
.sn-scene { counter-increment: sn-scene; }
.sn-scene::after {
    content: 'SCENE ' counter(sn-scene, decimal-leading-zero); position: absolute; z-index: 3; top: 1.3rem; left: 1.4rem;
    font: 400 .58rem/1 var(--sn-sans); letter-spacing: .3em; color: color-mix(in srgb, var(--inv-accent) 80%, transparent);
}
.sn-scene::before {
    content: ''; position: absolute; z-index: 3; top: 1.25rem; right: 1.4rem; width: .45rem; height: .45rem; border-radius: 50%;
    background: #d9573a; box-shadow: 0 0 8px #d9573a;
}
html.inv-anim .sn-scene::before { animation: sn-rec 1.6s steps(1) infinite; }
@keyframes sn-rec { 50% { opacity: .15; } }
/* names and titles in italic, like an old film title card */
.sn-names, .sn-title, .sn-person__name, .sn-event__name, .sn-moment__title, .sn-aside__names { font-style: italic; }
.sn-mono { border-style: double; border-width: 3px; }
@media (prefers-reduced-motion: reduce) { html.inv-anim .sn-scene::before { animation: none; } }

.sn-body .inv-gallery__item img { filter: grayscale(1) sepia(.75) contrast(1.04) brightness(.88); }

/* ================= Sepia layout: film stills ================= */
:root { --sp-still: clamp(240px, 50svh, 470px); --sp-holes: repeating-linear-gradient(180deg, transparent 0 9px, color-mix(in srgb, var(--inv-accent) 22%, transparent) 9px 21px, transparent 21px 30px); }
/* the film base: perforations down both edges of every scene and panel */
.sn-scene, .sn-panel {
    background:
        var(--sp-holes) left .55rem top 0 / 9px 100% no-repeat,
        var(--sp-holes) right .55rem top 0 / 9px 100% no-repeat,
        var(--inv-background);
}
/* each photo is a still, inset between the perforations; the words sit below it on the film base */
.sn-scene { justify-content: flex-start; padding: calc(var(--sp-still) + 4.2rem) 2.2rem calc(8rem + env(safe-area-inset-bottom)); }
/* the closing still is shorter, so the last scene stays compact */
.sn-closing { --sp-still: clamp(220px, 38svh, 330px); padding-top: calc(var(--sp-still) + 3.6rem); }
.sn-scene > .sn-photo {
    inset: 2.4rem 1.7rem auto; height: var(--sp-still); border-radius: 3px;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--inv-accent) 28%, transparent), 0 18px 40px -20px rgb(0 0 0 / .9);
}
.sn-scene > .sn-photo::after, .sn-scene > .sn-photo--full::after { background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgb(0 0 0 / .45)); }
.sn-scene .sn-scene__body, .sn-person--groom .sn-scene__body, .sn-person--bride .sn-scene__body { justify-items: center; text-align: center; }
/* the scene number and the recording dot sit on the still */
.sn-scene::after { top: 3.1rem; left: 2.4rem; z-index: 4; }
.sn-scene::before { top: 3.05rem; right: 2.4rem; z-index: 4; }
.sn-couple__amp { line-height: 1; height: auto; padding: 1rem 0 0; background: var(--sp-holes) left .55rem top 0 / 9px 100% no-repeat, var(--sp-holes) right .55rem top 0 / 9px 100% no-repeat, var(--inv-background); }
.sn-panel--photo > .sn-photo { opacity: .22; }
/* the cover: a still with the title card below it */
.sn-cover { background: var(--sp-holes) left .55rem top 0 / 9px 100% no-repeat, var(--sp-holes) right .55rem top 0 / 9px 100% no-repeat, var(--inv-background); }
.sn-cover > .sn-cover__photo { inset: calc(1.6rem + env(safe-area-inset-top)) 1.7rem auto; height: clamp(230px, 50svh, 520px); border-radius: 3px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--inv-accent) 28%, transparent); }
.sn-cover__photo::after { background: linear-gradient(180deg, color-mix(in srgb, var(--inv-background) 55%, transparent), transparent 30%, transparent 70%, color-mix(in srgb, var(--inv-background) 40%, transparent)); }
.sn-cover__inner { justify-content: space-between; padding-left: 2.2rem; padding-right: 2.2rem; }
.sn-cover__top { padding-top: .4rem; }
.sn-cover__foot { gap: .45rem; }
.sn-cover__names { font-size: clamp(2.3rem, 10.5vw, 3rem); }
.sn-cover__quote { font-size: .88rem; line-height: 1.45; }
@media (max-height: 740px) { :root { --sp-still: clamp(220px, 44svh, 400px); } .sn-cover > .sn-cover__photo { height: 42svh; } }
@media (max-height: 640px) { .sn-cover > .sn-cover__photo { height: 38svh; } .sn-cover__quote { display: none; } }
/* the gallery strip */
.sn-body .inv-gallery-slider { padding-inline: 1.4rem; }
.sn-body .inv-gallery-slider img { filter: grayscale(1) sepia(.75) contrast(1.04) brightness(.88); }
.sn-body .inv-gallery-slider__thumb { border-radius: 2px; }
@media (min-width: 960px) {
    .sn-cover > .sn-cover__photo { inset: 2rem 3rem auto; height: 58vh; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    html.inv-anim .sn-cover--photo .sn-cover__photo .sn-photo__img { animation: none; }
    .sn-aside__photo { transition: opacity .4s ease; transform: none !important; }
    .sn-cover--leave { transition: opacity .4s ease; }
    .sn-cover--gone { transform: none; }
}

/* ---------- gift: the accounts as bank cards (two per row, an odd last one across), the address on a paper card ---------- */
.sn-body .sn-gift .inv-gift { max-width: 27rem; margin: 0 auto; }
.sn-body .sn-gift .inv-gift__accounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.sn-body .sn-gift .inv-gift__accounts > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.sn-body .sn-gift .inv-gift__account:not(.inv-gift__address) {
    position: relative; overflow: hidden; isolation: isolate; max-width: none; margin: 0;
    display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-height: 9.6rem; padding: .85rem .9rem .9rem;
    border-radius: 14px; text-align: left; color: #f4efe6;
    background:
        radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--inv-tint) 55%, transparent), transparent 60%),
        repeating-linear-gradient(115deg, rgb(255 255 255 / .03) 0 2px, transparent 2px 7px),
        linear-gradient(135deg, color-mix(in srgb, var(--inv-tint) 40%, #141414), #0e0e10 78%);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14), 0 18px 34px -20px rgb(0 0 0 / .75);
    -webkit-backdrop-filter: none; backdrop-filter: none;
}
/* the chip and the two overlapping circles of a card network */
.sn-body .sn-gift .inv-gift__account:not(.inv-gift__address)::before {
    content: ''; order: 1; display: block; width: 2rem; height: 1.45rem; margin: .35rem 0 .15rem; border-radius: 5px;
    background:
        linear-gradient(90deg, transparent 32%, rgb(0 0 0 / .22) 32% 35%, transparent 35% 65%, rgb(0 0 0 / .22) 65% 68%, transparent 68%),
        linear-gradient(180deg, transparent 45%, rgb(0 0 0 / .2) 45% 52%, transparent 52%),
        linear-gradient(135deg, #f3dfa2, #c9a14f 55%, #ecd28c);
}
.sn-body .sn-gift .inv-gift__account:not(.inv-gift__address)::after {
    content: ''; position: absolute; z-index: -1; right: .8rem; top: .9rem; width: 1.9rem; height: 1.2rem;
    background: radial-gradient(circle at 30% 50%, rgb(255 255 255 / .45) 0 .58rem, transparent .62rem), radial-gradient(circle at 70% 50%, color-mix(in srgb, var(--inv-accent) 70%, transparent) 0 .58rem, transparent .62rem);
    opacity: .75;
}
.sn-body .sn-gift .inv-gift__account:not(.inv-gift__address) > * { order: 2; }
.sn-body .sn-gift .inv-gift__account:not(.inv-gift__address) > .inv-gift__bank { order: 0; }
.sn-body .sn-gift .inv-gift__bank { min-height: 1.6rem; display: flex; align-items: center; font: 500 .82rem/1.2 var(--sn-sans); letter-spacing: .08em; color: #fff; }
.sn-body .sn-gift .inv-gift__logo { height: 1.6rem; padding: .2rem .5rem; border-radius: .35rem; }
.sn-body .sn-gift .inv-gift__number {
    margin-top: auto; font: 500 1.02rem/1.2 ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; letter-spacing: .1em;
    color: color-mix(in srgb, var(--inv-accent) 45%, #fff); text-shadow: 0 1px 0 rgb(0 0 0 / .5); overflow-wrap: anywhere;
}
.sn-body .sn-gift .inv-gift__holder { font: 500 .58rem/1.3 var(--sn-sans); letter-spacing: .16em; text-transform: uppercase; color: rgb(255 255 255 / .7); }
.sn-body .sn-gift .inv-gift__account:not(.inv-gift__address) .inv-button {
    margin-top: .45rem; min-height: 0; padding: .38rem .7rem; border-radius: 6px; font-size: .58rem; letter-spacing: .14em;
    background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .45);
}
.sn-body .sn-gift .inv-gift__account:not(.inv-gift__address) .inv-button:hover { background: rgb(255 255 255 / .12); }
/* the gift address: an ivory paper card with a fine inner line */
.sn-body .sn-gift .inv-gift__address {
    position: relative; max-width: none; margin: .75rem 0 0; padding: 1.3rem 1.1rem 1.2rem; border-radius: 14px; text-align: center;
    background: #fbf8f2; color: #2a2622; -webkit-backdrop-filter: none; backdrop-filter: none;
    box-shadow: 0 18px 34px -22px rgb(0 0 0 / .6);
}
.sn-body .sn-gift .inv-gift__address::before { content: ''; position: absolute; inset: 6px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--inv-tint) 45%, transparent); pointer-events: none; }
.sn-body .sn-gift .inv-gift__address .inv-gift__bank { justify-content: center; font: 500 .62rem/1.3 var(--sn-sans); letter-spacing: .28em; text-transform: uppercase; color: color-mix(in srgb, var(--inv-tint) 80%, #2a2622); }
.sn-body .sn-gift .inv-gift__address .inv-gift__holder { margin-top: .3rem; font: 500 1.15rem/1.3 var(--sn-serif); letter-spacing: 0; text-transform: none; color: #2a2622; }
.sn-body .sn-gift .inv-gift__address p { color: #3b3631; font-size: .9rem; line-height: 1.5; }
.sn-body .sn-gift .inv-gift__address .inv-button {
    margin-top: .8rem; padding: .5rem 1rem; border-radius: 6px; font-size: .62rem; letter-spacing: .16em;
    background: transparent; color: #2a2622; box-shadow: inset 0 0 0 1px color-mix(in srgb, #2a2622 45%, transparent);
}
@media (max-width: 340px) {
    .sn-body .sn-gift .inv-gift__accounts { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Sepia: compact scenes (no full-screen minimum: the gaps between sections stay short) ---------- */
.sn-scene { min-height: 0; padding-bottom: 3.4rem; }
.sn-scene--short { min-height: 0; }
/* the couple's stills are portraits */
.sn-person { --sp-still: min(calc((min(100vw, 30rem) - 3.4rem) * 1.22), 500px); }
.sn-couple__amp { padding-top: .4rem; }
/* the closing: compact, ending above the footer */
.sn-closing { min-height: 0; padding-bottom: 2.4rem; }

/* the cover: the still sized from the visible screen; the initials and the title under it (never on the photo) */
.sn-cover > .sn-cover__photo { height: calc(var(--inv-screen, 100svh) * .46); }
.sn-cover__inner { justify-content: flex-end; padding-top: calc(var(--inv-screen, 100svh) * .46 + 2.2rem); }
.sn-cover__top { display: flex; align-items: center; justify-content: center; gap: .7rem; padding-top: 0; }
.sn-cover__top .sn-mono { width: 2.6rem; height: 2.6rem; margin: 0; font-size: .8rem; }
@media (max-height: 740px) { .sn-cover > .sn-cover__photo { height: calc(var(--inv-screen, 100svh) * .42); } .sn-cover__inner { padding-top: calc(var(--inv-screen, 100svh) * .42 + 2rem); } }
@media (max-height: 640px) { .sn-cover > .sn-cover__photo { height: calc(var(--inv-screen, 100svh) * .38); } .sn-cover__inner { padding-top: calc(var(--inv-screen, 100svh) * .38 + 1.8rem); } }
