:root {
    --bg-dark: #1a1c18;
    --bg-light: #fdfcf9;
    --bg-light-rgb: 253, 252, 249;
    --primary-green: #4a5043;
    --primary-green-rgb: 74, 80, 67;
    --accent-gold: #c5a37d;
    --text-main: #3d3d3d;
    --text-muted: #8a8a8a;
    --white: #fff;
    --decorative-font: 'Great Vibes', cursive;
    --main-font: Montserrat, sans-serif
}


.ivento-preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.ivento-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.preloader-logo {
    font-family: var(--decorative-font);
    font-size: 3.5rem;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
    animation: preloaderReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.preloader-amp {
    font-size: 1.5rem;
    font-family: var(--main-font);
    color: var(--accent-gold);
    font-style: italic;
}

.preloader-bar-wrap {
    width: 200px;
    height: 1px;
    background: rgba(var(--primary-green-rgb), 0.1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: preloaderReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.preloader-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: var(--accent-gold);
    transform: translateX(-100%);
    animation: preloaderProgress 2.5s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.preloader-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    opacity: 0;
    animation: preloaderReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

body.loading-active {
    overflow: hidden !important;
    height: 100vh;
}

@keyframes preloaderReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes preloaderProgress {
    0% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(100%);
    }
}


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

html {
    scroll-behavior: smooth;
    overflow-x: hidden
}

body {
    font-family: var(--main-font);
    background: var(--bg-light);
    color: var(--white);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    overflow-x: hidden
}


.hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden
}


.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 1
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
    animation: heroZoomIn 18s ease-out forwards
}

@keyframes heroZoomIn {
    0% {
        transform: scale(1.15)
    }

    100% {
        transform: scale(1.03)
    }
}


.overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.1) 60%, rgba(0, 0, 0, 0.55) 100%);
    z-index: 2
}

.overlay-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
    z-index: 3
}

.overlay-grain {
    position: absolute;
    inset: 0;
    z-index: 4;
    opacity: 0.06;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 128px 128px
}


.hero-frame {
    position: absolute;
    inset: 28px;
    z-index: 6;
    pointer-events: none
}

.hero-frame-corner {
    position: absolute;
    width: 60px;
    height: 60px;
    opacity: 0;
    animation: frameCornerIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards
}

.hero-frame-tl {
    top: 0;
    left: 0;
    border-top: 1px solid var(--accent-gold);
    border-left: 1px solid var(--accent-gold);
    animation-delay: 1.2s
}

.hero-frame-tr {
    top: 0;
    right: 0;
    border-top: 1px solid var(--accent-gold);
    border-right: 1px solid var(--accent-gold);
    animation-delay: 1.4s
}

.hero-frame-bl {
    bottom: 0;
    left: 0;
    border-bottom: 1px solid var(--accent-gold);
    border-left: 1px solid var(--accent-gold);
    animation-delay: 1.6s
}

.hero-frame-br {
    bottom: 0;
    right: 0;
    border-bottom: 1px solid var(--accent-gold);
    border-right: 1px solid var(--accent-gold);
    animation-delay: 1.8s
}

@keyframes frameCornerIn {
    0% {
        opacity: 0;
        width: 0;
        height: 0
    }

    50% {
        opacity: 0.7
    }

    100% {
        opacity: 0.45;
        width: 60px;
        height: 60px
    }
}


.hero-content {
    position: relative;
    z-index: 7;
    text-align: center;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px
}


.hero-label {
    font-family: var(--main-font);
    font-size: clamp(0.6rem, 2.5vw, 0.75rem);
    text-transform: uppercase;
    letter-spacing: 0.5em;
    color: var(--accent-gold);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(-15px);
    animation: heroFadeUp 1s ease-out 0.5s forwards
}


.name {
    font-family: var(--decorative-font);
    font-size: clamp(4.5rem, 18vw, 9rem);
    font-weight: 400;
    font-style: normal;
    line-height: 0.85;
    margin: 0;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4), 0 0 80px rgba(0, 0, 0, 0.15);
    color: var(--white);
    opacity: 0;
    transform: translateY(25px);
    letter-spacing: 0.03em
}

.name--first {
    animation: heroFadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards
}

