:root {
    --bg-1: #f9f4ee;
    --bg-2: #f2e4d5;
    --paper: rgba(255, 251, 246, 0.9);
    --paper-strong: rgba(255, 251, 246, 0.97);
    --line: rgba(184, 134, 11, 0.16);
    --gold: #b8860b;
    --gold-soft: #d2a34a;
    --stone: #54403b;
    --stone-soft: rgba(84, 64, 59, 0.76);
    --shadow-lg: 0 28px 70px rgba(84, 64, 59, 0.16);
    --shadow-md: 0 16px 34px rgba(84, 64, 59, 0.1);
    --radius-xl: 2rem;
    --radius-lg: 1.25rem;
    --safe-top: calc(env(safe-area-inset-top, 0px) + 18px);
    --safe-bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at top, rgba(255, 251, 246, 0.7), transparent 34%),
        linear-gradient(135deg, #fdfbf7 0%, var(--bg-2) 48%, #fbf8f2 100%);
    color: var(--stone);
    font-family: "Segoe UI", system-ui, sans-serif;
}

a, button, input, select, textarea { font: inherit; }
button { border: 0; background: none; }

.site-shell { position: relative; min-height: 100vh; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.ambient { position: fixed; inset: 0; pointer-events: none; filter: blur(24px); z-index: 0; }
.ambient-a { background: radial-gradient(circle at 18% 20%, rgba(212, 169, 76, 0.12), transparent 28%), radial-gradient(circle at 82% 26%, rgba(184, 134, 11, 0.1), transparent 24%); }
.ambient-b { background: radial-gradient(circle at 50% 90%, rgba(212, 169, 76, 0.12), transparent 28%); }

.dust-layer { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.dust {
    position: absolute;
    width: 0.28rem;
    height: 0.28rem;
    border-radius: 50%;
    background: rgba(212, 169, 76, 0.28);
    box-shadow: 0 0 10px rgba(212, 169, 76, 0.18);
    animation: drift linear infinite;
}

.music-toggle {
    position: fixed;
    top: var(--safe-top);
    right: 1rem;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(184, 134, 11, 0.18);
    background: rgba(255, 251, 246, 0.8);
    box-shadow: var(--shadow-md);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    opacity: 0.48;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.music-toggle.is-ready { opacity: 1; }
.music-toggle:active { transform: scale(0.98); }
.music-toggle__dot { width: 0.56rem; height: 0.56rem; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-soft)); box-shadow: 0 0 14px rgba(212, 169, 76, 0.45); }
.music-toggle__label { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

.floating-nav {
    position: fixed;
    left: 50%;
    top: var(--safe-top);
    transform: translateX(-50%);
    z-index: 15;
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(184, 134, 11, 0.14);
    background: rgba(255, 251, 246, 0.82);
    box-shadow: var(--shadow-md);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}
.floating-nav.is-visible { opacity: 1; visibility: visible; }
.floating-nav a {
    padding: 0.7rem 0.95rem;
    border-radius: 999px;
    color: var(--stone-soft);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.envelope-overlay {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: center;
    padding: var(--safe-top) 1rem var(--safe-bottom);
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.7), transparent 28%), linear-gradient(135deg, #f9f7f4 0%, #fdfbf7 52%, #f5e6d3 100%);
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.envelope-overlay.is-open { opacity: 0; visibility: hidden; pointer-events: none; }
.envelope-overlay__glow { position: absolute; inset: 14% 10%; background: radial-gradient(circle, rgba(212, 169, 76, 0.18), transparent 62%); filter: blur(32px); }

.envelope-scene {
    position: relative;
    z-index: 1;
    width: min(100%, 27rem);
    text-align: center;
}
.envelope-scene::before,
.envelope-scene::after {
    content: "✿";
    position: absolute;
    top: 6rem;
    font-size: 2.8rem;
    color: rgba(184, 134, 11, 0.18);
    pointer-events: none;
}
.envelope-scene::before { left: -0.2rem; }
.envelope-scene::after { right: -0.2rem; }
.envelope-scene__eyebrow, .section__eyebrow, .field__label, .countdown-card__label {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(84, 64, 59, 0.66);
}
.envelope-scene__title, .section__title, .hero__names, .footer__names {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 0.98;
    letter-spacing: -0.04em;
}
.envelope-scene__title { margin-top: 0.85rem; font-size: clamp(2.4rem, 12vw, 4.1rem); }
.envelope-scene__copy, .section__copy, .hero__message, .footer__copy, .field input, .field select, .field textarea, .program-card__copy, .timeline-card__copy, .faq-item__answer, .location-card__copy, .dress-code__copy, .dress-code__note, .form-note, .section__footnote {
    font-size: 1rem;
    line-height: 1.8;
    overflow-wrap: break-word;
}
.envelope-scene__copy { margin: 1rem auto 0; max-width: 22rem; color: var(--stone-soft); }
.envelope-scene__hint { margin: 1.1rem 0 0; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(84, 64, 59, 0.68); animation: hint 2.2s ease-in-out infinite; }

.envelope {
    position: relative;
    width: min(19rem, 82vw);
    height: min(12.4rem, 54vw);
    margin: 2rem auto 0;
    perspective: 1200px;
    cursor: pointer;
    outline: none;
    touch-action: manipulation;
}
.envelope:focus-visible {
    box-shadow: 0 0 0 4px rgba(184, 134, 11, 0.14);
    border-radius: 1rem;
}
.envelope__shadow, .envelope__back, .envelope__letter, .envelope__seal, .envelope__flap, .envelope__front { position: absolute; }
.envelope__shadow { inset: auto 10% -0.75rem; height: 1.4rem; background: radial-gradient(circle, rgba(84, 64, 59, 0.22), transparent 72%); filter: blur(12px); }
.envelope__back, .envelope__front { inset: 0; border-radius: 0.5rem; }
.envelope__back {
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.18), transparent 26%),
        linear-gradient(180deg, #efe1d1 0%, #f6eadf 100%);
    box-shadow: 0 28px 60px rgba(184, 134, 11, 0.16);
}
.envelope__back::before {
    content: "";
    position: absolute;
    inset: 0.7rem;
    border: 1px solid rgba(184, 134, 11, 0.14);
    border-radius: 0.25rem;
}
.envelope__front {
    z-index: 3;
    clip-path: polygon(0 28%, 50% 72%, 100% 28%, 100% 100%, 0 100%);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.14), transparent 18%),
        linear-gradient(180deg, #f2e4d5 0%, #ead8c5 100%);
    border: 1px solid rgba(184, 134, 11, 0.08);
    pointer-events: none;
}
.envelope__front::before,
.envelope__front::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(184, 134, 11, 0.04));
}
.envelope__front::before {
    left: 0;
    clip-path: polygon(0 28%, 100% 72%, 100% 100%, 0 100%);
}
.envelope__front::after {
    right: 0;
    clip-path: polygon(0 72%, 100% 28%, 100% 100%, 0 100%);
}
.envelope__flap {
    z-index: 4;
    inset: 0;
    clip-path: polygon(0 0, 100% 0, 50% 72%);
    background:
        linear-gradient(135deg, rgba(255,255,255,0.24), transparent 26%),
        linear-gradient(135deg, #f7ecdf 0%, #ead8c5 100%);
    transform-origin: top center;
    transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 1s ease;
    box-shadow: 0 10px 30px rgba(184, 134, 11, 0.16);
    pointer-events: none;
}
.envelope__flap::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0.7rem;
    width: 5.5rem;
    height: 2.7rem;
    transform: translateX(-50%);
    border: 1px solid rgba(184, 134, 11, 0.14);
    border-bottom: 0;
    border-radius: 100rem 100rem 0 0;
    opacity: 0.55;
}
.envelope__letter {
    z-index: 2;
    left: 50%;
    bottom: 1rem;
    width: 84%;
    height: 82%;
    transform: translateX(-50%);
    border-radius: 0.75rem 0.75rem 0.35rem 0.35rem;
    background: linear-gradient(180deg, rgba(255, 253, 250, 1), rgba(248, 241, 233, 1));
    border: 1px solid rgba(184, 134, 11, 0.14);
    box-shadow: 0 10px 24px rgba(84, 64, 59, 0.08);
    overflow: hidden;
    transition: transform 1.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
.letter-peek { padding: 1rem 1rem 0.9rem; }
.letter-peek__kicker { margin: 0; font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(184, 134, 11, 0.76); }
.letter-peek__title { margin: 0.55rem 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 1rem; color: var(--stone); }
.letter-peek__names { margin: 0.5rem 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.28rem; color: var(--gold); }
.envelope__seal {
    z-index: 5;
    left: 50%;
    top: 46%;
    width: 4.4rem;
    height: 4.4rem;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, rgba(255, 228, 222, 0.32), transparent 28%), radial-gradient(circle, #8e2940 0%, #6a172c 64%, #4a0d1c 100%);
    box-shadow: inset 0 2px 10px rgba(255, 244, 239, 0.16), inset 0 -8px 12px rgba(48, 8, 19, 0.36), 0 18px 36px rgba(74, 13, 28, 0.24);
    color: #fff4eb;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.25s ease, opacity 0.8s ease;
}
.envelope:hover .envelope__seal,
.envelope__seal:hover {
    transform: translate(-50%, -50%) scale(1.03);
}
.envelope:hover .envelope__letter {
    box-shadow: 0 16px 30px rgba(84, 64, 59, 0.12);
}
.envelope__seal-ring { position: absolute; inset: 0.22rem; border: 1px solid rgba(255, 244, 239, 0.18); border-radius: 50%; }
.envelope__seal-text { position: relative; font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; }
.envelope-overlay.is-opening .envelope__flap { transform: rotateX(180deg) translateY(-0.45rem); opacity: 0.22; }
.envelope-overlay.is-opening .envelope__letter { transform: translateX(-50%) translateY(-3.8rem); }
.envelope-overlay.is-opening .envelope__seal { opacity: 0; }

.invitation { position: relative; z-index: 2; opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; padding: calc(var(--safe-top) + 4rem) 1rem var(--safe-bottom); }
.invitation.is-visible, .invitation.invitation-visible { opacity: 1; transform: translateY(0); }
.hero, .section, .footer { position: relative; width: min(100%, 68rem); margin: 0 auto 1.2rem; }

.panel {
    position: relative;
    overflow: hidden;
    padding: 1.45rem 1.1rem;
    border-radius: var(--radius-xl);
    background: radial-gradient(circle at top, rgba(212, 169, 76, 0.08), transparent 22%), linear-gradient(180deg, var(--paper-strong), rgba(247, 239, 231, 0.96));
    border: 1px solid rgba(184, 134, 11, 0.12);
    box-shadow: var(--shadow-lg);
}
.panel::before { content: ""; position: absolute; inset: 0.7rem; border: 1px solid rgba(184, 134, 11, 0.12); border-radius: calc(var(--radius-xl) - 0.45rem); pointer-events: none; }

.hero__frame { min-height: min(88vh, 46rem); display: grid; align-content: center; place-items: center; text-align: center; }
.hero__halo { position: absolute; inset: 8% 15% auto; height: 12rem; background: radial-gradient(circle, rgba(212, 169, 76, 0.18), transparent 68%); filter: blur(24px); }
.hero__eyebrow { margin: 0; font-size: 0.78rem; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(184, 134, 11, 0.72); }
.hero__names { margin-top: 1rem; font-size: clamp(3.1rem, 13vw, 5.6rem); }
.hero__amp { display: block; margin: 0.3rem 0; color: var(--gold-soft); font-size: 0.6em; }
.hero__divider, .gold-divider { width: 6rem; height: 1px; margin: 1.35rem auto; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.hero__message { margin: 0; max-width: 34rem; color: var(--stone-soft); }
.hero__details { margin-top: 1.4rem; display: grid; gap: 0.2rem; }
.hero__details p { margin: 0; font-size: 0.84rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(84, 64, 59, 0.62); }

.primary-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 3.2rem;
    margin-top: 1.5rem;
    padding: 0.95rem 1.25rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
    box-shadow: 0 16px 30px rgba(184, 134, 11, 0.22);
    color: #fffaf4;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
}
.primary-button--full { width: 100%; }

.section__head { margin-bottom: 0.95rem; text-align: center; }
.section__title { font-size: clamp(2.1rem, 8vw, 3.6rem); }
.section__copy, .section__footnote, .footer__copy { margin: 0.7rem auto 0; max-width: 40rem; color: var(--stone-soft); text-align: center; }

.countdown-grid, .location-grid, .gallery-grid, .choice-grid { display: grid; gap: 0.8rem; }
.social-grid { display: grid; gap: 0.8rem; }
.countdown-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.countdown-card { position: relative; padding: 1rem 0.85rem; text-align: center; border-radius: var(--radius-lg); background: rgba(255, 251, 246, 0.68); border: 1px solid rgba(184, 134, 11, 0.12); }
.countdown-card__value { display: block; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.8rem, 9vw, 3rem); color: var(--gold); }

