/* ==========================================================================
   Reem & Mohamed — Engagement
   Theme: soft ivory drapery, antique gold, champagne lace, warm mocha
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --ivory:        #fbf8f3;
  --ivory-deep:   #f3ece2;
  --cream:        #ece0d0;
  --champagne:    #e6d3b3;
  --sand:         #d9c4a3;
  --gold:         #b28a4b;
  --gold-light:   #d4b177;
  --gold-deep:    #8d6a33;
  --mocha:        #6b5c4d;
  --espresso:     #3b322a;
  --ink:          #2a241e;
  --muted:        #8a7d6d;
  --white:        #ffffff;

  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-script:  "Great Vibes", "Cormorant Garamond", cursive;
  --font-body:    "Jost", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1180px;
  --radius: 4px;
  --shadow-sm: 0 2px 10px rgba(59, 50, 42, .07);
  --shadow-md: 0 14px 40px -18px rgba(59, 50, 42, .32);
  --shadow-lg: 0 30px 70px -30px rgba(59, 50, 42, .45);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --nav-h: 76px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: .01em;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--champagne); color: var(--espresso); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 300;
  padding: .7rem 1.2rem;
  background: var(--espresso);
  color: var(--ivory);
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  transition: top .3s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- Typography helpers ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.15;
  margin: 0;
  letter-spacing: .015em;
}

.script {
  font-family: var(--font-script);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
}

.eyebrow {
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 1.1rem;
}

.eyebrow--light { color: var(--gold-light); }

.lede {
  font-size: 1.06rem;
  color: var(--mocha);
  max-width: 62ch;
}

.text-center { text-align: center; }
.text-center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2.6rem, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; }
.section--tint { background: var(--ivory-deep); }
.section--cream { background: linear-gradient(180deg, var(--ivory) 0%, var(--cream) 100%); }
.section--dark { background: var(--espresso); color: var(--ivory); }
.section--dark .lede { color: #d8cdbe; }

/* The closing note sits directly above the footer, which has its own generous
   top padding — trim the shared bottom padding so the two don't stack up. */
.section--closing { padding-bottom: clamp(1.6rem, 3vw, 2.6rem); }
/* two stacked lines read as one thought */
.section--closing .lede + .lede { margin-top: .45rem; }

/* ---------- Ornaments ---------- */
.btn {
  display: inline-block;
  padding: 1rem 2.4rem;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-deep);
  font-size: .7rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ivory);
}
.btn:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }

.orn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin: 1.6rem auto;
  color: var(--gold);
}
.orn::before, .orn::after {
  content: "";
  height: 1px;
  width: min(80px, 18vw);
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}
.orn__diamond {
  width: 7px; height: 7px;
  transform: rotate(45deg);
  background: var(--gold);
  flex: none;
}

.rule {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sand), transparent);
  margin: 0;
}

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(251, 248, 243, .72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(178, 138, 75, .16);
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-scrolled { background: rgba(251, 248, 243, .95); box-shadow: var(--shadow-sm); }

.site-header__inner {
  width: min(100% - 2.2rem, var(--maxw));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; }
.brand__mark {
  font-family: var(--font-script);
  font-size: 1.85rem;
  line-height: 1;
  color: var(--gold-deep);
  padding-bottom: .18rem;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--espresso);
}
.brand__sub {
  font-size: .58rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { display: flex; align-items: center; gap: clamp(.9rem, 2.4vw, 2.1rem); }
.nav a {
  position: relative;
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mocha);
  padding: .5rem 0;
  transition: color .3s var(--ease);
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .12rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .35s var(--ease);
}
.nav a:hover { color: var(--gold-deep); }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--espresso); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(178, 138, 75, .4);
  border-radius: 999px;
  padding: .45rem .95rem;
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  /* The photograph is landscape with the couple centred and the sweet table
     filling the lower half. A centred card would cover their faces, so the
     invitation is anchored to the bottom and the upper area is left clear. */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  overflow: hidden;
  padding: calc(var(--nav-h) + 2.4rem) clamp(1.4rem, 5vw, 3.4rem) clamp(3.2rem, 7vh, 5rem);
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  /* keep the sweet table rich without competing with the invitation card */
  filter: saturate(.97) contrast(1.03);
  animation: heroPan 26s var(--ease) forwards;
}
@keyframes heroPan {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(43,36,30,.30) 0%, rgba(43,36,30,.06) 30%, rgba(38,31,26,.30) 62%, rgba(30,25,20,.72) 100%);
}

