/* =========================================================
   LAYOUT, FLOATING PETALS, 3D ENVELOPE & RESPONSIVE STAGE
   ========================================================= */

/* Subtle Floating Rose Petals & Soft Sparkles */
.ambient-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.petal {
  position: absolute;
  width: 18px;
  height: 12px;
  border-radius: 75% 25% 70% 30% / 60% 40% 60% 40%;
  background: linear-gradient(135deg, #fbe4e8 0%, #eebcc6 60%, #de9da9 100%);
  box-shadow: 0 2px 6px rgba(145, 84, 96, 0.14);
  opacity: 0;
  animation: petalFloat 11s ease-in-out infinite;
}

.petal--1 { top: 24%; left: 16%; animation-delay: 0s; }
.petal--2 { top: 56%; left: 11%; width: 15px; height: 10px; animation-delay: -3.2s; }
.petal--3 { top: 30%; right: 14%; width: 16px; height: 11px; animation-delay: -5.4s; }
.petal--4 { top: 68%; right: 17%; width: 14px; height: 10px; animation-delay: -8s; }

.sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #ffffff 0%, rgba(255, 255, 255, 0) 70%);
  opacity: 0.7;
  animation: twinkle 4.2s ease-in-out infinite;
}

.sparkle::before,
.sparkle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -50%);
}

.sparkle::before { width: 1.5px; height: 10px; }
.sparkle::after { width: 10px; height: 1.5px; }

.sparkle--1 { top: 26%; left: 26%; animation-delay: 0s; }
.sparkle--2 { top: 38%; right: 22%; animation-delay: -1.4s; }
.sparkle--3 { bottom: 26%; left: 24%; animation-delay: -2.6s; }
.sparkle--4 { bottom: 32%; right: 25%; animation-delay: -3.5s; }

/* Main Centered Stage (Top padding clears background satin bow) */
.invitation-stage {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(6.5rem, 18vh, 10rem) clamp(1rem, 4vw, 2.5rem) clamp(3rem, 8vh, 4.5rem);
}

.view {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  transition:
    opacity 0.48s var(--ease-out-silk),
    transform 0.54s var(--ease-out-silk);
}

.view[hidden] {
  display: none;
}

.view.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.view.is-leaving {
  opacity: 0;
  transform: translateY(-10px) scale(0.985);
  pointer-events: none;
}

/* =========================================================
   1. LANDING VIEW (FLOATING DIRECTLY OVER LUMINOUS CENTER)
   ========================================================= */

