/* ==========================================================================
   Invitation page (index.html)
   ========================================================================== */

/* ---------- Gold dust layer ---------- */

.dust {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 110; pointer-events: none;
}

/* ---------- 1. Opening doors ---------- */

html.is-gated, html.is-gated body { overflow: hidden; height: 100%; }

.gate {
  position: fixed; inset: 0; z-index: 100;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Warm light waiting behind the doors */
.gate__light {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 85% 66% at 50% 50%, #fffdf6 0%, #fff4d8 16%, rgba(255, 236, 196, 0.9) 36%, rgba(250, 222, 168, 0.55) 60%, rgba(236, 211, 150, 0.18) 100%);
}

.gate__doors {
  position: absolute; inset: 0;
  perspective: 1500px;
  perspective-origin: 50% 50%;
  transform-origin: 50% 50%;
  transition: transform 2.9s cubic-bezier(0.5, 0.04, 0.2, 1) 0.45s;
}

.door {
  position: absolute; top: 0; bottom: 0; width: 50%;
  background:
    radial-gradient(ellipse 130% 38% at 50% 0%, rgba(242, 208, 135, 0.2), transparent 72%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.38), transparent 20%, transparent 80%, rgba(0, 0, 0, 0.38)),
    linear-gradient(180deg, #14296a 0%, #0e1d49 46%, #08112b 100%);
  transition: transform 2.6s cubic-bezier(0.55, 0.06, 0.22, 1) 0.55s;
  will-change: transform;
}
.door--l { left: 0; transform-origin: left center; }
.door--r { right: 0; transform-origin: right center; }

/* Gilded meeting edge */
.door::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(90deg, #7c5c22, #f3e2ae 45%, #c9a55a 70%, #7c5c22);
}
.door--l::after { right: 0; }
.door--r::after { left: 0; }

/* Shade that deepens as each door swings away from the light */
.door::before {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: #03060f; opacity: 0;
  transition: opacity 2.2s ease 0.7s;
  pointer-events: none;
}

.door__inner {
  position: absolute; inset: clamp(12px, 3.4vw, 34px);
  display: flex; flex-direction: column;
  gap: clamp(10px, 2.4vw, 20px);
  padding: clamp(11px, 2.6vw, 22px);
  border: 1px solid var(--gold-500);
}
.door__inner::before {
  content: ''; position: absolute; inset: 5px;
  border: 1px solid var(--line-soft); pointer-events: none;
}

.door__panel { position: relative; border: 1px solid var(--line); }
.door__panel--arch {
  flex: 1 1 auto; min-height: 0;
  display: grid; place-items: start center;
  border-radius: 50vw 50vw 0 0;
  background: linear-gradient(180deg, rgba(31, 74, 168, 0.3), rgba(31, 74, 168, 0.05) 70%);
  color: var(--gold-400);
  --orn-bg: #10225a;
}
.door__panel--arch::before {
  content: ''; position: absolute; inset: 6px;
  border: 1px solid var(--line-soft); border-radius: inherit;
}
/* The ornament sits high in the arch, leaving the meeting edge clear for the seal */
.door__panel--arch svg { width: 64%; max-width: 170px; height: auto; max-height: 72%; margin-top: clamp(44px, 7.5vh, 96px); }
.door__panel--base {
  flex: 0 0 18%;
  background:
    repeating-linear-gradient(45deg, rgba(201, 165, 90, 0.34) 0 1px, transparent 1px 15px),
    repeating-linear-gradient(-45deg, rgba(201, 165, 90, 0.34) 0 1px, transparent 1px 15px);
}

.gate__centre {
  position: absolute; left: 50%; top: 53%;
  transform: translate(-50%, -62px);
  display: grid; justify-items: center; gap: 26px;
  z-index: 3;
}

.gate__seal { cursor: pointer; position: relative; z-index: 1; }
.gate__wreath {
  position: absolute; left: 50%; top: -86px; z-index: 0;
  width: 296px; height: 296px; max-width: none; transform: translateX(-50%);
  color: var(--gold-400);
  filter: drop-shadow(0 0 10px rgba(236, 211, 150, 0.35));
  pointer-events: none;
}
.gate.is-opening .gate__wreath { opacity: 0; transform: translateX(-50%) scale(1.25); transition: opacity 0.8s ease, transform 1.2s var(--ease); }
.gate__seal::after {
  content: ''; position: absolute; inset: -9px; border-radius: 50%;
  border: 1px solid rgba(236, 211, 150, 0.75);
  pointer-events: none;
}
.gate__seal::after { animation: seal-ring 2.8s ease-out infinite; }
@keyframes seal-ring {
  0% { transform: scale(0.96); opacity: 0.9; }
  100% { transform: scale(1.5); opacity: 0; }
}

.gate__prompt {
  margin-top: 64px;                 /* clears the laurel wreath around the seal */
  padding: 10px 20px 10px calc(20px + 0.3em);
  border: 1px solid var(--line);
  background: rgba(6, 13, 34, 0.86);
  color: var(--gold-300);
  font-family: var(--font-caps); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase;
  white-space: nowrap;
  animation: prompt-breathe 2.8s ease-in-out infinite;
}
@keyframes prompt-breathe {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}

.gate__skip {
  position: absolute; z-index: 3;
  right: max(10px, env(safe-area-inset-right));
  bottom: max(10px, env(safe-area-inset-bottom));
  min-width: 64px; min-height: 44px; padding: 0 14px;
  color: var(--ivory-soft);
  font-size: 0.6875rem; letter-spacing: 0.28em; text-transform: uppercase;
  background: rgba(6, 13, 34, 0.7);
  border: 1px solid rgba(246, 241, 228, 0.22);
}
.gate__skip:hover { color: var(--ivory); border-color: var(--line); }

/* -- Opening -- */
.gate.is-opening { pointer-events: none; }
.gate.is-opening .gate__prompt,
.gate.is-opening .gate__skip { animation: none; opacity: 0; transition: opacity 0.35s ease; }
.gate.is-opening .gate__seal { animation: seal-release 1.2s var(--ease) forwards; }
.gate.is-opening .gate__seal::after { animation: none; opacity: 0; }
@keyframes seal-release {
  0% { transform: scale(1); filter: brightness(1); }
  38% { transform: scale(1.09); filter: brightness(1.45); box-shadow: 0 0 80px 26px rgba(255, 236, 180, 0.85); opacity: 1; }
  100% { transform: scale(1.55); filter: brightness(2); box-shadow: 0 0 140px 60px rgba(255, 236, 180, 0); opacity: 0; }
}
.gate.is-opening .gate__doors { transform: scale(1.24); }
.gate.is-opening .door--l { transform: rotateY(102deg); }
.gate.is-opening .door--r { transform: rotateY(-102deg); }
.gate.is-opening .door::before { opacity: 0.6; }
.gate.is-opening .gate__light { opacity: 0; transition: opacity 1.8s ease 1.45s; }

.gate.is-skipped { opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.gate.is-done { display: none; }

@media (prefers-reduced-motion: reduce) {
  .gate__seal::after, .gate__prompt { animation: none; }
  .gate.is-opening { opacity: 0; }
  .gate.is-opening .door--l, .gate.is-opening .door--r, .gate.is-opening .gate__doors { transform: none; }
}

/* ---------- Music toggle ---------- */

.music-btn {
  position: fixed; z-index: 95;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(6, 13, 34, 0.88);
  border: 1px solid var(--line);
  color: var(--gold-300);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), border-color 0.3s;
}
.is-entered .music-btn { opacity: 1; transform: none; }
.music-btn:hover { border-color: var(--gold-300); }
.music-btn__bars { position: relative; display: flex; align-items: flex-end; gap: 3px; height: 16px; }
.music-btn__bars i {
  width: 2px; height: 16px; background: currentColor; border-radius: 1px;
  transform-origin: bottom; transform: scaleY(0.22);
}
.music-btn.is-playing .music-btn__bars i { animation: bars 1.1s ease-in-out infinite; }
.music-btn.is-playing .music-btn__bars i:nth-child(2) { animation-delay: -0.35s; }
.music-btn.is-playing .music-btn__bars i:nth-child(3) { animation-delay: -0.7s; }
.music-btn.is-playing .music-btn__bars i:nth-child(4) { animation-delay: -0.15s; }
@keyframes bars {
  0%, 100% { transform: scaleY(0.25); }
  50% { transform: scaleY(1); }
}
/* Slash through the bars when muted */
.music-btn__bars::after {
  content: ''; position: absolute; left: -5px; right: -5px; top: 50%; height: 1.5px;
  background: currentColor; transform: rotate(-38deg);
}
.music-btn.is-playing .music-btn__bars::after { display: none; }
@media (prefers-reduced-motion: reduce) {
  .music-btn.is-playing .music-btn__bars i { animation: none; transform: scaleY(0.7); }
  .music-btn.is-playing .music-btn__bars i:nth-child(odd) { transform: scaleY(1); }
}

/* ---------- 2. Hero ---------- */

.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: clamp(72px, 12vh, 120px) var(--pad) clamp(104px, 15vh, 150px);
  text-align: center;
  overflow: hidden;
  background: var(--navy-950);
}
.hero__bg { position: absolute; inset: -9% 0; z-index: -2; will-change: transform; }
.hero__bg picture, .hero__bg img { width: 100%; height: 100%; }
.hero__bg img { object-fit: cover; object-position: 50% 28%; }
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 95% 56% at 50% 46%, rgba(5, 11, 28, 0.64), rgba(5, 11, 28, 0.24) 72%, transparent),
    linear-gradient(180deg, rgba(5, 11, 28, 0.26) 0%, rgba(5, 11, 28, 0.06) 24%, rgba(5, 11, 28, 0.42) 66%, var(--navy-950) 100%);
}

