:root {
    --white: #FFFFFF;
    --snow: #FBF8F3;
    --cloud: #F5EFE6;
    --silk: #EBE3D5;
    --lemon: #E8D397;
    --lemon-soft: #F2E2B6;
    --lemon-mist: #FAF3DF;
    --pink: #F2C9CC;
    --pink-soft: #F8DDDF;
    --pink-mist: #FCEFF0;
    --blue: #A6B5D2;
    --blue-soft: #C7D1E2;
    --blue-mist: #E6ECF4;
    --lavender: #C8B5D6;
    --lavender-soft: #DDD0E5;
    --sage: #ABB9A5;
    --sage-soft: #C4CEC0;
    --sage-deep: #859077;
    --black: #1A1A1A;
    --charcoal: #2D2D2D;
    --graphite: #4A4A4A;
    --stone: #6E6E6E;
    --silver: #9A9A9A;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    color: var(--black);
    background: #FDF9E8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    position: relative;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, #FDF9E8 0%, #F8DFE3 25%, #D1DCEC 55%, #F8F0DC 80%, #FDF9E8 100%);
    pointer-events: none;
}

/* ===== ENVELOPE ===== */
.env-screen {
    position: fixed; inset: 0; z-index: 9999;
    background: linear-gradient(135deg, #C4B0CF 0%, #A6B5D2 50%, #ABB9A5 100%);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
    transition: opacity 1.4s cubic-bezier(.4,0,.2,1), visibility 1.4s;
    overflow: hidden;
}
.env-screen.opened {
    opacity: 0; visibility: hidden; pointer-events: none;
}
.env-screen.opening .envelope {
    animation: envFloat 1.4s cubic-bezier(.4,0,.2,1) forwards 0.4s;
}
.env-screen.opening .env-title,
.env-screen.opening .env-hint {
    animation: envFadeOut 0.6s ease forwards 0.6s;
}
@keyframes envFloat {
    0% { transform: scale(1) translateY(0); opacity: 1; }
    40% { transform: scale(1.08) translateY(-6px); opacity: 1; }
    100% { transform: scale(1.25) translateY(-30px); opacity: 0; }
}

/* Hearts flying out */
.env-heart {
    position: absolute;
    font-size: 18px;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    animation: heartFly 1.6s ease-out forwards;
}
@keyframes heartFly {
    0% { opacity: 1; transform: translate(0, 0) scale(0.5) rotate(0deg); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translate(var(--hx), var(--hy)) scale(1.2) rotate(var(--hr)); }
}
@keyframes envFadeOut {
    to { opacity: 0; transform: translateY(-10px); }
}

.env-box {
    text-align: center; position: relative; z-index: 2;
    animation: envAppear 1s ease both;
}
@keyframes envAppear {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.envelope {
    width: 360px; height: 332px;
    margin: 0 auto 32px; position: relative;
    cursor: pointer; transition: transform 0.4s cubic-bezier(.4,0,.2,1);
    perspective: 900px;
    transform-style: preserve-3d;
    filter: drop-shadow(0 18px 36px rgba(0,0,0,0.22)) drop-shadow(0 4px 10px rgba(0,0,0,0.08));
}
.envelope:hover { transform: scale(1.05) translateY(-4px); }
.envelope:hover .env-half-left { transform: rotateY(-22deg); }
.envelope:hover .env-half-right { transform: rotateY(22deg); }
.env-half {
    position: absolute; top: 0; height: 100%; width: 50%;
    background: linear-gradient(160deg, var(--pink-soft), var(--lavender-soft), var(--blue-soft), var(--pink-soft));
    background-size: 200% 200%;
    animation: heartGradient 6s ease-in-out infinite;
    transition: transform 1.6s cubic-bezier(.55,0,.2,1), opacity 0.8s ease 0.8s;
    backface-visibility: hidden;
}
.env-half-left {
    left: 0;
    transform-origin: right center;
    clip-path: url(#heartLeft);
    box-shadow: inset -8px 0 18px -8px rgba(0,0,0,0.18);
}
.env-half-right {
    right: 0;
    transform-origin: left center;
    clip-path: url(#heartRight);
    box-shadow: inset 8px 0 18px -8px rgba(0,0,0,0.18);
}
@keyframes heartGradient {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}
.env-shine {
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.55) 50%, transparent 65%);
    background-size: 250% 100%;
    animation: heartShine 5s ease-in-out infinite;
    clip-path: url(#heartFull);
    mix-blend-mode: overlay;
    opacity: 0.55;
}
@keyframes heartShine {
    0%, 100% { background-position: 200% 50%; }
    50% { background-position: -100% 50%; }
}
.env-flap { display: none; }
.env-seal {
    position: absolute; top: 52%; left: 50%; transform: translate(-50%, -50%); z-index: 3;
    width: 84px; height: 84px; border-radius: 50%;
    background: linear-gradient(135deg, var(--pink) 0%, var(--lavender) 100%);
    box-shadow: 0 6px 24px rgba(200,181,214,0.5);
    display: flex; align-items: center; justify-content: center;
    animation: sealPulse 2.5s ease-in-out infinite;
    transition: transform 0.6s cubic-bezier(.4,0,.2,1), opacity 0.5s ease;
}
/* Opening animation */
.env-screen.opening .env-half-left {
    transform: rotateY(-165deg) translateX(-6px);
    opacity: 0;
}
.env-screen.opening .env-half-right {
    transform: rotateY(165deg) translateX(6px);
    opacity: 0;
}
.env-screen.opening .env-seal {
    transform: translate(-50%, -50%) scale(2) rotate(180deg);
    opacity: 0;
    animation: none;
}
.env-screen.opening .env-shine { opacity: 0; transition: opacity 0.4s ease; }
@keyframes sealPulse {
    0%, 100% { box-shadow: 0 6px 24px rgba(200,181,214,0.5); }
    50% { box-shadow: 0 6px 24px rgba(200,181,214,0.5), 0 0 0 16px rgba(255,255,255,0.18), 0 0 0 32px rgba(255,255,255,0.06); }
}
.env-seal svg { width: 30px; height: 30px; color: var(--white); }
.env-title {
    font-family: 'Great Vibes', cursive;
    font-size: 42px; color: #FFFFFF;
    text-shadow: 0 2px 16px rgba(0,0,0,0.2);
    margin-bottom: 8px;
}
.env-hint {
    font-size: 16px; color: #FFFFFF; font-weight: 500;
    letter-spacing: 0.14em; margin-top: 12px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: hPulse 2.5s ease-in-out infinite;
}
@keyframes hPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.75; } }

/* ===== HEADER ===== */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 900;
    padding: 18px 32px;
    display: flex; justify-content: center; gap: 28px;
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    background: rgba(255,255,255,0.65);
    border-bottom: 1px solid rgba(235,227,213,0.5);
    transition: all 0.4s; opacity: 0; visibility: hidden;
}
.header.show { opacity: 1; visibility: visible; }
.header.scrolled {
    padding: 13px 32px;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 1px 20px rgba(0,0,0,0.04);
}
.header a {
    font-size: 10px; font-weight: 400;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--charcoal); text-decoration: none;
    padding: 4px 0; position: relative; transition: color 0.3s;
}
.header a::after {
    content: ''; position: absolute;
    bottom: 0; left: 50%; width: 0; height: 1px;
    background: var(--lavender); transition: all 0.3s;
    transform: translateX(-50%);
}
.header a:hover { color: var(--charcoal); }
.header a:hover::after { width: 100%; }


