/* ==========================================================================
   PALEMBANG DIGITAL WEDDING INVITATION - HERITAGE EDITORIAL THEME
   Mobile-First (360px - 430px) with Fixed Background Scene Transitions
   ========================================================================== */

:root {
    --color-maroon-darkest: #1a0306;
    --color-maroon-deep: #290409;
    --color-maroon-rich: #3f070e;
    --color-maroon-accent: #6b0f1a;
    --color-gold-light: #fbe8bf;
    --color-gold: #cca044;
    --color-gold-bright: #e5b958;
    --color-gold-dark: #8c691e;
    --color-cream: #faf5ee;
    --color-text-light: #f7f1e6;
    --color-text-muted: #d8c7b8;
    --color-text-dark: #2a1417;
    --font-serif: "Cormorant Infant", Sans-serif;
    --font-serif-weight: 600;
    --font-script: "Pinyon Script", Sans-serif;
    --font-script-weight: 400;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body-weight: 400;
    --app-max-width: 450px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.4);
    --border-gold-subtle: 1px solid rgba(204, 160, 68, 0.35);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: #120204;
}

body {
    font-family: var(--font-body);
    font-weight: var(--font-body-weight);
    background-color: #120204;
    color: var(--color-text-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    margin: 0;
}

body.lock-scroll {
    overflow: hidden !important;
    height: 100vh !important;
}

.icon-svg {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.125em;
    fill: currentColor;
    flex-shrink: 0;
}

.audio-icon-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.me-1 {
    margin-right: 0.25rem;
}

.text-warning {
    color: var(--color-gold-bright) !important;
}

.text-danger {
    color: #b5222f !important;
}

.text-muted {
    color: var(--color-text-muted) !important;
}

/* ==========================================================================
   FIXED BACKGROUND LAYER (SCENE TRANSITION SYSTEM)
   Stable on iOS/Android - Never glitches on scroll!
   ========================================================================== */
.fixed-palembang-bg {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--app-max-width);
    height: 100%;
    background-image: url('../images/Palembang-Fallback.jpeg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: none;
}

.fixed-palembang-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(20, 2, 5, 0.4) 0%, rgba(15, 1, 3, 0.78) 100%);
}

/* ==========================================================================
   APP WRAPPER (Desktop Centered Frame)
   ========================================================================== */
.invitation-container {
    width: 100%;
    max-width: var(--app-max-width);
    margin: 0 auto;
    position: relative;
    z-index: 2;
    overflow-x: hidden;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.85);
}

/* ==========================================================================
   1. OPENING / COVER (FULLSCREEN IMAGE - NO VIDEO)
   ========================================================================== */
#opening-cover {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--app-max-width);
    min-height: 100vh;
    min-height: 100svh;
    height: 100vh;
    height: 100dvh;
    z-index: 9999;
    background-image: url('../images/Palembang-Fallback.jpeg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.9);
    transition: transform 1.1s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.9s ease;
}

#opening-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Soft gradient vignette to preserve house and flowers while keeping readability */
    background: linear-gradient(180deg, rgba(20, 15, 10, 0.02) 0%, rgba(255, 255, 255, 0) 40%, rgba(30, 8, 8, 0.15) 70%, rgba(45, 5, 5, 0.85) 100%);
    pointer-events: none;
    z-index: 1;
}

#opening-cover.opened {
    transform: translate(-50%, -100%);
    opacity: 0;
    pointer-events: none;
}

/* ── Cover Content Wrapper: Height & safe-area adaptive layout ── */
.cover-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    box-sizing: border-box;
    /* Precise top padding to position header right inside the upper golden arch */
    padding-top: calc(clamp(120px, 19.5svh, 185px) + env(safe-area-inset-top, 0px));
    padding-bottom: calc(clamp(16px, 3svh, 32px) + env(safe-area-inset-bottom, 0px));
    padding-left: clamp(16px, 4.5vw, 24px);
    padding-right: clamp(16px, 4.5vw, 24px);
}

/* Header Group: Tagline, Couple Names, Date */
.cover-header-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* "The Wedding of" script */
.cover-tagline-script {
    font-family: var(--font-script);
    font-size: clamp(1.4rem, 4.2vw, 1.85rem);
    font-weight: 400;
    color: var(--color-maroon-accent);
    line-height: 1.15;
    margin: 20px 0 clamp(2px, 0.2svh, 5px) 0;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
}

/* "Elsa & Yopi" bold couple names */
.cover-couple-names-bold {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6.6vw, 2.85rem);
    transform: scaleX(1.12);
    font-weight: 600;
    color: #cca044;
    line-height: 1.12;
    margin: 0 0 clamp(4px, 0.8svh, 8px) 0;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8), 0 2px 8px rgba(201, 168, 93, 0.25);
}

/* Date */
.cover-date {
    font-family: var(--font-serif);
    font-size: clamp(0.82rem, 2.5vw, 1.05rem);
    letter-spacing: clamp(2px, 0.6vw, 3px);
    color: var(--color-maroon-accent);
    font-weight: 600;
    text-transform: uppercase;
    margin: 0 0 clamp(28px, 7.5svh, 68px) 0;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
}

/* Guest Recipient Box */
.cover-guest-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 320px;
    margin: 0 auto clamp(18px, 4.5svh, 42px);
    background: transparent;
    padding: 0;
}

.cover-guest-label {
    font-family: var(--font-serif);
    font-size: clamp(0.95rem, 2.8vw, 1.15rem);
    letter-spacing: 1.2px;
    font-weight: 600;
    color: var(--color-maroon-accent);
    margin-bottom: clamp(2px, 0.5svh, 4px);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.cover-guest-name {
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 4.4vw, 1.68rem);
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #c9a85d;
    margin-bottom: clamp(4px, 0.8svh, 8px);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8), 0 2px 6px rgba(201, 168, 93, 0.25);
}

