:root {
  --ink: #26251f;
  --deep: #302f27;
  --olive: #6e7056;
  --olive-dark: #555741;
  --sage: #a7aa8f;
  --sand: #d6c2a5;
  --terracotta: #b88266;
  --cream: #f7f1e7;
  --ivory: #fffaf3;
  --paper: #f2e9dc;
  --gold: #c49a67;
  --line: rgba(38,37,31,.16);
  --shadow: 0 30px 80px rgba(48,47,39,.14);
  --radius: 28px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; color: var(--ink); background: var(--ivory); font-family: "Poppins", Arial, sans-serif; line-height: 1.6; overflow-x: hidden; }
body.nav-open, body.modal-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--olive); color: white; }

.page-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 200; background: transparent; }
.page-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--terracotta), var(--gold), var(--olive)); }
.cursor-orbit { position: fixed; z-index: 199; width: 28px; height: 28px; border: 1px solid rgba(77,77,60,.45); border-radius: 50%; pointer-events: none; transform: translate(-50%,-50%); transition: width .2s ease, height .2s ease, opacity .2s ease; mix-blend-mode: multiply; }
.cursor-orbit.is-hover { width: 50px; height: 50px; }

.site-header { position: fixed; top: 16px; left: 50%; z-index: 100; width: min(1180px, calc(100% - 40px)); min-height: 72px; padding: 10px 12px 10px 22px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border: 1px solid rgba(255,255,255,.4); border-radius: 22px; background: rgba(255,250,243,.78); backdrop-filter: blur(18px); box-shadow: 0 18px 50px rgba(47,44,36,.09); transition: top .35s ease, background .35s ease, box-shadow .35s ease; }
.site-header.scrolled { top: 8px; background: rgba(255,250,243,.94); box-shadow: 0 14px 40px rgba(47,44,36,.14); }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { font-size: 25px; font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.brand-mark span { color: var(--gold); font-weight: 300; margin: 0 3px; }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy b { font-size: 10px; letter-spacing: .25em; }
.brand-copy small { margin-top: 5px; color: #77715f; font-size: 8px; letter-spacing: .2em; }
.main-nav { display: flex; align-items: center; gap: 32px; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.main-nav a { position: relative; padding: 13px 0; }
.main-nav a:not(.nav-rsvp)::after { content: ""; position: absolute; left: 0; bottom: 6px; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .3s ease; }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-rsvp { display: inline-flex; align-items: center; gap: 14px; min-height: 48px; padding: 0 22px !important; color: white; background: var(--deep); border-radius: 14px; transition: background .3s ease, transform .3s ease; }
.nav-rsvp:hover { background: var(--olive-dark); transform: translateY(-2px); }
.menu-toggle { display: none; width: 48px; height: 48px; border: 0; background: var(--deep); border-radius: 14px; cursor: pointer; place-items: center; }
.menu-toggle span { position: absolute; width: 18px; height: 1px; background: white; transition: transform .3s ease; }
.menu-toggle span:first-child { transform: translateY(-4px); }
.menu-toggle span:last-child { transform: translateY(4px); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.section-pad { padding: 120px max(5vw, 32px); }
.eyebrow { margin: 0 0 16px; color: var(--terracotta); font-size: 10px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; }
.section-heading h2, .gallery-intro h2, .form-heading h2, .gift-list-head h2, .venue-copy h2, .dress-panel h2, .footer-lead h2 { margin: 0; font-size: clamp(36px, 5vw, 72px); font-weight: 400; letter-spacing: -.055em; line-height: 1.08; }
.section-heading p:not(.eyebrow), .form-heading p, .gallery-intro > p { max-width: 590px; color: #6f6a5c; font-size: 14px; }
.centered { text-align: center; }
.centered p { margin-inline: auto; }
.button { min-height: 54px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; border: 0; border-radius: 15px; font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: background .3s ease, transform .3s ease, box-shadow .3s ease; }
.button span { font-size: 17px; line-height: 1; }
.button-dark { color: white; background: var(--deep); box-shadow: 0 14px 35px rgba(48,47,39,.18); }
.button-dark:hover { background: var(--olive-dark); box-shadow: 0 18px 42px rgba(48,47,39,.26); }
.button-light { color: var(--deep); background: var(--ivory); }
.button-light:hover { color: white; background: var(--deep); }
.button-olive { color: white; background: var(--olive); }
.button-olive:hover { background: var(--olive-dark); }

.hero { position: relative; min-height: 940px; padding: 180px max(7vw, 56px) 100px; display: grid; grid-template-columns: minmax(340px, .85fr) minmax(500px, 1.15fr); align-items: center; gap: clamp(40px, 8vw, 120px); overflow: hidden; background: radial-gradient(circle at 10% 10%, rgba(214,194,165,.38), transparent 33%), linear-gradient(135deg, #f6eee2 0%, #fdf9f2 54%, #e7dac7 100%); }
.hero::before { content: ""; position: absolute; width: 360px; height: 360px; left: -160px; bottom: 80px; border: 1px solid rgba(110,112,86,.22); border-radius: 50%; }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -220px; top: 100px; border: 1px solid rgba(184,130,102,.23); border-radius: 50%; }
.hero-grain { position: absolute; inset: 0; pointer-events: none; opacity: .16; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E"); }
.hero-copy { position: relative; z-index: 2; max-width: 570px; }
.hero h1 { margin: 0; display: grid; font-size: clamp(70px, 9vw, 138px); font-weight: 300; letter-spacing: -.08em; line-height: .78; }
.hero h1 span:last-child { margin-left: clamp(30px, 5vw, 86px); }
.hero h1 i { margin: -7px 0 -4px 46%; color: var(--terracotta); font-size: .27em; font-weight: 400; letter-spacing: 0; }
.hero-intro { max-width: 430px; margin: 38px 0 26px; color: #686456; font-size: 17px; font-weight: 300; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px 30px; margin-bottom: 32px; color: #504d43; font-size: 12px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 9px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--terracotta); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 25px; }
.text-link { display: inline-flex; align-items: center; gap: 11px; border: 0; background: none; cursor: pointer; font-size: 10px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.play-icon { width: 42px; height: 42px; display: grid; place-items: center; color: white; background: var(--olive); border-radius: 50%; font-size: 9px; transition: transform .3s ease; }
.text-link:hover .play-icon { transform: scale(1.08); }
.hero-visual { position: relative; z-index: 2; justify-self: end; width: min(650px, 100%); }
.hero-image-wrap { position: relative; aspect-ratio: 1 / 1.15; overflow: hidden; border-radius: 48% 48% 24px 24px; box-shadow: var(--shadow); transform-style: preserve-3d; }
.hero-image-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(34,32,27,.4)); }
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: 52% center; transform: scale(1.05); }
.image-label { position: absolute; z-index: 2; right: 26px; bottom: 24px; color: white; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; }
.hero-note { position: absolute; left: -90px; bottom: 80px; z-index: 3; width: 235px; padding: 28px; background: rgba(255,250,243,.92); border: 1px solid rgba(255,255,255,.7); border-radius: 22px; box-shadow: 0 18px 50px rgba(48,47,39,.15); backdrop-filter: blur(16px); }
.hero-note span { color: var(--gold); font-size: 44px; line-height: .7; }
.hero-note p { margin: 9px 0 0; font-size: 16px; font-weight: 300; line-height: 1.55; }
.botanical-line { position: absolute; z-index: -1; width: 290px; height: 290px; right: -90px; bottom: -70px; border: 1px solid rgba(110,112,86,.35); border-radius: 48% 52% 48% 52%; transform: rotate(24deg); }
.scroll-cue { position: absolute; z-index: 3; left: max(7vw, 56px); bottom: 28px; display: flex; align-items: center; gap: 16px; font-size: 9px; letter-spacing: .22em; text-transform: uppercase; }
.scroll-cue i { position: relative; width: 80px; height: 1px; background: rgba(38,37,31,.25); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--terracotta); animation: scrollLine 2.3s ease-in-out infinite; }
@keyframes scrollLine { from { transform: translateX(-100%); } 60%,to { transform: translateX(100%); } }

.countdown { display: grid; grid-template-columns: minmax(180px,.7fr) 2fr; align-items: center; gap: 60px; background: var(--deep); color: white; }
.countdown-heading { display: flex; align-items: center; gap: 18px; }
.countdown-heading .eyebrow { margin: 0; color: var(--sand); }
.tiny-heart { color: var(--terracotta); font-size: 24px; }
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.countdown-item { position: relative; min-height: 125px; display: grid; place-content: center; text-align: center; }
.countdown-item + .countdown-item::before { content: ""; position: absolute; left: 0; top: 25%; width: 1px; height: 50%; background: rgba(255,255,255,.16); }
.countdown-item strong { font-size: clamp(42px, 5vw, 72px); font-weight: 400; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown-item span { margin-top: 12px; color: var(--sand); font-size: 9px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; }

.details { background: var(--ivory); }
.event-grid { max-width: 1280px; margin: 72px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.event-card { position: relative; min-height: 480px; padding: 48px; display: flex; flex-direction: column; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .35s ease, box-shadow .35s ease, background .35s ease; }
.event-card::after { content: ""; position: absolute; width: 220px; height: 220px; right: -100px; bottom: -100px; border: 1px solid rgba(196,154,103,.25); border-radius: 50%; }
.event-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.event-card.featured { color: white; background: var(--olive-dark); }
.event-card.featured .card-kicker, .event-card.featured p, .event-card.featured a { color: #e7decf; }
.premium-icon { width: 64px; height: 64px; margin-bottom: 20px; display: grid; place-items: center; color: var(--terracotta); background: var(--ivory); border-radius: 18px; }
.premium-icon svg { width: 32px; height: 32px; }
.card-kicker { margin: 32px 0 9px; color: var(--terracotta); font-size: 9px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.event-card h3 { margin: 0; font-size: 28px; font-weight: 400; letter-spacing: -.04em; }
.event-card time { margin: 16px 0 10px; font-size: 13px; font-weight: 600; }
.event-card p { margin: 0; color: #716c60; font-size: 13px; }
.event-card a, .calendar-button { margin-top: auto; padding: 14px 0 6px; display: inline-flex; align-items: center; gap: 10px; border: 0; border-bottom: 1px solid currentColor; background: transparent; cursor: pointer; color: var(--olive-dark); font-size: 9px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }

.story { display: grid; grid-template-columns: minmax(360px,.85fr) minmax(480px,1.15fr); gap: clamp(60px, 9vw, 150px); align-items: center; background: #e9dfd1; }
.story-photo { position: relative; }
.story-photo img { width: 100%; aspect-ratio: .85 / 1; object-fit: cover; border-radius: 220px 220px 24px 24px; box-shadow: var(--shadow); }
.story-stamp { position: absolute; right: -36px; bottom: 70px; width: 160px; height: 160px; padding: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: white; text-align: center; background: var(--terracotta); border: 8px solid #e9dfd1; border-radius: 50%; }
.story-stamp strong { flex: 0 0 auto; font-size: 39px; font-weight: 400; line-height: 1; white-space: nowrap; }
.story-stamp span { font-size: 8px; letter-spacing: .11em; text-transform: uppercase; line-height: 1.45; white-space: nowrap; }
.story-copy .section-heading { margin-bottom: 54px; }
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 28px; top: 12px; bottom: 12px; width: 1px; background: rgba(38,37,31,.2); }
.timeline-item { position: relative; display: grid; grid-template-columns: 58px 1fr; gap: 28px; padding: 0 0 34px; }
.timeline-item > span { position: relative; z-index: 1; width: 58px; height: 58px; display: grid; place-items: center; background: var(--ivory); border: 1px solid rgba(38,37,31,.16); border-radius: 50%; font-size: 10px; font-weight: 600; }
.timeline-item h3 { margin: 0 0 5px; font-size: 17px; font-weight: 500; }
.timeline-item p { margin: 0; color: #6d675c; font-size: 13px; }

.gallery { background: var(--deep); color: white; }
.gallery-intro { max-width: 1280px; margin: 0 auto 56px; display: flex; align-items: end; justify-content: space-between; gap: 50px; }
.gallery-intro .eyebrow { color: var(--sand); }
.gallery-intro > p { max-width: 410px; color: #c7c0b3; }
.gallery-grid { max-width: 1360px; margin: auto; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 280px; gap: 14px; }
.gallery-item { position: relative; padding: 0; border: 0; border-radius: 18px; overflow: hidden; cursor: zoom-in; background: #181813; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.65,.2,1), filter .5s ease; }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(18,18,14,.7)); opacity: .75; transition: opacity .4s ease; }
.gallery-item span { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 18px; display: flex; align-items: center; gap: 13px; color: white; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.gallery-item b { color: var(--sand); font-weight: 500; }
.gallery-item:hover img { transform: scale(1.065); filter: saturate(.9); }
.gallery-item:hover::after { opacity: .9; }
.gallery-tall { grid-row: span 2; }
.gallery-wide { grid-column: span 2; }

.essentials { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; background: #f0e6d8; }
.venue-panel { min-height: 590px; display: grid; grid-template-columns: 1.1fr .9fr; overflow: hidden; color: white; background: var(--olive-dark); border-radius: var(--radius); }
.venue-image { min-height: 100%; overflow: hidden; }
.venue-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.venue-panel:hover img { transform: scale(1.05); }
.venue-copy { padding: 58px; align-self: center; }
.venue-copy .eyebrow { color: var(--sand); }
.venue-copy h2 { font-size: clamp(40px,5vw,68px); }
.venue-copy p { margin: 20px 0 30px; color: #e5ddce; font-size: 13px; }
.dress-panel { position: relative; min-height: 590px; padding: 62px; display: flex; flex-direction: column; justify-content: center; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dress-panel::before, .dress-panel::after { content: ""; position: absolute; border: 1px solid rgba(184,130,102,.2); border-radius: 50%; }
.dress-panel::before { width: 300px; height: 300px; right: -170px; top: -120px; }
.dress-panel::after { width: 170px; height: 170px; right: -70px; top: 0; }
.dress-panel p:not(.eyebrow) { max-width: 460px; color: #716b5f; font-size: 13px; }
.swatches { display: flex; gap: 14px; margin: 34px 0; }
.swatches span { width: 48px; height: 48px; border-radius: 50%; border: 5px solid rgba(255,255,255,.8); box-shadow: 0 0 0 1px rgba(38,37,31,.12); }
.swatches span:nth-child(1){background:#6e7056}.swatches span:nth-child(2){background:#d6c2a5}.swatches span:nth-child(3){background:#b88266}.swatches span:nth-child(4){background:#5a4637}.swatches span:nth-child(5){background:#f4eee4}
.dress-note { padding-top: 24px; border-top: 1px solid var(--line); letter-spacing: .08em; text-transform: uppercase; font-size: 9px !important; }

.forms-section { display: grid; grid-template-columns: 1fr 1fr; padding-bottom: 30px; gap: 22px; background: var(--ivory); }
.rsvp-panel, .registry-panel { padding: 64px; border-radius: var(--radius); }
.rsvp-panel { background: #ece2d4; }
.registry-panel { color: white; background: var(--deep); }
.registry-panel .eyebrow { color: var(--sand); }
.registry-panel .form-heading p { color: #bbb4a6; }
.form-heading { margin-bottom: 38px; }
.form-heading h2 { font-size: clamp(36px,4vw,58px); }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: grid; gap: 8px; font-size: 9px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
input, select, textarea { width: 100%; border: 1px solid rgba(38,37,31,.16); border-radius: 13px; padding: 15px 16px; color: var(--ink); background: rgba(255,250,243,.78); outline: none; transition: border .25s ease, box-shadow .25s ease, background .25s ease; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--terracotta); box-shadow: 0 0 0 4px rgba(184,130,102,.12); background: white; }
.registry-panel input, .registry-panel select, .registry-panel textarea { color: white; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); }
.registry-panel input::placeholder, .registry-panel textarea::placeholder { color: #a6a093; }
.registry-panel select option { color: var(--ink); }
.full { grid-column: 1 / -1; }
label.invalid input, label.invalid select { border-color: #c65b52; box-shadow: 0 0 0 4px rgba(198,91,82,.11); }

.gift-list { padding-top: 80px; background: var(--ivory); }
.gift-list-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 44px; }
.gift-list-head h2 { font-size: clamp(40px,5vw,64px); }
.clear-gifts { padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: #756f62; cursor: pointer; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.gift-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gift-card { position: relative; min-height: 230px; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; background: #efe6d9; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; animation: giftIn .55s cubic-bezier(.2,.7,.2,1) both; }
.gift-card:nth-child(3n+2) { background: #ded6c4; }
.gift-card:nth-child(3n) { color: white; background: var(--olive-dark); }
.gift-card::after { content: attr(data-category); position: absolute; top: 25px; right: -26px; width: 110px; padding: 5px 0; background: rgba(255,255,255,.4); transform: rotate(35deg); text-align: center; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.gift-card:nth-child(3n)::after { background: rgba(255,255,255,.1); }
.gift-card h3 { max-width: 80%; margin: 0 0 7px; font-size: 20px; font-weight: 500; line-height: 1.25; }
.gift-card p { margin: 0; color: #706a5e; font-size: 12px; }
.gift-card:nth-child(3n) p { color: #ded6c8; }
.gift-card .gift-value { margin-top: 20px; font-size: 26px; font-weight: 300; }
.gift-card button { position: absolute; left: auto; right: 20px; bottom: 18px; width: 34px; height: 34px; border: 1px solid currentColor; border-radius: 50%; background: transparent; cursor: pointer; opacity: .55; }
.empty-gifts { padding: 30px; color: #777164; text-align: center; border: 1px dashed var(--line); border-radius: 18px; }
@keyframes giftIn { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }

.site-footer { position: relative; padding: 100px max(5vw,32px) 24px; color: white; background: #22231d; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; width: 450px; height: 450px; right: -190px; top: -180px; border: 1px solid rgba(196,154,103,.2); border-radius: 50%; }
.footer-lead { max-width: 850px; margin-bottom: 80px; }
.footer-lead .eyebrow { color: var(--sand); }
.footer-lead h2 { max-width: 800px; font-size: clamp(44px,6vw,86px); }
.footer-lead > span { display: inline-block; margin-top: 24px; color: var(--sand); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.footer-grid { padding: 48px 0; display: grid; grid-template-columns: 1.1fr .7fr 1fr .7fr; gap: 70px; border-top: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); }
.footer-grid h3 { margin: 0 0 20px; color: var(--sand); font-size: 9px; letter-spacing: .22em; text-transform: uppercase; }
.footer-grid a, .footer-grid p { display: block; margin: 9px 0; color: #c7c1b5; font-size: 12px; }
.footer-brand .brand-mark { font-size: 34px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; transition: background .3s ease, color .3s ease; }
.socials a:hover { color: var(--deep); background: var(--sand); }
.footer-bottom { padding-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #8f8b82; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.footer-bottom a { width: 42px; height: 42px; display: grid; place-items: center; color: white; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; }

.modal { width: min(510px, calc(100% - 32px)); padding: 48px; border: 0; border-radius: 28px; color: var(--ink); background: var(--ivory); text-align: center; box-shadow: 0 40px 120px rgba(26,25,21,.35); }
.modal::backdrop { background: rgba(28,28,23,.7); backdrop-filter: blur(7px); }
.modal-close { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #eee5d8; cursor: pointer; font-size: 21px; }
.modal-icon { width: 72px; height: 72px; margin: 0 auto 25px; display: grid; place-items: center; color: white; background: var(--olive); border-radius: 50%; font-size: 27px; }
.modal h2 { margin: 0 0 12px; font-size: 46px; font-weight: 400; letter-spacing: -.05em; }
.modal p:not(.eyebrow) { max-width: 350px; margin: 0 auto 26px; color: #6f695d; font-size: 13px; }
.modal-confirm { margin: auto; }

.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; grid-template-columns: 70px 1fr 70px; place-items: center; padding: 30px; color: white; background: rgba(24,24,19,.94); opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s ease; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox figure { width: min(1080px, 100%); margin: 0; }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: 18px; }
.lightbox figcaption { margin-top: 16px; color: #d8d0c3; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; text-align: center; }
.lightbox button { border: 1px solid rgba(255,255,255,.25); color: white; background: rgba(255,255,255,.04); cursor: pointer; border-radius: 50%; }
.lightbox-close { position: absolute; top: 24px; right: 24px; width: 48px; height: 48px; font-size: 24px; }
.lightbox-nav { width: 52px; height: 52px; font-size: 20px; }

.story-video { position: fixed; inset: 0; z-index: 310; padding: 30px; display: grid; place-items: center; color: white; background: rgba(31,31,25,.96); opacity: 0; visibility: hidden; transition: .35s ease; }
.story-video.open { opacity: 1; visibility: visible; }
.story-video > button { position: absolute; top: 25px; right: 25px; width: 50px; height: 50px; border: 1px solid rgba(255,255,255,.2); color: white; background: none; border-radius: 50%; font-size: 25px; cursor: pointer; }
.story-video > div { max-width: 820px; text-align: center; }
.story-video h2 { margin: 0; font-size: clamp(44px,7vw,88px); font-weight: 300; line-height: 1.12; letter-spacing: -.06em; }
.story-video p:not(.eyebrow) { max-width: 550px; margin: 25px auto; color: #c5bfb3; }

/* Content stays visible when JavaScript is unavailable. */
.reveal { opacity: 1; transform: none; }
.js-ready .reveal { opacity: 0; transform: translateY(35px); transition: opacity .9s cubic-bezier(.2,.65,.2,1), transform .9s cubic-bezier(.2,.65,.2,1); transition-delay: var(--delay, 0ms); }
.js-ready .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .site-header { width: calc(100% - 28px); }
  .main-nav { gap: 20px; }
  .hero { grid-template-columns: .88fr 1.12fr; gap: 30px; padding-inline: 45px; }
  .hero-note { left: -50px; }
  .event-card { padding: 36px; }
  .story { gap: 70px; }
  .venue-panel { grid-template-columns: 1fr; }
  .venue-image { min-height: 280px; }
  .gift-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 82px; }
  .cursor-orbit { display: none; }
  .site-header { top: 10px; min-height: 64px; padding: 8px 9px 8px 17px; border-radius: 18px; }
  .brand-copy { display: none; }
  .menu-toggle { display: grid; position: relative; }
  .main-nav { position: fixed; inset: 0; z-index: -1; padding: 120px 28px 45px; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 0; color: var(--ink); background: var(--ivory); opacity: 0; visibility: hidden; transform: translateY(-20px); transition: .35s ease; }
  .main-nav.open { opacity: 1; visibility: visible; transform: none; }
  .main-nav a { padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .main-nav .nav-rsvp { margin-top: 24px; justify-content: space-between; color: white; border: 0; }
  .section-pad { padding: 88px 24px; }
  .hero { min-height: auto; padding: 135px 24px 85px; grid-template-columns: 1fr; gap: 55px; }
  .hero h1 { font-size: clamp(72px,19vw,110px); }
  .hero-copy { max-width: 650px; }
  .hero-visual { width: 90%; justify-self: end; }
  .hero-note { left: -12%; bottom: 40px; width: 205px; }
  .scroll-cue { display: none; }
  .countdown { grid-template-columns: 1fr; gap: 35px; }
  .countdown-heading { justify-content: center; }
  .event-grid { grid-template-columns: 1fr; }
  .event-card { min-height: 400px; }
  .story { grid-template-columns: 1fr; }
  .story-photo { width: 80%; }
  .story-stamp { right: -20px; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); grid-auto-rows: 240px; }
  .gallery-intro { align-items: flex-start; flex-direction: column; }
  .essentials, .forms-section { grid-template-columns: 1fr; }
  .venue-panel { min-height: auto; }
  .dress-panel { min-height: 520px; }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 560px) {
  .site-header { width: calc(100% - 20px); }
  .hero { padding: 120px 18px 70px; }
  .hero h1 { font-size: 21vw; line-height: .82; }
  .hero h1 span:last-child { margin-left: 18px; }
  .hero h1 i { margin-left: 42%; }
  .hero-intro { margin-top: 30px; font-size: 14px; }
  .hero-meta { display: grid; gap: 10px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .text-link { justify-content: center; }
  .hero-visual { width: 100%; }
  .hero-image-wrap { border-radius: 46% 46% 20px 20px; }
  .hero-note { left: 8px; bottom: 16px; width: 180px; padding: 20px; }
  .hero-note p { font-size: 13px; }
  .countdown { padding-inline: 18px; }
  .countdown-grid { grid-template-columns: repeat(2,1fr); gap: 1px; background: rgba(255,255,255,.12); }
  .countdown-item { min-height: 110px; background: var(--deep); }
  .countdown-item + .countdown-item::before { display: none; }
  .countdown-item strong { font-size: 44px; }
  .section-heading h2, .gallery-intro h2, .form-heading h2, .gift-list-head h2, .venue-copy h2, .dress-panel h2, .footer-lead h2 { font-size: 40px; }
  .event-card { min-height: 390px; padding: 30px; }
  .story-photo { width: 92%; }
  .story-stamp { width: 132px; height: 132px; right: -10px; bottom: 35px; padding: 14px; gap: 6px; border-width: 6px; }
  .story-stamp strong { font-size: 30px; }
  .story-stamp span { font-size: 7px; letter-spacing: .08em; }
  .timeline-item { grid-template-columns: 48px 1fr; gap: 18px; }
  .timeline::before { left: 24px; }
  .timeline-item > span { width: 48px; height: 48px; font-size: 8px; }
  .gallery { padding-inline: 12px; }
  .gallery-intro { padding-inline: 12px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 190px; gap: 8px; }
  .gallery-tall { grid-row: span 2; }
  .gallery-wide { grid-column: span 2; }
  .gallery-item { border-radius: 12px; }
  .gallery-item span { left: 13px; bottom: 12px; font-size: 8px; }
  .essentials, .forms-section { padding-inline: 12px; }
  .venue-panel, .dress-panel, .rsvp-panel, .registry-panel { border-radius: 22px; }
  .venue-copy, .dress-panel, .rsvp-panel, .registry-panel { padding: 34px 24px; }
  .venue-image { min-height: 230px; }
  .dress-panel { min-height: 460px; }
  .swatches { gap: 8px; }
  .swatches span { width: 38px; height: 38px; }
  form { grid-template-columns: 1fr; }
  .full { grid-column: auto; }
  .gift-list-head { align-items: flex-start; flex-direction: column; }
  .gift-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-bottom a { position: absolute; right: 22px; bottom: 20px; }
  .modal { padding: 42px 24px 30px; }
  .modal h2 { font-size: 40px; }
  .lightbox { grid-template-columns: 1fr; padding: 70px 15px 90px; }
  .lightbox-nav { position: absolute; bottom: 25px; }
  .lightbox-nav.prev { left: calc(50% - 64px); }
  .lightbox-nav.next { right: calc(50% - 64px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .cursor-orbit { display: none; }
}


/* =========================================================
   Premium revision: corrected menu, sharper gallery,
   separated RSVP, and unified guest gift registry
   ========================================================= */

html { scroll-padding-top: 112px; }

.site-header {
  left: 50%;
  transform: translateX(-50%);
  width: min(1240px, calc(100% - 40px));
  min-height: 76px;
  padding: 11px 13px 11px 24px;
  gap: 34px;
}

.brand { flex: 0 0 auto; }
.main-nav { margin-left: auto; gap: clamp(20px, 2.2vw, 34px); white-space: nowrap; }
.main-nav a { font-size: 11px; letter-spacing: .14em; }
.main-nav a.active:not(.nav-rsvp) { color: var(--terracotta); }
.nav-rsvp { min-width: 116px; justify-content: center; }

.gallery { padding-bottom: 128px; }
.gallery-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 270px 270px 250px;
  grid-auto-rows: unset;
  gap: 14px;
}
.gallery-item { min-width: 0; min-height: 0; border-radius: 20px; box-shadow: 0 18px 45px rgba(0,0,0,.18); }
.gallery-item img { image-rendering: auto; filter: saturate(.92) contrast(1.02); }
.gallery-feature { grid-column: 1 / 5; grid-row: 1 / 3; }
.gallery-landscape { grid-column: 5 / 9; grid-row: 1; }
.gallery-detail:nth-of-type(3) { grid-column: 9 / 13; grid-row: 1; }
.gallery-detail:nth-of-type(4) { grid-column: 5 / 8; grid-row: 2; }
.gallery-portrait { grid-column: 8 / 13; grid-row: 2; }
.gallery-wide { grid-column: 1 / 13; grid-row: 3; }
.gallery-feature img { object-position: center 36%; }
.gallery-landscape img { object-position: center 44%; }
.gallery-detail img { object-position: center center; }
.gallery-portrait img { object-position: center 38%; }
.gallery-wide img { object-position: center 57%; }
.gallery-item::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 12px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 13px;
  pointer-events: none;
  opacity: 0;
  transform: scale(.98);
  transition: opacity .35s ease, transform .35s ease;
}
.gallery-item:hover::before { opacity: 1; transform: none; }

.rsvp-section {
  background:
    radial-gradient(circle at 8% 10%, rgba(185,122,82,.14), transparent 30%),
    linear-gradient(135deg, #f3e9dc 0%, #fffaf4 56%, #e7dccb 100%);
}
.rsvp-shell {
  max-width: 1240px;
  margin: auto;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  align-items: stretch;
  gap: 32px;
}
.rsvp-intro {
  min-height: 100%;
  padding: clamp(44px, 6vw, 84px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(125,101,72,.18);
  border-radius: 30px;
  background: rgba(255,250,244,.76);
  box-shadow: 0 28px 70px rgba(74,59,39,.08);
}
.rsvp-intro h2,
.registry-heading h2 { margin: 8px 0 22px; font-size: clamp(42px, 5.5vw, 76px); font-weight: 400; letter-spacing: -.055em; line-height: 1.03; }
.rsvp-intro > p:not(.eyebrow) { max-width: 440px; color: #71695c; line-height: 1.8; }
.rsvp-note { margin-top: 52px; padding-top: 28px; display: flex; align-items: flex-start; gap: 18px; border-top: 1px solid var(--line); }
.rsvp-note span { color: var(--terracotta); font-size: 28px; }
.rsvp-note p { margin: 2px 0 0; font-size: 14px; line-height: 1.7; }
.rsvp-panel { padding: clamp(38px, 5vw, 70px); background: #e9dece; box-shadow: 0 28px 70px rgba(74,59,39,.1); }

.registry-section {
  background:
    linear-gradient(rgba(34,35,29,.97), rgba(34,35,29,.97)),
    radial-gradient(circle at 90% 10%, rgba(196,154,103,.18), transparent 28%);
  color: white;
}
.registry-heading { max-width: 900px; margin: 0 auto 58px; text-align: center; }
.registry-heading .eyebrow { color: var(--sand); }
.registry-heading > p:last-child { max-width: 650px; margin: 0 auto; color: #c4beaf; line-height: 1.8; }
.registry-layout {
  max-width: 1320px;
  margin: auto;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 24px;
  align-items: start;
}
.registry-panel,
.registry-gifts-panel {
  min-width: 0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 30px;
}
.registry-panel { padding: clamp(38px, 5vw, 64px); background: rgba(255,255,255,.045); }
.registry-panel .form-heading h2 { font-size: clamp(34px, 4vw, 54px); }
.registry-gifts-panel { padding: clamp(32px, 4vw, 52px); color: var(--ink); background: #f5ede2; }
.registry-gifts-panel .gift-list-head { margin-bottom: 28px; }
.registry-gifts-panel .gift-list-head h2 { font-size: clamp(36px, 4vw, 56px); }
.registry-gifts-panel .gift-list-head .eyebrow { color: var(--terracotta); }
.registry-gifts-panel .gift-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.registry-gifts-panel .gift-card { min-height: 210px; padding: 26px; }
.registry-gifts-panel .gift-card h3 { font-size: 18px; }
.registry-gifts-panel .gift-card .gift-value { font-size: 22px; }
.registry-gifts-panel .empty-gifts { color: #6f685e; }
.clear-gifts { flex: 0 0 auto; }

@media (max-width: 1100px) {
  .site-header { width: calc(100% - 28px); min-height: 68px; padding: 8px 10px 8px 18px; }
  .menu-toggle { display: grid; position: relative; }
  .main-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    margin: 0;
    padding: 118px 28px 44px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    color: var(--ink);
    background: rgba(255,250,243,.98);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-18px);
    transition: opacity .35s ease, visibility .35s ease, transform .35s ease;
  }
  .main-nav.open { opacity: 1; visibility: visible; transform: none; }
  .main-nav a { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .main-nav .nav-rsvp { margin-top: 24px; justify-content: space-between; color: white; border: 0; }
  .gallery-grid { grid-template-rows: 240px 240px 220px; }
  .rsvp-shell, .registry-layout { grid-template-columns: 1fr; }
  .rsvp-intro { min-height: auto; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 86px; }
  .site-header { top: 8px; width: calc(100% - 18px); border-radius: 17px; }
  .brand-copy small { display: none; }
  .gallery { padding-inline: 14px; }
  .gallery-intro { margin-bottom: 34px; }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 250px 180px 180px 210px;
    gap: 8px;
  }
  .gallery-feature { grid-column: 1 / 2; grid-row: 1 / 3; }
  .gallery-landscape { grid-column: 2 / 3; grid-row: 1; }
  .gallery-detail:nth-of-type(3) { grid-column: 2 / 3; grid-row: 2; }
  .gallery-detail:nth-of-type(4) { grid-column: 1 / 2; grid-row: 3; }
  .gallery-portrait { grid-column: 2 / 3; grid-row: 3; }
  .gallery-wide { grid-column: 1 / 3; grid-row: 4; }
  .gallery-item { border-radius: 13px; }
  .gallery-item::before { inset: 7px; border-radius: 9px; }
  .gallery-item span { left: 12px; right: 10px; bottom: 11px; font-size: 7px; gap: 7px; }
  .rsvp-section, .registry-section { padding-inline: 14px; }
  .rsvp-intro, .rsvp-panel, .registry-panel, .registry-gifts-panel { padding: 32px 22px; border-radius: 22px; }
  .rsvp-intro h2, .registry-heading h2 { font-size: 40px; }
  .rsvp-note { margin-top: 34px; }
  .registry-heading { margin-bottom: 34px; }
  .registry-gifts-panel .gift-list-head { align-items: flex-start; flex-direction: column; gap: 18px; }
  .registry-gifts-panel .gift-grid { grid-template-columns: 1fr; }
}

main section[id] { scroll-margin-top: 112px; }
@media (max-width: 720px) { main section[id] { scroll-margin-top: 86px; } }


/* =========================================================
   Portfolio wedding additions
   ========================================================= */

.hero h1 { font-size: clamp(62px, 8.2vw, 126px); }
.hero h1 span:last-child { margin-left: clamp(16px, 2.8vw, 48px); }
.hero-image-wrap img { object-position: center 38%; }

@media (min-width: 1181px) {
  .hero-copy { left: clamp(48px, 5vw, 82px); }
}
.countdown-subcopy { max-width: 330px; margin: 7px 0 0; color: #bdb6aa; font-size: 11px; line-height: 1.7; }
.date-pending .countdown-item strong { font-size: clamp(24px, 3.2vw, 48px); letter-spacing: .02em; }
.event-card time { color: var(--terracotta); }
.event-card.featured time { color: var(--sand); }

.locations { display: grid; gap: 28px; background: #f0e6d8; }
.location-card { max-width: 1320px; min-height: 590px; margin: auto; display: grid; grid-template-columns: 1.1fr .9fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ivory); box-shadow: 0 24px 70px rgba(48,47,39,.09); }
.location-card.reverse { grid-template-columns: .9fr 1.1fr; }
.location-card.reverse .location-image { order: 2; }
.location-image { min-height: 590px; overflow: hidden; }
.location-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.65,.2,1); }
.location-card:first-child .location-image img { object-position: center 42%; }
.location-card.reverse .location-image img { object-position: center 42%; }
.location-card:hover .location-image img { transform: scale(1.045); }
.location-copy { padding: clamp(42px, 6vw, 86px); align-self: center; }
.location-copy h2 { margin: 0; font-size: clamp(42px, 5vw, 72px); font-weight: 400; letter-spacing: -.055em; line-height: 1.05; }
.location-copy > p:not(.eyebrow) { max-width: 470px; margin: 24px 0 35px; color: #70695d; font-size: 14px; line-height: 1.85; }
.text-arrow { display: inline-flex; align-items: center; gap: 12px; padding-bottom: 7px; border-bottom: 1px solid currentColor; color: var(--olive-dark); font-size: 9px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }

.story-photo img { object-position: center; }

.entourage { position: relative; background: linear-gradient(135deg, #f9f3ea 0%, #ede2d3 100%); overflow: hidden; }
.entourage::before { content: "K & S"; position: absolute; right: -12px; top: 50px; color: rgba(110,112,86,.055); font-size: clamp(130px, 20vw, 330px); font-weight: 300; letter-spacing: -.1em; line-height: 1; pointer-events: none; }
.entourage-heading { position: relative; z-index: 1; max-width: 880px; margin: 0 auto 50px; text-align: center; }
.entourage-heading h2 { margin: 0; font-size: clamp(42px, 5.5vw, 78px); font-weight: 400; letter-spacing: -.055em; line-height: 1.05; }
.entourage-heading > p:last-child { max-width: 650px; margin: 22px auto 0; color: #70695d; font-size: 13px; line-height: 1.8; }
.entourage-tabs { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto 22px; padding: 8px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; border: 1px solid rgba(38,37,31,.13); border-radius: 20px; background: rgba(255,250,243,.72); backdrop-filter: blur(16px); }
.entourage-tab { min-height: 54px; padding: 10px 14px; border: 0; border-radius: 14px; background: transparent; cursor: pointer; font-size: 9px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; transition: .3s ease; }
.entourage-tab:hover { background: rgba(110,112,86,.08); }
.entourage-tab.active { color: white; background: var(--deep); box-shadow: 0 12px 28px rgba(48,47,39,.18); }
.entourage-panels { position: relative; z-index: 1; max-width: 1200px; margin: auto; }
.entourage-panel { padding: clamp(34px, 5vw, 68px); border: 1px solid rgba(38,37,31,.13); border-radius: 30px; background: rgba(255,250,243,.9); box-shadow: 0 30px 80px rgba(74,59,39,.08); animation: panelIn .45s cubic-bezier(.2,.65,.2,1) both; }
.entourage-panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.panel-intro { max-width: 700px; margin-bottom: 38px; }
.panel-intro h3 { margin: 0; font-size: clamp(34px, 4.5vw, 60px); font-weight: 400; letter-spacing: -.05em; line-height: 1.05; }
.panel-intro > p:last-child { max-width: 570px; color: #716b5f; font-size: 13px; }
.principal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sponsor-pair { position: relative; min-height: 150px; padding: 28px 26px 24px 54px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: 20px; background: #f2e9dc; }
.sponsor-pair > span { position: absolute; left: 18px; top: 18px; color: var(--terracotta); font-size: 9px; letter-spacing: .14em; }
.sponsor-pair i { color: var(--gold); font-size: 20px; font-style: normal; }
.sponsor-pair h4, .person-card h4, .secondary-grid h4 { margin: 0; font-size: 16px; font-weight: 500; }
.sponsor-pair p, .person-card p, .secondary-grid p { margin: 4px 0 0; color: #7a7367; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.party-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.person-card { position: relative; min-height: 220px; padding: 28px 22px; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: linear-gradient(145deg, #f2e9dc, #fffaf3); }
.person-card::after { content: "♡"; position: absolute; right: -10px; top: -28px; color: rgba(184,130,102,.13); font-size: 100px; }
.person-card > span { position: absolute; left: 22px; top: 22px; color: var(--terracotta); font-size: 10px; font-weight: 600; letter-spacing: .14em; }
.person-card.featured-person { color: white; background: var(--olive-dark); }
.person-card.featured-person p { color: #ded7ca; }
.person-card.featured-person > span { color: var(--sand); }
.person-card.featured-person::after { color: rgba(255,255,255,.09); }
.secondary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.secondary-grid article { min-height: 100px; padding: 22px; display: flex; align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: 18px; background: #f2e9dc; }
.secondary-grid article > span { width: 43px; height: 43px; flex: 0 0 auto; display: grid; place-items: center; color: white; background: var(--olive); border-radius: 50%; font-size: 9px; }

.gallery-feature img { object-position: center 26%; }
.gallery-landscape img { object-position: center 42%; }
.gallery-detail:nth-of-type(3) img { object-position: center 40%; }
.gallery-detail:nth-of-type(4) img { object-position: center 44%; }
.gallery-portrait img { object-position: center 42%; }
.gallery-wide img { object-position: center 44%; }

@media (max-width: 1180px) {
  .menu-toggle { display: grid; position: relative; }
  .main-nav { position: fixed; inset: 0; z-index: -1; margin: 0; padding: 118px 28px 44px; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 0; color: var(--ink); background: rgba(255,250,243,.98); opacity: 0; visibility: hidden; transform: translateY(-18px); transition: opacity .35s ease, visibility .35s ease, transform .35s ease; }
  .main-nav.open { opacity: 1; visibility: visible; transform: none; }
  .main-nav a { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .main-nav .nav-rsvp { margin-top: 24px; justify-content: space-between; color: white; border: 0; }
  .party-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .location-card, .location-card.reverse { grid-template-columns: 1fr; }
  .location-card.reverse .location-image { order: 0; }
  .location-image { min-height: 430px; }
  .principal-grid { grid-template-columns: 1fr; }
  .entourage-tabs { grid-template-columns: 1fr 1fr; }
  .secondary-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: clamp(58px, 18vw, 90px); }
  .hero h1 span:last-child { margin-left: 0; }
  .countdown-heading { align-items: flex-start; }
  .date-pending .countdown-item strong { font-size: 18px; }
  .locations { padding-inline: 12px; }
  .location-card { min-height: 0; border-radius: 22px; }
  .location-image { min-height: 330px; }
  .location-copy { padding: 34px 24px; }
  .entourage { padding-inline: 12px; }
  .entourage-tabs { padding: 6px; gap: 5px; border-radius: 16px; }
  .entourage-tab { min-height: 48px; padding: 8px; font-size: 7px; }
  .entourage-panel { padding: 30px 20px; border-radius: 22px; }
  .party-grid { grid-template-columns: 1fr 1fr; }
  .person-card { min-height: 180px; }
  .sponsor-pair { padding: 52px 20px 24px; grid-template-columns: 1fr; gap: 12px; }
  .sponsor-pair i { display: none; }
}


/* ===== Prenup revision enhancements ===== */
.hero-visual,
.story-photo,
.venue-image,
.location-image,
.gallery-item,
.event-card,
.timeline-item,
.sponsor-pair,
.person-card,
.secondary-grid article,
.gift-card,
.rsvp-panel,
.registry-panel,
.registry-gifts-panel,
.dress-panel,
.location-card,
.venue-panel {
  will-change: transform, box-shadow;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(24px);
  opacity: .35;
  z-index: 0;
  animation: ambientDrift 12s ease-in-out infinite;
}
.hero::before {
  width: 240px;
  height: 240px;
  right: 4%;
  top: 8%;
  background: radial-gradient(circle, rgba(195,167,122,.35), rgba(195,167,122,0));
}
.hero::after {
  width: 180px;
  height: 180px;
  left: 6%;
  bottom: 8%;
  background: radial-gradient(circle, rgba(121,125,93,.22), rgba(121,125,93,0));
  animation-duration: 16s;
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-note,
.float-card,
.story-stamp {
  animation: floatSoft 6.5s ease-in-out infinite;
}
.botanical-line {
  transform-origin: top center;
  animation: swaySoft 7s ease-in-out infinite;
}
.scroll-cue i {
  animation: scrollPulse 1.9s ease-in-out infinite;
}
.page-progress span {
  background: linear-gradient(90deg, #8e8163, #dbc9a5, #6f6a51);
  background-size: 200% 100%;
  animation: shimmerBar 4s linear infinite;
}
.countdown-item strong {
  text-shadow: 0 10px 24px rgba(0,0,0,.12);
}
.countdown-item {
  transition: transform .45s ease, box-shadow .45s ease;
}
.countdown-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
}
.event-card,
.timeline-item,
.sponsor-pair,
.person-card,
.secondary-grid article,
.gift-card,
.location-card,
.venue-panel,
.dress-panel,
.registry-panel,
.registry-gifts-panel,
.rsvp-panel {
  transition: transform .45s cubic-bezier(.2,.65,.2,1), box-shadow .45s cubic-bezier(.2,.65,.2,1), border-color .35s ease;
}
.event-card:hover,
.timeline-item:hover,
.sponsor-pair:hover,
.person-card:hover,
.secondary-grid article:hover,
.gift-card:hover,
.location-card:hover,
.venue-panel:hover,
.dress-panel:hover,
.registry-panel:hover,
.registry-gifts-panel:hover,
.rsvp-panel:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 70px rgba(28,24,17,.13);
}
.gallery-item {
  transition: transform .5s cubic-bezier(.2,.65,.2,1), box-shadow .5s cubic-bezier(.2,.65,.2,1);
}
.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
}
.gallery-item span,
.image-label {
  backdrop-filter: blur(8px);
}
.button,
.text-link,
.entourage-tab,
.calendar-button,
.clear-gifts,
.main-nav a,
.footer-bottom a {
  transition: transform .3s ease, opacity .3s ease, background .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.button:hover,
.calendar-button:hover,
.entourage-tab:hover,
.clear-gifts:hover,
.footer-bottom a:hover {
  transform: translateY(-3px);
}
.modal {
  animation: modalUp .35s cubic-bezier(.2,.65,.2,1);
}
.story-video.open > div {
  animation: modalUp .45s cubic-bezier(.2,.65,.2,1);
}

@keyframes ambientDrift {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(12px,-18px,0) scale(1.06); }
}
@keyframes floatSoft {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes swaySoft {
  0%,100% { transform: rotate(0deg); }
  50% { transform: rotate(2deg); }
}
@keyframes scrollPulse {
  0%,100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: .65; }
}
@keyframes shimmerBar {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes modalUp {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after,
  .hero-note,
  .float-card,
  .story-stamp,
  .botanical-line,
  .scroll-cue i,
  .page-progress span {
    animation: none !important;
  }
}


/* Above-the-fold fail-safe: the hero is never left blank. */
.js-ready .hero .reveal.reveal-ready,
.js-ready .hero .reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js-ready .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
