/*
 * Template "Sage Eucalyptus" (Pernikahan) — a eucalyptus garden, modern and fresh.
 * Deep eucalyptus green + a warm terracotta-blush accent on warm white.
 * Real public-domain botanical plates (img/, see img/CREDITS.md): silver-dollar eucalyptus sprays hang as garlands
 * over the cover photo and the section tops, sprigs lean over portraits, red-flowering gums frame the closing.
 * Deep green sections (several over a client photo under a green gradient) alternate with warm-white and pale-sage ones.
 * Big serif headings (the client's heading font) under a blush pill label, script (display font) only for names,
 * Jost for reading.
 * Colors come from the variant: --inv-primary, --inv-deep, --inv-accent (terracotta), --inv-blush, --inv-background,
 * --inv-text, --inv-leaf (silver leaf), --inv-soft (pale sage).
 * Motion: the cover photo fades in with a slight zoom while the garlands drop in; the text follows (≤ 2.4 s);
 * the art sways slowly; six round leaves drift once on "Buka Undangan"; gentle fade-up on scroll.
 * All off with "reduce motion". Every class starts with "se-".
 */

:root {
    --inv-primary: #2f5d4f;
    --inv-deep: #173a31;
    --inv-accent: #c4694c;
    --inv-blush: #f1cdbd;
    --inv-background: #faf6ef;
    --inv-text: #1f302a;
    --inv-leaf: #8fb3a6;
    --inv-soft: #e4ede7;
    --inv-radius: 18px;

    --se-col: 460px;
    --se-night: color-mix(in srgb, var(--inv-deep) 72%, #000);
    /* terracotta dark enough for white text and small type on light grounds (≥ 4.5:1) */
    --se-accent-ink: color-mix(in srgb, var(--inv-accent) 74%, #000);
    --se-on-deep: #fff;
    --se-on-deep-soft: color-mix(in srgb, #fff 88%, var(--inv-leaf));
    --se-line: color-mix(in srgb, var(--inv-primary) 35%, transparent);
    --se-card: #fff;
    --se-shadow: 0 24px 44px -28px color-mix(in srgb, var(--inv-deep) 70%, transparent);
    --se-script: var(--inv-font-display, "Imperial Script"), "Pinyon Script", cursive;
    --se-serif: var(--inv-font-heading, "Bodoni Moda"), "Playfair Display", Georgia, serif;
    --se-sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.se-body {
    margin: 0;
    min-height: 100vh;
    background: var(--se-night);
    color: var(--inv-text);
    font: 400 1rem/1.7 var(--se-sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; }
p { margin: 0; }
a { color: var(--inv-primary); }

/* ------------------------------------------------------------------ type */

.se-script {
    margin: 0;
    font-family: var(--se-script);
    font-weight: 400;
    line-height: 1.15;
    color: var(--inv-primary);
}

/* small caps on a blush pill: the color accent behind the label */
.se-label {
    display: inline-block;
    margin: 0;
    padding: .4rem 1.05rem .36rem;
    border-radius: 999px;
    background: var(--inv-blush);
    color: var(--inv-deep);
    font: 600 .68rem/1.3 var(--se-sans);
    letter-spacing: .3em;
    text-transform: uppercase;
}
.se-label--light, .se-head--light .se-label {
    background: color-mix(in srgb, var(--inv-blush) 18%, transparent);
    color: var(--inv-blush);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-blush) 55%, transparent);
}

.se-title {
    margin: .85rem 0 0;
    font: 500 2.55rem/1.06 var(--se-serif);
    letter-spacing: -.01em;
    color: var(--inv-primary);
}
.se-title em { font-style: italic; font-weight: 400; color: var(--se-accent-ink); }
.se-head--light .se-title { color: #fff; }
.se-head--light .se-title em { color: var(--inv-blush); }

.se-lead {
    max-width: 34ch;
    margin: 1rem auto 0;
    font-size: .95rem;
    line-height: 1.85;
}

.se-head { position: relative; margin-bottom: 1.7rem; }
/* the rule under the title: two lines and a pair of round eucalyptus leaves */
.se-rule { display: block; width: 180px; max-width: 64%; height: auto; margin: .9rem auto 0; overflow: visible; }
.se-rule__line { fill: none; stroke: color-mix(in srgb, var(--inv-accent) 70%, transparent); stroke-width: 1.2; stroke-linecap: round; }
.se-rule__leaf { fill: var(--inv-primary); }
.se-rule__leaf--b { fill: var(--inv-leaf); }
.se-rule__dot { fill: var(--inv-accent); }
.se-head--light .se-rule__line { stroke: color-mix(in srgb, var(--inv-blush) 70%, transparent); }
.se-head--light .se-rule__leaf { fill: color-mix(in srgb, var(--inv-leaf) 80%, #fff); }
.se-head--light .se-rule__leaf--b { fill: var(--inv-blush); }

.se-icon { width: 1.05rem; height: 1.05rem; flex: none; vertical-align: -.17em; }

/* ------------------------------------------------------------------ backdrop & column */

.se-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--inv-leaf) 32%, transparent), transparent 45%),
        radial-gradient(circle at 85% 85%, color-mix(in srgb, var(--inv-accent) 26%, transparent), transparent 45%),
        linear-gradient(160deg, var(--inv-deep), var(--se-night));
    overflow: hidden;
}
.se-backdrop::before {
    content: "";
    position: absolute;
    inset: -40px;
    background: var(--se-photo, none) center / cover no-repeat;
    filter: blur(30px) saturate(.9);
    opacity: .35;
}

.se-page {
    position: relative;
    z-index: 1;
    max-width: var(--se-col);
    min-height: 100vh;
    margin: 0 auto;
    overflow: clip;
    background: var(--inv-background);
}
@media (min-width: 520px) {
    .se-page { box-shadow: 0 0 0 1px color-mix(in srgb, #fff 16%, transparent), 0 30px 80px -20px rgb(0 0 0 / .55); }
}

.se-preview {
    position: fixed;
    inset: 0 0 auto;
    z-index: 60;
    max-width: var(--se-col);
    margin: 0 auto;
    padding: .35rem .75rem;
    background: var(--inv-deep);
    color: #fff;
    font-size: .72rem;
    text-align: center;
}

/* ------------------------------------------------------------------ botanical art */

.se-flora {
    position: absolute;
    display: block;
    height: auto;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 12px 14px color-mix(in srgb, var(--inv-deep) 26%, transparent));
}
/* tint the eucalyptus to the color variant (the red gum flower keeps its color) */
.se-v-eucalyptus-mist :is(.se-flora--euc-spray, .se-flora--euc-silver, .se-flora--euc-bud, .se-flora--euc-bud-silver) { filter: hue-rotate(14deg) drop-shadow(0 12px 14px color-mix(in srgb, var(--inv-deep) 26%, transparent)); }
.se-v-olive-grove :is(.se-flora--euc-spray, .se-flora--euc-silver, .se-flora--euc-bud, .se-flora--euc-bud-silver) { filter: hue-rotate(-42deg) saturate(.85) drop-shadow(0 12px 14px color-mix(in srgb, var(--inv-deep) 26%, transparent)); }
/* "silver" pieces on deep grounds and photos get a darker shadow */
.se-flora--euc-silver, .se-flora--euc-bud-silver, .se-deep .se-flora, .se-cover .se-flora, .se-closing .se-flora { filter: drop-shadow(0 14px 18px rgb(0 0 0 / .42)); }
.se-v-eucalyptus-mist :is(.se-flora--euc-silver, .se-flora--euc-bud-silver) { filter: hue-rotate(14deg) drop-shadow(0 14px 18px rgb(0 0 0 / .42)); }
.se-v-olive-grove :is(.se-flora--euc-silver, .se-flora--euc-bud-silver) { filter: hue-rotate(-42deg) saturate(.85) drop-shadow(0 14px 18px rgb(0 0 0 / .42)); }
.se-flora--gum-bloom { filter: drop-shadow(0 14px 18px color-mix(in srgb, var(--inv-deep) 40%, transparent)); }

/* hanging art (the plates are stored upside down, stem at the top) sways from its top edge */
.se-hang { transform-origin: 50% 0; }

/* ------------------------------------------------------------------ motion (only when the visitor allows it) */

@keyframes se-sway { from { rotate: -2deg; } to { rotate: 2deg; } }
@keyframes se-sway-soft { from { rotate: -1.2deg; } to { rotate: 1.4deg; } }
@keyframes se-drop-in { from { opacity: 0; translate: 0 -40px; } to { opacity: 1; translate: 0 0; } }
@keyframes se-photo-in { from { opacity: 0; transform: scale(1.1); } to { opacity: 1; transform: none; } }
@keyframes se-seal-in { from { opacity: 0; transform: translateY(-14px) scale(.8); } to { opacity: 1; transform: none; } }

html.inv-anim .se-hang { animation: se-sway 7.2s ease-in-out infinite alternate; }
html.inv-anim .se-flora--euc-bud, html.inv-anim .se-flora--euc-bud-silver { animation-duration: 5.8s; animation-delay: -2.2s; }
html.inv-anim .se-flora--gum-bloom { transform-origin: 50% 100%; animation: se-sway-soft 8s ease-in-out infinite alternate; }
html.inv-anim .se-closing__bloom--right { animation-delay: -3.4s; }
html.inv-anim .se-countdown__bud--right, html.inv-anim .se-closing__garland--right { animation-delay: -3s; }

/* cover: one opening moment — the photo fades in with a slight zoom while the garlands drop in */
html.inv-anim .se-cover__photo img { animation: se-photo-in 1.8s cubic-bezier(.2, .7, .2, 1) both; }
html.inv-anim .se-cover__garland { animation: se-drop-in 1.5s cubic-bezier(.2, .7, .2, 1) .15s both, se-sway 7.2s ease-in-out 1.65s infinite alternate; }
html.inv-anim .se-cover__garland--right { animation-delay: .3s, 1.8s; animation-duration: 1.5s, 6.4s; }
html.inv-anim .se-cover__seal { animation: se-seal-in 1s cubic-bezier(.2, .7, .2, 1) .45s both; }

/* the heading rule draws out from its leaves once the heading turns into view */
html.inv-anim .se-rule__line { stroke-dasharray: 80; stroke-dashoffset: 80; transition: stroke-dashoffset 1.2s cubic-bezier(.2, .7, .2, 1) .4s; }
html.inv-anim .is-revealed .se-rule__line, html.inv-anim .se-head.is-revealed .se-rule__line { stroke-dashoffset: 0; }

/* six round eucalyptus leaves drift down once after "Buka Undangan", then stop */
.se-drift { display: none; position: fixed; top: 0; left: 50%; z-index: 35; width: min(100%, var(--se-col)); height: 100vh; transform: translateX(-50%); overflow: hidden; pointer-events: none; }
html.inv-anim .se-drift { display: block; }
.se-drift i {
    position: absolute; top: -30px; left: var(--x); width: 14px; height: 12px; opacity: 0;
    border-radius: 55% 45% 50% 50%;
    background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--se-c, var(--inv-leaf)) 45%, #fff), var(--se-c, var(--inv-leaf)));
}
.se-drift.is-go i { animation: se-leaf var(--d) cubic-bezier(.3, .2, .5, 1) var(--delay) forwards; }
.se-drift i:nth-child(1) { --x: 9%; --d: 5s; --delay: .1s; }
.se-drift i:nth-child(2) { --x: 27%; --d: 5.8s; --delay: .55s; --se-c: var(--inv-primary); }
.se-drift i:nth-child(3) { --x: 46%; --d: 4.6s; --delay: .3s; --se-c: var(--inv-blush); }
.se-drift i:nth-child(4) { --x: 64%; --d: 5.4s; --delay: .75s; }
.se-drift i:nth-child(5) { --x: 80%; --d: 5.1s; --delay: .4s; --se-c: var(--inv-primary); }
.se-drift i:nth-child(6) { --x: 92%; --d: 6s; --delay: .95s; }
@keyframes se-leaf {
    0% { opacity: 0; transform: translate(0, 0) rotate(0deg); }
    10% { opacity: .9; }
    85% { opacity: .8; }
    100% { opacity: 0; transform: translate(-36px, 105vh) rotate(300deg); }
}

@media (prefers-reduced-motion: reduce) {
    .se-flora, .se-cover__photo img, .se-cover__seal { animation: none !important; }
    .se-drift { display: none !important; }
    html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------------ monogram seal */

.se-seal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .15rem;
    width: 4.2rem;
    height: 4.2rem;
    margin: 0;
    border-radius: 50%;
    background: color-mix(in srgb, var(--inv-deep) 72%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-blush) 75%, transparent), 0 0 0 5px color-mix(in srgb, #fff 10%, transparent), 0 10px 22px -8px rgb(0 0 0 / .55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    font: 500 1.05rem/1 var(--se-serif);
    letter-spacing: .04em;
    white-space: nowrap;
}
.se-seal i { font: 400 1rem/1 var(--se-script); font-style: normal; color: var(--inv-blush); }

/* ------------------------------------------------------------------ cover */

.se-cover {
    position: fixed;
    inset: 0;
    z-index: 50;
    width: 100%;
    max-width: var(--se-col);
    margin: 0 auto;
    display: flex;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--inv-deep);
    color: var(--se-on-deep);
    text-align: center;
}
/* the photo full-bleed over the top two thirds, fading into deep green */
.se-cover__photo {
    position: absolute;
    inset: 0 0 auto;
    height: 74%;
    overflow: hidden;
    background:
        radial-gradient(60% 40% at 30% 30%, color-mix(in srgb, var(--inv-leaf) 55%, transparent), transparent 70%),
        radial-gradient(50% 35% at 85% 60%, color-mix(in srgb, var(--inv-accent) 35%, transparent), transparent 70%),
        linear-gradient(180deg, var(--inv-primary), var(--inv-deep));
}
.se-cover__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.se-cover__photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--inv-deep) 50%, transparent) 0%, transparent 24%, transparent 42%, color-mix(in srgb, var(--inv-deep) 72%, transparent) 70%, var(--inv-deep) 100%);
}
.se-cover__flora { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.se-cover__garland { top: -11%; width: 42%; }
.se-cover__garland--left { left: -18%; }
.se-cover__garland--right { right: -19%; scale: -1 1; }
.se-cover__seal { position: absolute; z-index: 2; top: calc(1.4rem + env(safe-area-inset-top)); left: 50%; translate: -50% 0; }

.se-cover__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: calc(7rem + env(safe-area-inset-top)) 1.5rem calc(2.2rem + env(safe-area-inset-bottom));
}
.se-cover__title {
    font: 600 .7rem/1.4 var(--se-sans);
    letter-spacing: .42em;
    text-transform: uppercase;
    color: var(--inv-blush);
    text-shadow: 0 1px 10px rgb(0 0 0 / .5);
}
.se-cover__names {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0 .55rem;
    margin-top: .25rem;
    font-size: clamp(2.5rem, 11.5vw, 3.1rem);
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 2px 22px rgb(0 0 0 / .45);
}
.se-cover__amp { font-size: .62em; color: var(--inv-blush); }
.se-cover__date {
    display: inline-block;
    margin-top: .5rem;
    padding: .28rem 1rem .26rem;
    border-radius: 999px;
    background: var(--inv-blush);
    color: var(--inv-deep);
    font: 600 .82rem/1.35 var(--se-serif);
    letter-spacing: .04em;
    box-shadow: 0 10px 20px -12px rgb(0 0 0 / .6);
}
.se-cover__quote {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    max-width: 32ch;
    margin: .6rem auto 0;
    overflow: hidden;
    font: italic 400 .84rem/1.45 var(--se-serif);
    color: var(--se-on-deep-soft);
}
.se-cover__guest {
    width: 100%;
    max-width: 290px;
    margin: .8rem auto 0;
    padding: .55rem 1rem .6rem;
    border-radius: 16px;
    background: color-mix(in srgb, #fff 9%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-blush) 50%, transparent);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.se-cover__to { font: 500 .6rem/1.4 var(--se-sans); letter-spacing: .24em; text-transform: uppercase; color: var(--inv-blush); }
.se-cover__guestname { display: block; margin-top: .1rem; font: 600 1.08rem/1.3 var(--se-serif); color: #fff; overflow-wrap: anywhere; }
.se-cover__sorry { margin-top: .15rem; font-size: .62rem; line-height: 1.35; color: color-mix(in srgb, #fff 82%, transparent); }

.se-open.inv-button, .se-button--accent.inv-button {
    margin-top: .85rem;
    padding: .75rem 1.6rem;
    background: var(--se-accent-ink);
    color: #fff;
    font: 600 .82rem/1 var(--se-sans);
    letter-spacing: .12em;
    text-transform: uppercase;
    box-shadow: 0 14px 28px -12px color-mix(in srgb, var(--inv-accent) 80%, transparent), inset 0 1px 0 rgb(255 255 255 / .25);
}
.se-open .se-icon { width: 1.15rem; height: 1.15rem; }

.se-cover--leave { transition: opacity 1s ease, transform 1.1s cubic-bezier(.6, 0, .3, 1); }
.se-cover--gone { opacity: 0; transform: translateY(-6%); }

/* fit: the whole cover fits one phone screen */
@media (max-height: 760px) {
    .se-cover__inner { padding-bottom: calc(1.8rem + env(safe-area-inset-bottom)); }
    .se-cover__garland { width: 38%; top: -11%; }
    .se-cover__names { font-size: clamp(2.3rem, 10.5vw, 2.7rem); }
    .se-cover__date { margin-top: .4rem; font-size: .78rem; }
    .se-cover__quote { margin-top: .45rem; font-size: .8rem; line-height: 1.4; }
    .se-cover__guest { margin-top: .65rem; padding: .48rem 1rem .52rem; }
    .se-cover__guestname { font-size: 1.02rem; }
    .se-open.inv-button { margin-top: .7rem; padding-block: .68rem; }
    .se-open.inv-button { margin-top: .9rem; }
}
@media (max-height: 660px) {
    .se-cover__seal { width: 3.5rem; height: 3.5rem; font-size: .92rem; top: calc(1rem + env(safe-area-inset-top)); }
    .se-cover__garland { width: 34%; }
    .se-cover__names { font-size: clamp(2.1rem, 9.5vw, 2.4rem); }
    .se-cover__quote { font-size: .76rem; line-height: 1.38; }
    .se-cover__sorry { display: none; }
    .se-open.inv-button { margin-top: .75rem; padding: .75rem 1.5rem; }
}
@media (max-height: 580px) {
    .se-cover__inner { padding-top: calc(4.6rem + env(safe-area-inset-top)); padding-bottom: calc(1.4rem + env(safe-area-inset-bottom)); }
    .se-cover__names { font-size: 2.2rem; margin-top: .15rem; }
    .se-cover__date { margin-top: .35rem; font-size: .8rem; padding: .25rem .9rem; }
    .se-cover__quote { margin-top: .45rem; font-size: .8rem; line-height: 1.4; }
    .se-cover__guest { margin-top: .6rem; padding: .45rem 1rem .5rem; }
    .se-cover__to { font-size: .62rem; }
    .se-cover__guestname { font-size: 1.05rem; }
    .se-open.inv-button { margin-top: .6rem; padding: .7rem 1.4rem; }
}

/* ------------------------------------------------------------------ sections */

.se-main { position: relative; z-index: 1; }
.se-section {
    position: relative;
    padding: 4.5rem 1.4rem 4.25rem;
    text-align: center;
    overflow: clip;
}
.se-section > :where(:not(.se-flora, .se-bgphoto, .se-closing__photo)) { position: relative; z-index: 1; }

/* deep green sections (white text) */
.se-deep {
    color: var(--se-on-deep);
    background:
        radial-gradient(80% 36% at 50% 0%, color-mix(in srgb, var(--inv-primary) 85%, transparent), transparent 70%),
        linear-gradient(180deg, var(--inv-deep), var(--se-night));
}
.se-deep .se-lead { color: var(--se-on-deep-soft); }
/* pale sage sections */
.se-sage {
    background:
        radial-gradient(70% 34% at 100% 0%, color-mix(in srgb, var(--inv-leaf) 30%, transparent), transparent 70%),
        radial-gradient(70% 34% at 0% 100%, color-mix(in srgb, var(--inv-blush) 40%, transparent), transparent 70%),
        var(--inv-soft);
}

/* photo gradient: a client photo behind a strong green gradient (falls back to the section's own gradient) */
.se-bgphoto { position: absolute !important; inset: 0; z-index: 0 !important; overflow: hidden; border-radius: inherit; }
.se-bgphoto img { position: absolute; left: 0; top: -40px; width: 100%; height: calc(100% + 80px); object-fit: cover; opacity: .75; }
.se-bgphoto::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(80% 40% at 50% 0%, color-mix(in srgb, var(--inv-primary) 45%, transparent), transparent 70%),
        linear-gradient(180deg, color-mix(in srgb, var(--inv-deep) 88%, transparent), color-mix(in srgb, var(--inv-deep) 74%, transparent) 45%, color-mix(in srgb, var(--se-night) 94%, transparent));
}
/* light section: the photo shows faintly under warm white */
.se-bgphoto--soft img { opacity: .4; filter: saturate(.85); }
.se-bgphoto--soft::after {
    background:
        radial-gradient(60% 26% at 50% 46%, color-mix(in srgb, var(--inv-background) 80%, transparent), transparent 100%),
        linear-gradient(180deg, var(--inv-background) 0%, color-mix(in srgb, var(--inv-background) 50%, transparent) 26%, color-mix(in srgb, var(--inv-background) 62%, transparent) 64%, var(--inv-background) 100%);
}

.se-card {
    position: relative;
    border-radius: 24px;
    background: var(--se-card);
    color: var(--inv-text);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--inv-primary) 14%, transparent), var(--se-shadow);
}

/* buttons of the shared components */
.inv-button {
    background: var(--inv-primary);
    font: 500 .85rem/1.2 var(--se-sans);
    letter-spacing: .04em;
}
.inv-button--outline {
    background: #fff;
    color: var(--inv-primary);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-primary) 60%, transparent);
}
.se-deep .inv-button--outline {
    background: color-mix(in srgb, #fff 8%, transparent);
    color: #fff;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-blush) 70%, transparent);
}

/* ------------------------------------------------------------------ opening */

.se-opening { padding-top: 13.5rem; }
.se-opening__garland { top: -4rem; left: -14%; width: 45%; }
.se-opening__bud { top: -1.4rem; right: -2%; width: 22%; scale: -1 1; }
.se-arabic { font: 400 1.9rem/1.9 "Amiri", serif; color: var(--inv-primary); }
.se-opening__greeting { margin-top: .6rem; font: italic 500 1.35rem/1.45 var(--se-serif); color: var(--inv-primary); }
/* the quote: a deep green panel with a blush block offset behind it */
.se-quote {
    margin: 2.8rem .9rem 0 .2rem;
    padding: 2.6rem 1.5rem 1.9rem;
    border-radius: 28px 28px 28px 6px;
    color: var(--se-on-deep);
    background:
        radial-gradient(70% 60% at 100% 0%, color-mix(in srgb, var(--inv-leaf) 35%, transparent), transparent 70%),
        linear-gradient(160deg, var(--inv-primary), var(--inv-deep));
    box-shadow: 12px 12px 0 var(--inv-blush), var(--se-shadow);
}
.se-quote__mark {
    position: absolute;
    top: -.2rem;
    left: 1rem;
    font: italic 400 5.2rem/1 var(--se-serif);
    color: var(--inv-blush);
}
.se-quote blockquote { margin: 0; font: italic 400 1.08rem/1.7 var(--se-serif); }
.se-quote figcaption { margin-top: 1rem; font: 600 .7rem/1.4 var(--se-sans); letter-spacing: .26em; text-transform: uppercase; color: var(--inv-blush); }
.se-quote__bud { top: -3.6rem; right: -2.2rem; width: 4.4rem; scale: 1 -1; rotate: 18deg; z-index: 2; }

/* ------------------------------------------------------------------ couple */

.se-couple { padding-bottom: 4.5rem; }
.se-person {
    display: grid;
    grid-template-columns: 44% 1fr;
    gap: 1.1rem;
    align-items: center;
    margin-top: 2rem;
    text-align: left;
}
.se-person--flip { grid-template-columns: 1fr 44%; text-align: right; }
.se-person--flip .se-person__photo { order: 2; }
.se-person__photo {
    position: relative;
    margin: 0;
    aspect-ratio: 3 / 4.2;
}
/* a pale-sage block offset behind the portrait */
.se-person__photo::before {
    content: "";
    position: absolute;
    inset: 12px -10px -12px 10px;
    border-radius: 999px 999px 22px 22px;
    background: linear-gradient(160deg, var(--inv-soft), color-mix(in srgb, var(--inv-leaf) 55%, var(--inv-soft)));
}
.se-person--flip .se-person__photo::before { inset: 12px 10px -12px -10px; background: linear-gradient(160deg, var(--inv-blush), color-mix(in srgb, var(--inv-blush) 60%, var(--inv-soft))); }
.se-person__photo img:not(.se-flora), .se-person__initial {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 999px 999px 22px 22px;
    box-shadow: var(--se-shadow);
}
.se-person__initial {
    display: grid;
    place-items: center;
    background: linear-gradient(160deg, var(--inv-primary), var(--inv-deep));
    color: #fff;
    font: 400 4.2rem/1 var(--se-script);
}
.se-person__bud { top: -14%; left: -15%; width: 32%; scale: -1 -1; rotate: -14deg; z-index: 2; }
.se-person--flip .se-person__bud { left: auto; right: -15%; scale: 1 -1; rotate: 14deg; }
.se-person__role { font: 600 .66rem/1.4 var(--se-sans); letter-spacing: .24em; text-transform: uppercase; color: var(--se-accent-ink); }
.se-person__nick { margin-top: .2rem; font-size: 2.7rem; line-height: 1.05; }
.se-person__name { margin-top: .35rem; font: 600 1.08rem/1.35 var(--se-serif); color: var(--inv-text); }
.se-person__parents { margin-top: .5rem; font-size: .84rem; line-height: 1.55; }
.se-person__parents span { display: block; font-style: italic; color: color-mix(in srgb, var(--inv-text) 82%, var(--inv-primary)); }
.se-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: .75rem;
    padding: .4rem .85rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-primary) 45%, transparent);
    color: var(--inv-primary);
    font-size: .78rem;
    font-weight: 500;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.se-couple__amp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2.2rem 0 .4rem;
}
.se-couple__amp i { font: italic 400 3.4rem/1 var(--se-serif); color: var(--se-accent-ink); }
.se-couple__amp span { width: 72px; height: 1px; background: linear-gradient(90deg, transparent, var(--se-line)); }
.se-couple__amp span:last-child { background: linear-gradient(90deg, var(--se-line), transparent); }

