:root {
  color-scheme: light;
  --white: #fffefe;
  --paper: #f8f5ff;
  --lavender: #e7ddfb;
  --lavender-deep: #cdbbea;
  --denim: #17254a;
  --denim-soft: #2d4276;
  --blue: #82adf3;
  --blue-deep: #2f65ad;
  --plum: #64215f;
  --plum-soft: #8e4a89;
  --muted: #64709b;
  --rule: rgba(23, 37, 74, 0.18);
  --shadow: 0 24px 80px rgba(23, 37, 74, 0.18), 0 8px 24px rgba(23, 37, 74, 0.1);
  --name-display: "Marcellus", "Cinzel", "Times New Roman", serif;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", serif;
  --sans: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 0;
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(130, 173, 243, 0.32), transparent 28rem),
    radial-gradient(circle at 88% 28%, rgba(100, 33, 95, 0.18), transparent 26rem),
    linear-gradient(145deg, #ffffff 0%, var(--paper) 46%, var(--lavender) 100%);
  color: var(--denim);
  font-family: var(--sans);
  text-rendering: geometricPrecision;
  -webkit-tap-highlight-color: rgba(100, 33, 95, 0.16);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, transparent 0 49.8%, rgba(100, 33, 95, 0.16) 49.8% 50.2%, transparent 50.2%),
    radial-gradient(circle at 50% 0%, rgba(255, 254, 254, 0.75), transparent 32rem);
}

body:not(.invitation-open) {
  overflow-x: hidden;
}

::selection {
  background: var(--plum);
  color: var(--white);
}

a {
  color: inherit;
  text-underline-offset: 0.24em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: 4px;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 30;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  padding: 0.8rem 1rem;
  border: 1px solid var(--denim);
  background: var(--white);
  color: var(--denim);
  font-weight: 800;
}

.skip-link:focus-visible {
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
}

.invitation-shell {
  width: min(100%, 520px);
  margin-inline: auto;
  background:
    linear-gradient(180deg, rgba(255, 254, 254, 0.88), rgba(248, 245, 255, 0.94)),
    var(--paper);
  box-shadow: 0 0 0 1px rgba(23, 37, 74, 0.08), var(--shadow);
  overflow: hidden;
}

.gated-content[hidden] {
  display: none;
}

.section-screen,
.section-panel {
  position: relative;
  isolation: isolate;
}

.section-screen {
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(2rem, 8vw, 4.5rem) 1.2rem;
  padding-left: max(1.2rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.2rem, env(safe-area-inset-right, 0px));
}

.section-panel {
  padding: clamp(3.2rem, 10vw, 5.25rem) 1.35rem;
  padding-left: max(1.35rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.35rem, env(safe-area-inset-right, 0px));
}

body.reveal-motion [data-reveal-section] [data-reveal] {
  opacity: 0;
  filter: blur(4px);
  transition:
    opacity 520ms ease,
    transform 680ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 620ms ease,
    clip-path 680ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0ms;
}

body.reveal-motion [data-reveal-section] [data-reveal="heading"] {
  clip-path: inset(0 0 92% 0);
  transform: translateY(1.2rem);
}

body.reveal-motion [data-reveal-section] [data-reveal="media"] {
  clip-path: inset(7% 0 7% 0);
  filter: blur(8px);
  transform: scale(0.97);
}

body.reveal-motion [data-reveal-section] [data-reveal="backdrop"] {
  clip-path: inset(0 8% 0 8%);
  filter: blur(10px);
}

body.reveal-motion [data-reveal-section] [data-reveal="copy"],
body.reveal-motion [data-reveal-section] [data-reveal="item"],
body.reveal-motion [data-reveal-section] [data-reveal="control"] {
  transform: translateY(0.9rem);
}

body.reveal-motion [data-reveal-section].is-revealed [data-reveal] {
  opacity: 1;
  clip-path: inset(0);
  filter: blur(0);
  transition-delay: calc(var(--reveal-order, 0) * 65ms);
}

body.reveal-motion [data-reveal-section].is-revealed [data-reveal="heading"],
body.reveal-motion [data-reveal-section].is-revealed [data-reveal="media"],
body.reveal-motion [data-reveal-section].is-revealed [data-reveal="copy"],
body.reveal-motion [data-reveal-section].is-revealed [data-reveal="item"],
body.reveal-motion [data-reveal-section].is-revealed [data-reveal="control"] {
  transform: none;
}

body.reveal-motion [data-reveal-section].is-revealed [data-reveal="heading"] {
  clip-path: inset(-0.45rem -0.2rem -0.85rem -0.2rem);
}