.hero__card {
  width: min(100%, 520px);
  padding: clamp(1.5rem, 3.4vw, 2.3rem) clamp(1.4rem, 4vw, 2.4rem);
  background: rgba(251, 248, 243, .94);
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  border: 1px solid rgba(255, 255, 255, .85);
  outline: 1px solid rgba(178, 138, 75, .40);
  outline-offset: 6px;
  box-shadow: var(--shadow-lg);
}
.hero__names {
  font-size: clamp(2.3rem, 5.2vw, 3.5rem);
  color: var(--espresso);
  line-height: 1.08;
}
.hero__amp {
  font-family: var(--font-script);
  color: var(--gold);
  font-size: .62em;
  padding: 0 .1em;
}
.hero__card .eyebrow { margin-bottom: .7rem; }
.hero__card .orn { justify-content: flex-start; margin: .85rem 0; }
.hero__tag {
  font-family: var(--font-display);
  font-size: clamp(.78rem, 1.5vw, .95rem);
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--mocha);
  margin: .7rem 0 0;
  padding-left: .34em;
}
.hero__date {
  margin: .55rem 0 0;
  font-size: .7rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding-left: .24em;
}

.scroll-cue {
  position: absolute;
  bottom: 1.7rem;
  /* the invitation card occupies the bottom-left, so the cue sits right */
  right: clamp(1.4rem, 5vw, 3.4rem);
  font-size: .58rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(251, 248, 243, .9);
  text-shadow: 0 1px 8px rgba(30, 25, 20, .7);
  display: grid;
  justify-items: center;
  gap: .5rem;
}
.scroll-cue span:last-child {
  width: 1px; height: 34px;
  background: linear-gradient(180deg, rgba(251,248,243,.9), transparent);
  animation: cueDrop 2.4s var(--ease) infinite;
}
@keyframes cueDrop {
  0%   { transform: scaleY(.2); transform-origin: top; opacity: 0; }
  45%  { transform: scaleY(1);  transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1);  transform-origin: top; opacity: 0; }
}

/* ==========================================================================
   Home sections
   ========================================================================== */
.invite {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.invite__title { font-size: clamp(2rem, 5vw, 3.1rem); color: var(--espresso); }
.invite p + p { margin-top: 1.1rem; }

.invite__figure { position: relative; }
.invite__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}
.invite__figure::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--sand);
  z-index: -1;
}

/* Couple */
.couple {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.6rem, 5vw, 3.4rem);
  margin-top: clamp(2.4rem, 6vw, 4rem);
}
.couple__item { position: relative; margin: 0; }
.couple__item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  /* the solo portraits are 2:3, so bias slightly upward to hold both faces */
  object-position: center 38%;
  box-shadow: var(--shadow-md);
  transition: transform .8s var(--ease);
}
.couple__item:hover img { transform: scale(1.02); }

.couple__item figcaption { padding-top: 1.3rem; text-align: center; }
.couple__role {
  font-size: .64rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.couple__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  color: var(--espresso);
  margin: .3rem 0 .5rem;
}
.couple__bio { font-size: .95rem; color: var(--mocha); margin: 0 auto; max-width: 34ch; }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery {
  columns: 3;
  column-gap: 1rem;
  margin-top: clamp(2rem, 5vw, 3.2rem);
}
.gallery__item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  background: var(--espresso);
  cursor: zoom-in;
  break-inside: avoid;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.gallery__item img {
  width: 100%;
  transition: transform .9s var(--ease), opacity .5s var(--ease);
}
/* Soft darkening across the lower half, so photos sit calmly on the ivory page.
   No text sits on top of it. */
.gallery__item::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
              rgba(43, 36, 30, 0) 42%,
              rgba(43, 36, 30, .18) 72%,
              rgba(43, 36, 30, .42) 100%);
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Wide feature tile */
.gallery__item--wide { break-inside: avoid; }

/* ==========================================================================
   Cake / showcase split
   ========================================================================== */
.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
.showcase--flip .showcase__media { order: 2; }
.showcase__media { position: relative; }
.showcase__media img {
  width: 100%;
  box-shadow: var(--shadow-md);
}
.showcase__media--tall img { aspect-ratio: 4 / 5; object-fit: cover; }
.showcase__title { font-size: clamp(1.9rem, 4.4vw, 2.9rem); color: var(--espresso); }
.showcase ul { list-style: none; padding: 0; margin: 1.8rem 0 0; }
.showcase li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: .85rem;
  color: var(--mocha);
  font-size: .97rem;
}
.showcase li::before {
  content: "";
  position: absolute;
  left: .15rem; top: .72em;
  width: 6px; height: 6px;
  transform: rotate(45deg);
  background: var(--gold-light);
}