/* ------------------------------------------------------------------ countdown (deep, over a photo) */

.se-countdown { padding-top: 5.5rem; }
.se-countdown__bud { top: -1.2rem; left: -5%; width: 20%; }
.se-countdown__bud--right { left: auto; right: -4%; scale: -1 1; }
.se-bigdate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    font: 500 3.3rem/1 var(--se-serif);
    color: #fff;
    letter-spacing: -.01em;
}
.se-bigdate i { width: .55rem; height: .4rem; border-radius: 50%; background: var(--inv-blush); rotate: -24deg; }
.se-bigdate__day { margin-top: .7rem; font: 600 .74rem/1.4 var(--se-sans); letter-spacing: .24em; text-transform: uppercase; color: var(--inv-blush); }
.se-countdown .inv-countdown { gap: 0; margin: 2rem auto 0; max-width: 21rem; }
.se-countdown .inv-countdown__item {
    flex: 1;
    min-width: 0;
    padding: .2rem .25rem;
    border-radius: 0;
    background: none;
}
.se-countdown .inv-countdown__item + .inv-countdown__item { border-left: 1px solid color-mix(in srgb, var(--inv-blush) 45%, transparent); }
.inv-countdown__value { font: 500 2.3rem/1 var(--se-serif); color: #fff; }
.inv-countdown__label { margin-top: .4rem; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--inv-blush); opacity: 1; }
.inv-countdown__done { font: italic 1.1rem/1.6 var(--se-serif); color: #fff; }
.inv-countdown__actions { margin-top: 1.8rem; }
.inv-countdown__actions .inv-button { padding: .6rem 1rem; font-size: .76rem; }

/* ------------------------------------------------------------------ events */

.se-events__bloom { top: 11rem; right: -11%; width: 32%; rotate: -8deg; z-index: 2 !important; }
.se-event {
    margin-top: 1.8rem;
    overflow: hidden;
    border-radius: 26px;
    background: var(--se-card);
    text-align: left;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--inv-primary) 14%, transparent), var(--se-shadow);
}
.se-event__head {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 175px;
    padding: 1.1rem 1.3rem 1.15rem;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--inv-deep) 20%, transparent) 0%, color-mix(in srgb, var(--inv-deep) 55%, transparent) 50%, color-mix(in srgb, var(--inv-deep) 95%, transparent) 100%),
        var(--se-photo) center / cover no-repeat;
    color: #fff;
}
.se-event__head--empty {
    min-height: 130px;
    background:
        radial-gradient(60% 80% at 100% 0%, color-mix(in srgb, var(--inv-leaf) 50%, transparent), transparent 70%),
        linear-gradient(160deg, var(--inv-primary), var(--inv-deep));
}
.se-event__num { font: italic 500 1rem/1 var(--se-serif); color: var(--inv-blush); }
.se-event__name { margin: .3rem 0 0; font: 500 2.05rem/1.1 var(--se-serif); color: #fff; text-shadow: 0 2px 12px rgb(0 0 0 / .35); }
.se-event__body { padding: 1.3rem 1.3rem 1.5rem; font-size: .92rem; line-height: 1.55; }
.se-event__date { font: 600 1.3rem/1.35 var(--se-serif); color: var(--inv-primary); }
.se-event__time { margin-top: .3rem; font: 500 .9rem/1.5 var(--se-sans); color: var(--inv-text); }
.se-event__time .se-icon, .se-event__dress .se-icon { color: var(--se-accent-ink); }
.se-event__place {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: .65rem;
    margin-top: 1rem;
    padding: .9rem 1rem;
    border-radius: 16px;
    background: color-mix(in srgb, var(--inv-blush) 42%, #fff);
}
.se-event__place .se-icon { grid-row: span 2; width: 1.3rem; height: 1.3rem; margin-top: .15rem; color: var(--se-accent-ink); }
.se-event__venue { display: block; font: 600 1.12rem/1.35 var(--se-serif); color: var(--inv-text); }
.se-event__address { display: block; margin-top: .15rem; font-size: .86rem; }
.se-event__dress { margin-top: .85rem; font-size: .88rem; }
.se-event .inv-maps { margin-top: 1.1rem; text-align: left; }

/* ------------------------------------------------------------------ love story */

.se-story__bud { top: -1.2rem; right: -4%; width: 24%; scale: -1 1; }
.se-timeline { position: relative; margin: 0 auto; padding: 0 0 0 2.4rem; max-width: 24rem; list-style: none; text-align: left; }
.se-timeline::before {
    content: "";
    position: absolute;
    left: .78rem;
    top: .5rem;
    bottom: .5rem;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--inv-primary), var(--inv-leaf) 75%, transparent);
}
.se-moment { position: relative; }
.se-moment + .se-moment { margin-top: 2rem; }
.se-moment__leaf {
    position: absolute;
    left: -2.25rem;
    top: .15rem;
    width: 1.45rem;
    height: 1.1rem;
    border-radius: 55% 45% 50% 50%;
    rotate: -28deg;
    background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--inv-leaf) 60%, #fff), var(--inv-primary));
    box-shadow: 0 0 0 3px var(--inv-background);
}
.se-moment__date {
    display: inline-block;
    padding: .22rem .75rem;
    border-radius: 999px;
    background: var(--inv-blush);
    color: var(--inv-deep);
    font: 600 .72rem/1.4 var(--se-sans);
    letter-spacing: .08em;
}
.se-moment__title { margin: .45rem 0 0; font: 600 1.35rem/1.25 var(--se-serif); color: var(--inv-primary); }
.se-moment__story { margin-top: .35rem; font-size: .9rem; line-height: 1.6; }
.se-moment__photo { display: block; width: 100%; max-width: 15rem; aspect-ratio: 4 / 3; margin-top: .75rem; object-fit: cover; border-radius: 18px; box-shadow: var(--se-shadow); }

