/*
 * Studio invitations: the shared look of every Studio design. A design sets its palette and fonts as
 * CSS variables on <body> (the customer can change them all) and adds its own composition in
 * designs/{slug}.css. Everything that moves animates transform, opacity or clip-path(inset) only, so
 * the shared link, the MP4 video and the PDF show the same motion (see storybook-invitation.css).
 */

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body.st {
    --st-pad: 22px; --st-radius: 18px; --st-ss: 1.28; --st-shadow: 0 18px 50px rgba(0, 0, 0, .18);
    --st-line: color-mix(in srgb, var(--st-orn) 55%, transparent);
    --st-soft: color-mix(in srgb, var(--st-accent) 12%, var(--st-surface));
    margin: 0; min-height: 100vh; display: flex; justify-content: center; overflow-x: hidden;
    background: color-mix(in srgb, var(--st-bg) 88%, #000); color: var(--st-ink);
    font-family: var(--st-body-en); font-size: calc(16px * var(--st-size)); line-height: 1.6;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
body.st.doors-locked { overflow: hidden; height: 100vh; }
body.st.doors-locked .app-wrapper { overflow: hidden; height: 100vh; }
.st .app-wrapper { position: relative; width: 100vw; max-width: 460px; overflow-x: hidden; background: var(--st-bg); box-shadow: 0 0 60px rgba(0, 0, 0, .35); }
.st img { max-width: none; }
.st button { font: inherit; }

/* ---------- Typography: roles × languages ---------- */
.st .st-h { font-family: var(--st-head-en); }
.st .st-s { font-family: var(--st-script-en); }
.st .st-b { font-family: var(--st-body-en); }
.st [data-l='mr'], .st [data-l='hi'], .st .st-b [data-l='mr'], .st .st-b [data-l='hi'] { font-family: var(--st-body-dev); }
.st .st-h [data-l='mr'], .st .st-h [data-l='hi'], .st .st-s [data-l='mr'], .st .st-s [data-l='hi'] { font-family: var(--st-head-dev); }
/* Script fonts look small; Devanagari headings need air for matras and conjuncts. */
.st .st-s [data-l='en'] { font-size: calc(1em * var(--st-ss)); line-height: 1.12; }
.st .st-s [data-l]:not([data-l='en']) { line-height: 1.45; }
.st .st-h [data-l]:not([data-l='en']) { line-height: 1.55; letter-spacing: 0 !important; text-transform: none !important; }
.st [data-l]:not([data-l='en']) { font-feature-settings: 'kern', 'liga', 'clig', 'calt'; }
.st [data-l] { white-space: pre-line; }
/* Two languages: the second (English) line sits smaller under the first. */
body.st[data-lang$='-en'] [data-l='en'] { display: block; font-size: .68em; opacity: .86; margin-top: .3em; letter-spacing: .02em; }
body.st[data-lang$='-en'] .st-s [data-l='en'] { font-size: calc(.62em * var(--st-ss)); }
body.st[data-lang$='-en'] :is(.st-btn, .st-op-hint, .st-count-cell small, .st-years span, .st-video-empty, .st-video-poster p, .st-count-live, .st-toast) [data-l='en'] { display: none !important; }
body.st[data-lang$='-en'] .st-join [data-l='en'] { display: none !important; }
.st .sb-empty { display: none !important; }
.st [data-anim='none'] { opacity: 1 !important; animation: none !important; }
.st .st-film-only { display: none; }
html.sb-film .st .st-film-only { display: block; }
html.sb-film .st .st-link-only { display: none !important; }
/* Links a PDF page can still open (the venue's route button); videos and images leave them out. */
html.sb-film:not(.sb-pdf) .st .st-pdf-link { display: none !important; }
.st .st-pdf-only { display: none; }
html.sb-film.sb-pdf .st .st-pdf-only:not([hidden]) { display: block; }
html.sb-film.sb-pdf .st .st-actions.st-pdf-only:not([hidden]) { display: flex; }

/* ---------- Sections ---------- */
.st .st-sec {
    position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 64px var(--st-pad); overflow: hidden; background: var(--st-bg); text-align: center; isolation: isolate;
}
.st.st-align-left .st-body { text-align: left; }
.st.st-align-left .st-actions, .st.st-align-left .st-people, .st.st-align-left .st-contacts { justify-content: flex-start; }
.st .st-body { position: relative; z-index: 4; width: 100%; max-width: 360px; }
.st .st-card { position: relative; padding: 30px 24px; color: var(--st-ink); }
.st.st-surface-card .st-card { background: var(--st-surface); border-radius: var(--st-radius); box-shadow: var(--st-shadow), inset 0 0 0 1px color-mix(in srgb, var(--st-orn) 35%, transparent); }
.st.st-surface-card .st-card::before { content: ''; position: absolute; inset: 7px; border: 1px solid color-mix(in srgb, var(--st-orn) 45%, transparent); border-radius: calc(var(--st-radius) - 6px); pointer-events: none; }
.st.st-surface-bleed .st-card { padding: 12px 6px; }
.st .st-card-wide { padding-left: 16px; padding-right: 16px; }

/* ---------- Backgrounds ---------- */
.st .st-bgl { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.st.st-bg-silk .st-bgl {
    background: linear-gradient(115deg, transparent 0 30%, rgba(255, 255, 255, .09) 42%, transparent 55% 70%, rgba(255, 255, 255, .06) 80%, transparent 92%),
        radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, .12), transparent 60%), radial-gradient(120% 60% at 50% 110%, rgba(0, 0, 0, .22), transparent 60%);
}
.st.st-bg-paper .st-bgl { background: url('art/paper-grain.png') repeat; background-size: 220px 220px; opacity: .55; }
.st.st-bg-pattern .st-bgl { background-image: var(--st-pattern, none); background-size: 96px 96px; background-repeat: repeat; opacity: .16; }
.st.st-bg-photo .st-bgl { background: linear-gradient(180deg, color-mix(in srgb, var(--st-bg) 55%, transparent), color-mix(in srgb, var(--st-bg) 80%, transparent)), var(--st-bg-photo, none) var(--st-bg-pos, 50% 50%) / cover no-repeat; transform: scale(var(--st-bg-zoom, 1)); transform-origin: var(--st-bg-pos, 50% 50%); }
.st.st-bg-photo .st-sec { background-color: var(--st-bg); }

/* ---------- Border frame and ornament corners ---------- */
.st .st-frame { position: absolute; inset: 12px; z-index: 3; pointer-events: none; }
.st.st-border-ornate .st-frame { border: 1px solid var(--st-line); }
.st.st-border-frame .st-frame { border: 4px double var(--st-orn); }
.st.st-border-line .st-frame { border: 1px solid var(--st-line); inset: 16px; }
.st.st-border-none .st-frame { display: none; }
.st .st-c { position: absolute; width: 78px; height: 78px; color: var(--st-orn); }
.st:not(.st-border-ornate) .st-c, .st.st-kit-none .st-c { display: none; }
.st .st-c-tl { top: -10px; left: -10px; }
.st .st-c-tr { top: -10px; right: -10px; transform: scaleX(-1); }
.st .st-c-bl { bottom: -10px; left: -10px; transform: scaleY(-1); }
.st .st-c-br { bottom: -10px; right: -10px; transform: scale(-1); }
.st .st-orn { display: block; color: var(--st-orn); line-height: 0; font-style: normal; }
.st .st-orn svg { display: block; width: 100%; height: 100%; overflow: visible; }
.st.st-kit-none .st-orn:not(.st-door-art):not(.st-fold-art) { display: none; }
.st .st-div { width: 210px; height: 26px; margin: 10px auto 14px; }
.st.st-align-left .st-div { margin-left: 0; }

/* ---------- Text pieces ---------- */
.st .st-kicker { margin: 0 0 6px; font-size: .78rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--st-accent); }
.st .st-kicker [data-l]:not([data-l='en']) { font-size: 1.15rem; font-weight: 500; }
.st .st-eyebrow { margin: 0 0 4px; font-size: .9rem; letter-spacing: .32em; text-transform: uppercase; color: var(--st-head); }
.st .st-eyebrow [data-l]:not([data-l='en']) { font-size: 1.5rem; font-weight: 600; }
.st .st-names { margin: 8px 0 0; font-size: 2.55rem; font-weight: 400; line-height: 1.1; color: var(--st-head); }
.st .st-names > span { display: block; }
.st .st-names [data-l]:not([data-l='en']) { font-size: .82em; font-weight: 600; }
.st .st-join { font-size: .52em; margin: 2px 0; color: var(--st-accent); }
.st .st-heading { margin: 0; font-size: 2.15rem; font-weight: 400; line-height: 1.2; color: var(--st-head); }
.st .st-heading [data-l]:not([data-l='en']) { font-size: .82em; font-weight: 600; }
.st .st-heading.st-h { font-size: 1.45rem; letter-spacing: .12em; text-transform: uppercase; }
.st .st-date { margin: 0; font-size: 1.05rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--st-head); }
.st .st-time { margin: 2px 0 0; font-size: 1rem; color: var(--st-accent); }
.st .st-line, .st .st-text { margin: 10px 0 0; font-size: 1.05rem; line-height: 1.7; }
.st .st-b [data-l]:not([data-l='en']) { font-size: .94em; line-height: 1.85; }
.st .st-prose { text-wrap: pretty; }
.st .st-venue { margin: 0; font-size: 1.1rem; font-weight: 600; color: var(--st-head); }
.st .st-address { margin: 4px 0 0; font-size: .98rem; line-height: 1.6; }
.st .st-note { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--st-line); font-size: .92rem; font-style: italic; }
.st .st-note [data-l]:not([data-l='en']) { font-style: normal; }
.st .st-when { margin-top: 4px; }
.st .st-where { margin-top: 14px; }
.st .st-pin { display: inline-block; width: .8em; height: 1em; margin-right: 6px; vertical-align: -.12em; background: var(--st-accent); -webkit-mask: url('art/pin.svg') center / contain no-repeat; mask: url('art/pin.svg') center / contain no-repeat; }
html.sb-film .st .st-pin { display: none; }

