:root {
    --maroon-deep: #5a1a1a;
    --maroon: #7a2323;
    --gold: #c9a24b;
    --gold-light: #e8cf8a;
    --cream: #f6e8c9;
    --ink: #3a2418;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    min-height: 100%;
    background: #ffffff;
    font-family: 'Jost', sans-serif;
    color: var(--ink);
}

/* ===== Page wrap: capped at phone width, centered on desktop; holds the
   fixed first-viewport stage plus every scrollable section after it ===== */
.page-wrap {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* ===== Stage: first viewport-height screen ===== */
.stage {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: var(--cream);
}

/* ===== Scene: cover and content are stacked on top of each other inside
   the stage — #content sits behind #cover from the very first frame, so
   its batik background is already there; #cover just rises to reveal it. */
.scene {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

#cover {
    z-index: 2;
}

#content {
    z-index: 1;
}

.layer {
    position: absolute;
}

/* z1 — background cream batik pattern */
.layer--background {
    inset: 0;
    z-index: 1;
    background-color: var(--cream);
    background-image: url('../images/bg-cream.webp');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
}

/* z2 — gold cloud motif, tiled subtly over everything below the trees */
.layer--motif {
    inset: 0;
    z-index: 2;
    background-image: url('../images/motif-batik.webp');
    background-repeat: repeat;
    background-size: 280px 280px;
    mix-blend-mode: multiply;
    filter: invert(1) brightness(0.45);
    opacity: 0.08;
}

/* z3 — halaman: grass + path strip pinned to the bottom */
.layer--halaman {
    left: -9vh;
    right: 0;
    bottom: 0;
    height: 17vh;
    z-index: 3;
    overflow: hidden;
}

.layer--halaman img {
    width: 110%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* z3 — pohon belakang: hazy distant trees behind the house, faded for depth */
.layer--pohon-belakang-kanan,
.layer--pohon-belakang-kiri {
    top: 50vh;
    width: min(50vw, 500px);
    height: auto;
    opacity: 0.3;
    filter: blur(0.7px) saturate(0.8);
    z-index: 3;
}

.layer--pohon-belakang-kanan {
    right: -20vw;
    transform-origin: 40% 90%;
    animation: windSwayRight 10s ease-in-out infinite;
    animation-delay: -5s;
}

.layer--pohon-belakang-kiri {
    left: -20vw;
    transform-origin: 60% 90%;
    animation: windSwayLeft 11s ease-in-out infinite;
    animation-delay: -3s;
}

/* z3 — pohon belakang hijau: hazy distant green trees behind the house, faded for depth */
.layer--pohon-belakang-hijau-kanan,
.layer--pohon-belakang-hijau-kiri {
    top: 27vh;
    width: min(56vw, 440px);
    height: auto;
    opacity: 0.32;
    filter: blur(0.7px) saturate(0.85);
    z-index: 3;
}

.layer--pohon-belakang-hijau-kanan {
    right: -16vw;
    transform-origin: 40% 90%;
    animation: windSwayRight 9.5s ease-in-out infinite;
    animation-delay: -2s;
}

.layer--pohon-belakang-hijau-kiri {
    left: -16vw;
    transform-origin: 60% 90%;
    animation: windSwayLeft 10.4s ease-in-out infinite;
    animation-delay: -6s;
}

/* z3.5 — pohon hijau: tall background canopy trees, behind the house & red trees */
.layer--pohon-hijau-kanan,
.layer--pohon-hijau-kiri {
    top: 15vh;
    width: min(55vw, 360px);
    height: auto;
    opacity: 0.96;
    filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.18));
}

.layer--pohon-hijau-kanan {
    z-index: 3;
    right: -3vw;
    transform-origin: 35% 90%;
    animation: windSwayRight 8.5s ease-in-out infinite;
    animation-delay: -4s;
}

.layer--pohon-hijau-kiri {
    z-index: 3;
    left: -3vw;
    transform-origin: 65% 90%;
    animation: windSwayLeft 9.2s ease-in-out infinite;
    animation-delay: -1.6s;
}

/* z4 — saung (joglo house), centered, lifted to leave room for the invite text below it */
.layer--saung {
    z-index: 4;
    left: 50%;
    bottom: 15vh;
    transform: translateX(-50%);
    width: min(80vw, 520px);
    height: auto;
    filter: drop-shadow(0 14px 18px rgba(60, 30, 10, 0.3));
}

/* z5/z7 — red flowering trees, flanking the house */
.layer--pohon-merah-kanan,
.layer--pohon-merah-kiri {
    top: 45vh;
    width: min(30vw, 330px);
    height: auto;
    filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.22));
}

.layer--pohon-merah-kanan {
    z-index: 5;
    right: -10vw;
    transform-origin: 70% 95%;
    animation: windSwayRight 6.5s ease-in-out infinite;
}

.layer--pohon-merah-kiri {
    z-index: 7;
    left: -10vw;
    transform-origin: 30% 95%;
    animation: windSwayLeft 7.2s ease-in-out infinite;
    animation-delay: -2.4s;
}

/* z6/z8 — green tropical foliage, bottom corners */
.layer--pohon-kanan,
.layer--pohon-kiri {
    bottom: -1vh;
    width: min(46vw, 360px);
    height: auto;
    filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.3));
}

.layer--pohon-kanan {
    z-index: 6;
    right: -6vw;
    transform-origin: 60% 100%;
    animation: windSwayRight 4.8s ease-in-out infinite;
    animation-delay: -1.1s;
}

.layer--pohon-kiri {
    z-index: 8;
    left: -6vw;
    transform-origin: 40% 100%;
    animation: windSwayLeft 5.3s ease-in-out infinite;
    animation-delay: -3.6s;
}

@keyframes windSwayRight {

    0%,
    100% {
        transform: rotate(-1.4deg);
    }

    50% {
        transform: rotate(2deg);
    }
}

@keyframes windSwayLeft {

    0%,
    100% {
        transform: rotate(1.4deg);
    }

    50% {
        transform: rotate(-2deg);
    }
}

/* z10 — kupu-kupu perched on the foliage */
/* wrapper: handles placement + the same wind sway as the host tree, pivoted like a twig */
.deco-wrap {
    position: absolute;
    z-index: 10;
    pointer-events: none;
    transform-origin: 50% 100%;
}

/* inner img: wing-flap animation */
.deco {
    display: block;
    height: auto;
}

.deco-wrap--kupu1 {
    left: 15vw;
    bottom: 17vh;
    animation: windSwayLeft 5.3s ease-in-out infinite;
    animation-delay: -3.6s;
}

.deco--kupu1 {
    width: 30px;
    transform-origin: center;
    animation: flutterRight 0.9s ease-in-out infinite;
}

.deco-wrap--kupu2 {
    right: 13vw;
    bottom: 20vh;
    animation: windSwayRight 4.8s ease-in-out infinite;
    animation-delay: -1.1s;
}

.deco--kupu2 {
    width: 26px;
    transform-origin: center;
    animation: flutterLeft 1.1s ease-in-out infinite;
}

.deco-wrap--kupu3 {
    left: 9vw;
    top: 58vh;
    animation: windSwayLeft 7.2s ease-in-out infinite;
    animation-delay: -2.4s;
}

.deco--kupu3 {
    width: 24px;
    transform-origin: center;
    animation: flutterRight 0.8s ease-in-out infinite;
    animation-delay: -0.3s;
}

.deco-wrap--kupu4 {
    right: 11vw;
    top: 61vh;
    animation: windSwayRight 6.5s ease-in-out infinite;
}

.deco--kupu4 {
    width: 22px;
    transform-origin: center;
    animation: flutterLeft 1s ease-in-out infinite;
    animation-delay: -0.5s;
}

@keyframes flutterRight {

    0%,
    100% {
        transform: scaleX(1) rotate(-4deg);
    }

    50% {
        transform: scaleX(0.55) rotate(4deg);
    }
}

@keyframes flutterLeft {

    0%,
    100% {
        transform: scaleX(-1) rotate(4deg);
    }

    50% {
        transform: scaleX(-0.55) rotate(-4deg);
    }
}

/* z9 — warm light glowing out from the joglo doorway */
.glow {
    position: absolute;
    z-index: 12;
    left: 50%;
    bottom: -14vh;
    transform: translateX(-50%);
    width: 600vw;
    max-width: 820px;
    height: 48vh;
    background: radial-gradient(closest-side,
            rgba(255, 223, 150, 0.95) 10%,
            rgba(255, 200, 110, 0.5) 38%,
            rgba(255, 190, 90, 0.2) 62%,
            rgba(255, 190, 90, 0) 80%);
    mix-blend-mode: screen;
    filter: blur(1px);
    pointer-events: none;
    animation: glowPulse 4.5s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.7;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.06);
    }
}

/* z11 — bunga & rumput: foreground flower bed pinned to the bottom,
   layered in front of the trees/joglo */
.layer--rumput {
    left: 0;
    right: 0;
    bottom: -0.5vh;
    width: 100%;
    height: auto;
    z-index: 11;
    pointer-events: none;
}

.layer--bunga-biru-kiri,
.layer--bunga-biru-kanan {
    bottom: -1vh;
    width: min(30vw, 210px);
    height: auto;
    z-index: 13;
    filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.25));
    pointer-events: none;
}

