/*
 * Template 04: Boho Blush (version 3.0.0)
 * Based on the supplied sample: dusty rose, peach and lilac organic blobs on warm cream, line-drawn
 * feathers and leaf sprigs, a crescent moon and sparkles, a mauve header bar and an arched photo.
 * Abril Fatface for headings and names, Open Sans for everything else. Fixed layout. Fonts and
 * images are local files, so this works offline.
 * Motion: blobs that slowly morph and drift, feathers and sprigs that sway, twinkling sparkles, a
 * soft arch photo reveal, gentle fade-up scroll reveals, a floating countdown, a shaped photo that
 * moves with the scroll, a line-drawn map that draws its route, a photo viewer and a scroll
 * progress line. Everything stops for reduced motion.
 */

@font-face { font-family: 'Abril Fatface'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/abril-fatface-normal-400.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../assets/fonts/open-sans-normal-400-700.woff2') format('woff2'); }

:root {
  --cream: #F6ECE6;
  --cream-2: #FBF3EE;
  --peach: #EFC7AE;
  --pink: #E8BDB8;
  --lilac: #D3B9BC;
  --rose: #B0657A;
  --rose-dk: #9A5368;
  --mauve: #876670;
  --mauve-dk: #6F4F59;
  --text: #5E4249;
  --soft: #7A5A64;
  --line: #E3C9C4;
  --display: 'Abril Fatface', Georgia, 'Times New Roman', serif;
  --sans: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
  --wrap: 1180px;
  --bar: 72px;
  --shadow: 0 18px 44px rgba(135, 102, 112, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--text); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }
.sprites { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--mauve-dk); color: #fff; padding: 8px 14px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }

.container { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--soft); }
.eyebrow-light { color: rgba(255, 255, 255, .85); }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--peach), var(--rose)); transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); }

