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

/* ===================== INTRO ENVELOPE ===================== */
body.intro-active { overflow: hidden; }

.intro {
    position: fixed;
    inset: 0;
    z-index: 200;
    background:
        url('../images/countdown-bg.png') center top / 480px auto repeat,
        #f8f3e6;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.intro__column {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 100%;
    overflow: hidden;
    background: transparent;
}

.intro--done {
    opacity: 0;
    pointer-events: none;
}

.intro__glow {
    position: absolute;
    top: -8vh;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(240px, 75%, 420px);
    aspect-ratio: 1;
    pointer-events: none;
    z-index: 4;
    background: radial-gradient(circle at center,
        rgba(255, 220, 160, 0.22) 0%,
        rgba(255, 215, 155, 0.15) 22%,
        rgba(255, 210, 150, 0.08) 44%,
        rgba(255, 205, 145, 0.03) 64%,
        rgba(255, 205, 145, 0) 84%);
    filter: blur(12px);
    opacity: 0;
    animation: introGlowIn 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards,
               introGlowPulse 4.2s ease-in-out 1.9s infinite;
}

@keyframes introGlowIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes introGlowPulse {
    0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
    50%      { opacity: 1;   transform: translateX(-50%) scale(1.06); }
}

.intro__corner {
    position: absolute;
    top: -56px;
    left: 0;
    width: 100%;
    height: auto;
    pointer-events: none;
    user-select: none;
    z-index: 7;
    opacity: 0;
    transform-origin: top center;
    animation: heroTopIn 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards,
               heroTopFloat 6s ease-in-out 1.7s infinite;
    -webkit-mask-image: linear-gradient(
        to right,
        black 0%, black 36%,
        transparent 44%, transparent 56%,
        black 64%, black 100%
    );
            mask-image: linear-gradient(
        to right,
        black 0%, black 36%,
        transparent 44%, transparent 56%,
        black 64%, black 100%
    );
}

.intro__btf {
    position: absolute;
    width: clamp(20px, 5vw, 30px);
    height: auto;
    pointer-events: none;
    user-select: none;
    z-index: 6;
    filter: drop-shadow(0 2px 4px rgba(80, 60, 100, 0.18));
    opacity: 0;
}

@keyframes introBtfFlap {
    0%   { filter: drop-shadow(0 2px 4px rgba(80, 60, 100, 0.18)) brightness(1); }
    100% { filter: drop-shadow(0 2px 4px rgba(80, 60, 100, 0.18)) brightness(0.9); }
}

/* butterfly 1 — lavender, sweep left→right upper */
.intro__btf--1 {
    top: 22%;
    left: 6%;
    animation: introBtfA 16s ease-in-out 1.4s infinite,
               introBtfFlap 0.32s ease-in-out 1.4s infinite alternate;
}
@keyframes introBtfA {
    0%   { opacity: 0; transform: translate(0, 0)        rotate(0deg); }
    8%   { opacity: 1; }
    25%  { transform: translate(20vw, -8vh)  rotate(8deg); }
    50%  { transform: translate(48vw, 4vh)   rotate(-6deg); }
    72%  { transform: translate(70vw, -10vh) rotate(10deg); }
    90%  { opacity: 0.7; transform: translate(85vw, 6vh); }
    100% { opacity: 0; transform: translate(96vw, 0); }
}

/* butterfly 2 — pink, sweep right→left lower */
.intro__btf--2 {
    bottom: 18%;
    right: 8%;
    width: clamp(18px, 4.5vw, 26px);
    animation: introBtfB 18s ease-in-out 3s infinite,
               introBtfFlap 0.28s ease-in-out 3s infinite alternate;
}
@keyframes introBtfB {
    0%   { opacity: 0; transform: translate(0, 0)         rotate(0deg); }
    10%  { opacity: 1; }
    25%  { transform: translate(-18vw, -6vh)  rotate(-7deg); }
    55%  { transform: translate(-45vw, 8vh)   rotate(6deg); }
    78%  { transform: translate(-66vw, -10vh) rotate(-9deg); }
    92%  { opacity: 0.7; }
    100% { opacity: 0; transform: translate(-88vw, 0); }
}

/* butterfly 3 — yellow, diagonal up-right */
.intro__btf--3 {
    bottom: 12%;
    left: 14%;
    width: clamp(16px, 4vw, 24px);
    animation: introBtfC 20s ease-in-out 5s infinite,
               introBtfFlap 0.34s ease-in-out 5s infinite alternate;
}
@keyframes introBtfC {
    0%   { opacity: 0; transform: translate(0, 0)         rotate(0deg); }
    12%  { opacity: 1; }
    35%  { transform: translate(28vw, -22vh) rotate(12deg); }
    60%  { transform: translate(15vw, -42vh) rotate(-8deg); }
    85%  { transform: translate(38vw, -62vh) rotate(10deg); }
    95%  { opacity: 0.7; }
    100% { opacity: 0; transform: translate(60vw, -75vh); }
}

/* butterfly 4 — blue, slow upper sweep right→left */
.intro__btf--4 {
    top: 14%;
    right: 12%;
    width: clamp(20px, 4.8vw, 28px);
    animation: introBtfD 22s ease-in-out 2.2s infinite,
               introBtfFlap 0.36s ease-in-out 2.2s infinite alternate;
}
@keyframes introBtfD {
    0%   { opacity: 0; transform: translate(0, 0) rotate(0deg); }
    10%  { opacity: 1; }
    30%  { transform: translate(-22vw, 12vh)  rotate(-6deg); }
    55%  { transform: translate(-50vw, -4vh)  rotate(8deg); }
    78%  { transform: translate(-68vw, 8vh)   rotate(-5deg); }
    100% { opacity: 0; transform: translate(-86vw, 18vh); }
}

/* butterfly 5 — light lilac, drifts down-right */
.intro__btf--5 {
    top: 30%;
    left: 38%;
    width: clamp(14px, 3.6vw, 22px);
    animation: introBtfE 17s ease-in-out 6.5s infinite,
               introBtfFlap 0.30s ease-in-out 6.5s infinite alternate;
}
@keyframes introBtfE {
    0%   { opacity: 0; transform: translate(0, 0) rotate(0deg); }
    14%  { opacity: 1; }
    30%  { transform: translate(-12vw, 18vh) rotate(-10deg); }
    60%  { transform: translate(-32vw, 38vh) rotate(8deg); }
    90%  { opacity: 0.6; transform: translate(-50vw, 56vh); }
    100% { opacity: 0; transform: translate(-62vw, 68vh); }
}