body.reveal-motion .couple-intro [data-reveal="media"] {
  clip-path: inset(0 0 100% 0);
  transform: scale(1.025);
}

body.reveal-motion .couple-intro.is-revealed [data-reveal="media"] {
  clip-path: inset(0);
  transform: none;
}

body.reveal-motion .couple-intro .person-card:first-child,
body.reveal-motion .event .event-card:first-child {
  transform: translateX(-1.2rem);
}

body.reveal-motion .couple-intro .person-card:last-child,
body.reveal-motion .event .event-card:last-child {
  transform: translateX(1.2rem);
}

body.reveal-motion .couple-intro.is-revealed .person-card,
body.reveal-motion .event.is-revealed .event-card {
  transform: none;
}

body.reveal-motion .save-date .countdown__clock span {
  opacity: 0;
  transform: translateY(0.75rem) scale(0.94);
  transition: opacity 420ms ease, transform 580ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.reveal-motion .save-date.is-revealed .countdown__clock span {
  opacity: 1;
  transform: none;
}

body.reveal-motion .save-date.is-revealed .countdown__clock span:nth-child(1) {
  transition-delay: 100ms;
}

body.reveal-motion .save-date.is-revealed .countdown__clock span:nth-child(2) {
  transition-delay: 155ms;
}

body.reveal-motion .save-date.is-revealed .countdown__clock span:nth-child(3) {
  transition-delay: 210ms;
}

body.reveal-motion .save-date.is-revealed .countdown__clock span:nth-child(4) {
  transition-delay: 265ms;
}

body.reveal-motion .quote [data-reveal="copy"] {
  transform: translateX(1.25rem);
}

body.reveal-motion .quote.is-revealed [data-reveal="copy"] {
  transform: none;
}

.cover {
  text-align: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 254, 254, 0.92), transparent 15rem),
    linear-gradient(180deg, rgba(231, 221, 251, 0.72), rgba(255, 254, 254, 0.7) 52%, rgba(205, 187, 234, 0.55));
}

