:root {
  --ink: #1b1630;
  --cream: #fff3d5;
  --paper: #ffe6a8;
  --lotus: #f63d85;
  --saffron: #ff9f1c;
  --turquoise: #008f9c;
  --indigo: #26306f;
  --leaf: #2e7d56;
  --night: #16113a;
  --shadow: 0 26px 70px rgba(21, 17, 58, 0.28);
  --regal-shadow: 0 28px 64px rgba(50, 12, 48, 0.46);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: #140f2f;
  font-family: Georgia, "Times New Roman", serif;
  overflow: hidden;
}

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.save-date-shell {
  --primary-button-width: min(34rem, 88vw);
  --map-button-width: clamp(14.5rem, 26vw, 17.5rem);
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 196, 79, 0.44), transparent 27rem),
    linear-gradient(135deg, #130c35 0%, #273d71 48%, #078384 100%);
}

.lock-gate {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #ffeeb8;
  background: transparent;
  transition: opacity 520ms ease, visibility 520ms ease;
}

.gate-panel,
.gate-light {
  position: absolute;
  inset: 0;
}

.gate-panel {
  width: 50.2%;
  background-image: url("../public/assets/generated/ancient-door-desktop.webp");
  background-size: 200% 100%;
  background-repeat: no-repeat;
  filter: saturate(1.04) contrast(1.04);
  transform: translateX(0);
  transition: transform 1350ms cubic-bezier(0.72, 0, 0.18, 1);
  will-change: transform;
}

.gate-left {
  right: 50%;
  background-position: left center;
  transform-origin: left center;
}

.gate-right {
  left: 50%;
  background-position: right center;
  transform-origin: right center;
}

.gate-light {
  z-index: 1;
  opacity: 0.72;
  transform: scale(1);
  background:
    radial-gradient(ellipse at 50% 61%, rgba(255, 186, 71, 0.72), transparent 11rem),
    linear-gradient(90deg, transparent 49.3%, rgba(255, 226, 122, 0.78) 49.88% 50.12%, transparent 50.7%),
    linear-gradient(to bottom, rgba(20, 10, 12, 0.2), rgba(20, 10, 12, 0.4));
  filter: blur(0);
  mix-blend-mode: screen;
  pointer-events: none;
  will-change: opacity, transform, filter;
}

.gate-form {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  width: min(32rem, 88vw);
  padding: clamp(1rem, 2vw, 1.4rem);
  text-align: center;
  transform: translateY(2vh);
  transition: opacity 420ms ease, transform 520ms ease, filter 520ms ease;
}

.gate-kicker,
.gate-form h2,
.gate-error {
  margin: 0;
}

.gate-kicker {
  color: #f6c577;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.gate-form h2 {
  color: #fff0b8;
  font-size: clamp(2.1rem, 6vw, 4rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow: 0 18px 42px rgba(57, 10, 35, 0.7);
}

.gate-field {
  display: grid;
  grid-template-columns: 2.3rem minmax(0, 1fr);
  align-items: center;
  width: min(29rem, 86vw);
  min-height: 3.85rem;
  padding: 0.2rem 0.95rem;
  color: #3c2633;
  background: rgba(255, 244, 215, 0.84);
  border: 2px solid rgba(255, 219, 128, 0.7);
  border-radius: 0.35rem;
  box-shadow: 0 24px 60px rgba(34, 10, 20, 0.52);
  backdrop-filter: blur(7px);
}

.gate-lock {
  color: #8d632d;
  font-size: 1.2rem;
}

.password-input {
  width: 100%;
  min-width: 0;
  color: #3c2633;
  background: transparent;
  border: 0;
  outline: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 2.8vw, 1.35rem);
  letter-spacing: 0.02em;
}

.password-input::placeholder {
  color: rgba(60, 38, 51, 0.72);
}

.unlock-button {
  min-width: 12rem;
  min-height: 3.2rem;
  padding: 0.45rem 1.25rem;
  color: #ffeeb8;
  background:
    linear-gradient(90deg, transparent, rgba(255, 225, 133, 0.28), transparent) center / 80% 1px no-repeat,
    linear-gradient(135deg, rgba(20, 39, 45, 0.94), rgba(27, 48, 48, 0.94));
  border: 2px solid rgba(255, 210, 107, 0.76);
  border-radius: 999px;
  box-shadow: 0 22px 50px rgba(30, 7, 26, 0.48);
  font-size: clamp(1.08rem, 2.6vw, 1.35rem);
  cursor: pointer;
}

.unlock-button:hover,
.unlock-button:focus-visible {
  filter: brightness(1.08) saturate(1.06);
}

.gate-error {
  min-height: 1.2rem;
  color: #ffe7a0;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.save-date-shell[data-gate-error="true"] .gate-form {
  animation: gateShake 260ms ease;
}

.save-date-shell[data-locked="false"] .lock-gate {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition-delay: 1120ms;
}

.save-date-shell[data-locked="false"] .gate-left {
  transform: translateX(-64vw) rotateY(-8deg);
}

.save-date-shell[data-locked="false"] .gate-right {
  transform: translateX(64vw) rotateY(8deg);
}

.save-date-shell[data-locked="false"] .gate-light {
  background:
    radial-gradient(ellipse at 50% 58%, rgba(255, 213, 111, 0.68), transparent 18rem),
    linear-gradient(90deg, transparent 44%, rgba(255, 229, 137, 0.58) 48% 52%, transparent 56%),
    linear-gradient(to bottom, rgba(255, 210, 108, 0.1), transparent 72%);
  animation: gateLightBloom 1350ms ease-out forwards;
}

.save-date-shell[data-locked="false"] .gate-form {
  opacity: 0;
  transform: translateY(-1rem) scale(0.96);
  filter: blur(4px);
}

.scene {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 2vw, 2rem);
}