.hero__content { display: grid; justify-items: center; width: 100%; max-width: 40rem; }
.hero__crest { --crest: clamp(76px, 10vh, 96px); margin-bottom: clamp(8px, 1.6vh, 16px); filter: drop-shadow(0 2px 10px rgba(5, 11, 28, 0.6)); }

.hero__names {
  display: grid; justify-items: center;
  margin: clamp(10px, 2.4vh, 22px) 0 clamp(6px, 1.4vh, 14px);
  font-weight: 400;
}
.hero__name {
  display: block;
  padding: 0.16em 0.24em 0.1em;          /* room for the script's flourishes */
  font-size: clamp(4.25rem, min(22vw, 13.5vh), 8.75rem);
  line-height: 1;
  filter: drop-shadow(0 2px 14px rgba(5, 11, 28, 0.6));
}
.hero__amp {
  margin: -0.5em 0 -0.42em;
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.625rem, 7vw, 2.75rem); line-height: 1;
  color: var(--gold-300);
}

.hero__invite {
  max-width: 21rem;
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.125rem, 4.8vw, 1.375rem); line-height: 1.45;
  color: var(--ivory);
  text-wrap: balance;
}
.hero .divider { margin: clamp(18px, 3vh, 28px) 0; color: var(--gold-400); }
.hero__date {
  font-family: var(--font-caps); font-weight: 500;
  font-size: clamp(1rem, 4.5vw, 1.375rem);
  letter-spacing: 0.14em; text-indent: 0.14em; text-transform: uppercase;
  font-variant-numeric: lining-nums;
}
.hero__date time { display: grid; justify-items: center; gap: 6px; }
.hero__date-day { font-size: clamp(0.9375rem, 4.3vw, 1.3125rem); letter-spacing: 0.1em; text-indent: 0.1em; }
.hero__date-year { font-size: clamp(0.75rem, 3.3vw, 0.9375rem); letter-spacing: 0.22em; text-indent: 0.22em; color: var(--gold-300); }
.hero__time {
  margin-top: 8px;
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.0625rem, 4.4vw, 1.25rem); color: var(--ivory-soft);
}
.hero__city { margin-top: 12px; color: var(--gold-300); }