.cover__small {
  animation: cover-rise-in 620ms 80ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.cover h1 {
  animation: cover-title-in 820ms 150ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.cover__date {
  animation: cover-rise-in 680ms 260ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.cover .guest-card {
  animation: cover-card-in 760ms 350ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.cover .button {
  animation: cover-rise-in 680ms 470ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cover-rise-in {
  from {
    opacity: 0;
    transform: translateY(0.9rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes cover-title-in {
  from {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: translateY(1.25rem) scale(0.98);
  }

  to {
    opacity: 1;
    clip-path: inset(-0.2rem);
    transform: none;
  }
}

@keyframes cover-card-in {
  from {
    opacity: 0;
    clip-path: inset(8% 0 8% 0);
    transform: translateY(1rem) scale(0.98);
  }

  to {
    opacity: 1;
    clip-path: inset(0);
    transform: none;
  }
}

.cover::before,
.cover::after,
.closing::before {
  position: absolute;
  inset: 1rem;
  z-index: -1;
  content: "";
  border: 1px solid rgba(23, 37, 74, 0.2);
  pointer-events: none;
}

.cover::after {
  inset: 1.45rem;
  border-color: rgba(100, 33, 95, 0.24);
}

.cover__content {
  width: min(100%, 25rem);
}

.cover__small,
.section-heading p,
.credit,
.quote > p,
.cover__date,
.date-mini {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.cover__small,
.section-heading p,
.quote > p {
  color: var(--plum);
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--name-display);
  font-weight: 400;
  letter-spacing: -0.018em;
}

h1 {
  margin: 1rem 0 0.75rem;
  font-size: clamp(4.5rem, 19vw, 7rem);
  line-height: 0.82;
}

h1 span {
  display: block;
  color: var(--plum);
  font-size: 0.42em;
  line-height: 1.1;
}

.cover__date {
  margin-bottom: 1.9rem;
  color: var(--denim-soft);
}

.guest-card {
  margin: 0 auto 1.45rem;
  padding: 1.25rem;
  border: 1px solid var(--rule);
  background: rgba(255, 254, 254, 0.74);
  box-shadow: 0 16px 40px rgba(23, 37, 74, 0.1);
}

.guest-card p,
.guest-card strong,
.guest-card span,
.guest-card small {
  display: block;
}

.guest-card p,
.guest-card span {
  margin-bottom: 0.25rem;
  color: var(--muted);
}

.guest-card strong {
  margin-bottom: 0.25rem;
  font-size: 1.02rem;
}

.guest-card small {
  margin-top: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

.button {
  display: inline-flex;
  min-height: 3.15rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--denim);
  background: transparent;
  color: var(--denim);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 220ms ease, background 220ms ease;
}

.button:active {
  transform: translateY(1px) scale(0.99);
}

.button--primary {
  width: min(100%, 18rem);
  background: var(--denim);
  color: var(--white);
  box-shadow: 0 14px 32px rgba(23, 37, 74, 0.22);
}

.button--secondary {
  margin-top: 1.35rem;
  background: var(--plum);
  border-color: var(--plum);
  color: var(--white);
}

.button--ghost {
  width: 100%;
  margin-top: 1rem;
  background: rgba(255, 254, 254, 0.72);
}

.ornament {
  position: absolute;
  width: 13rem;
  height: 13rem;
  pointer-events: none;
  opacity: 0.62;
  background:
    radial-gradient(ellipse at 50% 100%, transparent 0 42%, rgba(100, 33, 95, 0.65) 43% 44%, transparent 45%),
    radial-gradient(ellipse at 18% 48%, transparent 0 34%, rgba(130, 173, 243, 0.72) 35% 36%, transparent 37%),
    radial-gradient(ellipse at 82% 48%, transparent 0 34%, rgba(100, 33, 95, 0.5) 35% 36%, transparent 37%);
}

.ornament--top {
  top: -4rem;
  right: -4rem;
  transform: rotate(28deg);
}

.ornament--bottom {
  bottom: -4.5rem;
  left: -4rem;
  transform: rotate(205deg);
}

.couple-intro {
  display: grid;
  gap: clamp(1.6rem, 5vw, 2.5rem);
  min-height: calc(100svh - 3.6rem);
  align-content: center;
  padding-bottom: max(6.5rem, calc(5.5rem + env(safe-area-inset-bottom, 0px)));
  text-align: center;
  background: var(--white);
}

.couple-intro .section-heading {
  margin-bottom: 0;
}

.intro__copy p {
  max-width: 31rem;
  margin: 0 auto;
  color: var(--denim-soft);
  font-size: clamp(1rem, 3.6vw, 1.2rem);
  line-height: 1.8;
}

.couple-portrait {
  position: relative;
  width: min(100%, 25rem);
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  overflow: hidden;
  background: var(--lavender);
  box-shadow: 0 18px 46px rgba(23, 37, 74, 0.12);
}

.couple-portrait::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent 68%, rgba(23, 37, 74, 0.16));
}

.couple-portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 48%;
}

.portrait-slide span,
.background-slide span {
  border: 1px solid rgba(255, 254, 254, 0.48);
  background: rgba(23, 37, 74, 0.76);
  color: rgba(255, 254, 254, 0.92);
  padding: 0.72rem 0.82rem;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.section-heading {
  margin-bottom: 1.8rem;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(3.1rem, 12vw, 5.4rem);
  line-height: 0.88;
}

.couple-title {
  color: var(--plum);
  font-size: clamp(3.8rem, 15vw, 6rem);
}

.couple-list {
  display: grid;
  gap: clamp(2.5rem, 8vw, 5.25rem);
  text-align: center;
}

.person-card {
  padding: clamp(1rem, 3vw, 2rem) 1rem;
}

.person-card h3,
.ampersand {
  margin: 0;
  color: var(--plum);
  font-size: clamp(3rem, 13vw, 5.2rem);
  line-height: 0.9;
}

.ampersand {
  font-family: var(--name-display);
  text-align: center;
}

.person-card__name {
  margin: 0.8rem 0 0.4rem;
  font-weight: 800;
}

.person-card p:not(.person-card__name),
.gift__copy,
.closing p,
.event-card p,
.event-card time,
.wish-list p,
.account-card p {
  color: var(--denim-soft);
  line-height: 1.7;
}

.save-date {
  text-align: center;
  background: linear-gradient(180deg, rgba(231, 221, 251, 0.48), rgba(255, 254, 254, 0.7));
}

.countdown__clock {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(23, 37, 74, 0.3);
  border: 1px solid rgba(23, 37, 74, 0.24);
}

.countdown__clock span {
  display: grid;
  gap: 0.2rem;
  padding: 1.05rem 0.3rem;
  background: var(--white);
}

.countdown__clock strong {
  font-family: var(--sans);
  font-size: clamp(2rem, 10vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.countdown__clock em {
  color: var(--plum);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.event-stack {
  display: grid;
  gap: 1rem;
}

.event-card {
  padding: 1.25rem;
  border: 1px solid rgba(23, 37, 74, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 254, 254, 0.94), rgba(231, 221, 251, 0.74)),
    var(--white);
  box-shadow: 0 18px 44px rgba(23, 37, 74, 0.1);
}

.event-card--blue {
  background:
    linear-gradient(135deg, rgba(255, 254, 254, 0.95), rgba(130, 173, 243, 0.26)),
    var(--white);
}

.event-card h3 {
  margin-bottom: 0.6rem;
  font-size: clamp(2.2rem, 10vw, 3.7rem);
  line-height: 0.9;
}

.event-card p,
.event-card time {
  display: block;
  margin-bottom: 0.35rem;
}

.event-note {
  font-weight: 800;
}

.gallery-strip {
  overflow: hidden;
  color: var(--white);
  background: var(--denim);
}

.gallery-strip::before,
.gallery-strip::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.gallery-strip::before {
  inset: -2rem;
  z-index: -2;
  background: url("../images/moment-04.jpg") center 62% / cover no-repeat;
  filter: blur(16px) saturate(0.78);
  transform: scale(1.08);
  animation: gallery-backdrop-zoom 18s cubic-bezier(0.16, 1, 0.3, 1) infinite alternate;
  animation-play-state: paused;
}

.gallery-strip::after {
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(23, 37, 74, 0.72), rgba(100, 33, 95, 0.56));
}

.gallery-strip.is-in-view::before {
  animation-play-state: running;
}

.gallery-strip .section-heading p {
  color: var(--blue);
}

.gallery-strip .section-heading h2,
.gallery-strip .credit {
  color: var(--white);
}

.gallery-strip .slider-dots button {
  border-color: rgba(255, 254, 254, 0.72);
}

.gallery-strip .slider-dots button.is-active::before {
  background: var(--white);
}

@keyframes gallery-backdrop-zoom {
  from {
    transform: scale(1.08);
  }

  to {
    transform: scale(1.16);
  }
}

.photo-slider {
  position: relative;
  width: min(100%, 30rem);
  margin-inline: auto;
}

.slides {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--lavender);
}

.portrait-slide,
.background-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  opacity: 0;
  transform: translateX(var(--slide-enter-x, 8%));
  transition: opacity 420ms ease, transform 480ms cubic-bezier(0.16, 1, 0.3, 1);
}

.portrait-slide {
  border: 1px solid rgba(23, 37, 74, 0.2);
  background:
    linear-gradient(180deg, transparent 54%, rgba(23, 37, 74, 0.48)),
    linear-gradient(150deg, rgba(23, 37, 74, 0.78), rgba(100, 33, 95, 0.5)),
    radial-gradient(circle at 32% 20%, rgba(255, 254, 254, 0.74), transparent 8rem),
    var(--lavender);
  color: rgba(255, 254, 254, 0.82);
  box-shadow: var(--shadow);
}

.portrait-slide:nth-child(2) {
  background:
    linear-gradient(180deg, transparent 54%, rgba(23, 37, 74, 0.48)),
    linear-gradient(135deg, rgba(36, 79, 143, 0.74), rgba(205, 187, 234, 0.44)),
    radial-gradient(circle at 72% 34%, rgba(255, 254, 254, 0.66), transparent 9rem),
    var(--lavender);
}

.portrait-slide:nth-child(3) {
  background:
    linear-gradient(180deg, transparent 54%, rgba(23, 37, 74, 0.48)),
    linear-gradient(160deg, rgba(100, 33, 95, 0.65), rgba(23, 37, 74, 0.74)),
    radial-gradient(circle at 50% 22%, rgba(130, 173, 243, 0.58), transparent 10rem),
    var(--lavender);
}

.portrait-slide:nth-child(4) {
  background:
    linear-gradient(180deg, transparent 54%, rgba(23, 37, 74, 0.48)),
    linear-gradient(145deg, rgba(130, 173, 243, 0.54), rgba(100, 33, 95, 0.64)),
    radial-gradient(circle at 30% 28%, rgba(255, 254, 254, 0.68), transparent 9rem),
    var(--lavender);
}

.portrait-slide:nth-child(5) {
  background:
    linear-gradient(180deg, transparent 54%, rgba(23, 37, 74, 0.48)),
    linear-gradient(155deg, rgba(23, 37, 74, 0.7), rgba(130, 173, 243, 0.5)),
    radial-gradient(circle at 68% 22%, rgba(255, 254, 254, 0.72), transparent 8rem),
    var(--lavender);
}

.portrait-slide--photo {
  border: 0;
  background: var(--denim);
}

.portrait-slide--photo > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 48%;
}

.portrait-slide--lower-focus > img {
  object-position: 50% 66%;
}

.portrait-slide.has-photo,
.background-slide.has-photo {
  isolation: isolate;
  overflow: hidden;
  background: var(--denim);
}

/* Portrait URLs resolve relative to this stylesheet, for example ../images/photo.jpg. */
.portrait-slide.has-photo::before,
.background-slide.has-photo::before {
  position: absolute;
  inset: -8%;
  z-index: 0;
  content: "";
  background-image: var(--portrait-image);
  background-position: var(--portrait-position, center);
  background-size: cover;
  filter: blur(18px) saturate(0.84);
  opacity: 0.9;
  transform: scale(1.1);
}

.portrait-slide.has-photo::after,
.background-slide.has-photo::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  background: rgba(23, 37, 74, 0.22);
  pointer-events: none;
}

.portrait-slide.has-photo > img,
.background-slide.has-photo > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: var(--portrait-position, center);
}

.background-slide.has-photo > img {
  width: min(100%, 36rem);
  margin-inline: auto;
}

.portrait-slide.has-photo.is-active::before,
.background-slide.has-photo.is-active::before {
  animation: portrait-backdrop-zoom 7.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.portrait-slide.has-photo.is-active > img,
.background-slide.has-photo.is-active > img {
  animation: portrait-foreground-zoom 7.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes portrait-backdrop-zoom {
  from {
    transform: scale(1.1);
  }

  to {
    transform: scale(1.17);
  }
}

@keyframes portrait-foreground-zoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.045);
  }
}

[data-slider][data-motion-direction="left"] {
  --slide-enter-x: 8%;
  --slide-exit-x: -8%;
}

[data-slider][data-motion-direction="right"] {
  --slide-enter-x: -8%;
  --slide-exit-x: 8%;
}

[data-slide].is-active {
  opacity: 1;
  transform: translateX(0);
  will-change: opacity, transform;
}

[data-slide].is-leaving {
  z-index: 2;
  opacity: 0;
  transform: translateX(var(--slide-exit-x, -8%));
  will-change: opacity, transform;
}

.slider-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  min-width: 2.75rem;
  min-height: 2.75rem;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 254, 254, 0.44);
  background: rgba(23, 37, 74, 0.72);
  color: var(--white);
  padding: 0.6rem 0.7rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.slider-button--prev {
  left: 0.75rem;
}