.mural-backdrop,
.mural-art,
.photo-glow,
.sun-haze,
.lake-ripples,
.paint-cloud,
.elephant-stage,
.details-arrival,
.rsvp-layout {
  position: absolute;
  inset: 0;
}

.mural-backdrop {
  z-index: -3;
  background: #f7b85e;
}

.mural-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.03);
  transform: scale(1.02);
  transition: filter 900ms ease, transform 1200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.photo-glow {
  width: min(62vw, 920px);
  height: auto;
  top: auto;
  left: 50%;
  bottom: 9vh;
  opacity: 0.16;
  mix-blend-mode: screen;
  filter: blur(0.5px) saturate(1.25);
  transform: translateX(-50%);
}

.sun-haze {
  background:
    radial-gradient(circle at 52% 46%, rgba(255, 238, 179, 0.72), transparent 20rem),
    linear-gradient(to bottom, rgba(255, 236, 181, 0.08), rgba(18, 20, 60, 0.26));
  pointer-events: none;
}

.paint-cloud {
  width: 21rem;
  height: 9rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 20% 55%, rgba(255, 255, 255, 0.82) 0 18%, transparent 19%),
    radial-gradient(circle at 42% 42%, rgba(255, 247, 215, 0.82) 0 25%, transparent 26%),
    radial-gradient(circle at 66% 55%, rgba(255, 255, 255, 0.78) 0 20%, transparent 21%);
  opacity: 0.45;
  filter: blur(0.5px);
}

.cloud-one {
  left: 6%;
  top: 18%;
  animation: cloudDrift 18s ease-in-out infinite alternate;
}

.cloud-two {
  right: 4%;
  top: 30%;
  transform: scaleX(-1);
  animation: cloudDrift 22s ease-in-out infinite alternate-reverse;
}

.lake-ripples {
  top: auto;
  height: 34vh;
  bottom: -4vh;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(255, 232, 165, 0.14), transparent 56%),
    linear-gradient(to bottom, transparent, rgba(21, 66, 93, 0.32));
  mask-image: linear-gradient(to bottom, transparent, black 25%);
  animation: waterGlow 8s ease-in-out infinite alternate;
}

.hero-copy {
  position: relative;
  z-index: 4;
  width: min(720px, 92vw);
  margin-top: clamp(0.85rem, 2.4vh, 2rem);
  text-align: center;
  color: var(--cream);
  text-shadow:
    0 3px 0 rgba(27, 22, 48, 0.8),
    0 16px 34px rgba(20, 15, 47, 0.42);
  transition:
    transform 850ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 650ms ease;
}

.eyebrow {
  display: inline-grid;
  place-items: center;
  min-height: 2.75rem;
  margin: 0 0 clamp(0.65rem, 1.5vh, 1rem);
  padding: 0.45rem 1.15rem;
  color: #1a1640;
  background: var(--paper);
  border: 3px solid var(--indigo);
  box-shadow:
    0 0 0 4px var(--lotus),
    0 0 0 7px var(--saffron),
    0 14px 30px rgba(16, 12, 43, 0.25);
  border-radius: 0.35rem;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: none;
  -webkit-font-smoothing: antialiased;
  transform: translateZ(0);
}

h1 {
  margin: 0;
  font-size: clamp(4.2rem, 12vw, 10.5rem);
  line-height: 0.82;
  letter-spacing: 0;
}

h1 span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.name-art {
  display: block;
  width: min(700px, 90vw, 76vh);
  height: auto;
  margin: clamp(-1.05rem, -1.7vh, -0.55rem) auto clamp(-0.9rem, -1.4vh, -0.45rem);
  filter: drop-shadow(0 22px 38px rgba(84, 17, 58, 0.72));
}

.location-line,
.date-line {
  margin: 0;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.location-line {
  display: block;
  width: fit-content;
  margin-top: clamp(0.45rem, 1.25vh, 0.9rem);
  margin-right: auto;
  margin-left: auto;
  padding: 0.18rem 0.78rem 0.26rem;
  color: #9f1d25;
  background: rgba(255, 243, 213, 0.94);
  border: 3px solid #17123a;
  border-radius: 0.34rem;
  box-shadow:
    0 0 0 3px rgba(255, 177, 42, 0.8),
    0 14px 32px rgba(47, 13, 48, 0.28);
  font-size: clamp(1.32rem, 3.25vw, 2.25rem);
  font-weight: 950;
  text-shadow: none;
}

.date-line {
  display: block;
  width: fit-content;
  margin-top: clamp(0.35rem, 1vh, 0.55rem);
  margin-right: auto;
  margin-left: auto;
  padding: 0.2rem 0.72rem 0.26rem;
  color: #fff3d5;
  background: rgba(143, 24, 39, 0.86);
  border: 2px solid rgba(255, 232, 172, 0.82);
  border-radius: 0.38rem;
  box-shadow: 0 14px 36px rgba(47, 13, 48, 0.34);
  font-size: clamp(1.12rem, 3vw, 2rem);
  text-shadow: none;
}

.countdown {
  display: flex;
  justify-content: center;
  margin-top: clamp(0.55rem, 1.45vh, 1rem);
  text-shadow: none;
}

.countdown-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.58rem;
  min-height: 3.2rem;
  padding: 0.5rem 1rem 0.58rem;
  color: #fff7d7;
  background: rgba(159, 29, 37, 0.92);
  border: 3px solid #fff0b8;
  border-radius: 999px;
  box-shadow: var(--regal-shadow);
}

