:root {
    --bg-ivory: #fbf2f0;
    --bg-warm: #f4e1e7;
    --bg-paper: #fffaf8;
    --surface: rgba(255, 249, 252, 0.86);
    --surface-strong: #ffffff;
    --ink: #2c211f;
    --muted: #6e5e66;
    --brand: #7c3f59;
    --brand-deep: #5f2f45;
    --gold: #cfb27a;
    --sage: #3f675f;
    --rose: #d08ca4;
    --line: rgba(126, 97, 113, 0.24);
    --shadow-soft: 0 14px 38px rgba(38, 23, 24, 0.12);
    --shadow-bold: 0 22px 60px rgba(34, 21, 22, 0.2);
    --radius-xl: 36px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --motion-enter: 0.64s;
    --motion-interact: 0.24s;
    --ease-enter: cubic-bezier(0.2, 0.7, 0.12, 1);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--ink);
    min-height: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background:
        radial-gradient(circle at 0% 0%, rgba(208, 140, 164, 0.34), transparent 44%),
        radial-gradient(circle at 100% 16%, rgba(245, 190, 209, 0.26), transparent 43%),
        linear-gradient(180deg, var(--bg-ivory) 0%, var(--bg-warm) 100%);
    line-height: 1.72;
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -2;
    pointer-events: none;
}

body::before {
    inset: 0;
    background-image:
        radial-gradient(rgba(126, 97, 113, 0.07) 0.5px, transparent 0.6px),
        repeating-linear-gradient(
            90deg,
            rgba(124, 63, 89, 0.04) 0,
            rgba(124, 63, 89, 0.04) 1px,
            transparent 1px,
            transparent 12px
        );
    background-size: 3px 3px, auto;
    mix-blend-mode: multiply;
    opacity: 0.78;
}

body::after {
    width: 560px;
    height: 560px;
    right: -170px;
    bottom: -180px;
    border-radius: 48% 52% 60% 40%;
    background: radial-gradient(circle, rgba(124, 63, 89, 0.18), rgba(124, 63, 89, 0));
}

a {
    text-decoration: none;
}

.bg-shape {
    position: fixed;
    z-index: -1;
    pointer-events: none;
}

.bg-shape-one {
    width: 360px;
    height: 360px;
    top: -120px;
    left: -150px;
    border-radius: 62% 38% 55% 45%;
    background: linear-gradient(145deg, rgba(207, 178, 122, 0.32), rgba(255, 255, 255, 0.1));
}

.bg-shape-two {
    width: 300px;
    height: 300px;
    top: 32%;
    right: -120px;
    border-radius: 37% 63% 46% 54%;
    background: linear-gradient(145deg, rgba(63, 103, 95, 0.2), rgba(255, 255, 255, 0.06));
}

.main-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(255, 241, 247, 0.82);
    border-bottom: 1px solid rgba(119, 98, 84, 0.2);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    font-weight: 700;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-family: "Cinzel", serif;
    font-size: 1.15rem;
    letter-spacing: 1px;
    background: linear-gradient(140deg, var(--brand), var(--brand-deep));
    box-shadow: 0 12px 24px rgba(124, 63, 89, 0.34);
}

.brand-text {
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-size: 0.92rem;
}

.nav-link {
    color: #665767;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--brand);
}

.opening-gate {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% -10%, rgba(255, 236, 211, 0.55), transparent 55%),
        linear-gradient(180deg, #f3ebdf 0%, #e5d8c7 100%);
}

.opening-gate.is-closing {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.38s ease, visibility 0s linear 0.38s;
}

.opening-gate.is-playing-video .opening-content,
.opening-gate.is-playing-video .opening-side {
    animation: openingContentFade 0.34s ease forwards;
}

.opening-gate.is-video-loading .opening-video-wrap {
    opacity: 1;
}

.opening-gate.is-video-loading .opening-video-wrap::after {
    content: "Menyiapkan animasi...";
    position: absolute;
    left: 50%;
    bottom: 9%;
    transform: translateX(-50%);
    z-index: 3;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.74rem;
    letter-spacing: 0.2px;
    color: #f8ebe0;
    background: rgba(42, 22, 16, 0.55);
    border: 1px solid rgba(255, 230, 200, 0.26);
}

.opening-gate.is-playing-video .opening-floral,
.opening-gate.is-playing-video .opening-arches,
.opening-gate.is-playing-video .opening-art-layer,
.opening-gate.is-playing-video .opening-stone-path,
.opening-gate.is-playing-video .petal-rain {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.opening-gate.is-playing-video .opening-video-wrap {
    opacity: 1;
}

.opening-gate.is-playing-video .opening-gate-video {
    animation: openingVideoZoom 8s linear forwards;
}

.book-opening {
    position: absolute;
    inset: 0;
    z-index: 1330;
    opacity: 0;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 2800px;
    perspective-origin: 18% 50%;
    transform-style: preserve-3d;
    background:
        radial-gradient(circle at 50% 10%, rgba(255, 250, 236, 0.24), transparent 44%),
        radial-gradient(circle at 50% 90%, rgba(101, 56, 78, 0.24), transparent 56%),
        rgba(32, 19, 27, 0.35);
}

.book-shell {
    position: relative;
    width: min(94vw, 1040px);
    height: min(94vh, 760px);
    transform-style: preserve-3d;
    filter: drop-shadow(0 20px 50px rgba(10, 6, 9, 0.38));
}

.book-shell::before {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 20px;
    background: radial-gradient(circle at 50% 78%, rgba(24, 14, 19, 0.42), transparent 58%);
    transform: translateZ(-24px) scale(1.06);
}

.book-back,
.book-cover-front {
    position: absolute;
    inset: 0;
    border-radius: 22px;
    transform-origin: left center;
    backface-visibility: hidden;
}

.book-back {
    background:
        linear-gradient(180deg, rgba(248, 241, 227, 0.9), rgba(234, 221, 195, 0.9));
    border: 1px solid rgba(182, 150, 100, 0.28);
    box-shadow:
        inset 0 0 28px rgba(132, 102, 70, 0.14),
        inset 0 0 0 1px rgba(255, 248, 230, 0.3);
}

.book-cover-front {
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 252, 242, 0.2), transparent 42%),
        linear-gradient(170deg, rgba(104, 55, 77, 0.98), rgba(82, 40, 58, 0.99));
    border: 1px solid rgba(239, 208, 145, 0.34);
    box-shadow:
        inset 0 0 44px rgba(30, 14, 21, 0.36),
        0 14px 40px rgba(14, 7, 10, 0.35);
    transform: translateZ(8px);
    will-change: transform;
}

.book-cover-front::before,
.book-cover-front::after {
    content: "";
    position: absolute;
    border-radius: 18px;
}

.book-cover-front::before {
    inset: 18px;
    border: 1px solid rgba(246, 218, 164, 0.46);
    box-shadow: inset 0 0 0 1px rgba(77, 37, 55, 0.38);
}

.book-cover-front::after {
    width: 220px;
    height: 220px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(247, 227, 187, 0.46), rgba(247, 227, 187, 0.04) 72%);
}

.book-spine {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 26px;
    border-radius: 22px 0 0 22px;
    background:
        linear-gradient(180deg, rgba(239, 210, 136, 0.98), rgba(201, 160, 76, 0.96));
    box-shadow:
        inset -3px 0 8px rgba(90, 58, 26, 0.34),
        0 0 22px rgba(90, 50, 67, 0.34);
    transform: translateZ(9px);
}

.book-gloss {
    position: absolute;
    inset: 0;
    border-radius: 22px;
    background: linear-gradient(112deg, rgba(255, 255, 255, 0.32), transparent 34%);
    mix-blend-mode: screen;
    opacity: 0.42;
    transform: translateZ(10px);
}

.opening-desktop-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.opening-side {
    display: none;
    width: 100%;
    border-radius: 30px;
    padding: 26px 24px;
    border: 1px solid rgba(124, 63, 89, 0.2);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.82), rgba(247, 234, 221, 0.7)),
        radial-gradient(circle at 10% 15%, rgba(208, 140, 164, 0.22), transparent 42%);
    backdrop-filter: blur(6px);
    box-shadow: 0 18px 46px rgba(49, 30, 30, 0.16);
}

.opening-side-kicker {
    margin: 0;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #8f6e50;
    font-weight: 700;
}

.opening-side-title {
    margin-top: 10px;
    margin-bottom: 6px;
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    color: #5d3146;
}

.opening-side-subtitle {
    margin-bottom: 14px;
    font-size: 0.95rem;
    color: #705f5a;
    line-height: 1.65;
}