/* ===== MAIN ===== */
.main { opacity: 0; transition: opacity 1.2s cubic-bezier(.4,0,.2,1) 0.2s; }
.main.show { opacity: 1; }

/* ===== COMMON ===== */
.sec { padding: 120px 24px; text-align: center; position: relative; }
.sec-t {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(30px, 5vw, 44px);
    font-weight: 500; color: var(--black);
}
.sec-s {
    font-size: 11px; letter-spacing: 0.3em;
    text-transform: uppercase; color: var(--stone);
    margin-top: 6px;
}
.leaf-line {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; margin: 14px 0;
}
.leaf-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #9E83BD;
    box-shadow: 0 0 8px rgba(158,131,189,0.5);
}
.leaf-dash { width: 28px; height: 1.5px; background: #B89FD2; }

.rv { opacity: 0; transform: translateY(32px); transition: all 1s cubic-bezier(.25,.1,.25,1); }
.rv.vis { opacity: 1; transform: translateY(0); }

/* ===== HERO ===== */
.hero {
    min-height: 100vh; position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.hero-bg {
    position: absolute; inset: 0;
}
.hero-bg img {
    width: 100%; height: 100%; object-fit: cover;
    object-position: center 30%;
    transition: transform 1.2s cubic-bezier(.25,.1,.25,1);
}
.hero-bg:hover img { transform: scale(1.5); }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0.3) 50%,
        rgba(0,0,0,0.55) 100%
    );
}
.hero-content {
    position: relative; z-index: 2;
    text-align: center; color: var(--white);
    padding: 24px;
}
.hero-pre {
    font-size: 12px; letter-spacing: 0.5em;
    text-transform: uppercase; opacity: 0.95;
    margin-bottom: 20px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}