/* ---------- Buttons ---------- */
.st .st-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.st .st-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 22px; cursor: pointer;
    border: 0; border-radius: 999px; background: var(--st-accent); color: var(--st-surface) !important; text-decoration: none;
    font-family: var(--st-body-en); font-size: .9rem; font-weight: 600; letter-spacing: .04em; line-height: 1.2;
    box-shadow: 0 8px 22px color-mix(in srgb, var(--st-accent) 35%, transparent); transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.st .st-btn [data-l='mr'], .st .st-btn [data-l='hi'] { font-family: var(--st-body-dev); font-weight: 600; }
.st .st-btn:hover { transform: translateY(-2px); }
.st .st-btn:active { transform: scale(.97); }
.st .st-btn:focus-visible { outline: 2px solid var(--st-orn); outline-offset: 3px; }
.st .st-btn[hidden] { display: none; }
.st .st-btn-ghost, .st.st-btn-outline .st-btn { background: transparent; color: var(--st-head) !important; box-shadow: inset 0 0 0 1.5px var(--st-accent); }
.st.st-btn-square .st-btn { border-radius: 3px; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; }
.st.st-btn-square .st-btn [data-l]:not([data-l='en']) { font-size: .95rem; }
.st.st-btn-ornate .st-btn:not(.st-btn-ghost) {
    background: linear-gradient(180deg, color-mix(in srgb, var(--st-orn) 70%, #fff), var(--st-orn) 45%, color-mix(in srgb, var(--st-orn) 70%, #000));
    color: var(--st-bg) !important; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), inset 0 0 0 4px var(--st-orn), inset 0 0 0 5px rgba(0, 0, 0, .25), 0 8px 22px rgba(0, 0, 0, .25);
}
.st .st-btn-sm { min-height: 36px; padding: 6px 16px; font-size: .8rem; }
.st .st-btn-lg { min-height: 52px; padding: 12px 34px; font-size: 1rem; }
.st .st-btn-round { width: 42px; min-height: 42px; padding: 0; font-size: 1.4rem; }

/* ---------- Artwork placement and gentle loops ---------- */
.st .st-art { position: absolute; z-index: 1; width: var(--w, 40%); pointer-events: none; line-height: 0; }
.st .st-art > img { display: block; width: 100%; height: auto; }
.st .st-art.st-front { z-index: 5; }
.st .st-at-top { top: 0; left: 50%; width: var(--w, 100%); margin-left: calc(var(--w, 100%) / -2); }
.st .st-at-bottom { bottom: 0; left: 50%; width: var(--w, 100%); margin-left: calc(var(--w, 100%) / -2); }
.st .st-at-top-left { top: 0; left: 0; }
.st .st-at-top-right { top: 0; right: 0; }
.st .st-at-bottom-left { bottom: 0; left: 0; }
.st .st-at-bottom-right { bottom: 0; right: 0; }
.st .st-at-left { top: var(--y, 40%); left: 0; }
.st .st-at-right { top: var(--y, 40%); right: 0; }
.st .st-at-behind { top: var(--y, 50%); left: 50%; width: var(--w, 90%); translate: -50% -50%; opacity: .16; }
.st .st-at-at { left: var(--x, 50%); top: var(--y, 50%); translate: -50% -50%; }
.st .st-flip-x > img { transform: scaleX(-1); }
.st .st-loop-sway { animation: st-sway 6s ease-in-out infinite; transform-origin: 50% 0; }
.st .st-loop-sway-late { animation: st-sway 7s ease-in-out -3s infinite; transform-origin: 50% 0; }
.st .st-loop-float { animation: st-float 6s ease-in-out infinite; }
.st .st-loop-spin { animation: st-spin 90s linear infinite; }
.st .st-loop-pulse { animation: st-pulse 4s ease-in-out infinite; }
.st .st-loop-drift { animation: st-drift 9s ease-in-out infinite; }
.st .st-loop-bob { animation: st-bob 3.4s ease-in-out infinite; }
@keyframes st-sway { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
@keyframes st-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes st-spin { to { transform: rotate(360deg); } }
@keyframes st-pulse { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes st-drift { 0%, 100% { transform: translateX(-8px); } 50% { transform: translateX(8px); } }
@keyframes st-bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(3deg); } }

/* ---------- Floating decorations (petals, sparkles, confetti…) ---------- */
.st .st-fall { position: absolute; inset: 0; z-index: 5; overflow: hidden; pointer-events: none; }
.st.st-part-none .st-fall { display: none; }
.st .st-fall i { position: absolute; top: -40px; left: 10%; width: 16px; height: 16px; opacity: 0; background: center / contain no-repeat; animation: st-fall-down 11s linear infinite; }
.st .st-fall i:nth-child(1) { left: 6%; animation-delay: -1s; animation-duration: 12s; }
.st .st-fall i:nth-child(2) { left: 22%; animation-delay: -6s; width: 12px; height: 12px; animation-duration: 10s; }
.st .st-fall i:nth-child(3) { left: 38%; animation-delay: -3s; width: 18px; height: 18px; animation-duration: 13s; }
.st .st-fall i:nth-child(4) { left: 55%; animation-delay: -8.5s; width: 13px; height: 13px; }
.st .st-fall i:nth-child(5) { left: 70%; animation-delay: -4.5s; animation-duration: 12.5s; }
.st .st-fall i:nth-child(6) { left: 84%; animation-delay: -10s; width: 12px; height: 12px; animation-duration: 9.5s; }
.st .st-fall i:nth-child(7) { left: 94%; animation-delay: -7s; width: 15px; height: 15px; animation-duration: 14s; }
@keyframes st-fall-down { 0% { opacity: 0; transform: translate(0, 0) rotate(0); } 8% { opacity: .95; } 50% { transform: translate(28px, 470px) rotate(200deg); } 90% { opacity: .9; } 100% { opacity: 0; transform: translate(-14px, 940px) rotate(400deg); } }
@keyframes st-rise-up { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 10% { opacity: .9; } 100% { opacity: 0; transform: translate(18px, -900px) scale(1.1); } }
@keyframes st-twinkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
.st.st-part-petals .st-fall i { background-image: url('art/p-rose.svg'); }
.st.st-part-petals .st-fall i:nth-child(even) { background-image: url('art/p-rose-2.svg'); }
.st.st-part-marigold .st-fall i { background-image: url('art/p-marigold.svg'); }
.st.st-part-marigold .st-fall i:nth-child(3n) { background-image: url('art/p-marigold-2.svg'); }
.st.st-part-jasmine .st-fall i { background-image: url('art/p-jasmine.svg'); }
.st.st-part-confetti .st-fall i { background-image: url('art/p-confetti-1.svg'); }
.st.st-part-confetti .st-fall i:nth-child(2n) { background-image: url('art/p-confetti-2.svg'); }
.st.st-part-confetti .st-fall i:nth-child(3n) { background-image: url('art/p-confetti-3.svg'); }
.st.st-part-hearts .st-fall i { background-image: url('art/p-heart.svg'); top: auto; bottom: -30px; animation-name: st-rise-up; }
.st.st-part-bubbles .st-fall i { background-image: url('art/p-bubble.svg'); top: auto; bottom: -30px; width: 26px; height: 26px; animation-name: st-rise-up; }
.st.st-part-bubbles .st-fall i:nth-child(odd) { width: 18px; height: 18px; }
.st.st-part-gold .st-fall i, .st.st-part-stars .st-fall i { background-image: url('art/p-sparkle.svg'); animation-name: st-twinkle; animation-duration: 3.6s; }
.st.st-part-stars .st-fall i { background-image: url('art/p-star.svg'); }
.st.st-part-gold .st-fall i:nth-child(1), .st.st-part-stars .st-fall i:nth-child(1) { top: 12%; }
.st.st-part-gold .st-fall i:nth-child(2), .st.st-part-stars .st-fall i:nth-child(2) { top: 28%; animation-delay: -1.2s; }
.st.st-part-gold .st-fall i:nth-child(3), .st.st-part-stars .st-fall i:nth-child(3) { top: 8%; animation-delay: -2.4s; }
.st.st-part-gold .st-fall i:nth-child(4), .st.st-part-stars .st-fall i:nth-child(4) { top: 74%; animation-delay: -.6s; }
.st.st-part-gold .st-fall i:nth-child(5), .st.st-part-stars .st-fall i:nth-child(5) { top: 86%; animation-delay: -1.8s; }
.st.st-part-gold .st-fall i:nth-child(6), .st.st-part-stars .st-fall i:nth-child(6) { top: 46%; animation-delay: -3s; }
.st.st-part-gold .st-fall i:nth-child(7), .st.st-part-stars .st-fall i:nth-child(7) { top: 62%; animation-delay: -2.1s; }

/* ---------- Cover layouts ---------- */
.st .st-cover .st-body { max-width: 370px; }
.st .st-cover-card { padding: 34px 26px; }
.st .st-arch, .st .st-medal, .st .st-cover-photo { display: none; }
.st .st-mono { font-size: 2.4rem; color: var(--st-head); line-height: 1; }
/* Royal arch: the names sit inside an arch drawn in the ornament style. */
.st.st-hero-arch .st-arch { display: block; position: absolute; left: 50%; top: 50%; width: 352px; height: 520px; translate: -50% -50%; color: var(--st-orn); pointer-events: none; }
.st.st-hero-arch .st-cover-card { padding: 150px 34px 74px; min-height: 520px; display: flex; flex-direction: column; justify-content: center; background: transparent !important; box-shadow: none !important; }
.st.st-hero-arch .st-cover-card::before { display: none; }
/* Medallion: a monogram in an ornamental ring above the names. */
.st.st-hero-medallion .st-medal { display: grid; place-items: center; position: relative; width: 132px; height: 132px; margin: 0 auto 14px; }
.st.st-hero-medallion .st-medal .st-orn { position: absolute; inset: 0; }
/* Framed card: the classic printed invitation card. */
.st.st-hero-frame .st-cover-card { padding: 44px 28px; }
/* Typographic: very large names, nothing else. */
.st.st-hero-type .st-names { font-size: 3.4rem; }
.st.st-hero-type .st-cover-card { background: transparent !important; box-shadow: none !important; }
.st.st-hero-type .st-cover-card::before { display: none; }
/* Full photo: the host's photo (or the design's cover art) fills the screen, text sits at the bottom. */
.st.st-hero-photo .st-cover-photo { display: block; position: absolute; inset: 0; z-index: 2; overflow: hidden; }
.st.st-hero-photo .st-cover-photo .st-photo { width: 100%; height: 100%; object-fit: cover; }
.st.st-hero-photo .st-cover-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, color-mix(in srgb, var(--st-bg) 85%, transparent) 72%, var(--st-bg)); }
.st.st-hero-photo .st-cover { justify-content: flex-end; padding-bottom: 54px; }
.st.st-hero-photo .st-cover-card { background: transparent !important; box-shadow: none !important; padding-bottom: 10px; }
.st.st-hero-photo .st-cover-card::before { display: none; }
.st.st-hero-photo .st-cover .st-art { display: none; }
/* Other cover layouts show the host's own cover photo as a portrait above the names. */
.st:not(.st-hero-photo):not(.st-hero-magazine):not(.st-hero-postcard) .st-cover-photo:has(> img[data-host-photo]) {
    display: block; position: relative; z-index: 4; flex: none; width: 136px; height: 136px; margin: 0 auto 16px; border-radius: 50%; overflow: hidden;
    box-shadow: 0 0 0 3px var(--st-surface), 0 0 0 5px var(--st-orn), 0 14px 30px rgba(0, 0, 0, .25);
}
.st:not(.st-hero-photo):not(.st-hero-magazine):not(.st-hero-postcard) .st-cover-photo:has(> img[data-host-photo]) .st-photo { width: 100%; height: 100%; object-fit: cover; }
.st.st-hero-medallion .st-cover:has(.st-cover-photo > img[data-host-photo]) .st-medal { display: none; }
.st .st-scroll-cue { position: absolute; z-index: 5; bottom: 20px; left: 50%; width: 22px; height: 36px; margin-left: -11px; border: 1.5px solid var(--st-line); border-radius: 12px; }
.st .st-scroll-cue span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--st-accent); animation: st-cue 1.8s ease-in-out infinite; }
@keyframes st-cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
html.sb-film .st .st-scroll-cue { display: none; }