.opening-side-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.opening-side-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #4b3e39;
    line-height: 1.5;
    font-size: 0.9rem;
}

.opening-side-list i {
    margin-top: 2px;
    color: #7c3f59;
}

.opening-side-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 10px 16px;
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    background: linear-gradient(145deg, #7c3f59, #5f2f45);
    box-shadow: 0 12px 24px rgba(95, 47, 69, 0.3);
}

.opening-gate.is-leaving {
    animation: gateFadeOut 0.42s ease 1.16s forwards;
}

.opening-gate.is-leaving .book-opening {
    animation: bookOpeningShow 0.16s linear forwards;
}

.opening-gate.is-leaving .book-shell {
    animation: bookDepthSettle 1.24s cubic-bezier(0.22, 0.72, 0.26, 1) forwards;
}

.opening-gate.is-leaving .book-cover-front {
    animation: bookCoverOpen 1.24s cubic-bezier(0.2, 0.8, 0.24, 1) forwards;
}

.opening-gate.is-leaving .book-spine {
    animation: bookSpineFade 1.24s ease forwards;
}

.opening-gate.is-leaving .book-gloss {
    animation: bookGlossFade 1.24s ease forwards;
}

.opening-gate.is-leaving .opening-desktop-wrap {
    animation: openingContentFade 0.34s ease forwards;
}

.opening-phone-frame {
    width: min(430px, 93vw);
    min-height: min(780px, 94vh);
    border-radius: 56px;
    border: 6px solid #f4dce8;
    padding: 25px 20px 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: center;
    box-shadow: 0 28px 78px rgba(36, 21, 21, 0.35);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 239, 226, 0.92)),
        radial-gradient(circle at 50% 17%, rgba(99, 87, 65, 0.25), transparent 42%);
}

.opening-phone-frame::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 42px;
    border: 1px solid rgba(124, 63, 89, 0.24);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0)),
        repeating-linear-gradient(
            90deg,
            rgba(140, 122, 109, 0.09) 0,
            rgba(140, 122, 109, 0.09) 1px,
            transparent 1px,
            transparent 8px
        );
    pointer-events: none;
}

.opening-phone-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 88%, rgba(218, 147, 171, 0.3), transparent 28%),
        radial-gradient(circle at 82% 88%, rgba(218, 147, 171, 0.3), transparent 28%);
    pointer-events: none;
}

.phone-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 118px;
    height: 24px;
    border-radius: 0 0 18px 18px;
    background: rgba(0, 0, 0, 0.84);
    z-index: 12;
}

.opening-floral {
    position: absolute;
    bottom: 6px;
    width: 192px;
    height: 246px;
    z-index: 9;
    pointer-events: none;
    filter: drop-shadow(0 10px 12px rgba(71, 45, 49, 0.18));
    background: url("../images/floral-corner.svg") center/contain no-repeat;
}

.opening-floral::before,
.opening-floral::after {
    content: none;
}

.opening-floral-left {
    left: -64px;
    transform: rotate(-7deg);
}

.opening-floral-right {
    right: -64px;
    transform: scaleX(-1) rotate(-7deg);
}

.opening-arches {
    position: absolute;
    left: 50%;
    top: 74px;
    transform: translateX(-50%);
    width: min(92%, 360px);
    height: 154px;
    z-index: 7;
    pointer-events: none;
    background: url("../images/ornament-line.svg") center/contain no-repeat;
    opacity: 0.94;
}

.opening-arches::before,
.opening-arches::after {
    content: none;
}

.opening-video-wrap {
    position: absolute;
    inset: 12px;
    z-index: 16;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    border-radius: 42px;
    background: #120d0d;
    box-shadow: inset 0 0 0 1px rgba(255, 243, 219, 0.22);
    transition: opacity 0.36s ease;
}

.opening-video-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 5%, rgba(255, 232, 193, 0.34), rgba(255, 232, 193, 0) 44%),
        linear-gradient(180deg, rgba(23, 12, 12, 0.14), rgba(23, 12, 12, 0.3));
}

.opening-gate.is-playing-video .opening-video-wrap::after {
    opacity: 0;
}

.opening-gate-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: scale(1);
    transform-origin: center center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
}

.petal-rain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
}

.petal {
    position: absolute;
    top: -18px;
    width: 13px;
    height: 18px;
    border-radius: 75% 0 75% 0;
    background: linear-gradient(135deg, #f7c8d8, #c9829d);
    opacity: 0.78;
    animation: petalFall 10s linear infinite;
}

.opening-art-layer {
    position: absolute;
    left: 0;
    right: 0;
    pointer-events: none;
}

.opening-art-top {
    top: 0;
    height: 58%;
    background:
        linear-gradient(
            180deg,
            rgba(152, 138, 132, 0.32) 0%,
            rgba(152, 138, 132, 0.18) 34%,
            rgba(152, 138, 132, 0.06) 62%,
            rgba(152, 138, 132, 0) 100%
        ),
        radial-gradient(circle at 12% 22%, rgba(138, 98, 112, 0.2), transparent 44%),
        radial-gradient(circle at 88% 28%, rgba(138, 98, 112, 0.2), transparent 44%);
}

.opening-art-bottom {
    bottom: 0;
    height: 35%;
    background:
        radial-gradient(circle at 20% 88%, rgba(174, 104, 126, 0.5), transparent 40%),
        radial-gradient(circle at 80% 92%, rgba(174, 104, 126, 0.5), transparent 40%),
        linear-gradient(180deg, transparent 0%, rgba(171, 157, 132, 0.2) 100%);
}

.opening-content {
    position: relative;
    z-index: 11;
    margin-top: 72px;
    padding: 14px 16px 24px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 648px;
}

.opening-kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.74rem;
    color: #735d51;
    font-weight: 700;
}

.opening-date {
    margin: 10px 0 0;
    font-family: "Cinzel", serif;
    letter-spacing: 1.4px;
    font-size: 0.8rem;
    color: #9a7a50;
}

.opening-couple {
    margin: 26px 0 0;
    font-family: "Great Vibes", cursive;
    font-size: clamp(2.4rem, 8.8vw, 4.05rem);
    line-height: 0.97;
    color: #6d3c52;
    text-shadow: 0 4px 10px rgba(109, 60, 82, 0.1);
}

.opening-couple span {
    display: block;
    margin: 8px 0 4px;
    font-size: 0.74em;
    color: #82566a;
}

.opening-divider {
    width: 148px;
    height: 2px;
    margin-top: 14px;
    background: linear-gradient(90deg, transparent, rgba(128, 88, 58, 0.82), transparent);
}

.opening-guest-wrap {
    margin: auto auto 0;
    max-width: 254px;
    padding: 14px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.67);
    border: 1px solid rgba(114, 91, 76, 0.25);
    box-shadow: 0 10px 24px rgba(56, 38, 31, 0.14);
}

.opening-label {
    margin: 0;
    color: #7f7168;
    font-size: 0.82rem;
    letter-spacing: 0.6px;
}

.opening-guest {
    margin: 7px 0 0;
    color: #5b3949;
    font-size: 1.2rem;
    font-weight: 700;
}

.opening-hint {
    margin: 12px 0 0;
    color: #856f63;
    font-size: 0.78rem;
    letter-spacing: 0.2px;
}

.btn-open-invitation {
    margin-top: 10px;
    min-width: 200px;
    color: #fff;
    background: linear-gradient(140deg, #734760, #5f324b);
    border-radius: 999px;
    box-shadow: 0 14px 26px rgba(95, 50, 75, 0.33);
}

.btn-open-invitation:hover {
    color: #fff;
    transform: translateY(-2px);
}

.btn-open-invitation:disabled {
    opacity: 0.72;
    cursor: wait;
}

.opening-stone-path {
    position: absolute;
    left: 50%;
    bottom: -24px;
    transform: translateX(-50%);
    width: 49%;
    height: 126px;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(146, 130, 117, 0.35) 0,
            rgba(146, 130, 117, 0.35) 8px,
            rgba(201, 188, 171, 0.25) 8px,
            rgba(201, 188, 171, 0.25) 16px
        );
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    opacity: 0.65;
}

.main-content {
    position: relative;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

body.locked-scroll {
    overflow: hidden;
}

body.lightbox-open {
    overflow: hidden;
}

body.locked-scroll .main-nav {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-110%);
}

