:root {
  --paper: #f3ede2;
  --paper-light: #faf7f0;
  --ink: #1c1815;
  --muted: #6d655e;
  --red: #a6373b;
  --red-deep: #832b2f;
  --olive: #66704c;
  --sage: #cbd3c5;
  --line: rgba(66, 55, 46, 0.16);
  --card: rgba(255, 252, 246, 0.7);
  --font-display: "Libre Baskerville", Baskerville, Georgia, serif;
  --font-body: "Libre Baskerville", Baskerville, Georgia, serif;
  --content-width: 64rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  background: var(--paper);
}

body {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: var(--paper-light);
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.experience {
  height: 100vh;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  overscroll-behavior-y: contain;
}

.experience::-webkit-scrollbar {
  display: none;
}

.screen {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  place-items: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 16% 23%, rgba(84, 70, 55, 0.035) 0 0.65px, transparent 0.8px),
    radial-gradient(circle at 72% 68%, rgba(84, 70, 55, 0.03) 0 0.55px, transparent 0.75px);
  background-size: 8px 8px, 11px 11px;
}

.screen:nth-child(even) {
  background-color: #f6f0e6;
}

.screen-content {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 2rem), var(--content-width));
  max-height: 100dvh;
  padding: clamp(2.8rem, 6vh, 4.5rem) 0;
  text-align: center;
}

.reveal {
  opacity: 1;
}

.reveal > :not(.visually-hidden):not(.card-grid):not(.hero-lockup):not(.hero-scene),
.reveal .info-card {
  opacity: 0;
  transform: translateY(0.8rem);
  transition:
    opacity 480ms var(--ease) var(--item-delay, 60ms),
    transform 560ms var(--ease) var(--item-delay, 60ms);
}

.reveal > :nth-child(2) {
  --item-delay: 110ms;
}

.reveal > :nth-child(3) {
  --item-delay: 170ms;
}

.reveal > :nth-child(4) {
  --item-delay: 230ms;
}

.reveal > :nth-child(5) {
  --item-delay: 290ms;
}

.reveal.is-visible > :not(.visually-hidden):not(.card-grid):not(.hero-lockup):not(.hero-scene),
.reveal.is-visible .info-card {
  opacity: 1;
  transform: translateY(0);
}

.watercolor-wash {
  position: absolute;
  z-index: 0;
  width: min(38rem, 92vw);
  height: min(30rem, 52vh);
  border-radius: 48% 52% 58% 42% / 57% 43% 52% 48%;
  opacity: 0.16;
  filter: blur(2px);
  transform: rotate(-4deg);
}

.watercolor-wash::before,
.watercolor-wash::after {
  position: absolute;
  content: "";
  border-radius: inherit;
  background: inherit;
  filter: blur(10px);
}

.watercolor-wash::before {
  inset: 10% -4% -7% 8%;
  opacity: 0.42;
  transform: rotate(6deg);
}

.watercolor-wash::after {
  inset: -5% 8% 14% -6%;
  opacity: 0.34;
  transform: rotate(-8deg);
}

.watercolor-wash--sage {
  right: -8rem;
  bottom: 4vh;
  background: var(--sage);
}

.watercolor-wash--rose {
  left: -11rem;
  top: 28%;
  background: #c99796;
}

.watercolor-wash--blue {
  right: -9rem;
  top: 17%;
  background: #b9cdd2;
}

.watercolor-wash--sand {
  left: -7rem;
  bottom: 4%;
  background: #d7c5a7;
}

.watercolor-wash--farewell {
  right: auto;
  left: 50%;
  bottom: -11rem;
  width: min(48rem, 110vw);
  transform: translateX(-50%) rotate(-4deg);
}

.section-nav {
  position: fixed;
  z-index: 30;
  top: 50%;
  right: max(0.75rem, env(safe-area-inset-right));
  display: grid;
  gap: 0.72rem;
  padding: 0.75rem 0.5rem;
  transform: translateY(-50%);
}

.section-dot {
  width: 0.58rem;
  height: 0.58rem;
  padding: 0;
  border: 1px solid rgba(28, 24, 21, 0.45);
  border-radius: 50%;
  background: transparent;
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    transform 220ms ease;
}