.slider-button--next {
  right: 0.75rem;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.slider-dots button {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--plum);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.slider-dots button::before {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 0.58rem;
  height: 0.58rem;
  content: "";
  border-radius: 999px;
  background: transparent;
  transform: translate(-50%, -50%);
}

.slider-dots button.is-active::before {
  background: var(--plum);
}

.credit {
  margin: 1rem 0 0;
  color: var(--muted);
  text-align: center;
}

.image-section::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(150deg, rgba(23, 37, 74, 0.72), rgba(100, 33, 95, 0.5)),
    radial-gradient(circle at 35% 20%, rgba(255, 254, 254, 0.48), transparent 8rem),
    var(--lavender);
}

.image-section::after,
.closing::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background: rgba(23, 37, 74, 0.54);
}

.image-section > :not(.background-slider):not(.slideshow-toggle) {
  position: relative;
  z-index: 1;
}

.background-slider {
  position: absolute;
  inset: 0 auto;
  left: 50%;
  z-index: -1;
  width: min(100%, 36rem);
  overflow: hidden;
  transform: translateX(-50%);
  background: var(--lavender);
  box-shadow: 0 24px 80px rgba(8, 15, 36, 0.34);
}

.background-slider:has(.background-slide.has-photo) {
  width: 100%;
}

