:root {
    --bg: #0e0d0f;
    --bg-2: #15131a;
    --bg-3: #1d1a21;
    --ink: #f3ecdf;
    --ink-soft: #a9a094;
    --gold: #cfae62;
    --gold-deep: #e6cc8c;
    --gold-light: #f3e2b4;
    --line: rgba(207, 174, 98, 0.16);
    --line-strong: rgba(207, 174, 98, 0.34);

    --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
    --script: 'Pinyon Script', 'Brush Script MT', cursive;

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

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

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

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

body.locked { overflow: hidden; }
a { color: inherit; }
p, h1, h2 { margin: 0; }
img { display: block; }
::selection { background: rgba(207, 174, 98, 0.35); }

/* backdrop: vignette, glow and a faint lattice */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(1000px 700px at 50% -20%, rgba(207, 174, 98, 0.1), transparent 60%),
        radial-gradient(900px 700px at 110% 110%, rgba(120, 80, 60, 0.18), transparent 60%),
        radial-gradient(700px 500px at -10% 70%, rgba(207, 174, 98, 0.05), transparent 60%);
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    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='%23cfae62' stroke-opacity='.06'/%3E%3Ccircle cx='28' cy='28' r='1.2' fill='%23cfae62' fill-opacity='.14'/%3E%3C/svg%3E");
    -webkit-mask-image: radial-gradient(ellipse at center, transparent 20%, #000 95%);
    mask-image: radial-gradient(ellipse at center, transparent 20%, #000 95%);
}

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

/* ---------- 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 {
    font-family: var(--sans);
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--gold);
}

.section-head { text-align: center; margin-bottom: 64px; }

.section-head .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.section-head .eyebrow::before, .section-head .eyebrow::after {
    content: '';
    width: 36px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}

.section-head .eyebrow::after { transform: scaleX(-1); }

.section-head h2 {
    margin-top: 16px;
    font-weight: 300;
    font-size: clamp(38px, 6vw, 60px);
    line-height: 1.05;
    letter-spacing: 0.01em;
}

.section-head h2 em { font-style: italic; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    border-radius: 999px;
    border: 1px solid var(--gold);
    background: linear-gradient(135deg, #ead394, #b8914a);
    color: #1a140a;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.35s var(--ease), box-shadow 0.35s ease, background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(207, 174, 98, 0.25); }
.btn-ghost { background: transparent; color: var(--gold-deep); border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(207, 174, 98, 0.1); border-color: var(--gold); box-shadow: none; }

/* ---------- Cover ---------- */

.cover { display: none; }

.js .cover {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 100;
    overflow: hidden;
    background:
        radial-gradient(800px 600px at 50% 30%, rgba(207, 174, 98, 0.12), transparent 65%),
        linear-gradient(180deg, #14121a 0%, #0e0d0f 100%);
}

.cover-frame {
    position: absolute;
    inset: 18px;
    border: 1px solid var(--line-strong);
    pointer-events: none;
}

.cover-frame::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid var(--line);
}

.cover-frame::after {
    content: '';
    position: absolute;
    inset: -1px;
    background:
        linear-gradient(var(--gold), var(--gold)) top left / 26px 1px no-repeat,
        linear-gradient(var(--gold), var(--gold)) top left / 1px 26px no-repeat,
        linear-gradient(var(--gold), var(--gold)) top right / 26px 1px no-repeat,
        linear-gradient(var(--gold), var(--gold)) top right / 1px 26px no-repeat,
        linear-gradient(var(--gold), var(--gold)) bottom left / 26px 1px no-repeat,
        linear-gradient(var(--gold), var(--gold)) bottom left / 1px 26px no-repeat,
        linear-gradient(var(--gold), var(--gold)) bottom right / 26px 1px no-repeat,
        linear-gradient(var(--gold), var(--gold)) bottom right / 1px 26px no-repeat;
}

.cover-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 32px;
}

.monogram { width: 140px; height: 140px; margin-bottom: 26px; }

.mono-ring {
    fill: none;
    stroke: var(--gold);
    stroke-width: 1;
    stroke-dasharray: 470;
    stroke-dashoffset: 470;
    animation: draw 2.2s var(--ease) forwards;
}

.mono-ring-inner { stroke-dasharray: 420; stroke-dashoffset: 420; animation-delay: 0.25s; }

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

.mono-text {
    font-family: var(--script);
    font-size: 56px;
    fill: var(--ink);
    opacity: 0;
    animation: fade 1.2s ease 1s forwards;
}

.mono-amp { font-size: 0.6em; fill: var(--gold); }

@keyframes fade { to { opacity: 1; } }

.cover-kicker {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.cover-names {
    margin: 14px 0 12px;
    font-weight: 300;
    font-size: clamp(36px, 9vw, 76px);
    line-height: 1.1;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.cover-names span { font-family: var(--script); font-size: 0.7em; padding: 0 0.1em; }

.cover-date {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--gold);
}

.cover-date i { width: 28px; height: 1px; background: var(--line-strong); }

.cover-open {
    position: relative;
    margin-top: 48px;
    padding: 17px 40px;
    border-radius: 999px;
    border: 1px solid var(--gold);
    background: linear-gradient(135deg, #ead394, #b8914a);
    color: #1a140a;
    cursor: pointer;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(207, 174, 98, 0.18);
    transition: transform 0.4s var(--ease), box-shadow 0.4s ease;
    -webkit-tap-highlight-color: transparent;
}

.cover-open::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 999px;
    border: 1px solid var(--gold);
    opacity: 0.7;
    animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
    0% { transform: scale(0.96); opacity: 0.8; }
    100% { transform: scale(1.22); opacity: 0; }
}

.cover-open:hover, .cover-open:focus-visible { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55), 0 0 40px rgba(207, 174, 98, 0.3); outline: none; }

.cover-hint {
    margin-top: 22px;
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.cover-kicker, .cover-names, .cover-date, .cover-open, .cover-hint {
    opacity: 0;
    transform: translateY(14px);
    animation: rise 1.2s var(--ease) forwards;
}

.cover-kicker { animation-delay: 1.3s; }
.cover-names { animation-delay: 1.5s; }
.cover-date { animation-delay: 1.7s; }
.cover-open { animation-delay: 2.1s; }
.cover-hint { animation-delay: 2.5s; }

@keyframes rise { to { opacity: 1; transform: none; } }

/* opening: freeze the intro animations so GSAP can take over */
.cover.opening .cover-content > *,
.cover.opening .mono-text,
.cover.opening .mono-ring { animation: none; opacity: 1; transform: none; stroke-dashoffset: 0; }
.cover.opening .cover-open::before { animation: none; opacity: 0; }

.cover.portal {
    -webkit-mask-image: radial-gradient(circle at var(--x) var(--y), transparent var(--r), #000 calc(var(--r) + 1.5px));
    mask-image: radial-gradient(circle at var(--x) var(--y), transparent var(--r), #000 calc(var(--r) + 1.5px));
}

.portal-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    border: 1.5px solid var(--gold-light);
    box-shadow: 0 0 24px rgba(243, 226, 180, 0.55), 0 0 80px rgba(207, 174, 98, 0.35), inset 0 0 24px rgba(243, 226, 180, 0.35);
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    z-index: 3;
}

/* ---------- Fixed chrome ---------- */

.progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 40;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transform-origin: left;
    transform: scaleX(0);
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 20px clamp(18px, 4vw, 48px);
    transition: background 0.5s ease, padding 0.5s ease, border-color 0.5s ease;
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    padding-top: 12px;
    padding-bottom: 12px;
    background: rgba(14, 13, 15, 0.82);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom-color: var(--line);
}

.nav-mark { font-size: 22px; letter-spacing: 0.18em; text-decoration: none; }
.nav-mark i { font-style: italic; color: var(--gold); font-size: 0.8em; }

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

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

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

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

.nav-date { justify-self: end; font-family: var(--sans); font-size: 11px; letter-spacing: 0.3em; color: var(--gold); }

.music {
    position: fixed;
    left: 20px;
    bottom: max(20px, env(safe-area-inset-bottom));
    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(21, 19, 26, 0.9);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.music[hidden] { display: none; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 16px; }
.bars i { width: 2px; height: 16px; background: var(--gold); transform-origin: bottom; transform: scaleY(0.3); }
.music.playing .bars i { animation: eq 1.1s ease-in-out infinite; }
.music.playing .bars i:nth-child(2) { animation-delay: 0.2s; }
.music.playing .bars i:nth-child(3) { animation-delay: 0.4s; }
.music.playing .bars i:nth-child(4) { animation-delay: 0.1s; }
@keyframes eq { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }

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

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

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.hero-media {
    position: relative;
    order: 2;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
}

.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

.hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(14, 13, 15, 0.65) 0%, rgba(14, 13, 15, 0) 22%),
        linear-gradient(0deg, rgba(14, 13, 15, 0.5) 0%, rgba(14, 13, 15, 0) 25%),
        linear-gradient(90deg, var(--bg) 0%, rgba(14, 13, 15, 0) 24%);
}

.hero-copy { position: relative; z-index: 2; padding: 120px clamp(24px, 6vw, 96px) 80px; }

.hero-names {
    margin: 24px 0 22px;
    font-weight: 300;
    font-size: clamp(60px, 8.5vw, 124px);
    line-height: 0.95;
    letter-spacing: 0.01em;
}

.hero-names .split { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-names .split span { display: inline-block; }

.hero-amp {
    display: block;
    margin: 0.02em 0 0 0.6em;
    font-family: var(--script);
    font-size: 0.5em;
    line-height: 1;
    color: var(--gold);
}

.hero-sub { font-style: italic; font-size: clamp(20px, 2.2vw, 24px); color: var(--ink-soft); }

.hero-line { width: 72px; height: 1px; margin: 34px 0 28px; background: linear-gradient(90deg, var(--gold), transparent); transform-origin: left; }

.hero-meta { display: grid; gap: 14px; }
.hero-meta p { display: grid; gap: 2px; }
.hero-meta span { font-family: var(--sans); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.hero-meta strong { font-weight: 400; font-size: 20px; letter-spacing: 0.02em; }

.scroll-cue {
    position: absolute;
    left: clamp(24px, 6vw, 96px);
    bottom: 32px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.scroll-cue i { position: relative; width: 56px; height: 1px; background: var(--line-strong); overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; inset: 0; background: var(--gold-light); transform: translateX(-100%); animation: cue 2s var(--ease) infinite; }
@keyframes cue { to { transform: translateX(100%); } }

/* ---------- Marquee ---------- */

.marquee {
    overflow: hidden;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg-2);
}

.marquee-track { display: flex; align-items: center; gap: 40px; width: max-content; white-space: nowrap; }
.marquee-track span { font-size: 22px; font-style: italic; font-weight: 300; letter-spacing: 0.06em; color: var(--ink); }
.marquee-track em { font-style: normal; font-size: 10px; color: var(--gold); }

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

.invitation { max-width: 900px; margin: 0 auto; padding: 130px 20px 110px; text-align: center; }

.lead {
    max-width: 640px;
    margin: 22px auto 0;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(23px, 3.2vw, 30px);
    line-height: 1.45;
}

.couple { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; margin: 72px 0 80px; }

.person-first { font-weight: 300; font-size: clamp(48px, 6.4vw, 72px); line-height: 1; }
.person-last { margin-top: 8px; font-family: var(--sans); font-size: 12px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--ink-soft); }
.person-rel { margin-top: 26px; font-family: var(--sans); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.person-parents { margin-top: 6px; font-size: 22px; }

.couple-amp { position: relative; width: 86px; height: 86px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); }
.couple-amp::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; border: 1px solid var(--line); }
.couple-amp span { font-family: var(--script); font-size: 40px; line-height: 1; color: var(--gold-deep); }

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

.verse::before, .verse::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 9px;
    height: 9px;
    background: var(--bg);
    border: 1px solid var(--gold);
    transform: translate(-50%, -50%) rotate(45deg);
}