/* ------------------------------------------------------------------ gallery (deep) */

.se-gallery { padding-top: 8rem; }
.se-gallery__garland { top: -3.6rem; left: -14%; width: 40%; }
.se-gallery .inv-gallery { gap: .55rem; }
.se-gallery .inv-gallery__item { border-radius: 16px; box-shadow: 0 16px 30px -18px rgb(0 0 0 / .7); }
.se-gallery .inv-gallery__item:nth-child(5n + 1) { grid-column: span 2; aspect-ratio: 16 / 10; }

/* ------------------------------------------------------------------ live streaming */

.se-live__card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    color: var(--se-on-deep);
    background: linear-gradient(160deg, var(--inv-primary), var(--se-night));
    box-shadow: var(--se-shadow);
}
.se-live__body { position: relative; z-index: 1; padding: 2.1rem 1.4rem 2rem; }
.se-live__icon {
    display: inline-grid;
    place-items: center;
    width: 3.3rem;
    height: 3.3rem;
    border-radius: 50%;
    background: var(--se-accent-ink);
    color: #fff;
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--inv-blush) 25%, transparent);
}
.se-live__icon .se-icon { width: 1.5rem; height: 1.5rem; }
.se-live__platform { margin-top: .9rem; font: 500 1.6rem/1.2 var(--se-serif); }
.se-live__text { margin-top: .5rem; font-size: .93rem; color: var(--se-on-deep-soft); }
.se-live__note { margin-top: .45rem; font: italic 1.02rem/1.5 var(--se-serif); color: var(--inv-blush); }