/* butterfly 6 — pink, low diagonal left→up-right */
.intro__btf--6 {
    bottom: 28%;
    left: 4%;
    width: clamp(18px, 4.4vw, 26px);
    animation: introBtfF 19s ease-in-out 4s infinite,
               introBtfFlap 0.33s ease-in-out 4s infinite alternate;
}
@keyframes introBtfF {
    0%   { opacity: 0; transform: translate(0, 0) rotate(0deg); }
    10%  { opacity: 1; }
    30%  { transform: translate(22vw, -16vh) rotate(10deg); }
    55%  { transform: translate(48vw, -30vh) rotate(-6deg); }
    78%  { transform: translate(72vw, -48vh) rotate(9deg); }
    100% { opacity: 0; transform: translate(90vw, -62vh); }
}

/* butterfly 7 — sage green, slow loop top→down */
.intro__btf--7 {
    top: 6%;
    right: 32%;
    width: clamp(16px, 4vw, 22px);
    animation: introBtfG 24s ease-in-out 7.5s infinite,
               introBtfFlap 0.38s ease-in-out 7.5s infinite alternate;
}
@keyframes introBtfG {
    0%   { opacity: 0; transform: translate(0, 0) rotate(0deg); }
    12%  { opacity: 1; }
    30%  { transform: translate(-10vw, 18vh) rotate(-7deg); }
    55%  { transform: translate(12vw, 38vh)  rotate(8deg); }
    80%  { transform: translate(-6vw, 62vh)  rotate(-9deg); }
    100% { opacity: 0; transform: translate(-22vw, 86vh); }
}

.intro__chandelier {
    position: absolute;
    top: -2vh;
    left: 50%;
    width: clamp(160px, 50%, 280px);
    height: auto;
    pointer-events: none;
    user-select: none;
    z-index: 5;
    transform-origin: 50% 0%;
    transform: translateX(-50%);
    filter: drop-shadow(0 10px 20px rgba(80, 60, 60, 0.18));
    animation: introChandelierIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards,
               introChandelierSway 3.4s ease-in-out 1.6s infinite;
    opacity: 0;
}

@keyframes introChandelierIn {
    from { opacity: 0; transform: translate(-50%, -18px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes introChandelierSway {
    0%   { transform: translateX(-50%) rotate(-3.5deg); }
    50%  { transform: translateX(-50%) rotate(3.5deg); }
    100% { transform: translateX(-50%) rotate(-3.5deg); }
}

@media (prefers-reduced-motion: reduce) {
    .intro__chandelier {
        animation: none !important;
        opacity: 1 !important;
        transform: translateX(-50%) !important;
    }
    .intro__glow {
        animation: none !important;
        opacity: 0.9 !important;
        transform: translateX(-50%) !important;
    }
    .intro__btf {
        animation: none !important;
        opacity: 0 !important;
    }
    .intro__corner {
        animation: none !important;
        opacity: 0.9 !important;
    }
}

.intro__inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.intro__envelope {
    position: relative;
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: introEnvelopeFloat 4s ease-in-out infinite;
}
.intro__envelope--opening {
    animation: none;
    cursor: default;
}

@keyframes introEnvelopeFloat {
    0%, 100% { transform: translateY(0) rotate(-0.4deg); }
    50%      { transform: translateY(-6px) rotate(0.4deg); }
}

.intro__envelope-still {
    position: absolute;
    top: 53%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(90%, 78vh * 0.707);
    max-width: 480px;
    aspect-ratio: 1414 / 2000;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 24px 48px rgba(80, 60, 30, 0.18));
    transition: opacity 0.4s ease;
    opacity: 1;
    z-index: 2;
}
.intro__envelope-still--hide { opacity: 0; }

.intro__envelope-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    background: #f8f3e6;
}
.intro__envelope-video--show { opacity: 1; z-index: 3; }

.intro__hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-style: italic;
    font-size: clamp(1rem, 3.4cqw, 1.15rem);
    color: #6a4e8d;
    letter-spacing: 0.04em;
    text-align: center;
    padding: 8px 16px;
    background: rgba(255, 252, 245, 0.7);
    border-radius: 999px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: introHintBlink 2.4s ease-in-out infinite;
    white-space: nowrap;
}
.intro__hint--hidden {
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: none;
}
@keyframes introHintBlink {
    0%, 100% { opacity: 0.75; }
    50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .intro__envelope { animation: none !important; }
    .intro__hint { animation: none !important; }
}

/* ===================== MUSIC TOGGLE ===================== */
.music-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(184, 156, 208, 0.55);
    background: rgba(255, 252, 245, 0.92);
    color: #6a4e8d;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(80, 60, 30, 0.12);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}
.music-toggle:hover {
    background: #fff;
    color: #4a2d6e;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(80, 60, 30, 0.18);
}
.music-toggle svg {
    width: 24px;
    height: 24px;
}
.music-toggle__on  { display: none; }
.music-toggle__off { display: block; }
.music-toggle.is-playing .music-toggle__on  { display: block; }
.music-toggle.is-playing .music-toggle__off { display: none; }
.music-toggle.is-playing { color: #4a2d6e; background: #fff; }

.music-toggle__pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid rgba(168, 144, 192, 0.6);
    opacity: 0;
    pointer-events: none;
}
.music-toggle.is-playing .music-toggle__pulse {
    animation: musicPulse 1.8s ease-out infinite;
}
@keyframes musicPulse {
    0%   { opacity: 0.7; transform: scale(1); }
    100% { opacity: 0;   transform: scale(1.4); }
}

@media (prefers-reduced-motion: reduce) {
    .music-toggle__pulse { animation: none !important; }
}


html, body {
    width: 100%;
    min-height: 100%;
    background:
        url('../images/countdown-bg.png') center top / 480px auto repeat,
        #f8f3e6;
    font-family: 'Cormorant Garamond', serif;
    color: #3a2f28;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.page {
    width: 100%;
    max-width: 480px;
    background: transparent;
    container-type: inline-size;
    position: relative;
    overflow: hidden;
}

.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    background: transparent;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(140px, 30cqw, 200px) 0 clamp(40px, 8cqw, 64px);
    gap: clamp(8px, 3cqw, 16px);
    margin-bottom: 20px;
}

.hero__top-deco {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    pointer-events: none;
    user-select: none;
    z-index: 3;
    opacity: 0;
    transform-origin: top center;
    animation: heroTopIn 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards,
               heroTopFloat 6s ease-in-out 1.7s infinite;
}

