/* The letter and its form share one stage throughout the envelope opening. */
.entry-stage {
  flex: 1;
  display: grid;
  place-items: center;
  position: relative;
  width: 100%;
  max-width: 680px;
  min-height: 680px;
  margin: 0 auto;
}
.entry-stage > .envelope-scene,
.entry-stage > .name-card { grid-area: 1 / 1; }
.envelope-scene { z-index: 1; margin: 0; }
.opening .envelope { transform: rotate(0deg); }
.opening .envelope-flap { transition-duration: .85s; }
.name-card {
  position: relative;
  z-index: 2;
  margin: 30px auto;
  padding: 28px 24px 20px;
  background: var(--cream);
  border: 1px solid #b5b9a980;
  box-shadow: 0 16px 50px #48513b16, 0 2px 6px #48513b08;
  transform-origin: 50% 0;
  animation: none;
}
.name-card::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid #b9bcaa45;
  pointer-events: none;
}
.name-card .small-sprig { height: 48px; margin: 8px auto 16px; }
.name-card h2 { font-size: clamp(36px, 9vw, 46px); margin: 14px 0 18px; }
.name-card form { margin-top: 24px; }
.name-card .demo-picker { margin-top: 19px; }
.name-card .text-button { margin-top: 7px; }
.name-card[inert] { will-change: transform, clip-path, opacity; }

/* Original photographs, with generous cream margins and fine gold edges. */
.portrait-frame > .couple-kiss { height: auto; object-position: 50% 58%; }
.photo-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  max-width: 580px;
  margin: 0 auto;
  padding: 8px 30px 65px;
}
.photo-pair figure { margin: 0; min-width: 0; }
.photo-pair figure:first-child { transform: rotate(-3deg); }
.photo-pair figure:last-child { padding-top: 28px; transform: rotate(3deg); }
.photo-mount {
  padding: 6px;
  border: 1px solid #a78d5966;
  border-radius: 150px 150px 2px 2px;
  background: var(--cream);
  box-shadow: 0 8px 24px #48513b0c;
}
.photo-mount img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 60%;
  display: block;
  border-radius: 145px 145px 1px 1px;
}
.photo-pair figcaption { font: italic 22px/1.3 var(--serif); text-align: center; color: var(--sage); margin-top: 14px; }
.photo-interlude { max-width: 480px; margin: 10px auto 58px; padding: 0 34px; text-align: center; }
.interlude-frame { padding: 7px; border: 1px solid #a78d5966; background: var(--cream); }
.interlude-frame img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 60%; }
.photo-interlude figcaption { margin: 20px 0 0; font: italic 23px/1.35 var(--serif); color: var(--sage); }
.dresscode-note { margin-top: 30px; padding: 21px 20px; border-left: 1px solid var(--gold); background: #e4e8dc80; }
.dresscode-note .eyebrow { font-size: 8px; letter-spacing: 1.6px; }
.dresscode-note p { color: var(--muted); margin-top: 9px; font-size: 12px; line-height: 1.85; }
.location-map { position: relative; margin: 25px -10px 0; padding: 6px; border: 1px solid #a78d5970; background: var(--cream); }
.location-map iframe { display: block; width: 100%; height: 285px; border: 0; background: var(--sage-light); }
.map-caption { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 4px 7px; font: italic 18px/1.3 var(--serif); color: var(--sage); }
.map-caption svg { width: 12px; height: 12px; flex-shrink: 0; color: var(--gold); }
.public-transport { margin: 30px auto 0; max-width: 340px; padding-top: 26px; border-top: 1px solid #b4bea480; }
.bus-icon { display: block; width: 35px; height: 35px; margin: 0 auto 13px; color: var(--sage); }
.public-transport h3 { font-size: 29px; line-height: 1.1; }
.public-transport p { margin: 15px 0 0; font-size: 11px; color: #5e6854; line-height: 1.9; }
.public-transport strong { font-weight: 600; }
.location-card .public-transport .button { margin-top: 20px; }
.transport-hint { display: block; margin-top: 9px; font-size: 9px; color: #5e6854; }
@media (min-width: 700px) {
  .photo-pair { gap: 24px; padding-top: 15px; padding-bottom: 80px; }
  .photo-pair figcaption { font-size: 27px; }
  .photo-interlude { margin-bottom: 75px; }
  .location-map iframe { height: 320px; }
}
@media (max-width: 360px) {
  .name-card { padding: 25px 20px 16px; }
  .name-card > p:not(.eyebrow) { font-size: 11px; }
  .photo-pair { gap: 12px; padding-left: 23px; padding-right: 23px; }
  .photo-pair figcaption { font-size: 19px; }
  .photo-interlude { padding: 0 28px; }
  .location-map iframe { height: 250px; }
}
@media (prefers-reduced-motion: reduce) {
  .name-card[inert] { will-change: auto; }
}
