:root {
    --bg: #0d0a0c;
    --bg-soft: #161013;
    --wine: #3b1322;
    --wine-deep: #200b13;
    --gold: #d4b26a;
    --gold-light: #f0dca4;
    --gold-deep: #9c7a3c;
    --ivory: #f4ecdf;
    --muted: #b6a796;
    --line: rgba(212, 178, 106, 0.28);
    --line-strong: rgba(212, 178, 106, 0.55);

    --display: 'Cinzel', 'Times New Roman', serif;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --script: 'Pinyon Script', 'Brush Script MT', cursive;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ivory);
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.6;
    overflow-x: hidden;
}

body.locked { overflow: hidden; }

a { color: inherit; }

p { margin: 0; }

::selection { background: rgba(212, 178, 106, 0.35); color: var(--ivory); }

/* ---------- Shared ---------- */

.gold-text {
    background: linear-gradient(100deg, #a8843f 0%, #f0dca4 22%, #c9a45c 42%, #fff4d2 52%, #b8904a 70%, #e8cf8f 100%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 9s linear infinite;
}

@keyframes shimmer {
    to { background-position: 220% center; }
}

.eyebrow,
.kicker {
    font-family: var(--display);
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold);
}

.section-heading { text-align: center; margin-bottom: 56px; }

.section-heading h2 {
    margin: 14px 0 0;
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(30px, 5vw, 44px);
    letter-spacing: 0.06em;
    color: var(--ivory);
}

.section-heading h2 .gold-text {
    font-family: 'Great Vibes', var(--script);
    font-size: 1.5em;
    letter-spacing: 0;
    padding: 0 0.15em 0 0.3em;
    margin-left: -0.18em;
}

/* ---------- Backdrop ---------- */

.backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(1100px 700px at 50% -15%, rgba(98, 28, 52, 0.5), transparent 62%),
        radial-gradient(800px 600px at 105% 105%, rgba(70, 22, 40, 0.42), transparent 60%),
        radial-gradient(700px 500px at -10% 70%, rgba(60, 18, 34, 0.35), transparent 60%);
}

.backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M28 0L56 28L28 56L0 28Z' fill='none' stroke='%23d4b26a' stroke-opacity='.07'/%3E%3Ccircle cx='28' cy='28' r='1.3' fill='%23d4b26a' fill-opacity='.16'/%3E%3C/svg%3E");
    -webkit-mask-image: radial-gradient(ellipse at center, transparent 25%, #000 95%);
    mask-image: radial-gradient(ellipse at center, transparent 25%, #000 95%);
}

.dust {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

main,
.footer,
.topbar { position: relative; z-index: 1; }

/* ---------- Gate (opening doors) ---------- */

.gate { display: none; }

.js .gate {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 100;
    perspective: 1800px;
    overflow: hidden;
}

.door {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50.5%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M20 0L40 20L20 40L0 20Z' fill='none' stroke='%23d4b26a' stroke-opacity='.06'/%3E%3C/svg%3E"),
        linear-gradient(180deg, #2c0f1a 0%, #1a0910 55%, #12070c 100%);
    transition: transform 1.9s var(--ease), opacity 1.9s ease;
    backface-visibility: hidden;
    box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.65);
}

.door::before,
.door::after {
    content: '';
    position: absolute;
    pointer-events: none;
}

/* arched panel on each door */
.door::before {
    top: 9%;
    bottom: 7%;
    left: 16%;
    right: 16%;
    border: 1px solid var(--line-strong);
    border-radius: 999px 999px 6px 6px;
    box-shadow: inset 0 0 0 7px rgba(13, 10, 12, 0.35), inset 0 0 0 8px var(--line);
}

.door::after {
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
    opacity: 0.6;
}

.door-left { left: 0; transform-origin: left center; }
.door-left::after { right: 0; }
.door-right { right: 0; transform-origin: right center; }
.door-right::after { left: 0; }

.door-handle {
    position: absolute;
    top: 50%;
    width: 6px;
    height: 64px;
    margin-top: -32px;
    border-radius: 6px;
    background: linear-gradient(180deg, var(--gold-light), var(--gold-deep));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.door-left .door-handle { right: 22px; }
.door-right .door-handle { left: 22px; }

.gate-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gate-kicker {
    font-family: var(--display);
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--muted);
}

.gate-names {
    margin: 10px 0 34px;
    font-family: var(--script);
    font-size: clamp(42px, 9vw, 64px);
    line-height: 1.1;
    color: var(--gold-light);
    text-shadow: 0 0 30px rgba(212, 178, 106, 0.25);
}

.gate-names span { color: var(--gold); font-size: 0.7em; }

.seal {
    position: relative;
    width: 128px;
    height: 128px;
    padding: 0;
    border: 0;
    cursor: pointer;
    border-radius: 50% 47% 52% 48% / 48% 53% 47% 52%;
    background: radial-gradient(circle at 34% 28%, #f7e4ae 0%, #d6b065 34%, #a57b33 70%, #73521d 100%);
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.65),
        inset 0 -8px 16px rgba(60, 36, 8, 0.45),
        inset 0 5px 10px rgba(255, 246, 214, 0.45);
    transition: transform 0.35s var(--ease);
    -webkit-tap-highlight-color: transparent;
}

.seal::before {
    content: '';
    position: absolute;
    inset: 13px;
    border-radius: 50%;
    border: 1.5px solid rgba(84, 56, 18, 0.5);
    box-shadow: 0 1px 0 rgba(255, 240, 200, 0.35);
}

.seal::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    animation: seal-pulse 2.4s ease-out infinite;
}

.seal:hover,
.seal:focus-visible { transform: scale(1.06); outline: none; }

.seal-letters {
    position: relative;
    font-family: var(--script);
    font-size: 44px;
    line-height: 1;
    color: #573a12;
    text-shadow: 0 1px 0 rgba(255, 238, 190, 0.55), 0 -1px 0 rgba(50, 30, 6, 0.35);
}

.seal-letters i { font-style: normal; font-size: 0.62em; padding: 0 2px; }

@keyframes seal-pulse {
    0% { transform: scale(0.92); opacity: 0.9; }
    100% { transform: scale(1.35); opacity: 0; }
}

.gate-hint {
    margin-top: 30px;
    font-family: var(--display);
    font-size: 10px;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--muted);
    animation: hint-fade 2.4s ease-in-out infinite;
}

@keyframes hint-fade {
    50% { opacity: 0.35; }
}

.gate.opening .gate-center { opacity: 0; transform: scale(0.94); }
.gate.opening .door-left { transform: rotateY(98deg); opacity: 0.15; transition-delay: 0.35s; }
.gate.opening .door-right { transform: rotateY(-98deg); opacity: 0.15; transition-delay: 0.35s; }
.gate.gone { display: none !important; }

/* ---------- Top bar ---------- */

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px clamp(16px, 4vw, 44px);
    transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
    border-bottom: 1px solid transparent;
}

.topbar.scrolled {
    padding-top: 12px;
    padding-bottom: 12px;
    background: rgba(13, 10, 12, 0.82);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom-color: rgba(212, 178, 106, 0.14);
}

.topbar-mark {
    font-family: var(--display);
    font-size: 15px;
    letter-spacing: 0.24em;
    text-decoration: none;
    color: var(--ivory);
}

.topbar-mark span { color: var(--gold); font-size: 10px; vertical-align: 2px; }

.topbar-nav { display: flex; gap: 34px; }

.topbar-nav a {
    position: relative;
    font-family: var(--display);
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--muted);
    transition: color 0.3s ease;
}

.topbar-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.4s var(--ease);
}

.topbar-nav a:hover { color: var(--gold-light); }
.topbar-nav a:hover::after { transform: scaleX(1); }

/* ---------- Music ---------- */

.music-toggle {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 30;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: rgba(32, 11, 19, 0.85);
    color: var(--gold);
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.music-toggle[hidden] { display: none; }

.music-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.music-toggle.playing svg { animation: sway 2.4s ease-in-out infinite; }

.music-toggle:not(.playing)::after {
    content: '';
    position: absolute;
    width: 26px;
    height: 1.5px;
    background: var(--gold);
    transform: rotate(-45deg);
}

@keyframes sway {
    50% { transform: rotate(-10deg) translateY(-1px); }
}

/* ---------- Hero ---------- */

.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 104px 16px 88px;
    position: relative;
}