.main-nav {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

body.locked-scroll .main-content {
    opacity: 0.12;
    transform: scale(0.985);
}

.music-toggle {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1110;
    border: 0;
    border-radius: 999px;
    padding: 11px 14px;
    background: rgba(25, 18, 18, 0.92);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    font-weight: 600;
    box-shadow: 0 14px 30px rgba(22, 20, 18, 0.32);
}

.music-toggle:hover {
    background: rgba(15, 11, 11, 0.95);
}

.music-toggle.is-paused {
    background: rgba(65, 57, 55, 0.93);
}

.music-toggle i {
    animation: pulseSound 2.2s ease infinite;
}

.invitation-page {
    padding-top: 32px;
}
.journey-map {
    position: fixed;
    top: 108px;
    bottom: 96px;
    left: 12px;
    width: 26px;
    z-index: 940;
    pointer-events: none;
}
.journey-line,
.journey-progress {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    border-radius: 999px;
}
.journey-line {
    inset: 0;
    background: linear-gradient(180deg, rgba(124, 63, 89, 0.12), rgba(124, 63, 89, 0.32), rgba(207, 178, 122, 0.1));
}
.journey-progress {
    bottom: 0;
    height: 0;
    background: linear-gradient(180deg, rgba(207, 178, 122, 0.84), rgba(124, 63, 89, 0.9));
    box-shadow: 0 0 12px rgba(124, 63, 89, 0.26);
    transition: height 0.28s ease;
}
.journey-bloom {
    position: absolute;
    left: 50%;
    top: 0;
    width: 22px;
    height: 22px;
    transform: translate(-50%, -50%);
    transition: top 0.28s ease;
    filter: drop-shadow(0 4px 8px rgba(79, 42, 58, 0.24));
}
.journey-bloom::before,
.journey-bloom::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
}
.journey-bloom::before {
    background:
        radial-gradient(circle at 50% 22%, #f7d2df 0 30%, transparent 31%),
        radial-gradient(circle at 78% 50%, #efbfd0 0 30%, transparent 31%),
        radial-gradient(circle at 50% 78%, #ebb3c6 0 30%, transparent 31%),
        radial-gradient(circle at 22% 50%, #efbfd0 0 30%, transparent 31%);
}
.journey-bloom::after {
    inset: 6px;
    background: radial-gradient(circle, #a85f7c 0 64%, transparent 65%);
}

.floating-bloom {
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.46;
    filter: blur(0.4px);
    animation: bloomFloat 11s ease-in-out infinite;
}

.bloom-left {
    left: -90px;
    top: 170px;
    background:
        radial-gradient(circle at 28% 30%, rgba(208, 140, 164, 0.86), transparent 40%),
        radial-gradient(circle at 65% 40%, rgba(63, 103, 95, 0.55), transparent 44%),
        radial-gradient(circle at 52% 68%, rgba(207, 178, 122, 0.76), transparent 42%);
}

.bloom-right {
    right: -90px;
    top: 650px;
    animation-delay: -3.5s;
    background:
        radial-gradient(circle at 28% 30%, rgba(207, 178, 122, 0.75), transparent 40%),
        radial-gradient(circle at 65% 36%, rgba(208, 140, 164, 0.78), transparent 42%),
        radial-gradient(circle at 48% 72%, rgba(63, 103, 95, 0.6), transparent 44%);
}

.section-block {
    padding: 30px 0 46px;
    position: relative;
}

.section-block > .container {
    position: relative;
    z-index: 1;
}

.section-rhythm-a > .container::after,
.section-rhythm-b > .container::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 38px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

.section-rhythm-a > .container::after {
    top: -18px;
    right: -20px;
    background: radial-gradient(circle at 35% 35%, rgba(207, 178, 122, 0.42), rgba(207, 178, 122, 0));
}

.section-rhythm-b > .container::after {
    bottom: -22px;
    left: -22px;
    background: radial-gradient(circle at 65% 65%, rgba(124, 63, 89, 0.24), rgba(124, 63, 89, 0));
}

.section-rose > .container,
.section-ivory > .container,
.section-sage > .container {
    border-radius: 34px;
    padding: 30px 26px 20px;
    border: 1px solid rgba(144, 104, 127, 0.2);
    box-shadow: 0 12px 32px rgba(42, 27, 26, 0.08);
}

.section-rose > .container {
    background:
        radial-gradient(circle at 8% 8%, rgba(218, 157, 177, 0.3), transparent 36%),
        radial-gradient(circle at 88% 82%, rgba(255, 203, 220, 0.18), transparent 34%),
        linear-gradient(160deg, rgba(255, 249, 252, 0.94), rgba(247, 228, 238, 0.9));
}

.section-ivory > .container {
    background:
        radial-gradient(circle at 92% 10%, rgba(247, 204, 220, 0.22), transparent 34%),
        radial-gradient(circle at 10% 82%, rgba(209, 148, 170, 0.22), transparent 38%),
        linear-gradient(160deg, rgba(255, 250, 250, 0.94), rgba(248, 233, 240, 0.9));
}

.section-sage > .container {
    background:
        radial-gradient(circle at 10% 14%, rgba(208, 140, 164, 0.24), transparent 35%),
        radial-gradient(circle at 84% 82%, rgba(247, 196, 214, 0.2), transparent 36%),
        linear-gradient(160deg, rgba(255, 251, 253, 0.94), rgba(243, 228, 236, 0.9));
}

.section-arc-intro > .container {
    border-color: rgba(187, 150, 94, 0.3);
    box-shadow: 0 16px 38px rgba(57, 38, 27, 0.11);
}

.section-arc-warm > .container {
    border-color: rgba(167, 100, 126, 0.28);
}

.section-arc-soft > .container {
    border-color: rgba(170, 125, 147, 0.22);
}

.section-arc-peak > .container {
    border-color: rgba(95, 47, 69, 0.26);
    box-shadow: 0 18px 40px rgba(57, 32, 39, 0.14);
}

.section-arc-intimate > .container {
    border-color: rgba(63, 103, 95, 0.3);
    box-shadow: 0 16px 40px rgba(33, 52, 48, 0.12);
}

.section-gallery-luxury > .container {
    position: relative;
    overflow: visible;
    border-color: rgba(152, 113, 127, 0.28);
    box-shadow: 0 20px 42px rgba(52, 31, 35, 0.12);
    background:
        radial-gradient(circle at 88% 11%, rgba(207, 170, 109, 0.23), transparent 34%),
        radial-gradient(circle at 12% 85%, rgba(170, 116, 137, 0.18), transparent 36%),
        linear-gradient(160deg, rgba(255, 253, 249, 0.94), rgba(247, 233, 240, 0.84));
}

.section-gallery-luxury > .container::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.24) 0 1px, transparent 1px 4px),
        repeating-linear-gradient(180deg, rgba(145, 116, 98, 0.05) 0 1px, transparent 1px 6px);
    opacity: 0.22;
    pointer-events: none;
}

.section-heading-gallery {
    margin-bottom: 34px;
}

.section-heading-gallery .section-kicker {
    letter-spacing: 3px;
    color: #7a5660;
}

.section-heading-gallery h2 {
    font-size: clamp(2.2rem, 4.8vw, 3.5rem);
    color: #2f2126;
}

.gallery-luxury-note {
    margin: 12px auto 0;
    max-width: 520px;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.16rem;
    color: #7d6870;
    letter-spacing: 0.3px;
}

.section-block::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 63, 89, 0.5), transparent);
}