.hero-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(44px, 10vw, 90px);
    font-weight: 400; line-height: 1.1;
    text-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.hero-names .amp {
    display: block; font-family: 'Great Vibes', cursive;
    font-size: 0.35em; opacity: 0.9; margin: 6px 0;
}
.hero-date-row {
    display: flex; align-items: center; justify-content: center; gap: 18px;
    margin-top: 28px;
}
.hero-date-row .hl { width: 50px; height: 1px; background: rgba(255,255,255,0.6); }
.hero-date-txt {
    font-family: 'Jost', sans-serif;
    font-size: 20px; font-weight: 300; letter-spacing: 0.4em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.hero-scroll {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.hero-scroll span {
    font-size: 8px; letter-spacing: 0.3em; text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}
.hero-scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollA 2.5s ease-in-out infinite;
}
@keyframes scrollA {
    0%, 100% { height: 40px; opacity: 1; }
    50% { height: 24px; opacity: 0.3; }
}

/* ===== INTRO ===== */
.intro { background: transparent; padding: 100px 24px; }
.intro-text {
    max-width: 560px; margin: 0 auto;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(18px, 2.8vw, 22px);
    font-style: italic; color: var(--charcoal);
    line-height: 2;
}

/* ===== SCHEDULE ===== */
.schedule { background: transparent; }
.tl { max-width: 460px; margin: 52px auto 0; position: relative; }
.tl::before {
    content: ''; position: absolute;
    left: 50%; top: 0; bottom: 0; width: 1.5px;
    background: linear-gradient(to bottom, transparent, #6B6B6B 12%, #6B6B6B 88%, transparent);
    transform: translateX(-50%);
    opacity: 0.75;
}
.tl-row {
    display: flex; align-items: center; margin-bottom: 36px; position: relative;
}
.tl-time {
    width: 44%; text-align: right; padding-right: 28px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 30px; font-weight: 600; color: var(--black);
}
.tl-dot {
    position: absolute; left: 50%; transform: translateX(-50%);
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--lavender); z-index: 1;
    box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--lavender-soft);
}
.tl-row:nth-child(2) .tl-dot { background: var(--pink); box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--pink-soft); }
.tl-row:nth-child(3) .tl-dot { background: var(--blue); box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--blue-soft); }
.tl-row:nth-child(4) .tl-dot { background: var(--sage); box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--sage-soft); }
.tl-info {
    width: 44%; padding-left: 28px;
    font-size: 14px; color: var(--graphite); line-height: 1.5;
}
.tl-info strong {
    display: block; font-weight: 400;
    font-family: 'Cormorant Garamond', serif;
    font-size: 19px; color: var(--black);
}

