:root {
    --forest: #263521;
    --gold: #c9a640;
    --cream: #f4f2e9
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: #231f29;
    color: var(--cream);
    font-family: Poppins, sans-serif
}

button,
a {
    font: inherit
}

.opening-section {
    align-items: center;
    background: #111b12;
    display: flex;
    inset: 0;
    justify-content: center;
    min-height: 100svh;
    padding: 10px;
    position: fixed;
    z-index: 10
}

.opening-section::after {
    border: 1px solid #c9a640a8;
    content: "";
    inset: 21px;
    pointer-events: none;
    position: absolute
}

.opening-panel {
    align-items: center;
    background: var(--forest);
    box-shadow: 0 0 45px #0005;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100svh;
    padding: 50px 22px;
    position: relative;
    text-align: center;
    width: min(100%, 600px);
    overflow: hidden
}

.opening-panel::before {
    background: radial-gradient(ellipse at 52% 40%, #46523a75 0%, transparent 38%), radial-gradient(ellipse at 28% 57%, #0b150b 0%, transparent 54%), linear-gradient(120deg, #1e2d1c, #0e1b10 62%, #142215);
    content: "";
    inset: 0;
    position: absolute
}

.rings,
.opening-names,
.opening-details,
.ornament,
.open-btn {
    position: relative;
    z-index: 1
}

.rings {
    height: 50px;
    margin-bottom: 27px;
    width: 78px
}

.rings span {
    border: 2px solid #ecf2e8;
    border-radius: 50%;
    height: 43px;
    left: 3px;
    position: absolute;
    top: 3px;
    width: 43px
}

.rings span:nth-child(2) {
    border-color: var(--gold);
    left: 28px
}

.rings i {
    color: var(--gold);
    font-size: 11px;
    left: 32px;
    position: absolute;
    top: 20px
}

.opening-names {
    color: #f4f2e9;
    font: 500 clamp(2.7rem, 10vw, 4.5rem)/.95 "Cormorant Garamond", Georgia, serif;
    margin: 0
}

.opening-names em {
    color: var(--gold);
    font-style: normal
}

.opening-details {
    color: #eee7d1;
    font: 600 9px/1.8 Cinzel, serif;
    letter-spacing: 2.3px;
    margin: 43px 0 0
}

.ornament {
    background: linear-gradient(90deg, transparent, #b6973d 20% 48%, #d3b34e 48% 52%, #b6973d 52% 80%, transparent);
    height: 1px;
    margin-top: -26px;
    width: 154px
}

.open-btn {
    background: transparent;
    border: 1px solid #b89a43;
    color: var(--cream);
    cursor: pointer;
    display: inline-flex;
    gap: 11px;
    letter-spacing: 1.8px;
    box-shadow: 0 7px 14px #00000040, inset 0 0 18px #b4963b12;
    margin-top: 40px;
    min-width: 244px;
    padding: 16px 25px;
    text-transform: uppercase
}

.open-btn:hover {
    background: var(--cream);
    color: var(--forest)
}

.opening-leaf {
    height: 185px;
    opacity: .5;
    pointer-events: none;
    position: absolute;
    width: 155px;
    z-index: 1
}

.opening-leaf::before {
    background: #a99b51;
    content: "";
    height: 1px;
    left: -18px;
    position: absolute;
    top: 93px;
    transform: rotate(-52deg);
    transform-origin: left;
    width: 213px
}

.opening-leaf span {
    background: linear-gradient(135deg, #c3b868, #525a2b);
    border-radius: 100% 0 100% 0;
    height: 21px;
    position: absolute;
    transform: rotate(-36deg);
    width: 47px
}

.opening-leaf span:nth-child(1) { left: 21px; top: 72px }
.opening-leaf span:nth-child(2) { left: 45px; top: 50px; transform: rotate(-12deg) }
.opening-leaf span:nth-child(3) { left: 67px; top: 30px; transform: rotate(-42deg) }
.opening-leaf span:nth-child(4) { left: 87px; top: 12px; transform: rotate(-18deg) }
.opening-leaf-top { left: -20px; top: 17px }
.opening-leaf-bottom { bottom: -17px; right: -31px; transform: rotate(169deg) scale(1.15) }

.opening-section.is-opening {
    animation: screenOut .85s forwards
}

@keyframes screenOut {
    to {
        opacity: 0;
        transform: translateY(-100%);
        visibility: hidden
    }
}

.invitation {
    background: #f6f1e5;
    color: #253320;
    min-height: 100svh;
    opacity: 0;
    transition: opacity .5s ease .25s
}

.invitation.is-visible {
    opacity: 1
}

.hero {
    align-items: flex-end;
    background: linear-gradient(180deg, #12201657 0%, #12201630 38%, #122016d4 100%), url("../images/couple-hero.jpg") center/cover, url("../images/couple02.jpg") center/cover;
    display: flex;
    justify-content: center;
    min-height: 100svh;
    padding: 32px 20px 22px;
    position: relative;
    text-align: center
}

.invitation-nav {
    align-items: center;
    background: #f9f8f0f7;
    color: var(--forest);
    display: flex;
    height: 52px;
    justify-content: space-between;
    left: 0;
    padding: 0 13px 0 23px;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 2
}

.nav-logo {
    color: inherit;
    font: 400 1.3rem "Great Vibes", cursive;
    text-decoration: none
}

.menu-button {
    background: transparent;
    border: 1px solid var(--forest);
    color: var(--forest);
    cursor: pointer;
    font-size: 19px;
    height: 36px;
    width: 43px
}

.nav-links {
    background: #f9f8f0;
    box-shadow: 0 6px 15px #0002;
    display: none;
    position: absolute;
    right: 13px;
    top: 48px
}

.nav-links.is-open {
    display: flex;
    flex-direction: column
}

.nav-links a {
    color: var(--forest);
    font-size: 12px;
    padding: 12px 24px;
    text-decoration: none
}

.hero-card {
    max-width: 430px;
    padding: 0 10px
}

.eyebrow {
    color: var(--gold);
    font: 600 10px/1.6 Cinzel, serif;
    letter-spacing: 2.4px;
    text-transform: uppercase
}

.hero h2 {
    color: #fffbed;
    font: 400 clamp(3.7rem, 14vw, 5.5rem)/.78 "Great Vibes", cursive;
    margin: 0;
    text-shadow: 0 3px 15px #000
}

.hero h2 span {
    color: #d5b14c
}

.hero-line {
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    height: 1px;
    margin: 28px auto 16px;
    width: 125px
}

.date {
    color: #fffbed;
    font: 600 9px Cinzel, serif;
    letter-spacing: 1.45px;
    margin: 0
}

.scroll-cue,
.map-button {
    display: inline-flex;
    gap: 8px;
    text-decoration: none
}

.scroll-cue {
    color: #eff1e8;
    font: 600 8px Cinzel, serif;
    letter-spacing: 1.5px;
    margin-top: 8px;
    text-transform: uppercase
}

.countdown-section {
    background: #293b28;
    color: #f6f3e8;
    padding: 22px 16px 17px;
    text-align: center
}

.countdown-section .eyebrow {
    color: #e5eadf;
    font-size: 9px;
    margin: 0 0 13px
}

.countdown-grid {
    display: grid;
    gap: 5px;
    grid-template-columns: repeat(4, 1fr);
    margin: auto;
    max-width: 420px
}

.countdown-grid div {
    border: 1px solid #f2efe026;
    padding: 13px 4px 10px
}

.countdown-grid strong {
    display: block;
    font: 500 20px/1 Cinzel, serif
}

.countdown-grid span {
    color: #c8d0c1;
    display: block;
    font: 600 6px/1.3 Cinzel, serif;
    letter-spacing: 1px;
    margin-top: 4px;
    text-transform: uppercase
}

.countdown-message {
    color: #d8dfd1;
    font-size: 11px;
    margin: 11px 0 0
}

.details-section {
    margin: auto;
    max-width: 700px;
    padding: 75px 25px;
    text-align: center
}

.details-section h2 {
    color: var(--forest);
    font: 400 clamp(2.6rem, 10vw, 4rem)/1 "Great Vibes", cursive;
    margin: 12px 0 18px
}

.section-copy {
    color: #697264;
    font-size: 14px;
    line-height: 1.8;
    margin: 0 auto 35px;
    max-width: 420px
}

.event-card {
    background: #fffdf6;
    box-shadow: 0 10px 30px #21301d1a;
    display: grid;
    gap: 5px 15px;
    grid-template-columns: 26px 1fr;
    padding: 27px 22px;
    text-align: left
}

.event-card>i {
    color: var(--gold);
    font-size: 18px;
    grid-row: span 2;
    padding-top: 4px
}

.event-card div {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px
}

.event-card div:last-child {
    margin-bottom: 0
}

.event-card strong {
    color: var(--forest);
    font: 600 13px Cinzel, serif
}

.event-card span {
    color: #747b70;
    font-size: 12px;
    margin-top: 4px
}

.map-button {
    background: var(--forest);
    color: white;
    font-size: 12px;
    margin-top: 26px;
    padding: 13px 18px
}

footer {
    background: var(--forest);
    color: #e5eadf;
    font: 400 1.6rem "Great Vibes", cursive;
    padding: 30px;
    text-align: center
}

.music-toggle {
    background: var(--forest);
    border: 1px solid #ffffff73;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    height: 42px;
    position: fixed;
    right: 18px;
    top: 68px;
    width: 42px;
    z-index: 5
}

@media(max-width:400px) {
    .opening-details {
        font-size: 8px;
        letter-spacing: 1.5px
    }

    .hero h2 {
        font-size: 3.2rem
    }
}

:root {
    --story-ink: #354933
}

.story-section {
    background: #f9faf4;
    color: var(--story-ink);
    overflow: hidden;
    padding: 45px 14px 50px;
    position: relative
}

.story-section::before,
.story-section::after {
    background: #d7e6d2;
    border-radius: 50%;
    content: "";
    height: 11px;
    opacity: .65;
    position: absolute;
    width: 16px
}

.story-section::before {
    left: 15px;
    top: 26px
}

.story-section::after {
    right: 22px;
    top: 278px;
    transform: rotate(48deg)
}

.polaroid-wrap {
    margin: 0 auto 52px;
    max-width: 300px;
    position: relative;
    width: 88%
}

.polaroid {
    background: #fffdfa;
    box-shadow: 0 11px 22px #1b2e1a1c;
    margin: 0;
    padding: 8px 8px 37px;
    position: relative;
    transform: rotate(-2deg)
}

.polaroid img {
    display: block;
    height: 285px;
    object-fit: cover;
    width: 100%
}

.polaroid figcaption {
    bottom: 12px;
    color: #49603f;
    font: 400 11px "Great Vibes", cursive;
    left: 0;
    position: absolute;
    right: 0;
    text-align: center
}

.tape {
    background: #bfd8c0c9;
    height: 12px;
    position: absolute;
    width: 66px;
    z-index: 1
}

.tape-top {
    left: 50%;
    top: -8px;
    transform: translateX(-50%) rotate(-2deg)
}

.date-sticker {
    align-items: center;
    background: #4e8054;
    border: 1px solid #eaf4e7;
    border-radius: 50%;
    bottom: -10px;
    color: white;
    display: flex;
    font: 600 7px Cinzel, serif;
    height: 54px;
    justify-content: center;
    letter-spacing: .5px;
    position: absolute;
    right: -3px;
    text-transform: uppercase;
    transform: rotate(14deg);
    width: 54px
}

.story-section .eyebrow {
    font-size: 9px;
    margin: 0 0 10px
}

.story-section h2 {
    color: #263b25;
    font: 400 clamp(2.4rem, 10vw, 3.5rem)/1 "Great Vibes", cursive;
    margin: 0 0 20px
}

.story-copy {
    color: #63715d;
    font-size: 12.5px;
    line-height: 1.9;
    margin: 0
}

:root {
    --gallery-bg: #f3f7ee
}

.gallery-section {
    background: var(--gallery-bg);
    color: #31442e;
    overflow: hidden;
    padding: 45px 0 48px;
    text-align: center
}

.gallery-section .eyebrow {
    font-size: 9px;
    margin: 0 0 9px
}

.gallery-section h2 {
    color: #263b25;
    font: 400 clamp(2.4rem, 10vw, 3.5rem)/1 "Great Vibes", cursive;
    margin: 0
}

.gallery-heart {
    color: #c4a749;
    font-size: 12px;
    margin: 20px 0 24px
}

.gallery-shell {
    align-items: center;
    background: linear-gradient(90deg, #e2ebdc, #f5f8f1, #e2ebdc);
    display: flex;
    min-height: 250px;
    position: relative
}

.gallery-track {
    align-items: center;
    display: flex;
    gap: 14px;
    overflow: hidden;
    padding: 0 calc(50% - 60px);
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    width: 100%
}

.gallery-card {
    box-shadow: 0 8px 15px #31442e14;
    flex: 0 0 120px;
    height: 220px;
    margin: 0;
    opacity: .6;
    overflow: hidden;
    scroll-snap-align: center;
    transition: opacity .25s, transform .25s
}

.gallery-card.is-active {
    height: 242px;
    opacity: 1;
    transform: scale(1.04)
}

.gallery-card img {
    height: 100%;
    object-fit: cover;
    width: 100%
}

.gallery-arrow {
    align-items: center;
    background: #fff;
    border: 0;
    border-radius: 50%;
    color: #4c744e;
    cursor: pointer;
    display: flex;
    font-size: 10px;
    height: 28px;
    justify-content: center;
    position: absolute;
    top: calc(50% - 14px);
    width: 28px;
    z-index: 2
}

.gallery-prev {
    left: 11px
}

.gallery-next {
    right: 11px
}

.gallery-dots {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-top: 16px
}

.gallery-dots button {
    background: #cddbc8;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    height: 7px;
    padding: 0;
    width: 7px
}

.gallery-dots button.is-active {
    background: #c4a749;
    box-shadow: 0 0 0 3px #e6eddc
}

:root {
    --envelope: #c9ddc5
}

.invitation-card-section {
    background: #f8faf4;
    color: #31442e;
    min-height: 620px;
    overflow: hidden;
    padding: 44px 14px 33px;
    text-align: center
}

.invitation-card-section .eyebrow {
    font-size: 9px;
    margin: 0 0 9px
}

.invitation-card-section h2 {
    color: #263b25;
    font: 400 clamp(2.4rem, 10vw, 3.5rem)/1 "Great Vibes", cursive;
    margin: 0
}

.invitation-heart {
    color: #c4a749;
    font-size: 12px;
    margin: 20px 0 15px
}

.envelope-scene {
    height: 370px;
    margin: 0 auto;
    max-width: 350px;
    position: relative;
    transform-style: preserve-3d;
    width: 100%
}

.envelope-back,
.envelope-front,
.envelope-flap {
    bottom: 0;
    left: 0;
    position: absolute;
    width: 100%
}

.envelope-back {
    background: var(--envelope);
    height: 169px
}

.envelope-front {
    border-color: #d8e7d4 transparent transparent;
    border-style: solid;
    border-width: 90px 175px 0;
    filter: drop-shadow(0 5px 5px #31442e18);
    height: 0;
    z-index: 4
}

.envelope-flap {
    background: #d5e6d1;
    clip-path: polygon(0 0, 100% 0, 50% 68%);
    height: 169px;
    transform-origin: top;
    transition: transform .75s cubic-bezier(.2, .7, .25, 1);
    z-index: 5
}

.wedding-card {
    background: #fffefa;
    border-radius: 10px;
    box-shadow: 0 10px 28px #1b2e1a2b;
    color: #425343;
    left: 8%;
    padding: 10px;
    position: absolute;
    top: 81px;
    transition: transform .75s cubic-bezier(.2, .7, .25, 1), opacity .35s;
    transform: translateY(100px);
    width: 84%;
    z-index: 2
}

.card-border {
    border: 1px solid #dce6d4;
    border-radius: 5px;
    padding: 13px 10px 10px
}

.card-heart {
    color: #b99c43;
    font-size: 10px
}

.card-kicker,
.card-venue-label {
    color: #856e2e;
    font: 600 7px/1.35 Cinzel, serif;
    letter-spacing: .8px;
    margin: 7px 0;
    text-transform: uppercase
}

.wedding-card h3 {
    color: #3c5b3f;
    font: 400 2rem/.86 "Great Vibes", cursive;
    margin: 7px 0
}

.wedding-card h3 span {
    color: #b99c43
}

.card-divider {
    border-top: 1px solid #e1e8dc;
    margin: 15px auto;
    width: 80%
}

.card-month {
    color: #856e2e;
    font: 600 7px Cinzel, serif;
    letter-spacing: 1px;
    margin: 0;
    text-transform: uppercase
}

.card-date {
    align-items: center;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 4px 0 14px
}

.card-date span {
    color: #516351;
    font: 600 6px Cinzel, serif;
    letter-spacing: .8px;
    text-transform: uppercase
}

.card-date strong {
    color: #a18430;
    font: 500 1.65rem/.75 Cinzel, serif
}

.card-date small {
    display: block;
    font-size: 6px;
    letter-spacing: 1px;
    margin-top: 3px
}

.card-message {
    color: #667563;
    font-size: 10px;
    line-height: 1.8;
    margin: 0
}

.card-venue {
    color: #3f523f;
    font: 600 7px/1.45 Cinzel, serif;
    letter-spacing: .3px;
    margin: 3px 0 9px;
    text-transform: uppercase
}

.card-heart-bottom {
    display: block;
    margin-top: 3px
}

.envelope-seal {
    align-items: center;
    background: #48714d;
    border: 3px solid #6f9672;
    border-radius: 50%;
    box-shadow: 0 4px 8px #263b2559;
    color: #f7faf2;
    cursor: pointer;
    display: flex;
    font-size: 14px;
    height: 54px;
    justify-content: center;
    left: calc(50% - 27px);
    position: absolute;
    top: 218px;
    transition: transform .3s;
    width: 54px;
    z-index: 6
}

.envelope-seal:hover {
    transform: scale(1.08)
}

.tap-prompt {
    color: #899886;
    font: 600 8px Cinzel, serif;
    letter-spacing: 1.3px;
    margin: 0;
    text-transform: uppercase
}

.envelope-scene.is-open .envelope-flap {
    transform: rotateX(180deg);
    z-index: 1
}

.envelope-scene.is-open .wedding-card {
    opacity: 1;
    transform: translateY(-44px);
    z-index: 6
}

.envelope-scene.is-open .envelope-seal {
    transform: translateY(145px);
    z-index: 7
}

.envelope-scene.is-open+.tap-prompt {
    opacity: 0
}

:root {}

.wedding-card {
    opacity: 0;
    visibility: hidden
}

.envelope-scene.is-open .wedding-card {
    visibility: visible
}

:root {}

.invitation-card-section {
    background: radial-gradient(circle at 50% 65%, #e6f0e0 0, transparent 32%), linear-gradient(160deg, #fbfcf8, #f2f7ed);
    isolation: isolate
}

.invitation-card-section::before,
.invitation-card-section::after {
    background: #c8dfc2;
    border-radius: 45% 55% 48% 52%;
    content: "";
    height: 13px;
    opacity: .5;
    position: absolute;
    width: 18px
}

.invitation-card-section::before {
    left: 11%;
    margin-top: 64px;
    transform: rotate(35deg)
}

.invitation-card-section::after {
    margin-top: 315px;
    right: 12%;
    transform: rotate(-28deg)
}

.envelope-scene {
    perspective: 1000px
}

.envelope-scene::before {
    background: radial-gradient(ellipse, #38583a31 0, transparent 68%);
    bottom: 4px;
    content: "";
    height: 42px;
    left: 9%;
    position: absolute;
    width: 82%;
    z-index: 0
}

.envelope-back {
    border-radius: 3px;
    box-shadow: 0 12px 22px #29412825
}

.envelope-front {
    transition: filter .5s ease
}

.envelope-flap {
    box-shadow: inset 0 3px 0 #ffffff38;
    backface-visibility: hidden;
    will-change: transform
}

.envelope-seal {
    transition: transform .45s cubic-bezier(.2, .9, .25, 1), box-shadow .45s ease
}

.envelope-seal::after {
    border: 1px solid #d8e9d5a6;
    border-radius: 50%;
    content: "";
    inset: 4px;
    position: absolute
}

.envelope-seal i {
    position: relative;
    z-index: 1
}

.envelope-scene:not(.is-open) .envelope-seal {
    animation: sealPulse 2.4s ease-in-out infinite
}

.envelope-scene .wedding-card {
    opacity: 0;
    transform: translateY(125px) scale(.9) rotate(-1deg);
    transition: transform .8s cubic-bezier(.16, .9, .25, 1), opacity .4s ease, visibility 0s linear .8s;
    visibility: hidden
}

.envelope-scene.is-open .wedding-card {
    opacity: 1;
    transform: translateY(-58px) scale(1) rotate(0);
    transition: transform .85s cubic-bezier(.16, .9, .25, 1) .22s, opacity .35s ease .22s, visibility 0s;
    visibility: visible
}

.envelope-scene.is-open .envelope-flap {
    box-shadow: inset 0 -4px 10px #29412820;
    transition: transform .9s cubic-bezier(.2, .8, .2, 1)
}

.envelope-scene.is-open .envelope-front {
    filter: drop-shadow(0 9px 8px #31442e21)
}

.envelope-scene.is-open .envelope-seal {
    animation: none;
    box-shadow: 0 7px 16px #263b2566;
    transform: translateY(149px) rotate(360deg)
}

.envelope-scene.is-animating .envelope-seal {
    pointer-events: none
}

@keyframes sealPulse {

    0%,
    100% {
        box-shadow: 0 4px 8px #263b2559, 0 0 0 0 #6c956b55
    }

    50% {
        box-shadow: 0 5px 13px #263b2566, 0 0 0 9px transparent
    }
}

@media(prefers-reduced-motion:reduce) {
    .envelope-scene * {
        animation: none !important;
        transition-duration: .01ms !important
    }
}

:root {}

.invitation-card-section .envelope-scene.is-open .wedding-card {
    opacity: 1;
    transform: translateY(-58px) scale(1) rotate(0);
    transition: transform .85s cubic-bezier(.16, .9, .25, 1) .22s, opacity .35s ease .22s, visibility 0s;
    visibility: visible;
    z-index: 6
}

.invitation-card-section .envelope-scene.is-open .envelope-seal {
    animation: none;
    box-shadow: 0 7px 16px #263b2566;
    transform: translateY(149px) rotate(360deg)
}

:root {}

.invitation-card-section .envelope-scene {
    animation: envelopeFloat 4.5s ease-in-out infinite
}

.invitation-card-section .envelope-scene::after {
    background: radial-gradient(circle, #d5ad46 0 2px, transparent 3px), radial-gradient(circle, #71976f 0 2px, transparent 3px), radial-gradient(circle, #d5ad46 0 1.5px, transparent 2.5px);
    background-position: 12px 42px, 91% 20px, 77% 65px;
    background-repeat: no-repeat;
    content: "";
    inset: -18px;
    pointer-events: none;
    position: absolute;
    z-index: 7
}

.invitation-card-section .envelope-back {
    background: linear-gradient(135deg, #d8ead4, #c4dbbf 48%, #b5d0b0);
    overflow: hidden
}

.invitation-card-section .envelope-back::before {
    background: linear-gradient(135deg, transparent 49.5%, #9fbe9b55 50%, transparent 50.5%), linear-gradient(45deg, transparent 49.5%, #f7fff255 50%, transparent 50.5%);
    content: "";
    inset: 0;
    position: absolute
}

.invitation-card-section .envelope-front {
    border-top-color: #d9ead4;
    filter: drop-shadow(0 7px 5px #31442e12)
}

.invitation-card-section .envelope-flap {
    background: linear-gradient(145deg, #dcebd7, #c5ddc0 75%);
    clip-path: polygon(0 0, 100% 0, 50% 72%)
}

.invitation-card-section .envelope-seal {
    background: radial-gradient(circle at 35% 28%, #638d65, #3d6a44 68%);
    border-color: #83a982
}

.invitation-card-section .envelope-seal i {
    filter: drop-shadow(0 1px 1px #1d3b2155)
}

.invitation-card-section .wedding-card {
    box-shadow: 0 19px 37px #1b2e1a38
}

.invitation-card-section .wedding-card::before {
    background: linear-gradient(90deg, transparent, #d7bd6c88, transparent);
    content: "";
    height: 1px;
    left: 20%;
    position: absolute;
    right: 20%;
    top: 7px
}

.invitation-card-section .envelope-scene.is-open {
    animation: none
}

.invitation-card-section .envelope-scene.is-open::after {
    animation: sparkleBurst .9s ease-out both
}

.invitation-card-section .envelope-scene.is-open .envelope-flap {
    transform: rotateX(180deg) translateY(1px);
    transition: transform 1s cubic-bezier(.18, .88, .24, 1)
}

.invitation-card-section .envelope-scene.is-open .envelope-back {
    animation: envelopeGlow 1.2s ease-out
}

.invitation-card-section .envelope-scene.is-open .wedding-card {
    animation: cardReveal .85s cubic-bezier(.16, .9, .25, 1) .2s both
}

@keyframes envelopeFloat {

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

    50% {
        transform: translateY(-7px)
    }
}

@keyframes envelopeGlow {
    0% {
        filter: brightness(1)
    }

    45% {
        filter: brightness(1.13)
    }

    100% {
        filter: brightness(1)
    }
}

@keyframes cardReveal {
    0% {
        filter: blur(3px);
        opacity: 0
    }

    100% {
        filter: blur(0);
        opacity: 1
    }
}

@keyframes sparkleBurst {
    0% {
        opacity: 0;
        transform: scale(.5)
    }

    30% {
        opacity: 1
    }

    100% {
        opacity: 0;
        transform: scale(1.3)
    }
}

:root {}

.invitation-card-section .envelope-scene.is-open .envelope-flap {
    transform: rotateX(180deg) translateY(1px);
    transition: transform 1s cubic-bezier(.18, .88, .24, 1)
}

:root {}

.invitation-card-section .envelope-scene .wedding-card {
    transition: transform 1.25s cubic-bezier(.16, .9, .25, 1), opacity .65s ease, visibility 0s linear 1.25s
}

.invitation-card-section .envelope-scene.is-open .envelope-flap {
    transition: transform 1.45s cubic-bezier(.18, .88, .24, 1)
}

.invitation-card-section .envelope-scene.is-open .wedding-card {
    animation: cardReveal 1.2s cubic-bezier(.16, .9, .25, 1) .48s both;
    transition: transform 1.25s cubic-bezier(.16, .9, .25, 1) .48s, opacity .6s ease .48s, visibility 0s
}

.invitation-card-section .envelope-scene.is-open .envelope-seal {
    transition: transform .9s cubic-bezier(.2, .85, .25, 1), box-shadow .65s ease;
    transform: translateY(149px) rotate(360deg)
}

:root {}

.venue-section {
    background: #f7faf2;
    color: #40563c;
    overflow: hidden;
    padding: 42px 16px 40px;
    position: relative
}

.venue-section::before,
.venue-section::after {
    background: #c7dfc0;
    border-radius: 60% 40% 55% 45%;
    content: "";
    height: 12px;
    opacity: .65;
    position: absolute;
    width: 18px
}

.venue-section::before {
    right: 24%;
    top: 64px;
    transform: rotate(40deg)
}

.venue-section::after {
    left: 19%;
    top: 136px;
    transform: rotate(-25deg)
}

.venue-section .eyebrow,
.program-section .eyebrow {
    font-size: 9px;
    margin: 0 0 10px
}

.venue-section h2 {
    color: #263b25;
    font: 400 clamp(2.4rem, 10vw, 3.5rem)/1 "Great Vibes", cursive;
    margin: 0 0 24px
}

.venue-section>h3 {
    color: #2e4b31;
    font: 400 clamp(1.45rem, 6vw, 2.1rem)/1.15 "Great Vibes", cursive;
    margin: 0 0 24px;
    text-align: center
}

.venue-info {
    border-bottom: 1px solid #dfe8da;
    border-top: 1px solid #dfe8da
}

.venue-info>div {
    align-items: center;
    border-bottom: 1px solid #dfe8da;
    display: flex;
    gap: 14px;
    padding: 13px 0
}

.venue-info>div:last-child {
    border: 0
}

.venue-info i {
    align-items: center;
    border: 1px solid #d5e2d0;
    border-radius: 50%;
    color: #548059;
    display: flex;
    font-size: 12px;
    height: 31px;
    justify-content: center;
    width: 31px
}

.venue-info p {
    margin: 0
}

.venue-info strong {
    color: #587054;
    display: block;
    font: 600 8px Cinzel, serif;
    letter-spacing: 1px;
    text-transform: uppercase
}

.venue-info span {
    color: #687866;
    display: block;
    font-size: 11px;
    margin-top: 4px
}

.venue-actions {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
    margin: 19px 0 22px
}

.venue-actions a {
    background: #fff;
    color: #416141;
    font: 500 10px Cinzel, serif;
    letter-spacing: 1.2px;
    padding: 13px 4px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase
}

.map-frame {
    border: 1px solid #d1dfcc;
    border-radius: 10px;
    height: 207px;
    overflow: hidden
}

.map-frame iframe {
    border: 0;
    height: 100%;
    width: 100%
}

.program-section {
    background: radial-gradient(circle at 78% 12%, #74947044 0 4px, transparent 5px), radial-gradient(circle at 12% 45%, #8eab8a66 0 3px, transparent 4px), linear-gradient(135deg, #213521, #142317);
    color: #eff4e8;
    padding: 76px 42px 64px;
    position: relative
}

.program-section::after {
    background: linear-gradient(#8aa78966, #8aa78911);
    bottom: 54px;
    content: "";
    left: 43px;
    position: absolute;
    top: 185px;
    width: 1px
}

.program-section .eyebrow {
    color: #dfe7d8
}

.program-section h2 {
    font: 400 clamp(2.35rem, 10vw, 3.5rem)/1 "Great Vibes", cursive;
    margin: 0 0 12px
}

.program-date {
    color: #9daa99;
    font: 600 8px Cinzel, serif;
    letter-spacing: 1.1px;
    margin: 0 0 28px
}

.program-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1
}

.program-timeline li {
    display: grid;
    gap: 11px;
    grid-template-columns: 1fr;
    min-height: 76px;
    padding-left: 18px;
    position: relative
}

.program-timeline li::before {
    background: #90b18d;
    border: 3px solid #1b2d1c;
    border-radius: 50%;
    content: "";
    height: 9px;
    left: -4px;
    position: absolute;
    top: 7px;
    width: 9px
}

.program-timeline time {
    color: #eef4e9;
    font: 500 10px Cinzel, serif
}

.program-timeline h3 {
    font: 400 1.13rem/1 "Great Vibes", cursive;
    margin: -4px 0 5px
}

.program-timeline p {
    color: #98a796;
    font-size: 10px;
    line-height: 1.5;
    margin: 0
}

.program-timeline li:last-child {
    min-height: 45px
}

:root {
    --premium-shadow: 0 18px 45px rgba(30, 53, 31, .13);
    --premium-line: rgba(89, 120, 83, .17)
}

body .opening-panel {
    background: radial-gradient(circle at 50% 37%, #3f5938 0, transparent 29%), linear-gradient(155deg, #2e4529, #1d2d1c);
    box-shadow: 0 25px 80px #100d15aa
}

body .opening-panel::after {
    border: 1px solid #d4ba7055;
    content: "";
    inset: 17px;
    pointer-events: none;
    position: absolute
}

body .open-btn {
    backdrop-filter: blur(6px);
    border-color: #e7e9dd99;
    box-shadow: 0 7px 20px #0b170d40;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), background .35s, color .35s
}

body .open-btn:hover {
    box-shadow: 0 13px 28px #0b170d66;
    transform: translateY(-4px)
}

body .invitation-nav {
    backdrop-filter: blur(14px);
    box-shadow: 0 6px 18px #20311d12
}

body .music-toggle {
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 18px #17271855
}

body .countdown-section {
    background: linear-gradient(135deg, #30472d, #1d3020)
}

body .countdown-grid div {
    background: linear-gradient(145deg, #ffffff08, #0000000d);
    box-shadow: inset 0 1px #ffffff14
}

body .story-section,
body .gallery-section,
body .venue-section {
    background-image: radial-gradient(circle at 7% 18%, #c8dec21f 0 3px, transparent 4px), radial-gradient(circle at 90% 70%, #c8dec21f 0 4px, transparent 5px)
}

body .polaroid {
    box-shadow: var(--premium-shadow)
}

body .polaroid img {
    filter: saturate(.88) contrast(1.04)
}

body .gallery-shell {
    box-shadow: inset 0 0 35px #45644013
}

body .gallery-card {
    border: 3px solid #f7faf1;
    box-shadow: 0 12px 27px #31442e22
}

body .gallery-card.is-active {
    box-shadow: 0 18px 35px #31442e35
}

body .gallery-arrow {
    box-shadow: 0 7px 15px #31442e24;
    transition: transform .25s ease, box-shadow .25s ease
}

body .gallery-arrow:hover {
    box-shadow: 0 10px 20px #31442e38;
    transform: scale(1.12)
}

body .invitation-card-section {
    box-shadow: inset 0 1px #fff
}

body .venue-section h3 {
    position: relative
}

body .venue-section h3::after {
    background: linear-gradient(90deg, transparent, #c5a64c, transparent);
    bottom: -14px;
    content: "";
    height: 1px;
    left: 30%;
    position: absolute;
    right: 30%
}

body .venue-info,
body .venue-actions,
body .map-frame {
    position: relative;
    z-index: 1
}

body .venue-actions a {
    border: 1px solid #dce8d7;
    box-shadow: 0 7px 16px #31442e0f;
    transition: background .25s, color .25s, transform .25s
}

body .venue-actions a:hover {
    background: #35583a;
    color: white;
    transform: translateY(-2px)
}

body .map-frame {
    box-shadow: var(--premium-shadow)
}

body .program-section {
    box-shadow: inset 0 1px #ffffff18
}

body .program-timeline li {
    transition: transform .35s ease
}

body .program-timeline li:hover {
    transform: translateX(5px)
}

body footer {
    background: linear-gradient(135deg, #294629, #1b2e1d);
    letter-spacing: .3px
}

body.motion-ready .countdown-section,
body.motion-ready .story-section,
body.motion-ready .gallery-section,
body.motion-ready .invitation-card-section,
body.motion-ready .venue-section,
body.motion-ready .program-section,
body.motion-ready footer {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .85s cubic-bezier(.2, .75, .25, 1), transform .85s cubic-bezier(.2, .75, .25, 1)
}

body.motion-ready .is-revealed {
    opacity: 1;
    transform: none
}

body.motion-ready .story-section .polaroid-wrap,
body.motion-ready .gallery-section .gallery-shell,
body.motion-ready .venue-section .map-frame,
body.motion-ready .invitation-card-section .envelope-scene {
    transition: transform 1.1s cubic-bezier(.18, .85, .22, 1) .18s
}

body.motion-ready .is-revealed .polaroid-wrap,
body.motion-ready .is-revealed .gallery-shell,
body.motion-ready .is-revealed .map-frame,
body.motion-ready .is-revealed .envelope-scene {
    transform: translateY(0)
}

@media(prefers-reduced-motion:reduce) {
    body.motion-ready * {
        transition: none !important
    }
}

:root {}

body .opening-section.is-opening {
    animation: premiumScreenOut 1.2s cubic-bezier(.7, 0, .2, 1) forwards
}

@keyframes premiumScreenOut {
    0% {
        opacity: 1;
        transform: scale(1)
    }

    45% {
        opacity: 1;
        transform: scale(1.025)
    }

    100% {
        opacity: 0;
        transform: translateY(-102%) scale(1.04);
        visibility: hidden
    }
}

body .invitation.is-visible .hero-card>* {
    animation: heroRise .95s cubic-bezier(.16, .9, .25, 1) both
}

.invitation.is-visible .hero-card .eyebrow {
    animation-delay: .3s
}

.invitation.is-visible .hero-card h2 {
    animation-delay: .45s
}

.invitation.is-visible .hero-card .hero-line {
    animation-delay: .63s
}

.invitation.is-visible .hero-card .date {
    animation-delay: .72s
}

.invitation.is-visible .hero-card .scroll-cue {
    animation-delay: .82s
}

@keyframes heroRise {
    from {
        filter: blur(5px);
        opacity: 0;
        transform: translateY(24px)
    }

    to {
        filter: blur(0);
        opacity: 1;
        transform: none
    }
}

body.motion-ready .premium-item {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .65s ease var(--premium-delay), transform .75s cubic-bezier(.17, .82, .23, 1) var(--premium-delay)
}

body.motion-ready .is-revealed .premium-item {
    opacity: 1;
    transform: none
}

body.motion-ready .is-revealed .gallery-card:nth-of-type(2) {
    transform: translateY(-7px) scale(1.02)
}

body.motion-ready .is-revealed .gallery-card.is-active {
    animation: galleryBreath 3.8s ease-in-out .7s infinite
}

@keyframes galleryBreath {

    0%,
    100% {
        filter: brightness(1);
        transform: translateY(-7px) scale(1.02)
    }

    50% {
        filter: brightness(1.07);
        transform: translateY(-12px) scale(1.045)
    }
}

body .rings {
    animation: ringsFloat 3.4s ease-in-out infinite
}

@keyframes ringsFloat {

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

    50% {
        transform: translateY(-8px) rotate(3deg)
    }
}

body .hero::after {
    background: linear-gradient(115deg, transparent 38%, #ffffff18 50%, transparent 62%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    transform: translateX(-115%);
    animation: heroSheen 7s ease-in-out 1.8s infinite
}

@keyframes heroSheen {

    0%,
    55% {
        transform: translateX(-115%)
    }

    76%,
    100% {
        transform: translateX(115%)
    }
}

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

body .program-timeline li::after {
    background: #d7e7d4;
    border-radius: 50%;
    box-shadow: 0 0 0 5px #8db08a18;
    content: "";
    height: 3px;
    left: -1px;
    opacity: 0;
    position: absolute;
    top: 10px;
    width: 3px
}

body.motion-ready .is-revealed .program-timeline li::after {
    animation: timelinePulse 2.6s ease-in-out var(--premium-delay) infinite
}

@keyframes timelinePulse {

    0%,
    100% {
        opacity: .3;
        transform: scale(1)
    }

    50% {
        opacity: 1;
        transform: scale(1.7)
    }
}

/* Botanical envelope treatment */
body .invitation-card-section {
    background: radial-gradient(circle at 50% 47%, #ffffff 0 20%, #fffdf5d9 48%, #edf2e6 100%);
    min-height: 650px;
    padding-top: 68px;
    position: relative
}

body .invitation-card-section::before,
body .invitation-card-section::after {
    background: radial-gradient(ellipse at 28% 65%, #9bae7a 0 15%, transparent 16%), radial-gradient(ellipse at 43% 45%, #b9c69a 0 14%, transparent 15%), radial-gradient(ellipse at 62% 26%, #7f956c 0 13%, transparent 14%);
    border-radius: 0;
    height: 150px;
    margin: 0;
    opacity: .7;
    position: absolute;
    width: 135px;
    z-index: 0
}

body .invitation-card-section::before {
    left: -24px;
    top: 0;
    transform: rotate(-25deg)
}

body .invitation-card-section::after {
    bottom: -13px;
    right: -24px;
    transform: rotate(150deg)
}

body .invitation-card-section > * {
    position: relative;
    z-index: 1
}

body .invitation-card-section h2 {
    font-family: "Great Vibes", cursive;
    font-size: clamp(2.8rem, 11vw, 4rem)
}

body .invitation-heart {
    display: block;
    margin: 19px auto 22px;
    position: relative;
    width: 140px
}

body .invitation-heart::before,
body .invitation-heart::after {
    background: linear-gradient(90deg, transparent, #cfb15f, transparent);
    content: "";
    height: 1px;
    position: absolute;
    top: 50%;
    width: 54px
}

body .invitation-heart::before { left: 0 }
body .invitation-heart::after { right: 0 }

body .invitation-card-section .envelope-scene {
    height: 335px;
    max-width: 345px
}

body .invitation-card-section .envelope-back {
    background: linear-gradient(145deg, #dbe8cd, #bfd3b7 58%, #b2caa9);
    border-radius: 7px;
    height: 220px;
    box-shadow: 0 16px 27px #263c2430
}

body .invitation-card-section .envelope-back::before {
    background: linear-gradient(135deg, transparent 49.5%, #819d7d45 50%, transparent 50.5%), linear-gradient(45deg, transparent 49.5%, #f8faef7d 50%, transparent 50.5%);
    content: "";
    inset: 0;
    position: absolute
}

body .invitation-card-section .envelope-front {
    border-color: #d2e1c8 transparent transparent;
    border-width: 117px 172.5px 0;
    filter: drop-shadow(0 6px 5px #31442e1f)
}

body .invitation-card-section .envelope-flap {
    background: linear-gradient(145deg, #e1ecd7, #c3d8b9 76%);
    clip-path: polygon(0 0, 100% 0, 50% 71%);
    height: 220px
}

body .invitation-card-section .envelope-flap::after {
    align-items: center;
    background: radial-gradient(circle at 37% 28%, #557653, #173b27 68%);
    border: 2px solid #b9993f;
    border-radius: 50%;
    box-shadow: 0 3px 8px #1e372766, inset 0 0 0 3px #d9c26955;
    color: #ffe7a0;
    content: "\2665";
    display: flex;
    font-size: 19px;
    height: 55px;
    justify-content: center;
    left: calc(50% - 29px);
    position: absolute;
    top: 94px;
    width: 55px
}

body .invitation-card-section .envelope-seal {
    background: linear-gradient(135deg, #34543a, #183423);
    border: 1px solid #b7963e;
    border-radius: 9px;
    box-shadow: 0 7px 0 #172c1d, 0 11px 18px #263b2561, inset 0 0 0 2px #d7ba5b55;
    color: #fbf1d5;
    font: 500 11px Cinzel, serif;
    gap: 14px;
    height: 52px;
    left: calc(50% - 120px);
    letter-spacing: 1.7px;
    text-transform: uppercase;
    top: 270px;
    width: 240px;
    z-index: 7
}

body .invitation-card-section .envelope-seal::after { display: none }
body .invitation-card-section .envelope-seal i { color: #ead487; font-size: 18px }
body .invitation-card-section .envelope-seal:hover { background: #28462e; transform: translateY(-2px) }

body .invitation-card-section .tap-prompt {
    color: #70806c;
    font-size: 7px;
    letter-spacing: 1.6px;
    margin-top: 6px
}

body .invitation-card-section .envelope-scene.is-open .envelope-seal {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px)
}

body .invitation-card-section .envelope-scene.is-open .wedding-card {
    transform: translateY(-42px) scale(.94)
}

/* Venue section */
body .venue-section {
    background: radial-gradient(circle at 48% 39%, #fffefa 0 26%, #f7f8ef 61%, #e9f0e3 100%);
    color: #29452f;
    padding: 70px max(22px, calc((100% - 380px) / 2)) 24px;
    text-align: center
}

body .venue-section::before,
body .venue-section::after {
    background: radial-gradient(ellipse at 28% 65%, #7f966e 0 13%, transparent 14%), radial-gradient(ellipse at 47% 42%, #bdca9e 0 14%, transparent 15%), radial-gradient(ellipse at 66% 18%, #8ca075 0 13%, transparent 14%);
    border-radius: 0;
    height: 165px;
    opacity: .75;
    width: 135px
}

body .venue-section::before { left: -24px; top: -9px; transform: rotate(-21deg) }
body .venue-section::after { bottom: -22px; left: auto; right: -27px; top: auto; transform: rotate(146deg) }
body .venue-section .eyebrow { color: #b28d33; letter-spacing: 2.3px; position: relative; z-index: 1 }
body .venue-section h2 { font-size: clamp(2.75rem, 11vw, 4rem); margin-bottom: 19px; position: relative; z-index: 1 }
body .venue-section > h3 {
    color: #284530;
    font: 500 clamp(1.45rem, 6vw, 2rem)/1.08 "Cormorant Garamond", Georgia, serif;
    margin: 0 0 27px
}

body .venue-section h3::after { bottom: -16px; left: 31%; right: 31%; width: auto }
body .venue-info { border: 0; display: grid; gap: 8px }
body .venue-info > div {
    background: #fffefa;
    border: 1px solid #e6eadc;
    border-radius: 8px;
    box-shadow: 0 5px 13px #2c422112;
    gap: 12px;
    padding: 9px 12px;
    text-align: left
}

body .venue-info > div:last-child { border: 1px solid #e6eadc }
body .venue-info i {
    background: #22462f;
    border: 2px solid #c2a24d;
    box-shadow: inset 0 0 0 3px #d9c36d33;
    color: #ffe8a3;
    height: 33px;
    width: 33px
}

body .venue-info strong { color: #b48d35; font-size: 7px; letter-spacing: 1.25px }
body .venue-info span { color: #3e5341; font: 400 10px/1.35 "Cormorant Garamond", Georgia, serif; margin-top: 1px }
body .venue-actions { gap: 10px; margin: 14px 0 }
body .venue-actions a {
    align-items: center;
    background: linear-gradient(135deg, #294b31, #0d2b1d);
    border-color: #bb9639;
    border-radius: 6px;
    box-shadow: 0 4px 8px #1b352248, inset 0 0 0 1px #dbbf6252;
    color: #fff4d8;
    display: flex;
    font-size: 8px;
    gap: 8px;
    justify-content: center;
    min-height: 40px
}

body .venue-actions a i {
    align-items: center;
    border: 1px solid #d5b85b;
    border-radius: 50%;
    color: #f7d878;
    display: inline-flex;
    font-size: 10px;
    height: 23px;
    justify-content: center;
    width: 23px
}

body .venue-actions a:hover { background: #3c633f; color: #fff4d8 }
body .map-frame { border-color: #d7dfd0; border-radius: 8px; height: 185px; position: relative }
body .venue-signoff {
    color: #728171;
    font: 600 7px Cinzel, serif;
    letter-spacing: 1.2px;
    margin: 29px 0 0;
    text-transform: uppercase
}

body .venue-signoff i { color: #c9a640; font-size: 8px; margin: 0 4px }

/* Keep scrolling smooth on phones by avoiding continuous repaint-heavy effects. */
body .rings,
body .hero::after,
body.motion-ready .is-revealed .gallery-card.is-active,
body.motion-ready .is-revealed .program-timeline li::after,
body .invitation-card-section .envelope-scene,
body .envelope-scene:not(.is-open) .envelope-seal {
    animation: none
}

.story-section,
.gallery-section,
.invitation-card-section,
.venue-section,
.program-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 620px
}

/* Minimal ivory invitation cover */
body .opening-section {
    background: radial-gradient(circle at 50% 49%, #ffffff 0%, #fbf8f3 43%, #eee8e0 100%);
    padding: 24px;
}

body .opening-section::after { display: none; }

body .opening-panel {
    background: linear-gradient(135deg, #fffefc, #f8f2ea);
    box-shadow: 0 14px 20px rgba(73, 55, 29, .17), inset 0 0 20px rgba(184, 139, 61, .06);
    min-height: 345px;
    overflow: visible;
    padding: 38px 42px 26px;
    width: min(100%, 308px);
}

body .opening-panel::before {
    background: none;
    border: 1px solid #9b6d25;
    box-shadow: inset 0 0 0 1px #f3dfae, 0 0 0 1px #e3c277;
    content: "";
    inset: 0;
    position: absolute;
}

body .opening-panel::after { display: none; }

.opening-heart {
    background: #faf7f1;
    color: #a9792c;
    font-size: 12px;
    left: 50%;
    padding: 0 6px;
    position: absolute;
    top: -6px;
    transform: translateX(-50%);
    z-index: 2;
}

.opening-sprig {
    fill: none;
    height: 53px;
    margin: 10px 0 15px;
    overflow: visible;
    stroke: #a9792c;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.25;
    width: 88px;
    z-index: 1;
}

body .opening-names {
    color: #9a6d27;
    display: grid;
    font: 500 clamp(2rem, 8.8vw, 2.45rem)/.82 Cinzel, serif;
    gap: 11px;
    letter-spacing: .27em;
    margin: 0;
    padding-left: .27em;
    text-transform: uppercase;
}

body .opening-names em {
    color: #a87931;
    font: 400 1.5rem/.45 "Cormorant Garamond", Georgia, serif;
    letter-spacing: 0;
    padding-left: 0;
}

body .opening-names span:last-child { color: #2e2c2b; }

body .ornament {
    align-items: center;
    background: none;
    display: flex;
    height: 16px;
    justify-content: center;
    margin: 13px 0 9px;
    width: 135px;
}

body .ornament::before,
body .ornament::after {
    background: linear-gradient(90deg, transparent, #d1b277);
    content: "";
    height: 1px;
    width: 59px;
}

body .ornament::after { background: linear-gradient(90deg, #d1b277, transparent); }
body .ornament i { background: #aa7d35; height: 4px; margin: 0 7px; transform: rotate(45deg); width: 4px; }

body .open-btn {
    align-items: center;
    background: linear-gradient(135deg, #fffefa, #f9f3eb);
    border: 1px solid #a97d36;
    box-shadow: 0 5px 8px rgba(84, 58, 25, .22), inset 0 0 0 2px rgba(255, 255, 255, .9);
    color: #8c6427;
    font: 500 10px/1 Cinzel, serif;
    gap: 15px;
    letter-spacing: 1.65px;
    margin-top: 2px;
    min-width: 216px;
    padding: 12px 15px;
}

body .open-btn i { font-size: 11px; }
body .open-btn:hover { background: #a87a32; color: #fffaf0; transform: translateY(-2px); }

@media (max-width: 360px) {
    body .opening-panel { min-height: 335px; padding-inline: 28px; width: min(100%, 290px); }
    body .opening-names { font-size: 1.85rem; }
}

/* Framed photo cover for the first inner invitation section */
body .hero {
    align-items: flex-end;
    background: linear-gradient(180deg, rgba(32, 22, 10, .04) 17%, rgba(22, 15, 8, .12) 42%, rgba(12, 10, 7, .94) 82%, #11100d 100%), url("../images/couple02.jpg") center 24% / cover;
    isolation: isolate;
    min-height: 100svh;
    padding: 0 26px 17px;
}

body .hero::before {
    border: 1px solid rgba(205, 163, 68, .8);
    box-shadow: inset 0 0 0 1px rgba(84, 58, 18, .4);
    content: "";
    inset: 12px 7px;
    pointer-events: none;
    position: absolute;
    z-index: 1;
}

body .hero::after {
    animation: none;
    background: linear-gradient(90deg, rgba(196, 150, 52, .65) 0 23px, transparent 23px calc(100% - 23px), rgba(196, 150, 52, .65) calc(100% - 23px)) top 11px left 7px / 100% 1px no-repeat,
                linear-gradient(90deg, rgba(196, 150, 52, .65) 0 23px, transparent 23px calc(100% - 23px), rgba(196, 150, 52, .65) calc(100% - 23px)) bottom 11px left 7px / 100% 1px no-repeat;
    content: "";
    inset: 0;
    pointer-events: none;
    transform: none;
    z-index: 1;
}

body .hero-card {
    max-width: 420px;
    padding: 0 6px;
    text-align: center;
    width: 100%;
    z-index: 2;
}

body .hero .eyebrow {
    color: #d5ae58;
    font: 500 9px/1 Cinzel, serif;
    letter-spacing: 3.25px;
    margin: 0;
}

.hero-ornament {
    color: #d5ae58;
    font-size: 11px;
    line-height: 1;
    margin: 9px 0 11px;
}

body .hero h2 {
    color: #fffaf0;
    font: 400 clamp(2.35rem, 11.5vw, 4.3rem)/.95 "Cormorant Garamond", Georgia, serif;
    letter-spacing: -.02em;
    margin: 0;
    text-shadow: 0 2px 11px rgba(0, 0, 0, .48);
}

body .hero h2 span { color: #d2a644; font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; }
body .hero-line { margin: 18px auto 15px; width: 76px; }

body .date { color: #f4e9d1; font: 500 8px/1.7 Cinzel, serif; letter-spacing: 2.1px; margin: 0; text-transform: uppercase; }
body .date strong, body .date span { display: block; }
body .date strong { color: #d4aa50; font-size: 10px; font-weight: 600; letter-spacing: 4px; }
body .date span { font-size: 7px; letter-spacing: 2.25px; margin-top: 3px; }

body .scroll-cue { align-items: center; color: #d7ae58; flex-direction: column; font: 500 8px/1 Cinzel, serif; gap: 7px; letter-spacing: 2px; margin-top: 23px; }
body .scroll-cue i { font-size: 14px; }

body .music-toggle {
    background: #34240f;
    border: 1px solid rgba(219, 180, 83, .65);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .34);
    color: #f5e5b8;
    height: 39px;
    right: 20px;
    top: 26px;
    width: 39px;
    z-index: 4;
}

@media (min-width: 700px) {
    body .hero { max-width: 600px; margin: auto; }
}

/* Traditional gold countdown panel */
body .countdown-section {
    background: radial-gradient(circle at 50% 49%, rgba(255, 253, 242, .88), rgba(250, 223, 170, .68)), linear-gradient(135deg, #f5d89e, #fff4d8 46%, #f0cb8a);
    color: #6c371c;
    min-height: 605px;
    overflow: hidden;
    padding: 63px 17px 35px;
    position: relative;
}

body .countdown-section::before {
    background: radial-gradient(circle at 2px 2px, rgba(168, 103, 22, .13) 0 1px, transparent 1.4px) 0 0 / 16px 16px;
    border: 1px solid #b77b22;
    box-shadow: inset 0 0 0 6px rgba(255, 245, 215, .45), inset 0 0 42px rgba(166, 96, 18, .12);
    content: "";
    inset: 11px;
    pointer-events: none;
    position: absolute;
}

body .countdown-section::after {
    color: rgba(152, 91, 20, .48);
    content: "❧                                           ❧";
    font-size: 72px;
    left: -14px;
    letter-spacing: 110px;
    position: absolute;
    top: 27px;
    transform: rotate(22deg);
    white-space: nowrap;
}

body .countdown-section > * { position: relative; z-index: 1; }

.countdown-top-ornament {
    color: #ae701c;
    font-size: 20px;
    line-height: 1;
    margin: -26px auto 52px;
    width: max-content;
}

.countdown-top-ornament::before,
.countdown-top-ornament::after {
    background: linear-gradient(90deg, transparent, #bb7c27);
    content: "";
    height: 1px;
    position: absolute;
    top: 9px;
    width: 88px;
}
.countdown-top-ornament::before { right: calc(50% + 14px); }
.countdown-top-ornament::after { background: linear-gradient(90deg, #bb7c27, transparent); left: calc(50% + 14px); }

body .countdown-section .eyebrow { color: #6f3c1e; font: 500 11px/1 Cinzel, serif; letter-spacing: 7px; margin: 0 0 17px; }
body .countdown-section h2 { color: #bb7520; font: 500 clamp(2.35rem, 11vw, 4.6rem)/.9 Cinzel, serif; letter-spacing: .08em; margin: 0; text-transform: uppercase; }

.countdown-divider { color: #b36d1a; font-size: 16px; line-height: 1; margin: 20px auto 24px; }
.countdown-divider::before, .countdown-divider::after { background: linear-gradient(90deg, transparent, #bb7c27); content: ""; display: inline-block; height: 1px; margin: 0 11px 5px; width: 60px; }
.countdown-divider::after { background: linear-gradient(90deg, #bb7c27, transparent); }

body .countdown-grid { gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 510px; }
body .countdown-grid div {
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 252, 239, .94), rgba(255, 239, 203, .86));
    border: 2px solid #c98a2b;
    border-radius: 33px 33px 13px 13px;
    box-shadow: 0 5px 10px rgba(105, 57, 12, .26), inset 0 0 0 4px rgba(255, 255, 255, .6);
    display: flex;
    flex-direction: column;
    min-height: 180px;
    padding: 16px 6px 13px;
    position: relative;
}

body .countdown-grid div::before { border: 1px solid rgba(194, 132, 39, .27); border-radius: 28px 28px 8px 8px; content: ""; inset: 5px; pointer-events: none; position: absolute; }
body .countdown-grid i { color: #ad6d1e; font-size: 21px; height: 26px; margin-bottom: 7px; text-shadow: 0 1px #fff0c8; }
body .countdown-grid strong { color: #7e1f1a; font: 500 clamp(2.9rem, 12vw, 4.1rem)/.93 "Cormorant Garamond", Georgia, serif; }
body .countdown-grid b { color: #b67421; font-size: 8px; font-weight: 400; line-height: 1; margin: 10px 0 7px; }
body .countdown-grid span { color: #92541d; font: 500 10px/1 Cinzel, serif; letter-spacing: 3px; margin: 0; }
body .countdown-message { color: #8b551f; font-family: "Cormorant Garamond", Georgia, serif; font-size: 15px; margin: 18px 0 0; }

.countdown-lotus { color: #b86c48; font-size: 36px; line-height: 1; margin: 16px auto -13px; text-shadow: 0 1px #fff2ce; }

@media (min-width: 520px) {
    body .countdown-section { min-height: 520px; }
    body .countdown-grid { grid-template-columns: repeat(4, 1fr); }
    body .countdown-grid div { min-height: 205px; }
}

/* Soft floral timeline for Our Story */
body .story-section {
    background: radial-gradient(circle at 6% 4%, rgba(224, 191, 125, .22) 0 2px, transparent 3px) 0 0 / 21px 21px, radial-gradient(circle at 96% 57%, rgba(222, 185, 128, .16) 0 2px, transparent 3px) 0 0 / 24px 24px, linear-gradient(135deg, #fffdf8, #f8f0e4);
    color: #6b3d28;
    padding: 24px 22px 26px;
    text-align: center;
}

body .story-section::before,
body .story-section::after { background: none; border: 1px solid rgba(180, 127, 49, .3); border-radius: 50%; height: 150px; opacity: 1; width: 150px; }
body .story-section::before { left: -92px; top: 74px; }
body .story-section::after { right: -101px; top: 310px; transform: none; }

.story-portrait { margin: 0 auto 15px; max-width: 205px; padding: 5px; position: relative; width: 69%; }
.story-portrait::before, .story-portrait::after { color: #bc8331; content: "❀"; font-size: 27px; position: absolute; top: 50%; z-index: 1; }
.story-portrait::before { left: -16px; transform: rotate(-25deg); }
.story-portrait::after { right: -16px; transform: rotate(25deg); }
.story-portrait figure { border: 1px solid #bc8230; border-radius: 50% 50% 46% 46%; box-shadow: 0 6px 13px rgba(83, 48, 22, .19); margin: 0; overflow: hidden; padding: 4px; }
.story-portrait img { border-radius: 50% 50% 44% 44%; display: block; height: 184px; object-fit: cover; object-position: center 24%; width: 100%; }

body .story-section .eyebrow { color: #af7430; font: 500 8px/1 Cinzel, serif; letter-spacing: 2.6px; margin: 0 0 6px; }
body .story-section h2 { color: #773a2d; font: 400 clamp(2.5rem, 11vw, 3.45rem)/.9 "Cormorant Garamond", Georgia, serif; font-style: italic; margin: 0; }
.story-intro { color: #765b51; font: 400 11px/1.55 "Cormorant Garamond", Georgia, serif; margin: 13px 0 17px; }
.story-intro i { color: #bf8031; font-size: 8px; }

.story-timeline { display: grid; gap: 7px; margin: 0 auto; max-width: 420px; position: relative; text-align: left; }
.story-timeline::before { background: linear-gradient(#d8a85c, #c3802f, #d8a85c); content: ""; height: calc(100% - 40px); left: 26px; position: absolute; top: 20px; width: 1px; }
.story-timeline article { align-items: flex-start; background: rgba(255, 255, 252, .84); border: 1px solid rgba(194, 148, 78, .16); border-radius: 10px; box-shadow: 0 5px 13px rgba(120, 83, 41, .1); display: grid; gap: 11px; grid-template-columns: 39px 1fr; min-height: 66px; padding: 11px 10px; position: relative; }
.story-timeline article > i { align-items: center; background: #fffaf0; border: 1px solid #d8aa65; border-radius: 50%; box-shadow: 0 2px 5px rgba(127, 76, 23, .1); color: #bd7a2b; display: flex; font-size: 14px; height: 33px; justify-content: center; position: relative; width: 33px; z-index: 1; }
.story-timeline h3 { color: #b0772d; font: 500 7px/1.2 Cinzel, serif; letter-spacing: 1.1px; margin: 2px 0 6px; text-transform: uppercase; }
.story-timeline p { color: #5e514a; font: 400 9px/1.35 Poppins, sans-serif; margin: 0; }
.story-signoff { align-items: center; color: #7b3d2e; display: flex; font: 400 1.1rem/1 "Cormorant Garamond", Georgia, serif; gap: 8px; justify-content: center; margin: 21px 0 0; }
.story-signoff span { background: linear-gradient(90deg, transparent, #c58d3d); height: 1px; width: 28px; }
.story-signoff span:last-child { background: linear-gradient(90deg, #c58d3d, transparent); }
.story-signoff i { color: #bd7c2f; font-size: 9px; }

@media (min-width: 520px) {
    .story-portrait img { height: 230px; }
    .story-timeline { grid-template-columns: 1fr 1fr; }
    .story-timeline::before { display: none; }
}

/* Botanical photo gallery */
body .gallery-section {
    background: radial-gradient(circle at 0 2%, rgba(207, 221, 196, .5) 0 4px, transparent 5px) 0 0 / 23px 23px, radial-gradient(circle at 100% 98%, rgba(207, 221, 196, .45) 0 4px, transparent 5px) 0 0 / 23px 23px, linear-gradient(135deg, #fffef9, #f4f7ec 55%, #fdfbf4);
    color: #415340;
    padding: 38px 0 35px;
    position: relative;
}

body .gallery-section::before, body .gallery-section::after { color: rgba(96, 129, 82, .27); content: "❧"; font-size: 100px; position: absolute; top: -19px; }
body .gallery-section::before { left: -25px; transform: rotate(-32deg); }
body .gallery-section::after { right: -25px; transform: rotate(32deg) scaleX(-1); }
body .gallery-section > * { position: relative; z-index: 1; }
body .gallery-section .eyebrow { color: #bd8b35; font: 500 9px/1 Cinzel, serif; letter-spacing: 3px; margin: 0 0 11px; }
body .gallery-section h2 { color: #3d543d; font: 400 clamp(3rem, 13vw, 4.35rem)/.84 "Great Vibes", cursive; margin: 0; }
body .gallery-heart { color: #d4a642; display: block; font-size: 11px; margin: 19px auto 7px; }
body .gallery-heart::before, body .gallery-heart::after { background: linear-gradient(90deg, transparent, #d9c98f); content: ""; display: inline-block; height: 1px; margin: 0 9px 4px; width: 48px; }
body .gallery-heart::after { background: linear-gradient(90deg, #d9c98f, transparent); }
.gallery-intro { color: #627161; font: 400 11px/1.45 Poppins, sans-serif; margin: 0; }
.gallery-sprig { color: #79926e; font-size: 23px; letter-spacing: 7px; line-height: 1; margin: 14px 0 15px; transform: rotate(180deg); }

body .gallery-shell { background: none; box-shadow: none; min-height: 285px; }
body .gallery-track { -ms-overflow-style: none; gap: 9px; overflow: hidden; padding: 0 calc(50% - 74px); scroll-behavior: auto; scrollbar-width: none; touch-action: none; }
body .gallery-track::-webkit-scrollbar { display: none; }
body .gallery-track.is-auto-scrolling { scroll-snap-type: none; }
body .gallery-card { aspect-ratio: 4 / 5; border: 2px solid #fffdf7; border-radius: 8px; box-shadow: 0 6px 12px rgba(62, 69, 44, .25); flex: 0 0 144px; height: auto; opacity: .58; transform: scale(.91); transition: opacity .7s ease, transform .9s cubic-bezier(.22, .8, .25, 1), border-color .6s ease, box-shadow .7s ease; user-select: none; }
body .gallery-card.is-active { border-color: #dcb353; box-shadow: 0 10px 17px rgba(83, 69, 32, .31); opacity: 1; transform: scale(1.02); }
body .gallery-card img { object-position: center; }
body .gallery-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
body .gallery-track.is-dragging .gallery-card { pointer-events: none; }
body .gallery-arrow { background: #46613e; border: 1px solid #d5af56; box-shadow: 0 3px 7px rgba(44, 56, 32, .34); color: #ffe9a7; height: 30px; width: 30px; }
body .gallery-arrow:hover { background: #6c864f; transform: scale(1.08); }
body .gallery-prev { left: 2px; }
body .gallery-next { right: 2px; }
body .gallery-dots { gap: 6px; margin-top: 17px; }
body .gallery-dots button { background: #cdd9c7; height: 8px; width: 8px; }
body .gallery-dots button.is-active { background: #cda340; box-shadow: 0 0 0 3px #f5f2df; }
.gallery-quote { background: rgba(255, 255, 251, .75); border: 1px solid #e7e0c7; border-radius: 10px; box-shadow: 0 4px 11px rgba(72, 77, 53, .1); color: #53654f; font: 400 15px/1.1 "Cormorant Garamond", Georgia, serif; margin: 26px auto 0; max-width: 322px; padding: 17px 12px 14px; }
.gallery-quote i { color: #d0a74b; display: block; font-size: 13px; margin: 0 0 5px; }
.gallery-quote i:last-child { display: inline; font-size: 7px; margin: 0 0 0 5px; }

@media (min-width: 520px) {
    body .gallery-track { padding: 0 calc(50% - 110px); }
    body .gallery-card, body .gallery-card.is-active { flex: 0 0 240px; height: auto; }
}

/* Keep the gallery's selected-card transition in control after reveal effects run. */
body.motion-ready .is-revealed .gallery-card:nth-of-type(2) { transform: scale(.91); }
body.motion-ready .is-revealed .gallery-card.is-active { animation: none; transform: scale(1); }

/* RSVP */
.sr-only { height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; clip: rect(0, 0, 0, 0); }
body .rsvp-section { background: radial-gradient(circle at 0 13%, rgba(211, 170, 93, .22) 0 2px, transparent 3px) 0 0 / 18px 18px, linear-gradient(135deg, #fffdf8, #f9f0e1); color: #673d2a; overflow: hidden; padding: 23px 18px 27px; position: relative; }
body .rsvp-section::before, body .rsvp-section::after { color: rgba(173, 121, 43, .42); content: "❧"; font-size: 100px; position: absolute; z-index: 0; }
body .rsvp-section::before { left: -26px; top: -22px; transform: rotate(-29deg); }
body .rsvp-section::after { bottom: -36px; right: -29px; transform: rotate(150deg); }
.rsvp-section > * { position: relative; z-index: 1; }
.rsvp-hero { align-items: stretch; display: grid; grid-template-columns: 1.05fr .95fr; margin: 0 auto; max-width: 440px; min-height: 214px; }
.rsvp-copy { background: rgba(255, 253, 247, .88); border: 1px solid #e9d8b5; border-right: 0; padding: 22px 8px 13px; text-align: center; }
.rsvp-copy > i { color: #c38835; font-size: 8px; }
.rsvp-copy .eyebrow { color: #a96930; font: 500 7px/1.3 Cinzel, serif; letter-spacing: 1.5px; margin: 5px 0 9px; }
.rsvp-copy h2 { color: #773a2a; font: 400 1.85rem/.82 "Cormorant Garamond", Georgia, serif; margin: 0; }
.rsvp-copy h2 em { color: #be7b2e; font-family: "Great Vibes", cursive; font-size: 2rem; font-style: normal; }
.rsvp-copy .rsvp-date { color: #914c35; font: 600 7px/1.55 Cinzel, serif; letter-spacing: 1.5px; margin: 14px 0 9px; text-transform: uppercase; }
.rsvp-copy .rsvp-date span { font-size: 6px; letter-spacing: 1.2px; }
.rsvp-copy > p:last-child { color: #735a4b; font: 400 8px/1.45 Poppins, sans-serif; margin: 0 auto; max-width: 116px; }
.rsvp-photo { border: 1px solid #d6ad63; border-left: 0; overflow: hidden; }
.rsvp-photo img { display: block; height: 100%; object-fit: cover; object-position: 56% center; width: 100%; }
.rsvp-reply { align-items: center; background: linear-gradient(100deg, #63263b, #8a253a 67%, #b4733d); border-radius: 20px; box-shadow: 0 4px 10px rgba(85, 37, 28, .28); color: #fff3d9; display: flex; font: 500 8px/1 Cinzel, serif; gap: 9px; justify-content: center; letter-spacing: .6px; margin: 10px auto 13px; max-width: 310px; padding: 11px 10px; }
.rsvp-reply i { color: #ffd075; font-size: 11px; }.rsvp-reply strong { color: #f8d47b; font-size: 8px; font-weight: 500; }
.rsvp-form { background: rgba(255, 254, 251, .91); border: 1px solid #eadfcf; border-radius: 14px; box-shadow: 0 7px 17px rgba(100, 69, 39, .1); margin: auto; max-width: 390px; padding: 16px; }
.rsvp-form h3, .rsvp-form legend, .rsvp-field-label > span { color: #9e6031; font: 500 8px/1 Cinzel, serif; letter-spacing: 1.3px; text-transform: uppercase; }
.rsvp-form h3 { border-bottom: 1px solid #eedfc5; margin: 0 0 10px; padding-bottom: 8px; }.rsvp-form h3 i, .rsvp-form legend i, .rsvp-field-label i { color: #cd8b38; margin-right: 6px; }
.rsvp-form > label:not(.rsvp-field-label) { align-items: center; background: #fffdfa; border: 1px solid #eee3d2; border-radius: 6px; display: flex; margin: 7px 0; padding: 0 10px; }.rsvp-form > label > i { color: #cf8a35; font-size: 10px; width: 18px; }
.rsvp-form input, .rsvp-form textarea, .rsvp-form select { background: transparent; border: 0; color: #5f483d; font: 400 9px Poppins, sans-serif; outline: 0; padding: 10px 2px; width: 100%; }.rsvp-form input::placeholder, .rsvp-form textarea::placeholder { color: #a6998c; }
.rsvp-form fieldset { border: 0; border-top: 1px solid #eedfc5; margin: 13px 0 9px; padding: 10px 0 0; }.rsvp-form legend { padding: 0 5px; }
.rsvp-choice { background: #fffdfa; border: 1px solid #eee3d2; border-radius: 6px; display: block; margin: 6px 0; padding: 9px 11px; }.rsvp-choice input { appearance: none; border: 1px solid #d3a256; border-radius: 50%; height: 13px; margin: 0 9px 0 0; padding: 0; vertical-align: -2px; width: 13px; }.rsvp-choice input:checked { background: #7d2739; box-shadow: inset 0 0 0 3px #fff8df; }.rsvp-choice span { color: #725648; font: 500 8px Cinzel, serif; letter-spacing: .7px; text-transform: uppercase; }.rsvp-choice:has(input:checked) { background: linear-gradient(100deg, #74283b, #9e2d3e); border-color: #9a303e; }.rsvp-choice:has(input:checked) span { color: #fff1cd; }
.rsvp-field-label { display: block; margin-top: 12px; }.rsvp-field-label > span { display: block; margin: 0 0 6px; }.rsvp-field-label select, .rsvp-field-label textarea { background: #fffdfa; border: 1px solid #eee3d2; border-radius: 6px; padding: 9px 10px; }.rsvp-field-label textarea { resize: vertical; }
.rsvp-form button { background: linear-gradient(100deg, #5f2437, #8d2b3b 58%, #b26f3b); border: 0; border-radius: 20px; box-shadow: 0 4px 9px rgba(82, 33, 31, .25); color: #fff4db; cursor: pointer; font: 500 9px Cinzel, serif; letter-spacing: 1.5px; margin-top: 14px; padding: 13px; text-transform: uppercase; width: 100%; }.rsvp-form button i { color: #f8ce70; margin: 0 7px; }
.rsvp-status { color: #8b4c2b; font-size: 10px; margin: 9px 0 0; min-height: 13px; text-align: center; }.rsvp-footer { color: #a06037; font: 500 7px Cinzel, serif; letter-spacing: 1px; margin: 19px 0 0; text-align: center; text-transform: uppercase; }.rsvp-footer i { color: #c98835; font-size: 7px; margin: 0 4px; }

.webzen-credit { align-items: center; background: #171319; border-top: 1px solid #332537; color: #bcb1be; display: flex; font: 400 8px Poppins, sans-serif; gap: 4px; justify-content: center; letter-spacing: .1px; min-height: 31px; text-decoration: none; transition: background .2s ease, color .2s ease; }.webzen-credit i { color: #d43f70; font-size: 8px; }.webzen-credit strong { color: #c7982e; font-weight: 600; }.webzen-credit:hover { background: #251b27; color: #fff0fb; }

/* Unified premium white, champagne and wine palette */
:root { --premium-white: #fffdf9; --premium-ink: #3d342e; --premium-gold: #b78938; --premium-pale-gold: #ead9b7; --premium-wine: #78343d; }
body, body .invitation { background: var(--premium-white); color: var(--premium-ink); }
body .story-section, body .gallery-section, body .invitation-card-section, body .venue-section, body .rsvp-section { background-color: var(--premium-white); background-image: radial-gradient(circle at 7% 12%, rgba(183, 137, 56, .07) 0 2px, transparent 3px), radial-gradient(circle at 94% 85%, rgba(183, 137, 56, .06) 0 2px, transparent 3px); }
body .countdown-section { background: radial-gradient(circle at 50% 48%, #fff 0%, #fffdfa 62%, #fbf4e6); }
body .countdown-section::before { border-color: rgba(183, 137, 56, .62); box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .75), inset 0 0 36px rgba(183, 137, 56, .06); }
body .countdown-section h2, body .story-section h2, body .gallery-section h2, body .venue-section h2 { color: var(--premium-ink); }
body .countdown-section .eyebrow, body .story-section .eyebrow, body .gallery-section .eyebrow, body .venue-section .eyebrow, body .rsvp-copy .eyebrow { color: var(--premium-gold); }
body .countdown-grid div, body .story-timeline article, body .venue-info > div, body .gallery-quote, body .rsvp-form { background: rgba(255, 255, 255, .93); border-color: rgba(183, 137, 56, .23); box-shadow: 0 8px 21px rgba(65, 45, 22, .09); }
body .countdown-grid strong { color: var(--premium-wine); }
body .countdown-grid i, body .countdown-grid b, body .countdown-grid span, .story-timeline h3, .story-timeline article > i, .story-signoff i { color: var(--premium-gold); }
body .gallery-card { border-color: #fff; box-shadow: 0 9px 22px rgba(55, 43, 27, .15); }
body .gallery-card.is-active { border-color: var(--premium-gold); box-shadow: 0 14px 28px rgba(94, 66, 26, .22); }
body .gallery-arrow { background: var(--premium-wine); border-color: var(--premium-gold); }
body .gallery-arrow:hover, body .venue-actions a:hover { background: #914955; }
body .venue-section > h3, body .venue-info span, body .story-copy, .story-intro, .gallery-intro, .gallery-quote { color: #655a50; }
body .venue-actions a, body .rsvp-form button, body .rsvp-reply { background: linear-gradient(105deg, #68313d, #873d46 62%, #b07b37); border-color: var(--premium-gold); }
body .program-section { background: radial-gradient(circle at 83% 8%, rgba(183, 137, 56, .1) 0 4px, transparent 5px), linear-gradient(145deg, #fffefa, #f8f0e2); color: var(--premium-ink); }
body .program-section::after { background: linear-gradient(var(--premium-pale-gold), transparent); }
body .program-section .eyebrow, body .program-date, body .program-timeline time, body .program-timeline p { color: #8b755d; }
body .program-section h2, body .program-timeline h3 { color: var(--premium-ink); }
body .program-timeline li::before { background: var(--premium-gold); border-color: #fffaf0; }
body footer { background: #fffdfa; border-top: 1px solid var(--premium-pale-gold); color: var(--premium-wine); }

/* Botanical white countdown card */
body .countdown-section { background: radial-gradient(circle at 3% 4%, rgba(125, 153, 121, .18) 0 3px, transparent 4px) 0 0 / 26px 26px, radial-gradient(circle at 98% 96%, rgba(125, 153, 121, .15) 0 3px, transparent 4px) 0 0 / 28px 28px, #fffefa; color: #354b38; min-height: 630px; padding: 72px 30px 44px; }
body .countdown-section::before { background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(249,250,244,.88)); border: 1px solid rgba(117, 148, 110, .16); border-radius: 20px; box-shadow: inset 0 0 34px rgba(121, 151, 112, .05); inset: 38px 37px 30px; }
body .countdown-section::after { color: rgba(81, 116, 77, .32); content: "❧"; font-size: 115px; letter-spacing: 0; left: -26px; top: -12px; transform: rotate(-23deg); white-space: normal; z-index: 1; }
body .countdown-section > * { z-index: 2; }
.countdown-top-ornament { color: #bb913e; font-size: 18px; margin: -25px auto 17px; }.countdown-top-ornament::before, .countdown-top-ornament::after { background: linear-gradient(90deg, transparent, #d8c38e); width: 44px; }.countdown-top-ornament::after { background: linear-gradient(90deg, #d8c38e, transparent); }
body .countdown-section .eyebrow { color: #c39643; font-size: 9px; letter-spacing: 3px; margin-bottom: 11px; }
body .countdown-section h2 { color: #304835; font: 500 clamp(2rem, 9.3vw, 3.25rem)/.95 Cinzel, serif; letter-spacing: .06em; }
.countdown-divider { color: #d2a447; font-size: 12px; margin: 15px auto 21px; }.countdown-divider::before, .countdown-divider::after { background: linear-gradient(90deg, transparent, #e6d5ac); margin-bottom: 4px; width: 42px; }.countdown-divider::after { background: linear-gradient(90deg, #e6d5ac, transparent); }
body .countdown-grid { gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 330px; }
body .countdown-grid div { background: #fff; border: 0; border-radius: 16px; box-shadow: 0 8px 18px rgba(57, 72, 53, .12); min-height: 145px; padding: 16px 5px 10px; }
body .countdown-grid div::before { border: 1px solid rgba(141, 166, 134, .08); border-radius: 13px; inset: 4px; }
body .countdown-grid i { align-items: center; background: #f7f9f3; border: 1px solid #e3eadc; border-radius: 50%; box-shadow: 0 2px 5px rgba(67, 91, 63, .1); color: #466542; display: flex; font-size: 14px; height: 36px; justify-content: center; margin: 0 0 7px; width: 36px; }
body .countdown-grid strong { color: #263b2d; font: 500 clamp(2.95rem, 14vw, 4.3rem)/.8 "Cormorant Garamond", Georgia, serif; }.countdown-grid b { color: #cda150; font-size: 7px; margin: 8px 0 6px; }.countdown-grid span { color: #405940; font-size: 8px; letter-spacing: 2.7px; }
body .countdown-message { color: #4e5d50; font: 400 14px/1.45 "Cormorant Garamond", Georgia, serif; margin: 26px auto 0; max-width: 230px; }.countdown-lotus { color: #c99d43; font-size: 25px; margin: 13px auto -7px; }

@media (min-width: 520px) { body .countdown-section { min-height: 560px; } body .countdown-section::before { inset-inline: max(37px, calc((100% - 480px) / 2)); } body .countdown-grid { grid-template-columns: repeat(4, 1fr); max-width: 480px; } body .countdown-grid div { min-height: 172px; } }

/* Keep the countdown consistent with the site-wide champagne, wine and charcoal palette. */
body .countdown-section { background: radial-gradient(circle at 3% 4%, rgba(183, 137, 56, .12) 0 3px, transparent 4px) 0 0 / 26px 26px, radial-gradient(circle at 98% 96%, rgba(183, 137, 56, .1) 0 3px, transparent 4px) 0 0 / 28px 28px, #fffdfa; color: var(--premium-ink); }
body .countdown-section::before { background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,251,244,.88)); border-color: rgba(183, 137, 56, .19); box-shadow: inset 0 0 34px rgba(183, 137, 56, .05); }
body .countdown-section::after { color: rgba(183, 137, 56, .25); }
body .countdown-section h2, body .countdown-grid strong { color: var(--premium-ink); }
body .countdown-grid i { background: #fffaf1; border-color: #ead9b7; color: var(--premium-wine); }
body .countdown-grid span, body .countdown-message { color: #69584c; }