.layer--bunga-biru-kiri {
    left: -3vw;
    transform-origin: 30% 100%;
    animation: windSwayLeft 6.4s ease-in-out infinite;
    animation-delay: -2s;
}

.layer--bunga-biru-kanan {
    right: -3vw;
    transform-origin: 70% 100%;
    animation: windSwayRight 5.8s ease-in-out infinite;
    animation-delay: -0.8s;
}

.layer--bunga-merah-kiri,
.layer--bunga-merah-kanan {
    bottom: -2vh;
    width: min(23vw, 160px);
    height: auto;
    z-index: 12;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.25));
    pointer-events: none;
}

.layer--bunga-merah-kiri {
    left: -1vw;
    transform-origin: 30% 100%;
    animation: windSwayLeft 5.1s ease-in-out infinite;
    animation-delay: -1.4s;
}

.layer--bunga-merah-kanan {
    right: -1vw;
    transform-origin: 70% 100%;
    animation: windSwayRight 4.6s ease-in-out infinite;
    animation-delay: -2.6s;
}

@media (prefers-reduced-motion: reduce) {

    .layer--pohon-merah-kanan,
    .layer--pohon-merah-kiri,
    .layer--pohon-kanan,
    .layer--pohon-kiri,
    .layer--pohon-hijau-kanan,
    .layer--pohon-hijau-kiri,
    .layer--pohon-belakang-kanan,
    .layer--pohon-belakang-kiri,
    .layer--pohon-belakang-hijau-kanan,
    .layer--pohon-belakang-hijau-kiri,
    .layer--bunga-biru-kiri,
    .layer--bunga-biru-kanan,
    .layer--bunga-merah-kiri,
    .layer--bunga-merah-kanan,
    .deco-wrap,
    .deco--kupu1,
    .deco--kupu2,
    .deco--kupu3,
    .deco--kupu4,
    .glow {
        animation: none;
    }
}

/* ===== Text overlay ===== */
.overlay {
    position: relative;
    z-index: 20;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20vh;
}

.monogram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.monogram__text {
    font-family: 'Great Vibes', cursive;
    font-size: 6rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--maroon-deep);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.monogram__amp {
    font-family: 'Great Vibes', cursive;
    font-size: 1.7rem;
    margin: 0 2px;
    color: var(--gold);
    vertical-align: middle;
}

.monogram__line {
    width: 32px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}

.monogram__line--right {
    background: linear-gradient(90deg, var(--gold), transparent);
}

.tagline {
    margin-top: 6px;
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--maroon);
    opacity: 0.75;
}

.aksara {
    margin-top: 8px;
    opacity: 0.5;
}

.aksara img {
    height: 16px;
    filter: brightness(0) saturate(100%) invert(14%) sepia(50%) saturate(1500%) hue-rotate(330deg) brightness(0.6);
}

.invite {
    position: absolute;
    z-index: 20;
    left: 50%;
    bottom: 4vh;
    transform: translateX(-50%);
    width: max-content;
    max-width: 90vw;
    text-align: center;
    padding: 10px 20px 12px;
    /* background: rgba(252, 246, 231, 0); */
    /* backdrop-filter: blur(3px); */
    border-radius: 18px;
    /* box-shadow: 0 10px 28px rgba(60, 30, 10, 0.18); */
}

.invite__kepada {
    color: var(--maroon);
    font-size: 0.8rem;
    line-height: 1.35;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.invite__nama {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--maroon-deep);
    margin: 4px 0 10px;
    white-space: nowrap;
}

.invite__btn {
    font-family: 'Jost', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: var(--gold-light);
    background: linear-gradient(180deg, var(--maroon) 0%, var(--maroon-deep) 100%);
    border: 1px solid var(--gold);
    padding: 9px 24px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(90, 26, 26, 0.5);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.invite__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(90, 26, 26, 0.6);
}

.invite__btn:active {
    transform: translateY(0);
}

@media (max-width: 380px) {
    .monogram__text {
        font-size: 2.2rem;
    }
}

/* ===== #content: sits behind #cover from the first frame (same background,
   already rendered). Its entrance animations stay paused — frozen on their
   very first frame (hidden) — until JS adds .is-revealed when the cover
   starts rising, so they don't play out while still hidden underneath. */
/* !important is needed here: each element's own `animation` shorthand rule
   (further down, more specific) implicitly resets animation-play-state back
   to its initial value (running), so a plain override would lose to it. */
#content:not(.is-revealed) .layer,
#content:not(.is-revealed) .deco-wrap,
#content:not(.is-revealed) .glow,
#content:not(.is-revealed) .content-body {
    animation-play-state: paused !important;
}

/* Everything enters together (fade + slide up, like an AOS "fade-up"), all at once.
   Background/motif get no entrance — they're there from the very first frame. */

@keyframes enterUp {
    from {
        opacity: 0;
        transform: translateY(70px);
    }

    to {
        opacity: var(--rest-opacity, 1);
        transform: translateY(0);
    }
}

/* same as enterUp, but keeps the saung's own translateX(-50%) centering intact */
@keyframes enterUpCentered {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(70px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* same idea as enterUp, but slides in on an angle from its own bottom
   corner instead of straight up — used by the corner-anchored flowers so
   they drift inward as they rise, rather than rising in place */
@keyframes enterDiagonalLeft {
    from {
        opacity: 0;
        transform: translate(-50px, 70px);
    }

    to {
        opacity: var(--rest-opacity, 1);
        transform: translate(0, 0);
    }
}

@keyframes enterDiagonalRight {
    from {
        opacity: 0;
        transform: translate(50px, 70px);
    }

    to {
        opacity: var(--rest-opacity, 1);
        transform: translate(0, 0);
    }
}

@keyframes enterScale {
    from {
        opacity: 0;
        transform: translateX(-50%) scale(0.15);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

/* bottom foliage */
#content .layer--pohon-kanan {
    animation: enterDiagonalRight 0.9s ease-out both, windSwayRight 4.8s ease-in-out infinite;
    animation-delay: 0s, 0.95s;
}

#content .layer--pohon-kiri {
    animation: enterDiagonalLeft 0.9s ease-out both, windSwayLeft 5.3s ease-in-out infinite;
    animation-delay: 0s, 0.95s;
}

/* pohon merah — +0.3s */
#content .layer--pohon-merah-kanan {
    animation: enterDiagonalRight 0.9s ease-out both, windSwayRight 6.5s ease-in-out infinite;
    animation-delay: 0.3s, 1.25s;
}

#content .layer--pohon-merah-kiri {
    animation: enterDiagonalLeft 0.9s ease-out both, windSwayLeft 7.2s ease-in-out infinite;
    animation-delay: 0.3s, 1.25s;
}

/* pohon hijau depan — +0.3s */
#content .layer--pohon-hijau-kanan {
    --rest-opacity: 0.96;
    animation: enterDiagonalRight 0.9s ease-out both, windSwayRight 8.5s ease-in-out infinite;
    animation-delay: 0.6s, 1.55s;
}

#content .layer--pohon-hijau-kiri {
    --rest-opacity: 0.96;
    animation: enterDiagonalLeft 0.9s ease-out both, windSwayLeft 9.2s ease-in-out infinite;
    animation-delay: 0.6s, 1.55s;
}

/* pohon belakang (hazy backmost trees, red + green) — +0.3s */
#content .layer--pohon-belakang-kanan {
    --rest-opacity: 0.3;
    animation: enterUp 0.9s ease-out both, windSwayRight 10s ease-in-out infinite;
    animation-delay: 0.9s, 1.85s;
}

#content .layer--pohon-belakang-kiri {
    --rest-opacity: 0.3;
    animation: enterUp 0.9s ease-out both, windSwayLeft 11s ease-in-out infinite;
    animation-delay: 0.9s, 1.85s;
}

#content .layer--pohon-belakang-hijau-kanan {
    --rest-opacity: 0.32;
    animation: enterUp 0.9s ease-out both, windSwayRight 9.5s ease-in-out infinite;
    animation-delay: 0.9s, 1.85s;
}

#content .layer--pohon-belakang-hijau-kiri {
    --rest-opacity: 0.32;
    animation: enterUp 0.9s ease-out both, windSwayLeft 10.4s ease-in-out infinite;
    animation-delay: 0.9s, 1.85s;
}

/* saung + halaman — +0.3s, together */
#content .layer--saung {
    animation: enterUpCentered 0.9s ease-out both;
    animation-delay: 1.2s;
}

#content .layer--halaman {
    animation: enterUp 0.9s ease-out both;
    animation-delay: 1.2s;
}

/* butterflies + glow — +0.3s */
#content .deco-wrap--kupu1 {
    animation: enterUp 0.9s ease-out both, windSwayLeft 5.3s ease-in-out infinite;
    animation-delay: 1.5s, 2.45s;
}

#content .deco-wrap--kupu2 {
    animation: enterUp 0.9s ease-out both, windSwayRight 4.8s ease-in-out infinite;
    animation-delay: 1.5s, 2.45s;
}

#content .deco-wrap--kupu3 {
    animation: enterUp 0.9s ease-out both, windSwayLeft 7.2s ease-in-out infinite;
    animation-delay: 1.5s, 2.45s;
}