/* Full-bleed photographic band */
.band {
  position: relative;
  margin: 0;
  height: clamp(300px, 52vw, 520px);
  overflow: hidden;
  isolation: isolate;
}
.band img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
.band::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(43,36,30,.62) 0%, rgba(43,36,30,.12) 38%, rgba(43,36,30,.55) 100%);
}
.band__figcap {
  position: absolute;
  inset: auto 0 clamp(1.4rem, 5vw, 3rem) 0;
  z-index: 2;
  text-align: center;
  color: var(--ivory);
  padding-inline: 1.4rem;
}
.band__figcap .script {
  display: block;
  font-size: clamp(1.7rem, 5vw, 2.9rem);
  color: var(--gold-light);
  margin-bottom: .3rem;
}
.band__figcap span:last-child {
  font-size: .66rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: rgba(251, 248, 243, .88);
}

/* Detail strip */
.strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(178, 138, 75, .25);
  border: 1px solid rgba(178, 138, 75, .25);
  margin-top: clamp(2.4rem, 5vw, 3.4rem);
}
.strip__cell {
  background: var(--ivory);
  padding: 1.7rem 1.2rem;
  text-align: center;
}
.strip__k {
  font-size: .6rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .5rem;
}
.strip__v {
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--espresso);
  margin: 0;
}

/* ==========================================================================
   Closing / family links
   ========================================================================== */
.family-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.2rem, 4vw, 2.4rem);
  margin-top: clamp(2rem, 5vw, 3.2rem);
}
.family-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(280px, 40vw, 380px);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  overflow: hidden;
  color: var(--ivory);
  background: var(--espresso);
  isolation: isolate;
  transition: transform .6s var(--ease);
}
.family-card--photo img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  /* group shots are wide and short here, so bias to the top to keep every head */
  object-position: center 12%;
  transition: transform 1.1s var(--ease);
  filter: saturate(.9);
}
.family-card--photo::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(43,36,30,.05) 0%, rgba(43,36,30,.72) 100%);
}
.family-card--plain {
  background: linear-gradient(155deg, var(--cream) 0%, var(--sand) 100%);
  color: var(--espresso);
}
.family-card:hover { transform: translateY(-5px); }
.family-card--photo:hover img { transform: scale(1.06); }

.family-card__k {
  font-size: .62rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  margin: 0 0 .7rem;
  opacity: .95;
}
.family-card__t {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  margin: 0 0 .6rem;
}
.family-card__d { font-size: .92rem; margin: 0 0 1.2rem; max-width: 40ch; opacity: .95; }
.family-card__c {
  font-size: .68rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.family-card__c::after {
  content: "";
  width: 34px; height: 1px;
  background: currentColor;
  transition: width .45s var(--ease);
}
.family-card:hover .family-card__c::after { width: 58px; }

/* ==========================================================================
   Inner page hero (family pages)
   ========================================================================== */
.page-hero {
  position: relative;
  min-height: clamp(360px, 62svh, 620px);
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 3.4rem) 0 3.4rem;
  isolation: isolate;
}
/* Landscape family groups: rather than crop heads off in a short band, let the
   hero take the photograph's own 3:2 shape on wider screens. */
@media (min-width: 761px) {
  .page-hero {
    aspect-ratio: 3 / 2;
    min-height: 0;
    padding: 0 0 1rem;
  }
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.page-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(43,36,30,.62) 0%, rgba(43,36,30,.44) 45%, rgba(43,36,30,.74) 100%);
}
.page-hero__inner { width: min(100% - 2.4rem, 760px); color: var(--ivory); }
.page-hero__title {
  font-size: clamp(2.3rem, 7vw, 4rem);
  color: var(--ivory);
}
.page-hero__sub {
  margin: 1.3rem auto 0;
  max-width: 52ch;
  color: rgba(251, 248, 243, .9);
  font-size: 1rem;
}