/* ---------- Photos (with an ornamental monogram until a photo is added) ---------- */
.st .st-photo { display: block; transform-origin: center; }
.st .st-optional:not(.has-photo) { display: none; }
.st .st-figure { margin: 16px auto 4px; width: 100%; max-width: 280px; border-radius: 16px; overflow: hidden; display: none; box-shadow: var(--st-shadow); }
.st .st-figure.has-photo { display: block; }
.st .st-figure .st-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.st .st-people { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 6px; }
.st .st-person { display: flex; flex-direction: column; align-items: center; }
.st .st-portrait { position: relative; width: 132px; height: 132px; display: grid; place-items: center; margin-bottom: 8px; }
.st .st-portrait-ring { position: absolute; inset: -10px; }
.st .st-portrait .st-photo { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); border-radius: 50%; object-fit: cover; }
/* The shadow belongs to the frame: a zoomed-in photo is trimmed to the circle (invitation-runtime.js). */
.st .st-portrait.has-photo::before { content: ''; position: absolute; inset: 8px; border-radius: 50%; box-shadow: 0 8px 22px rgba(0, 0, 0, .2); }
.st .st-portrait-mono { font-size: 3rem; line-height: 1; color: var(--st-head); }
.st .st-portrait.has-photo .st-portrait-mono { visibility: hidden; }
.st .st-person-name { margin: 0; font-size: 2rem; font-weight: 400; line-height: 1.15; color: var(--st-head); }
.st .st-person-name [data-l]:not([data-l='en']) { font-size: .8em; font-weight: 600; }
.st .st-person-info { margin: 4px 0 0; font-size: .92rem; line-height: 1.55; max-width: 290px; }
.st .st-people-join { margin: 4px 0; font-size: 1.8rem; color: var(--st-accent); }
.st .st-family { margin: 6px 0 0; font-size: 1.05rem; line-height: 1.9; }

/* ---------- Events: flip cards ---------- */
.st .st-flip { perspective: 1400px; }
.st .st-flip-inner { position: relative; transition: transform .9s cubic-bezier(.2, .8, .2, 1); transform-style: preserve-3d; }
.st .st-flip.is-flipped .st-flip-inner { transform: rotateY(180deg); }
.st .st-flip-front, .st .st-flip-back { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.st .st-flip-back { position: absolute; inset: 0; transform: rotateY(180deg); display: flex; flex-direction: column; justify-content: center; }
.st .st-event-title { font-size: 2.6rem; }
.st .st-event-title [data-l='en'] { font-size: calc(1em * var(--st-ss) * .9); }
.st .st-map { margin: 14px 0 0; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--st-line); background: var(--st-soft); }
.st .st-map iframe { display: block; width: 100%; height: 200px; border: 0; }

/* ---------- Schedule: flip cards or a timeline ---------- */
.st .st-schedule { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 12px; }
.st .st-sch-item { position: relative; display: flex; flex-direction: column; align-items: center; padding: 14px 12px; border-radius: 14px; background: var(--st-soft); box-shadow: inset 0 0 0 1px var(--st-line); }
.st .st-sch-time { font-size: .82rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--st-accent); }
.st .st-sch-name { font-size: 1.7rem; line-height: 1.2; color: var(--st-head); }
.st .st-sch-name [data-l]:not([data-l='en']) { font-size: .78em; font-weight: 600; }
.st .st-sch-text { font-size: .9rem; line-height: 1.5; }
.st .st-sch-dot { display: none; }
.st.st-sch-cards .st-schedule { grid-template-columns: 1fr 1fr; }
.st.st-sch-cards .st-sch-item:only-child, .st.st-sch-cards .st-sch-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
.st.st-sch-timeline .st-schedule { gap: 0; padding-left: 26px; text-align: left; }
.st.st-sch-timeline .st-schedule::before { content: ''; position: absolute; left: 34px; top: 8px; bottom: 8px; width: 1.5px; background: var(--st-line); }
.st.st-sch-timeline .st-sch-item { align-items: flex-start; background: transparent; box-shadow: none; padding: 10px 6px 14px 22px; }
.st.st-sch-timeline .st-sch-dot { display: block; position: absolute; left: -2px; top: 16px; width: 13px; height: 13px; border-radius: 50%; background: var(--st-accent); box-shadow: 0 0 0 4px var(--st-surface), 0 0 0 5px var(--st-line); }
.st.st-sch-timeline .st-card-wide .st-schedule { position: relative; }