/* ------------------------------------------------------------------ gift: bank cards */

.se-gift__bud { top: -1.2rem; left: -4%; width: 23%; }
.inv-gift { display: grid; gap: .9rem; margin-top: 1.6rem; }
.inv-gift__accounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.inv-gift__account + .inv-gift__account { margin-top: 0; }
.inv-gift__accounts > .inv-gift__account:last-child:nth-child(odd) { grid-column: 1 / -1; }
.inv-gift__account:not(.inv-gift__address) {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: .85rem;
    border-radius: 16px;
    text-align: left;
    color: #fff;
    background:
        radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--inv-leaf) 45%, transparent), transparent 40%),
        radial-gradient(circle at 0% 110%, color-mix(in srgb, var(--inv-accent) 40%, transparent), transparent 55%),
        linear-gradient(135deg, var(--inv-primary) 0%, var(--se-night) 100%);
    box-shadow: 0 16px 28px -18px color-mix(in srgb, var(--inv-deep) 90%, transparent);
}
/* the card chip, in the flow under the logo */
.inv-gift__account:not(.inv-gift__address)::before {
    content: "";
    order: 1;
    flex: none;
    width: 2.2rem;
    height: 1.65rem;
    margin-top: .6rem;
    border-radius: .35rem;
    background:
        linear-gradient(90deg, transparent 31%, rgb(90 50 30 / .28) 32% 34%, transparent 35% 65%, rgb(90 50 30 / .28) 66% 68%, transparent 69%),
        linear-gradient(0deg, transparent 46%, rgb(90 50 30 / .28) 47% 53%, transparent 54%),
        linear-gradient(135deg, #f7e1d3, var(--inv-blush) 50%, color-mix(in srgb, var(--inv-accent) 60%, #fff));
}
/* two round leaves, like a watermark */
.inv-gift__account:not(.inv-gift__address)::after {
    content: "";
    position: absolute;
    right: -18px;
    bottom: -22px;
    width: 80px;
    height: 64px;
    border-radius: 55% 45% 50% 50%;
    rotate: -30deg;
    background: color-mix(in srgb, var(--inv-leaf) 22%, transparent);
    box-shadow: -36px -26px 0 -10px color-mix(in srgb, var(--inv-leaf) 16%, transparent);
    pointer-events: none;
}
.inv-gift__bank {
    display: flex;
    align-items: center;
    max-width: 100%;
    min-height: 1.5rem;
    margin: 0;
    font: 600 1rem/1.2 var(--se-serif);
    overflow-wrap: anywhere;
}
.inv-gift__account:not(.inv-gift__address) .inv-gift__logo { height: 1.5rem; padding: .2rem .45rem; border-radius: .4rem; }
.inv-gift__account:not(.inv-gift__address) .inv-gift__logo img { max-width: 5rem; }
.inv-gift__number {
    order: 2;
    max-width: 100%;
    margin: .55rem 0 .2rem;
    font: 500 1rem/1.3 var(--se-sans);
    letter-spacing: .1em;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}
.inv-gift__holder {
    order: 3;
    position: relative;
    z-index: 1;
    max-width: 100%;
    margin: 0;
    font-size: .6rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: .12em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}
.inv-gift__account:not(.inv-gift__address) .inv-button {
    order: 4;
    position: relative;
    z-index: 1;
    margin-top: .65rem;
    padding: .35rem .7rem;
    background: rgb(255 255 255 / .14);
    color: #fff;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-blush) 75%, transparent);
    font-size: .65rem;
}
.inv-gift__address {
    padding: 1.5rem 1.3rem;
    border-radius: 20px;
    background: var(--se-card);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-primary) 30%, transparent), inset 0 0 0 6px #fff, inset 0 0 0 7px color-mix(in srgb, var(--inv-blush) 80%, transparent), var(--se-shadow);
    font-size: .92rem;
}
.inv-gift__address .inv-gift__bank {
    justify-content: center;
    min-height: 0;
    font: 600 .7rem/1.4 var(--se-sans);
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--se-accent-ink);
}
.inv-gift__address .inv-gift__holder { padding: 0; margin-top: .6rem; font: 600 1.2rem/1.4 var(--se-serif); letter-spacing: .02em; text-transform: none; }
.inv-gift__address .inv-button { margin-top: .9rem; }