.name--second {
    animation: heroFadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.1s forwards
}


.hero-ampersand-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 24px 0;
    opacity: 0;
    animation: heroFadeUp 1s ease-out 0.9s forwards
}

.hero-ampersand {
    font-family: var(--decorative-font);
    font-size: clamp(4.5rem, 15vw, 6.5rem);
    color: var(--accent-gold);
    display: inline-block;
    line-height: 0.8;
    text-shadow: 0 0 30px rgba(184, 153, 114, 0.5);
}

.hero-ampersand-line {
    display: inline-block;
    width: clamp(50px, 18vw, 110px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    vertical-align: middle
}


.hero-date-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 35px
}

.hero-date-line {
    display: inline-block;
    width: clamp(30px, 10vw, 60px);
    height: 1px;
    background: rgba(255, 255, 255, 0.35)
}

.date {
    margin: 0;
    font-size: clamp(0.75rem, 3vw, 1.05rem);
    letter-spacing: .5em;
    text-transform: uppercase;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    animation: heroFadeUp 1s ease-out 1.3s forwards
}


.hero-countdown {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 50px;
    padding: 16px 36px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    opacity: 0;
    animation: heroFadeUp 1s ease-out 1.6s forwards
}

.hero-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 46px
}

.hero-countdown-number {
    font-family: var(--main-font);
    font-size: clamp(1.1rem, 4vw, 1.6rem);
    font-weight: 300;
    color: var(--white);
    line-height: 1;
    letter-spacing: 0.05em
}

.hero-countdown-label {
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px
}

.hero-countdown-sep {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.25);
    margin-top: -10px;
    font-weight: 200
}


.hero-scroll-down {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: max-content;
    z-index: 8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: heroFadeUp 1s ease-out 2.2s forwards
}

.hero-scroll-text {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    white-space: nowrap;
}

.hero-scroll-arrow {
    animation: heroBounce 2s ease-in-out infinite 3s
}

@keyframes heroBounce {

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

    50% {
        transform: translateY(8px)
    }
}


@keyframes heroFadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(4px)
    }

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




.section-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 10px 40px;
    background: var(--bg-light);
}

.ornament-line {
    display: block;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.ornament-diamond {
    font-size: 0.7rem;
    color: var(--accent-gold);
    opacity: 0.6;
    line-height: 1;
}


.section-wave {
    background: var(--bg-light);
    line-height: 0;
    margin-bottom: -1px;

}

.section-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

.invitation-text {
    background-color: var(--bg-light);
    color: var(--text-main);
    padding: 80px 24px;
    text-align: center
}

.invitation-inner {
    max-width: 600px;
    margin: 0 auto
}

.invitation-heading {
    font-family: var(--decorative-font);
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 30px
}

.invitation-inner p {
    font-size: 1.09rem;
    margin-bottom: 20px;
    color: var(--text-main)
}

.invitation-inner .invitation-signature {
    font-family: var(--decorative-font);
    font-size: 2.2rem !important;
    margin-top: 60px;
    color: var(--primary-green);
    line-height: 1.2;
    position: relative;
    display: block;
}


.invitation-signature::before {
    content: "❤";
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-gold);
    font-size: 1rem;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.reveal-blur-active.invitation-signature::before {
    opacity: 0.6;
    animation: heartFloat 3s ease-in-out infinite;
    animation-delay: 4s;
}

@keyframes heartFloat {

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

    50% {
        transform: translateX(-50%) translateY(-5px);
    }
}


.photo-stack {
    background: var(--bg-light);
    padding: 40px 0 60px;
    overflow: hidden;
}


.gallery-editorial {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 24px;
}


.gallery-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.gallery-label-text {
    font-family: var(--decorative-font);
    font-size: clamp(1.8rem, 6vw, 2.6rem);
    color: var(--primary-green);
    white-space: nowrap;
}

.gallery-label-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    max-width: 80px;
}


.gallery-photo-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.25);
}


.gallery-photo-frame {
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(197, 163, 125, 0.4);
    border-radius: 2px;
    z-index: 5;
    pointer-events: none;
    transition: inset 0.6s ease;
}

.gallery-photo-wrap:hover .gallery-photo-frame {
    inset: 18px;
}


.gallery-photo-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 4;
    pointer-events: none;
}