#content .deco-wrap--kupu4 {
    animation: enterUp 0.9s ease-out both, windSwayRight 6.5s ease-in-out infinite;
    animation-delay: 1.5s, 2.45s;
}

#content .glow {
    animation: enterScale 0.9s ease-out both, glowPulse 4.5s ease-in-out infinite;
    animation-delay: 1.5s, 2.45s;
}

/* bunga & rumput — +0.3s after kupu-kupu/glow */
#content .layer--rumput {
    animation: enterUp 0.9s ease-out both;
    animation-delay: 1.8s;
}

#content .layer--bunga-biru-kiri {
    animation: enterDiagonalLeft 0.9s ease-out both, windSwayLeft 6.4s ease-in-out infinite;
    animation-delay: 1.8s, 2.75s;
}

#content .layer--bunga-biru-kanan {
    animation: enterDiagonalRight 0.9s ease-out both, windSwayRight 5.8s ease-in-out infinite;
    animation-delay: 1.8s, 2.75s;
}

#content .layer--bunga-merah-kiri {
    animation: enterDiagonalLeft 0.9s ease-out both, windSwayLeft 5.1s ease-in-out infinite;
    animation-delay: 1.8s, 2.75s;
}

#content .layer--bunga-merah-kanan {
    animation: enterDiagonalRight 0.9s ease-out both, windSwayRight 4.6s ease-in-out infinite;
    animation-delay: 1.8s, 2.75s;
}

@media (prefers-reduced-motion: reduce) {

    #content .layer--pohon-belakang-kanan,
    #content .layer--pohon-belakang-kiri,
    #content .layer--pohon-belakang-hijau-kanan,
    #content .layer--pohon-belakang-hijau-kiri,
    #content .layer--pohon-hijau-kanan,
    #content .layer--pohon-hijau-kiri,
    #content .layer--saung,
    #content .layer--halaman,
    #content .layer--pohon-merah-kanan,
    #content .layer--pohon-merah-kiri,
    #content .layer--pohon-kanan,
    #content .layer--pohon-kiri,
    #content .layer--rumput,
    #content .layer--bunga-biru-kiri,
    #content .layer--bunga-biru-kanan,
    #content .layer--bunga-merah-kiri,
    #content .layer--bunga-merah-kanan,
    #content .deco-wrap--kupu1,
    #content .deco-wrap--kupu2,
    #content .deco-wrap--kupu3,
    #content .deco-wrap--kupu4,
    #content .glow {
        animation: none;
        opacity: var(--rest-opacity, 1);
    }

    .content-body {
        animation: none;
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.content-body {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 20;
    height: 60%;
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 32px;
    /* last entrance group (kupu-kupu/glow) finishes at 1.5s delay + 0.9s duration = 2.4s;
     this one waits exactly 1s after that, so it starts at 3.4s */
    animation: contentCardUp 0.9s ease-out both;
    animation-delay: 3.4s;
}

@keyframes contentCardUp {
    from {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 70px));
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* outer card: translucent white panel */
.content-body::before {
    content: "";
    position: absolute;
    inset: 24px 18px;
    z-index: -2;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 28px;
}

/* inner frame: thin gold line, inset from the card's own edge */
.content-body::after {
    content: "";
    position: absolute;
    inset: 40px 34px;
    z-index: -1;
    border: 1.5px solid var(--gold);
    border-radius: 20px;
}

.content-body__label {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--maroon-deep);
}

.content-body__names {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.05;
}

.content-body__name {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: var(--maroon-deep);
}

.content-body__amp {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: var(--gold);
    margin: 4px 0;
}

.content-body__hastag {
    margin-top: 14px;
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 2px;
    color: var(--maroon-deep);
}

.scroll-cue {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: -6px;
    animation: scrollCueBounce 1.8s ease-in-out infinite;
}

.scroll-cue svg {
    width: 24px;
    height: 12px;
    margin-top: -6px;
    fill: none;
    stroke: var(--gold);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.scroll-cue svg:first-child {
    opacity: 0.45;
    stroke: var(--maroon);
}

@keyframes scrollCueBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-cue {
        animation: none;
    }
}

@media (max-width: 380px) {
    .content-body__name {
        font-size: 3.4rem;
    }

    .content-body__amp {
        font-size: 2.4rem;
    }
}

/* ===== Doa Untuk Pengantin ===== */
.doa-section {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, var(--maroon-deep) 0%, var(--maroon) 10%, var(--maroon-deep) 20%);
    overflow: hidden;
    padding: 72px 0 90px;
}

.doa-section__motif {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: url('../images/motif-batik.webp');
    background-repeat: repeat;
    background-size: 220px 220px;
    opacity: 0.22;
}

.doa-section__inner {
    position: relative;
    z-index: 2;
    padding: 0 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* elements fade + rise on the way in, and reverse back out when scrolled
   past above the viewport again — toggled by IntersectionObserver in script.js */
[data-reveal] {
    opacity: 0;
    transform: translateY(46px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

.doa-section__title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 2.1rem;
    line-height: 1.25;
    color: var(--gold-light);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.doa-section__divider {
    display: block;
    width: 60px;
    height: 2px;
    margin: 20px 0 26px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transition-delay: 0.05s;
}

.doa-section__arabic {
    font-family: 'Amiri', serif;
    direction: rtl;
    font-size: 1.3rem;
    line-height: 2;
    color: var(--gold-light);
    transition-delay: 0.1s;
}

.doa-section__translate {
    margin-top: 18px;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--cream);
    opacity: 0.9;
    max-width: 34ch;
    transition-delay: 0.15s;
}

.doa-section__translate.is-visible {
    opacity: 0.9;
}

.doa-section__photo {
    position: relative;
    z-index: 1;
    margin-top: 44px;
    width: 100%;
    max-width: 320px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(201, 162, 75, 0.4);
    /* starts tucked low, scaled down and behind the card — looks like it
     rises out from inside the "So Lucky" card as it scrolls into view */
    transition: opacity 0.9s ease, transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
    transform: translateY(210px) scale(0.78);
    transition-delay: 0.25s;
}

.doa-section__photo.is-visible {
    transform: translateY(0) scale(1);
}

.doa-section__photo img {
    display: block;
    width: 100%;
    height: 400px;
    object-fit: cover;
    transform: scale(1.08);
    transition: transform 1.2s ease;
}

.doa-section__photo.is-visible img {
    transform: scale(1);
}

.doa-section__quote-card {
    position: relative;
    z-index: 2;
    margin-top: -36px;
    width: 100%;
    max-width: 320px;
    background: linear-gradient(180deg, var(--cream) 0%, var(--gold-light) 100%);
    border-radius: 18px;
    padding: 30px 26px 26px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
    transition-delay: 0.05s;
}

.doa-section__cursive {
    font-family: 'Great Vibes', cursive;
    font-size: 2.6rem;
    color: var(--maroon-deep);
    line-height: 1;
}

.doa-section__sub {
    margin-top: 2px;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: var(--maroon);
    opacity: 0.8;
}

.doa-section__puisi {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--maroon-deep);
}

.doa-section__verse {
    margin-top: 18px;
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--ink);
}

.doa-section__citation {
    margin-top: 14px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: var(--maroon-deep);
}

@media (prefers-reduced-motion: reduce) {

    /* !important needed: several section-specific rules below (the diagonal
     scroll-reveal overrides) target [data-reveal] with higher specificity
     to set their own hidden-state transform, which would otherwise outrank
     this generic reset and leave those elements visibly offset instead of
     in their resting position */
    [data-reveal] {
        transition: none;
        opacity: 1;
        transform: none !important;
    }

    .doa-section__photo img {
        transition: none;
        transform: none;
    }
}

@media (max-width: 380px) {
    .doa-section__title {
        font-size: 1.8rem;
    }

    .doa-section__cursive {
        font-size: 2.2rem;
    }
}

/* ===== Mempelai ===== */
.mempelai-section {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, var(--cream) 0%, #fbf3dd 100%);
    overflow: hidden;
    padding: 64px 28px 120px;
}

.mempelai-section__pohon {
    position: absolute;
    z-index: 6;
    width: min(48vw, 230px);
    height: auto;
    filter: drop-shadow(0 12px 16px rgba(90, 26, 26, 0.2));
}

/* top corners: wrapper carries the scroll reveal (fade + rise, via
   [data-reveal]'s transition on transform/opacity) and the fixed placement;
   the img inside carries the continuous 180deg-flipped wind sway (via
   animation) — split across two elements so the transition and the
   animation each own the transform property on a different element and
   don't fight each other */
.mempelai-section__pohon-wrap {
    position: absolute;
    z-index: 4;
    width: min(48vw, 230px);
}

.mempelai-section__pohon-wrap--top-left {
    top: 150px;
    left: -12vw;
}

.mempelai-section__pohon-wrap--top-right {
    top: 150px;
    right: -12vw;
}

/* diagonal scroll-reveal: overrides the generic [data-reveal] straight-up
   rise with a drift inward from each side's own bottom corner — mirrors
   the enterDiagonalLeft/Right treatment used in #content. Both the hidden
   and .is-visible states are set explicitly since this selector ties with
   the generic [data-reveal].is-visible rule on specificity, so source order
   alone would otherwise let whichever is declared last win. */
