: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);
}

* {
  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-x: hidden;
}

button {
  font: inherit;
}

.save-date-shell {
  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%);
}

.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,
.truck-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: -8vh;
  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 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;
}

.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 {
  margin-top: 1.2rem;
  font-size: clamp(1rem, 2.4vw, 1.55rem);
  color: #fff7d7;
}

.date-line {
  margin-top: 0.45rem;
  font-size: clamp(1.1rem, 3vw, 2rem);
  color: #9f1d25;
  text-shadow:
    0 2px 0 rgba(255, 239, 188, 0.78),
    0 4px 0 rgba(21, 17, 58, 0.52),
    0 12px 26px rgba(255, 242, 199, 0.36);
}

.details-button {
  position: relative;
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: center;
  gap: 0.1rem 0.75rem;
  min-height: 4.45rem;
  margin-top: 1.8rem;
  padding: 0.58rem 1.15rem 0.68rem 1.35rem;
  color: #17123a;
  background:
    radial-gradient(circle at 14% 50%, #fff1a8 0 0.28rem, transparent 0.3rem),
    radial-gradient(circle at 86% 50%, #fff1a8 0 0.28rem, transparent 0.3rem),
    linear-gradient(135deg, #ffe89b, #ff9654 48%, #f13d8d);
  border: 4px solid #17123a;
  border-radius: 1.2rem;
  box-shadow:
    0 0 0 4px #00a4b2,
    0 0 0 8px #fff0b8,
    0 18px 44px rgba(18, 13, 47, 0.32);
  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 {
  content: "";
  position: absolute;
  top: 50%;
  width: 0.72rem;
  height: 2.15rem;
  background:
    linear-gradient(#17123a 0 0) center top / 2px 100% no-repeat,
    radial-gradient(circle at 50% 90%, #f13d8d 0 0.32rem, transparent 0.34rem),
    radial-gradient(circle at 50% 42%, #ffbd2f 0 0.28rem, transparent 0.3rem);
  transform: translateY(-50%);
}

.details-button::before {
  left: -1.25rem;
}

.details-button::after {
  right: -1.25rem;
}

.button-script,
.button-label {
  grid-column: 1;
  line-height: 1;
}

.button-script {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  letter-spacing: 0;
}

.button-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

.details-button:hover {
  transform: translateY(-3px) rotate(-1deg);
  filter: saturate(1.08);
  box-shadow:
    0 0 0 4px #00a4b2,
    0 0 0 8px rgba(255, 240, 184, 0.96),
    0 24px 56px rgba(18, 13, 47, 0.38);
}

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

.details-button svg {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.road {
  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;
}

.road-back {
  bottom: 20vh;
}

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

.truck {
  position: absolute;
  width: min(44vw, 650px);
  height: auto;
  filter: drop-shadow(0 22px 22px rgba(13, 9, 36, 0.34));
  opacity: 0;
  will-change: transform, opacity;
}

.truck-left {
  left: 0;
  bottom: 11vh;
  width: min(47vw, 720px);
  transform: translateX(-115vw) rotate(-2deg);
}

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

.tuktuk {
  left: 50%;
  bottom: 4vh;
  width: min(30vw, 430px);
  transform: translate(-50%, 105vh) rotate(5deg);
}

.horn-burst {
  position: absolute;
  z-index: 5;
  padding: 0.25rem 0.55rem;
  color: #17112f;
  background: #ffdf61;
  border: 3px solid #17112f;
  box-shadow: 0 0 0 3px #f54487;
  border-radius: 0.3rem;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-weight: 900;
  opacity: 0;
}

.burst-one {
  left: 17vw;
  bottom: 35vh;
  transform: rotate(-12deg);
}

.burst-two {
  right: 19vw;
  bottom: 43vh;
  transform: rotate(9deg);
}

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

.journey-map {
  position: relative;
  width: min(1120px, 95vw);
  opacity: 0;
  transform: translateY(28vh) rotate(-1.5deg) scale(0.9);
  filter: drop-shadow(0 28px 72px rgba(16, 12, 43, 0.36));
  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: 100%;
  max-height: min(82vh, 780px);
  object-fit: contain;
  border-radius: 0.35rem;
}

.map-scroll {
  border-radius: 0.35rem;
}

.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 {
  border: 3px solid #17123a;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-weight: 900;
  cursor: pointer;
}

.rsvp-button {
  position: absolute;
  right: clamp(1.2rem, 4vw, 3.4rem);
  bottom: clamp(1.1rem, 3.5vw, 2.8rem);
  display: inline-grid;
  grid-template-columns: auto;
  gap: 0.1rem;
  min-height: 4rem;
  min-width: 12rem;
  padding: 0.55rem 1.1rem;
  color: var(--night);
  background: linear-gradient(135deg, #ffe89b, #ff9654 50%, #f13d8d);
  border-radius: 1rem;
  box-shadow:
    0 0 0 4px #00a4b2,
    0 0 0 8px #fff0b8;
}

.rsvp-layout {
  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(18rem, 1fr) auto;
  gap: 0.8rem;
  padding: clamp(0.85rem, 2vw, 1.3rem);
  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-size: clamp(1.7rem, 4vw, 3.2rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.form-frame {
  min-height: 0;
  overflow: hidden;
  border: 3px solid #17123a;
  border-radius: 0.45rem;
  background: #fff;
}

.form-frame iframe {
  display: block;
  width: 100%;
  height: min(721px, 64vh);
  border: 0;
}

.map-return-button {
  justify-self: center;
  min-height: 2.8rem;
  padding: 0.45rem 1rem;
  color: var(--night);
  background: #ffe89b;
  border-radius: 999px;
  text-transform: uppercase;
}

.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"] .road {
  opacity: 1;
}

.save-date-shell[data-reveal="open"] .truck-left {
  animation: arriveLeft 2.05s 80ms cubic-bezier(0.16, 0.88, 0.23, 1) forwards,
    idleBounce 2.1s 2.2s ease-in-out infinite;
}

.save-date-shell[data-reveal="open"] .truck-right {
  animation: arriveRight 2.15s 330ms cubic-bezier(0.16, 0.88, 0.23, 1) forwards,
    idleBounceSmall 2.35s 2.55s ease-in-out infinite;
}

.save-date-shell[data-reveal="open"] .tuktuk {
  animation: arriveTuktuk 2.1s 680ms cubic-bezier(0.16, 0.88, 0.23, 1) forwards,
    idleBounce 1.85s 2.85s ease-in-out infinite;
}

.save-date-shell[data-reveal="open"] .horn-burst {
  animation: burstPop 900ms 2.05s ease-out forwards;
}

.save-date-shell[data-reveal="open"] .burst-two {
  animation-delay: 2.35s;
}

.save-date-shell[data-view="map"] .journey-map {
  opacity: 1;
  transform: translateY(0) rotate(-0.8deg) scale(1);
  transition-delay: 2.1s;
  pointer-events: auto;
}

.save-date-shell[data-view="rsvp"] .details-arrival,
.save-date-shell[data-view="rsvp"] .truck-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 arriveLeft {
  0% {
    opacity: 0;
    transform: translateX(-115vw) translateY(0) rotate(-4deg);
  }
  72% {
    opacity: 1;
    transform: translateX(8vw) translateY(-0.35rem) rotate(1deg);
  }
  100% {
    opacity: 1;
    transform: translateX(-9vw) translateY(0) rotate(-1deg);
  }
}

@keyframes arriveRight {
  0% {
    opacity: 0;
    transform: translateX(105vw) translateY(0) rotate(4deg);
  }
  72% {
    opacity: 1;
    transform: translateX(-10vw) translateY(-0.25rem) rotate(-1deg);
  }
  100% {
    opacity: 1;
    transform: translateX(8vw) translateY(0) rotate(1deg);
  }
}

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

@keyframes idleBounce {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -0.32rem;
  }
}

@keyframes idleBounceSmall {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -0.22rem;
  }
}

@keyframes burstPop {
  0% {
    opacity: 0;
    scale: 0.2;
  }
  35% {
    opacity: 1;
    scale: 1.08;
  }
  100% {
    opacity: 0;
    scale: 1.28;
  }
}

@media (max-width: 640px) {
  .scene {
    min-height: 100svh;
    padding: 1rem;
  }

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

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

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

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

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

  .truck-left {
    width: 80vw;
    bottom: 14vh;
  }

  .truck-right {
    width: 69vw;
    bottom: 25vh;
  }

  .tuktuk {
    width: 55vw;
    bottom: 6vh;
  }

  .details-arrival {
    padding: 0.75rem;
  }

  .journey-map {
    width: min(94vw, 29rem);
    padding-bottom: 5rem;
    background: rgba(255, 239, 197, 0.72);
    border: 3px solid #17123a;
    border-radius: 0.55rem;
    box-shadow:
      0 0 0 5px #f2428c,
      0 0 0 8px #ffb12a;
    filter: drop-shadow(0 20px 52px rgba(16, 12, 43, 0.32));
  }

  .map-scroll {
    width: 100%;
    max-height: 58svh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .map-art {
    width: min(44rem, 178vw);
    max-width: none;
    max-height: none;
    scroll-snap-align: center;
  }

  .rsvp-button {
    left: 50%;
    right: auto;
    bottom: 0.8rem;
    min-height: 3.35rem;
    min-width: min(17rem, 74vw);
    transform: translateX(-50%);
  }

  .rsvp-card {
    max-height: 94svh;
    width: min(25rem, 94vw);
  }

  .form-frame iframe {
    height: 66svh;
  }

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

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

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

  .detail-sign {
    min-height: 9.3rem;
  }

  .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"] .truck-left {
    opacity: 1;
    transform: translateX(4vw) rotate(-1deg);
  }

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

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