.timeline, .program-list, .faq-list { display: grid; gap: 0.9rem; }
.timeline-card, .program-card, .location-card, .faq-item {
    position: relative;
    padding: 1rem 1rem 0.95rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 251, 246, 0.74);
    border: 1px solid rgba(184, 134, 11, 0.12);
    box-shadow: var(--shadow-md);
}
.timeline-card__eyebrow, .program-card__time, .location-card__eyebrow { margin: 0; color: var(--gold); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.program-card,
.location-card {
    padding-top: 1.2rem;
}
.program-card__icon,
.location-card__icon {
    display: inline-grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.7rem;
    border-radius: 50%;
    border: 1px solid rgba(184, 134, 11, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 234, 223, 0.88));
    box-shadow: 0 12px 22px rgba(84, 64, 59, 0.08);
    color: var(--gold);
    font-size: 1rem;
}
.timeline-card__title, .program-card__title, .location-card__title, .dress-code__label { margin: 0.45rem 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.32rem; }
.timeline-card__copy, .program-card__copy, .location-card__copy { margin: 0.35rem 0 0; color: var(--stone-soft); }

.location-grid { grid-template-columns: 1fr; }
.location-card__link { display: inline-flex; margin-top: 0.85rem; color: var(--gold); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; }

.dress-code { text-align: center; }
.dress-code__palette { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem; margin: 1rem 0 1.15rem; }
.palette-dot { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 2px solid rgba(184, 134, 11, 0.12); box-shadow: inset 0 0 0 4px rgba(255, 251, 246, 0.55); }
.dress-code__copy, .dress-code__note { max-width: 36rem; margin-inline: auto; text-align: center; color: var(--stone-soft); }

.gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 11.5rem;
    align-items: stretch;
    margin-bottom: 1rem;
}
.gallery-card {
    position: relative;
    overflow: hidden;
    min-height: 0;
    height: 100%;
    border-radius: 1.4rem;
    background: radial-gradient(circle at 20% 20%, rgba(212, 169, 76, 0.18), transparent 24%), linear-gradient(135deg, rgba(242, 228, 213, 0.92), rgba(255, 251, 246, 0.96));
    border: 1px solid rgba(184, 134, 11, 0.12);
    box-shadow: var(--shadow-md);
    padding: 1rem;
    display: flex;
    align-items: flex-end;
    align-self: stretch;
}
.gallery-card--photo {
    padding: 0;
}
.gallery-card--tall { grid-row: span 2; }
.gallery-card--wide { grid-column: 1 / -1; grid-row: span 2; }
.gallery-card__symbol { position: absolute; inset: 1rem auto auto 1rem; font-size: 1.6rem; color: rgba(184, 134, 11, 0.32); }
.gallery-card__image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}
.gallery-card__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.04), transparent 28%, rgba(24, 15, 14, 0.56) 100%),
        radial-gradient(circle at 20% 20%, rgba(212, 169, 76, 0.14), transparent 26%);
}
.gallery-card__caption {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--stone);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.65;
}
.gallery-card--photo .gallery-card__caption {
    align-self: flex-end;
    width: 100%;
    padding: 1rem;
    color: #fffaf4;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}
.gallery-card--interactive {
    cursor: pointer;
}
.section__footnote {
    position: relative;
    z-index: 1;
    margin-top: 1rem;
    padding: 0 0.6rem;
}

.social-grid {
    grid-template-columns: 1fr;
}

.social-card {
    text-align: center;
}

.social-card__eyebrow {
    margin: 0;
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.social-card__hashtag {
    margin: 0.65rem 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.6rem, 7vw, 2.5rem);
    color: var(--stone);
    letter-spacing: -0.04em;
}

.social-card__copy {
    margin: 0.75rem auto 0;
    max-width: 26rem;
    color: var(--stone-soft);
    line-height: 1.8;
}

.social-card--qr {
    grid-column: 1 / -1;
}

.qr-card {
    position: relative;
    width: min(100%, 13rem);
    aspect-ratio: 1;
    margin: 1rem auto 0;
    display: grid;
    place-items: center;
    border-radius: 1.6rem;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.74), rgba(250, 242, 232, 0.92)),
        radial-gradient(circle at top, rgba(212, 169, 76, 0.08), transparent 30%);
    border: 1px solid rgba(184, 134, 11, 0.14);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.qr-card:hover,