.section-dot::after {
  position: absolute;
  width: 44px;
  height: 44px;
  content: "";
  transform: translate(-50%, -50%);
}

.section-dot:hover,
.section-dot:focus-visible,
.section-dot.is-active {
  border-color: var(--red);
  background: var(--red);
  transform: scale(1.16);
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-height: none;
  align-items: center;
  justify-content: center;
  gap: clamp(0.3rem, 1.1vh, 0.7rem);
  padding-top: max(clamp(1.15rem, 3vh, 2rem), env(safe-area-inset-top));
  padding-bottom: max(clamp(1.15rem, 3vh, 2rem), env(safe-area-inset-bottom));
}

.hero-lockup {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  width: min(25rem, 62vw, 34vh);
  margin: 0;
}

.hero-lockup__names,
.hero-lockup__wedding {
  width: 100%;
  opacity: 0;
  transition:
    opacity 520ms var(--ease),
    transform 620ms var(--ease);
}

.hero-lockup__names {
  transform: translateY(-0.8rem);
}

.hero-lockup__wedding {
  z-index: 2;
  width: 80%;
  margin: auto; margin-top: -10px; margin-bottom: 15px;
  transition-delay: 110ms;
}

.reveal.is-visible .hero-lockup__names {
  opacity: 1;
  transform: translateY(0);
}

.reveal.is-visible .hero-lockup__wedding {
  opacity: 1;
}

.hero-scene {
  position: relative;
  z-index: 1;
  flex: 1 1 min(42vh, 22rem);
  width: min(32rem, 84vw, 54vh);
  max-height: min(42vh, 22rem);
  min-height: 0;
}

.hero-scene__wash {
  position: absolute;
  z-index: -1;
  top: 49%;
  left: 50%;
  width: 86%;
  max-width: none;
  height: 118%;
  object-fit: contain;
  opacity: 0;
  transform: translate(-50%, -46%) scale(0.97) rotate(-4deg);
  transition:
    opacity 680ms var(--ease) 140ms,
    transform 780ms var(--ease) 140ms;
}

.hero-scene__couple {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 0;
  width: min(70%, 21rem);
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  opacity: 0;
  transform: translate(-50%, 0.9rem);
  transition:
    opacity 560ms var(--ease) 250ms,
    transform 680ms var(--ease) 250ms;
}

.reveal.is-visible .hero-scene__wash {
  opacity: 0.68;
  transform: translate(-50%, -50%) scale(1) rotate(-4deg);
}

.reveal.is-visible .hero-scene__couple {
  opacity: 1;
  transform: translate(-50%, 0);
}