/* ===== VENUE ===== */
.venue { background: transparent; }
.venue-grid {
    max-width: 880px; margin: 44px auto 0;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
@media (max-width: 760px) {
    .venue-grid { max-width: 420px; grid-template-columns: 1fr; }
}
.v-card {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 48px 28px; text-align: center;
    border: 1px solid rgba(235,227,213,0.6);
    transition: transform 0.4s, box-shadow 0.4s;
}
.v-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 52px rgba(0,0,0,0.06);
}
.v-icon {
    width: 60px; height: 60px; margin: 0 auto 22px; border-radius: 50%;
    background: var(--lavender-soft);
    display: flex; align-items: center; justify-content: center;
}
.v-icon svg { width: 26px; height: 26px; color: var(--sage-deep); }
.v-type {
    font-size: 9px; letter-spacing: 0.3em;
    text-transform: uppercase; color: var(--sage-deep);
}
.v-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px; font-weight: 500; color: var(--black);
    margin: 4px 0 16px;
}
.v-addr { font-size: 14px; color: var(--graphite); line-height: 1.7; margin-bottom: 22px; }
.v-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 22px; border-radius: 100px;
    border: 1px solid var(--lavender-soft); background: transparent;
    font-family: 'Jost', sans-serif; font-size: 10px;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--sage-deep); text-decoration: none; transition: all 0.3s;
}
.v-btn:hover { background: var(--lavender-soft); border-color: var(--lavender); }

/* ===== COUNTDOWN ===== */
.cd-wrap {
    background: linear-gradient(135deg, #C4B0CF 0%, #A6B5D2 50%, #ABB9A5 100%);
    color: var(--white); text-align: center;
    position: relative; overflow: hidden;
}
.cd-wrap .sec-t { color: var(--white); }
.cd-wrap .sec-s { color: rgba(255,255,255,0.6); }
.cd-wrap .leaf-dot { background: rgba(255,255,255,0.7); }
.cd-wrap .leaf-dash { background: rgba(255,255,255,0.25); }
.cd-row {
    display: flex; justify-content: center; gap: 24px;
    margin-top: 48px; flex-wrap: wrap;
}
.cd-box { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cd-orb {
    width: 100px; height: 100px; border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(4px);
    transition: transform 0.3s, background 0.3s;
    display: grid;
    place-items: center;
}
.cd-orb:hover { transform: scale(1.07); background: rgba(255,255,255,0.22); }
.cd-num {
    font-family: 'Playfair Display', serif;
    font-size: 44px; font-weight: 500; color: var(--white);
    line-height: 100px;
    text-align: center;
    width: 100%;
    margin: 0; padding: 0;
    position: relative;
    top: -3px;
}
.cd-lbl {
    font-size: 11px; letter-spacing: 0.3em; font-weight: 500;
    text-transform: uppercase; color: #FFFFFF;
    text-shadow: 0 1px 4px rgba(0,0,0,0.25);
    margin-top: 8px;
}

/* ===== DRESSCODE ===== */
.dresscode { background: transparent; }
.dc-desc {
    max-width: 520px; margin: 20px auto 0;
    font-size: 15px; line-height: 1.9; color: var(--graphite);
}
.palette {
    display: flex; justify-content: center; gap: clamp(8px, 2.4vw, 28px);
    margin-top: 44px; flex-wrap: nowrap;
    max-width: 700px; margin-left: auto; margin-right: auto;
    padding: 0 16px;
}
.pal-i { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 1 1 0; min-width: 0; }
.pal-c {
    width: clamp(48px, 13vw, 88px); height: clamp(48px, 13vw, 88px);
    clip-path: url(#heartFull);
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.12));
    transition: transform 0.3s, filter 0.3s;
}
.pal-c:hover { transform: scale(1.12) translateY(-3px); filter: drop-shadow(0 8px 18px rgba(0,0,0,0.18)); }
.pal-n {
    font-size: clamp(9px, 1.7vw, 12px); letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--stone);
    white-space: nowrap;
}