.arch {
    position: relative;
    width: min(500px, 100%);
    padding: 118px 32px 54px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 260px 260px 16px 16px;
    background: linear-gradient(180deg, rgba(64, 20, 37, 0.55) 0%, rgba(22, 12, 17, 0.55) 70%, rgba(13, 10, 12, 0.35) 100%);
    box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.45), 0 40px 90px rgba(0, 0, 0, 0.55);
}

.arch::before {
    content: '';
    position: absolute;
    inset: 11px;
    border: 1px solid var(--line-strong);
    border-radius: 250px 250px 8px 8px;
    pointer-events: none;
}

.arch-crown {
    width: 120px;
    height: 40px;
    margin-bottom: 18px;
    fill: none;
    stroke: var(--gold);
    stroke-width: 1;
}

.arch-crown .fill { fill: rgba(212, 178, 106, 0.18); }
.arch-crown .cross { stroke-width: 1.6; stroke-linecap: round; }

.names {
    margin: 22px 0 16px;
    font-family: var(--script);
    font-weight: 400;
    font-size: clamp(64px, 15vw, 96px);
    line-height: 1.02;
}

.names span { display: block; padding: 0 0.16em 0.08em; }

.names em {
    display: block;
    margin: -0.08em 0 -0.04em;
    font-style: normal;
    font-family: var(--serif);
    font-size: 0.42em;
    color: var(--gold);
}

.hero-sub {
    font-style: italic;
    font-size: 21px;
    color: var(--muted);
}

.hero-date {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    max-width: 320px;
    margin: 30px auto 0;
}

.hero-date span {
    padding: 8px 0;
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
    font-family: var(--display);
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ivory);
}

.hero-date strong {
    font-family: var(--display);
    font-weight: 400;
    font-size: 52px;
    line-height: 1;
    color: var(--gold-light);
}

.hero-place {
    margin-top: 24px;
    font-family: var(--display);
    font-size: 11px;
    letter-spacing: 0.26em;
    line-height: 2;
    text-transform: uppercase;
    color: var(--gold);
}

.scroll-cue {
    position: fixed;
    left: 50%;
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 18px;
    border: 1px solid rgba(212, 178, 106, 0.16);
    border-radius: 999px;
    background: rgba(13, 10, 12, 0.45);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    text-decoration: none;
    color: var(--muted);
    transform: translateX(-50%);
    transition: opacity 0.6s ease, visibility 0.6s;
}

.scroll-cue-text {
    font-family: var(--display);
    font-size: 10px;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}

.scroll-cue-arrow {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: cue-bounce 1.6s ease-in-out infinite;
}

@keyframes cue-bounce {
    0%, 100% { transform: translateY(-2px); }
    50% { transform: translateY(4px); }
}

/* only after the doors open, and gone once the guest starts scrolling */
.js .scroll-cue { opacity: 0; visibility: hidden; }
.js body.opened .scroll-cue { opacity: 1; visibility: visible; transition-delay: 1.4s; }
.js body.opened.scrolled .scroll-cue { opacity: 0; visibility: hidden; transition-delay: 0s; }

/* hero entrance: waits for the doors to open */
.js .hero-anim {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 1.2s ease, transform 1.2s var(--ease);
}

.js body.opened .hero-anim { opacity: 1; transform: none; }
.js body.opened .hero-anim:nth-child(2) { transition-delay: 0.15s; }
.js body.opened .hero-anim:nth-child(3) { transition-delay: 0.3s; }
.js body.opened .hero-anim:nth-child(4) { transition-delay: 0.5s; }
.js body.opened .hero-anim:nth-child(5) { transition-delay: 0.65s; }
.js body.opened .hero-anim:nth-child(6) { transition-delay: 0.8s; }

/* ---------- Scroll reveal ---------- */

.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1.1s ease, transform 1.1s var(--ease);
}

.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Countdown ---------- */

.countdown-band {
    max-width: 760px;
    margin: 0 auto;
    padding: 72px 16px 40px;
    text-align: center;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 26px;
}

.countdown div {
    padding: 22px 6px 18px;
    border: 1px solid var(--line);
    border-radius: 60px 60px 8px 8px;
    background: rgba(32, 11, 19, 0.45);
}

