:root {
  --ivory: #f7f2e9;
  --ivory-deep: #ece3d5;
  --paper: #fcfaf5;
  --champagne: #dfcfb6;
  --gold: #b29463;
  --gold-deep: #896d42;
  --sage: #879181;
  --eucalyptus: #6f7d6e;
  --olive: #3d463d;
  --ink: #34312d;
  --muted: #777066;
  --white: #fffdf8;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
  --shadow: 0 24px 80px rgba(54, 49, 42, 0.14);
  --hairline: rgba(137, 109, 66, 0.32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(178, 148, 99, 0.08), transparent 29rem),
    radial-gradient(circle at 90% 26%, rgba(111, 125, 110, 0.07), transparent 32rem),
    var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
html.menu-open,
body.menu-open {
  overflow: hidden;
  overscroll-behavior: none;
}

body.menu-open {
  width: 100%;
  touch-action: none;
}
button, a { -webkit-tap-highlight-color: transparent; }
button, input, textarea { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--champagne); color: var(--ink); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  transform: translateY(-180%);
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }
.noscript {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  z-index: 200;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  padding: 0 clamp(1.25rem, 4vw, 4.5rem);
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: color 0.35s ease, background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}
.site-header.scrolled {
  color: var(--olive);
  background: rgba(247, 242, 233, 0.88);
  border-color: rgba(137, 109, 66, 0.17);
  backdrop-filter: blur(18px) saturate(120%);
}
.header-mark {
  position: relative;
  z-index: 2;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.header-mark span { color: var(--gold); font-style: italic; font-weight: 400; }
.site-nav { display: flex; align-items: center; gap: clamp(1.1rem, 3vw, 2.7rem); }
.site-nav a {
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -0.45rem;
  height: 1px;
  background: currentColor;
  transition: right 0.3s ease;
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }
.menu-button { display: none; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(140deg, #7f887c 0%, #9e927f 48%, #6c746b 100%);
}
.hero-media {
  position: absolute;
  inset: -4%;
  z-index: -4;
  background-position: center 36%;
  background-size: cover;
  opacity: 0;
  transform: scale(1.07);
  transition: opacity 1.6s ease;
  animation: heroDrift 22s ease-in-out infinite alternate;
}
.hero-media.ready { opacity: 1; }
.hero-wash {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(25, 29, 25, 0.31), rgba(33, 32, 28, 0.16) 45%, rgba(24, 28, 24, 0.5)),
    radial-gradient(circle at 50% 35%, rgba(250, 245, 235, 0.12), transparent 36%);
}
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.34;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");
}
.hero::after {
  content: "";
  position: absolute;
  inset: 1.5rem;
  z-index: -1;
  border: 1px solid rgba(255, 253, 248, 0.29);
  pointer-events: none;
}
.hero-content {
  width: min(92%, 980px);
  padding: 8rem 1rem 7rem;
  text-align: center;
}
.eyebrow {
  display: block;
  margin: 0 0 1.1rem;
  color: var(--gold-deep);
  text-transform: uppercase;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.29em;
}
.hero-eyebrow { color: rgba(255, 253, 248, 0.83); }
.hero-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.3rem, 2vw, 1.8rem);
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(5rem, 12.6vw, 11.5rem);
  font-weight: 400;
  line-height: 0.75;
  letter-spacing: -0.055em;
  text-shadow: 0 8px 38px rgba(12, 15, 12, 0.16);
}
.hero-title em {
  color: #d9c29c;
  font-size: 0.43em;
  font-weight: 400;
  letter-spacing: 0;
}
.hero-rule {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  width: min(360px, 58vw);
  margin: clamp(2.4rem, 4vw, 3.6rem) auto 1.4rem;
}
.hero-rule span { height: 1px; background: rgba(255, 253, 248, 0.56); }
.hero-rule i { color: #d9c29c; font-style: normal; font-size: 0.7rem; }
.hero-date {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  letter-spacing: 0.1em;
}
.hero-location {
  margin: 0.35rem 0 0;
  text-transform: uppercase;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  opacity: 0.85;
}
.reveal-hero { opacity: 0; transform: translateY(22px); animation: heroReveal 1.2s cubic-bezier(.2,.8,.2,1) forwards; }
.hero-title { animation-delay: 0.15s; }
.hero-rule { animation-delay: 0.32s; }
.hero-date { animation-delay: 0.48s; }
.hero-location { animation-delay: 0.59s; }
.hero-eyebrow { animation-delay: 0.03s; }
.hero-botanical {
  position: absolute;
  bottom: -4rem;
  z-index: -1;
  width: clamp(230px, 31vw, 470px);
  color: rgba(255, 253, 248, 0.27);
  stroke-width: 1.15;
  pointer-events: none;
}
.hero-botanical-left { left: -6rem; transform: rotate(-4deg); }
.hero-botanical-right { right: -6rem; transform: scaleX(-1) rotate(-4deg); }
.scroll-cue {
  position: absolute;
  bottom: 2.3rem;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  color: rgba(255, 253, 248, 0.78);
  text-decoration: none;
  transform: translateX(-50%);
}
.scroll-cue span { text-transform: uppercase; font-size: 0.54rem; letter-spacing: 0.25em; }
.scroll-cue i { display: block; width: 1px; height: 34px; background: currentColor; transform-origin: top; animation: scrollLine 2s ease-in-out infinite; }

.countdown-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
  padding: clamp(2.4rem, 5vw, 4.5rem) clamp(1.5rem, 7vw, 8rem);
  color: var(--ivory);
  background: var(--olive);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.countdown-copy { padding-right: 2rem; border-right: 1px solid rgba(255, 253, 248, 0.19); }
.countdown-copy .eyebrow { color: #d4bc94; margin-bottom: 0.35rem; }
.countdown-copy p { margin: 0; color: rgba(255,253,248,0.72); font-family: var(--serif); font-size: 1.2rem; font-style: italic; }
.countdown { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: clamp(0.8rem, 2.4vw, 2.4rem); }
.countdown div { text-align: center; }
.countdown strong { display: block; font-family: var(--serif); font-size: clamp(2.6rem, 5.2vw, 5rem); font-weight: 400; line-height: 0.9; font-variant-numeric: tabular-nums; }
.countdown span { display: block; margin-top: 0.65rem; color: rgba(255,253,248,0.54); text-transform: uppercase; font-size: 0.56rem; letter-spacing: 0.22em; }
.countdown i { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }

.section { position: relative; padding: clamp(5.5rem, 11vw, 10rem) clamp(1.35rem, 7vw, 8rem); }
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.72,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

.welcome {
  display: grid;
  grid-template-columns: 0.5fr 1.5fr;
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
  min-height: 70vh;
  background: var(--paper);
}
.floral-seal { display: grid; place-items: center; }
.floral-seal svg { width: min(270px, 70vw); overflow: visible; }
.floral-seal circle, .floral-seal path { fill: none; stroke: var(--sage); stroke-width: 1; }
.floral-seal text { fill: var(--olive); text-anchor: middle; font-family: var(--serif); font-size: 31px; font-style: italic; }
.welcome-copy { max-width: 760px; }
.welcome-copy h2, .section-heading h2, .story-copy h2, .river-copy h2, .closing h2 {
  margin: 0;
  color: var(--olive);
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 6.3rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.welcome-copy p { max-width: 660px; margin: 2rem 0 0; color: var(--muted); font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.65; }

.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: clamp(3rem, 9vw, 9rem);
  overflow: hidden;
}
.story::before {
  content: "";
  position: absolute;
  right: -7rem;
  top: 13%;
  width: 25rem;
  height: 25rem;
  border: 1px solid rgba(135,145,129,0.22);
  border-radius: 50%;
}
.story-image-wrap { position: relative; padding: 0 2.4rem 3rem 0; }
.story-image {
  position: relative;
  z-index: 2;
  min-height: min(72vw, 760px);
  background:
    linear-gradient(150deg, rgba(78, 86, 77, 0.18), rgba(194, 174, 143, 0.19)),
    #c7c2b7;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}
.story-image::after, .closing-photo::after, .quote-backdrop::after {
  content: "M & F";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.58);
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6rem);
  font-style: italic;
  letter-spacing: 0.07em;
  transition: opacity 0.6s ease;
}
.has-photo::after { opacity: 0; }
.image-frame { position: absolute; inset: 2.4rem 0 0 2.4rem; border: 1px solid var(--gold); opacity: 0.62; }
.image-caption { position: absolute; left: 4.6rem; bottom: 0; z-index: 3; margin: 0; color: var(--gold-deep); font-family: var(--serif); font-size: 1.15rem; font-style: italic; }
.story-copy { position: relative; max-width: 610px; }
.section-number { display: block; margin-bottom: 3rem; color: var(--gold); font-family: var(--serif); font-size: 1.05rem; }
.story-copy h2 { font-size: clamp(3.3rem, 5.7vw, 5.6rem); }
.story-copy p { color: var(--muted); }
.story-copy p:first-of-type { margin-top: 2.2rem; }
.drop-cap::first-letter { float: left; margin: 0.12em 0.13em 0 0; color: var(--gold-deep); font-family: var(--serif); font-size: 4.9rem; line-height: 0.72; }
.story-copy strong { color: var(--olive); font-weight: 500; }
.signature { margin-top: 2.3rem; color: var(--gold-deep); font-family: var(--serif); font-size: 2rem; font-style: italic; }

.quote-panel {
  min-height: min(78vh, 880px);
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  background: #777d73;
}
.quote-backdrop { position: absolute; inset: 0; z-index: -3; background-size: cover; background-position: center; }
.quote-overlay { position: absolute; inset: 0; z-index: -2; background: linear-gradient(135deg, rgba(28,33,28,0.7), rgba(34,31,26,0.28), rgba(28,33,28,0.68)); }
.quote-panel::after { content: ""; position: absolute; inset: 2.2rem; z-index: -1; border: 1px solid rgba(255,253,248,0.28); }
.quote-panel blockquote { max-width: 940px; margin: 0; padding: 2rem; text-align: center; }
.quote-panel blockquote > span { display: block; height: 3.2rem; color: #dcc59e; font-family: var(--serif); font-size: 7rem; line-height: 0.7; }
.quote-panel blockquote p { margin: 1rem 0 2rem; font-family: var(--serif); font-size: clamp(2.6rem, 5.7vw, 5.8rem); font-weight: 400; font-style: italic; line-height: 1.05; letter-spacing: -0.025em; }
.quote-panel cite { text-transform: uppercase; font-style: normal; font-size: 0.64rem; font-weight: 500; letter-spacing: 0.25em; }

.details { background: var(--paper); }
.section-heading { max-width: 820px; margin: 0 auto clamp(3.5rem, 7vw, 7rem); text-align: center; }
.section-heading h2 { font-size: clamp(3.3rem, 6vw, 6rem); }
.section-heading p { max-width: 650px; margin: 1.7rem auto 0; color: var(--muted); }
.detail-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; max-width: 1450px; margin: 0 auto; background: var(--hairline); border: 1px solid var(--hairline); }
.detail-card {
  position: relative;
  min-height: 520px;
  padding: clamp(2.2rem, 4vw, 4.3rem) clamp(1.7rem, 3.2vw, 3.7rem);
  background: var(--paper);
  text-align: center;
}
.detail-card.featured { color: var(--white); background: var(--olive); }
.detail-card .section-number { position: absolute; top: 1.5rem; left: 1.8rem; margin: 0; font-size: 0.8rem; }
.detail-card svg { width: 54px; margin: 2.8rem auto 2.5rem; fill: none; stroke: var(--sage); stroke-width: 1.2; }
.detail-card.featured svg { stroke: #d4bc94; }
.detail-card .eyebrow { margin-bottom: 0.8rem; }
.detail-card.featured .eyebrow { color: #d4bc94; }
.detail-card h3 { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 3vw, 3rem); font-weight: 400; line-height: 1.05; }
.detail-card p { margin: 1.3rem auto 0; color: var(--muted); }
.detail-card.featured p { color: rgba(255,253,248,0.68); }
.detail-card a { display: inline-block; margin-top: 2rem; color: #d4bc94; text-transform: uppercase; text-decoration: none; font-size: 0.61rem; letter-spacing: 0.18em; border-bottom: 1px solid rgba(212,188,148,0.5); }
.detail-note { position: absolute; left: 1rem; right: 1rem; bottom: 2rem; color: var(--gold-deep); font-family: var(--serif); font-size: 1rem; font-style: italic; }
.detail-card.featured .detail-note { color: #d4bc94; }

.river { overflow: hidden; padding-bottom: 2rem; text-align: center; }
.river-copy { max-width: 820px; margin: 0 auto; }
.river-copy h2 { font-size: clamp(3.2rem, 6vw, 6rem); }
.river-copy p { max-width: 680px; margin: 1.8rem auto 0; color: var(--muted); }
.river-art { width: min(1100px, 100%); margin: 3rem auto 0; color: var(--sage); }
.river-art svg { display: block; width: 100%; }
.river-art path { fill: none; stroke: currentColor; stroke-width: 1; opacity: 0.55; }
.river-art circle { fill: var(--gold); opacity: 0.7; }

.gallery { padding-top: 7rem; background: #eae2d6; }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(150px, 16vw, 280px); gap: clamp(0.6rem, 1.2vw, 1.1rem); max-width: 1500px; margin: 0 auto; }
.gallery-item, .gallery-placeholder { position: relative; overflow: hidden; background: #c8c3b9; }
.gallery-item:nth-child(8n + 1), .gallery-placeholder:nth-child(1) { grid-column: span 5; grid-row: span 2; }
.gallery-item:nth-child(8n + 2), .gallery-placeholder:nth-child(2) { grid-column: span 3; grid-row: span 1; }
.gallery-item:nth-child(8n + 3), .gallery-placeholder:nth-child(3) { grid-column: span 4; grid-row: span 1; }
.gallery-item:nth-child(8n + 4), .gallery-placeholder:nth-child(4) { grid-column: span 7; grid-row: span 1; }
.gallery-item:nth-child(8n + 5) { grid-column: span 5; grid-row: span 2; }
.gallery-item:nth-child(8n + 6) { grid-column: span 4; grid-row: span 1; }
.gallery-item:nth-child(8n + 7) { grid-column: span 3; grid-row: span 1; }
.gallery-item:nth-child(8n + 8) { grid-column: span 7; grid-row: span 1; }
.gallery-item { cursor: zoom-in; border: 0; padding: 0; }
.gallery-item::after { content: "View"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--white); background: rgba(41,44,39,0.25); text-transform: uppercase; font-size: 0.6rem; font-weight: 500; letter-spacing: 0.25em; opacity: 0; transition: opacity 0.35s ease; }
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.015); transition: transform 0.9s cubic-bezier(.2,.7,.2,1), opacity 0.45s ease; }
.gallery-item:hover img { transform: scale(1.065); }
.gallery-placeholder { display: grid; place-items: center; color: rgba(61,70,61,0.55); background: linear-gradient(145deg, rgba(135,145,129,0.36), rgba(223,207,182,0.65)); }
.gallery-placeholder span { font-family: var(--serif); font-size: clamp(1.5rem, 4vw, 3.5rem); font-style: italic; }
.gallery-status { margin: 1.8rem 0 0; color: var(--muted); text-align: center; font-family: var(--serif); font-style: italic; }

.primary-button {
  position: relative;
  min-width: 270px;
  padding: 1.1rem 1.8rem;
  color: var(--white);
  background: var(--olive);
  border: 1px solid var(--olive);
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.primary-button:hover { color: var(--olive); background: transparent; transform: translateY(-2px); }

.closing { min-height: min(88vh, 940px); display: grid; place-items: center; isolation: isolate; overflow: hidden; color: var(--white); background: #70786f; text-align: center; }
.closing-photo { position: absolute; inset: 0; z-index: -3; background-size: cover; background-position: center 40%; }
.closing-overlay { position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(31,35,30,0.4), rgba(30,33,29,0.65)); }
.closing::after { content: ""; position: absolute; inset: 2rem; z-index: -1; border: 1px solid rgba(255,253,248,0.28); }
.closing .eyebrow { color: #d8c19c; }
.closing h2 { color: var(--white); font-size: clamp(4rem, 9vw, 9rem); }
.closing-copy > p { margin: 1rem 0; text-transform: uppercase; font-size: 0.67rem; letter-spacing: 0.27em; }
.closing-mark { margin-top: 3rem; font-family: var(--serif); font-size: 2.2rem; letter-spacing: 0.08em; }
.closing-mark i { color: #d8c19c; font-style: italic; }

footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: 2rem clamp(1.3rem, 5vw, 5rem); color: rgba(255,253,248,0.72); background: #2e352f; font-size: 0.64rem; letter-spacing: 0.09em; }
footer p { margin: 0; font-family: var(--serif); font-size: 1.1rem; letter-spacing: 0; }
footer span { text-transform: uppercase; }
footer a { justify-self: end; text-decoration: none; text-transform: uppercase; }

.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 2rem clamp(1rem, 4vw, 4rem);
  color: var(--white);
  background: rgba(24, 27, 24, 0.95);
  border: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox[open] { display: grid; place-items: center; opacity: 1; }
.lightbox::backdrop { background: rgba(24, 27, 24, 0.75); backdrop-filter: blur(12px); }
.lightbox figure { max-width: min(90vw, 1500px); max-height: 88vh; margin: 0; text-align: center; }
.lightbox img { max-width: 100%; max-height: 81vh; margin: 0 auto; object-fit: contain; box-shadow: 0 30px 90px rgba(0,0,0,0.35); }
.lightbox figcaption { margin-top: 0.8rem; color: rgba(255,255,255,0.65); font-family: var(--serif); font-size: 1rem; font-style: italic; }
.lightbox-close, .lightbox-nav { position: fixed; z-index: 3; display: grid; place-items: center; color: var(--white); background: transparent; border: 0; cursor: pointer; }
.lightbox-close { top: 1rem; right: 1.3rem; width: 52px; height: 52px; font-family: var(--serif); font-size: 2.5rem; font-weight: 300; }
.lightbox-nav { top: 50%; width: 64px; height: 80px; font-family: var(--serif); font-size: 4rem; transform: translateY(-50%); }
.lightbox-nav.previous { left: 1rem; }
.lightbox-nav.next { right: 1rem; }

@keyframes heroReveal { to { opacity: 1; transform: translateY(0); } }
@keyframes heroDrift { 0% { transform: scale(1.07) translate3d(-0.5%, -0.5%, 0); } 100% { transform: scale(1.12) translate3d(0.7%, 0.5%, 0); } }
@keyframes scrollLine { 0%, 100% { transform: scaleY(0.35); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

@media (max-width: 1000px) {
  .countdown-section { grid-template-columns: 1fr; gap: 2rem; }
  .countdown-copy { padding: 0 0 1.8rem; border-right: 0; border-bottom: 1px solid rgba(255,253,248,0.19); text-align: center; }
  .welcome { grid-template-columns: 1fr; text-align: center; }
  .welcome-copy { margin: 0 auto; }
  .welcome-copy p { margin-left: auto; margin-right: auto; }
  .story { grid-template-columns: 1fr; }
  .story-image-wrap { width: min(90%, 720px); margin: 0 auto; }
  .story-image { min-height: min(110vw, 780px); }
  .story-copy { margin: 0 auto; }
  .detail-cards { grid-template-columns: 1fr; max-width: 680px; }
  .detail-card { min-height: 460px; }
  footer { grid-template-columns: 1fr; text-align: center; }
  footer a { justify-self: center; }
}

@media (max-width: 760px) {
  .site-header {
    height: 68px;
    padding: 0 1.25rem;
  }

  /* Safari treats backdrop-filter as a containing block for fixed children.
     Removing it on mobile keeps the menu attached to the viewport. */
  .site-header.scrolled,
  .site-header.menu-active,
  .site-header.menu-active.scrolled {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-header.menu-active,
  .site-header.menu-active.scrolled {
    color: var(--olive);
    background: transparent;
    border-color: transparent;
  }
  .menu-button { position: relative; z-index: 3; display: grid; gap: 6px; width: 44px; height: 44px; place-content: center; padding: 0; color: inherit; background: transparent; border: 0; }
  .menu-button span:not(.sr-only) { display: block; width: 22px; height: 1px; background: currentColor; transition: transform 0.3s ease; }
  .menu-button[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    width: 100vw;
    height: 100dvh;
    min-height: 100svh;
    display: grid;
    place-content: center;
    gap: 1.7rem;
    padding: calc(84px + env(safe-area-inset-top)) 1.5rem calc(32px + env(safe-area-inset-bottom));
    overflow-y: auto;
    color: var(--olive);
    background: rgb(247, 242, 233);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  }
  .site-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .site-nav a { font-family: var(--serif); font-size: 2.3rem; font-weight: 400; letter-spacing: 0; text-transform: none; text-align: center; }
  .site-header:has(.site-nav.open) { color: var(--olive); }
  .hero::after { inset: 0.8rem; }
  .hero-title { flex-direction: column; gap: 0.25rem; font-size: clamp(5.3rem, 24vw, 8.6rem); line-height: 0.7; }
  .hero-title em { margin: 0.12em 0 0.06em; font-size: 0.35em; }
  .hero-content { padding-top: 7rem; }
  .hero-botanical { width: 250px; opacity: 0.75; }
  .hero-botanical-left { left: -9rem; }
  .hero-botanical-right { right: -9rem; }
  .scroll-cue { bottom: 1.5rem; }
  .countdown-section { padding: 2.7rem 1.2rem; }
  .countdown { gap: 0.45rem; }
  .countdown strong { font-size: clamp(2rem, 11vw, 3rem); }
  .countdown span { font-size: 0.46rem; letter-spacing: 0.13em; }
  .section { padding-left: 1.3rem; padding-right: 1.3rem; }
  .floral-seal svg { width: 190px; }
  .story-image-wrap { width: calc(100% - 1rem); padding-right: 1.2rem; }
  .image-frame { inset: 1.2rem 0 0 1.2rem; }
  .image-caption { left: 2.6rem; }
  .quote-panel::after, .closing::after { inset: 0.8rem; }
  .quote-panel blockquote p { font-size: clamp(2.5rem, 12vw, 4rem); }
  .detail-card { padding: 2.5rem 1.5rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .gallery-item, .gallery-placeholder, .gallery-item:nth-child(n), .gallery-placeholder:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .gallery-item:nth-child(5n + 1), .gallery-placeholder:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .lightbox { padding: 1rem; }
  .lightbox-nav { top: auto; bottom: 1rem; height: 54px; }
  .lightbox-nav.previous { left: calc(50% - 72px); }
  .lightbox-nav.next { right: calc(50% - 72px); }
}

@media (max-width: 430px) {
  .hero-date { font-size: 1.32rem; }
  .gallery-grid { grid-auto-rows: 170px; }
  .countdown i { display: none; }
  .countdown { grid-template-columns: repeat(4, 1fr); }
  .primary-button { min-width: min(100%, 270px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal, .reveal-hero { opacity: 1; transform: none; }
}

/* v2: photo-free invitation sections, gallery carousel, and guest uploads */
.hero-no-photo {
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 251, 242, 0.13), transparent 28rem),
    radial-gradient(circle at 18% 78%, rgba(220, 196, 156, 0.13), transparent 25rem),
    linear-gradient(138deg, #566157 0%, #7d8476 47%, #4c574f 100%);
}
.hero-no-photo .hero-wash {
  background:
    linear-gradient(180deg, rgba(26, 32, 27, 0.08), rgba(26, 29, 25, 0.18)),
    radial-gradient(circle at 50% 38%, rgba(252, 245, 232, 0.17), transparent 38%);
}
.hero-halo {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 253, 248, 0.13);
  border-radius: 50%;
  pointer-events: none;
}
.hero-halo-one { width: min(63vw, 820px); aspect-ratio: 1; left: 50%; top: 49%; transform: translate(-50%, -50%); }
.hero-halo-two { width: min(49vw, 630px); aspect-ratio: 1; left: 50%; top: 49%; transform: translate(-50%, -50%); }

.story-text-only {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  min-height: 76vh;
  text-align: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(178, 148, 99, 0.08), transparent 30rem),
    var(--ivory);
}
.story-text-only::before {
  right: 50%;
  top: 50%;
  width: min(76vw, 780px);
  height: min(76vw, 780px);
  transform: translate(50%, -50%);
}
.story-text-only .story-copy { max-width: 850px; margin: 0 auto; }
.story-text-only .story-copy h2 { font-size: clamp(3.4rem, 7vw, 7.2rem); }
.story-text-only .section-number { margin-bottom: 2rem; }
.story-text-only .signature { margin-top: 2.7rem; }

.edit-note {
  position: relative;
  max-width: 680px;
  margin: 2.5rem auto 0;
  padding: 2rem clamp(1.4rem, 4vw, 3rem);
  color: var(--muted);
  background: rgba(252, 250, 245, 0.72);
  border: 1px solid var(--hairline);
  box-shadow: 0 20px 70px rgba(54, 49, 42, 0.07);
}
.edit-note::before, .edit-note::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border-color: var(--gold);
  opacity: 0.55;
}
.edit-note::before { left: 10px; top: 10px; border-left: 1px solid; border-top: 1px solid; }
.edit-note::after { right: 10px; bottom: 10px; border-right: 1px solid; border-bottom: 1px solid; }
.edit-note strong { display: block; color: var(--olive); font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 500; }
.edit-note span { display: block; margin-top: 0.6rem; font-size: 0.86rem; }

.quote-no-photo {
  min-height: min(68vh, 760px);
  background:
    radial-gradient(circle at 50% 50%, rgba(223, 207, 182, 0.17), transparent 29rem),
    linear-gradient(135deg, #354038, #596259 50%, #354039);
}
.quote-no-photo::before {
  content: "M  &  F";
  position: absolute;
  z-index: -1;
  color: rgba(255, 253, 248, 0.035);
  font-family: var(--serif);
  font-size: clamp(9rem, 24vw, 24rem);
  font-style: italic;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.quote-no-photo blockquote p { max-width: 940px; }

.gallery-featured {
  position: relative;
  max-width: 1180px;
  margin: clamp(2.8rem, 6vw, 5rem) auto 2.4rem;
  padding: 0 clamp(2.8rem, 6vw, 5.5rem);
}
.gallery-featured[hidden] { display: none; }
.gallery-featured figure { margin: 0; }
.gallery-featured img {
  width: 100%;
  height: min(70vh, 760px);
  object-fit: contain;
  background: rgba(61, 70, 61, 0.06);
  box-shadow: var(--shadow);
  cursor: zoom-in;
}
.gallery-featured figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
}
.gallery-featured figcaption small { font-family: var(--sans); font-size: 0.6rem; font-style: normal; letter-spacing: 0.18em; text-transform: uppercase; }
.gallery-featured-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 72px;
  padding: 0;
  color: var(--olive);
  background: rgba(247, 242, 233, 0.84);
  border: 1px solid rgba(137, 109, 66, 0.25);
  cursor: pointer;
  font-family: var(--serif);
  font-size: 3rem;
  transform: translateY(-65%);
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, background 0.25s ease;
}
.gallery-featured-nav:hover { background: var(--paper); transform: translateY(-65%) scale(1.04); }
.gallery-featured-nav.previous { left: 0; }
.gallery-featured-nav.next { right: 0; }

.guest-upload {
  display: grid;
  place-items: center;
  min-height: 820px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 50% 55%, rgba(223, 207, 182, 0.2), transparent 28rem),
    var(--paper);
}
.guest-upload::before, .guest-upload::after {
  content: "";
  position: absolute;
  width: 34vw;
  height: 34vw;
  max-width: 560px;
  max-height: 560px;
  border: 1px solid rgba(135, 145, 129, 0.17);
  border-radius: 50%;
}
.guest-upload::before { left: -19vw; top: -13vw; }
.guest-upload::after { right: -19vw; bottom: -13vw; }
.guest-upload-inner { position: relative; z-index: 2; width: min(100%, 760px); }
.guest-upload h2 {
  margin: 0;
  color: var(--olive);
  font-family: var(--serif);
  font-size: clamp(3.8rem, 8vw, 7.6rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.guest-upload-inner > p { max-width: 600px; margin: 1.5rem auto 2.6rem; color: var(--muted); }
.upload-flourish { position: absolute; top: 2.8rem; width: 210px; fill: none; stroke: var(--sage); stroke-width: 1; opacity: 0.68; }
.upload-form { display: grid; gap: 1rem; width: min(100%, 610px); margin: 0 auto; }
.upload-form label > span:first-child { display: block; margin-bottom: 0.55rem; color: var(--olive); text-align: left; text-transform: uppercase; font-size: 0.61rem; font-weight: 600; letter-spacing: 0.18em; }
.upload-form label small { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.upload-form input[type="text"] {
  width: 100%;
  padding: 1rem 1.1rem;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.8);
  border: 1px solid rgba(137, 109, 66, 0.26);
  border-radius: 0;
  outline: none;
}
.upload-form input[type="text"]:focus { border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(178, 148, 99, 0.1); }
.file-picker {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 1.4rem;
  color: var(--olive);
  background: rgba(247, 242, 233, 0.62);
  border: 1px dashed rgba(137, 109, 66, 0.5);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.file-picker:hover { background: rgba(223, 207, 182, 0.22); border-color: var(--gold-deep); transform: translateY(-2px); }
.file-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-picker .file-picker-title { display: block; margin: 0; font-family: var(--serif); font-size: 2rem; font-weight: 500; text-transform: none; letter-spacing: 0; }
.file-picker .file-picker-copy { display: block; margin-top: 0.35rem; color: var(--muted); font-size: 0.67rem; letter-spacing: 0.05em; }
.upload-form .primary-button { justify-self: center; margin-top: 0.4rem; }
.primary-button:disabled { cursor: wait; opacity: 0.58; transform: none; }
.upload-status { min-height: 1.8rem; margin: 0; color: var(--muted); font-family: var(--serif); font-size: 1rem; font-style: italic; }
.upload-status[data-state="success"] { color: var(--eucalyptus); }
.upload-status[data-state="error"] { color: #8b4f45; }
.upload-privacy { display: block; margin-top: 1.3rem; color: var(--muted); font-family: var(--serif); font-style: italic; }

.closing-no-photo {
  min-height: min(74vh, 800px);
  background:
    radial-gradient(circle at 50% 40%, rgba(223, 207, 182, 0.16), transparent 28rem),
    linear-gradient(142deg, #313b34, #59635a 50%, #313b34);
}
.closing-no-photo::before {
  content: "";
  position: absolute;
  width: min(72vw, 760px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 253, 248, 0.12);
  border-radius: 50%;
}

@media (max-width: 760px) {
  .hero-halo-one { width: 135vw; }
  .hero-halo-two { width: 105vw; }
  .story-text-only { min-height: 700px; }
  .story-text-only .story-copy { margin: 0; }
  .gallery-featured { padding: 0 2.6rem; }
  .gallery-featured img { height: min(58vh, 580px); }
  .gallery-featured-nav { width: 42px; height: 60px; font-size: 2.4rem; }
  .guest-upload { min-height: 760px; }
  .guest-upload h2 { font-size: clamp(3.5rem, 17vw, 5.8rem); }
}

@media (max-width: 430px) {
  .gallery-featured { padding: 0 1.7rem; }
  .gallery-featured-nav { width: 35px; height: 52px; }
  .gallery-featured figcaption { align-items: flex-start; flex-direction: column; gap: 0.25rem; }
  .file-picker { min-height: 160px; }
}

/* v3: Maria & Farhad story, guest message, and international guest details */
.message-section {
  grid-template-columns: minmax(210px, 0.48fr) minmax(0, 1.52fr);
  min-height: 78vh;
}
.message-copy { max-width: 880px; }
.message-copy p {
  max-width: 790px;
  margin-top: 1.35rem;
  font-size: clamp(1.18rem, 1.7vw, 1.52rem);
  line-height: 1.72;
}
.message-copy p:first-of-type { margin-top: 2rem; }
.message-copy .signature { margin-top: 2rem; }

.world-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(178, 148, 99, 0.09), transparent 32rem),
    var(--ivory);
}
.world-section::before,
.world-section::after {
  content: "";
  position: absolute;
  width: 28rem;
  height: 28rem;
  border: 1px solid rgba(135,145,129,0.15);
  border-radius: 50%;
  pointer-events: none;
}
.world-section::before { left: -16rem; top: -16rem; }
.world-section::after { right: -17rem; bottom: -17rem; }
.world-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  width: min(100%, 1320px);
  margin: 0 auto;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.world-card {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 225px;
  padding: 2rem 1rem;
  text-align: center;
  background: rgba(252,250,245,0.9);
}
.world-card .flag {
  display: block;
  margin-bottom: 1rem;
  font-size: clamp(2.7rem, 4vw, 4rem);
  line-height: 1;
  filter: saturate(0.82);
}
.world-card strong {
  color: var(--olive);
  font-family: var(--serif);
  font-size: clamp(1.65rem, 2.4vw, 2.45rem);
  font-weight: 400;
  line-height: 1;
}
.world-card small {
  display: block;
  margin-top: 0.7rem;
  color: var(--gold-deep);
  text-transform: uppercase;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}
.world-card.virtual { background: rgba(223,207,182,0.24); }

.story-filled { min-height: auto; }
.story-filled .story-copy {
  width: min(100%, 960px);
  max-width: 960px;
}
.story-filled .story-copy h2 { max-width: 900px; margin-inline: auto; }
.story-prose {
  max-width: 790px;
  margin: 3rem auto 0;
  text-align: left;
}
.story-prose p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.18rem, 1.7vw, 1.48rem);
  line-height: 1.72;
}
.story-prose .drop-cap::first-letter { font-size: 5.5rem; }
.story-prose .story-pull {
  max-width: 700px;
  margin: clamp(2.5rem, 5vw, 4.4rem) auto;
  padding: clamp(1.4rem, 3vw, 2.4rem) clamp(1.2rem, 4vw, 3rem);
  color: var(--olive);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  text-align: center;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-style: italic;
  line-height: 1.35;
}

.signature-quote blockquote { max-width: 1060px; }
.signature-quote blockquote p { margin-bottom: 1.25rem; }
.signature-quote cite { display: block; }
.quote-story {
  display: block;
  max-width: 650px;
  margin: 2rem auto 0;
  color: rgba(255,253,248,0.72);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-style: italic;
  line-height: 1.6;
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 980px) {
  .world-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .world-card:nth-child(4), .world-card:nth-child(5) { min-height: 190px; }
}

@media (max-width: 760px) {
  .message-section { grid-template-columns: 1fr; min-height: auto; }
  .message-copy { text-align: left; }
  .message-copy .eyebrow, .message-copy h2, .message-copy .signature { text-align: center; }
  .world-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .world-card { min-height: 175px; }
  .world-card:last-child { grid-column: 1 / -1; }
  .story-prose { margin-top: 2.4rem; }
  .story-filled .story-copy h2 { font-size: clamp(3.1rem, 15vw, 5.3rem); }
  .story-prose p { font-size: 1.18rem; }
}

@media (max-width: 430px) {
  .world-card { min-height: 155px; padding: 1.4rem 0.8rem; }
  .world-card .flag { font-size: 2.8rem; }
  .message-copy p, .story-prose p { font-size: 1.12rem; }
}

/* Final bilingual + split gallery refinements */
.header-actions {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.language-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.language-picker select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 116px;
  padding: 0.55rem 1.8rem 0.55rem 0.75rem;
  color: inherit;
  background: color-mix(in srgb, currentColor 7%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  border-radius: 999px;
  font: 500 0.62rem/1 var(--sans);
  letter-spacing: 0.08em;
  cursor: pointer;
  outline: none;
}
.language-picker::after {
  content: "⌄";
  position: absolute;
  right: 0.7rem;
  top: 50%;
  pointer-events: none;
  transform: translateY(-55%);
  font-size: 0.8rem;
}
.site-header.scrolled .language-picker select,
.site-header.menu-active .language-picker select {
  background: rgba(255, 255, 255, 0.42);
}
.world-card { min-height: 132px; }
.world-card .flag {
  display: block;
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1;
  filter: saturate(0.88);
}
.world-card strong { margin-top: 0.8rem; }
.gallery-divider {
  display: grid;
  grid-template-columns: minmax(40px, 1fr) auto minmax(40px, 1fr);
  align-items: center;
  gap: 1rem;
  width: min(680px, 84%);
  margin: clamp(4rem, 8vw, 7rem) auto;
  color: var(--gold);
}
.gallery-divider span { height: 1px; background: currentColor; opacity: 0.45; }
.gallery-divider i { font-style: normal; font-size: 0.8rem; }
.guest-gallery { scroll-margin-top: 92px; }
.section-heading.compact { margin-bottom: clamp(2rem, 5vw, 3.4rem); }
.section-heading.compact h3 {
  margin: 0.35rem 0 0.75rem;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  font-weight: 400;
  line-height: 0.95;
}
.guest-gallery-grid:empty { display: none; }
.guest-gallery .gallery-status { margin-top: 1.5rem; }

@media (max-width: 1180px) and (min-width: 761px) {
  .site-nav { gap: 1rem; }
  .site-nav a { font-size: 0.58rem; letter-spacing: 0.14em; }
  .language-picker select { min-width: 104px; padding-left: 0.6rem; font-size: 0.56rem; }
}

@media (max-width: 760px) {
  .site-header { padding-left: 1.2rem; padding-right: 0.8rem; }
  .header-actions { gap: 0.2rem; }
  .language-picker select {
    width: auto;
    min-width: 92px;
    max-width: 116px;
    padding: 0.48rem 1.5rem 0.48rem 0.6rem;
    font-size: 0.55rem;
    letter-spacing: 0.04em;
  }
  .language-picker::after { right: 0.55rem; }
  .site-header.menu-active .language-picker { z-index: 4; }
  .site-nav { padding-top: calc(100px + env(safe-area-inset-top)); gap: 1.25rem; }
  .site-nav a { font-size: clamp(1.75rem, 8vw, 2.2rem); }
  .world-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .world-card:last-child { grid-column: 1 / -1; width: min(100%, 260px); justify-self: center; }
  .gallery-divider { margin: 3.5rem auto; }
}


/* === Formatting and layout fixes for invites / zoom / world section === */
.invites {
  background:
    radial-gradient(circle at 50% 0%, rgba(178, 148, 99, 0.08), transparent 28rem),
    #f3ecdf;
}
.invites-heading {
  max-width: 780px;
  margin-bottom: clamp(2.3rem, 5vw, 4rem);
}
.invites-heading h2 {
  font-size: clamp(2.8rem, 5vw, 4.9rem);
  line-height: 1.02;
}
.invites-heading p {
  max-width: 720px;
}
.invite-downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  width: min(100%, 1180px);
  margin: 0 auto;
}
.invite-card {
  position: relative;
  display: grid;
  gap: 0.9rem;
  min-height: 280px;
  padding: clamp(1.6rem, 2.8vw, 2.3rem);
  background: rgba(255,253,248,0.94);
  border: 1px solid rgba(191,177,155,0.68);
  box-shadow: 0 16px 40px rgba(36, 39, 34, 0.05);
}
.invite-language-mark {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(223,207,182,0.34);
  border: 1px solid rgba(183,154,104,0.55);
  color: var(--gold-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.invite-card h3 {
  margin: 0;
  color: var(--olive);
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 400;
  line-height: 1.02;
}
.invite-card p {
  margin: 0;
  color: var(--muted);
  max-width: 42ch;
}
.invite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin-top: auto;
}
.secondary-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.secondary-button {
  min-width: 170px;
  padding: 1.02rem 1.35rem;
  color: var(--olive);
  background: transparent;
  border: 1px solid rgba(61,70,61,0.25);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.secondary-button:hover,
.secondary-button:focus-visible {
  background: rgba(255,253,248,0.7);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.zoom-panel {
  width: min(100%, 1180px);
  margin: clamp(1.6rem, 3vw, 2rem) auto 0;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  background: rgba(255,253,248,0.78);
  border: 1px solid rgba(191,177,155,0.68);
  box-shadow: 0 18px 44px rgba(36, 39, 34, 0.05);
}
.zoom-intro {
  max-width: 650px;
  margin-bottom: 1.5rem;
}
.zoom-intro h3 {
  margin: 0.45rem 0 0;
  color: var(--olive);
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  font-weight: 400;
  line-height: 1.02;
}
.zoom-intro p {
  margin-top: 0.9rem;
  color: var(--muted);
}
.zoom-links {
  display: grid;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.zoom-links article {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1.35rem 1.2rem;
  background: rgba(255,253,248,0.95);
}
.zoom-links article > span {
  color: var(--gold-deep);
  font-family: var(--serif);
  font-size: 1.15rem;
}
.zoom-links strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--olive);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
}
.zoom-links small {
  display: block;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
}
.zoom-links a {
  justify-self: end;
  white-space: nowrap;
  padding: 0.95rem 1.15rem;
  color: var(--white);
  background: var(--olive);
  border: 1px solid var(--olive);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}
.zoom-links a:hover,
.zoom-links a:focus-visible {
  color: var(--olive);
  background: transparent;
}
.flag-pill {
  display: grid !important;
  place-items: center;
  width: clamp(4rem, 7vw, 5.2rem);
  height: clamp(4rem, 7vw, 5.2rem);
  margin-inline: auto;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: rgba(255,253,248,0.92);
  border: 1px solid rgba(183,154,104,0.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 10px 26px rgba(36,39,34,0.05);
  font-size: clamp(2.2rem, 3.5vw, 3rem) !important;
  filter: none !important;
}
.world-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(250,247,240,0.9));
}
.world-card strong {
  font-size: clamp(1.4rem, 2vw, 2.15rem);
}
.world-card small {
  margin-top: 0.8rem;
  color: rgba(86,94,83,0.8);
  letter-spacing: 0.14em;
}
@media (max-width: 1000px) {
  .invite-downloads { grid-template-columns: 1fr; }
  .zoom-links article { grid-template-columns: 48px minmax(0, 1fr); }
  .zoom-links a { grid-column: 2; justify-self: start; margin-top: 0.25rem; }
}
@media (max-width: 760px) {
  .invites-heading h2 { font-size: clamp(2.45rem, 10vw, 3.5rem); }
  .invite-card { min-height: auto; }
  .invite-actions { flex-direction: column; align-items: stretch; }
  .secondary-button, .primary-button { width: 100%; min-width: 0; }
  .zoom-panel { padding: 1.2rem; }
  .zoom-links article { grid-template-columns: 1fr; gap: 0.65rem; }
  .zoom-links article > span { display: none; }
  .zoom-links a { grid-column: auto; width: 100%; justify-self: stretch; text-align: center; }
}


/* === Mobile polish for header / invites / zoom === */
#invites,
#gallery,
#guestGallery,
#share,
#details,
#story,
#message,
#world {
  scroll-margin-top: 104px;
}

@media (max-width: 760px) {
  .skip-link { left: 0.75rem; right: 0.75rem; width: auto; text-align: center; }

  .site-header,
  .site-header.scrolled,
  .site-header.menu-active,
  .site-header.menu-active.scrolled {
    height: 74px;
    color: var(--olive);
    background: rgba(247, 242, 233, 0.98);
    border-color: rgba(137, 109, 66, 0.16);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .header-mark { font-size: 2.05rem; }
  .header-mark em { margin-inline: 0.24rem; }

  .header-actions {
    margin-left: auto;
    gap: 0.45rem;
  }

  .language-picker { flex: 0 1 auto; }
  .language-picker select {
    min-width: 86px;
    max-width: 102px;
    padding: 0.42rem 1.4rem 0.42rem 0.58rem;
    font-size: 0.52rem;
    letter-spacing: 0.03em;
    background: rgba(255,255,255,0.82);
    border-color: rgba(61,70,61,0.18);
  }

  .site-nav {
    padding-top: calc(110px + env(safe-area-inset-top));
    gap: 1.15rem;
  }

  .invites { padding-top: 1rem; }
  .invites-heading {
    margin-bottom: 1.5rem;
    text-align: left;
  }
  .invites-heading h2 {
    font-size: clamp(2.2rem, 11vw, 3.15rem);
    line-height: 0.98;
  }
  .invites-heading p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .invite-downloads { gap: 1rem; }
  .invite-card {
    gap: 0.75rem;
    padding: 1.15rem;
  }
  .invite-card h3 {
    font-size: clamp(1.75rem, 7vw, 2.3rem);
  }
  .invite-card p {
    font-size: 0.98rem;
    line-height: 1.65;
  }
  .invite-actions { gap: 0.75rem; }

  .zoom-panel {
    margin-top: 1rem;
    padding: 1rem;
  }
  .zoom-intro h3 {
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1.02;
  }
  .zoom-intro p {
    font-size: 0.98rem;
    line-height: 1.7;
  }
  .zoom-links {
    border-width: 1px;
  }
  .zoom-links article {
    gap: 0.8rem;
    padding: 1.1rem 1rem 1rem;
  }
  .zoom-links strong {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
    line-height: 1.04;
  }
  .zoom-links small {
    font-size: 0.98rem;
    line-height: 1.62;
  }
  .zoom-links small + small {
    margin-top: 0.35rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(137, 109, 66, 0.14);
  }
  .zoom-links a {
    margin-top: 0.25rem;
    padding: 1rem 1.1rem;
  }
}