.mempelai-section__pohon-wrap--top-left[data-reveal] {
    transform: translate(-40px, -46px);
    transition-duration: 1.5s;
}

.mempelai-section__pohon-wrap--top-left[data-reveal].is-visible {
    transform: translate(0, 0);
}

.mempelai-section__pohon-wrap--top-right[data-reveal] {
    transform: translate(40px, -46px);
    transition-duration: 1.5s;
}

.mempelai-section__pohon-wrap--top-right[data-reveal].is-visible {
    transform: translate(0, 0);
}

/* cluster wraps the leaf + its flower together so they rotate as one rigid
   hanging bouquet — the flower stays correctly attached to the leaf tip and
   flips upside-down along with it, instead of swaying independently */
.mempelai-section__pohon-cluster {
    position: relative;
    width: 100%;
    transform-origin: 50% 15%;
}

.mempelai-section__pohon-cluster--top-left {
    animation: windSwayTopLeft 9s ease-in-out infinite;
}

.mempelai-section__pohon-cluster--top-right {
    animation: windSwayTopRight 9.6s ease-in-out infinite;
    animation-delay: -3s;
}

.mempelai-section__pohon--top-left,
.mempelai-section__pohon--top-right {
    position: static;
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 12px 16px rgba(90, 26, 26, 0.2));
}

@keyframes windSwayTopLeft {

    0%,
    100% {
        transform: rotate(178.4deg);
    }

    50% {
        transform: rotate(182deg);
    }
}

@keyframes windSwayTopRight {

    0%,
    100% {
        transform: rotate(181.6deg);
    }

    50% {
        transform: rotate(178deg);
    }
}

/* small flower accents blooming at the tip of the hanging top leaves —
   child of the same rotating .pohon-cluster as the leaf, anchored near the
   leaf's original top edge, which swings around to become the visible
   hanging tip once the cluster flips ~180deg, so the two stay attached and
   flip together instead of swaying independently */
.mempelai-section__bunga-top {
    position: absolute;
    z-index: 5;
    top: 120px;
    width: min(100vw, 72px);
    height: auto;
    pointer-events: none;
    filter: drop-shadow(0 6px 10px rgba(90, 26, 26, 0.18));
}

.mempelai-section__bunga-top--kiri {
    left: 40%;
    transform: rotate(-8deg);
}

.mempelai-section__bunga-top--kanan {
    right: 40%;
    transform: rotate(8deg);
}

/* bottom corners: pohon-kanan/pohon-kiri in their normal orientation and
   side, in front of the card (higher z-index) — same wrap/img split as the
   top corners so the scroll reveal and the wind sway don't fight over
   `transform` on the same element */
.mempelai-section__pohon-wrap--bottom-right {
    z-index: 7;
    right: -8vw;
    /* pohon-kiri/kanan.png both have a large transparent margin under the
     foliage, so the wrap sits well below the section's own edge to make
     the visible leaves — not the image's empty bounding box — reach it */
    bottom: -54px;
}

.mempelai-section__pohon-wrap--bottom-left {
    z-index: 7;
    left: -8vw;
    bottom: -54px;
}

/* diagonal scroll-reveal — see the top-corner override above for why both
   states are set explicitly */
.mempelai-section__pohon-wrap--bottom-left[data-reveal] {
    transform: translate(-40px, 46px);
    transition-duration: 1.5s;
}

.mempelai-section__pohon-wrap--bottom-left[data-reveal].is-visible {
    transform: translate(0, 0);
}

.mempelai-section__pohon-wrap--bottom-right[data-reveal] {
    transform: translate(40px, 46px);
    transition-duration: 1.5s;
}

.mempelai-section__pohon-wrap--bottom-right[data-reveal].is-visible {
    transform: translate(0, 0);
}

.mempelai-section__pohon--bottom-right,
.mempelai-section__pohon--bottom-left {
    position: static;
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 12px 16px rgba(90, 26, 26, 0.2));
}

.mempelai-section__pohon--bottom-right {
    transform-origin: 60% 100%;
    animation: windSwayRight 6.5s ease-in-out infinite;
    animation-delay: -1.2s;
}

.mempelai-section__pohon--bottom-left {
    transform-origin: 40% 100%;
    animation: windSwayLeft 7.2s ease-in-out infinite;
    animation-delay: -2.6s;
}

.mempelai-card {
    position: relative;
    z-index: 6;
    margin: 20px auto 0;
    max-width: 420px;
    background: rgba(255, 252, 242, 0.6);
    border: 3px solid rgba(201, 162, 75, 1);
    border-radius: 160px 160px 24px 24px;
    padding: 56px 30px 48px;
    text-align: center;
    box-shadow: 0 24px 50px rgba(90, 26, 26, 0.14);
}

.mempelai-card__bismillah {
    font-family: 'Amiri', serif;
    direction: rtl;
    font-size: 1.2rem;
    color: var(--maroon-deep);
}

.mempelai-card__salam {
    margin-top: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--maroon);
}

.mempelai-card__desc {
    margin-top: 16px;
    font-size: 0.85rem;
    line-height: 1.75;
    color: var(--ink);
    opacity: 0.85;
}

.mempelai-profile {
    margin-top: 40px;
}

.mempelai-profile__photo {
    width: 170px;
    height: 210px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 100px 100px 16px 16px;
    border: 3px solid var(--gold);
    box-shadow: 0 16px 28px rgba(90, 26, 26, 0.2);
}

.mempelai-profile__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mempelai-profile__name {
    margin-top: 18px;
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: var(--maroon-deep);
    line-height: 1;
}

.mempelai-profile__fullname {
    margin-top: 8px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--maroon);
}

.mempelai-profile__parents {
    margin-top: 6px;
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--ink);
    opacity: 0.8;
}

.mempelai-amp {
    margin-top: 30px;
    font-family: 'Great Vibes', cursive;
    font-size: 2.4rem;
    color: var(--gold);
}

.mempelai-section__bottom {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0px;
    height: 700px;
    overflow: hidden;
}

/* ground: plain CSS grass + a narrowing path leading up to the joglo,
   no halaman.png involved */
.mempelai-section__ground {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 56px;
    z-index: 1;
    background: linear-gradient(180deg, #7ca24e 0%, #5a7f38 100%);
}

.mempelai-section__ground::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 46%;
    height: 100%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #ead9a8 0%, #d9c288 100%);
    clip-path: polygon(38% 0%, 62% 0%, 100% 100%, 0% 100%);
}

/* hazy distant trees, top corners */
.mempelai-section__tree {
    position: absolute;
    top: -10px;
    width: 54%;
    height: auto;
}

.mempelai-section__tree--hijau-kiri {
    left: -16%;
    z-index: 2;
    opacity: 0.85;
    filter: blur(0.4px) saturate(0.9);
    transform-origin: 65% 90%;
    animation: windSwayLeft 10.4s ease-in-out infinite;
    animation-delay: -5s;
}

.mempelai-section__tree--hijau-kanan {
    right: -16%;
    z-index: 2;
    opacity: 0.85;
    filter: blur(0.4px) saturate(0.9);
    transform-origin: 35% 90%;
    animation: windSwayRight 9.5s ease-in-out infinite;
    animation-delay: -2s;
}

/* red flowering trees, flanking the joglo */
.mempelai-section__tree--merah-kiri {
    left: -12%;
    top: 70px;
    z-index: 3;
    width: 44%;
    transform-origin: 30% 95%;
    animation: windSwayLeft 7.2s ease-in-out infinite;
    animation-delay: -2.4s;
}

.mempelai-section__tree--merah-kanan {
    right: -12%;
    top: 70px;
    z-index: 3;
    width: 44%;
    transform-origin: 70% 95%;
    animation: windSwayRight 6.5s ease-in-out infinite;
}

.mempelai-section__joglo {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 46px;
    transform: translateX(-50%);
    width: min(70vw, 360px);
    height: auto;
    filter: drop-shadow(0 14px 18px rgba(60, 30, 10, 0.3));
}

.mempelai-section__kupu {
    position: absolute;
    z-index: 5;
    width: 26px;
    height: auto;
    animation: flutterRight 0.9s ease-in-out infinite;
}

.mempelai-section__kupu--1 {
    left: 8%;
    bottom: 70px;
}

.mempelai-section__kupu--2 {
    right: 10%;
    bottom: 100px;
    animation-name: flutterLeft;
}

/* foreground flower bed along the very bottom of the joglo scene — grass
   only belongs at ground level, so this sits here, not on the hanging top
   leaves (see .mempelai-section__bunga-top above) */
.mempelai-section__rumput {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 64px;
    object-fit: cover;
    object-position: center bottom;
    z-index: 6;
    pointer-events: none;
}

/* wrap carries placement + the diagonal scroll-reveal; the img inside
   carries the continuous wind sway — split across two elements, same
   reasoning as .mempelai-section__pohon-wrap, so the reveal transition and
   the sway animation don't fight over `transform` on the same element */
.mempelai-section__bunga-bottom-wrap {
    position: absolute;
    pointer-events: none;
}