.countdown strong {
    display: block;
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(30px, 7vw, 46px);
    line-height: 1.1;
    color: var(--gold-light);
    font-variant-numeric: tabular-nums;
}

.countdown span {
    display: block;
    margin-top: 6px;
    font-family: var(--display);
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--muted);
}

.countdown-note {
    margin-top: 18px;
    font-style: italic;
    font-size: 18px;
    color: var(--muted);
}

.countdown-done {
    margin-top: 22px;
    font-family: var(--script);
    font-size: 40px;
    color: var(--gold-light);
}

/* ---------- Invitation ---------- */

.invitation {
    max-width: 860px;
    margin: 0 auto;
    padding: 90px 16px 100px;
    text-align: center;
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 34px;
}

.divider span {
    width: 90px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}

.divider span:last-child { transform: scaleX(-1); }

.divider svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--gold);
    stroke-width: 1.5;
    stroke-linecap: round;
}

.lead {
    max-width: 600px;
    margin: 0 auto;
    font-style: italic;
    font-size: clamp(21px, 3.2vw, 25px);
    line-height: 1.55;
    color: var(--ivory);
}

.couple {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 28px;
    margin: 64px 0 70px;
}

.person-name {
    margin: 0 0 14px;
    font-family: var(--script);
    font-weight: 400;
    font-size: clamp(50px, 6.4vw, 62px);
    line-height: 1.1;
}

.person-name span { display: block; padding: 0 0.12em; }

.person-name .surname {
    margin-top: 4px;
    font-family: var(--display);
    font-size: 15px;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--ivory);
}

.relation {
    font-family: var(--display);
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
}

.parents {
    margin-top: 8px;
    font-size: 22px;
    font-weight: 500;
    color: var(--ivory);
}

.couple-ring {
    position: relative;
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
}

.couple-ring::before {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 1px solid var(--line);
}

.couple-ring span {
    font-family: var(--script);
    font-size: 40px;
    color: var(--gold);
    line-height: 1;
}

.verse {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    padding: 36px 20px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.verse p {
    font-style: italic;
    font-size: clamp(20px, 3vw, 23px);
    line-height: 1.6;
    color: var(--ivory);
}

.verse cite {
    display: block;
    margin-top: 16px;
    font-style: normal;
    font-family: var(--display);
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
}

/* ---------- Moments (photos / illustrations) ---------- */

.moments {
    max-width: 1080px;
    margin: 0 auto;
    padding: 40px 16px 70px;
}

.moments-track {
    display: grid;
    grid-template-columns: 1fr 1.18fr 1fr;
    align-items: end;
    gap: 28px;
}

.moment { margin: 0; text-align: center; }

.moment-frame {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 999px 999px 12px 12px;
    background:
        radial-gradient(circle at 50% 40%, rgba(212, 178, 106, 0.1), transparent 60%),
        linear-gradient(180deg, rgba(64, 20, 37, 0.7), rgba(22, 13, 17, 0.9));
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.moment-frame::after {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(212, 178, 106, 0.22);
    border-radius: 999px 999px 7px 7px;
    pointer-events: none;
    z-index: 2;
}

.moment-art {
    position: absolute;
    left: 50%;
    top: 54%;
    width: 64%;
    transform: translate(-50%, -50%);
    fill: none;
    stroke: var(--gold);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 10px rgba(212, 178, 106, 0.25));
}

.moment-art .thin { stroke-width: 1; }
.moment-art .bold { stroke-width: 2.4; }
.moment-art .soft { fill: rgba(212, 178, 106, 0.16); stroke-width: 1.2; }
.moment-art .flame { fill: rgba(240, 220, 164, 0.75); stroke: var(--gold-light); stroke-width: 1; }
.moment-art .glow { fill: rgba(240, 220, 164, 0.08); stroke: none; }

.moment-frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.06) brightness(0.9);
    opacity: 0;
    transition: opacity 0.8s ease, transform 1.2s var(--ease);
}

/* crop the top of the centre photo so only hands and flowers show */
.moment-feature .moment-frame img { transform-origin: 50% 100%; transform: scale(1.16); filter: grayscale(1) contrast(1.08) brightness(0.78); }
.moment-feature.has-photo .moment-frame:hover img { transform: scale(1.2); }