/* Family page: placeholder slots */
.slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 1.8rem);
  margin-top: clamp(2rem, 5vw, 3rem);
}
.slot {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.4rem;
  background: linear-gradient(160deg, #fff 0%, var(--ivory-deep) 100%);
  border: 1px dashed rgba(178, 138, 75, .55);
  color: var(--muted);
}
.slot__inner { display: grid; gap: .55rem; justify-items: center; }
.slot__icon {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  color: var(--gold-deep);
  font-size: 1.1rem;
  line-height: 1;
}
.slot__label {
  font-size: .62rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.slot__hint { font-size: .8rem; line-height: 1.5; max-width: 24ch; }

.notice {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  background: var(--white);
  border-left: 3px solid var(--gold);
  box-shadow: var(--shadow-sm);
}
.notice h3 {
  font-size: 1.35rem;
  color: var(--espresso);
  margin-bottom: .6rem;
}
.notice p { margin: 0 0 .7rem; font-size: .95rem; color: var(--mocha); }
.notice code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .84em;
  background: var(--ivory-deep);
  border: 1px solid rgba(178,138,75,.25);
  padding: .1rem .4rem;
}
.notice ul { margin: .4rem 0 .8rem; padding-left: 1.15rem; color: var(--mocha); font-size: .95rem; }
.notice li { margin-bottom: .35rem; }
.notice :last-child { margin-bottom: 0; }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  background: rgba(26, 21, 17, .94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
  padding: clamp(1rem, 4vw, 2.6rem);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage {
  display: grid;
  place-items: center;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
}
.lightbox__img {
  max-width: min(96vw, 1200px);
  max-height: 78svh;
  width: auto;
  object-fit: contain;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8);
  border: 1px solid rgba(212, 177, 119, .35);
}
.lightbox__bar {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 4vw, 2rem);
  color: var(--ivory);
  padding-top: 1.1rem;
}
.lightbox__count {
  font-size: .68rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-light);
  min-width: 5.5rem;
  text-align: center;
}
.lb-btn {
  background: none;
  border: 1px solid rgba(212, 177, 119, .5);
  color: var(--ivory);
  width: 46px; height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1rem;
  line-height: 1;
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.lb-btn:hover { background: rgba(212, 177, 119, .18); border-color: var(--gold-light); }
.lb-btn:active { transform: scale(.94); }
.lb-btn--close { position: absolute; top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lb-btn:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--espresso);
  color: #cfc3b4;
  text-align: center;
  /* the closing section above is deliberately trimmed, so keep the top modest */
  padding: clamp(2.2rem, 5vw, 3.4rem) 0 2.6rem;
}
.site-footer .script {
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--gold-light);
  display: block;
  margin-bottom: .5rem;
}
.site-footer__meta {
  font-size: .68rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #9d9184;
  margin-top: 1.6rem;
}
.site-footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-top: 1.6rem;
}
.site-footer nav a {
  font-size: .68rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #cfc3b4;
  transition: color .3s var(--ease);
}
.site-footer nav a:hover { color: var(--gold-light); }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

/* Without JavaScript nothing would ever reveal, so show everything. */
.no-js .reveal { opacity: 1; transform: none; transition: none; }
.reveal--d1 { transition-delay: .1s; }
.reveal--d2 { transition-delay: .2s; }
.reveal--d3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__media img { animation: none; }
  .scroll-cue span:last-child { animation: none; }
  .gallery__item img,
  .family-card img,
  .couple__item img { transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .gallery { columns: 2; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --nav-h: 66px; }

  .nav-toggle { display: inline-block; }
  .nav {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem 1.3rem 1.4rem;
    background: rgba(251, 248, 243, .98);
    border-bottom: 1px solid rgba(178, 138, 75, .2);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a {
    padding: 1rem .2rem;
    border-bottom: 1px solid rgba(178, 138, 75, .14);
    font-size: .78rem;
  }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }

  .invite,
  .showcase,
  .couple,
  .family-links { grid-template-columns: minmax(0, 1fr); }
  .showcase--flip .showcase__media { order: 0; }
  .invite__figure::after { inset: 10px -10px -10px 10px; }
  .couple__item img { aspect-ratio: 4 / 5; }
  .hero__card { outline-offset: 4px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .gallery { columns: 1; }
  .slots { grid-template-columns: minmax(0, 1fr); }
  .brand__name { font-size: .9rem; letter-spacing: .16em; }
  .brand__sub { display: none; }
  .strip { grid-template-columns: minmax(0, 1fr); }
  .scroll-cue { display: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .lightbox, .scroll-cue { display: none !important; }
  body { background: #fff; }
  .reveal { opacity: 1; transform: none; }
}