.hero__count { margin-top: clamp(26px, 5vh, 48px); width: 100%; max-width: 23rem; }
.hero__count-label {
  margin-bottom: 14px;
  font-family: var(--font-display); font-style: italic; font-size: 1.0625rem; color: var(--ivory-soft);
}
.countdown {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  padding-block: 14px;
  background: linear-gradient(90deg, transparent, rgba(5, 11, 28, 0.45) 20%, rgba(5, 11, 28, 0.45) 80%, transparent);
}
.countdown__cell { display: grid; justify-items: center; gap: 4px; }
.countdown__cell + .countdown__cell { border-left: 1px solid var(--line-soft); }
.countdown__num {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2rem, 9.4vw, 2.875rem); line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--gold-100);
}
.countdown__unit {
  font-family: var(--font-caps); font-size: 0.625rem; font-weight: 500; letter-spacing: 0.2em; text-indent: 0.2em;
  text-transform: uppercase; color: var(--ivory-soft);
}
.countdown__done { font-size: clamp(1.75rem, 7vw, 2.5rem); font-style: italic; }

.hero__cue {
  position: absolute; left: 50%; bottom: max(22px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: grid; justify-items: center; gap: 8px;
  min-width: 64px; padding: 6px 10px 0;
  color: var(--ivory-soft); text-decoration: none;
  font-family: var(--font-caps); font-size: 0.6875rem; letter-spacing: 0.3em; text-indent: 0.34em; text-transform: uppercase;
}
.hero__cue i {
  display: block; width: 1px; height: 34px;
  background: linear-gradient(var(--gold-300), transparent);
  transform-origin: top; animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* Hero entrance, played once the doors are open */
.js [data-intro] { opacity: 0; transform: translate3d(0, 22px, 0); }
.js .hero__cue[data-intro] { transform: translate3d(-50%, 22px, 0); }
.js.is-entered [data-intro] {
  opacity: 1; transform: none;
  transition: opacity 1.3s var(--ease), transform 1.5s var(--ease);
  transition-delay: calc(var(--i, 0) * 150ms);
}
.js.is-entered .hero__cue[data-intro] { transform: translateX(-50%); }

/* ---------- 3. Story ---------- */

.story { text-align: center; }
.story__peony { width: 92px; height: 92px; margin: 0 auto 26px; color: var(--gold-ink); --orn-bg: var(--paper); }
.story__body { display: grid; gap: 1.25em; color: var(--fg-soft); }
.story__sign { margin-top: 34px; font-size: 2.5rem; line-height: 1.2; color: var(--gold-ink); }

/* ---------- 4. Film ---------- */

.film__frame { max-width: 60rem; margin-inline: auto; padding: 6px; }
.film__frame::before { z-index: 2; inset: -7px; }
.film__player { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.film__player iframe, .film__poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film__poster { display: block; }
.film__poster img { width: 100%; height: 100%; object-fit: cover; opacity: 0.82; transition: opacity 0.4s, transform 1.2s var(--ease); }
.film__poster:hover img { opacity: 1; transform: scale(1.03); }
.film__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 78px; height: 78px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(6, 13, 34, 0.72); border: 1px solid var(--gold-300); color: var(--gold-100);
}
.film__play svg { width: 28px; height: 28px; transform: translateX(2px); }
.film__caption { margin-top: 22px; text-align: center; }
.film__soon {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; gap: 18px; padding: 20px; text-align: center;
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(31, 74, 168, 0.5), transparent 75%),
    linear-gradient(180deg, #0c1838, #101f4a);
}
.film__soon .film__play { position: static; transform: none; width: 64px; height: 64px; opacity: 0.85; }
.film__soon p { font-family: var(--font-display); font-style: italic; font-size: clamp(1.1875rem, 5vw, 1.5rem); color: var(--gold-300); }

/* ---------- 5. Gallery ---------- */

.gallery__tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 4px;
  max-width: 44rem; margin: 0 auto clamp(22px, 5vw, 34px);
}
.gallery__tab {
  position: relative; min-height: 44px; padding: 10px 14px;
  font-family: var(--font-caps); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ivory-soft);
  transition: color 0.3s var(--ease);
}
.gallery__tab::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1px;
  background: var(--gold-400); transform: scaleX(0); transition: transform 0.45s var(--ease);
}
.gallery__tab:hover { color: var(--ivory); }
.gallery__tab.is-active { color: var(--gold-300); }
.gallery__tab.is-active::after { transform: scaleX(1); }
.gallery__tab.is-active::before {
  content: ''; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px;
  background: var(--gold-400); transform: rotate(45deg);
}
.gallery__note {
  margin: -12px auto 22px; text-align: center;
  font-family: var(--font-display); font-style: italic; font-size: 1.125rem; color: var(--ivory-soft);
}
.gallery__grid.is-switching .gallery__item { animation: tile-in 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes tile-in { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }

.gallery__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  max-width: 44rem; margin-inline: auto;          /* the whole 3 x 3 fits on a laptop screen */
}
.gallery__btn {
  position: relative; display: block; width: 100%; overflow: hidden;
  background: var(--navy-800);
}
.gallery__btn { aspect-ratio: 4 / 5; }
.gallery__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery__btn::after {
  content: ''; position: absolute; inset: 5px; border: 1px solid rgba(236, 217, 160, 0);
  transition: border-color 0.4s; pointer-events: none;
}
.gallery__btn:hover img { transform: scale(1.04); }
.gallery__btn:hover::after, .gallery__btn:focus-visible::after { border-color: rgba(236, 217, 160, 0.8); }
@media (min-width: 760px) {
  .gallery__grid { gap: 14px; }
}