.qr-card:active {
    transform: translateY(-2px);
    box-shadow: 0 20px 34px rgba(84, 64, 59, 0.14);
}

.qr-card__pattern {
    position: absolute;
    inset: 1.2rem;
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    grid-template-rows: repeat(11, 1fr);
    gap: 0.14rem;
}

.qr-card__pixel {
    border-radius: 0.12rem;
    background: rgba(84, 64, 59, 0.1);
}

.qr-card__pixel.is-dark {
    background: linear-gradient(135deg, #6e544d, #2f201d);
}

.qr-card__label {
    position: absolute;
    right: 0.8rem;
    bottom: 0.8rem;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 251, 246, 0.84);
    color: var(--gold);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.social-card__link {
    margin-top: 0.85rem;
}

.rsvp-form { display: grid; gap: 0.95rem; }
.field { display: grid; gap: 0.35rem; }
.field.is-hidden { display: none; }
.field input, .field select, .field textarea {
    width: 100%;
    padding: 0.92rem 1rem;
    border: 1px solid rgba(184, 134, 11, 0.14);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.82);
    color: var(--stone);
    outline: none;
}
.field textarea { resize: vertical; min-height: 7rem; }
.choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: grid; place-items: center; min-height: 3.15rem; padding: 0.9rem; border-radius: 1rem; border: 1px solid rgba(184, 134, 11, 0.14); background: rgba(255, 255, 255, 0.82); text-align: center; font-size: 0.92rem; }
.choice input:checked + span { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%); border-color: transparent; color: #fffaf4; }
.form-note { margin: 0; text-align: center; color: rgba(84, 64, 59, 0.56); font-size: 0.88rem; }