.moment.has-photo .moment-frame { cursor: zoom-in; }
.moment.has-photo .moment-frame img { opacity: 1; }
.moment.has-photo .moment-art { display: none; }
.moment.has-photo .moment-frame:hover img { transform: scale(1.04); }

.moment figcaption { margin-top: 18px; }

.moment figcaption span {
    display: inline-block;
    padding: 0 0.12em;
    font-family: var(--script);
    font-size: 36px;
    line-height: 1.2;
}

.moment figcaption small {
    display: block;
    margin-top: 2px;
    font-family: var(--display);
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--muted);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(8, 6, 7, 0.94);
}

.lightbox[hidden] { display: none; }

.lightbox img {
    filter: grayscale(1) contrast(1.06);
    max-width: 100%;
    max-height: 88vh;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

.lightbox-close {
    position: absolute;
    top: 14px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: transparent;
    color: var(--gold-light);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

/* ---------- Events ---------- */

.events {
    max-width: 1020px;
    margin: 0 auto;
    padding: 60px 16px 110px;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.event-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 92px 30px 40px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 240px 240px 14px 14px;
    background: linear-gradient(170deg, rgba(64, 20, 37, 0.55) 0%, rgba(22, 13, 17, 0.85) 60%);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
    transition: transform 0.6s var(--ease), border-color 0.6s ease, box-shadow 0.6s ease;
}

.event-card::before {
    content: '';
    position: absolute;
    inset: 9px;
    border: 1px solid rgba(212, 178, 106, 0.16);
    border-radius: 232px 232px 8px 8px;
    pointer-events: none;
}

.event-card:hover {
    transform: translateY(-6px);
    border-color: var(--line-strong);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), 0 0 40px rgba(212, 178, 106, 0.06);
}

.event-icon {
    position: absolute;
    top: 26px;
    left: 50%;
    transform: translateX(-50%);
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: rgba(13, 10, 12, 0.35);
}

.event-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--gold);
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.event-type {
    font-family: var(--script);
    font-size: clamp(44px, 5.5vw, 54px);
    line-height: 1.2;
    padding: 0 0.12em;
    display: inline-block;
}

.event-day {
    margin-top: 10px;
    font-family: var(--display);
    font-size: 12px;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--muted);
}

.event-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 12px;
}

.event-date strong {
    font-family: var(--display);
    font-weight: 400;
    font-size: 64px;
    line-height: 1;
    color: var(--gold-light);
}

.event-date span {
    padding-left: 14px;
    border-left: 1px solid var(--line-strong);
    font-family: var(--display);
    font-size: 12px;
    line-height: 1.7;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: left;
    color: var(--ivory);
}

.event-time {
    margin-top: 18px;
    font-size: 22px;
    font-style: italic;
    color: var(--gold-light);
}

.event-rule {
    width: 46px;
    height: 1px;
    margin: 26px auto;
    background: var(--gold);
    opacity: 0.6;
}

.venue-name {
    font-family: var(--display);
    font-size: 16px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ivory);
}

.venue-place {
    margin-top: 6px;
    font-size: 19px;
    color: var(--muted);
    line-height: 1.5;
}