.background-slide {
  color: rgba(255, 254, 254, 0.88);
  background:
    linear-gradient(180deg, transparent 52%, rgba(23, 37, 74, 0.64)),
    radial-gradient(circle at 50% 20%, rgba(255, 254, 254, 0.66), transparent 9rem),
    linear-gradient(145deg, rgba(130, 173, 243, 0.52), rgba(100, 33, 95, 0.64)),
    var(--lavender);
}

.background-slide:nth-child(2) {
  background:
    linear-gradient(180deg, transparent 52%, rgba(23, 37, 74, 0.64)),
    radial-gradient(circle at 36% 24%, rgba(255, 254, 254, 0.62), transparent 9rem),
    linear-gradient(155deg, rgba(100, 33, 95, 0.58), rgba(47, 101, 173, 0.68)),
    var(--lavender);
}

.background-slide:nth-child(3) {
  background:
    linear-gradient(180deg, transparent 52%, rgba(23, 37, 74, 0.64)),
    radial-gradient(circle at 66% 20%, rgba(255, 254, 254, 0.68), transparent 9rem),
    linear-gradient(145deg, rgba(47, 101, 173, 0.7), rgba(142, 74, 137, 0.6)),
    var(--lavender);
}

.slideshow-toggle {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top, 0px));
  left: max(1rem, env(safe-area-inset-left, 0px));
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  min-height: 2.75rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 254, 254, 0.5);
  border-radius: 50%;
  background: rgba(23, 37, 74, 0.46);
  backdrop-filter: blur(8px);
  color: var(--white);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.slideshow-toggle:focus-visible {
  border-color: rgba(255, 254, 254, 0.8);
  background: rgba(23, 37, 74, 0.78);
  transform: scale(1.04);
}