.section-block::before,
.hero-section::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 38px;
    height: 38px;
    transform: translate(-50%, -50%) scale(0.2) rotate(-10deg);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    background:
        radial-gradient(circle at 50% 22%, var(--divider-petal-a, #f8d8e6) 0 30%, transparent 31%),
        radial-gradient(circle at 78% 50%, var(--divider-petal-b, #efb7cf) 0 30%, transparent 31%),
        radial-gradient(circle at 50% 78%, var(--divider-petal-c, #e491b6) 0 30%, transparent 31%),
        radial-gradient(circle at 22% 50%, var(--divider-petal-b, #efb7cf) 0 30%, transparent 31%),
        radial-gradient(circle at 50% 50%, var(--divider-center, #a35a7f) 0 18%, transparent 19%);
    filter: drop-shadow(0 6px 10px rgba(90, 52, 70, 0.2));
}

.section-block::before {
    top: 0;
}

.hero-section::after {
    bottom: -2px;
}

.section-block.divider-bloomed::before,
.hero-section.divider-bloomed::after {
    animation: dividerFlowerBloom 0.95s cubic-bezier(0.24, 0.78, 0.18, 1) forwards;
}

section[data-bloom-type="thumbelina"] {
    --divider-petal-a: #fde8f2;
    --divider-petal-b: #f9c7df;
    --divider-petal-c: #f59ec4;
    --divider-center: #f2c770;
}

section[data-bloom-type="rose"] {
    --divider-petal-a: #f6bdcf;
    --divider-petal-b: #ee8eac;
    --divider-petal-c: #d95b85;
    --divider-center: #8f3757;
}

section[data-bloom-type="peony"] {
    --divider-petal-a: #f9d2e7;
    --divider-petal-b: #f3b0d2;
    --divider-petal-c: #e986b6;
    --divider-center: #ab4f7d;
}

section[data-bloom-type="jasmine"] {
    --divider-petal-a: #fff7df;
    --divider-petal-b: #fff1c4;
    --divider-petal-c: #ffdf9f;
    --divider-center: #d7a957;
}

section[data-bloom-type="daisy"] {
    --divider-petal-a: #fffdf7;
    --divider-petal-b: #fff7dd;
    --divider-petal-c: #ffefbf;
    --divider-center: #d5a03b;
}

section[data-bloom-type="camellia"] {
    --divider-petal-a: #f7d9e5;
    --divider-petal-b: #f0bbcf;
    --divider-petal-c: #e79cb9;
    --divider-center: #9f4f72;
}

section[data-bloom-type="lotus"] {
    --divider-petal-a: #f9e1ef;
    --divider-petal-b: #f4c8df;
    --divider-petal-c: #e8a7ca;
    --divider-center: #975a86;
}

section[data-bloom-type="tulip"] {
    --divider-petal-a: #f8c8d6;
    --divider-petal-b: #ee97ae;
    --divider-petal-c: #d66b8c;
    --divider-center: #874664;
}
.section-bloomed > .container {
    animation: sectionBloomPulse 0.82s ease;
}

.scroll-bloom,
.section-flower-burst {
    --petal-a: #f5d3df;
    --petal-b: #f3bcd0;
    --petal-c: #ecabc2;
    --center-core: rgba(162, 91, 123, 0.9);
}

.scroll-bloom {
    position: fixed;
    width: 18px;
    height: 18px;
    z-index: 930;
    pointer-events: none;
    animation: scrollBloomFloat 1.2s cubic-bezier(0.22, 0.8, 0.24, 1) forwards;
    transform: rotate(var(--bloom-rotation, 0deg));
}

.boundary-bloom {
    position: fixed;
    width: 64px;
    height: 64px;
    z-index: 980;
    pointer-events: none;
    transform: translate(-50%, -50%) rotate(var(--bloom-rotation, 0deg));
    animation: boundaryBloomPop 1.2s cubic-bezier(0.22, 0.84, 0.2, 1) forwards;
}

.boundary-bloom::before,
.boundary-bloom::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.boundary-bloom::before {
    background:
        radial-gradient(circle at 50% 20%, var(--petal-a) 0 30%, transparent 31%),
        radial-gradient(circle at 78% 50%, var(--petal-b) 0 30%, transparent 31%),
        radial-gradient(circle at 50% 80%, var(--petal-c) 0 30%, transparent 31%),
        radial-gradient(circle at 22% 50%, var(--petal-b) 0 30%, transparent 31%);
}

.boundary-bloom::after {
    inset: 18px;
    background: radial-gradient(circle, var(--center-core) 0 65%, transparent 66%);
}
.scroll-bloom::before,
.scroll-bloom::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
}
.scroll-bloom::before {
    background:
        radial-gradient(circle at 50% 22%, var(--petal-a) 0 30%, transparent 31%),
        radial-gradient(circle at 78% 50%, var(--petal-b) 0 30%, transparent 31%),
        radial-gradient(circle at 50% 78%, var(--petal-c) 0 30%, transparent 31%),
        radial-gradient(circle at 22% 50%, var(--petal-b) 0 30%, transparent 31%);
}
.scroll-bloom::after {
    inset: 5px;
    background: radial-gradient(circle, var(--center-core) 0 62%, transparent 63%);
}

.section-flower-burst {
    position: absolute;
    width: 46px;
    height: 46px;
    transform: translate(-50%, -50%) rotate(var(--bloom-rotation, 0deg));
    z-index: 2;
    pointer-events: none;
    animation: sectionFlowerBloom 1.15s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.section-flower-burst::before,
.section-flower-burst::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.section-flower-burst::before {
    background:
        radial-gradient(circle at 50% 22%, var(--petal-a) 0 30%, transparent 31%),
        radial-gradient(circle at 78% 50%, var(--petal-b) 0 30%, transparent 31%),
        radial-gradient(circle at 50% 78%, var(--petal-c) 0 30%, transparent 31%),
        radial-gradient(circle at 22% 50%, var(--petal-b) 0 30%, transparent 31%);
}

.section-flower-burst::after {
    inset: 12px;
    background: radial-gradient(circle, var(--center-core) 0 65%, transparent 66%);
}

.bloom-thumbelina {
    --petal-a: #fde8f2;
    --petal-b: #f9c7df;
    --petal-c: #f59ec4;
    --center-core: #f2c770;
}

.bloom-rose {
    --petal-a: #f6bdcf;
    --petal-b: #ee8eac;
    --petal-c: #d95b85;
    --center-core: #8f3757;
}

.bloom-peony {
    --petal-a: #f9d2e7;
    --petal-b: #f3b0d2;
    --petal-c: #e986b6;
    --center-core: #ab4f7d;
}

.bloom-jasmine {
    --petal-a: #fff7df;
    --petal-b: #fff1c4;
    --petal-c: #ffdf9f;
    --center-core: #d7a957;
}

.bloom-daisy {
    --petal-a: #fffdf7;
    --petal-b: #fff7dd;
    --petal-c: #ffefbf;
    --center-core: #d5a03b;
}

.bloom-camellia {
    --petal-a: #f7d9e5;
    --petal-b: #f0bbcf;
    --petal-c: #e79cb9;
    --center-core: #9f4f72;
}

.bloom-lotus {
    --petal-a: #f9e1ef;
    --petal-b: #f4c8df;
    --petal-c: #e8a7ca;
    --center-core: #975a86;
}

.bloom-tulip {
    --petal-a: #f8c8d6;
    --petal-b: #ee97ae;
    --petal-c: #d66b8c;
    --center-core: #874664;
}

.section-heading {
    margin-bottom: 28px;
    position: relative;
}

.section-kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2.4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #875f73;
}

.section-heading h2 {
    margin-top: 8px;
    margin-bottom: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.2rem, 5.1vw, 3.55rem);
    line-height: 0.94;
    font-weight: 700;
}

.section-heading::after {
    content: "";
    display: block;
    width: 62px;
    height: 8px;
    margin: 12px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(124, 63, 89, 0.95), rgba(207, 178, 122, 0.95));
}

.hero-section {
    padding-top: 12px;
}

.hero-card {
    max-width: 930px;
    margin: 0 auto;
    padding: clamp(30px, 6.1vw, 72px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(119, 98, 84, 0.28);
    background:
        linear-gradient(160deg, rgba(255, 251, 253, 0.94), rgba(249, 234, 243, 0.9)),
        radial-gradient(circle at 18% 20%, rgba(247, 201, 219, 0.22), transparent 42%),
        radial-gradient(circle at 80% 88%, rgba(208, 140, 164, 0.28), transparent 40%);
    box-shadow: var(--shadow-bold);
    position: relative;
    overflow: hidden;
}

.hero-card > * {
    position: relative;
    z-index: 1;
}

.hero-monogram {
    position: absolute;
    inset: 18px 0 auto;
    display: flex;
    justify-content: center;
    gap: 16px;
    font-family: "Cinzel", serif;
    font-size: clamp(4rem, 14vw, 8.4rem);
    letter-spacing: 4px;
    color: rgba(124, 63, 89, 0.09);
    pointer-events: none;
    z-index: 0;
}

.hero-card::before,
.hero-card::after {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    pointer-events: none;
}

.hero-card::before {
    left: -54px;
    top: -64px;
    background: radial-gradient(circle, rgba(208, 140, 164, 0.28), rgba(208, 140, 164, 0));
}

.hero-card::after {
    right: -55px;
    bottom: -54px;
    background: radial-gradient(circle, rgba(63, 103, 95, 0.2), rgba(63, 103, 95, 0));
}

.hero-kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2.2px;
    font-size: 0.76rem;
    color: #6f5e58;
    font-weight: 700;
}

.hero-name {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-weight: 700;
    font-size: clamp(2.4rem, 6.3vw, 4.8rem);
    line-height: 0.92;
}

.hero-ampersand {
    display: inline-block;
    margin: 10px 0 8px;
    color: var(--brand);
    font-family: "Great Vibes", cursive;
    font-size: clamp(2.4rem, 7.4vw, 4.6rem);
}

.hero-signature {
    margin-top: 4px;
    margin-bottom: 0;
    font-family: "Great Vibes", cursive;
    color: #9a6f3e;
    font-size: 1.15rem;
}

.hero-prayer {
    margin: 20px auto 0;
    max-width: 620px;
    color: #78626e;
    line-height: 1.8;
    font-size: 1.03rem;
}

.hero-meta {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-chip {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 16px;
    color: #4b3542;
    font-size: 0.87rem;
    font-weight: 600;
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.hero-actions {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.btn {
    border-radius: 999px;
    border: 0;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 11px 20px;
    transition: transform var(--motion-interact) ease, box-shadow var(--motion-interact) ease, background var(--motion-interact) ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-elegant {
    color: #fff;
    background: linear-gradient(145deg, var(--brand), var(--brand-deep));
    box-shadow: 0 12px 24px rgba(124, 63, 89, 0.3);
}

.btn-elegant:hover {
    color: #fff;
    box-shadow: 0 15px 29px rgba(124, 63, 89, 0.38);
}

.btn-outline-elegant {
    color: var(--sage);
    background: #fff;
    border: 1px solid rgba(63, 103, 95, 0.45);
}

.btn-outline-elegant:hover {
    color: #fff;
    background: var(--sage);
}

.story-grid,
.event-grid,
.location-grid {
    display: grid;
    gap: 16px;
}

.story-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
}

.story-card,
.event-card,
.location-card,
.rsvp-card {
    background: var(--surface);
    border: 1px solid rgba(119, 98, 84, 0.2);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(5px);
    box-shadow: var(--shadow-soft);
}

.story-card {
    padding: 26px 24px;
    position: relative;
    overflow: hidden;
}

.story-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(207, 178, 122, 0.09), transparent 38%);
    pointer-events: none;
}

.story-card h3 {
    margin-bottom: 10px;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.72rem;
}

.story-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.82;
}

.story-card--chapter {
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.story-card--chapter:nth-child(2) {
    transform: translateY(18px);
}

.story-card--chapter:nth-child(3) {
    transform: translateY(6px);
}

.story-card--chapter:hover {
    transform: translateY(-5px);
    border-color: rgba(124, 63, 89, 0.36);
    box-shadow: 0 20px 36px rgba(53, 32, 35, 0.16);
}

.story-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.story-chapter {
    font-family: "Cinzel", serif;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    font-size: 0.73rem;
    color: #7c5b42;
}

.story-chips {
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
}

.story-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    border: 1px solid rgba(124, 63, 89, 0.22);
    background: rgba(255, 255, 255, 0.72);
    color: #6a4d5c;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.story-visual {
    display: grid;
    gap: 10px;
}

.story-photo-shell {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
}

.story-photo {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(124, 63, 89, 0.22);
    box-shadow: 0 8px 22px rgba(56, 34, 39, 0.13);
}

.story-photo-placeholder {
    min-height: 138px;
    border-radius: 16px;
    border: 1px dashed rgba(124, 63, 89, 0.42);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #7f5f53;
    background:
        linear-gradient(140deg, rgba(255, 255, 255, 0.9), rgba(248, 236, 232, 0.74)),
        repeating-linear-gradient(
            45deg,
            rgba(124, 63, 89, 0.05) 0,
            rgba(124, 63, 89, 0.05) 8px,
            rgba(255, 255, 255, 0) 8px,
            rgba(255, 255, 255, 0) 16px
        );
}

.story-photo-placeholder i {
    font-size: 1.3rem;
    color: #8a5f6d;
}

.story-photo-placeholder span {
    font-size: 0.84rem;
    font-weight: 600;
}

.story-quote {
    margin: 0;
    padding: 9px 12px;
    border-left: 3px solid rgba(124, 63, 89, 0.58);
    background: rgba(255, 255, 255, 0.62);
    border-radius: 0 12px 12px 0;
    color: #5a4349;
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 1.08rem;
    line-height: 1.4;
}

.story-points {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.story-points li {
    position: relative;
    padding-left: 16px;
    color: #705c5e;
    line-height: 1.6;
    font-size: 0.93rem;
}

.story-points li::before {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    left: 0;
    top: 0.62em;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #7c3f59, #d2b37a);
}

.story-points strong {
    color: #4a3640;
    font-weight: 700;
}

.section-signature > .container {
    overflow: hidden;
}

.signature-card {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 46px);
    border-radius: 28px;
    border: 1px solid rgba(124, 63, 89, 0.22);
    background:
        radial-gradient(circle at 12% 18%, rgba(207, 178, 122, 0.2), transparent 48%),
        radial-gradient(circle at 84% 80%, rgba(124, 63, 89, 0.16), transparent 50%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(252, 240, 246, 0.92));
    box-shadow: var(--shadow-soft);
}

.signature-card h2 {
    margin-top: 8px;
    margin-bottom: 12px;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2rem, 4.5vw, 3rem);
}

.signature-quote {
    margin: 0 auto;
    max-width: 620px;
    color: #5a4a52;
    line-height: 1.8;
    font-size: 1rem;
}

.signature-ref {
    margin-top: 14px;
    margin-bottom: 0;
    font-family: "Cinzel", serif;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #7a5e68;
    font-size: 0.82rem;
}

.event-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.event-card {
    padding: 28px;
    border-left: 5px solid var(--brand);
}

.event-card-alt {
    border-left-color: var(--sage);
}

.event-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 1.12rem;
    color: var(--brand);
    background: rgba(124, 63, 89, 0.12);
}

.event-card-alt .event-icon {
    color: var(--sage);
    background: rgba(63, 103, 95, 0.13);
}

.event-card h3 {
    margin-bottom: 7px;
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
}

.event-datetime {
    margin: 0;
    color: #312726;
    font-weight: 700;
}

.event-location {
    margin-top: 8px;
    margin-bottom: 0;
    color: var(--muted);
}

.event-agenda {
    margin-top: 24px;
    display: grid;
    gap: 10px;
}

.agenda-item {
    display: grid;
    grid-template-columns: minmax(110px, 150px) 1fr;
    align-items: start;
    gap: 12px;
    border: 1px solid rgba(124, 63, 89, 0.16);
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(255, 252, 253, 0.92), rgba(250, 238, 244, 0.84));
    box-shadow: 0 9px 18px rgba(48, 30, 35, 0.08);
    padding: 12px 14px;
}

.agenda-time {
    margin: 4px 0 0;
    font-family: "Cinzel", serif;
    font-size: 0.76rem;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: #7b6170;
}

.agenda-main h3 {
    margin: 0 0 4px;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.5rem;
}

.agenda-note {
    margin: 0;
    color: var(--muted);
    line-height: 1.62;
}

.countdown-wrap {
    position: relative;
}

.countdown-wrap::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 10%;
    transform: translateX(-50%);
    width: 56%;
    max-width: 570px;
    height: 80%;
    border-radius: var(--radius-xl);
    background: linear-gradient(150deg, rgba(247, 204, 220, 0.2), rgba(124, 63, 89, 0.14));
    z-index: -1;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.countdown-box {
    border-radius: var(--radius-lg);
    padding: 22px 12px;
    text-align: center;
    border: 1px solid rgba(119, 98, 84, 0.2);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(251, 236, 244, 0.9));
    box-shadow: var(--shadow-soft);
}

.countdown-value {
    display: block;
    font-family: "Cinzel", serif;
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    line-height: 1;
    color: #3b2f2d;
}

.countdown-label {
    display: block;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    font-size: 0.72rem;
    color: var(--muted);
}

.gallery-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 8px 14px;
    margin: 0 -6px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
}

.gallery-grid::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    margin: 0;
    grid-column: span 1;
    flex: 0 0 clamp(250px, 24vw, 340px);
    min-width: clamp(250px, 24vw, 340px);
    scroll-snap-align: center;
    position: relative;
    transform-origin: center 32%;
    transition: transform 0.34s var(--ease-enter);
}