/* ===== DETAILS ===== */
.details { background: transparent; }
.det-grid {
    max-width: 700px; margin: 48px auto 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.d-card {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 36px 24px; text-align: center;
    border: 1px solid rgba(235,227,213,0.6);
    transition: transform 0.3s;
}
.d-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.04); }
.d-ic {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--lavender-soft); margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
}
.d-card:nth-child(2) .d-ic { background: var(--pink-soft); }
.d-card:nth-child(3) .d-ic { background: var(--blue-soft); }
.d-card:nth-child(4) .d-ic { background: var(--sage-soft); }
.d-ic svg { width: 20px; height: 20px; color: var(--sage-deep); }
.d-card h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px; font-weight: 500; color: var(--black);
    margin-bottom: 8px;
}
.d-card p { font-size: 13.5px; color: var(--graphite); line-height: 1.75; }

/* ===== RSVP ===== */
.rsvp-sec { background: transparent; }
.rsvp-box {
    max-width: 440px; margin: 44px auto 0;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 48px 36px;
    border: 1px solid rgba(235,227,213,0.6);
}
.fg { margin-bottom: 22px; text-align: left; }
.fg label {
    display: block;
    font-family: 'Jost', sans-serif;
    font-size: 13.5px; font-weight: 400;
    line-height: 1.75; letter-spacing: 0; text-transform: none;
    color: var(--graphite); margin-bottom: 7px;
}
.fg select {
    width: 100%; padding: 13px 16px;
    border: 1px solid var(--silk); border-radius: 10px;
    background: var(--white); font-family: 'Jost', sans-serif;
    font-size: 13.5px; font-weight: 400; line-height: 1.75; color: var(--graphite);
    outline: none; transition: border-color 0.3s;
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239A9A9A' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}
.fg select:focus { border-color: var(--lavender); }
.fg input[type="text"], .fg textarea {
    width: 100%; padding: 13px 16px;
    border: 1px solid var(--silk); border-radius: 10px;
    background: var(--white); font-family: 'Jost', sans-serif;
    font-size: 13.5px; font-weight: 400; line-height: 1.75; color: var(--graphite);
    outline: none; transition: border-color 0.3s;
}
.fg input::placeholder, .fg textarea::placeholder {
    color: var(--stone); font-family: 'Jost', sans-serif;
    font-size: 13.5px; font-weight: 400;
}
.fg input:focus, .fg textarea:focus { border-color: var(--lavender); }
.fg textarea { resize: vertical; min-height: 76px; }
.rg { display: flex; gap: 10px; flex-wrap: wrap; }
.ro { flex: 1; min-width: 110px; }
.ro input { display: none; }
.ro label {
    display: block; padding: 12px 10px;
    border: 1px solid var(--silk); border-radius: 10px;
    text-align: center;
    font-family: 'Jost', sans-serif;
    font-size: 13.5px; font-weight: 400; line-height: 1.75;
    color: var(--graphite);
    cursor: pointer; transition: all 0.3s;
    text-transform: none; letter-spacing: 0;
}
.ro input:checked + label {
    border-color: var(--lavender); color: var(--charcoal);
    background: var(--lavender-soft);
}
.sub-btn {
    width: 100%; padding: 16px; border: none; border-radius: 100px;
    background: linear-gradient(135deg, var(--lavender) 0%, var(--blue) 100%);
    color: var(--white);
    font-family: 'Jost', sans-serif; font-size: 12px;
    font-weight: 300; letter-spacing: 0.22em; text-transform: uppercase;
    cursor: pointer; transition: all 0.3s;
    box-shadow: 0 6px 24px rgba(200,181,214,0.4);
}
.sub-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(200,181,214,0.55);
}
.f-ok { display: none; text-align: center; padding: 28px 0; }
.f-ok.show { display: block; }
.f-ok h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px; color: var(--charcoal);
}
.f-ok p { font-size: 15px; color: var(--stone); margin-top: 6px; }