/* ---------- Header bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--mauve); color: #fff; box-shadow: 0 6px 20px rgba(111, 79, 89, .18); }
.topbar-inner { width: min(var(--wrap), 100% - 48px); margin-inline: auto; height: var(--bar); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.7rem; line-height: 1; text-decoration: none; color: #fff; }
.brand-moon { width: 26px; height: 26px; color: #fff; }
.nav { display: flex; align-items: center; gap: 30px; font-size: .95rem; font-weight: 400; }
.nav a { position: relative; text-decoration: none; padding: 6px 0; color: rgba(255, 255, 255, .9); transition: color 200ms ease; }
.nav a::after { content: ''; position: absolute; left: 50%; bottom: -2px; width: 0; height: 2px; background: #fff; border-radius: 2px; transform: translateX(-50%); transition: width 300ms var(--ease-out); }

/* ---------- Buttons: soft pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid var(--mauve); background: var(--mauve); color: #fff; font: 600 .95rem/1 var(--sans); letter-spacing: .04em; text-decoration: none; padding: 16px 38px; border-radius: 999px; cursor: pointer; transition: transform 200ms var(--ease-out), box-shadow 300ms ease, background-color 200ms ease, color 200ms ease; }
.btn:active { transform: scale(0.97); }
.btn-sm { font-size: .85rem; padding: 11px 24px; }
.btn-light { background: #fff; border-color: #fff; color: var(--mauve-dk); }
.btn-outline { background: transparent; color: var(--mauve-dk); }
.link-arrow { color: var(--mauve-dk); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--peach); padding-bottom: 2px; }
.link-arrow::after { content: ' \2192'; display: inline-block; transition: transform 300ms var(--ease-out); }

/* ---------- Decorations ---------- */
.deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blob { position: absolute; display: block; background: var(--bc, var(--peach)); border-radius: var(--r1, 50%); animation: morph 26s ease-in-out infinite alternate; }
.feather { position: absolute; color: var(--mauve); }
.sprig { position: absolute; color: var(--mauve); }
.star { position: absolute; width: 28px; height: 28px; color: var(--peach); animation: twinkle 4s ease-in-out infinite; }
.moon { position: absolute; width: 120px; height: 120px; color: #fff; }
.arcs { position: absolute; color: #fff; }
.dot { position: absolute; display: block; border-radius: 50%; background: var(--pink); }
.section, .hero, .band, .footer { position: relative; isolation: isolate; overflow: hidden; }
.section > .container, .hero > .container, .band > .container, .footer > p { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 8vw, 96px) 0 clamp(80px, 11vw, 130px); min-height: min(calc(100svh - var(--bar)), 860px); display: grid; align-items: center; }
.hero .bl-peach { --bc: var(--peach); --r1: 40% 60% 58% 42% / 44% 38% 62% 56%; --r2: 54% 46% 44% 56% / 52% 50% 50% 48%; left: -14%; top: -6%; width: 46%; height: 112%; }
.hero .bl-lilac { --bc: var(--lilac); --r1: 50% 50% 46% 54% / 60% 62% 38% 40%; --r2: 56% 44% 52% 48% / 52% 58% 42% 48%; left: 14%; top: -22%; width: 30%; height: 56%; }
.hero .bl-pink { --bc: var(--pink); --r1: 48% 52% 0 0 / 70% 66% 0 0; --r2: 56% 44% 0 0 / 62% 70% 0 0; left: 33%; bottom: -34%; width: 52%; height: 60%; }
.hero .bl-peach-r { --bc: var(--peach); --r1: 46% 54% 50% 50% / 38% 46% 54% 62%; --r2: 52% 48% 56% 44% / 46% 40% 60% 54%; right: -9%; top: -8%; width: 34%; height: 88%; }
.hero .bl-pink-low { --bc: var(--pink); --r1: 50%; --r2: 50%; right: 15%; bottom: 7%; width: 84px; height: 84px; animation: none; }
.hero .moon { left: 50%; top: 9%; width: 110px; height: 110px; }
.hero .st1 { left: 44%; top: 56%; width: 34px; height: 34px; }
.hero .st2 { left: 40%; top: 66%; width: 20px; height: 20px; animation-delay: -1.2s; }
.hero .st3 { right: 5%; top: 10%; width: 40px; height: 40px; color: #fff; animation-delay: -2s; }
.hero .st4 { left: 47%; bottom: 8%; width: 36px; height: 36px; color: #fff; animation-delay: -.6s; }
.hero .arcs { right: 2%; top: 0; width: 120px; height: 220px; opacity: .85; }
.hero .fe1 { left: 2%; top: 4%; width: 92px; height: 224px; rotate: 38deg; transform-origin: 50% 0; animation: sway 7s ease-in-out infinite alternate; }
.hero .fe2 { left: 12%; bottom: 6%; width: 78px; height: 190px; rotate: -72deg; animation: sway 8s ease-in-out -2s infinite alternate; }
.hero .fe3 { left: 38%; bottom: -2%; width: 84px; height: 206px; rotate: -12deg; animation: sway 9s ease-in-out -4s infinite alternate; }
.hero .fe4 { left: 46%; bottom: -5%; width: 70px; height: 170px; rotate: 16deg; animation: sway 7.5s ease-in-out -1s infinite alternate; }
.hero .sp1 { right: 2%; bottom: 4%; width: 64px; height: 214px; animation: sway 8s ease-in-out -3s infinite alternate; transform-origin: 50% 100%; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-text { display: grid; justify-items: center; text-align: center; gap: 14px; }
.hero .eyebrow { font-size: 1.25rem; font-weight: 400; letter-spacing: .18em; text-transform: none; color: var(--soft); }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(3.2rem, 7.8vw, 6.2rem); line-height: 1.05; color: var(--rose); overflow-wrap: anywhere; }
.date-row { display: inline-flex; align-items: center; gap: 20px; color: var(--soft); margin-block: 6px; }
.dr-month, .dr-year { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 400; }
.dr-day { padding: 0 24px; border-inline: 2px solid var(--soft); font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 700; line-height: 1.1; color: var(--soft); }
.hero-lede { max-width: 38ch; font-size: 1.05rem; color: var(--soft); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; margin-top: 10px; }

/* Arched photo with a pink halo */
.hero-visual { position: relative; justify-self: center; width: min(100%, 420px); }
.halo { position: absolute; z-index: -1; width: 135%; aspect-ratio: 1; left: -30%; top: -8%; border-radius: 50%; background: var(--pink); opacity: .92; }
.arch { position: relative; aspect-ratio: 4 / 5; border-radius: 46% 46% 12% 9% / 31% 31% 8% 10%; overflow: hidden; background: var(--peach); box-shadow: var(--shadow); }
.arch img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; will-change: transform; }
.hero-visual .st5 { right: -34px; top: 18%; width: 40px; height: 40px; color: var(--peach); }
.hero-visual .st6 { left: -36px; bottom: 22%; width: 26px; height: 26px; color: #fff; animation-delay: -1.6s; }
.hero-visual .d1 { right: -52px; bottom: 28%; width: 22px; height: 22px; }
.hero-visual .d2 { left: -64px; top: 30%; width: 14px; height: 14px; background: var(--peach); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.section-head { text-align: center; display: grid; justify-items: center; gap: 8px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.12; color: var(--rose); }
.lead { max-width: 600px; color: var(--soft); margin-top: 8px; }

/* Our story */
.story .sb1 { --bc: var(--peach); --r1: 44% 56% 52% 48% / 50% 42% 58% 50%; --r2: 52% 48% 40% 60% / 44% 56% 44% 56%; left: -10%; bottom: -26%; width: 34%; height: 80%; opacity: .75; }
.story .sb2 { --bc: var(--pink); --r1: 50%; --r2: 56% 44% 50% 50% / 46% 54% 46% 54%; right: 6%; top: -12%; width: 20%; aspect-ratio: 1; opacity: .7; }
.story .sp2 { right: 3%; bottom: 8%; width: 60px; height: 200px; animation: sway 8s ease-in-out infinite alternate; transform-origin: 50% 100%; opacity: .85; }
.story-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
.story-arch { position: relative; width: min(100%, 410px); justify-self: center; box-shadow: none; overflow: visible; aspect-ratio: auto; border-radius: 0; background: none; }
.story-arch .arch-frame { position: relative; aspect-ratio: 4 / 5; border-radius: 46% 46% 12% 9% / 31% 31% 8% 10%; overflow: hidden; background: var(--peach); box-shadow: var(--shadow); }
.story-arch .arch-frame img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; will-change: transform; }
.blob-behind { position: absolute; z-index: -1; width: 86%; aspect-ratio: 1; right: -30%; bottom: -8%; border-radius: 50%; background: var(--pink); }
.story-arch .st7 { left: -26px; top: 16%; width: 34px; height: 34px; }
.story-text { display: grid; justify-items: start; gap: 12px; }
.story-text h2 { margin-bottom: 4px; }
.prose { display: grid; gap: 1.1em; }
.prose p { max-width: 56ch; }

/* Band: countdown beside a floating photo */
.band { background: var(--mauve); color: #fff; padding-block: clamp(4.5rem, 9vw, 7rem); }
.band .bb1 { --bc: rgba(239, 199, 174, .2); --r1: 46% 54% 50% 50% / 44% 50% 50% 56%; --r2: 54% 46% 42% 58% / 52% 44% 56% 48%; left: -8%; top: -30%; width: 32%; height: 90%; }
.band .bb2 { --bc: rgba(232, 189, 184, .22); --r1: 52% 48% 56% 44% / 48% 52% 48% 52%; --r2: 44% 56% 48% 52% / 54% 46% 54% 46%; right: -6%; bottom: -34%; width: 34%; height: 96%; }
.band .moon-band { left: 4%; bottom: 8%; width: 70px; height: 70px; opacity: .9; }
.band .st8 { left: 46%; top: 12%; width: 30px; height: 30px; color: #fff; }
.band .st9 { left: 52%; bottom: 14%; width: 22px; height: 22px; color: var(--peach); animation-delay: -1.4s; }
.band .st10 { right: 6%; top: 10%; width: 34px; height: 34px; color: #fff; animation-delay: -2.4s; }
.band-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.band-text { display: grid; gap: 10px; }
.band-title { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.12; color: #fff; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 2vw, 18px); margin-top: 14px; }
.countdown li { display: grid; justify-items: center; align-content: center; padding: clamp(14px, 2.4vw, 24px) 6px; background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .42); border-radius: 26px; animation: float 5s ease-in-out infinite alternate; }
.countdown li:nth-child(2) { animation-delay: -1.2s; }
.countdown li:nth-child(3) { animation-delay: -2.4s; }
.countdown li:nth-child(4) { animation-delay: -3.6s; }
.countdown b { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: .66rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; opacity: .9; }
.band-photo { position: relative; justify-self: center; width: min(100%, 380px); }
.band-photo-frame { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 58% 42% 46% 54% / 52% 44% 56% 48%; border: 6px solid rgba(255, 255, 255, .85); box-shadow: 0 24px 50px rgba(0, 0, 0, .22); animation: morph-photo 18s ease-in-out infinite alternate; }
.band-photo-frame img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; will-change: transform; }

/* Wedding party */
.party { background: var(--cream-2); }
.party .pb1 { --bc: var(--peach); --r1: 50% 50% 44% 56% / 56% 44% 56% 44%; --r2: 44% 56% 50% 50% / 48% 56% 44% 52%; right: -9%; top: -14%; width: 30%; height: 56%; opacity: .6; }
.party .pb2 { --bc: var(--pink); --r1: 50%; --r2: 46% 54% 50% 50% / 50% 46% 54% 50%; left: -6%; bottom: -16%; width: 24%; aspect-ratio: 1; opacity: .6; }
.party .fe5 { left: 2%; top: 10%; width: 70px; height: 170px; rotate: -20deg; animation: sway 8s ease-in-out infinite alternate; opacity: .7; }
.party-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 44px 28px; }
.person { position: relative; display: grid; justify-items: center; text-align: center; }
.person::before { --r1: 46% 54% 52% 48% / 54% 46% 54% 46%; --r2: 56% 44% 44% 56% / 44% 56% 44% 56%; content: ''; position: absolute; top: -6px; left: 50%; width: 186px; height: 186px; margin-left: -93px; background: var(--peach); border-radius: var(--r1); animation: morph 14s ease-in-out infinite alternate; }
.person:nth-child(3n+2)::before { background: var(--pink); animation-delay: -4s; }
.person:nth-child(3n+3)::before { background: var(--lilac); animation-delay: -8s; }
.person img { position: relative; width: 150px; height: 150px; margin: 6px 0 26px; object-fit: cover; border-radius: 50%; border: 6px solid #fff; box-shadow: 0 12px 28px rgba(135, 102, 112, .24); transition: transform 500ms var(--ease-out); }
.person h3 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; line-height: 1.2; color: var(--rose); }
.person-role { font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--soft); margin-top: 2px; }

/* Gallery */
.gallery .gb1 { --bc: var(--lilac); --r1: 48% 52% 56% 44% / 50% 44% 56% 50%; --r2: 56% 44% 46% 54% / 46% 56% 44% 54%; left: -8%; top: 8%; width: 26%; height: 50%; opacity: .5; }
.gallery .gb2 { --bc: var(--peach); --r1: 52% 48% 50% 50% / 44% 56% 44% 56%; --r2: 44% 56% 56% 44% / 56% 44% 56% 44%; right: -8%; bottom: 0; width: 28%; height: 52%; opacity: .55; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; grid-auto-flow: dense; gap: 24px; }
.gallery-item { position: relative; overflow: hidden; background: var(--peach); border-radius: 30px; box-shadow: var(--shadow); cursor: zoom-in; transition: transform 500ms var(--ease-out), box-shadow 400ms ease; }
.gallery-item:nth-child(6n+1) { grid-row: span 2; border-radius: 160px 160px 30px 30px; }
.gallery-item:nth-child(6n+3) { border-radius: 30px 120px 30px 120px; }
.gallery-item:nth-child(6n+4) { grid-row: span 2; border-radius: 160px 160px 30px 30px; }
.gallery-item:nth-child(6n+5) { border-radius: 120px 30px 120px 30px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease-out); }
.gallery-item:focus-visible { outline-offset: 4px; }
.lb { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(95, 66, 76, .93); opacity: 0; visibility: hidden; transition: opacity 300ms ease, visibility 0s linear 300ms; }
.lb.open { opacity: 1; visibility: visible; transition: opacity 300ms ease; }
.lb img { max-width: min(92vw, 1100px); max-height: 84vh; width: auto; height: auto; border-radius: 28px; border: 8px solid #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); transform: scale(.94); transition: transform 500ms var(--ease-out); }
.lb.open img { transform: none; }
.lb button { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #fff; font: 400 1.7rem/1 var(--sans); cursor: pointer; transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.lb button:active { transform: scale(0.94); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; margin-top: -26px; }
.lb-next { right: 18px; top: 50%; margin-top: -26px; }
.lb-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .85); font-size: .85rem; letter-spacing: .24em; }

/* Schedule */
.schedule { background: var(--cream-2); }
.schedule .scb1 { --bc: var(--pink); --r1: 50% 50% 46% 54% / 52% 48% 52% 48%; --r2: 44% 56% 52% 48% / 48% 54% 46% 52%; right: -10%; top: 6%; width: 28%; height: 58%; opacity: .5; }
.schedule .sp3 { left: 3%; bottom: 6%; width: 58px; height: 196px; opacity: .7; animation: sway 8s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.schedule-inner { max-width: 820px; }
.timeline { display: grid; }
.event { position: relative; display: grid; grid-template-columns: 130px 44px 1fr; align-items: start; padding-bottom: 34px; }
.event:last-child { padding-bottom: 0; }
.event::after { content: ''; position: absolute; left: 150px; top: 24px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--line); }
.event:last-child::after { display: none; }
.event::before { content: ''; grid-column: 2; grid-row: 1; justify-self: center; width: 22px; height: 22px; margin-top: 6px; background: var(--peach); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); position: relative; z-index: 1; }
.event-time { grid-column: 1; grid-row: 1; text-align: right; font-family: var(--display); font-size: 1.75rem; line-height: 1.3; color: var(--rose); font-variant-numeric: tabular-nums; }
.event-body { grid-column: 3; grid-row: 1; display: grid; gap: 2px; }
.event h3 { font-family: var(--display); font-weight: 400; font-size: 1.45rem; line-height: 1.3; color: var(--text); }
.event p { color: var(--soft); }

/* Venue */
.venue .vb1 { --bc: var(--peach); --r1: 48% 52% 50% 50% / 56% 44% 56% 44%; --r2: 54% 46% 44% 56% / 46% 54% 46% 54%; left: -10%; top: 4%; width: 28%; height: 48%; opacity: .55; }
.venue .vb2 { --bc: var(--lilac); --r1: 50%; --r2: 56% 44% 50% 50% / 50% 50% 50% 50%; right: -6%; bottom: 8%; width: 22%; aspect-ratio: 1; opacity: .5; }
.venue .fe6 { right: 3%; top: 8%; width: 66px; height: 162px; rotate: 24deg; opacity: .7; animation: sway 8s ease-in-out infinite alternate; }
.venue-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 32px; padding-top: 24px; }
.venue-card { position: relative; display: grid; justify-items: center; gap: 6px; padding: 56px 34px 36px; text-align: center; background: #fff; border-radius: 36px; box-shadow: var(--shadow); transition: transform 400ms var(--ease-out), box-shadow 400ms ease; }
.venue-mark { position: absolute; top: -30px; left: 50%; width: 60px; height: 60px; margin-left: -30px; display: grid; place-items: center; border-radius: 50%; background: var(--peach); border: 5px solid var(--cream); font: 400 1.6rem var(--display); color: var(--rose-dk); }
.venue-card:nth-child(2) .venue-mark { background: var(--pink); }
.venue-label { font-size: .74rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--soft); }
.venue-card h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 3.2vw, 2.2rem); line-height: 1.15; color: var(--rose); }
.venue-time { font-size: 1.05rem; font-weight: 600; color: var(--text); }
.venue-address { white-space: pre-line; color: var(--soft); margin-bottom: 12px; }
.venue-map { position: relative; margin-top: 64px; aspect-ratio: 16 / 8; overflow: hidden; background: var(--cream-2); border: 6px solid #fff; border-radius: 36px; box-shadow: var(--shadow); }
.venue-map svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.venue-note { white-space: pre-line; max-width: 720px; margin: 44px auto 0; padding: 24px 32px; background: rgba(255, 255, 255, .7); border: 2px dashed var(--peach); border-radius: 28px; text-align: center; color: var(--soft); }
.venue-note::before { content: 'Dress code and notes'; display: block; margin-bottom: 4px; font-family: var(--display); font-size: 1.4rem; line-height: 1.3; color: var(--rose); }

/* Gifts */
.gifts { background: var(--cream-2); }
.gifts .gfb1 { --bc: var(--pink); --r1: 50% 50% 52% 48% / 48% 52% 48% 52%; --r2: 56% 44% 48% 52% / 54% 46% 54% 46%; left: -8%; bottom: -16%; width: 28%; height: 70%; opacity: .5; }
.gifts .sp4 { right: 3%; top: 10%; width: 58px; height: 196px; opacity: .65; animation: sway 8s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.gifts-inner { max-width: 980px; }
.gift-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.gift-item { display: grid; justify-items: center; gap: 12px; padding: 36px 24px 30px; text-align: center; background: #fff; border-radius: 34px; box-shadow: var(--shadow); transition: transform 400ms var(--ease-out), box-shadow 400ms ease; }
.gift-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--peach); color: var(--mauve-dk); }
.gift-item:nth-child(3n+2) .gift-icon { background: var(--pink); }
.gift-item:nth-child(3n+3) .gift-icon { background: var(--lilac); }
.gift-icon svg { width: 32px; height: 32px; }
.gift-name { font-family: var(--display); font-weight: 400; font-size: 1.3rem; line-height: 1.3; color: var(--rose); }
.gift-external { text-align: center; margin-top: 44px; }

/* RSVP */
.rsvp .rb1 { --bc: var(--peach); --r1: 46% 54% 52% 48% / 50% 46% 54% 50%; --r2: 54% 46% 44% 56% / 44% 54% 46% 56%; left: -10%; top: -10%; width: 34%; height: 70%; opacity: .7; }
.rsvp .rb2 { --bc: var(--pink); --r1: 50% 50% 46% 54% / 56% 44% 56% 44%; --r2: 44% 56% 52% 48% / 50% 52% 48% 50%; right: -8%; bottom: -14%; width: 32%; height: 66%; opacity: .7; }
.rsvp .fe7 { left: 3%; bottom: 6%; width: 74px; height: 180px; rotate: -18deg; opacity: .75; animation: sway 8s ease-in-out infinite alternate; }
.rsvp .sp5 { right: 4%; top: 12%; width: 58px; height: 196px; opacity: .7; animation: sway 9s ease-in-out -2s infinite alternate; transform-origin: 50% 100%; }
.rsvp-inner { max-width: 660px; }
.rsvp-form { display: grid; gap: 20px; padding: clamp(1.8rem, 4.5vw, 3rem); background: #fff; border-radius: 40px; box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); padding: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="number"], .field textarea { width: 100%; font: inherit; color: var(--text); background: var(--cream-2); border: 1.5px solid var(--line); border-radius: 20px; padding: 13px 18px; transition: border-color 160ms ease, box-shadow 200ms ease, background-color 160ms ease; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--rose); background: #fff; box-shadow: 0 0 0 4px rgba(176, 101, 122, .16); }
.field textarea { resize: vertical; }
.choice { grid-auto-flow: column; justify-content: start; align-items: center; gap: 10px; }
.choice legend { grid-column: 1 / -1; margin-bottom: 4px; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-block; border: 1.5px solid var(--line); border-radius: 999px; padding: 11px 22px; font-size: .95rem; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--text); cursor: pointer; background: var(--cream-2); transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out); }
.pill span:active { transform: scale(0.97); }
.pill input:checked + span { background: var(--mauve); border-color: var(--mauve); color: #fff; }
.pill input:focus-visible + span { outline: 3px solid var(--rose); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rsvp-form .btn { justify-self: start; }
.form-status { min-height: 1.4em; color: var(--soft); }
.form-status.ok { color: #2F6B3F; }
.form-status.err { color: #A33A3A; }
.confetti { position: fixed; z-index: 150; left: var(--x); top: var(--y); width: 10px; height: 14px; background: var(--c); border-radius: 50% 0 50% 0; pointer-events: none; animation: confetti 1.5s cubic-bezier(.2, .7, .3, 1) forwards; }

/* Footer */
.footer { background: var(--mauve); color: #fff; text-align: center; padding: 80px 24px 72px; display: grid; justify-items: center; gap: 6px; }
.footer .moon-foot { left: 8%; top: 18%; width: 80px; height: 80px; opacity: .9; }
.footer .st11 { right: 12%; top: 22%; color: #fff; }
.footer .st12 { left: 22%; bottom: 18%; width: 20px; height: 20px; color: var(--peach); animation-delay: -1.8s; }
.footer .fe8 { right: 3%; bottom: -30px; width: 80px; height: 196px; color: rgba(255, 255, 255, .6); rotate: 24deg; }
.footer .fe9 { right: 12%; bottom: -44px; width: 64px; height: 156px; color: rgba(255, 255, 255, .45); rotate: -14deg; }
.footer-eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.footer-names { font-family: var(--display); font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.15; }
.footer-date { font-size: 1.1rem; letter-spacing: .08em; color: rgba(255, 255, 255, .9); }

/* Map drawing */
.venue-map text { font: 600 26px var(--sans); fill: var(--mauve-dk); }
.venue-map .pin text { font: 400 30px var(--display); fill: #fff; }
.venue-map .compass text { font: 600 20px var(--sans); }
.venue-map .blades { animation: spin-svg 12s linear infinite; }
.js .venue-map .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .venue-map.in .draw { stroke-dashoffset: 0; transition: stroke-dashoffset 2600ms cubic-bezier(.65, 0, .35, 1) 400ms; }
.js .venue-map .pin, .js .venue-map .banner, .js .venue-map .compass { opacity: 0; }
.js .venue-map.in .pin, .js .venue-map.in .banner, .js .venue-map.in .compass { opacity: 1; transition: opacity 400ms ease 3s; }
.js .venue-map.in .pin-a { animation: pin-drop 700ms var(--ease-out) 400ms backwards; }
.js .venue-map.in .pin-b { animation: pin-drop 700ms var(--ease-out) 3s backwards; }

/* ---------- Motion ---------- */
/* Scroll reveals. Content is visible by default; the .js class is added in <head>. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease-soft), transform 900ms var(--ease-out); transition-delay: var(--delay, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .person:nth-child(3n+2), .js .gift-item:nth-child(3n+2), .js .gallery-item:nth-child(3n+2) { --delay: 100ms; }
.js .person:nth-child(3n+3), .js .gift-item:nth-child(3n+3), .js .gallery-item:nth-child(3n+3) { --delay: 200ms; }

/* Hero entrance */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes arch-in { from { opacity: 0; transform: translateY(40px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes halo-in { from { opacity: 0; transform: scale(.7); } to { opacity: .92; transform: none; } }
.js .hero-text > * { opacity: 0; animation: rise 1000ms var(--ease-out) forwards; }
.js .hero-text > :nth-child(1) { animation-delay: 150ms; }
.js .hero-text > :nth-child(2) { animation-delay: 300ms; }
.js .hero-text > :nth-child(4) { animation-delay: 550ms; }
.js .hero-text > :nth-child(5) { animation-delay: 700ms; }
.js .hero-text > :nth-child(6) { animation-delay: 850ms; }
.js .hero-arch { animation: arch-in 1400ms var(--ease-out) 300ms backwards; }
.js .halo { animation: halo-in 1600ms var(--ease-out) 100ms backwards; }

/* Ambient loops */
@keyframes morph { from { border-radius: var(--r1, 50%); } to { border-radius: var(--r2, 50%); } }
@keyframes morph-photo { from { border-radius: 58% 42% 46% 54% / 52% 44% 56% 48%; } to { border-radius: 44% 56% 54% 46% / 46% 56% 44% 54%; } }
@keyframes twinkle { 0%, 100% { opacity: 1; scale: 1; } 50% { opacity: .45; scale: .78; } }
@keyframes sway { from { rotate: var(--rot-a, -3deg); } to { rotate: var(--rot-b, 3deg); } }
@keyframes float { from { translate: 0 0; } to { translate: 0 -8px; } }
@keyframes spin-svg { to { transform: rotate(360deg); } }
@keyframes pin-drop { from { opacity: 0; transform: translateY(-60px); } to { opacity: 1; transform: none; } }
@keyframes confetti { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; } }
.hero .fe1 { --rot-a: 33deg; --rot-b: 43deg; }
.hero .fe2 { --rot-a: -77deg; --rot-b: -67deg; }
.hero .fe3 { --rot-a: -16deg; --rot-b: -8deg; }
.hero .fe4 { --rot-a: 12deg; --rot-b: 20deg; }
.party .fe5 { --rot-a: -24deg; --rot-b: -16deg; }
.venue .fe6 { --rot-a: 20deg; --rot-b: 28deg; }
.rsvp .fe7 { --rot-a: -22deg; --rot-b: -14deg; }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--mauve-dk); border-color: var(--mauve-dk); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(111, 79, 89, .32); }
  .btn-light:hover { background: var(--cream); border-color: var(--cream); color: var(--mauve-dk); box-shadow: 0 10px 22px rgba(0, 0, 0, .18); }
  .btn-outline:hover { background: var(--mauve-dk); color: #fff; }
  .link-arrow:hover::after { transform: translateX(5px); }
  .nav a:hover { color: #fff; }
  .nav a:hover::after { width: 100%; }
  .person:hover img { transform: translateY(-6px) scale(1.04); }
  .gallery-item:hover { transform: translateY(-6px); box-shadow: 0 26px 56px rgba(135, 102, 112, .28); }
  .gallery-item:hover img { transform: scale(1.07); }
  .venue-card.in:hover, .gift-item.in:hover { transform: translateY(-6px); box-shadow: 0 26px 56px rgba(135, 102, 112, .26); }
  .lb button:hover { background: rgba(255, 255, 255, .3); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity 200ms ease; }
  .js .hero-text > *, .js .hero-arch, .js .halo { opacity: 1; animation: none; }
  .js .halo { opacity: .92; }
  .blob, .star, .feather, .sprig, .countdown li, .band-photo-frame, .person::before { animation: none; }
  .progress { display: none; }
  .arch img, .arch-frame img, .band-photo-frame img, .moon, .feather { transform: none !important; translate: none !important; }
  .js .venue-map .draw { stroke-dashoffset: 0; transition: none; }
  .js .venue-map .pin, .js .venue-map .banner, .js .venue-map .compass { opacity: 1; transition: none; animation: none; }
  .venue-map .blades { animation: none; }
  .gallery-item, .gallery-item img, .person img, .venue-card, .gift-item, .lb img { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav a { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero .moon { left: auto; right: 10%; top: 5%; width: 80px; height: 80px; }
  .hero .bl-peach { width: 70%; }
  .hero .bl-peach-r { display: none; }
  .hero .bl-lilac { width: 50%; left: 40%; }
  .hero .fe1 { width: 70px; height: 170px; }
  .story-grid, .band-grid { grid-template-columns: 1fr; }
  .band-photo { order: -1; width: min(100%, 300px); }
  .venue-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 210px; }
}
@media (max-width: 700px) {
  .container, .topbar-inner { width: calc(100% - 36px); }
  .party-grid { grid-template-columns: repeat(2, 1fr); gap: 38px 12px; }
  .person::before { width: 150px; height: 150px; margin-left: -75px; }
  .person img { width: 118px; height: 118px; }
  .choice { grid-auto-flow: row; justify-items: start; }
  .countdown { grid-template-columns: repeat(2, 1fr); }
  .venue-map { aspect-ratio: 4 / 3; }
  .event { grid-template-columns: 78px 34px 1fr; }
  .event::after { left: 95px; }
  .event-time { font-size: 1.3rem; }
  .hero .fe3, .hero .fe4, .hero .fe2 { display: none; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}