.verse::before { top: 0; }
.verse::after { top: 100%; }

.verse-text { font-style: italic; font-weight: 300; font-size: clamp(22px, 3vw, 27px); line-height: 1.55; }
.verse-text .w { display: inline-block; }
.verse cite { display: block; margin-top: 18px; font-style: normal; font-family: var(--sans); font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold); }

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

.countdown-wrap { max-width: 820px; margin: 0 auto; padding: 0 20px 120px; text-align: center; }

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

.countdown div {
    position: relative;
    padding: 28px 6px 22px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(29, 26, 33, 0.8), rgba(14, 13, 15, 0.4));
}

.countdown div::before { content: ''; position: absolute; inset: 5px; border: 1px solid rgba(207, 174, 98, 0.12); pointer-events: none; }

.countdown strong {
    display: block;
    height: 1.1em;
    overflow: hidden;
    font-weight: 300;
    font-size: clamp(40px, 8vw, 72px);
    line-height: 1.1;
    color: var(--gold-light);
    font-variant-numeric: tabular-nums;
}

.countdown strong i { display: block; font-style: normal; }
.countdown span { display: block; margin-top: 8px; font-family: var(--sans); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-soft); }
.countdown-note { margin-top: 20px; font-style: italic; color: var(--ink-soft); }
.countdown-done { margin-top: 22px; font-family: var(--script); font-size: 42px; color: var(--gold-deep); }

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