.gallery-item:nth-child(3n + 1) {
    flex-basis: clamp(360px, 45vw, 560px);
    min-width: clamp(360px, 45vw, 560px);
}

.gallery-frame {
    position: relative;
    border-radius: 12px;
    padding: 12px 12px 58px;
    background:
        linear-gradient(150deg, #fffef9, #f8efe5) padding-box,
        linear-gradient(140deg, rgba(191, 149, 165, 0.5), rgba(203, 171, 117, 0.5)) border-box;
    border: 1px solid transparent;
    box-shadow:
        0 16px 30px rgba(48, 30, 35, 0.18),
        0 2px 0 rgba(255, 255, 255, 0.62) inset;
    overflow: hidden;
    transition: box-shadow 0.32s ease;
}

.gallery-open {
    appearance: none;
    border: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    border-radius: 8px;
    background: transparent;
    display: block;
    cursor: zoom-in;
}

.gallery-frame::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 50%;
    width: 88px;
    height: 24px;
    transform: translateX(-50%) rotate(-3deg);
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(255, 246, 220, 0.92), rgba(245, 219, 173, 0.82));
    box-shadow: 0 7px 14px rgba(57, 37, 29, 0.16);
    pointer-events: none;
    z-index: 2;
}

.gallery-frame::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    top: 12px;
    bottom: 58px;
    border-radius: 8px;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.12), transparent 36%),
        radial-gradient(circle at 82% 80%, rgba(255, 255, 255, 0.09), transparent 38%),
        repeating-linear-gradient(45deg, rgba(79, 56, 44, 0.03) 0 1px, transparent 1px 3px);
    mix-blend-mode: soft-light;
    pointer-events: none;
    z-index: 1;
}