/* ===== FOOTER ===== */
.foot {
    padding: 80px 24px; text-align: center;
    background: linear-gradient(135deg, #C4B0CF 0%, #A6B5D2 50%, #ABB9A5 100%);
    color: var(--white);
}
.foot-script {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px; font-style: italic; font-weight: 400;
    color: #FFFFFF;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.foot-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px; font-weight: 500;
    margin: 6px 0 4px;
    color: #FFFFFF;
    text-shadow: 0 2px 10px rgba(0,0,0,0.22);
}
.foot-date {
    font-size: 13px; letter-spacing: 0.4em;
    color: #FFFFFF; font-weight: 500;
    text-shadow: 0 1px 6px rgba(0,0,0,0.2);
}

/* ===== FLOATING HEARTS ===== */
.hearts-container {
    position: absolute; inset: 0;
    pointer-events: none; overflow: hidden;
    z-index: 0;
}
.float-heart {
    position: absolute; bottom: -20px;
    opacity: 0;
    animation: floatHeartUp 4s ease-out forwards;
}
.float-heart svg { display: block; }
@keyframes floatHeartUp {
    0% { opacity: 0.7; transform: translateY(0) scale(0.6) rotate(0deg); }
    50% { opacity: 0.5; }
    100% { opacity: 0; transform: translateY(-200px) scale(1) rotate(var(--fhr)); }
}

.foot { position: relative; overflow: hidden; }

/* ===== SCROLL TOP ===== */
.scroll-top {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer; transition: all 0.3s;
    margin-top: 28px;
}
.scroll-top:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-3px);
}
.scroll-top svg { width: 18px; height: 18px; color: rgba(255,255,255,0.85); }

/* ===== MUSIC BUTTON ===== */
.music-btn {
    position: fixed; bottom: 22px; right: 22px;
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(200,181,214,0.4);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 800;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    transition: all 0.3s;
}
.music-btn:hover { transform: scale(1.08); }
.music-btn svg { width: 20px; height: 20px; color: var(--sage-deep); }
.music-btn.playing svg { color: var(--lavender); }
.music-btn.playing { animation: musicPulse 2.5s ease-in-out infinite; }
@keyframes musicPulse {
    0%, 100% { box-shadow: 0 4px 18px rgba(0,0,0,0.08); }
    50% { box-shadow: 0 4px 18px rgba(200,181,214,0.4), 0 0 0 6px rgba(200,181,214,0.1); }
}