.event-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid var(--gold);
    background: linear-gradient(135deg, #e6c983, #b98f45);
    color: #22120a;
    font-family: var(--display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.3s var(--ease), box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.btn svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(212, 178, 106, 0.2); }

.btn-ghost { background: transparent; color: var(--gold-light); }
.btn-ghost:hover { background: rgba(212, 178, 106, 0.1); }

/* ---------- Closing ---------- */

.closing {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 16px 100px;
    text-align: center;
}

.wreath {
    position: relative;
    width: 190px;
    height: 190px;
    margin: 0 auto 36px;
}

.wreath svg { width: 100%; height: 100%; overflow: visible; }

.wreath-letters {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-family: var(--script);
    font-size: 54px;
    line-height: 1;
    color: var(--gold-light);
}

.wreath-letters i { font-style: normal; font-size: 0.55em; color: var(--gold); }

.closing-text {
    font-style: italic;
    font-size: clamp(20px, 3vw, 24px);
    line-height: 1.6;
    color: var(--ivory);
}

.closing-sign {
    margin-top: 34px;
    font-family: var(--script);
    font-size: 40px;
    color: var(--gold);
}

.closing-families {
    margin-top: 6px;
    font-family: var(--display);
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.closing-families span { color: var(--gold); padding: 0 10px; font-size: 10px; }

.compliments {
    margin-top: 64px;
    padding-top: 44px;
    border-top: 1px solid var(--line);
}

.compliments-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 26px;
}

.compliments-side {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 26px 20px 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(32, 11, 19, 0.4);
}

.side-label {
    font-family: var(--script);
    font-size: 34px;
    line-height: 1.2;
    color: var(--gold);
}

.side-names {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 26px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.side-names li {
    font-size: 20px;
    font-weight: 500;
    color: var(--ivory);
    white-space: nowrap;
}

.side-names li span {
    font-size: 0.7em;
    font-style: italic;
    color: var(--gold);
    padding: 0 1px;
}

.side-names .names-break { flex-basis: 100%; height: 0; }

@media (max-width: 380px) {
    .side-names { gap: 4px 16px; }
    .side-names li { font-size: 18px; }
}

.side-kids {
    margin-top: 16px;
    font-size: 19px;
    font-style: italic;
    color: var(--ivory);
}

.side-kids span {
    display: block;
    margin-bottom: 2px;
    font-family: var(--display);
    font-style: normal;
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
}

/* ---------- Footer ---------- */

.footer {
    padding: 34px 16px 44px;
    text-align: center;
    border-top: 1px solid rgba(212, 178, 106, 0.14);
    background: rgba(13, 10, 12, 0.6);
}

.footer-names {
    font-family: var(--display);
    font-size: 15px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ivory);
}

.footer-names span { color: var(--gold); font-size: 10px; padding: 0 8px; vertical-align: 2px; }

.footer-date {
    margin-top: 6px;
    font-family: var(--display);
    font-size: 12px;
    letter-spacing: 0.3em;
    color: var(--gold);
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
    body { font-size: 18px; }

    .topbar-nav { display: none; }

    .couple {
        grid-template-columns: 1fr;
        gap: 26px;
        margin: 48px 0 56px;
    }

    .couple-ring { margin: 0 auto; width: 64px; height: 64px; }
    .couple-ring span { font-size: 32px; }

    .event-grid { grid-template-columns: 1fr; gap: 28px; }

    .moments-track {
        grid-template-columns: 1fr 1fr;
        gap: 30px 14px;
    }

    .moment-feature {
        grid-column: 1 / -1;
        order: -1;
        width: min(100%, 360px);
        margin: 0 auto;
    }

    .moment figcaption { margin-top: 12px; }
    .moment figcaption span { font-size: 28px; }
    .moment figcaption small { font-size: 9px; letter-spacing: 0.18em; }
    .moment-feature figcaption span { font-size: 36px; }
    .moment-feature figcaption small { font-size: 10px; letter-spacing: 0.28em; }

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

    .js .reveal { transform: translateY(40px) scale(0.98); transition-duration: 1.2s; }
    .js .reveal.in { transform: none; }

    .event-card { padding: 84px 20px 34px; }
}

@media (max-width: 420px) {
    .arch { padding: 100px 18px 44px; }
    .hero-date { gap: 12px; }
    .hero-date strong { font-size: 44px; }
    .hero-date span { font-size: 10px; letter-spacing: 0.18em; }
    .countdown { gap: 8px; }
    .countdown span { font-size: 9px; letter-spacing: 0.14em; }
    .divider span { width: 60px; }
    .event-date strong { font-size: 56px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .gold-text,
    .seal::after,
    .gate-hint,
    .scroll-cue-arrow,
    .music-toggle.playing svg { animation: none; }

    .door { transition: opacity 0.6s ease; }
    .gate.opening .door-left,
    .gate.opening .door-right { transform: none; opacity: 0; transition-delay: 0s; }

    .js .reveal,
    .js .hero-anim { transform: translateY(14px); transition: opacity 1s ease, transform 1s ease; }
    .js .reveal.in,
    .js body.opened .hero-anim { transform: none; }
}