.events { position: relative; padding: 120px 20px; background: linear-gradient(180deg, var(--bg-2), var(--bg) 100%); border-top: 1px solid var(--line); }

.event-grid { position: relative; max-width: 1060px; margin: 0 auto; display: grid; grid-template-columns: 1fr 72px 1fr; align-items: stretch; }

.event {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 90px 36px 44px;
    text-align: center;
    background: linear-gradient(170deg, #1f1b24 0%, #14121a 55%, #0f0e12 100%);
    border: 1px solid var(--line-strong);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), inset 0 0 80px rgba(0, 0, 0, 0.35);
    transition: box-shadow 0.6s ease, transform 0.6s var(--ease), border-color 0.6s ease;
}

.event::before { content: ''; position: absolute; inset: 10px; border: 1px solid var(--line); pointer-events: none; }

.event .corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 1px solid var(--gold);
    pointer-events: none;
}

.event .c1 { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.event .c2 { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.event .c3 { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.event .c4 { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

.event:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 50px 90px rgba(0, 0, 0, 0.6), 0 0 50px rgba(207, 174, 98, 0.1), inset 0 0 80px rgba(0, 0, 0, 0.35); }

.event-icon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--gold);
    background: radial-gradient(circle at 35% 30%, #2a2530, #14121a);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 0 6px var(--bg-2);
}

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

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

.event-date { display: grid; gap: 4px; margin-top: 12px; }
.event-day, .event-month { font-family: var(--sans); font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink-soft); }
.event-date strong { font-weight: 300; font-size: 96px; line-height: 0.95; color: var(--gold-light); }

.event-time { margin-top: 20px; font-style: italic; font-size: 23px; color: var(--gold-deep); }

.event-rule { position: relative; width: 60px; height: 1px; margin: 28px auto; background: var(--gold); }
.event-rule::after { content: ''; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; background: var(--gold); transform: translate(-50%, -50%) rotate(45deg); }

.venue { font-family: var(--sans); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; }
.venue-place { margin-top: 8px; color: var(--ink-soft); line-height: 1.5; }

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

.event-connector { position: relative; display: flex; align-items: center; justify-content: center; }
.event-connector-line { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--gold); transform: scaleX(0); }
.event-connector-dot { position: relative; width: 10px; height: 10px; border: 1px solid var(--gold); background: var(--bg-2); transform: scale(0) rotate(45deg); }