@keyframes heroTopIn {
    from { opacity: 0; transform: translateY(-12px) scale(1.02); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes heroTopFloat {
    0%, 100% { transform: translateY(0)   rotate(-0.4deg) scale(1); }
    33%      { transform: translateY(6px) rotate(0.5deg)  scale(1.012); }
    66%      { transform: translateY(2px) rotate(-0.6deg) scale(1.004); }
}

.hero__bottom-deco {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    pointer-events: none;
    user-select: none;
    z-index: 3;
    opacity: 0;
    transform-origin: bottom center;
    animation: heroBottomIn 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards,
               heroBottomFloat 6.5s ease-in-out 1.85s infinite;
}

@keyframes heroBottomIn {
    from { opacity: 0; transform: translateY(12px) scale(1.02); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes heroBottomFloat {
    0%, 100% { transform: translateY(0)    rotate(0.5deg)  scale(1); }
    33%      { transform: translateY(-7px) rotate(-0.4deg) scale(1.012); }
    66%      { transform: translateY(-2px) rotate(0.6deg)  scale(1.004); }
}

.hero__scroll {
    position: absolute;
    bottom: clamp(80px, 16cqw, 130px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    color: #6a4e8d;
    opacity: 0;
    animation: heroScrollIn 1s cubic-bezier(0.22, 1, 0.36, 1) 2.6s forwards;
}

.hero__scroll-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-style: italic;
    font-size: clamp(0.85rem, 3cqw, 1rem);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    padding-left: 0.32em;
    color: #4a3a5e;
}

.hero__scroll-line {
    display: block;
    width: 1px;
    height: 22px;
    background: linear-gradient(to bottom, rgba(106, 78, 141, 0), rgba(106, 78, 141, 0.6));
}

.hero__scroll svg {
    width: 18px;
    height: 18px;
    animation: heroScrollBounce 1.8s ease-in-out infinite;
}

@keyframes heroScrollIn {
    from { opacity: 0; transform: translate(-50%, 12px); }
    to   { opacity: 0.95; transform: translate(-50%, 0); }
}

@keyframes heroScrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50%      { transform: translateY(4px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .hero__scroll svg { animation: none !important; }
}

.hero__btf {
    position: absolute;
    width: clamp(18px, 5cqw, 26px);
    height: auto;
    pointer-events: none;
    user-select: none;
    z-index: 4;
    filter: drop-shadow(0 2px 4px rgba(80, 60, 100, 0.18));
    opacity: 0;
}
.hero__btf--1 {
    top: 22%;
    left: 8%;
    animation: btfFlyA 14s ease-in-out 1.2s infinite,
               btfWingFlap 0.32s ease-in-out 1.2s infinite alternate;
}
.hero__btf--2 {
    top: 48%;
    right: 6%;
    width: clamp(16px, 4.5cqw, 22px);
    animation: btfFlyB 16s ease-in-out 2.6s infinite,
               btfWingFlap 0.28s ease-in-out 2.6s infinite alternate;
}
.hero__btf--3 {
    top: 64%;
    left: 14%;
    width: clamp(14px, 4cqw, 20px);
    animation: btfFlyC 18s ease-in-out 3.8s infinite,
               btfWingFlap 0.36s ease-in-out 3.8s infinite alternate;
}

@keyframes btfFlyA {
    0%   { opacity: 0; transform: translate(0, 0)       rotate(0deg); }
    8%   { opacity: 1; }
    25%  { transform: translate(40px, -20px)  rotate(8deg); }
    45%  { transform: translate(110px, 30px)  rotate(-6deg); }
    65%  { transform: translate(170px, -8px)  rotate(10deg); }
    85%  { transform: translate(220px, 24px)  rotate(-4deg); }
    92%  { opacity: 0.7; }
    100% { opacity: 0; transform: translate(260px, 0)   rotate(0deg); }
}
@keyframes btfFlyB {
    0%   { opacity: 0; transform: translate(0, 0)         rotate(0deg); }
    10%  { opacity: 1; }
    25%  { transform: translate(-40px, 18px)    rotate(-7deg); }
    50%  { transform: translate(-120px, -22px)  rotate(6deg); }
    72%  { transform: translate(-180px, 12px)   rotate(-9deg); }
    90%  { opacity: 0.8; transform: translate(-230px, -14px) rotate(4deg); }
    100% { opacity: 0; transform: translate(-260px, 0)  rotate(0deg); }
}
@keyframes btfFlyC {
    0%   { opacity: 0; transform: translate(0, 0)        rotate(0deg); }
    10%  { opacity: 1; }
    30%  { transform: translate(60px, -28px)   rotate(9deg); }
    55%  { transform: translate(20px, -56px)   rotate(-5deg); }
    78%  { transform: translate(90px, -82px)   rotate(8deg); }
    92%  { opacity: 0.7; }
    100% { opacity: 0; transform: translate(150px, -110px) rotate(0deg); }
}

@keyframes btfWingFlap {
    0%   { filter: drop-shadow(0 2px 4px rgba(80, 60, 100, 0.18)) brightness(1); }
    100% { filter: drop-shadow(0 2px 4px rgba(80, 60, 100, 0.18)) brightness(0.92); }
}

.hero__glow {
    position: absolute;
    top: -10%;
    left: 50%;
    width: 80cqw;
    max-width: 420px;
    aspect-ratio: 1;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(circle at center,
        rgba(255, 220, 160, 0.22) 0%,
        rgba(255, 215, 155, 0.15) 22%,
        rgba(255, 210, 150, 0.08) 44%,
        rgba(255, 205, 145, 0.03) 64%,
        rgba(255, 205, 145, 0) 84%);
    filter: blur(12px);
    opacity: 0;
    animation: glowIn 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards,
               glowPulse 4.2s ease-in-out 1.9s infinite;
}

@keyframes glowIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes glowPulse {
    0%, 100% { opacity: 0.85; transform: translateX(-50%) scale(1); }
    50%      { opacity: 1;    transform: translateX(-50%) scale(1.05); }
}

.hero__chandelier {
    position: absolute;
    top: 0;
    left: 50%;
    width: 38cqw;
    max-width: 180px;
    height: auto;
    pointer-events: none;
    user-select: none;
    z-index: 2;
    transform-origin: top center;
    transform: translateX(-50%);
    opacity: 0;
    filter: drop-shadow(0 10px 18px rgba(60, 50, 40, 0.18));
    animation: chandelierIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards,
               chandelierSway 3.2s ease-in-out 1.6s infinite;
}

@keyframes chandelierIn {
    from { opacity: 0; transform: translate(-50%, -16px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes chandelierSway {
    0%   { transform: translateX(-50%) rotate(-3.5deg); }
    50%  { transform: translateX(-50%) rotate(3.5deg); }
    100% { transform: translateX(-50%) rotate(-3.5deg); }
}

.hero__branch {
    position: absolute;
    top: 0;
    left: 0;
    width: 60cqw;
    max-width: 290px;
    height: auto;
    opacity: 0;
    pointer-events: none;
    user-select: none;
    z-index: 2;
    transform-origin: top left;
    animation: branchIn 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards,
               branchSway 7s ease-in-out 1.8s infinite;
}

.hero__frame-wrap {
    position: relative;
    width: 92cqw;
    max-width: 440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    opacity: 0;
    transform: scale(0.92);
    animation: frameIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

.hero__frame {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
    user-select: none;
}

.hero__names {
    position: absolute;
    top: 31%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56%;
    text-align: center;
    color: #b08aa0;
    font-family: 'Great Vibes', cursive;
    line-height: 1;
    pointer-events: none;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.hero__names::before {
    content: "";
    position: absolute;
    inset: -45% -30%;
    background: radial-gradient(ellipse 55% 65% at center,
        rgba(250, 246, 255, 0.45) 0%,
        rgba(248, 244, 255, 0.28) 30%,
        rgba(248, 244, 255, 0.14) 55%,
        rgba(248, 244, 255, 0.05) 78%,
        rgba(248, 244, 255, 0) 100%);
    filter: blur(16px);
    z-index: -1;
    pointer-events: none;
    animation: namesGlowPulse 4.5s ease-in-out 1.4s infinite;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes namesGlowPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.06); }
}

.hero__names .name,
.hero__names .amp {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero__names .name {
    display: block;
    font-size: clamp(2.2rem, 9.5cqw, 3.4rem);
    letter-spacing: 0.01em;
}

.hero__names .name:first-child { animation-delay: 1.1s; }
.hero__names .amp { animation-delay: 1.35s; }
.hero__names .name:last-child { animation-delay: 1.6s; }

.hero__names .amp {
    display: block;
    font-family: 'Italianno', 'Great Vibes', cursive;
    font-style: normal;
    font-weight: 400;
    font-size: clamp(2.6rem, 9cqw, 3.6rem);
    margin: -0.05em 0 -0.1em;
    line-height: 0.9;
}

.hero__names .amp.is-visible,
.hero__names .name.is-visible { opacity: 1; }

.hero__date {
    position: absolute;
    left: 50%;
    bottom: clamp(160px, 26%, 240px);
    transform: translate(-50%, 12px);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 6cqw, 2.2rem);
    letter-spacing: 0.42em;
    color: #2a1f18;
    z-index: 2;
    padding-left: 0.42em;
    opacity: 0;
    animation: titleIn 1s cubic-bezier(0.22, 1, 0.36, 1) 1.9s forwards;
    text-align: center;
    white-space: nowrap;
}

.hero__title {
    position: relative;
    margin: 0 auto clamp(16px, 4cqw, 28px);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: clamp(0.95rem, 3.2cqw, 1.15rem);
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: #2a1f18;
    white-space: nowrap;
    padding-left: 0.5em;
    z-index: 2;
    opacity: 0;
    transform: translateY(-32px);
    animation: heroTitleIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
    text-align: center;
}

@keyframes heroTitleIn {
    to { opacity: 1; transform: translateY(-44px); }
}

@keyframes branchIn {
    from { opacity: 0; transform: translate(-12px, -12px) scale(0.96); }
    to   { opacity: 0.85; transform: translate(0, 0) scale(1); }
}

@keyframes branchSway {
    0%, 100% { transform: rotate(0deg); }
    50%      { transform: rotate(0.6deg); }
}

@keyframes frameIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

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

@keyframes titleIn {
    to { opacity: 1; transform: translate(-50%, 0); }
}


.hero__names .amp { animation-name: fadeUpAmp; }

@keyframes fadeUpAmp {
    to { opacity: 0.85; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .hero__chandelier,
    .hero__glow,
    .hero__branch,
    .hero__frame-wrap,
    .hero__names .name,
    .hero__names .amp,
    .hero__date,
    .hero__title {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .hero__chandelier { transform: translateX(-50%) !important; }
    .hero__glow { transform: translateX(-50%) !important; opacity: 0.7 !important; }
    .hero__date { transform: translateX(-50%) !important; }
    .hero__top-deco { animation: none !important; opacity: 1 !important; transform: none !important; }
    .hero__bottom-deco { animation: none !important; opacity: 1 !important; transform: none !important; }
    .hero__btf { animation: none !important; opacity: 0 !important; }
    .hero__names::before { animation: none !important; opacity: 0.7 !important; }
    .hero__branch { opacity: 0.85 !important; }
    .hero__names .amp { opacity: 0.85 !important; }
}

/* ===================== COUNTDOWN ===================== */
.countdown {
    position: relative;
    padding: clamp(80px, 18cqw, 110px) clamp(40px, 11cqw, 64px) clamp(90px, 20cqw, 120px);
    background: transparent;
    color: #2a1f18;
    text-align: center;
    overflow: hidden;
}

.countdown::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../images/frame-border.png') center center / 100% 100% no-repeat;
    pointer-events: none;
    z-index: 0;
    opacity: 0.95;
    filter: brightness(0) saturate(100%) invert(76%) sepia(35%) saturate(380%) hue-rotate(305deg) brightness(98%) contrast(92%);
}

.countdown__deco {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #8a6f55;
}
.deco-line {
    flex: 0 1 90px;
    height: 1px;
    background: linear-gradient(to right, transparent, #c4a980 50%, transparent);
}
.deco-glyph {
    width: 18px;
    height: 18px;
}

.countdown__monogram {
    display: block;
    width: clamp(120px, 36cqw, 180px);
    height: auto;
    margin: 6px auto 14px;
    user-select: none;
    pointer-events: none;
    animation: monogramFloat 5.5s ease-in-out infinite;
    filter: brightness(0) saturate(100%) invert(76%) sepia(35%) saturate(380%) hue-rotate(305deg) brightness(98%) contrast(92%);
    margin-top: -22px;
}

.countdown__monogram.reveal.in-view { opacity: 0.23; }

@keyframes monogramFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-6px) rotate(0.6deg); }
}

.countdown__deco .deco-glyph {
    animation: heartBeat 1.6s ease-in-out infinite;
    transform-origin: center;
}

@keyframes heartBeat {
    0%, 35%, 100% { transform: scale(1); }
    14%           { transform: scale(1.18); }
    24%           { transform: scale(1); }
}

.countdown__scroll {
    animation: scrollBob 4s ease-in-out infinite;
}

@keyframes scrollBob {
    0%, 100% { transform: translateY(0)     rotate(-5deg); }
    50%      { transform: translateY(-14px) rotate(5deg); }
}

.cd-sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 220, 160, 0.95) 0%, rgba(255, 200, 130, 0.6) 40%, rgba(255, 200, 130, 0) 75%);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    animation: sparkleFloat 9s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(255, 210, 140, 0.4);
}
.cd-sparkle--1 { top: 14%; left: 12%; animation-delay: 0s; }
.cd-sparkle--2 { top: 22%; right: 16%; animation-delay: 1.8s; width: 5px; height: 5px; }
.cd-sparkle--3 { top: 52%; left: 8%;  animation-delay: 3.4s; width: 7px; height: 7px; }
.cd-sparkle--4 { top: 60%; right: 10%; animation-delay: 0.9s; }
.cd-sparkle--5 { top: 78%; left: 22%; animation-delay: 2.6s; width: 4px; height: 4px; }
.cd-sparkle--6 { top: 86%; right: 28%; animation-delay: 4.2s; width: 5px; height: 5px; }

@keyframes sparkleFloat {
    0%   { opacity: 0; transform: translateY(0) scale(0.6); }
    20%  { opacity: 1; transform: translateY(-10px) scale(1); }
    50%  { opacity: 0.7; transform: translateY(-26px) scale(1.1); }
    80%  { opacity: 0.4; transform: translateY(-42px) scale(0.8); }
    100% { opacity: 0; transform: translateY(-56px) scale(0.5); }
}

@media (prefers-reduced-motion: reduce) {
    .countdown__monogram,
    .countdown__deco .deco-glyph,
    .cd-num,
    .countdown__scroll,
    .cd-sparkle,
    .rsvp__btf,
    .foot__emblem,
    .foot__monogram-img,
    .foot__spark {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .foot__monogram-img { transform: translate(-50%, -50%) !important; opacity: 0.55 !important; }
}

/* ===================== VENUE ===================== */
.venue {
    position: relative;
    padding: clamp(70px, 16cqw, 100px) clamp(28px, 7cqw, 44px) clamp(80px, 18cqw, 110px);
    background: transparent;
    color: #2a1f18;
    text-align: center;
    overflow: hidden;
}

.venue__deco {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #8a6f55;
}
.venue__deco .deco-line {
    flex: 0 1 90px;
    height: 1px;
    background: linear-gradient(to right, transparent, #c4a980 50%, transparent);
}
.venue__deco .deco-glyph {
    width: 18px;
    height: 18px;
}

.venue__ribbon {
    display: block;
    width: clamp(220px, 78cqw, 360px);
    height: auto;
    margin: 0 auto -8px;
    user-select: none;
    pointer-events: none;
}

.venue__ribbon-bot {
    display: block;
    width: clamp(240px, 80cqw, 380px);
    height: auto;
    margin: -8px auto 0;
    user-select: none;
    pointer-events: none;
}

.venue__title {
    margin: 19px 0 6px;
    font-family: 'Great Vibes', cursive;
    font-weight: 400;
    font-size: clamp(2.6rem, 11cqw, 3.6rem);
    color: #2a1f18;
    line-height: 1;
    letter-spacing: 0.01em;
}

.venue__sub {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-style: italic;
    font-size: clamp(1.05rem, 3.6cqw, 1.25rem);
    color: #6a564a;
    margin-bottom: 32px;
}

.venue__card {
    position: relative;
    width: clamp(280px, 86cqw, 420px);
    margin: 0 auto 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.venue__card-arch {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
    user-select: none;
    margin-bottom: -60px;
}

.venue__card-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: center;
}

.venue__name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(1.6rem, 6.4cqw, 2.15rem);
    color: #14110d;
    line-height: 1.15;
    letter-spacing: 0.01em;
}

.venue__address {
    margin-top: 12px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-style: normal;
    font-size: clamp(1.05rem, 4cqw, 1.25rem);
    color: #14110d;
    line-height: 1.45;
}

.venue__hall {
    margin: 24px auto;
    width: 78%;
    max-width: 320px;
    position: relative;
}
.venue__hall img {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0.9;
    -webkit-mask-image: radial-gradient(ellipse 85% 88% at center,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.92) 45%,
        rgba(0, 0, 0, 0.65) 70%,
        rgba(0, 0, 0, 0.3) 85%,
        rgba(0, 0, 0, 0.1) 94%,
        rgba(0, 0, 0, 0) 100%);
            mask-image: radial-gradient(ellipse 85% 88% at center,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.92) 45%,
        rgba(0, 0, 0, 0.65) 70%,
        rgba(0, 0, 0, 0.3) 85%,
        rgba(0, 0, 0, 0.1) 94%,
        rgba(0, 0, 0, 0) 100%);
    mix-blend-mode: multiply;
}

.venue__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: -28px auto 0;
    padding: 12px 26px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: clamp(0.85rem, 3cqw, 1rem);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #14110d;
    text-decoration: none;
    background: rgba(255, 252, 245, 0.6);
    border: 1px solid #b89f7e;
    border-radius: 999px;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    padding-left: calc(26px + 0.28em);
}
.venue__cta svg {
    width: 16px;
    height: 16px;
    color: #8a6f55;
}
.venue__cta:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(80, 60, 30, 0.12);
}

.venue__deco--bot { margin-top: 36px; }

/* ===================== TIMING ===================== */
.timing {
    position: relative;
    padding: clamp(70px, 16cqw, 100px) 0 clamp(80px, 18cqw, 110px);
    background: transparent;
    color: #2a1f18;
    overflow: hidden;
}

.timing__title {
    font-family: 'Great Vibes', cursive;
    font-weight: 400;
    font-size: clamp(2.8rem, 12cqw, 3.8rem);
    color: #2a1f18;
    line-height: 1;
    letter-spacing: 0.01em;
    margin: -40px 0 30px;
    text-align: center;
}

.timing__wreath {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    aspect-ratio: 1071 / 886;
}

.timing__wreath-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.timing__list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 44%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 56%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(8px, 2.4cqw, 14px);
}