.mempelai-section__bunga-bottom-wrap--biru-kiri,
.mempelai-section__bunga-bottom-wrap--biru-kanan {
    /* shifted down to stay grouped with the leaf tips, which now sit lower
     too (see .mempelai-section__pohon-wrap--bottom-* above) */
    bottom: -48px;
    width: min(26vw, 170px);
    /* above .mempelai-section__pohon-wrap--bottom-* (z-index: 7), since these
     are now pulled-out siblings in the same section-level stacking context */
    z-index: 8;
}

.mempelai-section__bunga-bottom-wrap--merah-kiri,
.mempelai-section__bunga-bottom-wrap--merah-kanan {
    bottom: -54px;
    width: min(20vw, 128px);
    z-index: 9;
}

.mempelai-section__bunga-bottom-wrap--biru-kiri {
    left: 0;
}

.mempelai-section__bunga-bottom-wrap--biru-kanan {
    right: 0;
}

.mempelai-section__bunga-bottom-wrap--merah-kiri {
    left: 3%;
}

.mempelai-section__bunga-bottom-wrap--merah-kanan {
    right: 3%;
}

/* diagonal scroll-reveal — see the top-corner override above for why both
   states are set explicitly */
.mempelai-section__bunga-bottom-wrap--biru-kiri[data-reveal],
.mempelai-section__bunga-bottom-wrap--merah-kiri[data-reveal] {
    transform: translate(-40px, 46px);
    transition-duration: 1.5s;
}

.mempelai-section__bunga-bottom-wrap--biru-kiri[data-reveal].is-visible,
.mempelai-section__bunga-bottom-wrap--merah-kiri[data-reveal].is-visible {
    transform: translate(0, 0);
}

.mempelai-section__bunga-bottom-wrap--biru-kanan[data-reveal],
.mempelai-section__bunga-bottom-wrap--merah-kanan[data-reveal] {
    transform: translate(40px, 46px);
    transition-duration: 1.5s;
}

.mempelai-section__bunga-bottom-wrap--biru-kanan[data-reveal].is-visible,
.mempelai-section__bunga-bottom-wrap--merah-kanan[data-reveal].is-visible {
    transform: translate(0, 0);
}

.mempelai-section__bunga-bottom {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.2));
}

.mempelai-section__bunga-bottom--biru-kiri {
    transform-origin: 30% 100%;
    animation: windSwayLeft 6.8s ease-in-out infinite;
    animation-delay: -1.6s;
}

.mempelai-section__bunga-bottom--biru-kanan {
    transform-origin: 70% 100%;
    animation: windSwayRight 6.1s ease-in-out infinite;
    animation-delay: -0.5s;
}

.mempelai-section__bunga-bottom--merah-kiri {
    transform-origin: 30% 100%;
    animation: windSwayLeft 5.4s ease-in-out infinite;
    animation-delay: -2.3s;
}

.mempelai-section__bunga-bottom--merah-kanan {
    transform-origin: 70% 100%;
    animation: windSwayRight 4.9s ease-in-out infinite;
    animation-delay: -1.1s;
}

@media (prefers-reduced-motion: reduce) {

    .mempelai-section__kupu,
    .mempelai-section__pohon-cluster--top-left,
    .mempelai-section__pohon-cluster--top-right,
    .mempelai-section__pohon--bottom-left,
    .mempelai-section__pohon--bottom-right,
    .mempelai-section__tree--hijau-kiri,
    .mempelai-section__tree--hijau-kanan,
    .mempelai-section__tree--merah-kiri,
    .mempelai-section__tree--merah-kanan,
    .mempelai-section__bunga-bottom--biru-kiri,
    .mempelai-section__bunga-bottom--biru-kanan,
    .mempelai-section__bunga-bottom--merah-kiri,
    .mempelai-section__bunga-bottom--merah-kanan {
        animation: none;
    }
}

@media (max-width: 380px) {
    .mempelai-section__pohon-wrap {
        width: min(55vw, 180px);
    }

    .mempelai-card {
        margin-top: 56px;
        padding: 46px 20px 36px;
        border-radius: 120px 120px 20px 20px;
    }

    .mempelai-profile__photo {
        width: 140px;
        height: 175px;
        border-radius: 80px 80px 14px 14px;
    }

    .mempelai-profile__name {
        font-size: 2.4rem;
    }

    .mempelai-section__pohon {
        width: min(55vw, 180px);
    }
}

/* ===== Save The Date ===== */
.save-date-section {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: linear-gradient(180deg, var(--maroon-deep) 0%, var(--maroon) 55%, var(--maroon-deep) 100%);
    padding: 90px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.save-date-section__motif {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: url('../images/motif-batik.webp');
    background-repeat: repeat;
    background-size: 220px 220px;
    opacity: 0.22;
}

/* pohon-kanan/pohon-kiri flipped 180deg, dangling into the top corners;
   same orientation normally in the bottom corners — wrap carries the
   scroll reveal, the img inside carries the continuous wind sway, so the
   transition and the animation never fight over the same `transform` */
.save-date-section__pohon-wrap {
    position: absolute;
    z-index: 2;
    width: min(42vw, 200px);
}

.save-date-section__pohon-wrap--top-left {
    top: 130px;
    left: -10vw;
}

.save-date-section__pohon-wrap--top-right {
    top: 130px;
    right: -10vw;
}

.save-date-section__pohon-wrap--bottom-left {
    z-index: 4;
    /* pohon-kiri/kanan.png both have a large transparent margin under the
     foliage, so the wrap sits well below the section's own edge to make
     the visible leaves — not the image's empty bounding box — reach it */
    bottom: -52px;
    left: -8vw;
}

.save-date-section__pohon-wrap--bottom-right {
    z-index: 4;
    bottom: -52px;
    right: -8vw;
}

/* diagonal scroll-reveal: top corners descend in from above, bottom
   corners rise in from below — both states set explicitly since this ties
   the generic [data-reveal].is-visible rule on specificity */
.save-date-section__pohon-wrap--top-left[data-reveal] {
    transform: translate(-40px, -46px);
    transition-duration: 1.5s;
}

.save-date-section__pohon-wrap--top-left[data-reveal].is-visible {
    transform: translate(0, 0);
}

.save-date-section__pohon-wrap--top-right[data-reveal] {
    transform: translate(40px, -46px);
    transition-duration: 1.5s;
}

.save-date-section__pohon-wrap--top-right[data-reveal].is-visible {
    transform: translate(0, 0);
}

.save-date-section__pohon-wrap--bottom-left[data-reveal] {
    transform: translate(-40px, 46px);
    transition-duration: 1.5s;
}

.save-date-section__pohon-wrap--bottom-left[data-reveal].is-visible {
    transform: translate(0, 0);
}

.save-date-section__pohon-wrap--bottom-right[data-reveal] {
    transform: translate(40px, 46px);
    transition-duration: 1.5s;
}

.save-date-section__pohon-wrap--bottom-right[data-reveal].is-visible {
    transform: translate(0, 0);
}

/* cluster wraps the leaf + its flower together so they rotate as one rigid
   hanging bouquet, same technique as .mempelai-section__pohon-cluster */
.save-date-section__pohon-cluster {
    position: relative;
    width: 100%;
    transform-origin: 50% 15%;
}

.save-date-section__pohon-cluster--top-left {
    animation: windSwayTopLeft 9s ease-in-out infinite;
}

.save-date-section__pohon-cluster--top-right {
    animation: windSwayTopRight 9.6s ease-in-out infinite;
    animation-delay: -3s;
}

.save-date-section__pohon {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.3));
}

.save-date-section__pohon--bottom-left {
    transform-origin: 40% 100%;
    animation: windSwayLeft 7.2s ease-in-out infinite;
    animation-delay: -2.6s;
}

.save-date-section__pohon--bottom-right {
    transform-origin: 60% 100%;
    animation: windSwayRight 6.5s ease-in-out infinite;
    animation-delay: -1.2s;
}

/* small flower blooming at the tip of the hanging top leaves — child of the
   same rotating cluster as the leaf, anchored near its original top edge */
.save-date-section__bunga-top {
    position: absolute;
    z-index: 3;
    top: 4%;
    width: min(14vw, 68px);
    height: auto;
    pointer-events: none;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.2));
}

.save-date-section__bunga-top--kiri {
    left: 30%;
    transform: rotate(-8deg);
}

.save-date-section__bunga-top--kanan {
    right: 30%;
    transform: rotate(8deg);
}

/* bottom-corner flower, independent of the (unflipped) bottom leaf —
   sits at the same corner without needing the cluster rotation trick */
.save-date-section__bunga-bottom-wrap {
    position: absolute;
    z-index: 5;
    /* shifted down to stay grouped with the leaf tips, which now sit lower
     too (see .save-date-section__pohon-wrap--bottom-* above) */
    bottom: -50px;
    width: min(20vw, 120px);
    pointer-events: none;
}

.save-date-section__bunga-bottom-wrap--kiri {
    left: -1vw;
}

.save-date-section__bunga-bottom-wrap--kanan {
    right: -1vw;
}

.save-date-section__bunga-bottom-wrap--kiri[data-reveal] {
    transform: translate(-40px, 46px);
    transition-duration: 1.5s;
}

.save-date-section__bunga-bottom-wrap--kiri[data-reveal].is-visible {
    transform: translate(0, 0);
}

.save-date-section__bunga-bottom-wrap--kanan[data-reveal] {
    transform: translate(40px, 46px);
    transition-duration: 1.5s;
}