/* ===== CALENDAR ===== */
.cal-wrap {
    max-width: 360px; margin: 0 auto;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 18px;
    padding: 28px 24px 22px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 1px solid rgba(235,227,213,0.6);
}
.cal-month {
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px; font-weight: 600;
    color: var(--charcoal);
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}
.cal-grid {
    display: grid; grid-template-columns: repeat(7,1fr);
    gap: 2px; text-align: center;
}
.cal-dow {
    font-family: 'Jost', sans-serif;
    font-size: 11px; font-weight: 400;
    color: var(--sage-deep);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 0;
}
.cal-day {
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px; padding: 7px 0;
    color: var(--charcoal);
    position: relative;
    height: 36px;
    display: flex; align-items: center; justify-content: center;
}
.cal-day.empty { visibility: hidden; }
.cal-day.target {
    color: var(--white);
    font-weight: 700;
    font-size: 17px;
    z-index: 1;
}
.cal-day.target::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E89BA0'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") center/contain no-repeat;
    z-index: -1;
    filter: drop-shadow(0 4px 10px rgba(232,155,160,0.5));
    animation: heartBeat 2.4s ease-in-out infinite;
}
@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    /* Header */
    .header {
        gap: 6px; padding: 10px 10px;
        flex-wrap: nowrap;
        justify-content: center;
    }
    .header a { font-size: 8px; letter-spacing: 0.05em; white-space: nowrap; padding: 4px 4px; flex-shrink: 0; }

    /* Hero */
    .hero-names { font-size: clamp(32px, 10vw, 60px); }
    .hero-pre { font-size: 10px; letter-spacing: 0.3em; }
    .hero-date-txt { font-size: 14px; letter-spacing: 0.2em; }
    .hero-date-row .hl { width: 24px; }
    .hero-date-row { gap: 10px; }
    .hero-content { padding: 16px; }

    /* Sections */
    .sec { padding: 64px 16px; }
    .sec-t { font-size: clamp(24px, 6vw, 34px); }
    .sec-s { font-size: 9px; letter-spacing: 0.2em; }
    .intro-text { font-size: 16px; }

    /* Dresscode palette — all fit in one row */
    .palette { padding: 0 12px; }

    /* Timeline */
    .tl-time { font-size: 20px; padding-right: 20px; }
    .tl-info { padding-left: 20px; font-size: 13px; }
    .tl-info strong { font-size: 16px; }

    /* Venue */
    .venue-grid { max-width: 340px; }
    .v-card { padding: 36px 24px; }
    .v-card h3 { font-size: 22px; }

    /* Countdown */
    .cd-row { gap: 12px; }
    .cd-orb { width: 72px; height: 72px; }
    .cd-num { font-size: 28px; line-height: 72px; top: -2px; }
    .cd-lbl { font-size: 8px; letter-spacing: 0.2em; }

    /* Dresscode */
    .dc-desc { font-size: 13px; }

    /* Details */
    .det-grid { grid-template-columns: 1fr; max-width: 340px; margin-left: auto; margin-right: auto; }
    .d-card { padding: 28px 20px; }
    .d-card h4 { font-size: 17px; }
    .d-card p { font-size: 12px; }

    /* RSVP */
    .rsvp-box { padding: 32px 20px; }
    /* Prevent iOS auto-zoom on focus: inputs need font-size >= 16px */
    .fg input[type="text"], .fg select, .fg textarea,
    .fg input::placeholder, .fg textarea::placeholder { font-size: 16px; }

    /* Footer */
    .foot-names { font-size: 26px; }
    .foot-date { font-size: 11px; }

    /* Envelope (heart) */
    .envelope { width: min(280px, calc(100vw - 48px)); height: min(258px, calc((100vw - 48px) * 0.92)); }
    .env-seal { width: 64px; height: 64px; }
    .env-seal svg { width: 26px; height: 26px; }
    .env-title { font-size: 34px; }
    .env-hint { font-size: 15px; }

    /* Music button */
    .music-btn { width: 42px; height: 42px; bottom: 16px; right: 16px; }
    .music-btn svg { width: 18px; height: 18px; }
}

@media (max-width: 380px) {
    .header a { font-size: 7px; letter-spacing: 0.03em; }
    .hero-names { font-size: clamp(28px, 9vw, 48px); }
    .hero-date-txt { font-size: 12px; letter-spacing: 0.15em; }
    .cd-orb { width: 64px; height: 64px; }
    .cd-num { font-size: 24px; line-height: 64px; }
    .cd-row { gap: 8px; }
    .palette { padding: 0 8px; }
    .rsvp-box { padding: 28px 16px; }
    .envelope { width: 220px; height: 202px; }
    .env-seal { width: 50px; height: 50px; }
    .env-title { font-size: 24px; }
    .env-hint { font-size: 11px; }
    .tl-time { font-size: 18px; padding-right: 14px; }
    .tl-info { padding-left: 14px; font-size: 12px; }
    .tl-info strong { font-size: 14px; }
}