.timing__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.ti-time {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-style: italic;
    font-size: clamp(1.25rem, 5cqw, 1.7rem);
    color: #b08aa0;
    line-height: 1;
    font-variant-numeric: tabular-nums lining-nums;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.ti-time .ti-colon {
    display: inline-block;
    margin: 0 -0.03em;
    color: #c9a3b6;
}

.ti-label {
    margin-top: 4px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: clamp(0.9rem, 3.2cqw, 1.05rem);
    color: #2a1f18;
    letter-spacing: 0.03em;
    line-height: 1.15;
    text-align: center;
}

.timing__title.reveal       { transition-delay: 0.05s; }
.timing__wreath.reveal      { transition-delay: 0.20s; }

/* ===================== DRESS CODE ===================== */
.dress {
    position: relative;
    padding: clamp(70px, 16cqw, 100px) clamp(20px, 5cqw, 36px) clamp(80px, 18cqw, 110px);
    background: transparent;
    color: #2a1f18;
    text-align: center;
    overflow: hidden;
}

.dress__title {
    font-family: 'Great Vibes', cursive;
    font-weight: 400;
    font-size: clamp(2.6rem, 11cqw, 3.6rem);
    color: #2a1f18;
    line-height: 1;
    letter-spacing: 0.01em;
    margin: 0 0 6px;
}

.dress__sub {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-style: normal;
    font-size: clamp(1.05rem, 3.6cqw, 1.25rem);
    color: #2a1f18;
    margin-bottom: 36px;
    line-height: 1.4;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.dress__ribbons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    justify-items: center;
    gap: clamp(28px, 7cqw, 44px) clamp(6px, 1.5cqw, 12px);
    max-width: 460px;
    margin: 0 auto;
}

.dress__ribbon {
    position: relative;
    width: clamp(62px, 18cqw, 92px);
    height: clamp(160px, 44cqw, 210px);
    background: var(--ribbon);
    border-radius: 6px;
    padding-top: clamp(40px, 12cqw, 56px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 0 -8px 16px rgba(0, 0, 0, 0.06),
        0 6px 14px rgba(80, 60, 30, 0.10);
    color: var(--flower);
}

.dress__ribbon::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 16px;
    background: var(--ribbon);
    clip-path: polygon(0 0, 50% 100%, 100% 0);
    z-index: -1;
}

.dress__flower {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(60px, 18cqw, 82px);
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(60, 50, 40, 0.12));
}

