/* ==========================================================================
   Jason Paez — Wedding Chapter Styles
   version 01-aman-apple  |  wedding.css
   ========================================================================== */

/* ── Gate Screen ──────────────────────────────────────────────────────────── */
.gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0A0C12;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
}

.gate__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.gate__bg picture,
.gate__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.35;
}

.gate__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,12,18,0.85) 0%, rgba(10,12,18,0.45) 60%, rgba(10,12,18,0.65) 100%);
}

.gate__inner {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem;
  max-width: 480px;
  width: 100%;
}

.gate__monogram {
  width: clamp(60px, 12vw, 96px);
  height: auto;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.gate__names {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--text, #F4F1EA);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.gate__year {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold, #C8A872);
  margin-bottom: 3rem;
  display: block;
}

.gate__rule {
  width: 40px;
  height: 1px;
  background: var(--gold, #C8A872);
  margin: 0 auto 2.5rem;
}

.gate__prompt {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted, #9A968C);
  margin-bottom: 1rem;
  display: block;
}

.gate__form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
}

.gate__input {
  width: 100%;
  max-width: 300px;
  background: rgba(244,241,234,0.06);
  border: 1px solid rgba(200,168,114,0.3);
  color: var(--text, #F4F1EA);
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  padding: 0.9rem 1.2rem;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
}

.gate__input::placeholder {
  color: rgba(154,150,140,0.6);
  letter-spacing: 0.14em;
}

.gate__input:focus {
  outline: none;
  border-color: var(--gold, #C8A872);
  background: rgba(244,241,234,0.09);
}

.gate__btn {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg, #0E0E0F);
  background: var(--gold, #C8A872);
  border: none;
  padding: 0.9rem 2.2rem;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.gate__btn:hover { opacity: 0.88; }
.gate__btn:focus-visible {
  outline: 2px solid var(--gold, #C8A872);
  outline-offset: 3px;
}

.gate__error {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #c47a7a;
  min-height: 1.2em;
  margin-top: 0.2rem;
}

/* ── Wedding Chapter Body ─────────────────────────────────────────────────── */
.wedding-chapter {
  display: none;
}

.wedding-chapter.unlocked {
  display: block;
}

/* Film grain overlay */
.wedding-chapter::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  opacity: 0.8;
}

/* ── Wedding Hero ─────────────────────────────────────────────────────────── */
.w-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.w-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.w-hero__bg picture,
.w-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ken Burns effect */
@media (prefers-reduced-motion: no-preference) {
  .w-hero__bg img {
    animation: kenburns 22s ease-in-out infinite alternate;
    transform-origin: center;
  }
}

@keyframes kenburns {
  from { transform: scale(1.12) translateY(-1%); }
  to   { transform: scale(1.03) translateY(0%); }
}

.w-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(10,12,18,0.3) 0%, rgba(10,12,18,0.7) 100%),
              linear-gradient(to top, rgba(10,12,18,0.8) 0%, transparent 50%);
}

.w-hero__content {
  position: relative;
  z-index: 10;
  padding: 2rem;
}

.w-hero__hashtag {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold, #C8A872);
  margin-bottom: 1.5rem;
  display: block;
}

.w-hero__names {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(3.5rem, 10vw, 7.5rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--text, #F4F1EA);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.w-hero__rule {
  width: 48px;
  height: 1px;
  background: var(--gold, #C8A872);
  margin: 0 auto 1.5rem;
}

.w-hero__meta {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted, #9A968C);
}

/* ── Chapter Nav ──────────────────────────────────────────────────────────── */
.w-nav {
  position: sticky;
  top: 0;
  z-index: 800;
  background: rgba(10,12,18,0.82);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(200,168,114,0.18);
  padding: 0.9rem 0;
}

.w-nav__inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.w-nav__home {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted, #9A968C);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.w-nav__home:hover { color: var(--gold, #C8A872); }
.w-nav__home:focus-visible { outline: 1px solid var(--gold, #C8A872); outline-offset: 2px; }

.w-nav__links {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  flex-wrap: wrap;
}

.w-nav__links a {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted, #9A968C);
  transition: color 0.2s;
}
.w-nav__links a:hover { color: var(--gold, #C8A872); }
.w-nav__links a:focus-visible { outline: 1px solid var(--gold, #C8A872); outline-offset: 2px; }

/* ── Wedding Sections ─────────────────────────────────────────────────────── */
.w-section {
  padding-block: clamp(4.5rem, 9vw, 8rem);
  position: relative;
}

.w-section--dark { background: #0A0C12; }
.w-section--mid  { background: #10111A; }
.w-section--alt  { background: #14151E; }

.w-container {
  max-width: min(900px, 100% - clamp(2rem, 8vw, 8rem));
  margin-inline: auto;
}

.w-container--wide {
  max-width: min(1200px, 100% - clamp(2rem, 6vw, 6rem));
  margin-inline: auto;
}

.w-label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold, #C8A872);
  display: block;
  margin-bottom: 1.2rem;
}

.w-heading {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--text, #F4F1EA);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.w-rule {
  width: 36px;
  height: 1px;
  background: var(--gold, #C8A872);
  margin-bottom: 2rem;
}

.w-prose {
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  color: var(--muted, #9A968C);
  line-height: 1.85;
  margin-bottom: 1.4rem;
}

.w-prose p { margin-bottom: 1.4rem; }
.w-prose p:last-child { margin-bottom: 0; }

/* ── Proposal Section ─────────────────────────────────────────────────────── */
.proposal__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}

@media (min-width: 768px) {
  .proposal__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.proposal__image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-card, #1C1C21);
}

.proposal__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proposal__quotes {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.proposal__quote {
  border-left: 1px solid rgba(200,168,114,0.4);
  padding: 1rem 0 1rem 1.5rem;
}

.proposal__quote p {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-style: italic;
  font-weight: 300;
  color: var(--text, #F4F1EA);
  line-height: 1.6;
}

/* ── Vows — Emotional Centerpiece ─────────────────────────────────────────── */
.vows {
  max-width: 800px;
  margin-inline: auto;
}

.vows__intro {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.vows__grid {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
}

@media (min-width: 900px) {
  .vows__grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
  }
}

.vow-card {
  background: rgba(244,241,234,0.02);
  border: 1px solid rgba(200,168,114,0.15);
  padding: clamp(2rem, 4vw, 3rem);
  position: relative;
}

.vow-card::before {
  content: '';
  position: absolute;
  top: 0; left: 2rem; right: 2rem;
  height: 1px;
  background: var(--gold, #C8A872);
}

.vow-card__who {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold, #C8A872);
  margin-bottom: 1.5rem;
  display: block;
}

.vow-card__text {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  font-weight: 300;
  color: var(--text, #F4F1EA);
  line-height: 1.9;
  white-space: pre-line;
}

.vow-card__sig {
  display: block;
  margin-top: 2rem;
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold, #C8A872);
}

/* ── Ceremony / Program ───────────────────────────────────────────────────── */
.program {
  max-width: 680px;
  margin-inline: auto;
}

.program__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.program__item {
  display: grid;
  grid-template-columns: 3px 1fr;
  gap: 0 1.5rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(200,168,114,0.1);
  align-items: start;
}

.program__item:first-child { padding-top: 0; }

.program__dot {
  width: 3px;
  align-self: stretch;
  background: linear-gradient(to bottom, var(--gold, #C8A872), transparent);
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.program__title {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--text, #F4F1EA);
  font-weight: 300;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.program__sub {
  font-size: 0.72rem;
  color: var(--muted, #9A968C);
  line-height: 1.5;
}

.ceremony__reading {
  max-width: 600px;
  margin: 3rem auto 0;
  padding: 2.5rem;
  background: rgba(200,168,114,0.04);
  border: 1px solid rgba(200,168,114,0.15);
  text-align: center;
}

.ceremony__reading p {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-style: italic;
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  color: var(--text, #F4F1EA);
  line-height: 1.9;
  margin-bottom: 0.8rem;
}

.ceremony__reading .attribution {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold, #C8A872);
  font-style: normal;
}

.blessing {
  max-width: 640px;
  margin: 3rem auto 0;
  padding: 2rem 0;
  border-top: 1px solid rgba(200,168,114,0.2);
}

.blessing p {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  font-style: italic;
  font-weight: 300;
  color: var(--text, #F4F1EA);
  line-height: 1.85;
  text-align: center;
}

/* ── Wedding Party ────────────────────────────────────────────────────────── */
.wedding-party {
  max-width: 680px;
  margin-inline: auto;
}

.party-group {
  margin-bottom: 2.5rem;
}

.party-group__title {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold, #C8A872);
  margin-bottom: 0.8rem;
  display: block;
}

.party-group__names {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text, #F4F1EA);
  font-weight: 300;
  line-height: 1.7;
}

.in-memory {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(200,168,114,0.2);
  text-align: center;
}

.in-memory p {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-style: italic;
  color: var(--text, #F4F1EA);
  line-height: 1.7;
  margin-bottom: 0.8rem;
}

.in-memory .mem-quote {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--muted, #9A968C);
  font-style: normal;
}

/* ── Itinerary / Weekend ──────────────────────────────────────────────────── */
.itinerary {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 720px;
  margin-inline: auto;
}

.itinerary__item {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(200,168,114,0.1);
  display: grid;
  grid-template-columns: clamp(80px,20%,160px) 1fr;
  gap: 0 2rem;
  align-items: start;
}

.itinerary__item:last-child { border-bottom: none; }

.itinerary__date {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold, #C8A872);
  line-height: 1.5;
  padding-top: 0.15rem;
}

.itinerary__event {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text, #F4F1EA);
  font-weight: 300;
  margin-bottom: 0.3rem;
}

.itinerary__detail {
  font-size: 0.82rem;
  color: var(--muted, #9A968C);
  line-height: 1.6;
}

/* ── Menu / Table ─────────────────────────────────────────────────────────── */
.menu {
  max-width: 640px;
  margin-inline: auto;
}

.menu__course {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(200,168,114,0.1);
}

.menu__course:last-child { border-bottom: none; }

.menu__course-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold, #C8A872);
  margin-bottom: 0.5rem;
  display: block;
}

.menu__course-item {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text, #F4F1EA);
  font-weight: 300;
  margin-bottom: 0.2rem;
}

.menu__wine {
  font-size: 0.75rem;
  color: var(--muted, #9A968C);
  font-style: italic;
}

.cocktails {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(200,168,114,0.2);
  max-width: 640px;
  margin-inline: auto;
}

@media (min-width: 600px) {
  .cocktails { grid-template-columns: 1fr 1fr; }
}

.cocktail {
  padding: 1.5rem;
  border: 1px solid rgba(200,168,114,0.15);
}

.cocktail__gender {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold, #C8A872);
  margin-bottom: 0.5rem;
  display: block;
}

.cocktail__name {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text, #F4F1EA);
  margin-bottom: 0.4rem;
}

.cocktail__ingredients {
  font-size: 0.8rem;
  color: var(--muted, #9A968C);
}

/* ── Gallery ──────────────────────────────────────────────────────────────── */
.gallery {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.gallery__grid {
  columns: 2;
  column-gap: 8px;
  row-gap: 8px;
}

@media (min-width: 600px) {
  .gallery__grid { columns: 3; }
}

@media (min-width: 1024px) {
  .gallery__grid { columns: 4; }
}

.gallery__item {
  break-inside: avoid;
  margin-bottom: 8px;
  display: block;
  cursor: pointer;
  overflow: hidden;
  background: #16161A;
  position: relative;
}

.gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.3s;
}

.gallery__item:hover img {
  transform: scale(1.04);
}

.gallery__item:focus-visible {
  outline: 2px solid var(--gold, #C8A872);
  outline-offset: 2px;
}

/* ── Lightbox ─────────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(10, 12, 18, 0.72);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}

.lightbox.open {
  display: flex;
}

.lightbox__img-wrap {
  max-width: min(90vw, 1100px);
  max-height: 88vh;
  position: relative;
}

.lightbox__img-wrap img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  display: block;
}

.lightbox__close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200,168,114,0.1);
  border: 1px solid rgba(200,168,114,0.3);
  color: var(--text, #F4F1EA);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 9001;
}
.lightbox__close:hover { background: rgba(200,168,114,0.2); }
.lightbox__close:focus-visible { outline: 2px solid var(--gold, #C8A872); outline-offset: 2px; }

.lightbox__prev,
.lightbox__next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200,168,114,0.08);
  border: 1px solid rgba(200,168,114,0.2);
  color: var(--text, #F4F1EA);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 9001;
}
.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }
.lightbox__prev:hover,
.lightbox__next:hover { background: rgba(200,168,114,0.18); }
.lightbox__prev:focus-visible,
.lightbox__next:focus-visible { outline: 2px solid var(--gold, #C8A872); outline-offset: 2px; }

/* ── Gratitude / Credits ──────────────────────────────────────────────────── */
.gratitude {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}

.gratitude__list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2rem;
}

.gratitude__item {
  padding: 1.2rem 1.5rem;
  border: 1px solid rgba(200,168,114,0.12);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.gratitude__role {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold, #C8A872);
}

.gratitude__name {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: var(--text, #F4F1EA);
  font-weight: 300;
}

/* ── Music Player ─────────────────────────────────────────────────────────── */
.music-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 700;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(200,168,114,0.1);
  border: 1px solid rgba(200,168,114,0.3);
  color: var(--gold, #C8A872);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.music-btn:hover {
  background: rgba(200,168,114,0.2);
  transform: scale(1.05);
}
.music-btn:focus-visible {
  outline: 2px solid var(--gold, #C8A872);
  outline-offset: 3px;
}

/* ── Scroll-reveal for wedding page ─────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .w-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .w-reveal.visible {
    opacity: 1;
    transform: none;
  }

  .w-reveal--d1 { transition-delay: 0.1s; }
  .w-reveal--d2 { transition-delay: 0.25s; }
  .w-reveal--d3 { transition-delay: 0.4s; }
}

/* ── Scenery / Full-bleed Image ────────────────────────────────────────────── */
.w-fullbleed {
  position: relative;
  overflow: hidden;
}

.w-fullbleed picture,
.w-fullbleed img {
  width: 100%;
  height: clamp(320px, 50vw, 640px);
  object-fit: cover;
  object-position: center;
  display: block;
}

.w-diptych {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.w-diptych picture,
.w-diptych img {
  width: 100%;
  height: clamp(240px, 40vw, 520px);
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   Enhancements (2026-06-16): progress, scroll-spy, hero cue, parallax,
   lightbox caption + transitions, gallery stagger, vow ornament
   ========================================================================== */

/* Anchor offset so the sticky nav never covers a heading */
.w-section, .w-hero { scroll-margin-top: 56px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ── Reading progress ─────────────────────────────────────────────────────── */
.w-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 900;
  background: rgba(200,168,114,0.10);
  pointer-events: none;
}
.w-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-dim, rgba(200,168,114,0.55)), var(--gold, #C8A872));
  transform-origin: left center;
  transition: width 0.12s linear;
}

/* ── Scroll-spy active nav link ───────────────────────────────────────────── */
.w-nav__links a {
  position: relative;
  padding-bottom: 3px;
}
.w-nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold, #C8A872);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease-luxe, cubic-bezier(0.22,0.61,0.36,1));
}
.w-nav__links a.is-active {
  color: var(--text, #F4F1EA);
}
.w-nav__links a.is-active::after { transform: scaleX(1); }

/* ── Hero scroll cue ──────────────────────────────────────────────────────── */
.w-hero__cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1.6rem, 4vh, 2.8rem);
  transform: translateX(-50%);
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted, #9A968C);
  transition: color 0.25s;
}
.w-hero__cue:hover { color: var(--gold, #C8A872); }
.w-hero__cue:focus-visible { outline: 1px solid var(--gold, #C8A872); outline-offset: 6px; }
.w-hero__cue-word {
  font-size: 0.56rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}
.w-hero__cue-arrow {
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom, transparent, var(--gold, #C8A872));
  position: relative;
}
.w-hero__cue-arrow::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  width: 6px; height: 6px;
  border-right: 1px solid var(--gold, #C8A872);
  border-bottom: 1px solid var(--gold, #C8A872);
  transform: translateX(-50%) rotate(45deg);
}
@media (prefers-reduced-motion: no-preference) {
  .w-hero__cue-arrow { animation: cuepulse 2.4s ease-in-out infinite; }
}
@keyframes cuepulse {
  0%, 100% { opacity: 0.45; transform: translateY(0); }
  50%      { opacity: 1;    transform: translateY(5px); }
}

/* ── Gate / chapter cross-fade ────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .gate { transition: opacity 0.7s ease, visibility 0.7s ease; }
  .gate.is-dismissed { opacity: 0; visibility: hidden; }
  .gate__inner > * { animation: gaterise 0.9s var(--ease-reveal, cubic-bezier(0.16,1,0.3,1)) both; }
  .gate__monogram { animation-delay: 0.05s; }
  .gate__names    { animation-delay: 0.14s; }
  .gate__year     { animation-delay: 0.22s; }
  .gate__rule     { animation-delay: 0.30s; }
  .gate__prompt   { animation-delay: 0.38s; }
  .gate__form     { animation-delay: 0.46s; }
  .wedding-chapter.unlocked { animation: chapterfade 0.9s ease both; }
}
@keyframes gaterise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes chapterfade { from { opacity: 0; } to { opacity: 1; } }

/* ── Subtle parallax on full-bleed scenery ────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .w-fullbleed img { will-change: transform; transform: scale(1.08); }
}

/* ── Vow-card ornament ────────────────────────────────────────────────────── */
.vow-card { padding-top: clamp(2.6rem, 4.5vw, 3.6rem); }
.vow-card::after {
  content: '';
  position: absolute;
  top: 1.15rem;
  left: 50%;
  width: 7px; height: 7px;
  background: var(--gold, #C8A872);
  transform: translateX(-50%) rotate(45deg);
}

/* ── Gallery staggered reveal ─────────────────────────────────────────────── */
/* Items hide ONLY once JS arms the grid (.reveal-armed); if JS or IO is
   unavailable the gallery stays fully visible — never a blank wall of photos. */
@media (prefers-reduced-motion: no-preference) {
  .gallery__grid.reveal-armed .gallery__item {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s var(--ease-reveal, cubic-bezier(0.16,1,0.3,1)),
                transform 0.7s var(--ease-reveal, cubic-bezier(0.16,1,0.3,1));
  }
  .gallery__grid.reveal-armed .gallery__item.is-in { opacity: 1; transform: none; }
}

/* ── Lightbox: caption + image cross-fade ─────────────────────────────────── */
.lightbox__img-wrap img { transition: opacity 0.32s ease; }
.lightbox__img-wrap img.is-swapping { opacity: 0; }
.lightbox__cap {
  margin: 1rem auto 0;
  text-align: center;
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-style: italic;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: var(--muted, #9A968C);
  letter-spacing: 0.02em;
  max-width: 60ch;
}
.lightbox__cap:empty { display: none; }