.cover-guest-note {
    font-family: var(--font-serif);
    font-size: clamp(0.7rem, 2.1vw, 0.84rem);
    font-weight: 500;
    line-height: 1.35;
    font-style: italic;
    color: #666;
    margin: 0;
    max-width: 300px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.cover-guestbook-btn {
    position: absolute;
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1.5px solid rgb(255 255 255 / 28%);
    border-radius: 40%;
    background: var(--color-maroon-accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(60, 10, 10, .28);
    cursor: pointer;
    z-index: 3;
}

.cover-guestbook-btn .icon-svg { width: 20px; height: 20px; }
.cover-guestbook-btn {
    animation: guestbookFloat 3.6s ease-in-out infinite;
}
.cover-guestbook-btn:hover {
    animation-play-state: paused;
    transform: scale(1.06);
}

/* Action Button Group */
.cover-action-group {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 0;
}

.btn-buka-undangan {
    background: linear-gradient(90deg, #d7bb83 0%, #c9a85d 100%);
    color: #ffffff;
    border: none;
    font-family: var(--font-body);
    font-size: clamp(0.8rem, 2.4vw, 0.92rem);
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: clamp(10px, 1.4svh, 13px) clamp(26px, 6vw, 36px);
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(184, 147, 68, 0.38), 0 0 0 3px rgba(215, 187, 131, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    animation: pulseGlow 2.5s infinite;
}

.btn-buka-undangan:hover {
    transform: scale(1.04);
    background: linear-gradient(135deg, #fff0cb 0%, var(--color-gold-bright) 100%);
}

/* Height-adaptive refinements for short screen heights (<= 750px) */
@media screen and (max-height: 750px) {
    .cover-content {
        padding-top: calc(clamp(120px, 19.5svh, 185px) + env(safe-area-inset-top, 0px));
    }

    .cover-date {
        margin-bottom: clamp(18px, 4.5svh, 32px);
    }

    .cover-guest-card {
        margin-bottom: clamp(12px, 3svh, 24px);
    }
}

.cover-motif-bottom {
    width: 100%;
    max-width: 280px;
    height: auto;
    object-fit: contain;
}

/* ==========================================================================
   2. MAIN HERO (FULLSCREEN HD VIDEO BACKGROUND)
   ========================================================================== */
.main-hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 620px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 0px 24px 50px;
    text-align: center;
    background-color: var(--color-maroon-darkest);
}

.hero-video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: none;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hero-video-bg.video-ready {
    opacity: 1;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgb(20 2 4 / 0%) 0%, rgb(30 4 8 / 0%) 35% 35%, rgb(28 3 7 / 40%) 100%);
    z-index: 3;
}

/* --------------------------------------------------------------------------
   VIDEO STATE LAYER (LOADING, BUFFERING & ERROR RECOVERY)
   -------------------------------------------------------------------------- */
.hero-video-state-layer {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 4;
    pointer-events: none;
    padding: 24px;
    box-sizing: border-box;
}

.hero-state-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(26, 3, 6, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(204, 160, 68, 0.35);
    border-radius: 16px;
    padding: 24px 20px;
    max-width: 320px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    pointer-events: auto;
    opacity: 0;
    transform: scale(0.96) translateY(6px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero-state-box.show {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.hero-state-title {
    font-family: var(--font-serif);
    font-weight: var(--font-serif-weight, 600);
    font-size: 1.15rem;
    color: var(--color-gold-bright, #e5b958);
    margin-top: 12px;
    margin-bottom: 4px;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.hero-state-subtitle {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-text-light, #f7f1e6);
    opacity: 0.85;
    line-height: 1.4;
    margin: 0;
}

/* Spinner Palembang Style */
.hero-state-spinner {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-palembang-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(204, 160, 68, 0.2);
    border-top-color: var(--color-gold-bright, #e5b958);
    border-right-color: var(--color-gold, #cca044);
    animation: palembangSpin 1s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
}

.spinner-palembang-core {
    width: 10px;
    height: 10px;
    background: var(--color-gold-bright, #e5b958);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(229, 185, 88, 0.7);
    animation: palembangPulse 1.4s ease-in-out infinite;
}

@keyframes palembangSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes palembangPulse {
    0%, 100% { transform: scale(0.85); opacity: 0.7; }
    50% { transform: scale(1.15); opacity: 1; }
}

/* Subtle Mid-Playback Buffering Pill */
.hero-buffering-pill {
    position: absolute;
    top: calc(18px + env(safe-area-inset-top, 0px));
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(26, 3, 6, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(204, 160, 68, 0.3);
    border-radius: 20px;
    padding: 6px 14px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--color-gold-bright, #e5b958);
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 5;
}

.hero-buffering-pill.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.buffering-dot {
    width: 7px;
    height: 7px;
    background: var(--color-gold-bright, #e5b958);
    border-radius: 50%;
    animation: palembangPulse 0.9s ease-in-out infinite;
}

/* Error Box Styling */
.hero-error-icon {
    font-size: 1.8rem;
    color: #f59e0b;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-error-icon svg {
    width: 32px;
    height: 32px;
}

.btn-reload-recovery {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--color-maroon-accent, #6b0f1a) 0%, var(--color-maroon-rich, #3f070e) 100%);
    border: 1px solid var(--color-gold, #cca044);
    border-radius: 24px;
    color: var(--color-gold-bright, #e5b958);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: all 0.25s ease;
}

.btn-reload-recovery:hover,
.btn-reload-recovery:focus {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #841321 0%, #4e0811 100%);
    box-shadow: 0 6px 16px rgba(204, 160, 68, 0.3);
    color: #fff;
}

.btn-reload-recovery:active {
    transform: translateY(1px);
}

.btn-reload-recovery svg {
    width: 14px;
    height: 14px;
}

@media (prefers-reduced-motion: reduce) {
    .spinner-palembang-ring,
    .spinner-palembang-core,
    .buffering-dot {
        animation: none !important;
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}

.hero-motif-top {
    width: 100%;
    max-width: 250px;
    height: auto;
    opacity: 0.9;
}

.hero-center-box {
    margin: 0;
    width: 100%;
    max-width: 420px;
    padding: 0 20px;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* Base state for animated hero texts - initially hidden before second 14 */
.hero-text {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(6px);
    transform-origin: center center;
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform, filter;
    pointer-events: none;
}

/* Reveal upon .show class */
.hero-center-box.show .hero-text,
.hero-text.show {
    pointer-events: auto;
}

.hero-ey-logo {
    width: clamp(40px, 4vw, 76px);
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    margin-top: -30px;
}

.hero-center-box.show .hero-ey-logo,
.hero-ey-logo.show {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    transition-delay: 0s;
}

/* ── "The Wedding of" ── uppercase kecil serif, delay 0s */
.hero-text-the-wedding-of {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    /* text-transform: uppercase; */
    letter-spacing: 1px;
    color: #2b2b2b;
    font-weight: 700;
    margin-bottom: 20px;
    /* text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85); */
}

.hero-center-box.show .hero-text-the-wedding-of,
.hero-text-the-wedding-of.show {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    transition-delay: 0.15s;
}

/* ── Nama Pertama ── besar, script gold, delay 0.35s */
.hero-text-name-first {
    font-family: var(--font-script);
    font-size: 4rem;
    line-height: 1;
    color: #cca044;
    font-weight: 400;
    /* text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7), 0 1px 4px rgba(204, 160, 68, 0.3); */
    margin-bottom: 0;
    display: block;
}

.hero-center-box.show .hero-text-name-first,
.hero-text-name-first.show {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    transition-delay: 0.35s;
}

/* ── "&" Solo ── besar, script, baris sendiri, delay 0.7s */
.hero-text-solo-ampersand {
    font-family: var(--font-script);
    font-size: 3.5rem;
    line-height: 0.5;
    color: #cca044;
    font-weight: 400;
    /* text-shadow: 0 3px 16px rgba(0, 0, 0, 0.75); */
    /* margin: 4px 0; */
    display: block;
}

.hero-center-box.show .hero-text-solo-ampersand,
.hero-text-solo-ampersand.show {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    transition-delay: 0.7s;
}

/* ── Nama Kedua ── besar, script gold, delay 1.05s */
.hero-text-name-second {
    font-family: var(--font-script);
    font-size: 4rem;
    line-height: 1.05;
    color: #cca044;
    font-weight: 400;
    /* text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7), 0 1px 4px rgba(204, 160, 68, 0.3); */
    margin-top: 0;
    display: block;
}

.hero-center-box.show .hero-text-name-second,
.hero-text-name-second.show {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    transition-delay: 1.05s;
}

/* ── Tanggal Minimal "dd . mm . yy" ── delay 1.4s */
.hero-text-date-minimal {
    font-family: var(--font-serif);
    font-size: 1.0rem;
    font-weight: 600;
    letter-spacing: 6px;
    color: #222222;
    /* text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85); */
    margin-top: 38px;
    display: block;
}

.hero-center-box.show .hero-text-date-minimal,
.hero-text-date-minimal.show {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    transition-delay: 1.4s;
}

/* Scroll indicator revealed after hero text animation */
.hero-scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-gold-light);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.8s ease 1.8s, transform 0.8s ease 1.8s;
    pointer-events: none;
}

.hero-center-box.show~.hero-scroll-indicator,
.hero-scroll-indicator.show,
.main-hero-section.hero-revealed .hero-scroll-indicator {
    opacity: 0.85;
    transform: translateY(0);
    pointer-events: auto;
    animation: bounceIndicator 2.5s infinite 2.6s;
}

.hero-scroll-indicator i {
    font-size: 0.9rem;
}

/* ==========================================================================
   SECTION ARCHITECTURE (TRANSPARENT VS SOLID SCENE LAYERING)
   ========================================================================== */

/* A. Transparent Section (Reveals Palembang-Fallback.jpeg) */
.section-scene-transparent {
    position: relative;
    background-color: transparent !important;
    padding: 70px 24px;
    z-index: 2;
}

.section-scene-transparent::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(18, 2, 4, 0.45);
    z-index: -1;
    pointer-events: none;
}

/* B. Solid Section (Opaque crimson covers fixed background) */
.section-scene-solid {
    position: relative;
    background-color: var(--color-maroon-deep);
    background-image: url('../images/bg-ok2.png');
    background-size: 100%;
    background-position: top;
    background-repeat: no-repeat;
    padding: 150px 24px 100px;
    z-index: 3;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.6);
}

.section-scene-solid::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(18 2 4 / 49%) 0%, rgb(18 2 4) 50%, #260305 100%);
    z-index: 1;
}

.section-scene-solid>* {
    position: relative;
    z-index: 2;
}

/* Section Header Typography */
.scene-header {
    text-align: center;
    margin-bottom: 36px;
}

.save-date-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.save-date-logo {
    width: clamp(82px, 24vw, 116px);
    height: auto;
    object-fit: contain;
}

.scene-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-gold-bright);
    font-weight: 600;
    margin-bottom: 6px;
}

.scene-title {
    font-family: var(--font-script);
    font-size: 2.5rem;
    font-weight: 100;
    color: #ffffff;
}

.scene-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 12px auto 0;
    max-width: 200px;
}

.scene-divider::before,
.scene-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.scene-divider img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* ==========================================================================
   3. AYAT / SACRED QUOTE SECTION (TRANSPARENT SCENE)
   ========================================================================== */
.editorial-quote-box {
    background: rgba(26, 3, 6, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(204, 160, 68, 0.4);
    border-radius: 20px;
    padding: 34px 24px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.editorial-mempelai-box {
    background: rgb(255 255 255 / 80%);
    border: 4px solid rgb(208 151 32 / 45%);
    border-radius: 200px;
    padding: 100px 20px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.editorial-arabic {
    font-family: 'Amiri', 'Times New Roman', serif;
    font-size: 1.35rem;
    line-height: 2;
    color: var(--color-gold-light);
    direction: rtl;
    margin-bottom: 18px;
}

.editorial-translation {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 14px;
}

.editorial-source {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-gold-bright);
    letter-spacing: 1px;
    margin: 0;
}

/* ==========================================================================
   4. PROFIL MEMPELAI (SOLID SCENE WITH PALEMBANG COUPLE ASSETS)
   ========================================================================== */
.couple-editorial-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.couple-profile-block {
    text-align: center;
    position: relative;
}

.couple-illustration-frame {
    width: 215px;
    height: 325px;
    margin: 0 auto 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Oval Frame that clips the photo inside */
.couple-photo-clip {
    width: 100%;
    height: 100%;
    border-radius: 150px;
    border: 2px solid #CCA044;
    overflow: hidden;
    position: relative;
    z-index: 2;
    background-color: #2b030b;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.couple-photo-clip::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    z-index: 3;
}

.couple-illustration-frame:hover .couple-photo-clip {
    border-color: #f1d382;
    box-shadow: 0 16px 36px rgba(204, 160, 68, 0.3), 0 12px 30px rgba(0, 0, 0, 0.55);
}

.couple-photo-clip img,
.couple-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
    transition: transform 0.5s ease;
}

.couple-illustration-frame:hover .couple-photo-img {
    transform: scale(1.05);
}

/* Fallback if photo-clip wrapper is missing */
.couple-illustration-frame>img:not(.couple-flower-decor) {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #CCA044;
    object-fit: cover;
    object-position: center 15%;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    position: relative;
    z-index: 2;
}

/* Side Floral Decorations */
.couple-flower-decor {
    position: absolute;
    pointer-events: none;
    user-select: none;
    transition: transform 0.4s ease;
}

.couple-flower-decor.flower-left {
    width: 110px;
    height: auto;
    left: -40px;
    bottom: -1px;
    z-index: 4;
    filter: drop-shadow(2px 6px 12px rgba(0, 0, 0, 0.45));
    transform: scaleX(-1);
}

.couple-flower-decor.flower-right {
    width: 170px;
    height: auto;
    right: -38px;
    top: 18%;
    transform: scaleX(-1);
    z-index: 1;
    filter: drop-shadow(2px 6px 10px rgba(0, 0, 0, 0.4));
    transform-origin: bottom center;
    animation: coupleFlowerRight 6s ease-in-out infinite alternate;
}

.couple-illustration-frame:hover .couple-flower-decor.flower-left {
    transform: rotate(-2deg) scale(1.03);
    transform: scaleX(-1);
}

.couple-illustration-frame:hover .couple-flower-decor.flower-right {
    transform: scaleX(-1) scale(1.03);
}

.couple-fullname {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    line-height: 1.25;
    margin-bottom: 4px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.couple-nickname-script {
    font-family: var(--font-script);
    font-size: 3.5rem;
    color: #4C030A;
    /* line-height: 1; */
    margin-bottom: 12px;
}

.couple-bio-parents {
    font-size: 0.9rem;
    color: #222;
    line-height: 1.6;
    margin-bottom: 16px;
}

.couple-bio-parents strong {
    color: #222;
    display: inline;
}

.couple-parents-line {
    display: block;
}

.btn-couple-ig {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f7f1e6;
    border: 1px solid #cca044;
    color: #cca044;
    padding: 7px 18px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-couple-ig:hover {
    background: var(--color-gold);
    color: #1a0306;
    border-color: var(--color-gold);
}

.couple-bridge-ornament {
    text-align: center;
    margin: 10px 0;
}

.couple-bridge-ornament img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

/* ==========================================================================
   5. COUNTDOWN / SAVE THE DATE (TRANSPARENT SCENE)
   ========================================================================== */
.countdown-minimal-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 24px auto 10px;
    max-width: 360px;
}

.countdown-minimal-unit {
    flex: 1;
    background: rgba(26, 3, 6, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(204, 160, 68, 0.45);
    border-radius: 14px;
    padding: 14px 6px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.countdown-digit {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-gold-bright);
    line-height: 1.1;
    display: block;
}

.countdown-label-text {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-muted);
    margin-top: 4px;
    display: block;
}

/* Teks Undangan Pembuka Acara di Bawah Countdown */
.save-date-invitation-text {
    max-width: 380px;
    margin: clamp(22px, 3.8svh, 34px) auto 0;
    padding: 0 16px;
    text-align: center;
}

.save-date-invitation-text p {
    font-family: var(--font-body);
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    line-height: 1.7;
    color: var(--color-text-light);
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   6. RANGKAIAN ACARA (SOLID SCENE WITH CARD ARCHITECTURE)
   ========================================================================== */
.events-stack {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.editorial-event-card {
    background-image: url('../images/tes-optimized.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1.5px solid rgba(204, 160, 68, 0.45);
    border-radius: 200px;
    height: 700px;
    padding: 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    /* TAMBAHKAN */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Lapisan putih transparan di dalam */
.editorial-event-card::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: rgba(255, 252, 245, 0.95);
    border: 2px solid rgba(204, 160, 68, 0.4);
    border-radius: 180px;
    z-index: 1;
}

/* Supaya isi card berada di atas overlay */
.editorial-event-card>* {
    position: relative;
    z-index: 2;
    transform: translateY(-20px);
}

/* Akad Nikah */
.event-type-pill {
    display: inline-block;
    background: transparent;
    border: none;
    color: #5e0812;
    font-family: var(--font-script);
    font-size: 2.7rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;

    padding: 0;
    margin-bottom: 28px;
}

/* SABTU / Judul */
.event-heading-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}


/* =========================================================
   COVER FLOWER - BASE
========================================================= */

.cover-flower {
    position: absolute;
    pointer-events: none;
    user-select: none;

    transform-origin: bottom center;

    will-change: transform;
    backface-visibility: hidden;
}


/* =========================================================
   1. BUNGA UTAMA - ORN 25
========================================================= */

.flower-main {
    width: 100px;
    z-index: 0;
    bottom: 50px;
}

.flower-main.cover-flower-left {
    left: -25px;
    animation: flowerMainLeft 5s ease-in-out infinite alternate;
}

.flower-main.cover-flower-right {
    right: -25px;
    animation: flowerMainRight 5.4s ease-in-out -1s infinite alternate;
}


/* =========================================================
   2. BUNGA DEPAN - COUPLE DEPAN
========================================================= */

.flower-front {
    width: 50px;
    z-index: 0;
    bottom: 20px;
}

/* kiri */
.flower-front.cover-flower-left {
    left: -2px;
    animation: flowerFrontLeft 6s ease-in-out -1.5s infinite alternate;
}

/* kanan */
.flower-front.cover-flower-right {
    right: -2px;
    animation: flowerFrontRight 6.4s ease-in-out -2s infinite alternate;
}


/* =========================================================
   3. ORNAMEN BAWAH - ORN 19
========================================================= */

.flower-bottom {
    width: 100px;
    z-index: -1;
    bottom: -10px;
}

.flower-bottom.cover-flower-left {
    left: -5px;
    animation: flowerBottomLeft 7s ease-in-out -1.98s infinite alternate;
}

.flower-bottom.cover-flower-right {
    right: -5px;
    animation: flowerBottomRight 7s ease-in-out -2s infinite alternate;
}


/* =========================================================
   ANIMASI BUNGA UTAMA
========================================================= */

@keyframes flowerMainLeft {
    0% {
        transform: translate3d(0, 0, 0) rotate(-1deg);
    }

    50% {
        transform: translate3d(2px, -2px, 0) rotate(1.2deg);
    }

    100% {
        transform: translate3d(-1px, 0, 0) rotate(-0.7deg);
    }
}

@keyframes flowerMainRight {
    0% {
        transform: scaleX(-1) translate3d(0, 0, 0) rotate(-1deg);
    }

    50% {
        transform: scaleX(-1) translate3d(2px, -2px, 0) rotate(1.2deg);
    }

    100% {
        transform: scaleX(-1) translate3d(-1px, 0, 0) rotate(-0.7deg);
    }
}


/* =========================================================
   ANIMASI BUNGA DEPAN
   Sedikit lebih lembut
========================================================= */

@keyframes flowerFrontLeft {
    0% {
        transform: translate3d(0, 0, 0) rotate(-1.5deg);
    }

    50% {
        transform: translate3d(1px, -2px, 0) rotate(1deg);
    }

    100% {
        transform: translate3d(-1px, -1px, 0) rotate(-0.5deg);
    }
}

@keyframes flowerFrontRight {
    0% {
        transform: scaleX(-1) translate3d(0, 0, 0) rotate(-1.5deg);
    }

    50% {
        transform: scaleX(-1) translate3d(1px, -2px, 0) rotate(1deg);
    }

    100% {
        transform: scaleX(-1) translate3d(-1px, -1px, 0) rotate(-0.5deg);
    }
}


/* =========================================================
   ANIMASI ORNAMEN BAWAH
   Paling lambat supaya terasa berat/natural
========================================================= */

@keyframes flowerBottomLeft {
    0% {
        transform: translate3d(0, 0, 0) rotate(-1deg);
    }

    50% {
        transform: translate3d(1px, -1px, 0) rotate(8deg);
    }

    100% {
        transform: translate3d(-1px, 0, 0) rotate(-0.5deg);
    }
}

@keyframes flowerBottomRight {
    0% {
        transform: scaleX(-1) translate3d(0, 0, 0) rotate(-1deg);
    }

    50% {
        transform: scaleX(-1) translate3d(1px, -1px, 0) rotate(8deg);
    }

    100% {
        transform: scaleX(-1) translate3d(-1px, 0, 0) rotate(-0.5deg);
    }
}

/* =========================================================
   MAIN HERO FLOWERS
========================================================= */

.hero-flower-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

/* wrapper kiri & kanan */
.hero-flower-side {
    position: absolute;
    inset: 0;

    opacity: 0;

    will-change: transform, opacity;
    pointer-events: none;

    transition:
        transform 1.8s cubic-bezier(.22, .8, .25, 1),
        opacity 1.5s ease;
}


.hero-flower-side-left {
    transform: translate3d(-60px, 12px, 0);
}

.hero-flower-side-right {
    transform: translate3d(60px, 12px, 0);
}


/* DETIK KE-5 */
.hero-flower-layer.show .hero-flower-side {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.hero-flower {
    position: absolute;

    pointer-events: none;
    user-select: none;

    transform-origin: bottom center;

    will-change: transform;
    backface-visibility: hidden;
}


/* ===============================
   ORN 25
================================ */

.hero-flower-main {
    width: 70px;
    bottom: 50px;
}

.hero-flower-main.hero-flower-left {
    left: -15px;

    animation:
        heroFlowerMainLeft 5s ease-in-out infinite alternate;
}

.hero-flower-main.hero-flower-right {
    right: -15px;

    animation:
        heroFlowerMainRight 5.4s ease-in-out infinite alternate;
}


/* ===============================
   BUNGA DEPAN
================================ */

.hero-flower-front {
    width: 40px;
    bottom: 20px;
    rotate: 40deg;
}

.hero-flower-front.hero-flower-left {
    left: -20px;

    animation:
        heroFlowerFrontLeft 6s ease-in-out infinite alternate;
}

.hero-flower-front.hero-flower-right {
    right: -20px;

    animation:
        heroFlowerFrontRight 6.4s ease-in-out infinite alternate;
}


/* ===============================
   ORN 19 BAWAH
================================ */

.hero-flower-bottom {
    width: 60px;
    bottom: -15px;
}

.hero-flower-bottom.hero-flower-left {
    left: -5px;
    animation: heroFlowerBottomLeft 7s ease-in-out infinite alternate;
}

.hero-flower-bottom.hero-flower-right {
    right: -5px;
    animation: heroFlowerBottomRight 7.5s ease-in-out infinite alternate;
}

@keyframes heroFlowerMainLeft {
    0% {
        transform: translate3d(0, 0, 0) rotate(-1deg);
    }

    50% {
        transform: translate3d(2px, -2px, 0) rotate(1.2deg);
    }

    100% {
        transform: translate3d(-1px, 0, 0) rotate(-0.7deg);
    }
}

@keyframes heroFlowerMainRight {
    0% {
        transform: scaleX(-1) translate3d(0, 0, 0) rotate(-1deg);
    }

    50% {
        transform: scaleX(-1) translate3d(2px, -2px, 0) rotate(1.2deg);
    }

    100% {
        transform: scaleX(-1) translate3d(-1px, 0, 0) rotate(-0.7deg);
    }
}


@keyframes heroFlowerFrontLeft {
    0% {
        transform: translate3d(0, 0, 0) rotate(-1.5deg);
    }

    50% {
        transform: translate3d(1px, -2px, 0) rotate(1deg);
    }

    100% {
        transform: translate3d(-1px, -1px, 0) rotate(-0.5deg);
    }
}

@keyframes heroFlowerFrontRight {
    0% {
        transform: scaleX(-1) translate3d(0, 0, 0) rotate(-1.5deg);
    }

    50% {
        transform: scaleX(-1) translate3d(1px, -2px, 0) rotate(1deg);
    }

    100% {
        transform: scaleX(-1) translate3d(-1px, -1px, 0) rotate(-0.5deg);
    }
}


@keyframes heroFlowerBottomLeft {
    0% {
        transform: scaleX(-1) translate3d(0, 0, 0) rotate(-0.6deg);
    }

    50% {
        transform: scaleX(-1) translate3d(1px, -1px, 0) rotate(0.8deg);
    }

    100% {
        transform: scaleX(-1) translate3d(-1px, 0, 0) rotate(-0.4deg);
    }
}

@keyframes heroFlowerBottomRight {
    0% {
        transform: translate3d(0, 0, 0) rotate(0.6deg);
    }

    50% {
        transform: translate3d(-1px, -1px, 0) rotate(-0.8deg);
    }

    100% {
        transform: translate3d(1px, 0, 0) rotate(0.4deg);
    }
}

/* =========================================================
   COUPLE FLOWER RIGHT - Natural sway (flip scaleX(-1) preserved)
========================================================= */
@keyframes coupleFlowerRight {
    0% {
        transform: scaleX(-1) translate3d(0, 0, 0) rotate(-1deg);
    }

    30% {
        transform: scaleX(-1) translate3d(2px, -3px, 0) rotate(1.3deg);
    }

    65% {
        transform: scaleX(-1) translate3d(-1px, -1px, 0) rotate(-0.6deg);
    }

    100% {
        transform: scaleX(-1) translate3d(1px, -2px, 0) rotate(0.9deg);
    }
}

/* Area tanggal + jam */
.event-schedule-block {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 28px;
}

/* SABTU / 12 Desember 2026 */
.event-schedule-date {
    margin-bottom: 10px;
}

.event-schedule-day {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 4.4vw, 1.7rem);
    font-weight: 700;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
    margin-bottom: 3px;
}

.event-schedule-fulldate {
    font-family: var(--font-serif);
    font-size: clamp(1.18rem, 3.8vw, 1.42rem);
    font-weight: 600;
    color: #333;
    letter-spacing: 0.5px;
    line-height: 1.25;
}

/* Pukul : 10.00 WITA - Selesai */
.event-schedule-time {
    font-size: 0.95rem;
    color: #333;
    letter-spacing: 0.5px;
}

/* Nama lokasi */
.event-venue-name {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: #5e0812;
    text-transform: uppercase;
    line-height: 1.3;
    margin-bottom: 4px;
}

/* Alamat */
.event-address-text {
    font-size: 0.9rem;
    color: #222;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Tombol Google Maps */
.event-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.btn-event-action {
    min-width: 35px;
    padding: 10px 28px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-event-primary {
    background: linear-gradient(135deg, var(--color-gold-bright) 0%, var(--color-gold-dark) 100%);
    color: #ffffff;
    border: none;
}

.btn-event-primary:hover {
    background: linear-gradient(135deg, #fff0cb 0%, var(--color-gold-bright) 100%);
    transform: translateY(-2px);
    color: #1a0306;
}

.btn-event-ghost {
    background: transparent;
    color: var(--color-gold-light);
    border: 1px solid rgba(204, 160, 68, 0.5);
}

.btn-event-ghost:hover {
    background: rgba(204, 160, 68, 0.15);
    border-color: var(--color-gold);
    color: #ffffff;
    transform: translateY(-2px);
}

.event-map-wrapper {
    margin-top: 18px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(204, 160, 68, 0.35);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.lazy-map-embed {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 3, 6, 0.12);
}

.lazy-map-embed.is-loaded {
    display: block;
    min-height: 0;
    background: transparent;
}

.event-map-wrapper iframe {
    width: 100%;
    height: 180px;
    border: 0;
    display: block;
}

/* ==========================================================================
   7. LOVE STORY TIMELINE (TRANSPARENT SCENE)
   ========================================================================== */
.editorial-timeline {
    position: relative;
    padding-left: 28px;
    margin: 10px 0;
}

.editorial-timeline::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--color-gold-bright) 0%, rgba(204, 160, 68, 0.2) 100%);
}

.timeline-entry {
    position: relative;
    margin-bottom: 28px;
}

.timeline-entry::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-gold-bright);
    border: 2px solid #1a0306;
    box-shadow: 0 0 0 3px rgba(204, 160, 68, 0.4);
}

.timeline-entry-card {
    background: rgba(26, 3, 6, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(204, 160, 68, 0.35);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: var(--shadow-soft);
}

.timeline-period-badge {
    display: inline-block;
    background: rgba(204, 160, 68, 0.2);
    color: var(--color-gold-light);
    border: 1px solid var(--color-gold);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 10px;
    margin-bottom: 6px;
}

.timeline-entry-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.timeline-entry-body {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   8. GALERI FOTO EDITORIAL (SOLID SCENE)
   ========================================================================== */
.gallery-editorial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.gallery-card-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(204, 160, 68, 0.3);
    background-color: #200306;
}

.gallery-card-item.portrait {
    grid-column: span 1;
    aspect-ratio: 3 / 4;
}

.gallery-card-item.landscape {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
}

.gallery-card-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.gallery-card-item:hover img {
    transform: scale(1.06);
}

/* Lightbox Modal */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 1, 3, 0.96);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-box {
    max-width: 440px;
    width: 100%;
    text-align: center;
    position: relative;
}

.lightbox-main-image {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
    object-fit: contain;
    border: 1px solid rgba(204, 160, 68, 0.4);
}

.lightbox-caption-text {
    color: var(--color-gold-light);
    font-size: 0.9rem;
    margin-top: 14px;
    font-weight: 500;
}

.lightbox-btn-close {
    position: absolute;
    top: -42px;
    right: 0;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
}

.lightbox-btn-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid var(--color-gold);
    color: #ffffff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.lightbox-btn-prev {
    left: -12px;
}

.lightbox-btn-next {
    right: -12px;
}

/* ==========================================================================
   9. WEDDING GIFT / AMPLOP DIGITAL (TRANSPARENT SCENE)
   ========================================================================== */
.gift-card-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.gift-account-card {
    background: rgba(26, 3, 6, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(204, 160, 68, 0.45);
    border-radius: 24px;
    padding: 26px 20px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.gift-bank-badge-img {
    height: 32px;
    max-width: 110px;
    object-fit: contain;
    margin-bottom: 14px;
    filter: brightness(1.05);
}

.gift-account-digits {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gold-bright);
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.gift-account-holder-name {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.btn-salin-rekening {
    background: rgba(204, 160, 68, 0.15);
    border: 1px solid var(--color-gold);
    color: var(--color-gold-light);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 9px 24px;
    border-radius: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-salin-rekening:hover {
    background: var(--color-gold);
    color: #1a0306;
    transform: translateY(-2px);
}

/* Alamat Kirim Kado Fisik */
.gift-address-card {
    margin-top: 24px;
    background: rgba(26, 3, 6, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(204, 160, 68, 0.45);
    border-radius: 24px;
    padding: 26px 20px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.gift-address-icon {
    font-size: 2.6rem;
    color: var(--color-gold-bright);
    margin-bottom: 10px;
    line-height: 1;
}

.gift-address-label {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.gift-address-recipient {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-gold-bright);
    margin-bottom: 6px;
    line-height: 1.3;
}

.gift-address-text {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 18px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.btn-copy-alamat {
    background: #7a0b18;
    color: #fff;
    border: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.btn-copy-alamat:hover {
    background: #9c1020;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(122, 11, 24, 0.4);
}

/* ==========================================================================
   10. RSVP & UCAPAN DOA (SOLID SCENE WITH LIVE GUESTBOOK)
   ========================================================================== */
.rsvp-editorial-card {
    background: rgba(20, 2, 4, 0.75);
    border: 1px solid rgba(204, 160, 68, 0.4);
    border-radius: 22px;
    padding: 28px 22px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 30px;
}

.rsvp-input-group {
    margin-bottom: 16px;
}

.rsvp-input-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-gold-light);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.rsvp-text-input {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    border: 1px solid rgba(204, 160, 68, 0.4);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rsvp-text-input:focus {
    outline: none;
    border-color: var(--color-gold-bright);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(204, 160, 68, 0.2);
}

.rsvp-text-input option {
    background-color: var(--color-maroon-deep);
    color: #ffffff;
}

.btn-kirim-rsvp {
    width: 100%;
    background: linear-gradient(135deg, var(--color-gold-bright) 0%, var(--color-gold-dark) 100%);
    color: #1a0306;
    border: none;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 13px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(204, 160, 68, 0.3);
}

.btn-kirim-rsvp:hover {
    background: linear-gradient(135deg, #fff0cb 0%, var(--color-gold-bright) 100%);
    transform: translateY(-2px);
}

.wishes-editorial-stream {
    max-height: 440px;
    overflow-y: auto;
    padding-right: 6px;
}

.wishes-editorial-stream::-webkit-scrollbar {
    width: 4px;
}

.wishes-editorial-stream::-webkit-scrollbar-thumb {
    background: var(--color-gold);
    border-radius: 4px;
}

.wish-single-bubble {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(204, 160, 68, 0.25);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
}

.wish-bubble-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.wish-guest-title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
}

.wish-status-badge {
    font-size: 0.68rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.wish-status-badge.attending {
    background: rgba(46, 125, 50, 0.25);
    border: 1px solid #4caf50;
    color: #81c784;
}

.wish-status-badge.not_attending {
    background: rgba(198, 40, 40, 0.25);
    border: 1px solid #e57373;
    color: #ef9a9a;
}

.wish-status-badge.unsure {
    background: rgba(245, 124, 0, 0.25);
    border: 1px solid #ffb74d;
    color: #ffe082;
}

.wish-text-content {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.55;
    margin-bottom: 6px;
}

.wish-timestamp {
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   11. CLOSING / FOOTER (TRANSPARENT SCENE)
   ========================================================================== */
.closing-editorial-section {
    text-align: center;
    padding: 150px 72px 50px;
    position: relative;
    z-index: 2;
}

.closing-motif-top {
    width: 100%;
    max-width: 240px;
    margin: 0 auto 20px;
    height: auto;
    opacity: 0.85;
}

.closing-body-paragraph {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--color-text-light);
    max-width: 360px;
    margin: 0 auto 24px;
}

.closing-family-signature {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-gold-bright);
    margin-bottom: 24px;
}

.closing-calligraphy-names {
    font-family: var(--font-script);
    font-size: 3.4rem;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 200px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.closing-motif-link {
    display: inline-block;
    width: 40%;
    max-width: 240px;
    margin: 0 auto 10px;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.closing-motif-link:hover {
    transform: scale(1.05);
    opacity: 1;
}

.closing-motif-link .closing-motif-bottom {
    width: 100%;
    margin: 0 auto;
}

.closing-motif-bottom {
    width: 40%;
    max-width: 240px;
    margin: 0 auto 10px;
    height: auto;
    opacity: 0.85;
}

.closing-copyright-note {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.closing-copyright-note a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.closing-copyright-note a:hover {
    color: var(--color-gold-bright);
}

@keyframes guestbookFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes guestbookCardIn {
    from { opacity: 0; transform: translateY(18px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ========================================================================== 
   FLOATING MUSIC CONTROLLER
   ========================================================================== */
.floating-audio-disc {
    position: fixed;
    bottom: 24px;
    right: max(20px, calc(50% - 210px));
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-maroon-accent) 0%, var(--color-maroon-darkest) 100%);
    border: 2px solid var(--color-gold-bright);
    color: var(--color-gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    z-index: 1001;
    transition: transform 0.2s ease, opacity 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.floating-audio-disc.active {
    opacity: 1;
    visibility: visible;
}

.floating-audio-disc.rotating .icon-svg {
    animation: spinVinyl 3.5s linear infinite;
}

.floating-audio-disc:hover {
    transform: scale(1.1);
}

.floating-guestbook-btn {
    position: fixed;
    bottom: 82px;
    right: max(20px, calc(50% - 210px));
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-maroon-darkest) 100%);
    border: 2px solid var(--color-gold-bright);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    z-index: 10000;
}

body.lock-scroll .floating-guestbook-btn {
    display: none;
}

.floating-guestbook-btn {
    animation: guestbookFloat 3.6s ease-in-out infinite;
}
.floating-guestbook-btn:hover {
    animation-play-state: paused;
    transform: scale(1.1);
}
.guestbook-qr-modal {
    position: fixed;
    inset: 0;
    z-index: 10010;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 12px;
    background: rgba(18, 2, 4, .82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.guestbook-qr-modal[hidden] {
    display: none;
}

.guestbook-qr-card {
    animation: guestbookCardIn .35s cubic-bezier(.22, 1, .36, 1) both;
    position: relative;
    width: min(440px, calc(100vw - 24px));
    max-height: min(680px, calc(100dvh - 24px));
    padding: clamp(24px, 5dvh, 38px) clamp(18px, 5vw, 28px) clamp(18px, 4dvh, 28px);
    overflow: hidden;
    text-align: center;
    color: #f7f1e6;
    background: linear-gradient(155deg, #5b0d18 0%, #260308 72%);
    border: 1px solid rgba(229, 185, 88, .62);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .6), inset 0 0 0 6px rgba(229, 185, 88, .06);
}
.guestbook-qr-card::before,
.guestbook-qr-card::after {
    content: '';
    position: absolute;
    width: 90px;
    height: 90px;
    border: 1px solid rgba(229, 185, 88, .28);
    border-radius: 50%;
    pointer-events: none;
}
.guestbook-qr-card::before { top: -48px; left: -48px; }
.guestbook-qr-card::after { right: -48px; bottom: -48px; }
.guestbook-qr-card #guestbookQrCode {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    margin: clamp(12px, 3dvh, 24px) auto clamp(10px, 2dvh, 18px);
    padding: clamp(8px, 2vw, 16px);
    background: #fff;
    border: 4px solid #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .34);
}
.guestbook-qr-card #guestbookQrCode img,
.guestbook-qr-card #guestbookQrCode canvas {
    width: min(300px, calc(100vw - 94px), 44dvh) !important;
    height: auto !important;
    aspect-ratio: 1;
}
.guestbook-qr-card #guestbookQrCode img,
.guestbook-qr-card #guestbookQrCode canvas { display: block; border-radius: 3px; }
.guestbook-qr-title {
    position: relative;
    z-index: 1;
    margin-bottom: 5px;
    color: #f0cc7d6e;
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: .4px;
}
.guestbook-qr-card small {
    position: relative;
    z-index: 1;
    display: block;
    color: rgb(247 250 255 / 46%);
    font-size: .75rem;
    letter-spacing: .2px;
}
.guestbook-qr-close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 2;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 40%;
    background: rgba(0, 0, 0, .18);
    color: #fff;
    font-size: 21px;
    line-height: 26px;
    cursor: pointer;
}
.guestbook-qr-close:hover { background: #d5ac5b; color: #260308; }

@supports not (height: 1dvh) {
    .guestbook-qr-card { max-height: calc(100vh - 24px); padding-top: 24px; padding-bottom: 18px; }
    .guestbook-qr-card #guestbookQrCode { margin-top: 14px; margin-bottom: 10px; padding: 10px; }
    .guestbook-qr-card #guestbookQrCode img,
    .guestbook-qr-card #guestbookQrCode canvas { width: min(300px, calc(100vw - 94px)) !important; }
}

@media (max-height: 620px) {
    .guestbook-qr-card { padding-top: 18px; padding-bottom: 14px; }
    .guestbook-qr-title { font-size: 1.2rem; }
    .guestbook-qr-card #guestbookQrCode { margin-top: 10px; margin-bottom: 8px; }
    .guestbook-qr-card small { font-size: .68rem; }
}

@media (prefers-reduced-motion: reduce) {
    .cover-guestbook-btn,
    .floating-guestbook-btn,
    .guestbook-qr-card {
        animation: none;
    }
}

/* Toast */
.palembang-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: rgba(26, 3, 6, 0.95);
    border: 1px solid var(--color-gold);
    color: var(--color-gold-light);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    z-index: 10002;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 8px;
}

.palembang-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Animations */
@keyframes gentleFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        box-shadow: 0 6px 20px rgba(204, 160, 68, 0.4), 0 0 0 0 rgba(204, 160, 68, 0.4);
    }

    70% {
        transform: scale(1.03);
        box-shadow: 0 6px 20px rgba(204, 160, 68, 0.4), 0 0 0 12px rgba(204, 160, 68, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 6px 20px rgba(204, 160, 68, 0.4), 0 0 0 0 rgba(204, 160, 68, 0);
    }
}

@keyframes spinVinyl {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes bounceIndicator {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-8px);
    }

    60% {
        transform: translateY(-4px);
    }
}

/* ==========================================================================
   INTERACTIVE SCROLL REVEAL ANIMATION SYSTEM
   Smooth, cinematic, hardware-accelerated scroll animations
   ========================================================================== */

/* Base Reveal Element State */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

/* Directional & Scaling Variants */
.reveal-on-scroll.reveal-up {
    transform: translateY(32px);
}

.reveal-on-scroll.reveal-left {
    transform: translateX(-32px);
}

.reveal-on-scroll.reveal-right {
    transform: translateX(32px);
}

.reveal-on-scroll.reveal-scale {
    transform: scale(0.96) translateY(12px);
}

.reveal-on-scroll.reveal-fade {
    transform: none;
}

/* Delay Stagger Modifiers */
.reveal-delay-1 {
    transition-delay: 0.12s;
}

.reveal-delay-2 {
    transition-delay: 0.24s;
}

.reveal-delay-3 {
    transition-delay: 0.36s;
}

.reveal-delay-4 {
    transition-delay: 0.48s;
}

.reveal-delay-5 {
    transition-delay: 0.60s;
}

/* Active Visible State */
.reveal-on-scroll.visible,
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    will-change: auto;
}

/* --------------------------------------------------------------------------
   1. Section Header Cascade
   -------------------------------------------------------------------------- */
.scene-header.reveal-on-scroll {
    transform: none;
    opacity: 1;
}

.scene-header.reveal-on-scroll .scene-subtitle {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: 0.05s;
}

.scene-header.reveal-on-scroll .scene-title {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: 0.16s;
}

.scene-header.reveal-on-scroll .scene-divider {
    opacity: 0;
    transform: scale(0.9) translateY(8px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: 0.28s;
}

.scene-header.reveal-on-scroll p {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: 0.22s;
}

.scene-header.reveal-on-scroll.visible .scene-subtitle,
.scene-header.reveal-on-scroll.is-visible .scene-subtitle,
.scene-header.reveal-on-scroll.visible .scene-title,
.scene-header.reveal-on-scroll.is-visible .scene-title,
.scene-header.reveal-on-scroll.visible .scene-divider,
.scene-header.reveal-on-scroll.is-visible .scene-divider,
.scene-header.reveal-on-scroll.visible p,
.scene-header.reveal-on-scroll.is-visible p {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* --------------------------------------------------------------------------
   2. Couple Profile Staggered Child Reveal
   -------------------------------------------------------------------------- */
.couple-profile-block .couple-photo-clip {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: 0.15s;
}

.couple-profile-block .couple-nickname-script {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: 0.25s;
}

.couple-profile-block .couple-fullname {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: 0.35s;
}

.couple-profile-block .couple-bio-parents {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: 0.45s;
}

.couple-profile-block .btn-couple-ig {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: 0.55s;
}

.couple-profile-block.visible .couple-photo-clip,
.couple-profile-block.is-visible .couple-photo-clip,
.couple-profile-block.visible .couple-nickname-script,
.couple-profile-block.is-visible .couple-nickname-script,
.couple-profile-block.visible .couple-fullname,
.couple-profile-block.is-visible .couple-fullname,
.couple-profile-block.visible .couple-bio-parents,
.couple-profile-block.is-visible .couple-bio-parents,
.couple-profile-block.visible .btn-couple-ig,
.couple-profile-block.is-visible .btn-couple-ig {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* --------------------------------------------------------------------------
   3. Countdown Units Stagger
   -------------------------------------------------------------------------- */
.countdown-minimal-wrap .countdown-minimal-unit {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.countdown-minimal-wrap .countdown-minimal-unit:nth-child(1) {
    transition-delay: 0.10s;
}

.countdown-minimal-wrap .countdown-minimal-unit:nth-child(2) {
    transition-delay: 0.20s;
}

.countdown-minimal-wrap .countdown-minimal-unit:nth-child(3) {
    transition-delay: 0.30s;
}

.countdown-minimal-wrap .countdown-minimal-unit:nth-child(4) {
    transition-delay: 0.40s;
}

.countdown-minimal-wrap.visible .countdown-minimal-unit,
.countdown-minimal-wrap.is-visible .countdown-minimal-unit {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   4. Mobile Adaptation & Accessibility (Reduced Motion)
   -------------------------------------------------------------------------- */
/* @media (max-width: 480px) {
    .reveal-on-scroll.reveal-up {
        transform: translateY(22px);
    }
    .reveal-on-scroll.reveal-left {
        transform: translateX(-20px);
    }
    .reveal-on-scroll.reveal-right {
        transform: translateX(20px);
    }
    .reveal-on-scroll.reveal-scale {
        transform: scale(0.97) translateY(8px);
    }
} */

@media (prefers-reduced-motion: reduce) {

    .reveal-on-scroll,
    .reveal-on-scroll.reveal-up,
    .reveal-on-scroll.reveal-left,
    .reveal-on-scroll.reveal-right,
    .reveal-on-scroll.reveal-scale,
    .reveal-on-scroll.reveal-fade,
    .scene-header.reveal-on-scroll .scene-subtitle,
    .scene-header.reveal-on-scroll .scene-title,
    .scene-header.reveal-on-scroll .scene-divider,
    .scene-header.reveal-on-scroll p,
    .couple-profile-block .couple-photo-clip,
    .couple-profile-block .couple-nickname-script,
    .couple-profile-block .couple-fullname,
    .couple-profile-block .couple-bio-parents,
    .couple-profile-block .btn-couple-ig,
    .countdown-minimal-wrap .countdown-minimal-unit {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ==========================================================================
   MOBILE-FIRST REFINEMENTS (360px - 430px)
   ========================================================================== */
/* ==========================================================================
   DYNAMIC TEMPLATE FONT WEIGHTS
   Font sizes stay controlled by the base CSS above.
   ========================================================================== */
.cover-tagline-script,
.hero-text-name-first,
.hero-text-solo-ampersand,
.hero-text-name-second,
.scene-title,
.couple-nickname-script,
.event-type-pill,
.closing-calligraphy-names {
    font-weight: var(--font-script-weight);
}

.cover-couple-names-bold,
.cover-date,
.cover-guest-label,
.cover-guest-name,
.cover-guest-note,
.hero-text-the-wedding-of,
.hero-text-date-minimal,
.editorial-source,
.couple-fullname,
.countdown-digit,
.event-heading-title,
.event-schedule-day,
.event-schedule-fulldate,
.event-venue-name,
.timeline-entry-title,
.gift-account-digits,
.gift-address-recipient,
.wish-guest-title,
.closing-family-signature {
    font-weight: var(--font-serif-weight);
}

.btn-buka-undangan,
.save-date-invitation-text p,
.gift-address-label,
.btn-copy-alamat,
.rsvp-text-input,
.btn-kirim-rsvp {
    font-weight: var(--font-body-weight);
}

@media (max-width: 430px) {

    .invitation-container,
    .fixed-palembang-bg,
    #opening-cover {
        max-width: 100vw;
    }
}

@media (max-width: 380px) {

    .hero-text-name-first,
    .hero-text-name-second {
        font-size: 4.4rem;
    }

    .hero-text-solo-ampersand {
        font-size: 2.9rem;
    }

    .hero-text-date-minimal {
        font-size: 0.88rem;
        letter-spacing: 4px;
    }

    .scene-title {
        font-size: 1.75rem;
    }

    .couple-fullname {
        font-size: 0.95rem;
        letter-spacing: 1.5px;
    }

    .couple-illustration-frame {
        width: 195px;
        height: 295px;
    }

    .couple-flower-decor.flower-left {
        width: 112px;
        left: -38px;
        bottom: 30px;
    }

    .couple-flower-decor.flower-right {
        width: 98px;
        right: -32px;
    }

    .countdown-digit {
        font-size: 1.5rem;
    }

    .event-heading-title {
        font-size: 1.4rem;
    }

    .closing-calligraphy-names {
        font-size: 2.9rem;
    }
}