.gallery-placeholder {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 8px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    position: relative;
    overflow: hidden;
}

.gallery-placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.22), transparent 45%);
}

.gallery-placeholder i {
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

.gallery-placeholder span {
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.gallery-placeholder:hover {
    transform: scale(1.02);
}

.gallery-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(102, 66, 70, 0.16);
    filter: saturate(1.04) contrast(1.03) brightness(0.99);
    transition: transform 0.42s ease;
    position: relative;
    z-index: 0;
}

.gallery-item:nth-child(3n + 1) .gallery-photo,
.gallery-item:nth-child(3n + 1) .gallery-placeholder {
    aspect-ratio: 5 / 4;
}

.gallery-item:nth-child(3n + 2) .gallery-photo,
.gallery-item:nth-child(3n + 2) .gallery-placeholder {
    aspect-ratio: 4 / 5;
}

.gallery-item:nth-child(3n + 3) .gallery-photo,
.gallery-item:nth-child(3n + 3) .gallery-placeholder {
    aspect-ratio: 4 / 5;
}

.gallery-item:nth-child(odd) {
    transform: rotate(-1.6deg);
}

.gallery-item:nth-child(even) {
    transform: rotate(1.35deg);
}

.gallery-item:nth-child(3n) {
    transform: rotate(-0.7deg);
}

.gallery-item:nth-child(2n) .gallery-frame::before {
    transform: translateX(-50%) rotate(2.6deg);
}

.gallery-item:hover {
    transform: translateY(-7px) rotate(0deg);
}

.gallery-item:hover .gallery-frame {
    box-shadow:
        0 24px 40px rgba(42, 25, 27, 0.24),
        0 2px 0 rgba(255, 255, 255, 0.7) inset;
}

.gallery-item:hover .gallery-photo,
.gallery-item:hover .gallery-placeholder {
    transform: scale(1.03);
}

.gallery-caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 14px;
    margin: 0;
    text-align: center;
    font-family: "Cinzel", serif;
    font-size: 0.88rem;
    letter-spacing: 2.4px;
    color: #77505e;
    text-transform: uppercase;
}

.gallery-caption::after {
    content: "";
    display: block;
    width: 48px;
    height: 1px;
    margin: 6px auto 0;
    background: linear-gradient(90deg, transparent, rgba(167, 133, 79, 0.82), transparent);
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1410;
    background: rgba(20, 14, 16, 0.88);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px;
}

.gallery-lightbox.is-open {
    display: flex;
}

.gallery-lightbox-figure {
    margin: 0;
    max-width: min(920px, 92vw);
    width: min(920px, 92vw);
    text-align: center;
}

.gallery-lightbox-image {
    width: 100%;
    max-height: min(72vh, 760px);
    border-radius: 18px;
    object-fit: contain;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(15, 9, 10, 0.8);
}

.gallery-lightbox-caption {
    margin-top: 12px;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.9);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.2rem;
}

.gallery-lightbox-counter {
    margin: 0;
    font-family: "Cinzel", serif;
    letter-spacing: 1px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.82);
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    background: rgba(31, 22, 24, 0.66);
    border-radius: 999px;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover {
    transform: translateY(-1px);
    background: rgba(45, 31, 34, 0.82);
}

.gallery-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
}

.palette-1 {
    background: linear-gradient(145deg, #7d415b, #af6e85);
}

.palette-2 {
    background: linear-gradient(145deg, #4f6d63, #719b8f);
}

.palette-3 {
    background: linear-gradient(145deg, #8c6642, #be8d5f);
}

.palette-4 {
    background: linear-gradient(145deg, #6b3a3f, #a95d66);
}

.palette-5 {
    background: linear-gradient(145deg, #496278, #6f8ea8);
}

.palette-6 {
    background: linear-gradient(145deg, #6f4d2f, #a9794c);
}

.location-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.location-card {
    padding: 28px;
}

.location-card h3 {
    margin-bottom: 8px;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.9rem;
}

.location-card h3 i {
    margin-right: 8px;
    color: var(--brand);
}

.location-card p {
    margin-bottom: 14px;
    color: var(--muted);
    line-height: 1.72;
}

.location-map {
    margin-bottom: 14px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(119, 98, 84, 0.26);
    box-shadow: 0 12px 26px rgba(37, 25, 24, 0.16);
    background: #fff;
}

.location-map iframe {
    width: 100%;
    height: 220px;
    border: 0;
    display: block;
}

.location-card-soft {
    background:
        linear-gradient(148deg, rgba(255, 255, 255, 0.86), rgba(224, 241, 235, 0.72)),
        radial-gradient(circle at 80% 15%, rgba(208, 140, 164, 0.2), transparent 42%);
}

.qr-placeholder {
    border: 1px dashed rgba(63, 103, 95, 0.5);
    border-radius: var(--radius-md);
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--sage);
    padding: 14px;
}

.qr-placeholder i {
    font-size: 2rem;
}

.qr-link {
    display: block;
    max-width: 250px;
    margin: 0 auto;
}

.qr-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    padding: 10px;
    background: #fff;
    border: 1px solid rgba(63, 103, 95, 0.36);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 26px rgba(37, 25, 24, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.qr-image:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(37, 25, 24, 0.18);
}

.rsvp-card {
    padding: clamp(24px, 4vw, 40px);
    background:
        linear-gradient(150deg, rgba(255, 252, 246, 0.9), rgba(246, 235, 223, 0.84)),
        radial-gradient(circle at 18% 20%, rgba(207, 178, 122, 0.2), transparent 46%);
    position: relative;
    overflow: hidden;
}

.rsvp-card::after {
    content: "";
    position: absolute;
    inset: -32% -10%;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
    transform: translateX(-120%) rotate(6deg);
    opacity: 0;
    pointer-events: none;
}

.rsvp-card.is-celebrating::after {
    opacity: 1;
    animation: rsvpShimmer 1.1s ease;
}

.rsvp-personal-note {
    margin-top: -6px;
    margin-bottom: 18px;
    color: #6c5560;
    font-size: 0.98rem;
    line-height: 1.65;
}

.rsvp-form {
    max-width: 860px;
    margin: 0 auto;
}

.form-label {
    color: #423734;
    font-size: 0.88rem;
    font-weight: 600;
}

.form-control,
.form-select {
    border-radius: 12px;
    border: 1px solid rgba(119, 98, 84, 0.34);
    background: #fff;
    padding: 10px 12px;
    font-size: 0.95rem;
    min-height: 46px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.19rem rgba(124, 63, 89, 0.18);
}

.btn-submit {
    min-width: 220px;
}

.alert {
    border-radius: 12px;
    border: 0;
    font-size: 0.92rem;
    padding: 12px 16px;
}

.rsvp-social-proof {
    margin-top: 18px;
    margin-bottom: 0;
    color: #6f565f;
    font-size: 0.92rem;
    letter-spacing: 0.1px;
    transition: color 0.3s ease;
}

.rsvp-social-proof.is-updated {
    color: #5f3e4d;
}

.rsvp-social-proof i {
    color: #9a4f6d;
    margin-right: 4px;
}

.rsvp-social-count {
    font-family: "Cinzel", serif;
    color: #4d2f3e;
    font-weight: 700;
}

.rsvp-social-proof.is-updated .rsvp-social-count {
    animation: counterPop 0.5s ease;
}

.wish-wall {
    margin-top: 22px;
    border-top: 1px dashed rgba(124, 63, 89, 0.26);
    padding-top: 18px;
}

.wish-wall-head h3 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.65rem;
    color: #4f3441;
}

.wish-wall-head p {
    margin: 2px 0 0;
    color: #7f6874;
    font-size: 0.9rem;
}

.wish-list {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.wish-item {
    border: 1px solid rgba(124, 63, 89, 0.17);
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(250, 241, 246, 0.86));
    padding: 11px 13px;
    box-shadow: 0 8px 18px rgba(52, 33, 39, 0.08);
}

.wish-item-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
    margin-bottom: 4px;
}

.wish-item-head h4 {
    margin: 0;
    font-size: 1rem;
    color: #4b2f3c;
    font-weight: 700;
}

.wish-item-head time {
    font-size: 0.76rem;
    color: #8e7783;
    white-space: nowrap;
}

.wish-item p {
    margin: 0;
    color: #66505a;
    line-height: 1.65;
    white-space: pre-wrap;
}

.wish-empty {
    margin: 0;
    color: #76616a;
    border: 1px dashed rgba(124, 63, 89, 0.25);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.54);
    padding: 12px;
}

.site-footer {
    margin-top: 42px;
    background: #1d1717;
    color: rgba(255, 255, 255, 0.92);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-signoff {
    max-width: 720px;
    margin: 0 auto 26px;
    padding: 18px 16px 22px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background:
        radial-gradient(circle at 14% 20%, rgba(207, 178, 122, 0.12), transparent 40%),
        radial-gradient(circle at 86% 75%, rgba(208, 140, 164, 0.18), transparent 44%),
        rgba(255, 255, 255, 0.04);
}

.footer-signoff-kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.66);
}

.footer-signoff-quote {
    margin: 8px auto 6px;
    max-width: 620px;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-signoff-signature {
    margin: 0;
    font-family: "Great Vibes", cursive;
    font-size: 1.95rem;
    color: rgba(255, 222, 184, 0.95);
}

.site-footer h5 {
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
}

.footer-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.66);
    line-height: 1.73;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.36);
    transition: all 0.25s ease;
}