.hero-date-banner {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 3%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: max-content;
  max-width: 96%;
  margin: 0;
  padding: 0.3rem 0.7rem 0.38rem;
  color: #625b55;
  background: rgba(246, 240, 230, 0.93);
  font-size: clamp(0.74rem, 2.6vw, 1.08rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0;
  transform: translate(-50%, 0.55rem);
  transition:
    opacity 430ms var(--ease) 390ms,
    transform 520ms var(--ease) 390ms;
}

.reveal.is-visible .hero-date-banner {
  opacity: 1;
  transform: translate(-50%, 0);
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: clamp(0.74rem, 1.6vw, 0.94rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-cue {
  display: grid;
  flex: 0 0 auto;
  min-height: 44px;
  margin-top: 0;
  padding: 0.25rem 1rem 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: clamp(0.72rem, 2vw, 0.88rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  place-items: center;
}

.hero-arrow {
  display: block;
  width: 2rem;
  height: 2rem;
  margin-top: 0.45rem;
  color: #ef3340;
  animation: scroll-arrow-bounce 1.55s ease-in-out infinite;
}

@keyframes scroll-arrow-bounce {
  0%,
  100% {
    transform: translateY(0.3rem);
  }

  50% {
    transform: translateY(-0.12rem);
  }
}

.welcome-content {
  display: grid;
  justify-items: center;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--red);
  font-size: clamp(0.68rem, 1.5vw, 0.8rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
}

.section-title--nowrap {
  max-width: 100%;
  font-size: clamp(1.72rem, 9vw, 3.5rem);
  white-space: nowrap;
}

.section-copy {
  max-width: 34rem;
  margin: 0.9rem auto 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 2.2vw, 1.12rem);
}

.welcome-illustration {
  width: min(25.5rem, 78vw, 45vh);
  margin: 1rem 0 0.75rem;
  opacity: 0.92;
}

.welcome-illustration img {
  max-height: 32vh;
  object-fit: contain;
}

.button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.65rem;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    color 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.button::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: 5px;
  background-image:
    radial-gradient(circle at 22% 34%, rgba(255, 255, 255, 0.16) 0 0.5px, transparent 0.8px),
    radial-gradient(circle at 71% 66%, rgba(28, 24, 21, 0.12) 0 0.45px, transparent 0.75px);
  background-size: 7px 7px, 9px 9px;
  content: "";
  opacity: 0.58;
}

.button--primary {
  color: #fffaf4;
  background: var(--red);
  box-shadow: 0 8px 24px rgba(131, 43, 47, 0.13);
}

.button--primary:hover {
  background: var(--red-deep);
  box-shadow: 0 10px 28px rgba(131, 43, 47, 0.18);
}

.button--secondary {
  border-color: rgba(131, 43, 47, 0.44);
  color: var(--red-deep);
  background: rgba(250, 247, 240, 0.66);
}

.button--secondary:hover {
  border-color: var(--red);
  background: rgba(255, 252, 246, 0.94);
}

.helper-text {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.cards-content {
  display: grid;
  align-content: center;
  gap: clamp(1.15rem, 3vh, 2rem);
}

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

.card-grid {
  display: grid;
  width: min(100%, 52rem);
  margin: 0 auto;
  gap: clamp(0.62rem, 1.4vh, 0.9rem);
}

.info-card {
  display: grid;
  min-height: 5.55rem;
  grid-template-columns: 5rem 1fr;
  align-items: center;
  gap: 0.9rem;
  padding: 0.52rem 1rem 0.52rem 0.52rem;
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: var(--card);
  box-shadow: 0 8px 30px rgba(54, 43, 35, 0.055);
  text-align: left;
  backdrop-filter: blur(3px);
}

.card-art {
  width: 4.45rem;
  height: 4.45rem;
  border-radius: 1rem;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
}

.itinerary-art,
.location-art {
  background: var(--paper-light);
}

.card-copy {
  display: grid;
  min-width: 0;
  align-content: center;
}

.card-time {
  color: var(--red-deep);
  font-size: clamp(1rem, 2.7vw, 1.22rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.location-card .card-time {
  display: inline-flex;
  align-items: baseline;
  gap: 0.65rem;
  white-space: nowrap;
}

.card-title {
  margin-top: 0.18rem;
  font-size: clamp(0.86rem, 2.2vw, 1rem);
  font-weight: 400;
  line-height: 1.24;
}

.card-kicker,
.card-address {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  line-height: 1.35;
  text-transform: uppercase;
}

.card-kicker {
  font-weight: 400;
}

.card-address {
  margin-top: 0.18rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-link,
.back-to-top {
  width: fit-content;
  margin-top: 0.42rem;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--red-deep);
  background: transparent;
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 200ms ease;
}

.text-link:hover,
.back-to-top:hover {
  color: var(--ink);
}

.gift-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.72fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 4rem);
  text-align: left;
}

.gift-copy {
  justify-self: end;
  width: min(100%, 33rem);
}

.gift-copy .section-copy {
  margin-left: 0;
}

.gift-accounts {
  margin: clamp(1.2rem, 3vh, 2rem) 0 1rem;
  border-top: 1px solid var(--line);
}

.gift-account {
  border-bottom: 1px solid var(--line);
}

.gift-account__heading {
  margin: 0;
}

.gift-account__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0;
  border: 0;
  color: var(--red-deep);
  background: transparent;
  font: inherit;
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 200ms ease;
}

.gift-account__toggle:hover {
  color: var(--red);
}

.gift-account__icon {
  position: relative;
  flex: 0 0 1rem;
  width: 1rem;
  height: 1rem;
  margin-left: 1rem;
}

.gift-account__icon::before,
.gift-account__icon::after {
  position: absolute;
  top: calc(50% - 0.5px);
  left: 0.125rem;
  width: 0.75rem;
  height: 1px;
  background: currentColor;
  content: "";
  transition: transform 200ms ease;
}

.gift-account__icon::after {
  transform: rotate(90deg);
}

.gift-account__toggle[aria-expanded="true"] .gift-account__icon::after {
  transform: rotate(0deg);
}

.gift-account__panel {
  padding: 0 0 1rem;
  animation: gift-account-enter 220ms ease both;
}

.gift-account__panel[hidden] {
  display: none;
}

.bank-details {
  display: grid;
  margin: 0 0 0.9rem;
}

.bank-details > div {
  display: grid;
  grid-template-columns: 5.4rem 1fr;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.bank-details > div:last-child {
  border-bottom: 0;
}

.bank-details dt {
  color: var(--red-deep);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.bank-details dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(0.8rem, 1.8vw, 0.96rem);
  letter-spacing: 0.06em;
}

.gift-account__copy {
  min-width: 10rem;
}

@keyframes gift-account-enter {
  from {
    opacity: 0;
    transform: translateY(-0.25rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gift-illustration {
  width: min(100%, 18rem);
  margin: 0;
  opacity: 0.68;
  mix-blend-mode: multiply;
}

.gift-illustration img {
  max-height: 48vh;
  object-fit: contain;
}

.farewell-content {
  display: grid;
  justify-items: center;
}

.farewell-signature {
  margin: 0.8rem 0 0;
  color: var(--red);
  font-size: clamp(1.1rem, 3vw, 1.55rem);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.pets-illustration {
  width: min(37rem, 82vw);
  margin: clamp(0.7rem, 2vh, 1.4rem) 0 0;
  mix-blend-mode: multiply;
}

.pets-illustration img {
  max-height: 37vh;
  object-fit: contain;
  margin-top: 1rem;
}

.back-to-top {
  min-height: 44px;
  margin-top: 0.55rem;
  padding: 0.4rem 0;
}

.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  max-width: calc(100% - 2rem);
  padding: 0.72rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: #fffaf4;
  background: rgba(28, 24, 21, 0.94);
  box-shadow: 0 12px 32px rgba(28, 24, 21, 0.15);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 1rem);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.spotify-player {
  position: fixed;
  z-index: 25;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  width: min(var(--spotify-width, 17.5rem), calc(100vw - 2rem));
  height: 44px;
  pointer-events: none;
  animation: spotify-enter 520ms var(--ease) 650ms both;
}

.spotify-player[hidden] {
  display: none;
}

.spotify-player__toggle {
  position: absolute;
  right: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 44px;
  gap: 0.62rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(28, 24, 21, 0.18);
  border-radius: 6px;
  color: var(--ink);
  background: rgba(250, 247, 240, 0.96);
  box-shadow: 0 8px 24px rgba(28, 24, 21, 0.12);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: auto;
  transition:
    color 200ms ease,
    background-color 200ms ease,
    border-color 200ms ease;
}

.spotify-player__toggle:hover {
  border-color: rgba(28, 24, 21, 0.35);
  background: #fffaf4;
}

.spotify-equalizer {
  display: flex;
  align-items: end;
  width: 0.9rem;
  height: 0.9rem;
  gap: 2px;
}

.spotify-equalizer i {
  width: 2px;
  height: 100%;
  border-radius: 1px;
  background: var(--red);
  transform: scaleY(0.45);
  transform-origin: center bottom;
  animation: equalizer-level 720ms ease-in-out infinite alternate;
}

.spotify-equalizer i:nth-child(1) {
  animation-duration: 640ms;
  animation-delay: -280ms;
}

.spotify-equalizer i:nth-child(2) {
  animation-duration: 820ms;
  animation-delay: -520ms;
}

.spotify-equalizer i:nth-child(3) {
  animation-duration: 560ms;
  animation-delay: -160ms;
}

.spotify-player__embed {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.55rem);
  width: 100%;
  height: var(--spotify-height, 128px);
  overflow: hidden;
  border: 1px solid rgba(28, 24, 21, 0.12);
  border-radius: 6px;
  background: #121212;
  box-shadow: 0 14px 38px rgba(28, 24, 21, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.45rem);
  transition:
    opacity 220ms ease,
    transform 240ms var(--ease),
    visibility 0s linear 240ms;
}

.spotify-player.is-expanded .spotify-player__embed {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

.spotify-player iframe {
  display: block;
  width: 100%;
  height: var(--spotify-height, 128px);
  border: 0;
  border-radius: 5px;
}

@keyframes spotify-enter {
  from {
    opacity: 0;
    transform: translateY(0.7rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes equalizer-level {
  0% {
    transform: scaleY(0.25);
  }

  45% {
    transform: scaleY(0.9);
  }

  70% {
    transform: scaleY(0.48);
  }

  100% {
    transform: scaleY(1);
  }
}

@media (min-width: 44rem) {
  .card-grid--itinerary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid--locations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .location-card {
    grid-template-columns: 6.2rem 1fr;
    min-height: 8.2rem;
  }

  .location-card .card-art {
    width: 5.6rem;
    height: 6.7rem;
  }
}

@media (max-width: 43.99rem) {
  .screen-content {
    width: min(calc(100% - 2.6rem), 35rem);
    padding-top: max(2.5rem, env(safe-area-inset-top));
    padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
  }

  .section-nav {
    right: 0.25rem;
  }

  .section-dot {
    width: 0.5rem;
    height: 0.5rem;
  }

  .spotify-player {
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    width: min(var(--spotify-width, 17.5rem), calc(100vw - 1.5rem));
  }

  .hero-content {
    width: min(calc(100% - 1.5rem), 35rem);
    padding-top: max(1.15rem, env(safe-area-inset-top));
    padding-bottom: max(1.15rem, env(safe-area-inset-bottom));
  }

  .hero-lockup {
    width: min(22rem, 62vw, 32vh);
  }

  .hero-scene {
    width: min(29rem, 86vw, 50vh);
  }

  .hero-scene__couple {
    width: min(74%, 20rem);
  }

  .gift-content {
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .gift-copy {
    z-index: 2;
    justify-self: center;
  }

  .gift-copy .section-copy {
    margin-left: auto;
  }

  .gift-illustration {
    position: absolute;
    z-index: -1;
    right: -3rem;
    bottom: -18vh;
    width: min(14rem, 48vw);
    opacity: 0.14;
  }

  .bank-details {
    text-align: left;
  }

  .bank-details > div {
    grid-template-columns: 1fr;
    gap: 0.05rem;
  }

  .cards-content {
    gap: 0.9rem;
  }

  .section-heading .eyebrow {
    margin-bottom: 0.35rem;
  }

  .screen--cards .section-title {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }
}

@media (max-height: 43rem) {
  .screen-content {
    padding-top: 1.8rem;
    padding-bottom: 1.8rem;
  }

  .hero-content {
    gap: 0.25rem;
    padding-top: max(1rem, env(safe-area-inset-top));
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .hero-lockup {
    width: min(22rem, 58vw, 29vh);
  }

  .hero-scene {
    width: min(28rem, 80vw, 46vh);
    max-height: min(39vh, 17rem);
  }

  .welcome-illustration {
    margin-block: 0.5rem;
  }

  .info-card {
    min-height: 4.75rem;
    grid-template-columns: 4.1rem 1fr;
  }

  .card-art {
    width: 3.65rem;
    height: 3.65rem;
  }

  .pets-illustration img {
    max-height: 30vh;
  }

  .spotify-player {
    animation: none;
  }
}

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

  .reveal {
    opacity: 1;
  }

  .reveal > :not(.visually-hidden):not(.card-grid):not(.hero-lockup):not(.hero-scene),
  .reveal .info-card,
  .hero-lockup__names,
  .hero-lockup__wedding,
  .hero-scene__wash,
  .hero-scene__couple,
  .hero-date-banner {
    opacity: 1;
    transform: none;
  }

  .hero-scene__wash {
    transform: translate(-50%, -50%) rotate(-4deg);
  }

  .hero-lockup__wedding {
    transform: translate(-50%, 0);
  }

  .hero-scene__couple,
  .hero-date-banner {
    transform: translate(-50%, 0);
  }

  .hero-arrow {
    animation: none;
    transform: none;
  }

  .spotify-player {
    animation: none;
  }
}