/* ---------- Countdown ---------- */
.st .st-countdown { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.st .st-count-cell { width: 68px; padding: 12px 0 8px; border-radius: 14px; background: var(--st-soft); box-shadow: inset 0 0 0 1px var(--st-line); display: flex; flex-direction: column; align-items: center; }
.st .st-count-cell b { font-family: var(--st-head-en); font-size: 1.7rem; line-height: 1.1; color: var(--st-head); font-variant-numeric: tabular-nums; }
.st .st-count-cell small { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.st .st-count-cell small [data-l]:not([data-l='en']) { font-size: .8rem; letter-spacing: 0; }
.st .st-count-live { display: none; margin: 10px 0 0; font-size: 1.8rem; color: var(--st-head); }
.st .st-countdown.is-live { display: none; }
.st .st-countdown.is-live ~ .st-count-live { display: block; }
.st .st-countdown[hidden] { display: none; }

/* ---------- Gallery ---------- */
.st .st-gallery { margin-top: 16px; }
.st .st-shot { display: block; padding: 0; border: 0; background: var(--st-soft); cursor: zoom-in; overflow: hidden; }
.st .st-shot img { display: block; width: 100%; height: 100%; object-fit: cover; transform-origin: center; }
.st.st-gal-grid .st-gallery-track { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.st.st-gal-grid .st-shot { aspect-ratio: 1; border-radius: 12px; }
.st.st-gal-grid .st-shot:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.st.st-gal-grid .st-shot:nth-child(n + 8) { display: none; }
.st.st-gal-grid .st-gallery-nav { display: none !important; }
/* 3D carousel: photos on a turning ring; swipe or use the arrows. */
.st.st-gal-carousel .st-gallery { perspective: 1100px; }
.st.st-gal-carousel .st-gallery-track { --step: calc(360deg / max(var(--count), 6)); position: relative; height: 290px; transform-style: preserve-3d; transform: translateZ(-250px) rotateY(var(--turn, 0deg)); transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.st.st-gal-carousel .st-shot { position: absolute; left: 50%; top: 10px; width: 170px; height: 240px; margin-left: -85px; border-radius: 14px; box-shadow: 0 14px 30px rgba(0, 0, 0, .3), 0 0 0 3px var(--st-surface); transform: rotateY(calc(var(--n) * var(--step))) translateZ(250px); backface-visibility: hidden; }
.st.st-gal-carousel .st-gallery-nav { display: flex; justify-content: center; gap: 12px; margin-top: 10px; }
/* Polaroids: a stack of prints; tap the top one to see the next. */
.st.st-gal-polaroid .st-gallery-track { position: relative; height: 330px; }
.st.st-gal-polaroid .st-shot { position: absolute; left: 50%; top: 10px; width: 230px; height: 290px; margin-left: -115px; padding: 12px 12px 46px; background: #fffdf8; border-radius: 4px; box-shadow: 0 14px 34px rgba(0, 0, 0, .28); transform: rotate(calc((var(--n) - 1) * 4.5deg)) translateX(calc((var(--n) - 1) * 6px)); z-index: calc(50 - var(--n)); transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .4s; }
.st.st-gal-polaroid .st-shot img { height: 100%; }
.st.st-gal-polaroid .st-shot:nth-child(n + 6) { opacity: 0; }
.st.st-gal-polaroid .st-gallery-nav { display: flex; justify-content: center; gap: 12px; margin-top: 4px; }
/* Video and PDF: a still collage of the first photos. */
html.sb-film .st .st-gallery-track { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; height: auto !important; transform: none !important; }
html.sb-film .st .st-shot { position: relative !important; left: auto !important; top: auto !important; margin: 0 !important; width: auto !important; height: auto !important; aspect-ratio: 1; padding: 0 !important; border-radius: 12px; transform: none !important; opacity: 1 !important; box-shadow: none !important; }
html.sb-film .st .st-shot:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
html.sb-film .st .st-shot:nth-child(n + 6) { display: none; }
.st-lightbox { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .92); }
.st-lightbox[hidden] { display: none; }
.st-lightbox img { max-width: 94vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.st-lightbox button { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.st-lightbox .st-lb-close { top: 16px; right: 16px; }
.st-lightbox .st-lb-prev { left: 12px; }
.st-lightbox .st-lb-next { right: 12px; }

/* ---------- Video ---------- */
.st .st-video { margin-top: 14px; }
.st .st-video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; box-shadow: var(--st-shadow), 0 0 0 3px var(--st-surface), 0 0 0 4px var(--st-line); }
.st .st-video-frame iframe, .st .st-video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; }
.st .st-video-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; color: #fff; font-size: .95rem; background: linear-gradient(135deg, color-mix(in srgb, var(--st-accent) 70%, #000), #111); }
.st .st-video-poster { position: relative; padding: 36px 18px; border-radius: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--st-accent) 80%, #000), #120d10); color: #fff; }
.st .st-video-poster p { margin: 12px 0 0; font-size: .95rem; }
.st .st-play { display: block; width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: rgba(255, 255, 255, .92); position: relative; }
.st .st-play::after { content: ''; position: absolute; left: 26px; top: 20px; border-left: 18px solid var(--st-accent); border-top: 12px solid transparent; border-bottom: 12px solid transparent; }

/* ---------- RSVP, contact, thanks ---------- */
.st .st-rsvp-by { margin: 12px 0 0; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; color: var(--st-accent); }
.st .st-contacts { display: grid; gap: 14px; margin-top: 8px; }
.st .st-contact { padding: 14px; border-radius: 14px; background: var(--st-soft); box-shadow: inset 0 0 0 1px var(--st-line); }
.st .st-contact-name { margin: 0; font-size: 1.1rem; font-weight: 600; color: var(--st-head); }
.st .st-contact-phone { margin: 2px 0 0; font-size: 1rem; letter-spacing: .06em; }
.st .st-contact .st-actions { margin-top: 10px; }
.st .st-thanks-names { margin: 16px 0 0; font-size: 2rem; line-height: 1.25; color: var(--st-head); }
.st .st-thanks-names [data-l]:not([data-l='en']) { font-size: .7em; font-weight: 600; }

/* ---------- Specials: things guests do ---------- */
.st .st-toy { position: relative; display: block; margin: 8px auto 0; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.st .st-toy:focus-visible { outline: 2px solid var(--st-orn); outline-offset: 6px; border-radius: 16px; }
.st .st-toy-burst { position: absolute; left: 50%; top: 40%; width: 300px; translate: -50% -50%; opacity: 0; pointer-events: none; }
.st .is-done .st-toy-burst { animation: st-burst 1.6s cubic-bezier(.15, .8, .3, 1) both; }
@keyframes st-burst { 0% { opacity: 0; transform: scale(.2); } 15% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; transform: scale(1.2) translateY(30px); } }
.st .st-hint { margin: 12px 0 0; font-size: .9rem; letter-spacing: .04em; color: var(--st-accent); }
.st .st-done { margin: 12px 0 0; font-size: 1.9rem; line-height: 1.3; color: var(--st-head); opacity: 0; transform: translateY(12px) scale(.9); transition: opacity .5s ease .3s, transform .6s cubic-bezier(.2, 1.4, .4, 1) .3s; }
.st .st-done[data-l], .st .st-done [data-l]:not([data-l='en']) { font-size: inherit; }
.st .is-done ~ .st-done, .st .is-done .st-done { opacity: 1; transform: none; }
.st .st-sec.is-done .st-hint { opacity: .25; }
/* Birthday cake: tap to blow out the candles. */
.st .st-cake { width: 230px; }
.st .st-cake-img { display: block; width: 100%; }
.st .st-candles { position: absolute; left: 50%; top: 6px; width: 150px; height: 70px; margin-left: -75px; display: flex; justify-content: center; gap: 4px; z-index: 2; }
.st .st-candle { position: relative; width: 9px; height: 46px; margin-top: 24px; border-radius: 3px; background: repeating-linear-gradient(160deg, #fff 0 6px, var(--st-accent) 6px 10px); box-shadow: inset -2px 0 0 rgba(0, 0, 0, .08); }
.st .st-candle-fire { position: absolute; left: 50%; bottom: 100%; width: 14px; height: 24px; margin-left: -7px; transform-origin: 50% 100%; transition: opacity .3s ease, transform .4s ease; }
.st .st-flicker { display: block; width: 100%; height: 100%; transform-origin: 50% 100%; animation: st-flicker 1.5s ease-in-out infinite; }
@keyframes st-flicker { 0%, 100% { transform: scale(1) rotate(-2deg); } 25% { transform: scale(1.06, .95) rotate(2deg); } 50% { transform: scale(.95, 1.06) rotate(-1deg); } 75% { transform: scale(1.04, .97) rotate(1.5deg); } }
.st .st-smoke { position: absolute; left: 50%; bottom: 100%; width: 10px; height: 26px; margin-left: -5px; border-radius: 50%; background: radial-gradient(rgba(200, 200, 200, .7), transparent 70%); opacity: 0; }
.st .st-cake.is-done .st-candle-fire { opacity: 0; transform: scale(.2) translateY(-6px); }
.st .st-cake.is-done .st-smoke { animation: st-smoke 1.6s ease-out both; }
@keyframes st-smoke { 0% { opacity: 0; transform: translateY(0) scale(.6); } 20% { opacity: .9; } 100% { opacity: 0; transform: translateY(-34px) scale(1.6); } }
/* Name reveal. */
.st .st-reveal { width: 250px; min-height: 230px; }
.st .st-reveal-art { display: block; width: 100%; }
.st .st-reveal-veil { position: absolute; left: 50%; top: 42%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, var(--st-surface), color-mix(in srgb, var(--st-accent) 30%, var(--st-surface))); box-shadow: 0 0 0 3px var(--st-orn), 0 0 30px color-mix(in srgb, var(--st-orn) 60%, transparent); font-family: var(--st-head-en); font-size: 3.6rem; color: var(--st-accent); animation: st-pulse 2.4s ease-in-out infinite; transition: opacity .5s, transform .6s; }
.st .st-reveal-name { position: absolute; left: 0; right: 0; top: 30%; font-size: 3.2rem; line-height: 1.1; color: var(--st-head); opacity: 0; transform: scale(.5); transition: opacity .6s ease .2s, transform .8s cubic-bezier(.2, 1.4, .4, 1) .2s; text-shadow: 0 2px 14px var(--st-surface); }
.st .st-reveal-name [data-l]:not([data-l='en']) { font-size: .75em; font-weight: 600; }
.st .st-reveal.is-done .st-reveal-veil { opacity: 0; transform: scale(1.6); }
.st .st-reveal.is-done .st-reveal-name { opacity: 1; transform: none; }
.st .st-reveal-meaning { font-size: 1rem; }
/* Years together. */
.st .st-years { position: relative; width: 220px; height: 200px; margin: 6px auto 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.st .st-years-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.st .st-years b { position: relative; font-size: 4.4rem; line-height: 1; color: var(--st-head); }
.st .st-years span { position: relative; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; }
.st .st-years span [data-l]:not([data-l='en']) { font-size: 1rem; letter-spacing: 0; }
.st .st-memories { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.st .st-memories li { display: flex; gap: 12px; align-items: baseline; text-align: left; padding: 10px 14px; border-radius: 12px; background: var(--st-soft); }
.st .st-memories b { flex: none; min-width: 52px; font-size: 1rem; color: var(--st-accent); }
.st .st-memories span { font-size: .92rem; line-height: 1.5; }
/* Puja bell. */
.st .st-bell { width: 150px; }
.st .st-bell-img { display: block; width: 100%; transform-origin: 50% 4%; }
.st .st-bell.is-ringing .st-bell-img { animation: st-ring 1.6s cubic-bezier(.3, .7, .4, 1); }
@keyframes st-ring { 0%, 100% { transform: rotate(0); } 12% { transform: rotate(18deg); } 30% { transform: rotate(-14deg); } 48% { transform: rotate(9deg); } 66% { transform: rotate(-5deg); } 84% { transform: rotate(2deg); } }
.st .st-bell-wave { position: absolute; left: 50%; bottom: 0; width: 160px; height: 160px; margin-left: -80px; border-radius: 50%; border: 2px solid var(--st-orn); opacity: 0; }
.st .st-bell.is-ringing .st-bell-wave { animation: st-wave 1.4s ease-out; }
@keyframes st-wave { 0% { opacity: .8; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.5); } }
/* Jhula swing. */
.st .st-swing { width: 250px; }
.st .st-swing-img { display: block; width: 100%; transform-origin: 50% 0; animation: st-swing 3.2s ease-in-out infinite; }
.st .st-swing.is-swinging .st-swing-img { animation: st-swing-big 2.4s ease-in-out 2; }
@keyframes st-swing { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes st-swing-big { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(12deg); } }
/* Engagement rings. */
.st .st-rings { width: 250px; height: 170px; }
.st .st-ring { position: absolute; top: 20px; width: 120px; transition: transform 1s cubic-bezier(.2, 1.2, .4, 1); }
.st .st-ring-a { left: 0; transform: rotate(-14deg); }
.st .st-ring-b { right: 0; transform: rotate(14deg); }
.st .st-rings:not(.is-done) .st-ring-a { animation: st-ring-wait-a 2.6s ease-in-out infinite; }
.st .st-rings:not(.is-done) .st-ring-b { animation: st-ring-wait-b 2.6s ease-in-out infinite; }
@keyframes st-ring-wait-a { 0%, 100% { transform: rotate(-14deg) translateX(0); } 50% { transform: rotate(-10deg) translateX(10px); } }
@keyframes st-ring-wait-b { 0%, 100% { transform: rotate(14deg) translateX(0); } 50% { transform: rotate(10deg) translateX(-10px); } }
.st .st-rings.is-done .st-ring-a { transform: translateX(46px) rotate(-8deg); }
.st .st-rings.is-done .st-ring-b { transform: translateX(-46px) rotate(8deg); }
/* Haldi splash. */
.st .st-splash { width: 220px; }
.st .st-splash-img { display: block; width: 100%; }
.st .st-splash.is-done .st-splash-img { animation: st-wobble .6s ease; }
@keyframes st-wobble { 0%, 100% { transform: none; } 30% { transform: rotate(-6deg) scale(1.05); } 60% { transform: rotate(5deg); } }

/* ======================================================================
   Openings. Each style animates on tap (#door-overlay.open) and, in the video, on the
   timeline (--door-start, --door-dur). --op-out: when the overlay fades on the link.
   ====================================================================== */
.st #door-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100vh; height: 100svh; z-index: 9999; overflow: hidden; cursor: pointer; --op-out: 1.75s; }
.st #door-overlay:focus-visible { outline: 3px solid var(--st-orn); outline-offset: -6px; }
.st.st-open-none #door-overlay { display: none !important; }
.st .st-op-bg { position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 40%, color-mix(in srgb, var(--st-bg) 80%, #fff), var(--st-bg) 70%); }
.st .st-op { display: none; position: absolute; inset: 0; }
.st.st-open-gate .st-op-gate, .st.st-open-envelope .st-op-envelope, .st.st-open-curtain .st-op-curtain, .st.st-open-unfold .st-op-unfold,
.st.st-open-flip .st-op-flip, .st.st-open-lotus .st-op-lotus, .st.st-open-diya .st-op-diya, .st.st-open-scroll .st-op-scroll,
.st.st-open-cinema .st-op-cinema, .st.st-open-balloons .st-op-balloons, .st.st-open-giftbox .st-op-giftbox { display: block; }
.st .st-op-label { position: absolute; z-index: 30; left: 0; right: 0; bottom: 8%; padding: 0 28px; text-align: center; color: var(--st-head); pointer-events: none; }
.st .st-op-kicker { margin: 0; font-size: .82rem; letter-spacing: .3em; text-transform: uppercase; color: var(--st-accent); }
.st .st-op-kicker [data-l]:not([data-l='en']) { font-size: 1.2rem; }
.st .st-op-names { margin: 4px 0 0; font-size: 2.1rem; line-height: 1.15; }
.st .st-op-names [data-l]:not([data-l='en']) { font-size: .8em; font-weight: 600; }
.st .st-op-names > span { display: block; }
.st .st-op-join { font-size: .5em; line-height: 1.4; color: var(--st-accent); }
body.st[data-lang$='-en'] .st-op-join [data-l='en'] { display: none !important; }
.st .st-op-hint { margin: 14px 0 0; font-family: var(--st-body-en); font-size: .74rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--st-accent); animation: st-breathe 2.4s ease-in-out infinite; }
.st .st-op-hint [data-l='mr'], .st .st-op-hint [data-l='hi'] { font-family: var(--st-body-dev); font-size: .95rem; letter-spacing: .04em; }
@keyframes st-breathe { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes st-op-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes st-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes st-fade-in { from { opacity: 0; } to { opacity: 1; } }
.st #door-overlay.open { animation: st-op-out .8s ease var(--op-out) both; pointer-events: none; }
.st #door-overlay.open .st-op-label { animation: st-fade-out .45s ease both; }
html.sb-film .st #door-overlay { animation: st-op-out .8s ease calc(var(--door-start) + var(--door-dur) - .85s) both; }
html.sb-film .st .st-op-label { animation: st-fade-out .45s ease var(--door-start) both; }
html.sb-film .st .st-op-hint { animation: none; opacity: .8; }

/* Palace gate */
.st .st-gate { position: absolute; inset: 0; display: flex; perspective: 1300px; }
.st .st-gate-door { position: relative; width: 50%; height: 100%; background: radial-gradient(90% 60% at 50% 45%, color-mix(in srgb, var(--st-door, var(--st-bg)) 85%, #fff), var(--st-door, var(--st-bg)) 70%); box-shadow: inset 0 0 70px rgba(0, 0, 0, .5); }
.st .st-gate-door.door-left { transform-origin: left center; border-right: 2px solid var(--st-line); }
.st .st-gate-door.door-right { transform-origin: right center; border-left: 2px solid var(--st-line); }
.st .st-door-art { position: absolute; inset: 5% 9%; color: var(--st-orn); }
.st.st-open-gate .st-op-label { bottom: 10%; }
.st .st-gate-seal { position: absolute; z-index: 4; left: 50%; top: 40%; width: 150px; height: 150px; margin: -75px 0 0 -75px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--st-surface) 96%, var(--st-orn)), color-mix(in srgb, var(--st-surface) 80%, var(--st-orn))); box-shadow: 0 14px 40px rgba(0, 0, 0, .45), 0 0 0 3px var(--st-orn); color: var(--st-head); }
.st .st-gate-seal .st-orn { position: absolute; inset: 6px; }
.st .st-gate-seal span { position: relative; font-size: 2.2rem; line-height: 1; }
@keyframes st-seal-away { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(.5) rotate(-30deg); } }
.st #door-overlay.open .st-gate-seal { animation: st-seal-away .6s ease both; }
html.sb-film .st .st-gate-seal { animation: st-seal-away .6s ease var(--door-start) both; }
@keyframes st-gate-l { 0% { transform: none; opacity: 1; } 70% { opacity: 1; } 100% { transform: rotateY(-108deg); opacity: 0; } }
@keyframes st-gate-r { 0% { transform: none; opacity: 1; } 70% { opacity: 1; } 100% { transform: rotateY(108deg); opacity: 0; } }
.st #door-overlay.open .st-gate-door.door-left { animation: st-gate-l 2.4s cubic-bezier(.45, .05, .35, 1) .1s both; }
.st #door-overlay.open .st-gate-door.door-right { animation: st-gate-r 2.4s cubic-bezier(.45, .05, .35, 1) .1s both; }
html.sb-film .st .st-gate-door.door-left { animation: st-gate-l calc(var(--door-dur) * .8) cubic-bezier(.45, .05, .35, 1) var(--door-start) both; }
html.sb-film .st .st-gate-door.door-right { animation: st-gate-r calc(var(--door-dur) * .8) cubic-bezier(.45, .05, .35, 1) var(--door-start) both; }

/* Envelope */
.st.st-open-envelope #door-overlay { --op-out: 2.05s; }
.st .st-env { position: absolute; left: 50%; top: 42%; width: 310px; height: 212px; margin: -106px 0 0 -155px; perspective: 900px; }
.st .st-env-back { position: absolute; inset: 0; border-radius: 8px; background: color-mix(in srgb, var(--st-env, var(--st-accent)) 82%, #000); box-shadow: 0 24px 50px rgba(0, 0, 0, .3); }
.st .st-env-letter { position: absolute; left: 16px; right: 16px; top: 12px; height: 186px; border-radius: 4px; background: var(--st-surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; box-shadow: inset 0 0 0 1px var(--st-line), 0 4px 14px rgba(0, 0, 0, .15); }
.st .st-env-mono { font-size: 2.4rem; line-height: 1; color: var(--st-head); }
.st .st-env-title { font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--st-accent); }
.st .st-env-title [data-l]:not([data-l='en']) { font-size: 1.1rem; }
.st .st-env-front { position: absolute; inset: 0; border-radius: 8px; background: linear-gradient(160deg, color-mix(in srgb, var(--st-env, var(--st-accent)) 92%, #fff), var(--st-env, var(--st-accent))); clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%); }
.st .st-env-hinge { position: absolute; left: 0; right: 0; top: 0; height: 60%; transform-origin: 50% 0; }
.st .st-env-flap { position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--st-env, var(--st-accent)) 80%, #fff), color-mix(in srgb, var(--st-env, var(--st-accent)) 92%, #000)); clip-path: polygon(0 0, 100% 0, 50% 100%); border-radius: 8px 8px 0 0; }
.st .st-env-seal { position: absolute; left: 50%; top: 58%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 40% 35%, color-mix(in srgb, var(--st-seal, #9b1c2c) 70%, #fff), var(--st-seal, #9b1c2c) 60%, color-mix(in srgb, var(--st-seal, #9b1c2c) 70%, #000)); box-shadow: 0 6px 16px rgba(0, 0, 0, .35), inset 0 0 0 4px rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .92); font-family: var(--st-script-en); font-size: 1.5rem; }
.st.st-open-envelope .st-op-label { bottom: 12%; }
@keyframes st-seal-off { 0% { opacity: 1; transform: scale(1); } 40% { transform: scale(1.18); } 100% { opacity: 0; transform: scale(.4) rotate(40deg); } }
@keyframes st-flap-open { 0% { transform: none; opacity: 1; } 80% { opacity: 1; } 100% { transform: rotateX(178deg); opacity: 0; } }
@keyframes st-letter-up { from { transform: none; } to { transform: translateY(-150px) scale(1.06); } }
@keyframes st-env-down { from { transform: none; opacity: 1; } to { transform: translateY(240px); opacity: 0; } }
.st #door-overlay.open .st-env-seal { animation: st-seal-off .5s ease both; }
.st #door-overlay.open .st-env-hinge { animation: st-flap-open .8s cubic-bezier(.4, 0, .3, 1) .3s both; }
.st #door-overlay.open .st-env-letter { animation: st-letter-up .9s cubic-bezier(.3, .7, .3, 1) 1s both; }
.st #door-overlay.open .st-env-back, .st #door-overlay.open .st-env-front { animation: st-env-down .9s ease-in 1.55s both; }
html.sb-film .st .st-env-seal { animation: st-seal-off .5s ease var(--door-start) both; }
html.sb-film .st .st-env-hinge { animation: st-flap-open .8s cubic-bezier(.4, 0, .3, 1) calc(var(--door-start) + .3s) both; }
html.sb-film .st .st-env-letter { animation: st-letter-up .9s cubic-bezier(.3, .7, .3, 1) calc(var(--door-start) + 1s) both; }
html.sb-film .st .st-env-back, html.sb-film .st .st-env-front { animation: st-env-down .9s ease-in calc(var(--door-start) + 1.55s) both; }

/* Royal curtain */
.st.st-open-curtain #door-overlay { --op-out: 1.65s; }
.st .st-curtain {
    position: absolute; top: 0; bottom: 0; width: 52%;
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), transparent 20%, rgba(0, 0, 0, .25)),
        repeating-linear-gradient(90deg, color-mix(in srgb, var(--st-curtain, var(--st-accent)) 70%, #000) 0 10px, var(--st-curtain, var(--st-accent)) 22px, color-mix(in srgb, var(--st-curtain, var(--st-accent)) 82%, #fff) 30px, var(--st-curtain, var(--st-accent)) 38px, color-mix(in srgb, var(--st-curtain, var(--st-accent)) 70%, #000) 52px);
    box-shadow: inset 0 -26px 0 -12px var(--st-orn);
}
.st .st-curtain-l { left: 0; transform-origin: 0 0; }
.st .st-curtain-r { right: 0; transform-origin: 100% 0; }
.st .st-valance { position: absolute; top: 0; left: -2%; right: -2%; height: 74px; background: linear-gradient(180deg, color-mix(in srgb, var(--st-curtain, var(--st-accent)) 75%, #000), var(--st-curtain, var(--st-accent))); border-bottom: 3px solid var(--st-orn); border-radius: 0 0 50% 50% / 0 0 26px 26px; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); z-index: 2; }
.st .st-valance .st-orn { position: absolute; left: 6%; right: 6%; bottom: 8px; height: 26px; }
.st.st-open-curtain .st-op-label { color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .55); bottom: 34%; }
.st.st-open-curtain .st-op-label .st-op-kicker, .st.st-open-curtain .st-op-label .st-op-hint { color: var(--st-orn); }
@keyframes st-curtain-l { from { transform: none; } to { transform: translateX(-70%) scaleX(.42); } }
@keyframes st-curtain-r { from { transform: none; } to { transform: translateX(70%) scaleX(.42); } }
@keyframes st-valance-up { from { transform: none; } to { transform: translateY(-90px); } }
.st #door-overlay.open .st-curtain-l { animation: st-curtain-l 1.9s cubic-bezier(.6, .05, .3, 1) both; }
.st #door-overlay.open .st-curtain-r { animation: st-curtain-r 1.9s cubic-bezier(.6, .05, .3, 1) both; }
.st #door-overlay.open .st-valance { animation: st-valance-up .9s ease-in 1.3s both; }
html.sb-film .st .st-curtain-l { animation: st-curtain-l calc(var(--door-dur) * .63) cubic-bezier(.6, .05, .3, 1) var(--door-start) both; }
html.sb-film .st .st-curtain-r { animation: st-curtain-r calc(var(--door-dur) * .63) cubic-bezier(.6, .05, .3, 1) var(--door-start) both; }
html.sb-film .st .st-valance { animation: st-valance-up .9s ease-in calc(var(--door-start) + 1.3s) both; }

/* Card unfolding (gatefold) */
.st.st-open-unfold #door-overlay { --op-out: 1.65s; }
.st .st-fold-stage { position: absolute; inset: 0; display: flex; perspective: 1500px; }
.st .st-fold { position: relative; width: 50%; height: 100%; background: linear-gradient(90deg, var(--st-fold, var(--st-surface)), color-mix(in srgb, var(--st-fold, var(--st-surface)) 88%, #000)); }
.st .st-fold-l { transform-origin: left center; box-shadow: inset -12px 0 24px -16px rgba(0, 0, 0, .4); }
.st .st-fold-r { transform-origin: right center; background: linear-gradient(270deg, var(--st-fold, var(--st-surface)), color-mix(in srgb, var(--st-fold, var(--st-surface)) 88%, #000)); box-shadow: inset 12px 0 24px -16px rgba(0, 0, 0, .4); }
.st .st-fold-r .st-fold-art { transform: scaleX(-1); }
.st .st-fold-art { position: absolute; inset: 4% 8%; color: var(--st-orn); }
@keyframes st-fold-l { 0% { transform: none; opacity: 1; } 15% { transform: rotateY(-8deg); } 80% { opacity: 1; } 100% { transform: rotateY(-100deg); opacity: 0; } }
@keyframes st-fold-r { 0% { transform: none; opacity: 1; } 15% { transform: rotateY(8deg); } 80% { opacity: 1; } 100% { transform: rotateY(100deg); opacity: 0; } }
.st #door-overlay.open .st-fold-l { animation: st-fold-l 2s cubic-bezier(.5, .1, .3, 1) both; }
.st #door-overlay.open .st-fold-r { animation: st-fold-r 2s cubic-bezier(.5, .1, .3, 1) .12s both; }
html.sb-film .st .st-fold-l { animation: st-fold-l calc(var(--door-dur) * .66) cubic-bezier(.5, .1, .3, 1) var(--door-start) both; }
html.sb-film .st .st-fold-r { animation: st-fold-r calc(var(--door-dur) * .66) cubic-bezier(.5, .1, .3, 1) calc(var(--door-start) + .12s) both; }
.st.st-open-unfold .st-op-label { bottom: auto; top: 39%; }

/* 3D card flip */
.st.st-open-flip #door-overlay { --op-out: 1.45s; }
.st .st-flip-stage { position: absolute; left: 50%; top: 42%; width: 270px; height: 380px; margin: -190px 0 0 -135px; perspective: 1100px; }
.st .st-flip-card { position: absolute; inset: 0; border-radius: 14px; background: var(--st-surface); display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 30px 60px rgba(0, 0, 0, .35), inset 0 0 0 8px var(--st-surface), inset 0 0 0 9px var(--st-line); }
.st .st-flip-art { position: absolute; left: 50%; top: 50%; width: 190px; height: 190px; margin: -95px 0 0 -95px; }
.st .st-flip-mono { position: relative; font-size: 3rem; color: var(--st-head); }
/* The opening's card only (a function card's map side is also .st-flip-back). */
.st #door-overlay .st-flip-back { opacity: 0; transform: rotateY(-90deg); padding: 30px; }
.st .st-flip-title { font-size: 1.15rem; letter-spacing: .26em; text-transform: uppercase; color: var(--st-head); }
.st .st-flip-title [data-l]:not([data-l='en']) { font-size: 1.7rem; letter-spacing: 0; }
.st.st-open-flip .st-op-label { bottom: 9%; }
@keyframes st-flip-front { 0% { transform: none; opacity: 1; } 48% { transform: rotateY(90deg); opacity: 1; } 49%, 100% { transform: rotateY(90deg); opacity: 0; } }
@keyframes st-flip-back { 0%, 48% { transform: rotateY(-90deg); opacity: 0; } 49% { opacity: 1; } 100% { transform: none; opacity: 1; } }
.st #door-overlay.open .st-flip-front { animation: st-flip-front 1.2s cubic-bezier(.4, 0, .3, 1) both; }
.st #door-overlay.open .st-flip-back { animation: st-flip-back 1.2s cubic-bezier(.4, 0, .3, 1) both; }
html.sb-film .st #door-overlay .st-flip-front { animation: st-flip-front 1.2s cubic-bezier(.4, 0, .3, 1) var(--door-start) both; }
html.sb-film .st #door-overlay .st-flip-back { animation: st-flip-back 1.2s cubic-bezier(.4, 0, .3, 1) var(--door-start) both; }

/* Lotus blooming */
.st.st-open-lotus #door-overlay { --op-out: 2.05s; }
.st .st-lotus { position: absolute; left: 50%; top: 44%; width: 0; height: 0; }
.st .st-petal { position: absolute; left: -34px; bottom: 0; width: 68px; transform-origin: 50% 100%; transform: rotate(calc((var(--n) - 3.5) * 7deg)) scale(.62, .78); }
.st .st-lotus-core { position: absolute; left: -36px; top: -36px; width: 72px; transform: scale(.3); }
.st .st-lotus-glow { position: absolute; left: 50%; top: 44%; width: 300px; margin: -150px 0 0 -150px; opacity: .35; transform: scale(.5); }
@keyframes st-petal-open { from { transform: rotate(calc((var(--n) - 3.5) * 7deg)) scale(.62, .78); } to { transform: rotate(calc(var(--n) * 45deg - 157.5deg)) scale(1); } }
@keyframes st-core-open { from { transform: scale(.3); } to { transform: scale(1.15); } }
@keyframes st-glow-big { from { opacity: .35; transform: scale(.5); } to { opacity: 1; transform: scale(3.4); } }
.st #door-overlay:not(.open) .st-lotus { animation: st-bud 3s ease-in-out infinite; }
@keyframes st-bud { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-6px) scale(1.04); } }
.st #door-overlay.open .st-petal { animation: st-petal-open 1.4s cubic-bezier(.2, .9, .3, 1) calc(var(--n) * .05s) both; }
.st #door-overlay.open .st-lotus-core { animation: st-core-open 1.4s ease both; }
.st #door-overlay.open .st-lotus-glow { animation: st-glow-big 1.6s ease-in .7s both; }
html.sb-film .st .st-petal { animation: st-petal-open 1.4s cubic-bezier(.2, .9, .3, 1) calc(var(--door-start) + var(--n) * .05s) both; }
html.sb-film .st .st-lotus-core { animation: st-core-open 1.4s ease var(--door-start) both; }
html.sb-film .st .st-lotus-glow { animation: st-glow-big 1.6s ease-in calc(var(--door-start) + .7s) both; }

/* Diya lighting */
.st.st-open-diya #door-overlay { --op-out: 1.85s; }
.st .st-lamp { --w: 190px; position: absolute; left: 50%; top: 40%; width: var(--w); height: calc(var(--w) * .9); margin-left: calc(var(--w) / -2); }
.st .st-lamp-diya { position: absolute; left: 0; bottom: 0; width: 100%; z-index: 2; }
.st .st-lamp-fire { position: absolute; z-index: 3; left: calc(var(--w) * .4186); top: calc(var(--w) * .1144); width: calc(var(--w) * .19); height: calc(var(--w) * .342); transform-origin: 50% 100%; opacity: 0; transform: scale(.2); }
.st .st-lamp-glow { position: absolute; z-index: 1; width: calc(var(--w) * 1.1); left: calc(var(--w) * -.0364); top: calc(var(--w) * -.265); opacity: .25; transform: scale(.55); }
.st .st-bloom { position: absolute; z-index: 6; left: 50%; top: calc(40% + 52px); width: 90px; height: 90px; margin: -45px 0 0 -45px; border-radius: 50%; background: radial-gradient(circle, #fffbe8 0%, #ffe39a 32%, rgba(255, 196, 90, .75) 52%, rgba(255, 160, 60, 0) 70%); opacity: 0; transform: scale(0); }
@keyframes st-ignite { 0% { opacity: 0; transform: scale(.2); } 60% { opacity: 1; transform: scale(1.18); } 100% { opacity: 1; transform: none; } }
@keyframes st-glow-in { from { opacity: .25; transform: scale(.55); } to { opacity: 1; transform: none; } }
@keyframes st-bloom { 0% { opacity: 0; transform: scale(0); } 18% { opacity: 1; } 100% { opacity: 1; transform: scale(30); } }
.st #door-overlay.open .st-lamp-fire { animation: st-ignite .7s ease-out both; }
.st #door-overlay.open .st-lamp-glow { animation: st-glow-in 1s ease-out .1s both; }
.st #door-overlay.open .st-bloom { animation: st-bloom 1.5s cubic-bezier(.5, 0, .3, 1) .55s both; }
html.sb-film .st .st-lamp-fire { animation: st-ignite .7s ease-out calc(var(--door-start) + .1s) both; }
html.sb-film .st .st-lamp-glow { animation: st-glow-in 1s ease-out calc(var(--door-start) + .2s) both; }
html.sb-film .st .st-bloom { animation: st-bloom 1.5s cubic-bezier(.5, 0, .3, 1) calc(var(--door-start) + .65s) both; }

/* Scroll unrolling */
.st.st-open-scroll #door-overlay { --op-out: 1.85s; }
.st .st-scroll { position: absolute; left: 50%; top: 42%; width: 290px; height: 430px; margin: -215px 0 0 -145px; }
.st .st-scroll-paper { position: absolute; left: 12px; right: 12px; top: 16px; bottom: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: linear-gradient(90deg, rgba(120, 70, 20, .18), transparent 12%, transparent 88%, rgba(120, 70, 20, .18)), var(--st-surface); clip-path: inset(47% 0 47% 0); box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.st .st-scroll-paper .st-orn { width: 150px; height: 150px; }
.st .st-scroll-om { padding: 0 24px; font-size: 1.15rem; color: var(--st-head); }
.st .st-rod { position: absolute; left: 0; right: 0; height: 22px; border-radius: 11px; background: linear-gradient(180deg, color-mix(in srgb, var(--st-orn) 55%, #fff), var(--st-orn) 45%, color-mix(in srgb, var(--st-orn) 55%, #000)); box-shadow: 0 6px 14px rgba(0, 0, 0, .35); }
.st .st-rod-top { top: calc(50% - 22px); }
.st .st-rod-bottom { top: 50%; }
.st.st-open-scroll .st-op-label { bottom: 6%; }
@keyframes st-unroll { from { clip-path: inset(47% 0 47% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes st-rod-up { from { transform: none; } to { transform: translateY(-204px); } }
@keyframes st-rod-down { from { transform: none; } to { transform: translateY(204px); } }
.st #door-overlay.open .st-scroll-paper { animation: st-unroll 1.4s cubic-bezier(.4, 0, .2, 1) both; }
.st #door-overlay.open .st-rod-top { animation: st-rod-up 1.4s cubic-bezier(.4, 0, .2, 1) both; }
.st #door-overlay.open .st-rod-bottom { animation: st-rod-down 1.4s cubic-bezier(.4, 0, .2, 1) both; }
html.sb-film .st .st-scroll-paper { animation: st-unroll 1.4s cubic-bezier(.4, 0, .2, 1) var(--door-start) both; }
html.sb-film .st .st-rod-top { animation: st-rod-up 1.4s cubic-bezier(.4, 0, .2, 1) var(--door-start) both; }
html.sb-film .st .st-rod-bottom { animation: st-rod-down 1.4s cubic-bezier(.4, 0, .2, 1) var(--door-start) both; }

/* Cinema countdown */
.st.st-open-cinema #door-overlay { --op-out: 2.95s; }
.st .st-op-cinema { background: radial-gradient(circle at 50% 45%, #2a2622, #0a0909 70%); }
.st .st-cine-ring { position: absolute; left: 50%; top: 42%; width: 230px; height: 230px; margin: -115px 0 0 -115px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 26px rgba(255, 255, 255, .04), 0 0 0 1px rgba(255, 255, 255, .15); background: linear-gradient(transparent calc(50% - .5px), rgba(255, 255, 255, .25) calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px)), linear-gradient(90deg, transparent calc(50% - .5px), rgba(255, 255, 255, .25) calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px)); }
.st .st-cine-sweep { position: absolute; left: 50%; top: 0; width: 2px; height: 50%; margin-left: -1px; background: rgba(255, 240, 210, .9); transform-origin: 50% 100%; opacity: 0; }
.st .st-cine-count span { position: absolute; left: 50%; top: 42%; width: 200px; margin: -.6em 0 0 -100px; font-family: 'Bodoni Moda', Didot, serif; font-size: 6.4rem; line-height: 1.2; color: #f6ecd8; text-align: center; opacity: 0; }
.st .st-cine-bar { position: absolute; left: 0; right: 0; height: 13%; background: #000; z-index: 3; }
.st .st-cine-top { top: 0; } .st .st-cine-bottom { bottom: 0; }
.st.st-open-cinema .st-op-label { color: #f6ecd8; bottom: 17%; }
.st.st-open-cinema .st-op-bg { background: #0a0909; }
@keyframes st-sweep { 0% { opacity: 1; transform: rotate(0); } 100% { opacity: 1; transform: rotate(360deg); } }
@keyframes st-count { 0% { opacity: 0; transform: scale(1.3); } 12% { opacity: 1; transform: none; } 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes st-ring-out { 0%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(1.6); } }
.st #door-overlay.open .st-cine-sweep { animation: st-sweep .9s linear 3 both; }
.st #door-overlay.open .st-cine-count span:nth-child(1) { animation: st-count .9s ease both; }
.st #door-overlay.open .st-cine-count span:nth-child(2) { animation: st-count .9s ease .9s both; }
.st #door-overlay.open .st-cine-count span:nth-child(3) { animation: st-count .9s ease 1.8s both; }
.st #door-overlay.open .st-cine-ring { animation: st-ring-out 2.9s ease both; }
.st #door-overlay.open .st-cine-bar { animation: none; }
html.sb-film .st .st-cine-sweep { animation: st-sweep .9s linear var(--door-start) 3 both; }
html.sb-film .st .st-cine-count span:nth-child(1) { animation: st-count .9s ease var(--door-start) both; }
html.sb-film .st .st-cine-count span:nth-child(2) { animation: st-count .9s ease calc(var(--door-start) + .9s) both; }
html.sb-film .st .st-cine-count span:nth-child(3) { animation: st-count .9s ease calc(var(--door-start) + 1.8s) both; }
html.sb-film .st .st-cine-ring { animation: st-ring-out 2.9s ease var(--door-start) both; }

/* Balloons flying away */
.st.st-open-balloons #door-overlay { --op-out: 1.55s; }
.st .st-balloon { position: absolute; left: var(--x); bottom: 8%; width: calc(78px * var(--z)); }
.st #door-overlay:not(.open) .st-balloon { animation: st-bob 3.2s ease-in-out calc(var(--d) * -4) infinite; }
@keyframes st-balloon-away { 0% { transform: none; } 100% { transform: translate(calc(var(--z) * 30px), -1050px) rotate(8deg); } }
.st #door-overlay.open .st-balloon { animation: st-balloon-away 1.9s cubic-bezier(.55, 0, .8, .4) var(--d) both; }
html.sb-film .st .st-balloon { animation: st-balloon-away 1.9s cubic-bezier(.55, 0, .8, .4) calc(var(--door-start) + var(--d)) both; }
.st.st-open-balloons .st-op-label { bottom: auto; top: 26%; }

/* Gift box opening */
.st.st-open-giftbox #door-overlay { --op-out: 1.55s; }
.st .st-gift { position: absolute; left: 50%; top: 40%; width: 200px; height: 230px; margin: -115px 0 0 -100px; }
.st .st-gift-glow { position: absolute; left: -80px; top: -60px; width: 360px; opacity: 0; transform: scale(.4); }
.st .st-gift-body { position: absolute; left: 0; bottom: 0; width: 200px; }
.st .st-gift-lid { position: absolute; left: -10px; top: 16px; width: 220px; transform-origin: 30% 80%; }
.st #door-overlay:not(.open) .st-gift { animation: st-invite 3s ease-in-out 1s infinite; }
@keyframes st-invite { 0%, 76%, 100% { transform: none; } 80% { transform: rotate(-6deg) scale(1.03); } 84% { transform: rotate(6deg) scale(1.04); } 88% { transform: rotate(-4deg); } 92% { transform: rotate(2deg); } }
@keyframes st-lid-pop { 0% { opacity: 1; transform: none; } 35% { opacity: 1; transform: translate(-10px, -110px) rotate(-22deg); } 100% { opacity: 0; transform: translate(-90px, -40px) rotate(-70deg); } }
@keyframes st-appear { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1.6); } }
.st #door-overlay.open .st-gift-lid { animation: st-lid-pop 1.1s cubic-bezier(.2, .7, .3, 1) both; }
.st #door-overlay.open .st-gift-glow { animation: st-appear 1.2s ease-out .2s both; }
html.sb-film .st .st-gift-lid { animation: st-lid-pop 1.1s cubic-bezier(.2, .7, .3, 1) var(--door-start) both; }
html.sb-film .st .st-gift-glow { animation: st-appear 1.2s ease-out calc(var(--door-start) + .2s) both; }
.st.st-open-giftbox .st-op-label { bottom: 11%; }

/* First scene timing in the video, after each opening. */
html.sb-film body.st-open-envelope #entry, html.sb-film body.st-open-lotus #entry { --sb-base: 2.6s; }
html.sb-film body.st-open-curtain #entry, html.sb-film body.st-open-unfold #entry, html.sb-film body.st-open-flip #entry, html.sb-film body.st-open-giftbox #entry { --sb-base: 2s; }
html.sb-film body.st-open-balloons #entry { --sb-base: 1.8s; }
html.sb-film body.st-open-cinema #entry { --sb-base: 3.6s; }
html.sb-film body.st-open-none #entry { --sb-base: .3s; }

/* ---------- Toast, effects canvas ---------- */
.st-fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 9995; pointer-events: none; }
.st .st-toast { position: fixed; z-index: 9996; left: 50%; bottom: 92px; max-width: min(340px, calc(100vw - 32px)); padding: 10px 18px; border-radius: 999px; background: rgba(20, 12, 14, .86); color: #fff6e6; font: 600 .84rem/1.45 var(--st-body-en); text-align: center; pointer-events: none; opacity: 0; transform: translate(-50%, 18px); transition: opacity .35s ease, transform .4s cubic-bezier(.2, 1.4, .4, 1); box-shadow: 0 8px 30px rgba(0, 0, 0, .35); }
.st .st-toast.show { opacity: 1; transform: translate(-50%, 0); }
html.sb-film .st-fx, html.sb-film .st .st-toast, html.sb-film .st-lightbox { display: none !important; }

/* ---------- Video and PDF: the specials play by themselves ---------- */
html.sb-film .st .st-cake .st-candle-fire { animation: st-blow-out .4s ease calc(var(--scene-start) + 3.6s) both; }
html.sb-film .st .st-cake .st-smoke { animation: st-smoke 1.6s ease-out calc(var(--scene-start) + 3.7s) both; }
@keyframes st-blow-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(.2) translateY(-6px); } }
html.sb-film .st .st-toy-burst { animation: st-burst 1.6s cubic-bezier(.15, .8, .3, 1) calc(var(--scene-start) + 3.7s) both; }
html.sb-film .st .st-done { transition: none; animation: st-done-in .8s cubic-bezier(.2, 1.4, .4, 1) calc(var(--scene-start) + 3.9s) both; }
@keyframes st-done-in { from { opacity: 0; transform: translateY(12px) scale(.9); } to { opacity: 1; transform: none; } }
html.sb-film .st .st-hint { display: none; }
html.sb-film .st .st-reveal-veil { transition: none; animation: st-veil-off .6s ease calc(var(--scene-start) + 3.4s) both; }
@keyframes st-veil-off { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(1.6); } }
html.sb-film .st .st-reveal-name { transition: none; animation: st-done-in .9s cubic-bezier(.2, 1.4, .4, 1) calc(var(--scene-start) + 3.6s) both; }
html.sb-film .st .st-bell-img { animation: st-ring 1.6s cubic-bezier(.3, .7, .4, 1) calc(var(--scene-start) + 3s) both; }
html.sb-film .st .st-bell-wave { animation: st-wave 1.4s ease-out calc(var(--scene-start) + 3s) both; }
html.sb-film .st .st-rings .st-ring-a { transition: none; animation: st-rings-a 1s cubic-bezier(.2, 1.2, .4, 1) calc(var(--scene-start) + 3.2s) both; }
html.sb-film .st .st-rings .st-ring-b { transition: none; animation: st-rings-b 1s cubic-bezier(.2, 1.2, .4, 1) calc(var(--scene-start) + 3.2s) both; }
@keyframes st-rings-a { from { transform: rotate(-14deg); } to { transform: translateX(46px) rotate(-8deg); } }
@keyframes st-rings-b { from { transform: rotate(14deg); } to { transform: translateX(-46px) rotate(8deg); } }
html.sb-film .st .st-splash-img { animation: st-wobble .6s ease calc(var(--scene-start) + 3.4s) both; }
html.sb-film .st .st-flip-inner { transform: none !important; }

/* ---------- Larger screens: the invitation stays a phone-shaped story on a soft backdrop ---------- */
@media (min-width: 700px) {
    body.st { background: radial-gradient(circle at 50% 0, color-mix(in srgb, var(--st-bg) 70%, #fff), color-mix(in srgb, var(--st-bg) 80%, #000)); }
}

@media (prefers-reduced-motion: reduce) {
    html:not(.sb-film) .st .st-fall, html:not(.sb-film) .st .st-scroll-cue { display: none; }
    html:not(.sb-film) .st [class*='st-loop-'], html:not(.sb-film) .st .st-flicker, html:not(.sb-film) .st .st-op-hint { animation: none !important; }
}

/* ---------- Section motif (a small illustration above the heading) ---------- */
.st .st-motif { display: block; width: var(--st-motif, 92px); height: auto; margin: -6px auto 10px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .12)); }
.st.st-align-left .st-motif { margin-left: 0; }

/* ---------- Text straight on the background (dark or light) ---------- */
.st { --st-bg-head: var(--st-head); --st-bg-ink: var(--st-ink); }
.st.st-tone-dark { --st-bg-head: color-mix(in srgb, var(--st-orn) 70%, #fff); --st-bg-ink: color-mix(in srgb, var(--st-surface) 90%, transparent); }
.st.st-surface-bleed .st-card, .st.st-hero-arch .st-cover-card, .st.st-hero-type .st-cover-card, .st.st-hero-photo .st-cover-card { --st-head: var(--st-bg-head); --st-ink: var(--st-bg-ink); color: var(--st-ink); }
.st.st-tone-dark.st-surface-bleed .st-soft, .st.st-tone-dark.st-surface-bleed { --st-soft: color-mix(in srgb, var(--st-surface) 10%, transparent); }

/* ---------- Gold foil lettering (designs opt in with body.st-foil) ---------- */
.st.st-foil.st-tone-dark:is(.st-hero-arch, .st-hero-type, .st-hero-photo) .st-cover .st-names, .st.st-foil.st-tone-dark:is(.st-open-gate, .st-open-curtain, .st-open-diya, .st-open-cinema, .st-open-lotus) .st-op-names {
    background: linear-gradient(180deg, #fff6d0 0%, color-mix(in srgb, var(--st-orn) 60%, #fff) 30%, var(--st-orn) 62%, color-mix(in srgb, var(--st-orn) 70%, #000) 82%, #fff0b5 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.st.st-foil.st-tone-dark:is(.st-hero-arch, .st-hero-type, .st-hero-photo) .st-cover .st-names > span, .st.st-foil.st-tone-dark:is(.st-open-gate, .st-open-curtain, .st-open-diya, .st-open-cinema, .st-open-lotus) .st-op-names > * { -webkit-text-fill-color: transparent; }

/* ---------- Occasion symbol in the medallion (Ganesha, kalash, Om…) ---------- */
.st .st-medal-art { position: relative; width: 66%; height: 66%; object-fit: contain; }
.st .st-gate-seal .st-medal-art { width: 62%; height: 62%; }
.st .st-flip-symbol { width: 120px; height: 120px; }
.st .st-flip-y > img { transform: scaleY(-1); }
.st .st-at-left.st-tall, .st .st-at-right.st-tall { top: auto; bottom: 0; }

/* Designs may colour the opening label (e.g. over dark gatefold panels). */
.st .st-op-label { color: var(--st-op-ink, var(--st-head)); }
.st.st-tone-dark .st-op-label { color: var(--st-op-ink, var(--st-bg-head)); }