.footer-social a:hover {
    background: #fff;
    color: #1d1717;
}

.site-footer hr {
    margin: 24px 0 16px;
    border-color: rgba(255, 255, 255, 0.15);
}

.footer-copy {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.86rem;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity var(--motion-enter) var(--ease-enter), transform var(--motion-enter) var(--ease-enter);
}

.reveal.reveal-left {
    transform: translateX(-28px);
}

.reveal.reveal-right {
    transform: translateX(28px);
}

.reveal.reveal-zoom {
    transform: scale(0.95);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes petalFall {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.82;
    }
    100% {
        transform: translate3d(36px, 780px, 0) rotate(300deg);
        opacity: 0;
    }
}

@keyframes bloomFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-18px);
    }
}

@keyframes gateFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(1.06);
        visibility: hidden;
    }
}

@keyframes pulseSound {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}
@keyframes curtainOpenLeft {
    0% {
        opacity: 0;
        transform: translateX(0) scaleX(1);
    }
    12% {
        opacity: 1;
        transform: translateX(0) scaleX(1);
    }
    45% {
        opacity: 1;
        transform: translateX(-4%) scaleX(1.01);
    }
    100% {
        opacity: 1;
        transform: translateX(-108%) scaleX(1.02);
    }
}
@keyframes curtainOpenRight {
    0% {
        opacity: 0;
        transform: translateX(0) scaleX(1);
    }
    12% {
        opacity: 1;
        transform: translateX(0) scaleX(1);
    }
    45% {
        opacity: 1;
        transform: translateX(4%) scaleX(1.01);
    }
    100% {
        opacity: 1;
        transform: translateX(108%) scaleX(1.02);
    }
}
@keyframes gateStageLift {
    0% {
        transform: scale(1);
        filter: blur(0);
    }
    100% {
        transform: scale(1.02);
        filter: blur(1px);
    }
}

@keyframes openingContentFade {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(1.035);
        filter: blur(2.2px);
    }
}

@keyframes openingVideoZoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.06);
    }
}

@keyframes bookOpeningShow {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bookDepthSettle {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    56% {
        transform: translate3d(0, 0, 0) scale(1.012);
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1.02);
    }
}

@keyframes bookCoverOpen {
    0% {
        transform: rotateY(0deg) translateZ(8px);
    }
    24% {
        transform: rotateY(-42deg) translateZ(10px);
    }
    66% {
        transform: rotateY(-132deg) translateZ(13px);
    }
    100% {
        transform: rotateY(-176deg) translateZ(14px);
    }
}

@keyframes bookSpineFade {
    0% {
        opacity: 1;
    }
    74% {
        opacity: 0.8;
    }
    100% {
        opacity: 0.12;
    }
}

@keyframes bookGlossFade {
    0% {
        opacity: 0.42;
    }
    100% {
        opacity: 0;
    }
}

@keyframes curtainValanceIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    22% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0.86;
        transform: translateY(0);
    }
}
@keyframes sectionBloomPulse {
    0% {
        box-shadow: 0 12px 32px rgba(42, 27, 26, 0.08);
    }
    40% {
        box-shadow: 0 18px 38px rgba(124, 63, 89, 0.16);
    }
    100% {
        box-shadow: 0 12px 32px rgba(42, 27, 26, 0.08);
    }
}
@keyframes scrollBloomFloat {
    0% {
        opacity: 0;
        transform: translate3d(0, 14px, 0) scale(0.58) rotate(var(--bloom-rotation, 0deg));
    }
    20% {
        opacity: 0.92;
    }
    100% {
        opacity: 0;
        transform: translate3d(0, -48px, 0) scale(1.08) rotate(calc(var(--bloom-rotation, 0deg) + 16deg));
    }
}

@keyframes sectionFlowerBloom {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3) rotate(var(--bloom-rotation, 0deg));
    }
    38% {
        opacity: 0.96;
        transform: translate(-50%, -50%) scale(1.08) rotate(calc(var(--bloom-rotation, 0deg) + 8deg));
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.32) rotate(calc(var(--bloom-rotation, 0deg) + 14deg));
    }
}

@keyframes boundaryBloomPop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.24) rotate(var(--bloom-rotation, 0deg));
    }
    36% {
        opacity: 0.98;
        transform: translate(-50%, -50%) scale(1.06) rotate(calc(var(--bloom-rotation, 0deg) + 8deg));
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.38) rotate(calc(var(--bloom-rotation, 0deg) + 18deg));
    }
}

@keyframes dividerFlowerBloom {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.2) rotate(-10deg);
    }
    38% {
        opacity: 0.96;
        transform: translate(-50%, -50%) scale(1.04) rotate(4deg);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.34) rotate(12deg);
    }
}

@keyframes rsvpShimmer {
    0% {
        transform: translateX(-120%) rotate(6deg);
    }
    100% {
        transform: translateX(120%) rotate(6deg);
    }
}

@keyframes counterPop {
    0% {
        transform: scale(1);
    }
    45% {
        transform: scale(1.22);
    }
    100% {
        transform: scale(1);
    }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
    .opening-phone-frame {
        width: min(760px, 94vw);
        min-height: min(680px, 92vh);
        border-radius: 34px;
        border-width: 4px;
    }

    .phone-notch {
        display: none;
    }

    .opening-content {
        min-height: 560px;
        margin-top: 72px;
    }

    .opening-couple {
        margin-top: 60px;
    }

    .opening-guest-wrap {
        margin-top: 64px;
        margin-left: auto;
        margin-right: auto;
    }

    .opening-floral {
        width: 180px;
        height: 220px;
    }

    .opening-floral-left {
        left: -42px;
    }

    .opening-floral-right {
        right: -42px;
    }
}

@media (min-width: 1024px) {
    .opening-phone-frame {
        width: min(920px, 92vw);
        min-height: min(760px, 90vh);
        border-radius: 42px;
        border-width: 5px;
        padding: 24px 34px 24px;
    }

    .opening-phone-frame::before {
        border-radius: 32px;
    }

    .phone-notch {
        display: none;
    }

    .opening-content {
        margin-top: 60px;
        min-height: 640px;
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
    }

    .opening-couple {
        font-size: clamp(3.4rem, 6vw, 5.6rem);
    }

    .opening-floral {
        width: 220px;
        height: 270px;
        bottom: -6px;
    }

    .opening-floral-left {
        left: -58px;
    }

    .opening-floral-right {
        right: -58px;
    }

    .opening-stone-path {
        width: 36%;
        height: 142px;
    }

    .opening-video-wrap {
        inset: 14px;
        border-radius: 32px;
    }
}