.save-date-section__bunga-bottom-wrap--kanan[data-reveal].is-visible {
    transform: translate(0, 0);
}

.save-date-section__bunga-bottom {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.2));
}

.save-date-section__bunga-bottom--kiri {
    transform-origin: 30% 100%;
    animation: windSwayLeft 5.4s ease-in-out infinite;
    animation-delay: -2.3s;
}

.save-date-section__bunga-bottom--kanan {
    transform-origin: 70% 100%;
    animation: windSwayRight 4.9s ease-in-out infinite;
    animation-delay: -1.1s;
}

.save-date-card {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 360px;
    margin-top: 56px;
    background-image: linear-gradient(rgba(255, 252, 242, 0.86), rgba(255, 252, 242, 0.86)),
        url('../images/bg-cream.webp');
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(201, 162, 75, 0.5);
    border-radius: 24px;
    padding: 40px 28px 34px;
    text-align: center;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.25);
}

.save-date-card__label {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--maroon-deep);
}

.save-date-card__divider {
    display: block;
    width: 60px;
    height: 2px;
    margin: 16px auto 20px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.save-date-card__day {
    font-family: 'Great Vibes', cursive;
    font-size: 2.2rem;
    color: var(--gold);
}

.save-date-card__date {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
    margin-top: 6px;
}

.save-date-card__num {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 4.2rem;
    line-height: 1;
    color: var(--maroon-deep);
}

.save-date-card__my {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.save-date-card__month {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--maroon-deep);
}

.save-date-card__year {
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--maroon);
    opacity: 0.8;
}

.save-date-card__countdown {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.save-date-card__count {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 62px;
    padding: 10px 0;
    background: linear-gradient(180deg, var(--maroon) 0%, var(--maroon-deep) 100%);
    border: 1px solid var(--gold);
    border-radius: 12px;
}

.save-date-card__count-num {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--gold-light);
}

.save-date-card__count-label {
    margin-top: 2px;
    font-size: 0.62rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--cream);
    opacity: 0.8;
}

@media (prefers-reduced-motion: reduce) {

    .save-date-section__pohon-cluster--top-left,
    .save-date-section__pohon-cluster--top-right,
    .save-date-section__pohon--bottom-left,
    .save-date-section__pohon--bottom-right,
    .save-date-section__bunga-bottom--kiri,
    .save-date-section__bunga-bottom--kanan {
        animation: none;
    }
}

@media (max-width: 380px) {
    .save-date-card {
        padding: 32px 18px 28px;
    }

    .save-date-card__num {
        font-size: 3.4rem;
    }

    .save-date-card__count {
        width: 52px;
    }

    .save-date-section__pohon-wrap {
        width: min(48vw, 160px);
    }
}

/* ===== Acara: Akad & Resepsi ===== */
.acara-section {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: linear-gradient(180deg, var(--cream) 0%, #fbf3dd 100%);
    padding: 70px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 64px;
}

.acara-item {
    position: relative;
    width: 100%;
}

/* top corners: pohon-kanan/pohon-kiri flipped 180deg, dangling down;
   bottom corners: the same pair in their normal orientation — wrap carries
   the scroll reveal, the img inside carries the continuous wind sway.
   Positioned against .acara-item (full section width) instead of the
   narrower .acara-card, so they can reach the screen's side edges. */
.acara-item__pohon-wrap {
    position: absolute;
    z-index: 1;
    width: min(38vw, 170px);
}

.acara-item__pohon-wrap--top-left {
    top: -14px;
    left: -8vw;
}

.acara-item__pohon-wrap--top-right {
    top: -14px;
    right: -8vw;
}

.acara-item__pohon-wrap--bottom-left {
    z-index: 3;
    /* pohon-kiri/kanan.png both have a large transparent margin under the
     foliage, so the wrap sits well below the item's own edge to make the
     visible leaves — not the image's empty bounding box — reach it */
    bottom: -50px;
    left: -6vw;
}

.acara-item__pohon-wrap--bottom-right {
    z-index: 3;
    bottom: -50px;
    right: -6vw;
}

/* diagonal scroll-reveal: top corners descend in from above, bottom
   corners rise in from below — both states set explicitly since this ties
   the generic [data-reveal].is-visible rule on specificity */
.acara-item__pohon-wrap--top-left[data-reveal] {
    transform: translate(-40px, -46px);
    transition-duration: 1.5s;
}

.acara-item__pohon-wrap--top-left[data-reveal].is-visible {
    transform: translate(0, 0);
}

.acara-item__pohon-wrap--top-right[data-reveal] {
    transform: translate(40px, -46px);
    transition-duration: 1.5s;
}

.acara-item__pohon-wrap--top-right[data-reveal].is-visible {
    transform: translate(0, 0);
}

.acara-item__pohon-wrap--bottom-left[data-reveal] {
    transform: translate(-40px, 46px);
    transition-duration: 1.5s;
}

.acara-item__pohon-wrap--bottom-left[data-reveal].is-visible {
    transform: translate(0, 0);
}

.acara-item__pohon-wrap--bottom-right[data-reveal] {
    transform: translate(40px, 46px);
    transition-duration: 1.5s;
}

.acara-item__pohon-wrap--bottom-right[data-reveal].is-visible {
    transform: translate(0, 0);
}

/* cluster wraps the leaf + its flower together so they rotate as one rigid
   hanging bouquet, same technique as .mempelai-section__pohon-cluster */
.acara-item__pohon-cluster {
    position: relative;
    width: 100%;
    transform-origin: 50% 15%;
}

.acara-item__pohon-cluster--top-left {
    animation: windSwayTopLeft 9s ease-in-out infinite;
}

.acara-item__pohon-cluster--top-right {
    animation: windSwayTopRight 9.6s ease-in-out infinite;
    animation-delay: -3s;
}

.acara-item__pohon {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 14px rgba(90, 26, 26, 0.2));
}

.acara-item__pohon--bottom-left {
    transform-origin: 40% 100%;
    animation: windSwayLeft 7.2s ease-in-out infinite;
    animation-delay: -2.6s;
}

.acara-item__pohon--bottom-right {
    transform-origin: 60% 100%;
    animation: windSwayRight 6.5s ease-in-out infinite;
    animation-delay: -1.2s;
}

/* small flower blooming at the tip of the hanging top leaves — child of the
   same rotating cluster as the leaf, anchored near its original top edge */
.acara-item__bunga-top {
    position: absolute;
    z-index: 2;
    top: 4%;
    width: min(13vw, 62px);
    height: auto;
    pointer-events: none;
    filter: drop-shadow(0 6px 10px rgba(90, 26, 26, 0.18));
}

.acara-item__bunga-top--kiri {
    left: 30%;
    transform: rotate(-8deg);
}

.acara-item__bunga-top--kanan {
    right: 30%;
    transform: rotate(8deg);
}

/* bottom-corner flower, independent of the (unflipped) bottom leaf —
   sits at the same corner without needing the cluster rotation trick */
.acara-item__bunga-bottom-wrap {
    position: absolute;
    z-index: 4;
    /* shifted down to stay grouped with the leaf tips, which now sit lower
     too (see .acara-item__pohon-wrap--bottom-* above) */
    bottom: -46px;
    width: min(18vw, 108px);
    pointer-events: none;
}

.acara-item__bunga-bottom-wrap--kiri {
    left: -3vw;
}

.acara-item__bunga-bottom-wrap--kanan {
    right: -3vw;
}

.acara-item__bunga-bottom-wrap--kiri[data-reveal] {
    transform: translate(-40px, 46px);
    transition-duration: 1.5s;
}

.acara-item__bunga-bottom-wrap--kiri[data-reveal].is-visible {
    transform: translate(0, 0);
}

.acara-item__bunga-bottom-wrap--kanan[data-reveal] {
    transform: translate(40px, 46px);
    transition-duration: 1.5s;
}

.acara-item__bunga-bottom-wrap--kanan[data-reveal].is-visible {
    transform: translate(0, 0);
}

.acara-item__bunga-bottom {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.2));
}

.acara-item__bunga-bottom--kiri {
    transform-origin: 30% 100%;
    animation: windSwayLeft 5.4s ease-in-out infinite;
    animation-delay: -2.3s;
}

.acara-item__bunga-bottom--kanan {
    transform-origin: 70% 100%;
    animation: windSwayRight 4.9s ease-in-out infinite;
    animation-delay: -1.1s;
}

.acara-card {
    position: relative;
    z-index: 2;
    margin: 70px auto 0;
    padding: 48px 26px 36px;
    width: 100%;
    max-width: min(300px, calc(100% - 48px));
    border-radius: 150px;
    background: rgba(255, 252, 242, 0.92);
    border: 1px solid rgba(201, 162, 75, 0.6);
    box-shadow: 0 20px 44px rgba(90, 26, 26, 0.16);
    text-align: center;
    overflow: hidden;
}

.acara-card__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: url('../images/bg-cream.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.5;
}

.acara-card__title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 2.2rem;
    color: var(--maroon-deep);
}