.slideshow-toggle:active {
  transform: scale(0.96);
}

.slideshow-toggle__icon {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.slideshow-toggle__icon--play,
.slideshow-toggle[aria-pressed="true"] .slideshow-toggle__icon--pause {
  display: none;
}

.slideshow-toggle[aria-pressed="true"] .slideshow-toggle__icon--play {
  display: block;
}

.slideshow-toggle:disabled {
  cursor: default;
  opacity: 0.52;
  transform: none;
}

.quote {
  min-height: clamp(38rem, 125vw, 46rem);
  display: grid;
  align-content: end;
  justify-items: center;
  color: var(--white);
  text-align: left;
  background: var(--denim);
}

.quote__card {
  width: min(82%, 22rem);
  z-index: 1;
  margin-left: min(12vw, 7rem);
  padding: clamp(0.7rem, 2.4vw, 1rem);
  background: rgba(23, 37, 74, 0.76);
  box-shadow: 0 18px 48px rgba(23, 37, 74, 0.28);
}

.quote__card p {
  margin-bottom: 0.5rem;
  color: var(--blue);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-align: right;
  text-transform: uppercase;
}

blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(0.82rem, 2.8vw, 1.18rem);
  line-height: 1.42;
  letter-spacing: -0.012em;
  text-align: justify;
  text-align-last: left;
}

.wish {
  color: var(--white);
}

.wish::before {
  background:
    linear-gradient(145deg, rgba(100, 33, 95, 0.62), rgba(23, 37, 74, 0.66)),
    radial-gradient(circle at 70% 18%, rgba(130, 173, 243, 0.56), transparent 10rem),
    var(--lavender);
}

.wish::after {
  background: rgba(248, 245, 255, 0.8);
}

.wish .section-heading h2 {
  color: var(--denim);
}

.wish-form {
  display: grid;
  gap: 0.9rem;
}

.local-note {
  max-width: 34rem;
  margin: -0.75rem auto 1.2rem;
  color: var(--denim-soft);
  line-height: 1.7;
  text-align: center;
}

label span {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--plum);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(23, 37, 74, 0.22);
  border-radius: 0;
  background: rgba(255, 254, 254, 0.9);
  color: var(--denim);
  padding: 0.95rem 1rem;
}

textarea {
  resize: vertical;
}

.wish-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.wish-list article,
.account-card {
  padding: 1rem;
  border: 1px solid rgba(23, 37, 74, 0.14);
  background: rgba(255, 254, 254, 0.82);
}