@media (max-width: 991.98px) {
    .journey-map {
        left: 6px;
        width: 22px;
        top: 98px;
        bottom: 82px;
    }

    .main-nav .navbar-collapse {
        margin-top: 13px;
        padding-top: 10px;
        border-top: 1px solid rgba(119, 98, 84, 0.22);
    }

    .countdown-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-grid {
        gap: 16px;
        padding: 4px 8px 14px;
    }

    .gallery-item,
    .gallery-item:nth-child(3n + 1),
    .gallery-item:nth-child(3n + 2),
    .gallery-item:nth-child(3n + 3) {
        flex: 0 0 clamp(286px, 78vw, 430px);
        min-width: clamp(286px, 78vw, 430px);
    }

    .gallery-item:nth-child(3n + 1) .gallery-photo,
    .gallery-item:nth-child(3n + 1) .gallery-placeholder,
    .gallery-item:nth-child(3n + 2) .gallery-photo,
    .gallery-item:nth-child(3n + 2) .gallery-placeholder,
    .gallery-item:nth-child(3n + 3) .gallery-photo,
    .gallery-item:nth-child(3n + 3) .gallery-placeholder {
        aspect-ratio: 4 / 5;
    }

    .gallery-item:nth-child(odd),
    .gallery-item:nth-child(even),
    .gallery-item:nth-child(3n) {
        transform: rotate(0deg);
    }

    .gallery-item:nth-child(odd) {
        transform: rotate(-1deg);
    }

    .gallery-item:nth-child(even) {
        transform: rotate(1deg);
    }

    .gallery-frame {
        padding-bottom: 54px;
    }

    .gallery-lightbox {
        padding: 18px;
        gap: 10px;
    }

    .gallery-lightbox-nav {
        width: 46px;
        height: 46px;
    }

    .event-agenda {
        margin-top: 18px;
        gap: 10px;
    }

    .agenda-item {
        grid-template-columns: 98px 1fr;
        gap: 10px;
        padding: 11px 12px;
    }

    .agenda-main h3 {
        font-size: 1.38rem;
    }

    .story-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .story-card--chapter:nth-child(2),
    .story-card--chapter:nth-child(3) {
        transform: none;
    }

    .floating-bloom {
        opacity: 0.3;
    }
}

@media (max-width: 767.98px) {
    .journey-map {
        display: none;
    }

    .invitation-page {
        padding-top: 20px;
    }

    .section-block {
        padding: 20px 0 34px;
    }

    .section-rose > .container,
    .section-ivory > .container,
    .section-sage > .container {
        padding: 24px 18px 16px;
        border-radius: 26px;
    }

    .section-heading h2 {
        line-height: 1.05;
        font-size: clamp(1.85rem, 8vw, 2.5rem);
    }

    .hero-monogram {
        font-size: clamp(3rem, 17vw, 5.4rem);
        inset: 24px 0 auto;
    }

    .hero-card {
        border-radius: 24px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .meta-chip {
        width: 100%;
        justify-content: flex-start;
    }

    .opening-phone-frame {
        min-height: min(740px, 94vh);
        border-radius: 42px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .opening-content {
        margin-top: 80px;
        min-height: 590px;
    }

    .opening-date {
        font-size: 0.74rem;
    }

    .opening-couple {
        margin-top: 38px;
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }

    .opening-guest-wrap {
        margin-top: auto;
    }

    .opening-floral {
        width: 162px;
        height: 206px;
    }

    .opening-floral-left {
        left: -58px;
    }

    .opening-floral-right {
        right: -58px;
    }

    .opening-video-wrap {
        inset: 10px;
        border-radius: 34px;
    }

    .opening-video-wrap::before {
        background:
            radial-gradient(circle at 50% 5%, rgba(255, 232, 193, 0.18), rgba(255, 232, 193, 0) 48%),
            linear-gradient(180deg, rgba(23, 12, 12, 0.06), rgba(23, 12, 12, 0.14));
    }

    .opening-gate.is-playing-video .opening-gate-video {
        animation: none;
        transform: scale(1);
    }

    .gallery-luxury-note {
        font-size: 1.02rem;
    }

    .event-agenda {
        margin-top: 14px;
    }

    .rsvp-personal-note {
        font-size: 0.93rem;
        margin-bottom: 16px;
    }

    .agenda-item {
        grid-template-columns: 1fr;
        gap: 6px;
        border-radius: 12px;
    }

    .agenda-time {
        margin-top: 0;
        font-size: 0.72rem;
    }

    .agenda-main h3 {
        font-size: 1.32rem;
    }

    .hero-prayer {
        font-size: 0.95rem;
        line-height: 1.68;
    }
}

@media (max-width: 575.98px) {
    .opening-gate {
        padding: 10px;
    }

    .section-rose > .container,
    .section-ivory > .container,
    .section-sage > .container {
        padding: 20px 14px 14px;
        border-radius: 22px;
    }

    .opening-phone-frame {
        width: 100%;
        min-height: 91vh;
        border-width: 4px;
    }

    .opening-content {
        margin-top: 96px;
        min-height: 592px;
        padding-bottom: 18px;
    }

    .opening-couple {
        margin-top: 66px;
    }

    .opening-guest-wrap {
        margin-top: 68px;
        margin-left: auto;
        margin-right: auto;
    }

    .opening-kicker {
        font-size: 0.68rem;
    }

    .opening-arches {
        width: 92%;
        height: 130px;
        top: 70px;
    }

    .opening-floral {
        width: 140px;
        height: 176px;
        bottom: -2px;
    }

    .opening-floral-left {
        left: -60px;
    }

    .opening-floral-right {
        right: -60px;
    }

    .opening-hint {
        font-size: 0.72rem;
    }

    .opening-video-wrap {
        inset: 8px;
    }

    .story-grid {
        grid-template-columns: 1fr;
    }

    .story-card--chapter {
        gap: 12px;
    }

    .story-photo-placeholder {
        min-height: 126px;
    }

    .story-quote {
        font-size: 1rem;
    }

    .gallery-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 14px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 2px 6px 12px;
        margin: 0 -6px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        touch-action: pan-x;
    }

    .gallery-grid::-webkit-scrollbar {
        display: none;
    }

    .gallery-item,
    .gallery-item:nth-child(3n + 1),
    .gallery-item:nth-child(3n + 2),
    .gallery-item:nth-child(3n + 3) {
        grid-column: span 1;
        flex: 0 0 88%;
        min-width: 88%;
        scroll-snap-align: center;
    }

    .gallery-item:nth-child(odd) {
        transform: rotate(-1.2deg);
    }

    .gallery-item:nth-child(even) {
        transform: rotate(1.2deg);
    }

    .gallery-frame {
        padding-bottom: 56px;
    }

    .gallery-frame::before {
        width: 72px;
        height: 20px;
        top: -10px;
    }

    .gallery-frame::after {
        bottom: 50px;
    }

    .gallery-photo,
    .gallery-placeholder {
        aspect-ratio: 4 / 5;
    }

    .gallery-item:nth-child(3n + 1) .gallery-photo,
    .gallery-item:nth-child(3n + 1) .gallery-placeholder,
    .gallery-item:nth-child(3n + 2) .gallery-photo,
    .gallery-item:nth-child(3n + 2) .gallery-placeholder,
    .gallery-item:nth-child(3n + 3) .gallery-photo,
    .gallery-item:nth-child(3n + 3) .gallery-placeholder {
        aspect-ratio: 4 / 5;
    }

    .gallery-caption {
        font-size: 0.9rem;
        letter-spacing: 2.1px;
    }

    .gallery-luxury-note {
        font-size: 0.97rem;
        margin-top: 10px;
    }

    .gallery-lightbox {
        flex-direction: column;
        justify-content: center;
        gap: 12px;
    }

    .gallery-lightbox-figure {
        width: 100%;
        max-width: 100%;
    }

    .gallery-lightbox-image {
        max-height: 62vh;
    }

    .gallery-lightbox-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

    .gallery-lightbox-prev {
        left: 8px;
    }

    .gallery-lightbox-next {
        right: 8px;
    }

    .gallery-lightbox-nav,
    .gallery-lightbox-close {
        width: 48px;
        height: 48px;
    }

    .btn-submit {
        min-height: 48px;
    }

    .countdown-box {
        padding: 18px 10px;
    }

    .music-toggle {
        bottom: 14px;
        right: 14px;
    }
}

@media (max-width: 430px) {
    .opening-content {
        margin-top: 104px;
    }

    .opening-couple {
        margin-top: 74px;
    }

    .opening-guest-wrap {
        margin-top: 74px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .opening-gate.is-playing-video .opening-gate-video {
        animation: none;
        transform: scale(1);
    }
}