.gallery-photo-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1.2s ease, transform 12s linear;
    z-index: 1;
    will-change: opacity, transform;
}

.gallery-slide.active {
    opacity: 1;
    z-index: 3;
    transform: scale(1);
}


.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--white);
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    -webkit-tap-highlight-color: transparent;
}

.gallery-arrow.gallery-prev {
    left: 15px;
}

.gallery-arrow.gallery-next {
    right: 15px;
}

.gallery-arrow:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-main);
    transform: translateY(-50%) scale(1.1);
}


.gallery-pager {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.gallery-pip {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-gold);
    opacity: 0.3;
    cursor: pointer;
    transition: opacity 0.4s, transform 0.4s;
}

.gallery-pip.active {
    opacity: 1;
    transform: scale(1.5);
}


.location-photo {
    margin: 0 auto 35px;
    max-width: 500px;
    aspect-ratio: 4/3;

    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 4px solid #fff;
}

.location-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    display: block;
    transition: transform 0.6s ease;
}

.location-photo:hover img {
    transform: scale(1.04);
}

.location-section {
    background-color: var(--bg-light);
    color: var(--text-main);
    padding: 0 24px 60px;
    text-align: center
}

.location-heading {
    font-family: var(--decorative-font);
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--primary-green)
}

.location-address {
    font-size: 1rem;
    max-width: 400px;
    margin: 0 auto 30px;
    color: var(--text-muted)
}

.location-button {
    display: inline-block;
    padding: 14px 35px;
    border: 1px solid var(--primary-green);
    background: transparent;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: .15em;
    font-size: .8rem;
    border-radius: 40px;
    cursor: pointer;
    transition: all .4s ease;
    text-decoration: none
}

.location-button:hover {
    background: var(--primary-green);
    color: var(--white);
    box-shadow: 0 10px 20px #4a504333
}

.calendar-section {
    background-color: var(--bg-light);
    color: var(--text-main);
    padding: 0 24px 80px;
    text-align: center
}

.calendar-heading {
    font-family: var(--decorative-font);
    font-size: 4rem;
    color: var(--text-main);
    margin-bottom: 30px;
    font-weight: 400
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px 10px;
    max-width: 400px;
    margin: 0 auto;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 1.2rem
}

.calendar-day-name {
    font-weight: 400;
    text-transform: uppercase;
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 10px
}

.calendar-day {
    position: relative;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1
}

.calendar-day.active {
    font-weight: 600;
    color: var(--primary-green)
}

.calendar-day.active::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    transform: translate(-50%, -50%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff4d4d' stroke-width='1.5'%3E%3Cpath d='M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: -1;
    opacity: 0;
    animation: drawHeart 1.5s ease-out forwards 0.5s, heartBeat 2s infinite ease-in-out 2s
}

@keyframes drawHeart {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5)
    }

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

.reveal-blur-wrapper .char,
.reveal-blur-wrapper .word,
.reveal-blur-day {
    opacity: 0;
    will-change: transform, opacity, filter
}