/* ---------- Moments ---------- */

.moments { max-width: 1120px; margin: 0 auto; padding: 130px 20px 80px; }
.moments-grid { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 32px; align-items: start; }

.moment { margin: 0; text-align: center; }
.moment-a { padding-top: 80px; }
.moment-c { padding-top: 160px; }

.moment-frame {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 999px 999px 14px 14px;
    background: var(--bg-3);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55);
    cursor: zoom-in;
}

.moment-frame::after {
    content: '';
    position: absolute;
    inset: 9px;
    border: 1px solid rgba(207, 174, 98, 0.35);
    border-radius: 999px 999px 8px 8px;
    pointer-events: none;
    z-index: 2;
}

.moment-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(14, 13, 15, 0) 70%, rgba(14, 13, 15, 0.45) 100%);
}

.moment-frame img { width: 100%; height: 120%; object-fit: cover; transition: transform 1s var(--ease), filter 1s ease; }
.moment-frame:hover img { transform: scale(1.05) !important; }

.moment figcaption { margin-top: 20px; }
.moment figcaption span { display: inline-block; padding: 0 0.12em; font-family: var(--script); font-size: 38px; line-height: 1.2; }
.moment figcaption small { display: block; margin-top: 4px; font-family: var(--sans); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-soft); }

.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(8, 7, 9, 0.95); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 88vh; border: 1px solid var(--line-strong); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7); }
.lightbox-close { position: absolute; top: 16px; right: 20px; width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--gold-light); font-size: 26px; line-height: 1; cursor: pointer; }

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