.acara-card__divider {
    display: block;
    width: 54px;
    height: 1px;
    margin: 16px auto 18px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.acara-card__day {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8rem;
    color: var(--maroon);
}

.acara-card__num {
    margin-top: 2px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 3.4rem;
    line-height: 1;
    color: var(--maroon-deep);
}

.acara-card__month {
    margin-top: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    color: var(--maroon-deep);
}

.acara-card__time {
    margin-top: 2px;
    font-size: 0.85rem;
    color: var(--ink);
    opacity: 0.85;
}

.acara-card__place {
    margin-top: 18px;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--maroon-deep);
}

.acara-card__address {
    margin-top: 4px;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--ink);
    opacity: 0.8;
}

.acara-card__btn {
    display: inline-block;
    margin-top: 20px;
    font-family: 'Jost', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--gold-light);
    background: linear-gradient(180deg, var(--maroon) 0%, var(--maroon-deep) 100%);
    border: 1px solid var(--gold);
    padding: 10px 26px;
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(90, 26, 26, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.acara-card__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(90, 26, 26, 0.45);
}

@media (prefers-reduced-motion: reduce) {

    .acara-item__pohon-cluster--top-left,
    .acara-item__pohon-cluster--top-right,
    .acara-item__pohon--bottom-left,
    .acara-item__pohon--bottom-right,
    .acara-item__bunga-bottom--kiri,
    .acara-item__bunga-bottom--kanan {
        animation: none;
    }
}

@media (max-width: 380px) {
    .acara-card {
        padding: 40px 20px 30px;
    }

    .acara-card__title {
        font-size: 1.9rem;
    }

    .acara-card__num {
        font-size: 2.9rem;
    }
}

/* ===== Galeri Foto ===== */
.galeri-section {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, var(--maroon-deep) 0%, var(--maroon) 12%, var(--maroon-deep) 100%);
    overflow: hidden;
    padding: 72px 0 90px;
}

.galeri-section__motif {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: url('../images/motif-batik.webp');
    background-repeat: repeat;
    background-size: 220px 220px;
    opacity: 0.22;
}

.galeri-section__inner {
    position: relative;
    z-index: 2;
    padding: 0 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.galeri-section__title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 2.1rem;
    line-height: 1.25;
    color: var(--gold-light);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.galeri-section__divider {
    display: block;
    width: 60px;
    height: 2px;
    margin: 20px 0 18px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transition-delay: 0.05s;
}

.galeri-section__subtitle {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--cream);
    opacity: 0.85;
    max-width: 32ch;
    transition-delay: 0.1s;
}

.galeri-grid {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 120px;
    grid-auto-flow: dense;
    gap: 10px;
}

.galeri-grid__item {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 1px solid rgba(232, 207, 138, 0.4);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    background: none;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
    transition-delay: 0.1s;
}

.galeri-grid__item:nth-child(1),
.galeri-grid__item:nth-child(4) {
    grid-row: span 2;
}

.galeri-grid__item:nth-child(2) {
    transition-delay: 0.16s;
}

.galeri-grid__item:nth-child(3) {
    transition-delay: 0.22s;
}

.galeri-grid__item:nth-child(4) {
    transition-delay: 0.28s;
}

.galeri-grid__item:nth-child(5) {
    transition-delay: 0.34s;
}

.galeri-grid__item:nth-child(6) {
    transition-delay: 0.4s;
}

.galeri-grid__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 0.5s ease;
}

.galeri-grid__item:hover img,
.galeri-grid__item:focus-visible img {
    transform: scale(1.12);
}

.galeri-grid__item:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 2px;
}

.galeri-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(20, 8, 8, 0.92);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.galeri-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.galeri-lightbox__img {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.96);
    transition: transform 0.3s ease;
}

.galeri-lightbox.is-open .galeri-lightbox__img {
    transform: scale(1);
}

.galeri-lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(232, 207, 138, 0.6);
    background: rgba(255, 255, 255, 0.08);
    color: var(--gold-light);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    .galeri-grid__item img {
        transition: none;
        transform: none;
    }

    .galeri-lightbox,
    .galeri-lightbox__img {
        transition: none;
    }
}

@media (max-width: 380px) {
    .galeri-section__title {
        font-size: 1.8rem;
    }

    .galeri-grid {
        grid-auto-rows: 100px;
    }
}

/* ===== Wedding Gift ===== */
.gift-section {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: linear-gradient(180deg, var(--cream) 0%, #fbf3dd 100%);
    padding: 90px 0 86px;
}

.gift-section__inner {
    position: relative;
    z-index: 2;
    padding: 0 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.gift-section__pohon-wrap {
    position: absolute;
    z-index: 1;
    width: min(38vw, 170px);
}

.gift-section__pohon-wrap--top-left {
    top: -14px;
    left: -8vw;
}

.gift-section__pohon-wrap--top-right {
    top: -14px;
    right: -8vw;
}

.gift-section__pohon {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 14px rgba(90, 26, 26, 0.2));
    transform-origin: 50% 15%;
}

.gift-section__pohon--top-left {
    animation: windSwayTopLeft 9s ease-in-out infinite;
}

.gift-section__pohon--top-right {
    animation: windSwayTopRight 9.6s ease-in-out infinite;
    animation-delay: -3s;
}

.gift-section__title {
    position: relative;
    z-index: 2;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 2.2rem;
    color: var(--maroon-deep);
}

.gift-section__divider {
    display: block;
    width: 54px;
    height: 1px;
    margin: 16px auto 18px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transition-delay: 0.05s;
}

.gift-section__desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--ink);
    opacity: 0.85;
    max-width: 32ch;
    transition-delay: 0.1s;
}

.gift-card {
    position: relative;
    z-index: 2;
    margin-top: 40px;
    width: 100%;
    max-width: 340px;
    padding: 36px 28px 32px;
    border-radius: 24px;
    background: rgba(255, 252, 242, 0.92);
    border: 1px solid rgba(201, 162, 75, 0.6);
    box-shadow: 0 20px 44px rgba(90, 26, 26, 0.16);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition-delay: 0.15s;
}

.gift-card__divider {
    display: block;
    width: 100%;
    max-width: 180px;
    height: 1px;
    margin: 28px 0;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 75, 0.6), transparent);
}

.gift-account {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.gift-account__icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--maroon) 0%, var(--maroon-deep) 100%);
    border: 1px solid var(--gold);
    color: var(--gold-light);
}

.gift-account__icon svg {
    width: 20px;
    height: 20px;
}

.gift-account__bank {
    margin-top: 14px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
    color: var(--maroon-deep);
}

.gift-account__number {
    margin-top: 6px;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 1.5px;
    color: var(--ink);
}

.gift-account__name {
    margin-top: 4px;
    font-size: 0.82rem;
    color: var(--ink);
    opacity: 0.75;
}

.gift-account__copy {
    margin-top: 16px;
    font-family: 'Jost', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--maroon-deep);
    background: transparent;
    border: 1px solid rgba(90, 26, 26, 0.35);
    padding: 9px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.gift-account__copy:hover,
.gift-account__copy.is-copied {
    background: var(--maroon-deep);
    color: var(--gold-light);
    border-color: var(--maroon-deep);
}

.gift-address {
    margin-top: 36px;
    max-width: 34ch;
    transition-delay: 0.2s;
}

.gift-address__label {
    font-family: 'Great Vibes', cursive;
    font-size: 1.6rem;
    color: var(--maroon);
}

.gift-address__text {
    margin-top: 8px;
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--ink);
    opacity: 0.8;
}

@media (prefers-reduced-motion: reduce) {

    .gift-section__pohon--top-left,
    .gift-section__pohon--top-right {
        animation: none;
    }
}

@media (max-width: 380px) {
    .gift-section__title {
        font-size: 1.9rem;
    }

    .gift-card {
        padding: 30px 22px 26px;
    }
}

/* ===== RSVP ===== */
.rsvp-section {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, var(--maroon-deep) 0%, var(--maroon) 10%, var(--maroon-deep) 100%);
    overflow: hidden;
    padding: 80px 0 90px;
}

.rsvp-section__motif {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: url('../images/motif-batik.webp');
    background-repeat: repeat;
    background-size: 220px 220px;
    opacity: 0.22;
}

.rsvp-section__inner {
    position: relative;
    z-index: 2;
    padding: 0 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.rsvp-section__title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 2.2rem;
    color: var(--gold-light);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.rsvp-section__divider {
    display: block;
    width: 60px;
    height: 2px;
    margin: 20px 0 18px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transition-delay: 0.05s;
}

.rsvp-section__desc {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--cream);
    opacity: 0.85;
    max-width: 32ch;
    transition-delay: 0.1s;
}

.rsvp-form {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 360px;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: left;
    transition-delay: 0.15s;
}

.rsvp-form__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rsvp-form__label {
    font-size: 0.76rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--gold-light);
    opacity: 0.9;
}

.rsvp-form__input,
.rsvp-form__textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(232, 207, 138, 0.4);
    background: rgba(255, 255, 255, 0.08);
    color: var(--cream);
    font-family: 'Jost', sans-serif;
    font-size: 0.9rem;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.rsvp-form__input::placeholder,
.rsvp-form__textarea::placeholder {
    color: rgba(246, 232, 201, 0.5);
}

.rsvp-form__input:focus,
.rsvp-form__textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.14);
}

.rsvp-form__textarea {
    resize: vertical;
    min-height: 96px;
    font-family: 'Jost', sans-serif;
}