/* ---------- Wisteria canopy ---------- */

.canopy {
  position: absolute; top: 0; left: 0; right: 0;
  height: var(--canopy-h, clamp(150px, 36vw, 300px));
  pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 40%, transparent);
  mask-image: linear-gradient(#000 40%, transparent);
}
.canopy svg { width: 100%; height: 100%; }
.canopy--sparse { opacity: 0.6; }

/* ---------- 6. Venues ---------- */

.venues { padding-top: 0; --canopy-h: clamp(150px, 30vw, 290px); }
.venues .section-head { position: relative; }
.venues__chandelier {
  /* Hangs from the top edge, reaching just below the wisteria */
  height: max(181px, calc(var(--canopy-h) * 0.98)); width: auto; aspect-ratio: 120 / 194;
  margin: 0 auto 26px;
  color: var(--gold-400);
  filter: drop-shadow(0 0 16px rgba(236, 211, 150, 0.35));
}
.js .venues__chandelier[data-reveal] { transform: translate3d(0, -26px, 0); }
.js .venues__chandelier[data-reveal].is-in { transform: none; }

.venues__grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .venues__grid { grid-template-columns: 1fr 1fr; gap: 36px; } }

.venue {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(20, 48, 110, 0.38), rgba(10, 20, 48, 0.72));
  text-align: center;
}
.venue::before { z-index: 1; }
.venue__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--navy-800); }
.venue__media img { width: 100%; height: 100%; object-fit: cover; }
.venue__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 20, 48, 0.55));
}
.venue__media--emblem {
  display: grid; place-items: center;
  background:
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(31, 74, 168, 0.55), transparent 70%),
    linear-gradient(180deg, #0c1838, #101f4a);
  color: var(--gold-400);
}
.venue__media--emblem svg { width: 46%; height: auto; aspect-ratio: 120 / 92; }
.venue__body { display: grid; justify-items: center; gap: 10px; padding: 30px 26px 38px; flex: 1; align-content: start; }
.venue__name {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.625rem, 6.4vw, 2rem); line-height: 1.15; text-wrap: balance;
}
.venue__meta {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-size: 1.1875rem; color: var(--gold-300);
  font-variant-numeric: lining-nums;
}
.venue__meta i { width: 5px; height: 5px; background: var(--gold-500); transform: rotate(45deg); }
.venue .btn { margin-top: 14px; }