.closing { max-width: 760px; margin: 0 auto; padding: 60px 20px 120px; text-align: center; }

.closing-mono {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 150px;
    height: 150px;
    margin-bottom: 36px;
    font-family: var(--script);
    font-size: 58px;
    line-height: 1;
    color: var(--gold-light);
}

.closing-mono i { font-style: normal; font-size: 0.55em; color: var(--gold); }
.closing-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line-strong); }
.closing-ring::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; border: 1px solid var(--line); }

.closing-text { font-style: italic; font-weight: 300; font-size: clamp(22px, 3vw, 28px); line-height: 1.5; }
.closing-sign { display: inline-block; margin-top: 38px; padding: 0 0.15em; font-family: var(--script); font-size: 44px; }
.closing-families { margin-top: 4px; font-family: var(--sans); font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-soft); }
.closing-families i { font-style: normal; color: var(--gold); padding: 0 10px; font-size: 9px; }

.compliments { margin-top: 70px; padding-top: 48px; border-top: 1px solid var(--line); }
.compliments-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }

.side { position: relative; padding: 30px 20px 26px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(29, 26, 33, 0.7), rgba(14, 13, 15, 0.3)); }
.side::before { content: ''; position: absolute; inset: 6px; border: 1px solid rgba(207, 174, 98, 0.12); pointer-events: none; }
.side-label { font-family: var(--script); font-size: 32px; line-height: 1.2; color: var(--gold-deep); }
.side ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 21px; }
.side li span { color: var(--gold); font-style: italic; }
.side-kids { margin-top: 14px; font-size: 20px; }
.side-kids span { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }

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

.footer { padding: 44px 20px 48px; text-align: center; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-names { font-size: 28px; font-weight: 300; letter-spacing: 0.08em; }
.footer-names span { font-family: var(--script); color: var(--gold); }
.footer-date { margin-top: 6px; font-family: var(--sans); font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--ink-soft); }

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

@media (max-width: 900px) {
    .nav { grid-template-columns: 1fr auto; }
    .nav-links { display: none; }

    .hero { display: block; padding: 0; }

    .hero-media {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 80vh;
        height: 80svh;
    }

    .hero-media img { object-position: 50% 16%; }

    .hero-media {
        -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 42%, rgba(0, 0, 0, 0.55) 66%, transparent 97%);
        mask-image: linear-gradient(180deg, #000 0%, #000 42%, rgba(0, 0, 0, 0.55) 66%, transparent 97%);
    }

    .hero-media::after {
        background:
            linear-gradient(180deg, rgba(14, 13, 15, 0.6) 0%, rgba(14, 13, 15, 0) 15%),
            radial-gradient(120% 70% at 50% 35%, rgba(14, 13, 15, 0) 55%, rgba(14, 13, 15, 0.45) 100%);
    }

    .hero-copy {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        min-height: 100vh;
        min-height: 100svh;
        padding: 0 24px 92px;
        text-align: center;
    }

    .hero-names { font-size: clamp(50px, 14vw, 84px); margin: 14px 0 12px; text-shadow: 0 6px 30px rgba(0, 0, 0, 0.65); }
    .hero-amp { margin: 0.04em 0 0; }
    .hero-sub { text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8); }
    .hero-line { margin: 24px auto 20px; background: linear-gradient(90deg, transparent, var(--gold), transparent); transform-origin: center; }
    .hero-meta strong { font-size: 19px; }
    .scroll-cue { left: 50%; transform: translateX(-50%); bottom: 24px; }

    .couple { grid-template-columns: 1fr; gap: 20px; }
    .couple-amp { margin: 0 auto; }

    .event-grid { grid-template-columns: 1fr; }
    .event-connector { height: 72px; }
    .event-connector-line { left: 50%; right: auto; top: 0; bottom: 0; width: 1px; height: auto; transform: scaleY(0); }

    .moments-grid { grid-template-columns: 1fr 1fr; gap: 36px 14px; max-width: 480px; margin: 0 auto; }
    .moment-b { grid-column: 1 / -1; order: -1; width: min(100%, 340px); margin: 0 auto; }
    .moment-a, .moment-c { padding-top: 0; }
}