.landing-content {
  width: 100%;
  max-width: 560px;
  padding: clamp(1rem, 3vw, 2rem) clamp(0.75rem, 3vw, 1.5rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeUpEntrance 0.75s var(--ease-out-silk) both;
}

.mini-line-bow {
  width: clamp(46px, 9vw, 60px);
  height: auto;
  color: var(--color-accent-deep);
  margin-bottom: 0.35rem;
  animation: gentleBob 5.5s ease-in-out infinite;
}

.script-title--hero {
  font-size: clamp(2.85rem, 7vw, 4.35rem);
  line-height: 1.08;
  color: var(--color-ink);
}

.flourish-divider {
  width: min(74%, 250px);
  height: auto;
  margin: 0.7rem auto 0.9rem;
  opacity: 0.9;
}

.flourish-divider--bottom {
  width: min(56%, 190px);
  margin: 1.35rem auto 0;
  opacity: 0.8;
}

.landing-event-tag {
  margin-bottom: 0.55rem;
  font-family: var(--font-sans);
  font-size: clamp(0.74rem, 1.8vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

.landing-intro {
  max-width: 36ch;
  margin-bottom: 1.65rem;
  font-size: clamp(1.12rem, 2.5vw, 1.32rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-ink);
}

/* =========================================================
   2. INTERACTIVE ENVELOPE (SEALED & OPENING)
   ========================================================= */

.envelope-stage {
  width: 100%;
  max-width: 640px;
  padding-top: clamp(2.5rem, 8vh, 4.75rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
}

.envelope {
  position: relative;
  width: min(92vw, 560px);
  aspect-ratio: 560 / 290;
  perspective: 1300px;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.35s var(--ease-out-silk);
}

.envelope:hover:not(.is-opening):not(.is-opened) {
  transform: translateY(-4px);
}

.envelope:active:not(.is-opening):not(.is-opened) {
  transform: translateY(-1px) scale(0.99);
}

.envelope-shadow {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: -18px;
  height: 26px;
  background: radial-gradient(ellipse at center, rgba(110, 52, 64, 0.26) 0%, transparent 72%);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

/* Envelope Interior Back Wall */
.envelope-back {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: var(--radius-envelope);
  background: linear-gradient(180deg, #e7b5bf 0%, #f4cfd6 100%);
  border: 1px solid rgba(190, 124, 136, 0.45);
  box-shadow: var(--shadow-envelope);
}

/* Peeking Card Emerging Inside Pocket */
.envelope-card-peek {
  position: absolute;
  left: 7%;
  right: 7%;
  top: 10%;
  height: 82%;
  z-index: 2;
  padding: 6px;
  border-radius: 6px;
  background: linear-gradient(180deg, #fffafb 0%, #fceef0 100%);
  border: 1px solid rgba(196, 134, 145, 0.5);
  box-shadow: 0 4px 16px rgba(105, 52, 63, 0.14);
  transition: transform 0.68s var(--ease-out-silk) 0.56s;
}

.peek-satin-bow {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(58px, 14vw, 76px);
  height: auto;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease 0.6s;
}

.envelope.is-opening .peek-satin-bow,
.envelope.is-opened .peek-satin-bow {
  opacity: 1;
}

.peek-inner {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0.75rem 0.65rem 0.45rem;
  border: 1px solid var(--color-border-inner);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, var(--color-paper) 0%, var(--color-ivory) 100%);
}

.peek-tarpaulin {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
}

.peek-script {
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 4vw, 1.95rem);
  line-height: 1.1;
  color: var(--color-ink);
}

.peek-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(0.56rem, 1.5vw, 0.68rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

.envelope.is-opening .envelope-card-peek,
.envelope.is-opened .envelope-card-peek {
  transform: translateY(-54%);
}

/* Front Pocket Folds (Left, Right, Bottom Triangles) */
.envelope-pocket {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: var(--radius-envelope);
  overflow: hidden;
  pointer-events: none;
}

.envelope-flap {
  position: absolute;
  inset: 0;
}

.envelope-flap--left {
  background: linear-gradient(135deg, #f8d4db 0%, #f1c0ca 100%);
  clip-path: polygon(0 0, 52% 52%, 0 100%);
}

.envelope-flap--right {
  background: linear-gradient(225deg, #f8d4db 0%, #f1c0ca 100%);
  clip-path: polygon(100% 0, 48% 52%, 100% 100%);
}

.envelope-flap--bottom {
  background: linear-gradient(0deg, #fae2e6 0%, #f4c8d0 85%);
  clip-path: polygon(0 100%, 50% 44%, 100% 100%);
  filter: drop-shadow(0 -2px 5px rgba(138, 72, 85, 0.14));
}

/* Satin Ribbon Straps Across Sealed Envelope */
.envelope-ribbon-band {
  position: absolute;
  left: 0;
  right: 0;
  top: 52%;
  height: 15px;
  transform: translateY(-50%);
  z-index: 4;
  background: linear-gradient(
    180deg,
    rgba(255, 240, 243, 0.92) 0%,
    rgba(241, 193, 203, 0.96) 52%,
    rgba(214, 152, 165, 0.96) 100%
  );
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(182, 114, 127, 0.35);
  box-shadow: 0 3px 8px rgba(128, 66, 78, 0.15);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.32s var(--ease-out-silk);
}

.envelope.is-opening .envelope-ribbon-band,
.envelope.is-opened .envelope-ribbon-band {
  opacity: 0;
  transform: translateY(-50%) scaleX(1.04);
}

/* Top 3D Envelope Flap */
.envelope-flap-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 58%;
  z-index: 5;
  transform-origin: top center;
  transform-style: preserve-3d;
  pointer-events: none;
  transition:
    transform 0.68s cubic-bezier(0.4, 0, 0.2, 1) 0.14s,
    z-index 0s linear 0.44s;
}

.flap-face {
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 100% 0, 50% 98%);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flap-face--front {
  background: linear-gradient(180deg, #fce5e9 0%, #f5cbd3 100%);
  border-top-left-radius: var(--radius-envelope);
  border-top-right-radius: var(--radius-envelope);
}

.flap-face--back {
  background: linear-gradient(180deg, #fff8f9 0%, #fce8ec 100%);
  border-top-left-radius: var(--radius-envelope);
  border-top-right-radius: var(--radius-envelope);
  transform: rotateX(180deg);
}

.envelope.is-opening .envelope-flap-top,
.envelope.is-opened .envelope-flap-top {
  transform: rotateX(180deg);
  z-index: 1;
}

/* Corner Filigrees on Envelope & Card */
.filigree {
  position: absolute;
  width: clamp(38px, 8vw, 56px);
  height: auto;
  pointer-events: none;
  opacity: 0.78;
}

.filigree--env-tl { top: 8px; left: 8px; }
.filigree--env-tr { top: 8px; right: 8px; transform: rotate(90deg); }
.filigree--env-bl { bottom: 8px; left: 8px; transform: rotate(-90deg); }
.filigree--env-br { bottom: 8px; right: 8px; transform: rotate(180deg); }

.filigree--xs-tl,
.filigree--xs-tr {
  width: clamp(24px, 5vw, 34px);
  top: 5px;
  opacity: 0.72;
}
.filigree--xs-tl { left: 5px; }
.filigree--xs-tr { right: 5px; transform: rotate(90deg); }

/* Glossy Bow + Crimson-Rose Wax Seal */
.envelope-bow-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.32s var(--ease-out-silk);
}

.envelope-bow {
  width: clamp(110px, 24vw, 152px);
  height: auto;
}

.envelope:hover:not(.is-opening):not(.is-opened) .envelope-bow-wrap {
  transform: translate(-50%, -50%) scale(1.04);
}

.envelope.is-opening .envelope-bow-wrap,
.envelope.is-opened .envelope-bow-wrap {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
}

.envelope-seal-wrap {
  position: absolute;
  top: 56%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 7;
  pointer-events: none;
  transition: transform 0.52s var(--ease-out-silk) 0.1s;
}

.envelope-seal {
  width: clamp(50px, 11vw, 64px);
  height: auto;
}

.envelope:hover:not(.is-opening):not(.is-opened) .envelope-seal-wrap {
  transform: translate(-50%, -50%) scale(1.06);
}

/* Seal settles gracefully on the lower pocket apex as flap opens */
.envelope.is-opening .envelope-seal-wrap,
.envelope.is-opened .envelope-seal-wrap {
  transform: translate(-50%, -50%) translateY(18%) scale(0.92);
}

.envelope-hint {
  margin-top: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  transition: opacity 0.3s ease;
  animation: gentlePulse 2.6s ease-in-out infinite;
}

.envelope-hint.is-hidden {
  opacity: 0;
  animation: none;
}

/* =========================================================
   3. REVEALED INVITATION CARD
   ========================================================= */

.card-stage {
  width: 100%;
  max-width: min(94vw, 960px);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.card {
  position: relative;
  width: 100%;
  min-height: auto;
  padding: clamp(2.5rem, 4.5vw, 3.35rem) clamp(0.95rem, 2vw, 1.4rem) clamp(1rem, 2.2vw, 1.5rem);
  background: linear-gradient(180deg, var(--color-paper) 0%, var(--color-ivory) 55%, var(--color-blush-soft) 100%);
  border: 1px solid var(--color-border-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.card__media {
  position: relative;
  z-index: 1;
  width: 100%;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.25rem);
}

.card__tarpaulin {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.card__tarpaulin-wrap {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
}

.tarpaulin-hotspot {
  position: absolute;
  display: block;
  border-radius: 10%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s var(--ease-out-silk);
}

.tarpaulin-hotspot:hover {
  background-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 0 0 2px rgba(216, 104, 158, 0.52),
    0 4px 12px rgba(138, 72, 85, 0.2);
  transform: translateY(-1px);
}

.tarpaulin-hotspot:active {
  transform: scale(0.97);
}

.tarpaulin-hotspot--church-map {
  left: 12.2%;
  top: 66.4%;
  width: 12.6%;
  height: 15.6%;
}

.tarpaulin-hotspot--venue-map {
  left: 73.8%;
  top: 66.6%;
  width: 12.6%;
  height: 15.4%;
}

.view--card.is-active .card {
  animation: cardReveal 0.72s var(--ease-out-silk) both;
}

.card-satin-bow {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(102px, 22vw, 134px);
  height: auto;
  z-index: 3;
  pointer-events: none;
}

.card__frame {
  position: absolute;
  inset: 12px;
  border: 1px solid var(--color-border-inner);
  border-radius: calc(var(--radius-card) - 3px);
  pointer-events: none;
}

.filigree--card-tl,
.filigree--card-tr,
.filigree--card-bl,
.filigree--card-br {
  width: clamp(46px, 9vw, 68px);
  opacity: 0.82;
}

.filigree--card-tl { top: 10px; left: 10px; }
.filigree--card-tr { top: 10px; right: 10px; transform: rotate(90deg); }
.filigree--card-bl { bottom: 10px; left: 10px; transform: rotate(-90deg); }
.filigree--card-br { bottom: 10px; right: 10px; transform: rotate(180deg); }

.card__header {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.script-title--card {
  font-size: clamp(2.35rem, 5.6vw, 3.2rem);
  line-height: 1.08;
}

.event-title {
  margin-top: 0.45rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.event-title__name {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ink);
}

.event-title__occasion {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.7vw, 1.45rem);
  font-weight: 600;
  font-style: italic;
  color: var(--color-ink-soft);
}

.card__message {
  position: relative;
  z-index: 1;
  max-width: 40ch;
  margin: 0.95rem auto 0.65rem;
}

.message {
  font-size: clamp(1.02rem, 2.3vw, 1.16rem);
  line-height: 1.55;
  color: var(--color-ink-soft);
}

.mini-line-bow--card {
  width: 48px;
  margin: 0.65rem auto 1.15rem;
  animation: none;
}

/* Details List (Icon + Label + Value) */
.details {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 470px;
  margin: 0 auto 1.25rem;
  padding: 1.15rem 1.05rem;
  background: rgba(255, 255, 255, 0.56);
  border-top: 1px solid var(--color-border-inner);
  border-bottom: 1px solid var(--color-border-inner);
  border-radius: 6px;
}

.details-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: left;
}

.details-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 0.45rem 0.65rem;
}

.details-label {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-family: var(--font-serif);
  font-size: clamp(0.98rem, 2.1vw, 1.08rem);
  font-weight: 700;
  color: var(--color-ink);
  white-space: nowrap;
}

.detail-icon {
  width: 16px;
  height: 16px;
  color: var(--color-accent-deep);
  flex-shrink: 0;
  transform: translateY(2px);
}

.details-value {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  font-weight: 500;
  color: var(--color-ink-soft);
  overflow-wrap: break-word;
}

.details-value--location {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.42rem;
}

.location-text {
  line-height: 1.45;
}

.btn-map {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  min-height: 36px;
  padding: 0.3rem 0.95rem;
  border: 1px solid rgba(196, 126, 137, 0.5);
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #fffafb 0%, #fae4e8 100%);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(138, 72, 85, 0.1);
  transition:
    transform 0.22s var(--ease-out-silk),
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-map:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #ffffff 0%, #f6d5dc 100%);
  border-color: var(--color-accent-deep);
  box-shadow: 0 4px 12px rgba(138, 72, 85, 0.16);
}

.btn-map:active {
  transform: scale(0.97);
}

.btn-map__icon {
  width: 14px;
  height: 14px;
  color: var(--color-accent-deep);
  flex-shrink: 0;
}

/* Additional Event Details Slot */
.additional-details {
  position: relative;
  z-index: 1;
  max-width: 44ch;
  margin: 0 auto 1.35rem;
  padding: 0.85rem 1rem;
  border: 1px dashed rgba(196, 126, 137, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.36);
}

.additional-details__heading {
  margin-bottom: 0.3rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

.additional-details__text {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 2.1vw, 1.05rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--color-ink-muted);
}

.card__signoff {
  position: relative;
  z-index: 1;
}

.script-closing {
  font-family: var(--font-script);
  font-size: clamp(1.75rem, 4.2vw, 2.25rem);
  line-height: 1.2;
  color: var(--color-ink);
}

.card-actions {
  display: flex;
  justify-content: center;
}

/* =========================================================
   KEYFRAMES
   ========================================================= */

@keyframes fadeUpEntrance {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes gentleBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes gentlePulse {
  0%,
  100% {
    opacity: 0.95;
  }
  50% {
    opacity: 0.58;
  }
}

@keyframes petalFloat {
  0% {
    opacity: 0;
    transform: translateY(-10px) translateX(0) rotate(0deg);
  }
  20% {
    opacity: 0.65;
  }
  80% {
    opacity: 0.55;
  }
  100% {
    opacity: 0;
    transform: translateY(36px) translateX(18px) rotate(48deg);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.8);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.15);
  }
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */

/* Desktop (>= 992px) */
@media (min-width: 992px) {
  .invitation-stage {
    padding-top: clamp(7.5rem, 20vh, 11.5rem);
  }

  .card-stage {
    max-width: min(94vw, 960px);
  }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
  .invitation-stage {
    padding-top: clamp(7rem, 18vh, 10rem);
  }

  .card-stage {
    max-width: min(94vw, 760px);
  }
}

/* Mobile (<= 767px) */
@media (max-width: 767px) {
  .invitation-stage {
    padding: clamp(5.5rem, 15vh, 7.5rem) 0.45rem clamp(4rem, 10vh, 5.5rem);
  }

  .btn-primary {
    width: 100%;
    max-width: 290px;
    min-height: 48px;
  }

  .envelope-stage {
    padding-top: 2.75rem;
  }

  .envelope {
    width: min(92vw, 420px);
  }

  .card-stage {
    max-width: 100%;
    padding-top: 1.35rem;
  }

  .card {
    min-height: auto;
    padding: 2.25rem 0.65rem 0.95rem;
  }

  .card-satin-bow {
    top: -22px;
    width: 82px;
  }

  .card__frame {
    inset: 6px;
  }

  .filigree--card-tl,
  .filigree--card-tr,
  .filigree--card-bl,
  .filigree--card-br {
    width: 24px;
    opacity: 0.65;
  }

  .filigree--card-tl { top: 6px; left: 6px; }
  .filigree--card-tr { top: 6px; right: 6px; }
  .filigree--card-bl { bottom: 6px; left: 6px; }
  .filigree--card-br { bottom: 6px; right: 6px; }

  .details {
    padding: 0.95rem 0.75rem;
  }

  .details-row {
    grid-template-columns: 1fr;
    gap: 0.16rem;
    text-align: center;
  }

  .details-label {
    justify-content: center;
  }

  .details-value--location {
    align-items: center;
  }

  .btn-map {
    min-height: 40px;
    padding: 0.38rem 1.1rem;
  }

  .petal,
  .sparkle {
    opacity: 0.45;
  }
}

/* Extra-narrow mobile (<= 400px) */
@media (max-width: 400px) {
  .invitation-stage {
    padding: 5.25rem 0.35rem 3.75rem;
  }

  .card {
    min-height: auto;
    padding: 2.1rem 0.55rem 0.85rem;
  }

  .filigree--card-tl,
  .filigree--card-tr,
  .filigree--card-bl,
  .filigree--card-br {
    width: 22px;
  }
}

/* Respect Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.15s !important;
    transition-delay: 0s !important;
  }

  .envelope:hover:not(.is-opening):not(.is-opened),
  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none;
  }
}