/* ---------- 7. Schedule ---------- */

.timeline { position: relative; display: grid; gap: clamp(26px, 6vw, 36px); --time-w: 5.4rem; }
.timeline::before {
  content: ''; position: absolute; top: 6px; bottom: 6px;
  left: calc(var(--time-w) + 14px + 10px); width: 1px;
  background: linear-gradient(transparent, var(--line) 10%, var(--line) 90%, transparent);
}
.timeline__item {
  display: grid; grid-template-columns: var(--time-w) 21px 1fr; column-gap: 14px;
  align-items: baseline;
}
.timeline__time {
  text-align: right; white-space: nowrap;
  font-family: var(--font-display); font-weight: 500; font-size: 1.1875rem;
  font-variant-numeric: lining-nums; letter-spacing: 0.02em;
  color: var(--gold-300);
}
.timeline__dot {
  justify-self: center; align-self: center;
  width: 9px; height: 9px; transform: rotate(45deg);
  background: var(--gold-400); box-shadow: 0 0 0 4px var(--navy-900), 0 0 12px rgba(236, 211, 150, 0.6);
}
.timeline__title { font-family: var(--font-display); font-size: 1.4375rem; line-height: 1.25; }
.timeline__note { grid-column: 3; margin-top: 4px; font-size: 0.9375rem; line-height: 1.55; color: var(--fg-soft); }

/* ---------- On the day ---------- */