.dress__label {
    font-family: 'Great Vibes', cursive;
    font-weight: 400;
    font-size: clamp(1.05rem, 3.8cqw, 1.35rem);
    color: rgba(255, 255, 255, 0.92);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: 0.04em;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.dress__title.reveal    { transition-delay: 0.05s; }
.dress__sub.reveal      { transition-delay: 0.18s; }
.dress__ribbon.reveal:nth-of-type(1) { transition-delay: 0.30s; }
.dress__ribbon.reveal:nth-of-type(2) { transition-delay: 0.40s; }
.dress__ribbon.reveal:nth-of-type(3) { transition-delay: 0.50s; }
.dress__ribbon.reveal:nth-of-type(4) { transition-delay: 0.60s; }
.dress__ribbon.reveal:nth-of-type(5) { transition-delay: 0.70s; }
.dress__ribbon.reveal:nth-of-type(6) { transition-delay: 0.80s; }

/* ===================== DETAILS ===================== */
.details {
    position: relative;
    padding: clamp(20px, 6cqw, 44px) clamp(20px, 5cqw, 36px) clamp(60px, 14cqw, 90px);
    background: transparent;
    color: #2a1f18;
    text-align: center;
    overflow: hidden;
}

.details__title {
    font-family: 'Great Vibes', cursive;
    font-weight: 400;
    font-size: clamp(2.6rem, 11cqw, 3.6rem);
    color: #2a1f18;
    line-height: 1;
    letter-spacing: 0.01em;
    margin: -22px 0 -10px;
}

.details__cards {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
}
.details__cards .details__card + .details__card {
    margin-top: clamp(-40px, -6cqw, -20px);
}

.details__card {
    position: relative;
    width: clamp(340px, 96cqw, 480px);
    aspect-ratio: 1021 / 1094;
}

.details__wreath {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 8px 20px rgba(80, 60, 30, 0.10));
}