@keyframes revealBlur {
    0% {
        opacity: 0;
        filter: blur(10px);
        transform: translateY(10px) scale(1.05)
    }

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

.reveal-blur-active .char,
.reveal-blur-active .word,
.reveal-blur-active.calendar-day,
.reveal-blur-active.reveal-blur-day {
    animation: revealBlur 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards
}

@keyframes heartBeat {
    0% {
        transform: translate(-50%, -50%) scale(1.3)
    }

    15% {
        transform: translate(-50%, -50%) scale(1.5)
    }

    30% {
        transform: translate(-50%, -50%) scale(1.3)
    }

    45% {
        transform: translate(-50%, -50%) scale(1.45)
    }

    60% {
        transform: translate(-50%, -50%) scale(1.3)
    }

    100% {
        transform: translate(-50%, -50%) scale(1.3)
    }
}

@media (max-width: 480px) {
    .calendar-grid {
        gap: 10px 5px
    }

    .calendar-day {
        padding: 5px;
        font-size: 1rem
    }

    .calendar-heading {
        font-size: 3rem
    }
}



.dresscode-section {
    background-color: var(--primary-green);
    padding: 80px 24px 100px;
    text-align: center;
    position: relative;
    z-index: 1;
    color: var(--white);
    margin-bottom: -5px
}

.dresscode-heading {
    font-family: var(--decorative-font);
    font-size: 3rem;
    margin-bottom: 30px
}

.dresscode-text {
    max-width: 500px;
    margin: 0 auto 40px;
    font-weight: 300;
    opacity: .9
}

.dresscode-palette {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.dresscode-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

.dresscode-circle:hover {
    transform: scale(1.15);
}

.rsvp-section {
    background-color: var(--primary-green);
    padding: 10px 24px 80px
}

.rsvp-card-container {
    background: var(--bg-light);
    max-width: 440px;
    margin: 0 auto;
    padding: 48px 36px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15), inset 0 2px 5px rgba(255, 255, 255, 0.8);
    color: var(--text-main);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.rsvp-heading {
    font-family: var(--decorative-font);
    font-size: 2.6rem;
    text-align: center;
    color: var(--primary-green);
    margin-bottom: 4px
}

.rsvp-subtitle {
    text-align: center;
    font-size: .8rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    letter-spacing: .03em
}


.rsvp-field {
    position: relative;
    margin-bottom: 24px;
}

.rsvp-field.has-error .rsvp-input {
    border-color: #e57373;
    background: #fffafa;
}

.rsvp-field.has-error .rsvp-floating-label {
    color: #e57373;
}


.form-shake {
    animation: horizontalShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes horizontalShake {

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

    20%,
    60% {
        transform: translateX(-6px);
    }

    40%,
    80% {
        transform: translateX(6px);
    }
}


.rsvp-field--floating {
    position: relative;
    padding-top: 10px;
}

.rsvp-floating-label {
    position: absolute;
    left: 16px;
    top: 22px;
    font-size: 0.95rem;
    color: #999;
    pointer-events: none;
    transition: 0.3s cubic-bezier(0.25, 1.0, 0.5, 1.0);
    transform-origin: left top;
}

.rsvp-input {
    width: 100%;
    padding: 16px 16px 10px;
    border: 1px solid #e2e2e2;
    border-radius: 14px;
    background: #fdfdfd;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) inset;
}

.rsvp-input:focus {
    border-color: var(--primary-green);
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}


.rsvp-input:focus~.rsvp-floating-label,
.rsvp-input:not(:placeholder-shown)~.rsvp-floating-label {
    top: 2px;
    left: 14px;
    font-size: 0.75rem;
    color: var(--primary-green);
    background: transparent;
    padding: 0 2px;
}

.rsvp-static-label {
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 12px;
    padding-left: 4px;
}

.rsvp-textarea {
    min-height: 90px;
    resize: none;
}

.rsvp-presence-toggle {
    display: flex;
    gap: 10px;
    margin-top: 6px
}

.presence-option {
    flex: 1;
    cursor: pointer
}

.presence-option input {
    display: none
}

.presence-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 14px;
    border: 1.5px solid #e8e8e8;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: #fdfdfd;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.presence-box .emoji {
    font-size: 1.25rem;
    filter: grayscale(1) opacity(0.6);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.presence-box .text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #999;
}

.presence-option input:checked+.presence-box {
    border-color: var(--primary-green);
    background-color: #fff;
    box-shadow: 0 8px 24px rgba(42, 58, 47, 0.12);
    transform: translateY(-4px);
}

.presence-option input:checked+.presence-box .emoji {
    filter: grayscale(0);
    transform: scale(1.15)
}

.presence-option input:checked+.presence-box .text {
    color: var(--primary-green)
}

.rsvp-row {
    display: flex;
    gap: 12px
}

.rsvp-row .rsvp-field {
    flex: 1
}

.rsvp-button {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 18px;
    margin-top: 12px;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 16px;
    text-transform: uppercase;
    letter-spacing: .2em;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 10px 30px rgba(42, 58, 47, 0.2);
}

.rsvp-button:hover {
    background: #1c261f;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(42, 58, 47, 0.3);
}

.rsvp-button:active {
    transform: translateY(1px);
    box-shadow: 0 5px 15px rgba(42, 58, 47, 0.2);
}


.rsvp-button.is-loading .btn-text {
    opacity: 0;
}

.rsvp-button.is-loading {
    pointer-events: none;
    background: #1c261f;
    transform: scale(0.98);
    box-shadow: 0 5px 15px rgba(42, 58, 47, 0.1);
}

.rsvp-button.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    margin-top: -11px;
    margin-left: -11px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: rsvpSpin 0.7s linear infinite;
}

@keyframes rsvpSpin {
    to {
        transform: rotate(360deg);
    }
}


.rsvp-card-container {
    position: relative;
    min-height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rsvp-form-wrap {
    width: 100%;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        filter 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.rsvp-form-wrap.is-hidden {
    opacity: 0;
    transform: translateY(-20px) scale(0.98);
    filter: blur(10px);
    pointer-events: none;
}

.rsvp-success {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.rsvp-success.is-visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}


.rsvp-success-icon-wrap {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.rsvp-success-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(var(--primary-green-rgb, 42, 58, 47), 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    transform: scale(0);
    animation: popInCircle 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
}

.check-icon {
    width: 40px;
    height: 40px;
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: drawCheck 0.6s cubic-bezier(0.25, 1, 0.5, 1) 0.8s forwards;
}

@keyframes popInCircle {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}


.rsvp-success-title {
    font-family: var(--decorative-font);
    font-size: 2.2rem;
    color: var(--primary-green);
    margin-bottom: 14px;
    opacity: 0;
    transform: translateY(30px);
    animation: rsvpReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
}


.rsvp-success-text {
    font-size: 0.92rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.7;
    max-width: 280px;
    opacity: 0;
    transform: translateY(25px);
    animation: rsvpReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1s forwards;
}


.rsvp-promo {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(15px);
    animation: rsvpReveal 1s cubic-bezier(0.22, 1, 0.36, 1) 2.5s forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.rsvp-promo-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.6;
    max-width: 320px;
    opacity: 0.9;
}

.rsvp-promo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--primary-green);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    padding: 8px 18px;
    border: 1px solid rgba(42, 58, 47, 0.1);
    border-radius: 20px;
    transition: all 0.4s ease;
    margin-top: 4px;
}

.rsvp-promo-link:hover {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 58, 47, 0.15);
}

@keyframes rsvpReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rsvp-success-timer {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 24px 0 32px;
    opacity: 0;
    transform: translateY(20px);
    animation: rsvpReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1.3s forwards;
}

.timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 64px;
    padding: 12px 6px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.timer-val {
    font-family: var(--main-font);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-green);
    line-height: 1;
    margin-bottom: 4px;
}