.onday__grid { display: grid; gap: 24px; max-width: 54rem; margin-inline: auto; }
@media (min-width: 700px) { .onday__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.onday__card {
  display: grid; justify-items: center; align-content: start; gap: 12px; text-align: center;
  padding: clamp(36px, 8vw, 48px) clamp(22px, 5vw, 36px);
  background: linear-gradient(180deg, rgba(20, 48, 110, 0.38), rgba(10, 20, 48, 0.72));
}
.onday__icon { width: 62px; height: 62px; color: var(--gold-400); margin-bottom: 6px; }
.onday__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.625rem, 6.4vw, 1.875rem); line-height: 1.15; }
.onday__text { color: var(--fg-soft); max-width: 19rem; }
.onday__card .btn { margin-top: 12px; }
.onday__note {
  margin-top: 12px; padding: 12px 20px 12px calc(20px + 0.24em);
  border: 1px dashed var(--line);
  font-family: var(--font-caps); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-300);
}

/* ---------- 8. Attire ---------- */

.attire__card {
  display: grid; justify-items: center; text-align: center;
  padding: clamp(44px, 10vw, 68px) clamp(22px, 6vw, 48px);
  background: linear-gradient(180deg, rgba(20, 48, 110, 0.3), rgba(10, 20, 48, 0.4));
}
.attire__card .eyebrow { margin-bottom: 14px; }
.attire__card .divider { margin: 22px 0; }
.attire__text { font-family: var(--font-display); font-style: italic; font-size: 1.3125rem; line-height: 1.4; text-wrap: balance; }
.attire__sample { width: min(100%, 290px); margin-top: 30px; }
.attire__sample img { width: 100%; height: auto; }
.attire__sample figcaption {
  margin-top: 12px; font-family: var(--font-caps); font-size: 0.6875rem; letter-spacing: 0.2em; text-indent: 0.2em;
  text-transform: uppercase; color: var(--fg-soft);
}
.swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 18px; margin-top: 34px; }
.swatch { display: grid; justify-items: center; gap: 12px; width: 68px; }
.swatch__chip {
  width: 50px; height: 50px; border-radius: 50%;
  box-shadow: 0 0 0 4px var(--navy-950), 0 0 0 5px var(--line), 0 8px 18px rgba(0, 0, 0, 0.45);
}
.swatch__name { font-family: var(--font-caps); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.4; color: var(--fg-soft); }

/* ---------- 9. Entourage ---------- */

.entourage { text-align: center; }
.entourage__group + .entourage__group { margin-top: clamp(44px, 9vw, 64px); }
.entourage__title {
  display: inline-block; margin-bottom: 20px; padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-caps); font-weight: 600; font-size: 0.875rem;
  letter-spacing: 0.24em; text-indent: 0.24em; text-transform: uppercase; color: var(--accent);
}
.entourage__role + .entourage__role { margin-top: 22px; }
.entourage__role .entourage__label { margin-bottom: 4px; }
.entourage__role-names {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 12px;
  font-family: var(--font-display); font-weight: 500; font-size: 1.1875rem; line-height: 1.5; font-variant-numeric: lining-nums;
}
.entourage__amp { font-style: italic; font-weight: 400; color: var(--accent); }

.entourage__pairs { width: 100%; table-layout: fixed; border-collapse: collapse; }
.entourage__pairs th, .entourage__pairs td { width: 50%; padding: 8px 10px; vertical-align: middle; }
.entourage__pairs th + th, .entourage__pairs td + td { border-left: 1px solid var(--rule-soft); }
.entourage__label { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.125rem; color: var(--accent); }
.entourage__pairs th { padding-bottom: 12px; }
.entourage__pairs td {
  font-family: var(--font-display); font-weight: 500; font-size: 1.1875rem; line-height: 1.3;
  font-variant-numeric: lining-nums; text-wrap: balance; overflow-wrap: anywhere;
}
.entourage__names li { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; line-height: 1.75; text-wrap: balance; font-variant-numeric: lining-nums; }

/* ---------- 10. RSVP ---------- */

.rsvp { --canopy-h: clamp(110px, 22vw, 200px); padding-top: calc(var(--canopy-h) + clamp(28px, 5vw, 56px)); }
.rsvp__deadline { margin-top: 22px; font-family: var(--font-display); font-style: italic; font-size: 1.1875rem; color: var(--fg-soft); }
.rsvp__deadline strong { font-weight: 600; font-style: normal; color: var(--gold-300); font-variant-numeric: lining-nums; white-space: nowrap; }