.details__card:nth-of-type(1) .details__wreath {
    filter: drop-shadow(0 8px 20px rgba(80, 60, 30, 0.10))
            hue-rotate(28deg) saturate(0.9);
}
.details__card:nth-of-type(2) .details__wreath {
    filter: drop-shadow(0 8px 20px rgba(80, 60, 30, 0.10));
}

.details__inner {
    position: absolute;
    top: 22%;
    left: 22%;
    right: 22%;
    bottom: 22%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.details__icon {
    width: clamp(28px, 7cqw, 36px);
    height: auto;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.details__text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(1rem, 3.8cqw, 1.2rem);
    color: #2a1f18;
    line-height: 1.4;
    text-align: center;
    margin: 0;
}

.details__card:nth-of-type(2) .details__text { color: #2a1f18; }

.details__contact {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: clamp(-30px, -4cqw, -10px) auto 0;
    padding: 14px 22px;
    border: 1px solid rgba(184, 159, 126, 0.5);
    border-radius: 999px;
    background: rgba(255, 252, 245, 0.55);
    text-decoration: none;
    color: #2a1f18;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.details__contact:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(80, 60, 30, 0.10);
}
.details__contact svg {
    width: 22px;
    height: 22px;
    color: #8a6f55;
    flex-shrink: 0;
}
.details__contact-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}
.details__contact-label {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-style: normal;
    font-size: clamp(0.88rem, 3cqw, 1rem);
    color: #2a1f18;
}
.details__contact-num {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(1.05rem, 3.6cqw, 1.2rem);
    letter-spacing: 0.04em;
    color: #14110d;
}

.details__title.reveal { transition-delay: 0.05s; }
.details__card.reveal:nth-of-type(1) { transition-delay: 0.20s; }
.details__card.reveal:nth-of-type(2) { transition-delay: 0.35s; }
.details__contact.reveal { transition-delay: 0.50s; }

/* ===================== RSVP ===================== */
.rsvp {
    position: relative;
    padding: clamp(70px, 16cqw, 100px) clamp(22px, 6cqw, 40px) clamp(80px, 18cqw, 110px);
    background: transparent;
    color: #2a1f18;
    text-align: center;
    overflow: hidden;
}

.rsvp::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../images/rsvp-pattern.png') center top / 100% auto repeat-y;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

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

.rsvp__title {
    font-family: 'Great Vibes', cursive;
    font-weight: 400;
    font-size: clamp(2.6rem, 11cqw, 3.6rem);
    color: #2a1f18;
    line-height: 1;
    margin: 0 0 6px;
}

.rsvp__sub {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-style: normal;
    font-size: clamp(1.05rem, 3.6cqw, 1.22rem);
    color: #2a1f18;
    margin-bottom: 30px;
    line-height: 1.5;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.rsvp__deadline {
    display: inline-block;
    margin-top: 4px;
    font-weight: 700;
    color: #4a2d6e;
    letter-spacing: 0.04em;
}

.rsvp__form {
    display: flex;
    flex-direction: column;
    gap: 22px;
    max-width: 380px;
    margin: 0 auto;
    background: rgba(255, 253, 248, 0.78);
    padding: 26px 22px;
    border-radius: 4px;
    border: 1px solid rgba(196, 169, 128, 0.32);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    box-shadow: 0 10px 28px rgba(80, 60, 30, 0.06);
}

.rsvp__field {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.rsvp__label {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(0.95rem, 3.4cqw, 1.08rem);
    color: #2a1f18;
    line-height: 1.35;
}

.rsvp__hint {
    display: inline-block;
    margin-left: 4px;
    font-weight: 500;
    font-style: italic;
    font-size: 0.9em;
    color: #8a7aa0;
}

.rsvp__field--cond {
    transition: opacity 0.3s ease, filter 0.3s ease;
}
.rsvp__field--cond.is-disabled {
    opacity: 0.45;
    filter: grayscale(0.6);
    pointer-events: none;
    user-select: none;
}
.rsvp__field--cond.is-disabled .rsvp__label {
    color: #8a7a70;
}
.rsvp__field--cond.is-disabled .rsvp__hint {
    color: #b0a8b8;
}
.rsvp__field--cond.is-disabled .rsvp__choice {
    cursor: not-allowed;
}
.rsvp__field--cond.is-disabled .rsvp__choice span {
    background: rgba(245, 240, 235, 0.5);
    color: #a09080;
    border-color: rgba(168, 144, 192, 0.25);
}

.rsvp__input {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: clamp(1rem, 3.4cqw, 1.1rem);
    color: #14110d;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(196, 169, 128, 0.42);
    border-radius: 2px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.rsvp__input::placeholder { color: #a08d7e; font-style: italic; }
.rsvp__input:focus {
    border-color: #b89f7e;
    background: #fff;
}

.rsvp__choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.rsvp__choices--col { flex-direction: column; }

.rsvp__choice {
    position: relative;
    cursor: pointer;
    flex: 1 1 auto;
}
.rsvp__choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.rsvp__choice span {
    display: block;
    text-align: center;
    padding: 10px 12px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: clamp(0.95rem, 3.4cqw, 1.08rem);
    color: #4a3a5e;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(168, 144, 192, 0.42);
    border-radius: 999px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.rsvp__choice:hover span {
    background: rgba(255, 255, 255, 0.95);
    border-color: #b89cd0;
}
.rsvp__choice input:checked + span {
    background: #c8b6dd;
    border-color: #a890c0;
    color: #3a2a5a;
    box-shadow: 0 4px 10px rgba(120, 100, 160, 0.18);
}

.rsvp__submit {
    margin: 4px auto 0;
    padding: 14px 36px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(0.95rem, 3.2cqw, 1.1rem);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #fff;
    background: #b89cd0;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    padding-left: calc(36px + 0.28em);
}
.rsvp__submit:hover {
    background: #a081bf;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(120, 100, 160, 0.22);
}
.rsvp__submit:disabled {
    opacity: 0.6;
    cursor: wait;
}

.rsvp__success {
    margin: 8px 0 0;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1rem, 3.4cqw, 1.15rem);
    color: #6f5a44;
}

.rsvp__thanks {
    max-width: 380px;
    margin: 0 auto;
    padding: 32px 24px;
    background: rgba(255, 253, 248, 0.9);
    border-radius: 4px;
    border: 1px solid rgba(196, 169, 128, 0.32);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    box-shadow: 0 10px 28px rgba(80, 60, 30, 0.08);
    animation: rsvpThanksIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes rsvpThanksIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.rsvp__thanks-title {
    font-family: 'Great Vibes', cursive;
    font-weight: 400;
    font-size: clamp(2.2rem, 8cqw, 2.8rem);
    color: #2a1f18;
    line-height: 1;
    margin: 0 0 14px;
}

.rsvp__thanks-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-style: normal;
    font-size: clamp(1.1rem, 4cqw, 1.3rem);
    color: #14110d;
    line-height: 1.45;
    margin: 8px 0 0;
}

.rsvp__title.reveal     { transition-delay: 0.05s; }
.rsvp__sub.reveal       { transition-delay: 0.16s; }
.rsvp__field.reveal:nth-of-type(1) { transition-delay: 0.28s; }
.rsvp__field.reveal:nth-of-type(2) { transition-delay: 0.40s; }
.rsvp__field.reveal:nth-of-type(3) { transition-delay: 0.52s; }
.rsvp__field.reveal:nth-of-type(4) { transition-delay: 0.64s; }
.rsvp__submit.reveal    { transition-delay: 0.78s; }

/* RSVP butterflies */
.rsvp__btf {
    position: absolute;
    width: clamp(20px, 5.5cqw, 28px);
    height: auto;
    pointer-events: none;
    user-select: none;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(80, 60, 100, 0.18));
    opacity: 0;
}
.rsvp__btf--1 {
    top: 10%;
    left: 8%;
    animation: rsvpBtfA 14s ease-in-out 1s infinite,
               rsvpBtfFlap 0.32s ease-in-out 1s infinite alternate;
}
.rsvp__btf--2 {
    bottom: 8%;
    right: 10%;
    animation: rsvpBtfB 16s ease-in-out 2.6s infinite,
               rsvpBtfFlap 0.28s ease-in-out 2.6s infinite alternate;
}
@keyframes rsvpBtfA {
    0%   { opacity: 0; transform: translate(0, 0) rotate(0deg); }
    10%  { opacity: 1; }
    25%  { transform: translate(50px, -16px)  rotate(8deg); }
    50%  { transform: translate(130px, 10px)  rotate(-6deg); }
    72%  { transform: translate(200px, -14px) rotate(10deg); }
    90%  { opacity: 0.8; transform: translate(260px, 8px); }
    100% { opacity: 0; transform: translate(310px, 0); }
}
@keyframes rsvpBtfB {
    0%   { opacity: 0; transform: translate(0, 0) rotate(0deg); }
    10%  { opacity: 1; }
    25%  { transform: translate(-40px, -18px) rotate(-6deg); }
    55%  { transform: translate(-130px, 12px) rotate(8deg); }
    75%  { transform: translate(-220px, -14px) rotate(-9deg); }
    92%  { opacity: 0.7; }
    100% { opacity: 0; transform: translate(-280px, 0); }
}
@keyframes rsvpBtfFlap {
    0%   { filter: drop-shadow(0 2px 4px rgba(80, 60, 100, 0.18)) brightness(1); }
    100% { filter: drop-shadow(0 2px 4px rgba(80, 60, 100, 0.18)) brightness(0.9); }
}

/* ===================== FOOTER ===================== */
.foot {
    position: relative;
    margin-top: clamp(28px, 6cqw, 48px);
    padding: clamp(40px, 10cqw, 70px) clamp(20px, 5cqw, 36px) 0;
    text-align: center;
    color: #2a1f18;
    background: linear-gradient(180deg,
        rgba(196, 169, 128, 0) 0%,
        rgba(196, 169, 128, 0.10) 18%,
        rgba(196, 169, 128, 0.14) 100%);
    overflow: hidden;
}

.foot::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(140px, 40cqw, 220px);
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(184, 156, 208, 0.5) 50%, transparent);
}

.foot__inner {
    padding-bottom: clamp(28px, 6cqw, 44px);
}

.foot__credit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: clamp(16px, 3cqw, 22px) 0;
    border-top: 1px solid rgba(184, 156, 208, 0.28);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(0.95rem, 3.2cqw, 1.1rem);
    letter-spacing: 0.12em;
    color: #4a3a5e;
}
.foot__credit svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}
.foot__credit a {
    color: #4a2d6e;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px solid rgba(184, 156, 208, 0.5);
    transition: color 0.2s ease, border-color 0.2s ease;
}
.foot__credit a:hover {
    color: #2a1648;
    border-color: #4a2d6e;
}