@media (max-width: 560px) {
    body { font-size: 18px; }
    .cover-frame { inset: 12px; }
    .cover-content { padding: 40px 24px; }
    .monogram { width: 118px; height: 118px; margin-bottom: 20px; }
    .cover-open { margin-top: 38px; padding: 16px 34px; font-size: 11px; }
    .invitation { padding: 96px 20px 80px; }
    .couple { margin: 56px 0 60px; }
    .countdown { gap: 8px; }
    .countdown strong { font-size: 34px; }
    .countdown div { padding: 20px 2px 16px; }
    .countdown span { font-size: 8px; letter-spacing: 0.2em; }
    .countdown-wrap { padding-bottom: 96px; }
    .events { padding: 110px 20px 96px; }
    .event { padding: 78px 22px 36px; }
    .event-date strong { font-size: 80px; }
    .moments { padding: 96px 20px 60px; }
    .closing { padding: 40px 20px 96px; }
    .section-head { margin-bottom: 44px; }
    .compliments-grid { grid-template-columns: 1fr; }
    .marquee-track span { font-size: 18px; }
    .moment-frame::after { inset: 6px; }
    .moment figcaption { margin-top: 14px; }
    .moment figcaption span { font-size: 27px; }
    .moment figcaption small { font-size: 8.5px; letter-spacing: 0.2em; }
    .moment-b figcaption span { font-size: 36px; }
    .moment-b figcaption small { font-size: 10px; letter-spacing: 0.3em; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Rounded corners ---------- */

.event { border-radius: 24px; }
.event::before { border-radius: 16px; }
.event .c1 { border-top-left-radius: 16px; }
.event .c2 { border-top-right-radius: 16px; }
.event .c3 { border-bottom-left-radius: 16px; }
.event .c4 { border-bottom-right-radius: 16px; }

.countdown div { border-radius: 16px; }
.countdown div::before { border-radius: 12px; }

.side { border-radius: 20px; }
.side::before { border-radius: 15px; }

.cover-frame { border-radius: 22px; }
.cover-frame::before { border-radius: 17px; }
.cover-frame::after { display: none; }

.lightbox img { border-radius: 14px; }

/* ---------- Softer gold lines ---------- */

.event .corner { border-color: rgba(207, 174, 98, 0.5); }
.event-connector-line { background: rgba(207, 174, 98, 0.4); }
.event-connector-dot { border-color: rgba(207, 174, 98, 0.6); }
.countdown div::before { border-color: rgba(207, 174, 98, 0.07); }
.verse::before, .verse::after { border-color: rgba(207, 174, 98, 0.6); }
.event-date strong { font-variant-numeric: lining-nums; }

/* ---------- Fewer lines: one soft border per container, no extra separators ---------- */

/* event cards: single border, no inner frame, no corner brackets, no connector */
.event { border-color: var(--line); }
.event::before, .event .corner { display: none; }
.event-grid { grid-template-columns: 1fr 40px 1fr; }
.event-connector { visibility: hidden; }
.event-date strong { font-variant-numeric: lining-nums; }

/* countdown: single border */
.countdown div::before { display: none; }

/* verse: no rules above and below, a small ornament instead */
.verse { border: 0; padding: 30px 20px 0; }
.verse::after { display: none; }
.verse::before { top: 0; background: transparent; border-color: rgba(207, 174, 98, 0.6); }

/* family boxes: single border, no rule above the block */
.side::before { display: none; }
.compliments { border-top: 0; padding-top: 10px; }

/* cover: one frame line */
.cover-frame::before { display: none; }

/* page chrome */
.nav.scrolled { border-bottom-color: transparent; }
.marquee { border: 0; }
.events { border-top: 0; }
.footer { border-top: 0; }

@media (max-width: 900px) {
    .event-grid { grid-template-columns: 1fr; gap: 0; }
    .event-connector { height: 56px; }
}
.event:hover { border-color: var(--line-strong); }