.rsvp-form__choices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rsvp-form__choice {
    flex: 1 1 auto;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(232, 207, 138, 0.5);
    background: transparent;
    color: var(--gold-light);
    font-family: 'Jost', sans-serif;
    font-size: 0.76rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.rsvp-form__choice[aria-pressed="true"] {
    background: linear-gradient(180deg, var(--gold) 0%, #b4883a 100%);
    color: var(--maroon-deep);
    border-color: var(--gold);
    font-weight: 600;
}

.rsvp-form__error {
    min-height: 1em;
    font-size: 0.78rem;
    color: #ffb4b4;
}

.rsvp-form__submit {
    margin-top: 4px;
    align-self: center;
    font-family: 'Jost', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: var(--gold-light);
    background: linear-gradient(180deg, var(--maroon) 0%, var(--maroon-deep) 100%);
    border: 1px solid var(--gold);
    padding: 12px 34px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rsvp-form__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.45);
}

.rsvp-list-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 360px;
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition-delay: 0.2s;
}

.rsvp-list__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(232, 207, 138, 0.25);
}

.rsvp-list__count {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--gold-light);
}

.rsvp-list__stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
}

.rsvp-list__stat {
    font-size: 0.74rem;
    letter-spacing: 0.3px;
    color: var(--cream);
    opacity: 0.85;
}

.rsvp-list__stat strong {
    color: var(--gold-light);
    font-weight: 700;
}

.rsvp-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rsvp-list__empty {
    font-size: 0.85rem;
    color: var(--cream);
    opacity: 0.7;
    text-align: center;
}

.rsvp-list__more {
    align-self: center;
    font-family: 'Jost', sans-serif;
    font-size: 0.74rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold-light);
    background: transparent;
    border: 1px solid rgba(232, 207, 138, 0.5);
    padding: 10px 24px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}

.rsvp-list__more:hover {
    background: rgba(232, 207, 138, 0.15);
}

.rsvp-card {
    text-align: left;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(232, 207, 138, 0.25);
}

.rsvp-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.rsvp-card__name {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gold-light);
}

.rsvp-card__badge {
    flex-shrink: 0;
    font-size: 0.62rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid currentColor;
}

.rsvp-card__badge--hadir {
    color: #9fe3a8;
}

.rsvp-card__badge--tidak {
    color: #f0a2a2;
}

.rsvp-card__badge--ragu {
    color: #f0d27a;
}

.rsvp-card__message {
    margin-top: 8px;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--cream);
    opacity: 0.9;
}

.rsvp-card__time {
    margin-top: 10px;
    font-size: 0.68rem;
    letter-spacing: 0.3px;
    color: var(--cream);
    opacity: 0.5;
}

@media (max-width: 380px) {
    .rsvp-section__title {
        font-size: 1.9rem;
    }

    .rsvp-form__choice {
        font-size: 0.7rem;
        padding: 9px 10px;
    }
}

/* ===== Penutup ===== */
.closing-section {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: linear-gradient(180deg, var(--cream) 0%, #fbf3dd 100%);
    padding: 90px 28px 110px;
}

.closing-section__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.closing-section__pohon-wrap {
    position: absolute;
    z-index: 1;
    width: min(38vw, 170px);
}

.closing-section__pohon-wrap--bottom-left {
    /* pohon-kiri/kanan.png both have a large transparent margin under the
     foliage, so the wrap sits well below the section's own edge to make
     the visible leaves — not the image's empty bounding box — reach it */
    bottom: -50px;
    left: -8vw;
}

.closing-section__pohon-wrap--bottom-right {
    bottom: -50px;
    right: -8vw;
}

/* diagonal scroll-reveal — rise in from below, same side as each leaf —
   both states set explicitly since this ties the generic
   [data-reveal].is-visible rule on specificity */
.closing-section__pohon-wrap--bottom-left[data-reveal] {
    transform: translate(-40px, 46px);
    transition-duration: 1.5s;
}

.closing-section__pohon-wrap--bottom-left[data-reveal].is-visible {
    transform: translate(0, 0);
}

.closing-section__pohon-wrap--bottom-right[data-reveal] {
    transform: translate(40px, 46px);
    transition-duration: 1.5s;
}

.closing-section__pohon-wrap--bottom-right[data-reveal].is-visible {
    transform: translate(0, 0);
}

.closing-section__pohon {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 14px rgba(90, 26, 26, 0.2));
}

.closing-section__pohon--bottom-left {
    transform-origin: 40% 100%;
    animation: windSwayLeft 7.2s ease-in-out infinite;
    animation-delay: -2.6s;
}

.closing-section__pohon--bottom-right {
    transform-origin: 60% 100%;
    animation: windSwayRight 6.5s ease-in-out infinite;
    animation-delay: -1.2s;
}

/* bottom-corner flower, independent of the (unflipped) bottom leaf —
   sits at the same corner without needing a rotating-cluster wrap */
.closing-section__bunga-bottom-wrap {
    position: absolute;
    z-index: 2;
    /* shifted down to stay grouped with the leaf tips, which now sit lower
     too (see .closing-section__pohon-wrap--bottom-* above) */
    bottom: -44px;
    width: min(20vw, 120px);
    pointer-events: none;
}

.closing-section__bunga-bottom-wrap--kiri {
    left: -2vw;
}

.closing-section__bunga-bottom-wrap--kanan {
    right: -2vw;
}

.closing-section__bunga-bottom-wrap--kiri[data-reveal] {
    transform: translate(-40px, 46px);
    transition-duration: 1.5s;
}

.closing-section__bunga-bottom-wrap--kiri[data-reveal].is-visible {
    transform: translate(0, 0);
}

.closing-section__bunga-bottom-wrap--kanan[data-reveal] {
    transform: translate(40px, 46px);
    transition-duration: 1.5s;
}

.closing-section__bunga-bottom-wrap--kanan[data-reveal].is-visible {
    transform: translate(0, 0);
}

.closing-section__bunga-bottom {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.2));
}

.closing-section__bunga-bottom--kiri {
    transform-origin: 30% 100%;
    animation: windSwayLeft 6.8s ease-in-out infinite;
    animation-delay: -1.6s;
}

.closing-section__bunga-bottom--kanan {
    transform-origin: 70% 100%;
    animation: windSwayRight 6.1s ease-in-out infinite;
    animation-delay: -0.5s;
}

.closing-section__aksara img {
    height: 24px;
    width: auto;
    opacity: 0.85;
}

.closing-section__arabic {
    margin-top: 22px;
    font-family: 'Amiri', serif;
    direction: rtl;
    font-size: 1.3rem;
    line-height: 2;
    color: var(--maroon-deep);
    transition-delay: 0.05s;
}

.closing-section__text {
    margin-top: 18px;
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--ink);
    opacity: 0.85;
    max-width: 34ch;
    transition-delay: 0.1s;
}

.closing-section__text--thanks {
    transition-delay: 0.15s;
}

.closing-section__monogram {
    margin-top: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition-delay: 0.2s;
}

.closing-section__monogram-text {
    font-family: 'Great Vibes', cursive;
    font-weight: 600;
    font-size: 3.4rem;
    color: var(--maroon-deep);
}

.closing-section__monogram-amp {
    font-family: 'Great Vibes', cursive;
    font-size: 1.3rem;
    margin: 0 2px;
    color: var(--gold);
}

.closing-section__monogram-line {
    width: 32px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}

.closing-section__monogram-line--right {
    background: linear-gradient(90deg, var(--gold), transparent);
}

.closing-section__kami {
    margin-top: 20px;
    font-family: 'Great Vibes', cursive;
    font-size: 1.3rem;
    color: var(--maroon);
    transition-delay: 0.25s;
}

.closing-section__names {
    margin-top: 4px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
    color: var(--maroon-deep);
    transition-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {

    .closing-section__pohon--bottom-left,
    .closing-section__pohon--bottom-right,
    .closing-section__bunga-bottom--kiri,
    .closing-section__bunga-bottom--kanan {
        animation: none;
    }
}

@media (max-width: 380px) {
    .closing-section__monogram-text {
        font-size: 2.6rem;
    }

    .closing-section__names {
        font-size: 1.1rem;
    }
}

/* ===== Laravel integration additions =====
   Dynamic-data wiring (bank/e-wallet logos from the admin-managed Payment
   list, and the optional embedded Google Maps iframe) reuses the existing
   .gift-account / .acara-card markup, so only the bits that markup didn't
   already have need new rules here. */

.gift-account__icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.acara-card__map {
    margin-top: 16px;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
}

.acara-card__map iframe {
    width: 100%;
    height: 160px;
    border: 0;
    display: block;
}

.back-to-top {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1000;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(45, 13, 13, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(232, 207, 138, 0.5);
    color: var(--gold-light, #e8cf8a);
    cursor: pointer;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

.music-toggle {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 1000;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(45, 13, 13, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(232, 207, 138, 0.5);
    color: var(--gold-light, #e8cf8a);
    cursor: pointer;
    padding: 0;
}

.music-toggle__icon--pause {
    display: none;
}

.music-toggle.is-playing .music-toggle__icon--play {
    display: none;
}

.music-toggle.is-playing .music-toggle__icon--pause {
    display: block;
}