@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=DM+Sans:wght@400;500&family=Mrs+Saint+Delafield&display=swap');

/* ---------- Tokens (mirror the Figma "Wedding tokens" collection) ---------- */
:root {
  --paper: #F8EEE2; --paper-card: #FBF4EC; --blush: #F6E1E4;
  --cobalt: #243E88; --cobalt-bright: #2E5FCF; --pink: #E4AEDC; --pink-soft: #F1D5EA;
  --plum: #8E5A84; --leaf: #3C5036; --leaf-soft: #E4E8D8; --citrus: #EBC233;
  --ink-muted: #4F5570; --line: #C9C6D4; --hair: rgba(36, 62, 136, .22);
  --serif: 'Cormorant Garamond', Georgia, serif; --sans: 'DM Sans', Arial, sans-serif; --script: 'Mrs Saint Delafield', 'Brush Script MT', cursive;
  --gutter: clamp(20px, 8.3vw, 120px); --max: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--cobalt); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 5px; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; margin: 0; }
p { margin: 0; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--plum); outline-offset: 4px; }
[hidden] { display: none !important; }
.skip { position: fixed; top: -100px; left: 16px; background: var(--paper); z-index: 100; padding: 12px; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 500 12px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.eyebrow .sprig { width: 48px; height: 20px; flex: none; }
.section-title { font-size: clamp(46px, 5vw, 72px); line-height: 1.02; letter-spacing: -.025em; }
.section-title em { font-style: italic; display: block; }
.section-head { display: grid; gap: 20px; justify-items: start; }
.section-head.center { justify-items: center; text-align: center; }
.lede { font-size: 18px; color: var(--ink-muted); max-width: 560px; }
.center .lede { margin-inline: auto; }
.script { font-family: var(--script); font-weight: 400; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 18px 30px; border-radius: 999px; border: 1px solid var(--cobalt); background: var(--cobalt); color: var(--paper); font: 500 14px/1 var(--sans); letter-spacing: .04em; text-decoration: none; cursor: pointer; transition: background .2s var(--ease), transform .2s var(--ease); }
.btn:hover { background: var(--cobalt-bright); border-color: var(--cobalt-bright); }
.btn:active { transform: scale(.98); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow, .link:hover .arrow { transform: translateX(4px); }
.btn.outline { background: transparent; color: var(--cobalt); }
.btn.outline:hover { background: var(--cobalt); color: var(--paper); }
.btn:disabled { opacity: .6; cursor: wait; }
.link { display: inline-flex; gap: 12px; align-items: center; padding: 6px 0; border: 0; border-bottom: 1px solid currentColor; background: none; font: 500 14px/1 var(--sans); letter-spacing: .04em; text-decoration: none; cursor: pointer; }
.link .arrow { transition: transform .2s var(--ease); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 22px var(--gutter); transition: background .2s, box-shadow .2s; }
.site-header.scrolled { background: var(--paper); box-shadow: 0 1px 0 var(--hair); }
.monogram { font: italic 300 34px/1 var(--serif); text-decoration: none; letter-spacing: -.02em; }
.site-nav { display: flex; align-items: center; gap: 36px; font-size: 14px; }
.site-nav a { text-decoration: none; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current] { text-decoration: underline; }
@media (max-width: 1200px) and (min-width: 861px) { .site-nav { gap: 22px; font-size: 13px; } }
.site-nav .btn { padding: 12px 24px; }
.menu-toggle { display: none; background: none; border: 0; font: 500 14px var(--sans); letter-spacing: .04em; cursor: pointer; padding: 10px; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1fr minmax(0, 560px); gap: 80px; align-items: center; padding: 24px var(--gutter) 72px; max-width: 1440px; margin: auto; }
.hero-copy { display: grid; gap: 28px; justify-items: start; }
.hero h1 { font-size: clamp(76px, 9.2vw, 132px); line-height: .92; letter-spacing: -.04em; }
.hero h1 .amp { font-style: italic; color: var(--plum); }
.hero-copy .script { font-size: clamp(40px, 4.4vw, 64px); color: var(--plum); transform: rotate(-3deg); line-height: 1; }
.hero .lede { max-width: 500px; }
.ctas { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.invite-stage { position: relative; }
.invite-card { position: relative; aspect-ratio: 440 / 580; transform: rotate(-3deg); filter: drop-shadow(0 18px 40px rgba(125, 89, 51, .14)); }
.wavy-bg { position: absolute; inset: 0; background: var(--blush); -webkit-mask: url(assets/wavy-card.svg) center / 100% 100% no-repeat; mask: url(assets/wavy-card.svg) center / 100% 100% no-repeat; }
.invite-card .botanical { position: absolute; left: 15%; width: 70%; top: 8%; aspect-ratio: 360 / 425; }
.invite-card .botanical svg, .invite-card .botanical img { width: 100%; height: 100%; overflow: visible; }
.invite-names { position: absolute; left: 0; right: 0; top: 75%; text-align: center; font-size: clamp(30px, 3.2vw, 46px); line-height: 1; }
.invite-date { position: absolute; left: 0; right: 0; top: 86%; text-align: center; font-size: 15px; }
.countdown { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px var(--gutter); border-top: 1px solid var(--hair); max-width: 1440px; margin: auto; }
.countdown .count { font: 300 32px/1 var(--serif); color: var(--plum); }

/* ---------- Sections ---------- */
.section { padding: 128px var(--gutter); }
.inner { max-width: var(--max); margin: auto; }
.scallop { position: relative; }
.scallop::before { content: ''; position: absolute; left: 0; right: 0; top: -20px; height: 21px; background: radial-gradient(ellipse 50% 100% at 50% 100%, var(--scallop) 98%, transparent 100%) 0 0 / 40px 21px repeat-x; }

.details .cards { display: grid; grid-template-columns: repeat(3, minmax(0, 360px)); gap: 32px; justify-content: center; margin-top: 64px; }
.arch-card { display: grid; justify-items: center; align-content: start; gap: 12px; padding: 56px 36px 40px; text-align: center; background: var(--paper-card); border: 1px solid var(--line); border-radius: 180px 180px 16px 16px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.arch-card:hover { transform: translateY(-4px); box-shadow: 0 18px 48px rgba(125, 89, 51, .10); }
.arch-card .num { font: 500 12px var(--sans); letter-spacing: .18em; color: var(--plum); }
.arch-card h3 { font-size: 32px; font-weight: 400; }
.arch-card p { color: var(--ink-muted); }

/* Story reels */
.story { padding-inline: 0; }
.story > .section-head, .story > .lede { padding-inline: var(--gutter); }
.story .lede { margin: 28px auto 0; text-align: center; }
.reel { margin-top: 80px; }
.reel-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 0 var(--gutter); }
.reel-head .chapter { font: 500 12px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--plum); }
.reel-head h3 { font: italic 300 56px/1.05 var(--serif); }
.reel-head .sub { color: var(--ink-muted); }
.reel-controls { display: flex; align-items: center; gap: 12px; }
.reel-count { font: 500 12px var(--sans); letter-spacing: .14em; color: var(--ink-muted); min-width: 64px; text-align: right; }
.round-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--cobalt); background: transparent; cursor: pointer; transition: background .2s, color .2s, opacity .2s; }
.round-btn:hover:not(:disabled) { background: var(--cobalt); color: var(--paper); }
.round-btn:disabled { opacity: .3; cursor: default; }
.reel-track { display: flex; gap: 40px; align-items: center; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter); padding: 40px var(--gutter) 48px; scrollbar-width: none; overscroll-behavior-x: contain; }
.reel-track::-webkit-scrollbar { display: none; }
.photo-card { flex: none; scroll-snap-align: start; margin: 0; padding: 12px 12px 18px; background: var(--paper-card); border-radius: 4px; box-shadow: 0 12px 32px rgba(125, 89, 51, .12); transform: rotate(var(--tilt, -2deg)); transition: transform .25s var(--ease); cursor: zoom-in; border: 0; text-align: left; font: inherit; color: inherit; }
.photo-card:nth-child(even) { --tilt: 1.5deg; }
.photo-card:hover, .photo-card:focus-visible { transform: rotate(0) translateY(-6px); }
.photo-card img, .photo-card .ph { height: var(--h, 360px); width: auto; aspect-ratio: var(--ar, 280 / 360); object-fit: cover; background: var(--pink-soft); }
.photo-card .ph { display: grid; place-items: center; font: 500 12px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--plum); }
.photo-card figcaption, .photo-card .cap { display: block; margin-top: 14px; font-size: 14px; color: var(--ink-muted); }
.reel-progress { margin: 0 var(--gutter); height: 2px; background: rgba(36, 62, 136, .15); position: relative; overflow: hidden; }
.reel-progress span { position: absolute; inset: 0 auto 0 0; width: 12%; background: var(--cobalt); transition: width .15s linear; }
.interlude { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 72px var(--gutter) 0; color: var(--plum); }
.interlude::before, .interlude::after { content: ''; width: 120px; height: 1px; background: var(--hair); }
.interlude .script { font-size: 40px; }
.interlude img { width: 72px; }