.foot__frame {
    position: relative;
    width: clamp(220px, 70cqw, 320px);
    aspect-ratio: 574 / 558;
    margin: 0 auto 12px;
}

.foot__emblem {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 6px 16px rgba(80, 60, 30, 0.08));
    animation: emblemBreathe 6s ease-in-out infinite;
    transform-origin: center;
}

@keyframes emblemBreathe {
    0%, 100% { transform: scale(1) rotate(-0.4deg); }
    50%      { transform: scale(1.03) rotate(0.4deg); }
}

.foot__monogram-img {
    position: absolute;
    top: 44%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 42%;
    height: auto;
    pointer-events: none;
    user-select: none;
    filter: brightness(0) saturate(100%) invert(76%) sepia(35%) saturate(380%) hue-rotate(305deg) brightness(98%) contrast(92%);
    opacity: 0.55;
    animation: footMonoFloat 5s ease-in-out infinite;
}

@keyframes footMonoFloat {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50%      { transform: translate(-50%, -52%) scale(1.04); opacity: 0.65; }
}

.foot__spark {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 200, 220, 0.9) 0%, rgba(232, 200, 220, 0.4) 50%, rgba(232, 200, 220, 0) 80%);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    box-shadow: 0 0 8px rgba(232, 200, 220, 0.55);
    animation: footSparkRise 8s ease-in-out infinite;
}
.foot__spark--1 { top: 30%; left: 18%; animation-delay: 0s;   }
.foot__spark--2 { top: 22%; right: 22%; animation-delay: 1.6s; width: 5px; height: 5px; }
.foot__spark--3 { top: 52%; left: 12%; animation-delay: 3s;   width: 7px; height: 7px; }
.foot__spark--4 { top: 60%; right: 16%; animation-delay: 1s;   }
.foot__spark--5 { top: 78%; left: 28%; animation-delay: 4.5s; width: 5px; height: 5px; }