.timer-lab {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    font-weight: 500;
    opacity: 0.8;
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.bottom-spacer {
    height: 1px;
    background: transparent
}

.reveal,
.reveal-heading,
.reveal-text,
.reveal-card,
.reveal-circle {
    will-change: transform, opacity, filter
}

.reveal-heading {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(10px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1)
}

.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(5px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1)
}

.reveal-card {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    filter: blur(12px);
    transition: all 1.1s cubic-bezier(0.19, 1, 0.22, 1)
}

.reveal-circle {
    opacity: 0;
    transform: scale(0);
}

.active.reveal-circle {
    animation: liquidDrop 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes liquidDrop {
    0% {
        opacity: 0;
        transform: scale(0) scaleY(0.3);
        border-radius: 50%;
    }

    30% {
        opacity: 1;
        transform: scale(1.1) scaleY(0.75);
        border-radius: 45% 45% 50% 50%;
    }

    50% {
        transform: scale(0.95) scaleY(1.15);
        border-radius: 50% 50% 45% 45%;
    }

    70% {
        transform: scale(1.05) scaleY(0.95);
    }

    85% {
        transform: scale(0.98) scaleY(1.02);
    }

    100% {
        opacity: 1;
        transform: scale(1) scaleY(1);
        border-radius: 50%;
    }
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    filter: blur(10px);
    transition: all 1.6s cubic-bezier(0.2, 0.8, 0.2, 1)
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    filter: blur(10px);
    transition: all 1.6s cubic-bezier(0.2, 0.8, 0.2, 1)
}

.active.reveal-heading,
.active.reveal-text,
.active.reveal-card,
.active.reveal-circle,
.active.reveal-left,
.active.reveal-right,
.active.reveal {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg) translateX(0);
    filter: blur(0)
}