.countdown-item strong {
  color: #fff0b8;
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.countdown-item span {
  color: #fff7d7;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: clamp(0.76rem, 1.55vw, 1rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.details-button {
  position: relative;
  display: inline-grid;
  grid-template-columns: 2.2rem minmax(0, 1fr) 2.2rem;
  grid-template-rows: auto auto;
  align-items: center;
  justify-content: center;
  gap: 0.1rem 1.05rem;
  min-height: clamp(4.4rem, 8.2vh, 5.2rem);
  width: var(--primary-button-width);
  min-width: 0;
  margin-top: clamp(0.7rem, 1.8vh, 1.35rem);
  padding: clamp(0.55rem, 1.25vh, 0.7rem) 1.45rem clamp(0.62rem, 1.35vh, 0.78rem);
  color: #080d46;
  background: linear-gradient(105deg, #ffd36e 0%, #ff9a61 48%, #fa3f91 100%);
  border: 6px solid #080d46;
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 3px rgba(255, 243, 190, 0.72),
    0 28px 68px rgba(56, 13, 54, 0.5);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.details-button::before,
.details-button::after {
  display: none;
}

.button-script,
.button-label {
  grid-column: 2;
  line-height: 1;
  justify-self: center;
  white-space: nowrap;
}

.button-script {
  font-family: "Kohinoor Devanagari", "Noto Sans Devanagari", "Mangal", Georgia, serif;
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.button-label {
  font-size: clamp(0.86rem, 1.45vw, 1.1rem);
  font-weight: 950;
  letter-spacing: 0.28em;
  padding-left: 0.28em;
}

.details-button:hover {
  transform: translateY(-3px) rotate(-1deg);
  filter: saturate(1.08);
  box-shadow: 0 34px 78px rgba(56, 13, 54, 0.56);
}

.details-button:focus-visible {
  outline: 4px solid #00a9b5;
  outline-offset: 6px;
}

.details-button svg {
  grid-column: 3;
  grid-row: 1 / span 2;
  width: clamp(1.55rem, 3vw, 2.15rem);
  height: clamp(1.55rem, 3vw, 2.15rem);
  justify-self: center;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.elephant-stage {
  z-index: 3;
  pointer-events: none;
}

.procession-path {
  position: absolute;
  left: -8vw;
  width: 116vw;
  border-radius: 50%;
  border-top: 0.55rem dashed rgba(255, 233, 151, 0);
  transform: rotate(-1.5deg);
  opacity: 0;
  transition: opacity 700ms ease;
}

.procession-path-back {
  bottom: 39vh;
}

.procession-path-front {
  bottom: 27vh;
  border-top-color: rgba(0, 89, 100, 0);
  transform: rotate(1deg);
}

.elephant {
  position: absolute;
  width: min(38vw, 590px);
  height: auto;
  filter: drop-shadow(0 30px 34px rgba(38, 10, 45, 0.34));
  opacity: 0;
  will-change: transform, opacity;
}

.elephant-lead {
  left: 0;
  bottom: 29vh;
  width: min(36vw, 600px);
  transform: translateX(-115vw) rotate(-2deg);
}

.elephant-right {
  right: 0;
  bottom: 39vh;
  width: min(40vw, 650px);
  transform: translateX(105vw) rotate(1deg);
}

.elephant-small {
  left: 50%;
  bottom: 25vh;
  width: min(28vw, 430px);
  transform: translate(-50%, 95vh) rotate(5deg);
}

.details-arrival {
  z-index: 6;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 2vw, 2rem);
  pointer-events: none;
}

.journey-map {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  width: min(1320px, 98vw);
  opacity: 0;
  transform: translateY(28vh) rotate(-1.5deg) scale(0.9);
  filter: drop-shadow(0 32px 82px rgba(47, 13, 48, 0.46));
  transition:
    transform 900ms cubic-bezier(0.18, 0.9, 0.2, 1.16),
    opacity 650ms ease;
}

.journey-map::before,
.journey-map::after {
  display: none;
}

.map-art {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(76vh, 880px);
  object-fit: contain;
  border-radius: 0.35rem;
}

.map-scroll {
  display: flex;
  justify-content: center;
  width: 100%;
  max-height: min(76vh, 880px);
  overflow: auto;
  border-radius: 0.35rem;
  -webkit-overflow-scrolling: touch;
}

.map-scroll picture {
  display: flex;
  justify-content: center;
  width: 100%;
}

.map-heading {
  position: absolute;
  left: 50%;
  top: clamp(0.9rem, 2.4vw, 1.5rem);
  z-index: 3;
  text-align: center;
  transform: translateX(-50%);
}

.map-heading p,
.map-stop p,
.rsvp-heading p {
  margin: 0;
  color: var(--turquoise);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: clamp(0.72rem, 1.2vw, 0.9rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-stop p {
  display: inline-block;
  margin: 0 0 0.6rem 3.1rem;
  padding: 0.22rem 0.55rem;
  color: #fff7d7;
  background: #008f9c;
  border: 2px solid #17123a;
  border-radius: 999px;
  box-shadow: 0 3px 0 #ffb12a;
}

.map-heading h2 {
  margin: 0;
  color: #9f1d25;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow: 0 3px 0 rgba(255, 244, 206, 0.9);
}

.route-doodle {
  position: absolute;
  inset: 20% 8% auto;
  z-index: 1;
  width: 84%;
  height: 45%;
  overflow: visible;
}

.route-doodle path {
  fill: none;
  stroke: #9f1d25;
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 0.05 0.05;
  filter: drop-shadow(0 5px 0 rgba(255, 182, 44, 0.7));
}

.map-stop {
  position: absolute;
  z-index: 2;
  width: min(380px, 34vw);
  min-height: 11rem;
  padding: 1rem 1.15rem 1.15rem;
  color: var(--night);
  background:
    radial-gradient(circle at 100% 0, rgba(242, 61, 133, 0.2), transparent 5rem),
    #fff0c4;
  border: 4px solid #17123a;
  border-radius: 0.55rem;
  box-shadow:
    0 0 0 5px #00a4b2,
    0 16px 34px rgba(21, 17, 58, 0.24);
}

.stop-delhi {
  left: 7%;
  bottom: 16%;
  transform: rotate(-2deg);
}

.stop-udaipur {
  right: 7%;
  top: 35%;
  transform: rotate(2deg);
}

.stop-pin {
  position: absolute;
  top: -1.3rem;
  left: 1.1rem;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  color: #fff7d7;
  background: #9f1d25;
  border: 3px solid #fff0b8;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #17123a;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-weight: 900;
}

.map-stop h3 {
  margin: 0.1rem 0 0.6rem;
  color: var(--night);
  font-size: clamp(1.65rem, 3.7vw, 3.35rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.map-stop strong {
  display: inline-block;
  color: #9f1d25;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rsvp-button,
.map-return-button,
.home-return-button {
  border: 3px solid #17123a;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-weight: 900;
  cursor: pointer;
}

.rsvp-button {
  position: static;
  z-index: 3;
  justify-self: center;
  display: inline-grid;
  grid-template-columns: auto;
  gap: 0.1rem;
  min-height: 3.55rem;
  width: var(--map-button-width);
  min-width: 0;
  padding: 0.48rem 0.95rem;
  color: var(--night);
  background: linear-gradient(135deg, #ffe89b, #ff9654 50%, #f13d8d);
  border-radius: 1rem;
  box-shadow: 0 22px 48px rgba(47, 13, 48, 0.4);
  order: 3;
}

.rsvp-button .button-script {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

.rsvp-button .button-label {
  font-size: clamp(0.72rem, 1vw, 0.86rem);
  letter-spacing: 0.14em;
  padding-left: 0.14em;
}

.music-toggle {
  position: fixed;
  right: clamp(0.8rem, 2vw, 1.3rem);
  bottom: clamp(0.8rem, 2vw, 1.3rem);
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.7rem;
  padding: 0.45rem 0.75rem;
  color: #17123a;
  background: rgba(255, 240, 184, 0.92);
  border: 3px solid #17123a;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(47, 13, 48, 0.36);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.codex-easter-egg {
  position: fixed;
  right: 0;
  bottom: clamp(7.2rem, 18vh, 10rem);
  z-index: 19;
  display: block;
  width: clamp(4.8rem, 10vw, 7rem);
  transform: translateX(128%) rotate(-7deg);
  filter: drop-shadow(0 18px 28px rgba(35, 10, 44, 0.45));
  opacity: 0;
  pointer-events: none;
  transition: transform 360ms cubic-bezier(0.2, 0.9, 0.2, 1.25), filter 240ms ease;
}

.codex-easter-egg img {
  display: block;
  width: 100%;
  height: auto;
}

.save-date-shell[data-easter="true"] .codex-easter-egg {
  transform: translateX(54%) rotate(-4deg);
  filter: drop-shadow(0 24px 34px rgba(35, 10, 44, 0.52));
  opacity: 0.98;
  pointer-events: auto;
}

.music-icon {
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  color: #fff7d7;
  background: #9f1d25;
  border-radius: 50%;
  line-height: 1;
}

.music-player {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.music-player iframe {
  width: 1px;
  height: 1px;
  border: 0;
}

.thank-you-ending {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  place-items: center;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 420ms ease, visibility 420ms ease;
}

.heart-field,
.ending-shade {
  position: absolute;
  inset: 0;
}

.heart-field {
  z-index: 1;
  overflow: hidden;
}

.ending-shade {
  z-index: 2;
  background:
    radial-gradient(circle at 50% 42%, rgba(159, 29, 37, 0.16), transparent 22rem),
    #05020d;
  opacity: 0;
  transition: opacity 4.8s ease-in;
}

.ending-heart {
  position: absolute;
  left: var(--heart-x);
  top: var(--heart-y);
  z-index: 1;
  width: var(--heart-size);
  height: var(--heart-size);
  color: var(--heart-color);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2) rotate(var(--heart-rotate));
  animation: heartFlood var(--heart-duration) cubic-bezier(0.18, 0.74, 0.18, 1) var(--heart-delay) forwards;
}

.ending-heart::before,
.ending-heart::after {
  position: absolute;
  content: "";
  width: 62%;
  height: 92%;
  background: currentColor;
  border-radius: 62% 62% 0 0;
  box-shadow:
    inset 0.1rem 0.12rem 0 rgba(255, 255, 255, 0.22),
    0 0.35rem 0.9rem rgba(159, 29, 37, 0.22);
}

.ending-heart::before {
  left: 50%;
  transform: rotate(-45deg);
  transform-origin: 0 100%;
}

.ending-heart::after {
  left: 0;
  transform: rotate(45deg);
  transform-origin: 100% 100%;
}

.ending-message {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: clamp(0.7rem, 2vh, 1.15rem);
  opacity: 0;
  transform: translateY(1.3rem) scale(0.96);
  transition:
    opacity 1s ease 4.9s,
    transform 1.1s cubic-bezier(0.18, 0.9, 0.2, 1.08) 4.9s;
}

.ending-message p {
  margin: 0;
  color: #fff0b8;
  font-family: "Kohinoor Devanagari", "Noto Sans Devanagari", "Mangal", Georgia, serif;
  font-size: clamp(1.65rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 0.9;
  text-shadow: 0 0 28px rgba(255, 177, 42, 0.42);
}

.ending-message h2 {
  margin: 0;
  color: #fff7d7;
  font-size: clamp(3.2rem, 12vw, 8rem);
  line-height: 0.86;
  text-align: center;
  text-shadow:
    0 0.08em 0 #7d111d,
    0 0 42px rgba(255, 208, 116, 0.38);
}

.ending-home-link {
  display: block;
  width: clamp(8rem, 18vw, 13rem);
  border-radius: 1.2rem;
  filter: drop-shadow(0 28px 46px rgba(0, 0, 0, 0.5));
  transform: translateY(0);
  transition: transform 180ms ease, filter 180ms ease;
}

.ending-home-link:hover {
  transform: translateY(-0.25rem) rotate(-2deg);
  filter: drop-shadow(0 34px 56px rgba(0, 0, 0, 0.58));
}

.ending-home-link:focus-visible {
  outline: 4px solid #fff0b8;
  outline-offset: 0.45rem;
}

.ending-home-link img {
  display: block;
  width: 100%;
  height: auto;
}

.save-date-shell[data-ending="hearts"] .thank-you-ending,
.save-date-shell[data-ending="thanks"] .thank-you-ending {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.save-date-shell[data-ending="hearts"] .ending-shade,
.save-date-shell[data-ending="thanks"] .ending-shade {
  opacity: 1;
}

.save-date-shell[data-ending="thanks"] .heart-field {
  opacity: 0.12;
  transition: opacity 1.4s ease;
}

.save-date-shell[data-ending="thanks"] .ending-message {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0ms;
}

.petal-field {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.petal {
  position: absolute;
  top: -12vh;
  left: var(--x);
  width: var(--size);
  height: calc(var(--size) * 1.45);
  background:
    radial-gradient(circle at 38% 30%, rgba(255, 255, 255, 0.42), transparent 0.22rem),
    linear-gradient(145deg, #ffd5d8, #f65a8f 62%, #b51d56);
  border-radius: 70% 30% 70% 30%;
  opacity: 0.72;
  filter: drop-shadow(0 6px 5px rgba(91, 20, 56, 0.16));
  animation: petalFall var(--duration) linear var(--delay) infinite;
}

.rsvp-layout {
  position: fixed;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 244, 206, 0.74), transparent 22rem),
    rgba(20, 15, 47, 0.38);
  opacity: 0;
  pointer-events: none;
  transform: translateY(2rem);
  transition: opacity 500ms ease, transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rsvp-card {
  width: min(820px, 96vw);
  max-height: 92vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  padding: clamp(0.85rem, 2vw, 1.3rem);
  overflow: hidden;
  background: #fff0c4;
  border: 4px solid #17123a;
  border-radius: 0.8rem;
  box-shadow:
    0 0 0 6px #f2428c,
    0 0 0 10px #ffb12a,
    0 30px 90px rgba(16, 12, 43, 0.4);
}

.rsvp-heading {
  text-align: center;
}

.rsvp-heading h2 {
  margin: 0;
  color: #9f1d25;
  font-family: Trattatello, Papyrus, Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.native-rsvp-form {
  --answer-lift: -0.72rem;
  min-height: 0;
  overflow: auto;
  padding: 0.15rem 0.35rem 0.4rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(159, 29, 37, 0.56) transparent;
}

.rsvp-progress {
  display: flex;
  justify-content: center;
  min-height: 1.9rem;
  margin-bottom: 0.1rem;
  color: #fff7d7;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rsvp-progress span {
  display: inline-grid;
  place-items: center;
  min-height: 1.7rem;
  padding: 0.22rem 0.72rem;
  background: #17123a;
  border: 2px solid #fff0b8;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(16, 12, 43, 0.18);
}

.question-stack {
  display: grid;
  align-content: start;
  padding: 0.25rem 0.1rem 0.8rem;
}

.rsvp-step {
  position: relative;
  z-index: calc(20 - var(--stack-depth, 0));
  display: grid;
  gap: 0.82rem;
  min-height: 15.5rem;
  margin: 0 auto;
  padding: clamp(1rem, 2vw, 1.35rem);
  width: min(690px, 100%);
  color: var(--night);
  background:
    linear-gradient(135deg, rgba(255, 247, 215, 0.94), rgba(255, 229, 168, 0.96)),
    #fff0c4;
  border: 3px solid #17123a;
  border-radius: 0.55rem;
  box-shadow: none;
  transform: translateY(0) scale(1);
  transform-origin: top center;
  transition:
    transform 460ms cubic-bezier(0.2, 0.86, 0.2, 1),
    opacity 320ms ease,
    filter 320ms ease,
    box-shadow 320ms ease;
}

.rsvp-step + .rsvp-step {
  margin-top: var(--answer-lift);
}

.rsvp-step.is-complete {
  min-height: 4.15rem;
  padding-block: 0.58rem;
  opacity: 0.82;
  filter: saturate(0.88);
  transform: translateY(calc(var(--stack-depth, 1) * -0.16rem)) scale(0.965);
  box-shadow: none;
}

.rsvp-step.is-active {
  opacity: 1;
  background:
    linear-gradient(135deg, #fff7d7, #ffe6a8),
    #fff0c4;
  filter: none;
  transform: translateY(0) scale(1);
  box-shadow: 0 0 0 4px #f2428c, 0 0 0 8px #ffb12a;
}

.rsvp-step.is-future {
  display: none;
}

.rsvp-step.is-complete .field-grid,
.rsvp-step.is-complete .choice-grid,
.rsvp-step.is-complete .address-search-card,
.rsvp-step.is-complete .address-review-note,
.rsvp-step.is-complete .step-actions,
.rsvp-step.is-complete .step-error {
  display: none;
}

.rsvp-step.is-complete h3 {
  display: none;
}

.step-number {
  margin: 0;
  color: #008f9c;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rsvp-step h3 {
  margin: 0;
  color: #9f1d25;
  font-family: Trattatello, Papyrus, Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3.2vw, 2.55rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.rsvp-step h3:focus {
  outline: 0;
}

.rsvp-answer {
  min-height: 1.35rem;
  margin: 0;
  color: #31234d;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.35;
}

.rsvp-step.is-active .rsvp-answer:empty {
  display: none;
}

.step-edit-button {
  position: absolute;
  top: 0.7rem;
  right: 0.72rem;
  min-height: 2rem;
  padding: 0.2rem 0.62rem;
  color: #fff7d7;
  background: #17123a;
  border: 2px solid #fff0b8;
  border-radius: 999px;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.rsvp-step.is-active .step-edit-button {
  display: none;
}

.field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.72rem;
}

.field-grid.two-up,
.address-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.span-two {
  grid-column: 1 / -1;
}

.field-grid label,
.address-search-fallback {
  display: grid;
  gap: 0.32rem;
  min-width: 0;
  margin: 0;
  color: #1c1840;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.73rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field-grid input,
.address-search-fallback input {
  width: 100%;
  min-width: 0;
  min-height: 3.05rem;
  padding: 0.62rem 0.78rem;
  color: #20183d;
  background: rgba(255, 252, 238, 0.94);
  border: 3px solid rgba(23, 18, 58, 0.9);
  border-radius: 0.36rem;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.52);
  font: 900 1rem/1.2 Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  text-transform: none;
}

.field-grid input:focus,
.address-search-fallback input:focus {
  outline: 4px solid rgba(0, 143, 156, 0.5);
  outline-offset: 2px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.choice-tile {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 4.3rem;
  padding: 0.65rem;
  color: #17123a;
  background: rgba(255, 252, 238, 0.92);
  border: 3px solid #17123a;
  border-radius: 0.45rem;
  box-shadow: 0 8px 0 rgba(255, 177, 42, 0.82);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.86rem;
  font-weight: 950;
  line-height: 1.05;
  text-align: center;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.choice-tile input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-tile:has(input:checked) {
  color: #fff7d7;
  background: linear-gradient(135deg, #9f1d25, #f2428c);
  box-shadow: 0 8px 0 #008f9c;
}

.choice-tile:has(input:focus-visible) {
  outline: 4px solid rgba(0, 143, 156, 0.54);
  outline-offset: 3px;
}

.choice-tile:hover {
  transform: translateY(-2px);
}

.address-search-card {
  display: grid;
  gap: 0.45rem;
}

.google-address-search:not(:empty) {
  display: block;
  min-height: 3.2rem;
}

.google-address-search gmp-place-autocomplete {
  width: 100%;
  min-height: 3.2rem;
  color: var(--night);
}

.address-suggestions {
  display: grid;
  gap: 0.34rem;
}

.address-suggestion {
  width: 100%;
  padding: 0.66rem 0.78rem;
  color: #1b153d;
  background: rgba(255, 248, 220, 0.96);
  border: 2px solid rgba(23, 18, 58, 0.72);
  border-radius: 0.34rem;
  font: 900 0.9rem/1.18 Georgia, "Times New Roman", serif;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(0, 143, 156, 0.32);
}

.address-suggestion:hover,
.address-suggestion:focus-visible {
  color: #fff8dc;
  background: #9f1d25;
  outline: none;
}

.address-review-note,
.step-error,
.submit-status {
  min-height: 1.2rem;
  margin: 0;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.address-review-note {
  color: #008f9c;
}

.step-error {
  color: #9f1d25;
}

.submit-status {
  color: #2e7d56;
}

.step-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
}

.step-next-button,
.step-back-button,
.step-submit-button {
  min-height: 2.95rem;
  padding: 0.48rem 0.9rem;
  border: 3px solid #17123a;
  border-radius: 999px;
  font-family: Trattatello, "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.step-next-button,
.step-submit-button {
  margin-left: auto;
  color: #17123a;
  background: linear-gradient(135deg, #ffe89b, #ff9654 52%, #f13d8d);
  box-shadow: 0 14px 28px rgba(47, 13, 48, 0.24);
}

.step-back-button {
  color: #fff7d7;
  background: rgba(23, 18, 58, 0.88);
  border-color: #fff0b8;
}

.review-list {
  display: grid;
  gap: 0.62rem;
  margin: 0;
}

.review-list div {
  display: grid;
  gap: 0.18rem;
  padding: 0.58rem 0.68rem;
  background: rgba(255, 252, 238, 0.72);
  border: 2px solid rgba(23, 18, 58, 0.45);
  border-radius: 0.38rem;
}

.review-list dt {
  color: #008f9c;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.review-list dd {
  margin: 0;
  color: #20183d;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.25;
}

.rsvp-step[data-rsvp-step="4"] {
  gap: 0.62rem;
  min-height: auto;
}

.rsvp-step[data-rsvp-step="4"] h3 {
  font-size: clamp(1.5rem, 3vw, 2.28rem);
}

.rsvp-step[data-rsvp-step="4"] .review-list {
  gap: 0.48rem;
}

.rsvp-step[data-rsvp-step="4"] .review-list div {
  padding: 0.45rem 0.58rem;
}

.rsvp-submit-frame {
  position: absolute;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.map-return-button {
  justify-self: center;
  min-height: 2.8rem;
  width: var(--map-button-width);
  padding: 0.45rem 1rem;
  color: #fff7d7;
  background: rgba(23, 18, 58, 0.88);
  border-color: #fff0b8;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(16, 12, 43, 0.28);
  text-transform: uppercase;
}

.home-return-button {
  position: static;
  z-index: 3;
  justify-self: center;
  min-height: 2.45rem;
  width: var(--map-button-width);
  padding: 0.42rem 0.75rem;
  color: #fff7d7;
  background: rgba(23, 18, 58, 0.86);
  border-color: #fff0b8;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(16, 12, 43, 0.22);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  order: 1;
}

.map-scroll {
  order: 2;
}

.save-date-shell[data-reveal="open"] .mural-art {
  filter: saturate(1.2) contrast(1.1);
  transform: scale(1.06);
}

.save-date-shell[data-reveal="open"] .hero-copy {
  opacity: 0;
  transform: translateY(-12vh) scale(0.92);
  pointer-events: none;
}

.save-date-shell[data-reveal="open"] .procession-path {
  opacity: 1;
}

.save-date-shell[data-reveal="open"] .elephant-lead {
  animation: arriveElephantLeft 2.05s 80ms cubic-bezier(0.16, 0.88, 0.23, 1) forwards;
}

.save-date-shell[data-reveal="open"] .elephant-right {
  animation: arriveElephantRight 2.12s 260ms cubic-bezier(0.16, 0.88, 0.23, 1) forwards;
}

.save-date-shell[data-reveal="open"] .elephant-small {
  animation: arriveElephantSmall 2.08s 520ms cubic-bezier(0.16, 0.88, 0.23, 1) forwards;
}

.save-date-shell[data-elephants="settled"] .elephant-lead {
  opacity: 1;
  transform: translateX(-6vw) translateY(0) rotate(-1deg);
  animation: elephantSway 2.35s ease-in-out infinite;
}

.save-date-shell[data-elephants="settled"] .elephant-right {
  opacity: 1;
  transform: translateX(6vw) translateY(0) rotate(1deg);
  animation: elephantSwaySmall 2.55s ease-in-out infinite;
}

.save-date-shell[data-elephants="settled"] .elephant-small {
  opacity: 1;
  transform: translate(-50%, 0) rotate(2deg);
  animation: elephantSway 2.1s ease-in-out infinite;
}

.save-date-shell[data-view="map"] .journey-map {
  opacity: 1;
  transform: translateY(1.2rem) scale(1);
  transition-delay: 0ms;
  pointer-events: auto;
}

.save-date-shell[data-view="map"] .details-arrival {
  pointer-events: auto;
}

.save-date-shell[data-view="map"][data-map-intro="true"] .journey-map {
  transition-delay: 2.1s;
}

.save-date-shell[data-view="map"][data-fast-map="true"] .journey-map {
  transition-duration: 1ms;
}

.save-date-shell[data-view="rsvp"] .details-arrival,
.save-date-shell[data-view="rsvp"] .elephant-stage {
  opacity: 0;
  pointer-events: none;
}

.save-date-shell[data-view="rsvp"] .rsvp-layout {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@keyframes cloudDrift {
  to {
    translate: 2.4rem 0.7rem;
  }
}

@keyframes waterShift {
  to {
    background-position: 80px 0, 0 0;
  }
}

@keyframes waterGlow {
  to {
    opacity: 0.7;
  }
}

@keyframes arriveElephantLeft {
  0% {
    opacity: 0;
    transform: translateX(-115vw) translateY(0) rotate(-4deg);
  }
  72% {
    opacity: 1;
    transform: translateX(10vw) translateY(-0.45rem) rotate(1deg);
  }
  100% {
    opacity: 1;
    transform: translateX(-6vw) translateY(0) rotate(-1deg);
  }
}

@keyframes arriveElephantRight {
  0% {
    opacity: 0;
    transform: translateX(105vw) translateY(0) rotate(4deg);
  }
  72% {
    opacity: 1;
    transform: translateX(-9vw) translateY(-0.35rem) rotate(-1deg);
  }
  100% {
    opacity: 1;
    transform: translateX(6vw) translateY(0) rotate(1deg);
  }
}

@keyframes arriveElephantSmall {
  0% {
    opacity: 0;
    transform: translate(-50%, 95vh) rotate(7deg);
  }
  74% {
    opacity: 1;
    transform: translate(-50%, -5vh) rotate(-3deg);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0) rotate(2deg);
  }
}

@keyframes elephantSway {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -0.38rem;
  }
}

@keyframes elephantSwaySmall {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -0.26rem;
  }
}

@keyframes petalFall {
  0% {
    opacity: 0;
    transform: translate3d(0, -12vh, 0) rotate(0deg);
  }
  10% {
    opacity: 0.78;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift), 112vh, 0) rotate(calc(var(--spin) * 520deg));
  }
}

@keyframes heartFlood {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.18) rotate(var(--heart-rotate));
  }
  12% {
    opacity: 0.95;
  }
  58% {
    opacity: 0.96;
  }
  100% {
    opacity: 0;
    transform:
      translate(
        calc(-50% + var(--heart-dx)),
        calc(-50% + var(--heart-dy))
      )
      scale(var(--heart-scale))
      rotate(calc(var(--heart-rotate) + var(--heart-spin)));
  }
}

@keyframes gateShake {
  0%,
  100% {
    translate: 0 0;
  }
  35% {
    translate: -0.45rem 0;
  }
  70% {
    translate: 0.45rem 0;
  }
}

@keyframes gateLightBloom {
  0% {
    opacity: 0.78;
    filter: blur(0);
    transform: scaleX(1) scaleY(1);
  }
  24% {
    opacity: 0.86;
    filter: blur(5px);
    transform: scaleX(1.35) scaleY(1.04);
  }
  58% {
    opacity: 0.34;
    filter: blur(14px);
    transform: scaleX(2.05) scaleY(1.1);
  }
  100% {
    opacity: 0;
    filter: blur(24px);
    transform: scaleX(2.8) scaleY(1.16);
  }
}

@media (max-width: 640px) {
  .save-date-shell {
    --primary-button-width: min(18.5rem, 84vw);
    --map-button-width: min(17rem, 74vw);
  }

  .scene {
    min-height: 100svh;
    padding: 1rem;
  }

  .gate-panel {
    background-image: url("../public/assets/generated/ancient-door-mobile.webp");
  }

  .gate-form {
    width: min(23rem, 91vw);
    transform: translateY(-1vh);
  }

  .photo-glow {
    width: 112vw;
    bottom: 18vh;
  }

  .hero-copy {
    margin-top: clamp(0.55rem, 1.8vh, 1.4rem);
    width: min(27rem, 92vw);
  }

  h1 {
    font-size: clamp(4rem, 23vw, 6.4rem);
  }

  .name-art {
    width: min(91vw, 28rem, 69vh);
    margin-top: -0.55rem;
    margin-bottom: -0.45rem;
  }

  .eyebrow {
    min-height: 2.35rem;
    padding-inline: 0.85rem;
    font-size: 0.78rem;
  }

  .details-button {
    min-height: 3.9rem;
    padding-inline: 0.95rem;
    font-size: 0.86rem;
  }

  .location-line {
    font-size: clamp(1.05rem, 5.2vw, 1.35rem);
  }

  .countdown-item {
    gap: 0.45rem;
    padding: 0.45rem 0.85rem 0.52rem;
  }

  .countdown-item span {
    max-width: 9rem;
    line-height: 1.05;
  }

  .elephant-lead {
    width: 72vw;
    bottom: 31vh;
  }

  .elephant-right {
    width: 75vw;
    bottom: 42vh;
  }

  .elephant-small {
    width: 52vw;
    bottom: 24vh;
  }

  .save-date-shell[data-elephants="settled"] .elephant-lead {
    transform: translateX(-13vw) rotate(-1deg);
  }

  .save-date-shell[data-elephants="settled"] .elephant-right {
    transform: translateX(24vw) rotate(1deg);
  }

  .details-arrival {
    padding: 0.75rem;
  }

  .journey-map {
    width: min(94vw, 25rem);
    gap: 0.75rem;
    filter: drop-shadow(0 20px 52px rgba(16, 12, 43, 0.32));
  }

  .save-date-shell[data-view="map"] .journey-map {
    transform: translateY(0) scale(1);
  }

  .map-scroll {
    width: 100%;
    max-height: 72svh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .map-art {
    width: auto;
    max-width: 100%;
    max-height: none;
  }

  .rsvp-button {
    position: static;
    min-height: 3.35rem;
    transform: none;
  }

  .home-return-button {
    position: static;
    transform: none;
  }

  .codex-easter-egg {
    width: 4.9rem;
    bottom: 5.8rem;
  }

  .rsvp-card {
    max-height: 94svh;
    width: min(25rem, 94vw);
    transition: grid-template-rows 220ms ease;
  }

  .rsvp-card[data-form-scrolled="true"] {
    grid-template-rows: 0 minmax(0, 1fr) auto;
  }

  .rsvp-card[data-form-scrolled="true"] .rsvp-heading {
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .native-rsvp-form {
    padding-inline: 0.1rem;
  }

  .rsvp-step {
    min-height: 14.8rem;
    padding: 0.95rem;
  }

  .rsvp-step h3 {
    font-size: clamp(1.42rem, 9vw, 2rem);
  }

  .field-grid.two-up,
  .address-grid,
  .choice-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .choice-tile {
    min-height: 3.35rem;
  }

  .step-actions {
    flex-wrap: wrap;
  }

  .step-next-button,
  .step-back-button,
  .step-submit-button {
    flex: 1 1 8.5rem;
  }

  @keyframes arriveElephantLeft {
    0% {
      opacity: 0;
      transform: translateX(-115vw) rotate(-4deg);
    }
    100% {
      opacity: 1;
      transform: translateX(-13vw) rotate(-1deg);
    }
  }

  @keyframes arriveElephantRight {
    0% {
      opacity: 0;
      transform: translateX(105vw) rotate(4deg);
    }
    100% {
      opacity: 1;
      transform: translateX(24vw) rotate(1deg);
    }
  }
}

@media (max-height: 760px) and (min-width: 641px) {
  .scene {
    padding-block: 0.75rem;
  }

  .hero-copy {
    width: min(650px, 88vw);
    margin-top: 0.55rem;
  }

  .eyebrow {
    min-height: 2.3rem;
    padding-block: 0.35rem;
    font-size: 0.82rem;
  }

  .name-art {
    width: min(600px, 84vw, 70vh);
    margin-top: -0.65rem;
    margin-bottom: -0.5rem;
  }

  .location-line {
    margin-top: 0.35rem;
    font-size: clamp(1.1rem, 2.55vw, 1.65rem);
  }

  .date-line {
    font-size: clamp(1rem, 2.35vw, 1.45rem);
  }

  .countdown-item {
    min-height: 2.75rem;
    padding-block: 0.38rem 0.44rem;
  }

  .countdown-item strong {
    font-size: clamp(1.65rem, 3.4vw, 2.35rem);
  }

  .details-button {
    min-height: 4rem;
    margin-top: 0.65rem;
    padding-block: 0.5rem 0.55rem;
  }
}

@media (max-height: 830px) and (min-width: 641px) {
  .hero-copy {
    margin-top: 0.55rem;
  }

  .eyebrow {
    min-height: 2.35rem;
    margin-bottom: 0.55rem;
    padding-block: 0.34rem;
  }

  .name-art {
    width: min(640px, 86vw, 70vh);
    margin-top: -0.85rem;
    margin-bottom: -0.65rem;
  }

  .details-button {
    margin-top: 0.75rem;
  }
}

@media (max-width: 420px) {
  .location-line,
  .date-line {
    letter-spacing: 0.03em;
  }

  .countdown-item strong {
    font-size: 1.85rem;
  }

  .journey-map {
    width: 95vw;
  }

  .rsvp-heading h2 {
    font-size: 1.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .save-date-shell[data-reveal="open"] .elephant-lead {
    opacity: 1;
    transform: translateX(-6vw) rotate(-1deg);
  }

  .save-date-shell[data-reveal="open"] .elephant-right {
    opacity: 1;
    transform: translateX(6vw) rotate(1deg);
  }

  .save-date-shell[data-reveal="open"] .elephant-small {
    opacity: 1;
    transform: translate(-50%, 0) rotate(2deg);
  }

  .petal {
    display: none;
  }
}