.form { display: grid; gap: 24px; }
.form__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
textarea.field__input { min-height: 124px; resize: vertical; }
.choice.is-invalid .choice__opt span { border-color: #f1a79d; }

.choice__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 9px; }
.choice__opt { position: relative; display: block; cursor: pointer; }
.choice__opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice__opt span {
  display: grid; place-items: center; min-height: 68px; padding: 10px 8px;
  border: 1px solid rgba(246, 241, 228, 0.22);
  background: rgba(246, 241, 228, 0.04);
  font-family: var(--font-display); font-size: 1.1875rem; line-height: 1.2; text-align: center;
  transition: border-color 0.25s, background-color 0.25s, color 0.25s;
}
.choice__opt input:checked + span {
  border-color: var(--gold-300); background: rgba(201, 165, 90, 0.18); color: var(--gold-100);
  box-shadow: inset 0 0 0 1px var(--gold-300);
}
.choice__opt input:focus-visible + span { outline: 2px solid var(--gold-300); outline-offset: 3px; }

.stepper { display: grid; grid-template-columns: 52px 1fr 52px; max-width: 220px; }
.stepper__btn {
  min-height: 52px; border: 1px solid rgba(246, 241, 228, 0.22);
  font-size: 1.375rem; line-height: 1; color: var(--gold-300);
  background: rgba(246, 241, 228, 0.04);
}
.stepper__btn:hover { background: rgba(201, 165, 90, 0.16); }
.stepper__input { text-align: center; border-inline: 0; -moz-appearance: textfield; font-variant-numeric: lining-nums; }
.stepper__input::-webkit-outer-spin-button,
.stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.companions { display: grid; gap: 14px; }
.companions__hint { font-size: 0.9375rem; line-height: 1.5; color: var(--fg-soft); }
.companions__rows { display: grid; gap: 16px; }
.companion { display: grid; gap: 8px; }
.companion__n { font-family: var(--font-display); font-style: italic; font-size: 1.0625rem; color: var(--ivory); font-variant-numeric: lining-nums; }

.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { min-height: 1.6em; text-align: center; font-size: 0.9375rem; color: var(--fg-soft); }
.form__status.is-error { color: #f6beb6; }
.form__submit { width: 100%; min-height: 56px; }
.form.is-busy .form__submit { opacity: 0.7; cursor: progress; }

.rsvp__done {
  display: grid; justify-items: center; gap: 14px; text-align: center;
  padding: clamp(44px, 10vw, 64px) clamp(22px, 6vw, 44px);
  background: linear-gradient(180deg, rgba(20, 48, 110, 0.3), rgba(10, 20, 48, 0.4));
}
.rsvp__done-peony { width: 76px; height: 76px; color: var(--gold-400); --orn-bg: var(--navy-900); }
.rsvp__done p { color: var(--fg-soft); max-width: 24rem; }

/* ---------- 11. FAQ ---------- */

.faq__item { border-top: 1px solid var(--line-soft); }
.faq__item:last-child { border-bottom: 1px solid var(--line-soft); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 2px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: 1.375rem; line-height: 1.25;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q svg { flex: none; width: 18px; height: 18px; color: var(--gold-400); transition: transform 0.4s var(--ease); }
.faq__item[open] .faq__q svg { transform: rotate(45deg); }
.faq__a { padding: 0 2px 24px; color: var(--fg-soft); max-width: 32rem; }

/* ---------- 12. Footer ---------- */

.footer {
  display: grid; justify-items: center; gap: 12px; text-align: center;
  padding: clamp(64px, 12vw, 104px) var(--pad) calc(96px + env(safe-area-inset-bottom));
  background:
    var(--brocade),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(31, 74, 168, 0.3), transparent 70%),
    var(--navy-950);
  border-top: 1px solid var(--line-soft);
}
.footer__crest { position: relative; display: grid; place-items: center; width: 150px; height: 150px; margin-bottom: 14px; }
.footer__seal { --size: 80px; }
.footer__names { font-size: clamp(2.75rem, 12vw, 4rem); line-height: 1.25; padding: 0 0.2em; }
.footer__date {
  font-family: var(--font-caps); font-size: 0.9375rem; letter-spacing: 0.2em; text-indent: 0.2em;
  text-transform: uppercase; font-variant-numeric: lining-nums; color: var(--ivory-soft);
}
.footer__roman {
  font-family: var(--font-caps); font-size: 0.75rem; letter-spacing: 0.34em; text-indent: 0.34em; color: var(--gold-400);
}
.footer__note { margin-top: 6px; font-size: 0.875rem; letter-spacing: 0.1em; color: var(--ivory-faint); }