.wish-list article {
  animation: inserted-wish 440ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes inserted-wish {
  from {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(0.75rem);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

.wish-list strong,
.account-card span {
  color: var(--plum);
}

.wish-list p,
.account-card p {
  margin: 0.35rem 0 0;
}

.gift {
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 254, 254, 0.72), rgba(231, 221, 251, 0.6));
}

.gift-accounts {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
  text-align: left;
}

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

.gift-accounts:not([hidden]) {
  animation: revealed-accounts 480ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes revealed-accounts {
  from {
    opacity: 0;
    clip-path: inset(0 0 18% 0);
    filter: blur(4px);
    transform: translateY(0.75rem);
  }

  to {
    opacity: 1;
    clip-path: inset(0);
    filter: blur(0);
    transform: none;
  }
}

.account-card strong {
  display: block;
  margin-top: 0.4rem;
  font-size: 1.4rem;
  font-variant-numeric: tabular-nums;
}

.account-card button {
  margin-top: 0.85rem;
  border: 1px solid var(--denim);
  background: var(--white);
  color: var(--denim);
  padding: 0.65rem 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.copy-status {
  min-height: 1.5rem;
  margin: 0.75rem 0 0;
  color: var(--plum);
  font-weight: 800;
}

.closing {
  min-height: calc(100svh - 4.5rem);
  min-height: calc(100dvh - 4.5rem);
  padding-bottom: max(6rem, calc(5rem + env(safe-area-inset-bottom, 0px)));
  overflow: hidden;
  color: var(--white);
  text-align: center;
  background: var(--denim);
}

.closing::after {
  background: rgba(23, 37, 74, 0.48);
}

.closing::before {
  z-index: 0;
  border-color: rgba(255, 254, 254, 0.22);
}

.closing__content {
  position: relative;
  z-index: 1;
  width: min(100%, 36rem);
}

.slideshow-toggle--closing {
  top: max(1rem, env(safe-area-inset-top, 0px));
  bottom: auto;
}

.closing h2 {
  margin: 1rem 0 0.75rem;
  color: var(--white);
  font-size: clamp(3.6rem, 15.2vw, 5.6rem);
  line-height: 0.82;
}

.closing h2 span {
  display: block;
  color: var(--blue);
  font-size: 0.42em;
  line-height: 1.1;
}

.closing .background-slide span {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.closing p {
  max-width: 34rem;
  margin-inline: auto;
  color: rgba(255, 254, 254, 0.86);
}

.closing p:first-child {
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.music-cluster {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(5rem, calc(4.25rem + env(safe-area-inset-bottom, 0px)));
  z-index: 21;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.music-cluster[hidden] {
  display: none;
}

.music-toggle,
.music-info {
  width: 2.75rem;
  height: 2.75rem;
  min-height: 2.75rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 254, 254, 0.68);
  border-radius: 50%;
  background: rgba(100, 33, 95, 0.94);
  box-shadow: 0 12px 32px rgba(23, 37, 74, 0.28);
  color: var(--white);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.music-toggle:focus-visible,
.music-info:focus-visible {
  border-color: var(--white);
  background: var(--denim);
  transform: scale(1.04);
}

.music-toggle:active,
.music-info:active {
  transform: scale(0.96);
}

.music-toggle:disabled {
  cursor: default;
  opacity: 0.52;
  transform: none;
}

.music-toggle__icon,
.music-info__icon {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.music-toggle__icon--pause,
.music-toggle[aria-pressed="true"] .music-toggle__icon--play {
  display: none;
}

.music-toggle[aria-pressed="true"] .music-toggle__icon--pause {
  display: block;
}

.music-credit {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: min(22rem, calc(100vw - 2rem));
  padding: 1rem 1.1rem 1.15rem;
  border: 1px solid rgba(23, 37, 74, 0.16);
  background: rgba(255, 254, 254, 0.97);
  box-shadow: 0 18px 46px rgba(23, 37, 74, 0.26);
  color: var(--denim);
  animation: music-credit-in 260ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.music-credit[hidden] {
  display: none;
}

.music-credit__title {
  margin: 0 0 0.4rem;
  color: var(--plum);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.music-credit__body {
  margin: 0;
  color: var(--denim-soft);
  font-size: 0.82rem;
  line-height: 1.65;
}

.music-credit__body cite {
  color: var(--denim);
  font-style: italic;
}

.music-credit__body a {
  color: var(--plum);
  text-underline-offset: 0.24em;
}

@keyframes music-credit-in {
  from {
    opacity: 0;
    transform: translateY(0.4rem) scale(0.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.bottom-nav {
  position: fixed;
  right: 50%;
  bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  z-index: 20;
  width: min(calc(100% - 1rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)), 500px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(23, 37, 74, 0.16);
  background: rgba(23, 37, 74, 0.18);
  box-shadow: 0 16px 50px rgba(23, 37, 74, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, calc(100% + 1.5rem));
  transition: opacity 260ms ease, transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.invitation-open .bottom-nav {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(50%);
}

.bottom-nav a {
  display: grid;
  gap: 0.2rem;
  place-items: center;
  min-height: 3.6rem;
  background: rgba(255, 254, 254, 0.92);
  color: var(--denim);
  font-size: 0.68rem;
  font-weight: 800;
  text-decoration: none;
}

.bottom-nav svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.bottom-nav a[aria-current="page"] {
  background: var(--denim);
  color: var(--white);
}

.bottom-nav a:active {
  background: var(--lavender);
}

@media (hover: hover) and (pointer: fine) {
  .button:hover {
    transform: translateY(-2px);
  }

  .slideshow-toggle:hover {
    border-color: rgba(255, 254, 254, 0.8);
    background: rgba(23, 37, 74, 0.78);
    transform: scale(1.04);
  }

  .music-toggle:hover,
  .music-info:hover {
    border-color: var(--white);
    background: var(--denim);
    transform: scale(1.04);
  }
}

@media (max-width: 759px) {
  .section-panel {
    padding-bottom: max(5.75rem, calc(4.75rem + env(safe-area-inset-bottom, 0px)));
  }

  body.reveal-motion [data-reveal-section] [data-reveal] {
    filter: none;
    transition:
      opacity 440ms ease,
      transform 580ms cubic-bezier(0.16, 1, 0.3, 1),
      clip-path 580ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  body.reveal-motion [data-reveal-section] [data-reveal="media"],
  body.reveal-motion [data-reveal-section] [data-reveal="backdrop"] {
    filter: none;
  }

  .slideshow-toggle {
    backdrop-filter: none;
  }

  .portrait-slide.has-photo::before,
  .background-slide.has-photo::before {
    filter: blur(12px) saturate(0.84);
  }
}

@media (min-width: 760px) {
  body {
    padding-block: 2rem 5.5rem;
  }

  .invitation-shell {
    border-radius: 1.7rem;
  }

  .bottom-nav {
    bottom: 1.25rem;
    border-radius: 1.2rem;
  }

  .music-cluster {
    right: calc((100vw - 520px) / 2 + 1rem);
    bottom: 5.7rem;
  }
}

@media (min-width: 980px) {
  body.invitation-open {
    overflow: auto;
  }

  .invitation-shell {
    width: min(calc(100% - 4rem), 1180px);
  }

  .cover__content {
    width: min(100%, 38rem);
  }

  h1 {
    font-size: clamp(6rem, 8.5vw, 9rem);
  }

  .closing h2 {
    font-size: clamp(4.8rem, 6.8vw, 7.2rem);
  }

  .section-panel {
    padding: clamp(4rem, 7vw, 7rem) clamp(3rem, 8vw, 7rem);
  }

  .couple-intro,
  .save-date,
  .event,
  .gift {
    min-height: 64svh;
    align-content: center;
  }

  .intro__copy p {
    font-size: clamp(1.08rem, 1.35vw, 1.35rem);
  }

  .couple-portrait {
    width: min(100%, 29rem);
  }

  .couple-list {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
  }

  .event-stack,
  .gift-accounts {
    grid-template-columns: repeat(2, 1fr);
  }

  .quote,
  .wish,
  .closing {
    min-height: 76svh;
  }

  .quote,
  .closing {
    min-height: 46rem;
  }

  .quote__card {
    width: min(42%, 24rem);
    margin-left: min(24vw, 14rem);
  }

  blockquote {
    max-width: 23rem;
    margin-inline: auto;
    font-size: clamp(0.9rem, 1.08vw, 1.18rem);
  }

  .wish-form,
  .wish-list,
  .gift__copy {
    max-width: 42rem;
    margin-inline: auto;
  }

  .bottom-nav {
    width: min(calc(100% - 4rem), 760px);
  }

  .music-cluster {
    right: calc((100vw - min(calc(100vw - 4rem), 1180px)) / 2 + 1rem);
  }
}

@media (max-width: 440px) {
  .section-panel {
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
  }

  h1 {
    font-size: clamp(4rem, 20vw, 5rem);
  }

  .closing h2 {
    font-size: clamp(3.2rem, 16vw, 4rem);
  }

  .countdown__clock {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .portrait-slide.has-photo::before,
  .background-slide.has-photo::before,
  .portrait-slide.has-photo > img,
  .background-slide.has-photo > img {
    animation: none !important;
    transform: none;
  }

  .gallery-strip::before {
    animation: none !important;
    transform: scale(1.08);
  }

  body.reveal-motion [data-reveal-section] [data-reveal],
  body.reveal-motion [data-reveal-section].is-revealed [data-reveal] {
    opacity: 1;
    clip-path: none;
    filter: none;
    transform: none;
    transition: none;
  }

  .music-credit {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .cover {
    align-items: start;
    padding-top: max(1.5rem, env(safe-area-inset-top, 0px));
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
  }

  .cover h1 {
    font-size: clamp(3.5rem, 13vw, 5.5rem);
  }

  .guest-card {
    margin-bottom: 1rem;
    padding: 1rem;
  }
}