.delay-1 {
    transition-delay: 100ms
}

.delay-2 {
    transition-delay: 200ms
}

.delay-3 {
    transition-delay: 300ms
}

.location-button,
.rsvp-button {
    transition: transform .3s ease, box-shadow .3s ease !important
}

.location-button:hover,
.rsvp-button:hover {
    transform: translateY(-3px) scale(1.05) !important
}

.hero-img {
    transform-origin: center center;
    will-change: transform
}

@media (max-width: 768px) {
    .timeline-track {
        min-height: auto
    }

    .timeline-item {
        width: 40%
    }

    .rsvp-card-container {
        padding: 40px 20px
    }

    .rsvp-presence-toggle {
        gap: 10px
    }

    .presence-box {
        padding: 15px 5px
    }
}

@media (max-width: 480px) {
    .invitation-heading {
        font-size: 2.5rem
    }

    .dresscode-heading,
    .timeline-heading,
    .location-heading {
        font-size: 2.5rem
    }

    .rsvp-heading {
        font-size: 2.8rem
    }
}


.timeline-section {
    padding: 60px 20px;
    background: transparent;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-heading {
    font-family: var(--decorative-font);
    font-size: 3rem;
    color: var(--primary-green);
    text-align: center;
    margin-bottom: 50px;
}

.timeline-track {
    position: relative;
    padding: 20px 0;
    margin-left: 0;
    padding-left: 60px;
}


.timeline-track::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-gold);
    transform: translateX(-50%) scaleY(0);
    transform-origin: top;
    transition: transform 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-track.active::before {
    transform: translateX(-50%) scaleY(1);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    opacity: 0;
    display: flex;
    flex-direction: column;
}


.timeline-item::before {
    content: '';
    position: absolute;
    left: -35px;

    top: 6px;
    width: 14px;
    height: 14px;
    background: #fff;
    border: 3px solid var(--accent-gold);
    border-radius: 50%;
    z-index: 2;
    transform: translateX(-50%) scale(0);
    box-shadow: 0 0 0 4px #fff;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-delay: inherit;
}

.timeline-item.active::before {
    transform: translateX(-50%) scale(1);
}

.timeline-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.timeline-time {
    font-family: var(--main-font);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-right: 15px;
}

.timeline-title {
    font-family: var(--main-font);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.timeline-desc {
    font-family: var(--main-font);
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.5;
    font-style: italic;
    margin: 0;
}


.timeline-icon-inline {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    fill: var(--primary-green);
}


.music-toggle-btn {
    position: relative;
    margin-top: 40px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    z-index: 20;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;


    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.music-toggle-btn.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}


.music-label {
    position: absolute;
    bottom: -30px;
    left: 50%;
    white-space: nowrap;
    font-family: var(--main-font);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    pointer-events: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
}

.music-toggle-btn.hint-visible .music-label {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.music-toggle-btn svg {
    width: 18px;
    height: 18px;
    position: absolute;
    transition: all 0.4s ease;
}


.music-toggle-btn .icon-pause {
    opacity: 0;
    transform: scale(0.5) rotate(-90deg);
}

.music-toggle-btn .icon-play {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}


.music-toggle-btn.is-playing {
    animation: musicSpin 8s linear infinite;
    background: rgba(var(--primary-green-rgb, 42, 58, 47), 0.8);
    border-color: rgba(var(--accent-gold-rgb, 184, 153, 114), 0.5);
    box-shadow: 0 0 20px rgba(var(--accent-gold-rgb, 184, 153, 114), 0.3);
}


.music-toggle-btn.is-playing .icon-play {
    opacity: 0;
    transform: scale(0.5) rotate(90deg);
}

.music-toggle-btn.is-playing .icon-pause {
    opacity: 1;
    transform: scale(1) rotate(0deg);

    animation: counterSpin 6s linear infinite;
}


.music-toggle-btn.is-playing .music-label {
    opacity: 0;
}

@keyframes musicSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes counterSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}


.music-toggle-btn:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
}

.music-toggle-btn.is-playing:hover {
    box-shadow: 0 0 30px rgba(var(--accent-gold-rgb, 184, 153, 114), 0.5);
}