.faq-item { overflow: hidden; }
.faq-item__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0;
    text-align: left;
    color: var(--stone);
    font-weight: 600;
}
.faq-item__icon { color: var(--gold); font-size: 1.1rem; transition: transform 0.25s ease; }
.faq-item__answer { max-height: 0; overflow: hidden; color: var(--stone-soft); transition: max-height 0.35s ease, margin-top 0.35s ease; }
.faq-item.is-open .faq-item__answer { max-height: 12rem; margin-top: 0.8rem; }
.faq-item.is-open .faq-item__icon { transform: rotate(45deg); }

.footer { text-align: center; padding-bottom: 0.8rem; }
.footer__names { font-size: clamp(2.3rem, 10vw, 4.1rem); }

.toast {
    position: fixed;
    left: 50%;
    bottom: calc(var(--safe-bottom) + 0.8rem);
    transform: translateX(-50%) translateY(110%);
    min-width: min(90vw, 24rem);
    padding: 0.95rem 1rem;
    border-radius: 999px;
    background: rgba(84, 64, 59, 0.92);
    color: #fffaf4;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: transform 0.35s ease, opacity 0.35s ease;
    opacity: 0;
    z-index: 25;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}
.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(29, 19, 16, 0.72);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 48rem);
    border-radius: 1.75rem;
    padding: 0.9rem;
    background: linear-gradient(180deg, rgba(255, 251, 246, 0.96), rgba(247, 239, 231, 0.94));
    border: 1px solid rgba(184, 134, 11, 0.14);
    box-shadow: var(--shadow-lg);
}
.lightbox__close {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    z-index: 2;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 251, 246, 0.88);
    color: var(--stone);
    font-size: 1.6rem;
    line-height: 1;
    box-shadow: var(--shadow-md);
}
.lightbox__image {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 1.2rem;
    background-size: cover;
    background-position: center;
    background-color: rgba(242, 228, 213, 0.9);
}
.lightbox__caption {
    margin: 0.9rem 0 0;
    text-align: center;
    color: var(--stone-soft);
    line-height: 1.8;
}

.reveal { opacity: 0; transform: translateY(24px); filter: blur(8px); transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); filter: blur(0); }

@keyframes drift {
    0% { transform: translate3d(0, 100vh, 0) scale(0.85); opacity: 0; }
    18% { opacity: 0.68; }
    100% { transform: translate3d(var(--drift), -14vh, 0) scale(1.28); opacity: 0; }
}
@keyframes hint {
    0%, 100% { transform: translateY(0); opacity: 0.74; }
    50% { transform: translateY(-4px); opacity: 1; }
}

@media (min-width: 760px) {
    .hero, .section, .footer { margin-bottom: 1.55rem; }
    .panel { padding: 1.8rem 1.5rem; }
    .location-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: 10.5rem;
        gap: 1rem;
    }
    .gallery-card--wide { grid-column: span 2; grid-row: span 2; }
    .gallery-card--tall { grid-row: span 2; }
    .countdown-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .floating-nav {
        top: auto;
        bottom: calc(var(--safe-bottom) + 0.6rem);
        width: calc(100% - 1rem);
        justify-content: space-between;
        gap: 0;
    }
    .floating-nav a { padding: 0.75rem 0.55rem; font-size: 0.64rem; letter-spacing: 0.08em; }
    .music-toggle { top: auto; bottom: calc(var(--safe-bottom) + 4.8rem); }
    .invitation { padding-top: 1rem; }
    .gallery-grid {
        grid-auto-rows: 10.25rem;
    }
}
