: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
}