/* ------------------------------------------------------------------ rsvp & wishes */

.se-rsvp { padding-top: 5.5rem; }
.se-rsvp__bud { top: -1.2rem; right: -4%; width: 24%; scale: -1 1; }
.se-formcard { margin-top: 1.5rem; padding: 1.5rem 1.2rem; text-align: left; }
.inv-form label, .inv-form__choices legend { font-size: .85rem; font-weight: 500; }
.inv-form input:not([type=radio]):not([type=checkbox]), .inv-form select, .inv-form textarea {
    padding: .7rem .85rem;
    border: 1px solid color-mix(in srgb, var(--inv-primary) 35%, transparent);
    border-radius: 12px;
    background: color-mix(in srgb, var(--inv-soft) 45%, #fff);
    color: var(--inv-text);
}
.inv-form input:focus, .inv-form select:focus, .inv-form textarea:focus {
    outline: 2px solid color-mix(in srgb, var(--inv-primary) 45%, transparent);
    outline-offset: 1px;
    border-color: var(--inv-primary);
}
.inv-form > .inv-button, .inv-form button[type=submit] { width: 100%; padding: .85rem 1rem; }
.inv-form__notice { background: color-mix(in srgb, var(--inv-blush) 35%, #fff); }
.inv-wishes { --inv-wishes-height: 20rem; }
.inv-wishes__list { margin-top: 1.4rem; }
.inv-wish {
    padding: .65rem .8rem;
    border: 1px solid color-mix(in srgb, var(--inv-primary) 16%, transparent);
    border-left: 3px solid var(--inv-primary);
    border-radius: 12px;
    background: color-mix(in srgb, var(--inv-soft) 40%, #fff);
}
.inv-wish__name { font: 600 1.02rem/1.3 var(--se-serif); color: var(--inv-primary); }
.inv-wish__message { margin-top: .15rem; font-size: .88rem; line-height: 1.45; overflow-wrap: anywhere; }
.inv-wish__time { margin-top: .25rem; font-size: .7rem; color: color-mix(in srgb, var(--inv-text) 75%, transparent); }
.inv-wishes__pager { gap: .9rem; margin-top: 1rem; }
.inv-wishes__page-button {
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid color-mix(in srgb, var(--inv-primary) 40%, transparent);
    background: #fff;
    color: var(--inv-primary);
    font: 500 1.2rem/1 var(--se-serif);
    transition: background .2s, color .2s;
}
.inv-wishes__page-button:not(:disabled):hover { background: var(--inv-primary); color: #fff; }
.inv-wishes__page { min-width: 4rem; font: 500 .72rem/1.4 var(--se-sans); letter-spacing: .2em; color: var(--inv-primary); opacity: 1; }

/* ------------------------------------------------------------------ closing: photo fading into deep green */

.se-closing {
    padding: 0 0 2.4rem;
    color: var(--se-on-deep);
    background: var(--inv-deep);
}
.se-closing__photo {
    position: relative;
    z-index: 0 !important;
    height: min(112vw, 450px);
    overflow: hidden;
    background:
        radial-gradient(70% 50% at 50% 40%, color-mix(in srgb, var(--inv-leaf) 45%, transparent), transparent 70%),
        radial-gradient(60% 40% at 90% 90%, color-mix(in srgb, var(--inv-accent) 30%, transparent), transparent 70%),
        linear-gradient(180deg, var(--inv-primary), var(--inv-deep));
}
.se-closing__photo--empty { height: min(70vw, 280px); }
.se-closing__photo img { position: absolute; left: 0; top: -30px; width: 100%; height: calc(100% + 60px); object-fit: cover; object-position: center 25%; }
.se-closing__photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, color-mix(in srgb, var(--inv-deep) 45%, transparent) 0%, transparent 24%, transparent 40%, color-mix(in srgb, var(--inv-deep) 72%, transparent) 68%, var(--inv-deep) 100%);
}
.se-closing__garland { top: -2.4rem; left: -15%; width: 30%; z-index: 2 !important; }
.se-closing__garland--right { left: auto; right: -16%; scale: -1 1; }
.se-closing__body { margin-top: -5.5rem; padding: 0 1.6rem; z-index: 3 !important; }
.se-closing__title { font-size: clamp(1.7rem, 7.6vw, 2rem); color: #fff; text-shadow: 0 2px 16px rgb(0 0 0 / .45); }
.se-closing__title em { color: var(--inv-blush); }
.se-closing .se-lead { margin-top: .55rem; font-size: .85rem; line-height: 1.55; color: var(--se-on-deep-soft); }
.se-closing__sign { margin-top: .75rem; font: italic 500 .88rem/1.4 var(--se-serif); color: var(--inv-blush); }
.se-closing__names { margin-top: .1rem; font-size: clamp(1.9rem, 8.5vw, 2.3rem); color: #fff; text-shadow: 0 2px 18px rgb(0 0 0 / .35); }
.se-closing__names span { font-size: .62em; color: var(--inv-blush); }
.se-closing__seal { width: 2.8rem; height: 2.8rem; margin-top: .6rem; font-size: .76rem; }
/* flowering gums rise at the bottom corners (the art's cut edges are feathered in the file) */
.se-closing__bloom {
    bottom: -2.2rem;
    left: -12%;
    width: 25%;
    scale: -1 1;
    z-index: 1 !important;
}
.se-closing__bloom--right { left: auto; right: -11%; scale: 1 1; }
/* with the platform credit below, the closing ends sooner (the footer keeps the page-end space) */
.se-page:has(.se-foot .inv-branding) .se-closing { padding-bottom: 2.4rem; }

/* the footer continues the closing's deep color */
.inv-checkin { position: relative; z-index: 1; background: var(--inv-deep); color: #fff; }
.se-foot { position: relative; z-index: 1; padding: 0 1.4rem; text-align: center; background: var(--inv-deep); }
.se-foot:has(.inv-branding) { padding-bottom: 3.6rem; }
.se-branding { color: var(--se-on-deep-soft); }
.se-branding a { color: var(--inv-blush); }

/* ------------------------------------------------------------------ shared fixed UI */

.inv-nav {
    --inv-nav-bg: color-mix(in srgb, #fff 90%, transparent);
    --inv-nav-text: color-mix(in srgb, var(--inv-text) 80%, transparent);
    --inv-nav-active: var(--inv-primary);
    max-width: min(calc(100vw - 1.5rem), calc(var(--se-col) - 1.5rem));
    border-color: color-mix(in srgb, var(--inv-primary) 25%, transparent);
    font-family: var(--se-sans);
}

/* keep the music buttons inside the column on wide screens */
.inv-music { right: max(1rem, calc(50vw - var(--se-col) / 2 + 1rem)); }
.inv-music__button {
    background: linear-gradient(135deg, var(--inv-primary), var(--inv-deep));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--inv-blush) 75%, transparent), 0 8px 18px -6px color-mix(in srgb, var(--inv-deep) 70%, transparent);
}

@media (max-width: 380px) {
    .se-section { padding-inline: 1rem; }
    .se-title { font-size: 2.25rem; }
    .se-person { gap: .8rem; }
    .se-person__nick { font-size: 2.3rem; }
    .se-bigdate { font-size: 2.8rem; }
    .inv-countdown__value { font-size: 2rem; }
}

/* ---------- intro scene "Rimbun Kabut Gum" (scene.json + sections/_scene; the intro lives in <body>, outside the page) ---------- */
/* the camera pushes through silver eucalyptus into a misty dawn grove: garlands drop in, red gums rise, the seal swings on its cord */
.se-scene-photo { position: absolute; inset: 0; background: var(--se-scene-photo) 50% 30% / cover no-repeat; opacity: .9; -webkit-mask: linear-gradient(180deg, #000 45%, transparent); mask: linear-gradient(180deg, #000 45%, transparent); }
.se-scene-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--inv-deep) 35%, transparent), transparent 22%, transparent 50%, color-mix(in srgb, var(--inv-deep) 55%, transparent)); }
.se-scene-light {
    position: absolute; inset: 0;
    background: repeating-linear-gradient(104deg, transparent 0 7%, color-mix(in srgb, var(--inv-blush) 16%, transparent) 9% 12%, transparent 15% 22%);
    -webkit-mask: linear-gradient(180deg, #000, transparent 85%); mask: linear-gradient(180deg, #000, transparent 85%);
}
.se-scene-mist {
    position: absolute; inset: 0; filter: blur(6px);
    background: radial-gradient(30% 50% at 22% 55%, color-mix(in srgb, #fff 34%, transparent), transparent 70%), radial-gradient(34% 45% at 58% 45%, color-mix(in srgb, var(--inv-leaf) 34%, transparent), transparent 70%), radial-gradient(28% 50% at 86% 60%, color-mix(in srgb, #fff 28%, transparent), transparent 70%);
}
.se-scene-flora { filter: drop-shadow(0 14px 18px rgb(0 0 0 / .42)); }
.se-v-eucalyptus-mist .se-scene-flora--euc-silver { filter: hue-rotate(14deg) drop-shadow(0 14px 18px rgb(0 0 0 / .42)); }
.se-v-olive-grove .se-scene-flora--euc-silver { filter: hue-rotate(-42deg) saturate(.85) drop-shadow(0 14px 18px rgb(0 0 0 / .42)); }
.se-scene-flora--mirror { transform: scaleX(-1); }
/* the gum plate is cut off at its top edge: feather it into the mist */
.se-scene-flora--gum-bloom { -webkit-mask: linear-gradient(180deg, transparent, #000 30%); mask: linear-gradient(180deg, transparent, #000 30%); }
.se-scene-charm { position: relative; height: 100%; }
.se-scene-charm__cord { position: absolute; left: 50%; top: 0; bottom: 3.6rem; width: 1.5px; translate: -50% 0; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--inv-blush) 80%, transparent) 20%); }
.se-scene-charm__cord::before, .se-scene-charm__cord::after {
    content: ""; position: absolute; bottom: 18%; width: 15px; height: 12px; border-radius: 55% 45% 50% 50%;
    background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--inv-leaf) 45%, #fff), var(--inv-leaf));
}
.se-scene-charm__cord::before { right: 1px; rotate: 30deg; }
.se-scene-charm__cord::after { left: 1px; bottom: 34%; rotate: -30deg; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--inv-blush) 50%, #fff), var(--inv-blush)); }
.se-scene-charm__seal { position: absolute; left: 50%; bottom: 0; translate: -50% 0; }
.se-scene-leaf {
    display: block; width: 100%; height: 100%; border-radius: 55% 45% 50% 50%;
    background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--se-c, var(--inv-leaf)) 45%, #fff), var(--se-c, var(--inv-leaf)));
    box-shadow: 0 3px 4px rgb(0 0 0 / .25);
}
/* the card: a frosted deep-green panel with the cover's blush pill, script names and blush date */
body.se-body .inv-intro--scene .inv-scene__card {
    top: 64%; aspect-ratio: auto; padding: 1.2rem 1.1rem 1.15rem; border-radius: 22px; -webkit-mask: none; mask: none;
    background: color-mix(in srgb, var(--inv-deep) 58%, transparent);
    -webkit-backdrop-filter: blur(8px) saturate(1.1); backdrop-filter: blur(8px) saturate(1.1);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-blush) 55%, transparent), 0 0 0 6px color-mix(in srgb, #fff 7%, transparent), 0 24px 40px -18px rgb(0 0 0 / .6);
}
body.se-body .inv-scene__card .inv-intro__label {
    justify-self: center; margin-bottom: .9rem; padding: .4rem 1rem .36rem; border-radius: 999px;
    background: var(--inv-blush); color: var(--inv-deep); font: 600 .66rem/1.3 var(--se-sans); letter-spacing: .3em;
}
body.se-body .inv-scene__card .inv-intro__names { font-family: var(--se-script); font-weight: 400; line-height: 1.15; color: #fff; text-shadow: 0 2px 16px rgb(0 0 0 / .35); }
body.se-body .inv-scene__card .inv-intro__rule { background: linear-gradient(90deg, transparent, var(--inv-blush), transparent); }
body.se-body .inv-scene__card .inv-intro__date { font: italic 500 1rem/1.4 var(--se-serif); letter-spacing: .02em; color: var(--inv-blush); }
body.se-body .inv-intro--scene .inv-intro__skip { background: color-mix(in srgb, var(--inv-deep) 60%, transparent); border-color: color-mix(in srgb, var(--inv-blush) 55%, transparent); color: #fff; }