/* The day */
.day { --scallop: var(--pink-soft); background: var(--pink-soft); }
.day .inner { display: grid; grid-template-columns: 1fr 620px; gap: 96px; }
.day-intro { display: grid; gap: 28px; align-content: start; }
.day-intro .big-sprig { width: 210px; transform: rotate(-8deg); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 28px 0; border-top: 1px solid var(--hair); position: relative; }
.timeline li:last-child { border-bottom: 1px solid var(--hair); }
.timeline time, .timeline .when { display: flex; align-items: center; gap: 12px; font: 300 44px/1 var(--serif); white-space: nowrap; }
.timeline .when.word { font-style: italic; font-size: 34px; }
.timeline time::before, .timeline .when::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--citrus); flex: none; }
.timeline h3 { font-size: 32px; font-weight: 400; }
.timeline p { color: var(--ink-muted); }

/* Venue */
.venue .inner { display: grid; grid-template-columns: 520px 1fr; gap: 96px; align-items: center; }
.venue-arch { position: relative; height: 620px; border-radius: 260px 260px 16px 16px; overflow: hidden; background: var(--cobalt); color: var(--paper); display: grid; place-items: end center; padding: 40px; }
.venue-arch img { color: transparent; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.venue-arch .fallback { position: absolute; inset: 0; display: grid; align-content: space-between; justify-items: center; padding: 96px 40px 40px; text-align: center; }
.venue-arch .fallback .mark { font: 300 72px/1 var(--serif); letter-spacing: -.02em; }
.venue-arch .fallback .mark em { display: block; }
.venue-arch.has-photo .fallback { display: none; }
.venue-arch .tag { position: relative; z-index: 1; background: rgba(36, 62, 136, .85); padding: 10px 18px; border-radius: 999px; font: 500 12px var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.venue-arch:not(.has-photo) .tag { display: none; }
.venue-arch .tag { white-space: nowrap; }
.venue-copy { display: grid; gap: 28px; justify-items: start; }
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 28px; border-top: 1px solid var(--hair); width: 100%; }
.notes > div { display: grid; gap: 10px; justify-items: start; align-content: start; }
.notes h3 { font-size: 30px; font-weight: 400; }
.notes p { color: var(--ink-muted); }
.pill { display: inline-block; padding: 5px 12px; border-radius: 999px; font: 500 12px var(--sans); letter-spacing: .16em; text-transform: uppercase; background: var(--leaf-soft); color: var(--leaf); }

/* Gifts */
.gifts .wavy { position: relative; max-width: 760px; margin: auto; padding: 88px 96px; display: grid; gap: 24px; justify-items: center; text-align: center; filter: drop-shadow(0 18px 40px rgba(125, 89, 51, .10)); }
.gifts .wavy-bg { -webkit-mask-image: url(assets/wavy-card-square.svg); mask-image: url(assets/wavy-card-square.svg); }
.wavy > :not(.wavy-bg) { position: relative; }
.gifts .lede { max-width: none; }
.gifts .strong { font-size: 18px; color: var(--cobalt); }
.gifts .script { font-size: 40px; color: var(--plum); }
.envelope { width: 72px; }

/* Bali teaser: full-bleed sunset photo, dark wash for contrast, polaroid collage (see bali.css for the full page) */
.bali-teaser { position: relative; overflow: hidden; color: #FBF5EC; background: #12383D; padding: 136px var(--gutter) 72px; isolation: isolate; }
.bali-teaser .bali-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.bali-teaser::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 36, 40, .92) 0%, rgba(12, 36, 40, .78) 38%, rgba(12, 36, 40, .25) 70%, rgba(12, 36, 40, .45) 100%), linear-gradient(0deg, rgba(12, 36, 40, .55), transparent 40%); }
.bali-teaser .inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 620px); gap: 64px; align-items: center; }
.bali-teaser .copy { display: grid; gap: 22px; justify-items: start; max-width: 520px; }
.bali-label { font: 500 12px var(--sans); letter-spacing: .24em; text-transform: uppercase; color: #A44E33; }
.bali-teaser .bali-label { color: #F6C3A0; }
.bali-display { font: italic 300 clamp(56px, 6vw, 88px)/.94 var(--serif); letter-spacing: -.03em; }
.bali-teaser .bali-display { color: #FFF8EE; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.bali-dates { font: 300 30px/1.3 var(--serif); color: #1F5E61; }
.bali-teaser .bali-dates { color: #F6C3A0; }
.bali-line { font-size: 18px; line-height: 1.6; color: rgba(255, 248, 238, .9); }
.btn.terracotta { background: #C2694A; border-color: #C2694A; color: #FFF8EE; }
.btn.terracotta:hover { background: #A9573B; border-color: #A9573B; }
.bali-collage { position: relative; height: 560px; }
.bali-collage .snap { position: absolute; margin: 0; width: 300px; padding: 10px 10px 14px; background: #FFF8EE; border-radius: 4px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); transform: rotate(var(--r)); transition: transform .3s var(--ease); }
.bali-collage .snap:hover { transform: rotate(0) translateY(-6px); z-index: 2; }
.bali-collage .snap img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.bali-collage .snap figcaption { margin-top: 10px; font: italic 300 22px/1 var(--serif); color: #12383D; }
.bali-collage .snap:nth-child(1) { left: 0; top: 40px; }
.bali-collage .snap:nth-child(2) { left: 230px; top: 0; z-index: 1; }
.bali-collage .snap:nth-child(3) { left: 150px; top: 250px; width: 260px; }
.bali-collage .snap:nth-child(3) img { aspect-ratio: 5 / 4; }
.photo-credit { position: relative; margin-top: 48px; font-size: 12px; color: rgba(255, 248, 238, .7); text-align: right; }
.photo-credit a { color: inherit; }
.arch-window { height: 580px; border-radius: 240px 240px 20px 20px; overflow: hidden; background: #F3B48E; }
.arch-window img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }

/* FAQ */
.faq { background: var(--paper-card); }
.faq .inner { display: grid; grid-template-columns: 1fr 680px; gap: 96px; }
.faq-intro { display: grid; gap: 28px; align-content: start; justify-items: start; }
.questions details { border-bottom: 1px solid var(--hair); }
.questions summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; font: 400 26px/1.25 var(--serif); }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: '+'; color: var(--plum); font-size: 30px; line-height: 1; transition: transform .25s var(--ease); }
.questions details[open] summary::after { content: '−'; }
.questions details p { color: var(--ink-muted); padding: 0 40px 24px 0; animation: fade-up .3s .08s var(--ease) both; }

/* RSVP */
.rsvp { --scallop: var(--leaf-soft); background: var(--leaf-soft); text-align: center; }
.rsvp .wavy { position: relative; max-width: 680px; margin: 48px auto 0; padding: 80px 72px; text-align: left; filter: drop-shadow(0 18px 40px rgba(60, 80, 54, .10)); }
.rsvp .wavy-bg { background: var(--paper-card); }
.rsvp-steps { display: flex; align-items: center; gap: 12px; font: 500 12px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); }
.rsvp-steps i { display: block; width: 48px; height: 4px; border-radius: 2px; background: var(--line); }
.rsvp-steps i.on { background: var(--cobalt); }
.rsvp form, .rsvp fieldset { display: grid; gap: 22px; border: 0; padding: 0; margin: 0; min-width: 0; }
.rsvp legend, .form-q { font: 400 30px/1.2 var(--serif); padding: 0; margin-bottom: 4px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.choice { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper-card); cursor: pointer; transition: background .2s, border-color .2s; }
.choice:has(input:checked) { background: var(--pink-soft); border-color: var(--cobalt); }
.choice input { accent-color: var(--cobalt); width: 18px; height: 18px; margin: 0; }
.field { display: grid; gap: 8px; font: 500 14px var(--sans); }
.field span { font-weight: 400; color: var(--ink-muted); }
.field input, .field textarea { width: 100%; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper-card); font: 16px var(--sans); color: var(--cobalt); resize: vertical; }
.consent { display: flex; gap: 12px; align-items: start; font-size: 14px; color: var(--ink-muted); }
.consent input { width: 18px; height: 18px; accent-color: var(--cobalt); margin: 2px 0 0; flex: none; }
.small { font-size: 14px; color: var(--ink-muted); }
.form-message:not(:empty) { background: var(--leaf-soft); border-left: 3px solid var(--leaf); padding: 12px 16px; font-size: 14px; color: var(--leaf); }
.form-message.error { background: #F2DDD6; border-color: #9E493E; color: #72392E; }
.form-message:empty { display: none; }
.step-actions { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.rsvp-signoff { display: block; margin-top: 56px; font-size: 44px; color: var(--plum); }

/* Footer */
.site-footer { background: var(--cobalt); color: var(--paper); text-align: center; padding: 96px var(--gutter); display: grid; gap: 18px; justify-items: center; }
.site-footer .script { font-size: clamp(44px, 5vw, 64px); line-height: 1.1; }
.site-footer .eyebrow { color: var(--pink); }
.site-footer .link { color: var(--paper); }
.motion-toggle { background: none; border: 0; color: inherit; opacity: .7; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Where to stay page ---------- */
.page-head { padding: 48px var(--gutter) 56px; display: grid; gap: 28px; justify-items: start; max-width: 1440px; margin: auto; }
.stay-body { display: grid; grid-template-columns: minmax(0, 640px) 1fr; gap: 64px; padding: 0 var(--gutter) 128px; max-width: 1440px; margin: auto; align-items: start; }
.stay-map { position: sticky; top: 100px; border-radius: 28px; overflow: hidden; }
.stay-map img { width: 100%; height: auto; }
.stay-options { display: grid; gap: 20px; }
.stay-card { display: grid; gap: 14px; justify-items: start; padding: 36px; border-radius: 24px; background: var(--paper-card); border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.stay-card:hover { transform: translateY(-4px); box-shadow: 0 18px 48px rgba(125, 89, 51, .10); }
.stay-card .top { display: flex; gap: 12px; align-items: center; }
.marker { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--pink); font: 500 14px var(--sans); }
.marker.leaf { background: var(--leaf-soft); }
.stay-card h2 { font: 400 32px/1.15 var(--serif); }
.stay-card p { color: var(--ink-muted); }
.plan-ahead { background: var(--pink-soft); padding: 56px var(--gutter); }
.plan-ahead .inner { display: flex; gap: 40px; align-items: center; }
.plan-ahead h2 { font: 400 32px var(--serif); white-space: nowrap; }
.plan-ahead p { color: var(--ink-muted); }
.plan-ahead .pill { background: var(--paper-card); color: var(--plum); }
.cta-band { padding: 112px var(--gutter); display: grid; justify-items: center; gap: 24px; }
.cta-band .script { font-size: 44px; color: var(--plum); }

/* Mobile rails: card groups become a sideways swipe with the next card peeking in. */
@media (max-width: 860px) {
  .rail { display: flex !important; justify-content: flex-start !important; justify-self: stretch !important; align-self: stretch; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 24px; margin-inline: -24px; padding: 8px 24px 28px; scrollbar-width: none; overscroll-behavior-x: contain; grid-template-columns: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { flex: 0 0 78%; scroll-snap-align: start; min-width: 0; }
  .rail::after { content: ''; flex: 0 0 8px; }
  .motion .rail > [data-reveal] { opacity: 1; transform: none; }
  .rail-hint { display: flex; justify-content: flex-end; gap: 8px; margin-top: -12px; font: 500 12px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); }
  .details .cards.rail { margin-top: 40px; }
  .notes.rail { border-top: 0; padding-top: 8px; width: calc(100% + 48px); max-width: none; }
  .notes.rail > div { padding: 24px; border-radius: 20px; background: var(--paper-card); border: 1px solid var(--line); }
}
@media (min-width: 861px) { .rail-hint { display: none; } }

/* ---------- Petals (scroll-driven layer) ---------- */
.petal-layer { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.petal-layer img { position: absolute; left: 0; top: 0; transform-origin: 50% 50%; will-change: transform; max-width: none; }
/* While the petal clusters are live they stand in for the painted flowers, which are hidden underneath. */
.petals-live .botanical #flowers-left, .petals-live .botanical #flowers-right { visibility: hidden; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100dvh; margin: 0; }
.lightbox::backdrop { background: rgba(23, 31, 58, .88); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; display: grid; gap: 14px; justify-items: center; max-width: min(92vw, 1100px); }
.lightbox img { max-height: 78dvh; width: auto; border-radius: 4px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.lightbox figcaption { color: var(--paper); font-size: 15px; }
.lightbox .lb-btn { position: fixed; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(248, 238, 226, .6); background: rgba(23, 31, 58, .4); color: var(--paper); font-size: 20px; cursor: pointer; }
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 20px; top: 50%; }
.lightbox .lb-next { right: 20px; top: 50%; }

/* ---------- Motion: "painted in" (only when JS is on and motion allowed) ---------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: scale(.96) rotate(0); } to { opacity: 1; transform: rotate(-3deg); } }
@keyframes paint { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.6); } 70% { opacity: 1; transform: scale(1.06); } 100% { transform: none; } }
@keyframes write-on { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes draw-on { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes deal { from { opacity: 0; transform: translateX(40px) rotate(0); } to { opacity: 1; transform: rotate(var(--tilt, -2deg)); } }
.motion .invite-card { animation: settle .5s var(--ease) both; }
.motion .botanical g { transform-box: fill-box; transform-origin: 50% 100%; animation: paint .5s var(--ease) both; }
.motion .botanical #vase-base, .motion .botanical .ceramic { animation-delay: .4s; }
.motion .botanical #leaves-left { animation-delay: .45s; }
.motion .botanical #leaves-right { animation-delay: .55s; }
.motion .botanical #flowers-left { animation-delay: .8s; animation-duration: .6s; }
.motion .botanical #flowers-right { animation-delay: .95s; animation-duration: .6s; }
.motion .botanical .fruit { animation: pop .5s 1.3s var(--ease) both; }
.motion .invite-names, .motion .invite-date { animation: write-on .7s 1.35s var(--ease) both; }
.motion .hero-copy > * { animation: fade-up .7s var(--ease) both; animation-delay: calc(1.3s + var(--i, 0) * 80ms); }
.motion [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }
.motion [data-reveal] .sprig { clip-path: inset(0 100% 0 0); }
.motion [data-reveal].is-in .sprig { animation: draw-on .6s var(--ease) both; }
.motion .timeline li { opacity: 0; }
.motion .timeline li::after { content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--cobalt); }
.motion .timeline.is-in li { animation: fade-up .6s var(--ease) both; animation-delay: calc(var(--i) * 120ms); }
.motion .timeline.is-in li::after { animation: line .4s var(--ease) both; animation-delay: calc(var(--i) * 120ms); }
@keyframes line { from { width: 0; opacity: 1; } 90% { width: 100%; opacity: 1; } to { width: 100%; opacity: 0; } }
.motion .reel:not(.is-in) .photo-card:nth-child(-n+6) { opacity: 0; }
.motion .reel.is-in .photo-card:nth-child(-n+6) { animation: deal .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
.motion .interlude.is-in .script { animation: write-on .9s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero { gap: 48px; }
  .day .inner, .venue .inner, .faq .inner, .bali-teaser .inner { grid-template-columns: 1fr; gap: 56px; }
  .timeline { max-width: 680px; }
  .venue-arch { max-width: 520px; width: 100%; }
  .bali-teaser .arch-window { max-width: 480px; width: 100%; }
  .stay-body { grid-template-columns: 1fr; }
  .stay-map { position: static; }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 20px; padding: 24px; background: var(--paper); box-shadow: 0 1px 0 var(--hair); }
  .site-nav.open { display: flex; }
  .site-header { padding: 16px 20px; background: var(--paper); }
  .monogram { font-size: 28px; }
  .hero { grid-template-columns: 1fr; padding: 8px 24px 48px; text-align: center; gap: 24px; }
  .hero-copy { justify-items: center; }
  .invite-stage { order: -1; max-width: 300px; width: 100%; margin: 0 auto; }
  .hero h1 { font-size: 76px; }
  .ctas { flex-direction: column; width: 100%; gap: 16px; }
  .ctas .btn { width: 100%; }
  .countdown { padding: 18px 24px; }
  .countdown .hint { display: none; }
  .countdown .count { font-size: 26px; }
  .section { padding: 80px 24px; }
  .section-title { font-size: 46px; }
  .details .cards { grid-template-columns: 1fr; }
  .reel { margin-top: 48px; }
  .reel-head { padding: 0 24px; }
  .reel-head h3 { font-size: 40px; }
  .reel-controls .round-btn { display: none; }
  .reel-track { padding: 24px; gap: 20px; scroll-padding-left: 24px; }
  .photo-card img, .photo-card .ph { height: calc(var(--h, 360px) * .55); }
  .reel-progress { margin: 0 24px; }
  .interlude::before, .interlude::after { display: none; }
  .interlude img { display: none; }
  .timeline li { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .timeline time, .timeline .when { font-size: 26px; }
  .timeline .when.word { font-size: 26px; }
  .timeline h3 { font-size: 24px; }
  .venue-arch { height: 400px; border-radius: 171px 171px 12px 12px; }
  .venue-arch .fallback .mark { font-size: 46px; }
  .venue-arch .tag { font-size: 11px; letter-spacing: .12em; padding: 9px 14px; }
  .notes { grid-template-columns: 1fr; }
  .gifts.section { padding-inline: 16px; }
  .gifts .wavy { padding: 64px 32px; }
  .gifts .wavy-bg { -webkit-mask-image: url(assets/wavy-card.svg); mask-image: url(assets/wavy-card.svg); }
  .bali-teaser { padding: 88px 24px 40px; }
  .bali-teaser::before { background: linear-gradient(180deg, rgba(12, 36, 40, .55) 0%, rgba(12, 36, 40, .88) 45%, rgba(12, 36, 40, .95) 100%); }
  .bali-teaser .copy { justify-items: stretch; }
  .bali-teaser .btn { width: 100%; }
  .bali-teaser .bali-display { font-size: 58px; }
  .bali-teaser .bali-dates { font-size: 24px; }
  .bali-line { font-size: 16px; }
  .bali-collage { height: auto; }
  .bali-collage .snap { position: static; width: auto; }
  .bali-collage .snap img, .bali-collage .snap:nth-child(3) img { aspect-ratio: 4 / 5; }
  .photo-credit { text-align: left; margin-top: 8px; }
  .arch-window { height: 400px; border-radius: 171px 171px 18px 18px; }
  .questions summary { font-size: 21px; }
  .rsvp.section { padding-inline: 16px; }
  .rsvp .wavy { padding: 56px 32px; }
  .rsvp .wavy-bg { -webkit-mask-image: url(assets/wavy-card.svg); mask-image: url(assets/wavy-card.svg); }
  .choices { grid-template-columns: 1fr; }
  .rsvp .btn { width: 100%; }
  .site-footer { padding: 64px 24px 96px; }
  .page-head { padding: 32px 24px 40px; }
  .stay-body { padding: 0 24px 72px; gap: 24px; }
  .stay-card { padding: 28px 24px; }
  .plan-ahead { padding: 48px 24px; }
  .plan-ahead .inner { flex-direction: column; align-items: start; gap: 12px; }
  .cta-band { padding: 64px 24px; }
  .cta-band .btn { width: 100%; }
  .lightbox .lb-prev, .lightbox .lb-next { display: none; }
}