@keyframes footSparkRise {
    0%   { opacity: 0; transform: translateY(0)    scale(0.6); }
    20%  { opacity: 1; transform: translateY(-10px) scale(1); }
    50%  { opacity: 0.7; transform: translateY(-26px) scale(1.1); }
    80%  { opacity: 0.4; transform: translateY(-42px) scale(0.8); }
    100% { opacity: 0; transform: translateY(-58px) scale(0.5); }
}

.foot__date {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-style: normal;
    font-size: clamp(1.1rem, 3.8cqw, 1.3rem);
    color: #14110d;
    margin: 8px 0 8px;
    letter-spacing: 0.04em;
}

.foot__sign {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(0.95rem, 3.2cqw, 1.1rem);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #2a1f18;
    padding-left: 0.28em;
}

.foot__frame.reveal { transition-delay: 0.05s; }
.foot__date.reveal  { transition-delay: 0.20s; }
.foot__sign.reveal  { transition-delay: 0.34s; }

/* venue reveal stagger */
.venue__ribbon.reveal { transition-delay: 0s; }
.venue__title.reveal  { transition-delay: 0.15s; }
.venue__sub.reveal    { transition-delay: 0.28s; }
.venue__card.reveal   { transition-delay: 0.40s; }
.venue__hall.reveal   { transition-delay: 0.55s; }
.venue__cta.reveal    { transition-delay: 0.70s; }

.countdown__title {
    margin: 6px 0 6px;
    font-family: 'Great Vibes', cursive;
    font-weight: 400;
    font-size: clamp(2.6rem, 11cqw, 3.6rem);
    color: #2a1f18;
    line-height: 1;
    letter-spacing: 0.01em;
}

.countdown__sub {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(1rem, 3.4cqw, 1.15rem);
    letter-spacing: 0.42em;
    color: #2a1f18;
    text-transform: uppercase;
    padding-left: 0.42em;
    margin-bottom: 38px;
}

.countdown__grid {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.cd-cell {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 6px;
    min-width: 0;
}

.cd-num {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-style: normal;
    font-size: clamp(1.8rem, 8cqw, 2.4rem);
    line-height: 1;
    color: #14110d;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums lining-nums;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.cd-num.tick { transform: scale(1.08); }

.cd-lbl {
    margin-top: 10px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(0.78rem, 2.6cqw, 0.9rem);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: #2a1f18;
    padding-left: 0.32em;
}

.cd-sep {
    width: 1px;
    align-self: stretch;
    margin: 14px 0;
    background: linear-gradient(to bottom, transparent, rgba(138, 111, 85, 0.4) 50%, transparent);
}

.countdown__note {
    margin-top: 32px;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.05rem, 3.6cqw, 1.25rem);
    color: #2a1f18;
}

.countdown__scroll {
    display: block;
    width: clamp(180px, 62cqw, 300px);
    height: auto;
    margin: 22px auto 4px;
    user-select: none;
    pointer-events: none;
    filter: drop-shadow(0 8px 18px rgba(60, 40, 20, 0.18));
}

.countdown__deco--bot { margin-top: 28px; }

/* reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}
.countdown__monogram.reveal   { transition-delay: 0.02s; }
.countdown__title.reveal      { transition-delay: 0.15s; }
.countdown__sub.reveal        { transition-delay: 0.28s; }
.countdown__grid.reveal       { transition-delay: 0.40s; }
.countdown__note.reveal       { transition-delay: 0.55s; }
.countdown__scroll.reveal     { transition-delay: 0.70s; }

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
