﻿:root {
  --bg: #f7f2ea;
  --bg-deep: #eadfce;
  --panel: #f4ede4;
  --panel-strong: #e1d4c2;
  --phone-frame-width: 100%;
  --phone-vw: 1vw;
  --text: #2f2823;
  --muted: #867568;
  --shadow: 0 28px 70px rgba(62, 46, 34, 0.16);
}

@media (min-width: 541px) {
  :root {
    --phone-frame-width: 390px;
    --phone-vw: 3.9px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Source Serif 4", serif;
  color: var(--text);
  background: #ffffff;
}

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

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

.hero-section {
  position: relative;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.ambient {
  display: none;
}

.hero-shell {
  position: relative;
  z-index: 1;
  width: min(100%, var(--phone-frame-width));
  min-height: 100vh;
  background: #ffffff;
}

.hero-card {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: #ffffff;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.14) 72%, rgba(255, 255, 255, 0.32) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-copy {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  padding: 10px 28px 28px;
  text-align: center;
  background: transparent;
}

.hero-script,
.hero-name-join,
.date-month,
.details-intro-label,
.details-group-title,
.rsvp-kicker,
.rsvp-deadline-prefix,
.rsvp-deadline-month,
.rsvp-description-script,
.rsvp-form-script {
  font-family: "Qwitcher Grypen", cursive;
  font-weight: 400;
  letter-spacing: 0.01em;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero-script {
  margin: 0;
  color: #2f2924;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.55);
}

.hero-copy .hero-script {
  font-weight: 700;
}

.hero-script-top {
  font-size: clamp(2.75rem, calc(var(--phone-vw) * 9.2), 3.7rem);
  line-height: 0.85;
  white-space: nowrap;
}

.hero-script-bottom {
  margin-top: -6px;
  font-size: clamp(2.1rem, calc(var(--phone-vw) * 7.4), 2.7rem);
  line-height: 0.88;
  white-space: nowrap;
}

.hero-image-wrap {
  position: absolute;
  top: 50px;
  left: 22px;
  right: 22px;
  bottom: 132px;
  border: 0;
  border-radius: 34px 34px 0 0;
  background: #ffffff;
  box-shadow: none;
  outline: 0;
  overflow: hidden;
  z-index: 2;
}

.hero-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  object-position: center 12%;
  outline: 0;
  transform: scale(1.035);
  filter: saturate(0.84) contrast(0.94) brightness(1.03);
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.18) 4%,
    rgba(0, 0, 0, 0.58) 10%,
    rgba(0, 0, 0, 0.9) 18%,
    #000000 28%,
    #000000 52%,
    rgba(0, 0, 0, 0.82) 64%,
    rgba(0, 0, 0, 0.28) 78%,
    rgba(0, 0, 0, 0.22) 82%,
    rgba(0, 0, 0, 0.17) 85%,
    rgba(0, 0, 0, 0.13) 88%,
    rgba(0, 0, 0, 0.1) 91%,
    rgba(0, 0, 0, 0.07) 93%,
    rgba(0, 0, 0, 0.05) 95%,
    rgba(0, 0, 0, 0.035) 96.5%,
    rgba(0, 0, 0, 0.02) 98.5%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.18) 4%,
    rgba(0, 0, 0, 0.58) 10%,
    rgba(0, 0, 0, 0.9) 18%,
    #000000 28%,
    #000000 52%,
    rgba(0, 0, 0, 0.82) 64%,
    rgba(0, 0, 0, 0.28) 78%,
    rgba(0, 0, 0, 0.22) 82%,
    rgba(0, 0, 0, 0.17) 85%,
    rgba(0, 0, 0, 0.13) 88%,
    rgba(0, 0, 0, 0.1) 91%,
    rgba(0, 0, 0, 0.07) 93%,
    rgba(0, 0, 0, 0.05) 95%,
    rgba(0, 0, 0, 0.035) 96.5%,
    rgba(0, 0, 0, 0.02) 98.5%,
    transparent 100%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 28px 42px;
  text-align: center;
}

.hero-names {
  position: relative;
  width: min(100%, 290px);
  margin: 0 auto;
}

.hero-name {
  margin: 0;
  font-size: clamp(3rem, calc(var(--phone-vw) * 11.6), 4.4rem);
  line-height: 0.84;
  letter-spacing: 0.04em;
}

.hero-name-top {
  text-align: center;
}

.hero-name-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  margin-top: -4px;
  padding-left: 12px;
}

.hero-name-bottom {
  text-align: left;
}

.hero-name-join {
  margin: 0;
  font-family: "Qwitcher Grypen", cursive;
  font-size: clamp(2.2rem, calc(var(--phone-vw) * 6.8), 2.65rem);
  line-height: 1;
  color: #3d342e;
  transform: translateY(-2px) rotate(-5deg);
}

.hero-date {
  margin: 18px 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
}

.char-animate .char {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, -32px, 0) rotate(7deg);
  filter: blur(4px);
  transition:
    transform 720ms cubic-bezier(.22, .8, .2, 1),
    opacity 720ms cubic-bezier(.22, .8, .2, 1),
    filter 720ms cubic-bezier(.22, .8, .2, 1);
  will-change: transform, opacity, filter;
}

.char-animate .char-word {
  display: inline-block;
  white-space: nowrap;
}

.char-animate .char-space {
  display: inline-block;
  width: 0.28em;
}

.char-animate .char.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0deg);
  filter: blur(0);
}

.date-section {
  padding: 0 0 10px;
  background: #ffffff;
}

.date-shell {
  width: min(100%, var(--phone-frame-width));
  margin: 0 auto;
  background: #ffffff;
}

.date-card {
  padding: 22px 14px 0;
  background: #ffffff;
}

.date-divider {
  width: min(270px, 78%);
  height: 1px;
  margin: 0 auto 20px;
  background: rgba(47, 40, 35, 0.28);
}

.date-copy {
  text-align: center;
  font-size: 1.06rem;
}

.date-heading {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  padding-top: 20px;
}

.date-month {
  margin: 0 0 18px;
  font-family: "Qwitcher Grypen", cursive;
  font-size: 4rem;
  line-height: 0.8;
  color: #2c251f;
}

.date-day {
  margin: 0;
  font-size: clamp(7.2rem, calc(var(--phone-vw) * 25.4), 10.8rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: #191412;
}

.date-details {
  margin-top: 10px;
  text-align: center;
}

.date-details p {
  margin: 0;
  font-size: clamp(1.18rem, calc(var(--phone-vw) * 4.5), 1.62rem);
  line-height: 1.16;
}

.date-photo-wrap {
  position: relative;
  margin-top: 18px;
  border-radius: 0 0 30px 30px;
  background: #ffffff;
  overflow: hidden;
}

.date-photo-wrap::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 168px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.92) 22%,
    rgba(255, 255, 255, 0.68) 46%,
    rgba(255, 255, 255, 0.22) 76%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.date-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: clamp(380px, 48vh, 560px);
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(0.9) contrast(0.96) brightness(1.03);
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.46) 8%,
    rgba(0, 0, 0, 0.92) 18%,
    #000000 30%,
    #000000 60%,
    rgba(0, 0, 0, 0.78) 72%,
    rgba(0, 0, 0, 0.28) 84%,
    rgba(0, 0, 0, 0.12) 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.46) 8%,
    rgba(0, 0, 0, 0.92) 18%,
    #000000 30%,
    #000000 60%,
    rgba(0, 0, 0, 0.78) 72%,
    rgba(0, 0, 0, 0.28) 84%,
    rgba(0, 0, 0, 0.12) 94%,
    transparent 100%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.countdown-section {
  padding: 0 0 6px;
  background: #ffffff;
}

.countdown-shell {
  width: min(100%, var(--phone-frame-width));
  margin: 0 auto;
  background: #ffffff;
}

.countdown-card {
  padding: 16px 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  background: #ffffff;
}

.countdown-heading {
  width: min(100%, 326px);
  margin: 10px auto 18px;
  text-align: right;
}

.countdown-kicker,
.countdown-title-top,
.countdown-script,
.countdown-title-bottom {
  margin: 0;
  font-size: 2.2rem;
  font-family: "Cormorant Garamond", serif;
  line-height: 0.96;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.countdown-kicker {
  white-space: nowrap;
}

.countdown-title-top {
  margin-top: 6px;
  display: block;
  white-space: nowrap;
}

.countdown-script {
  display: none;
}

.countdown-title-bottom {
  display: block;
  margin-top: 6px;
  white-space: nowrap;
}

.countdown-display {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.countdown-number,
.countdown-separator {
  line-height: 0.84;
  color: #171311;
}

.countdown-number {
  font-size: 4.25rem;
  letter-spacing: -0.05em;
}

.countdown-number-days {
  min-width: 2.5ch;
}

.countdown-separator {
  font-size: 3.7rem;
  transform: translateY(-1px);
}

.countdown-number-accent,
.countdown-separator-accent {
  color: #ff6c72;
}

.countdown-labels {
  width: min(100%, 320px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.countdown-labels span {
  font-size: 0.86rem;
  line-height: 1.1;
  color: #615650;
}

.details-intro-section {
  min-height: 100vh;
  padding: 0;
  display: grid;
  place-items: center;
  background: #ffffff;
}

.details-intro-shell {
  width: min(100%, var(--phone-frame-width));
  min-height: 100vh;
  background: #ffffff;
}

.details-intro-card {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: #ffffff;
}

.details-intro-image-wrap {
  position: absolute;
  top: 42px;
  left: 22px;
  right: 22px;
  bottom: 120px;
  margin-bottom: 40px;
  border-radius: 34px 34px 0 0;
  background: #ffffff;
  overflow: hidden;
}

.details-intro-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 14%;
  filter: grayscale(0.3) saturate(0.75) contrast(0.96) brightness(1.04);
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.42) 9%,
    rgba(0, 0, 0, 0.92) 19%,
    #000000 32%,
    #000000 54%,
    rgba(0, 0, 0, 0.82) 66%,
    rgba(0, 0, 0, 0.28) 80%,
    rgba(0, 0, 0, 0.12) 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.42) 9%,
    rgba(0, 0, 0, 0.92) 19%,
    #000000 32%,
    #000000 54%,
    rgba(0, 0, 0, 0.82) 66%,
    rgba(0, 0, 0, 0.28) 80%,
    rgba(0, 0, 0, 0.12) 92%,
    transparent 100%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.details-intro-content {
  position: relative;
  z-index: 2;
  padding: 0 22px 42px;
  display: flex;
  justify-content: flex-end;
}

.details-intro-label {
  margin: 0;
  display: inline-block;
  font-family: "Qwitcher Grypen", cursive;
  font-size: clamp(4.8rem, calc(var(--phone-vw) * 18), 6.8rem);
  line-height: 0.78;
  letter-spacing: 0.01em;
  color: #2f2823;
  white-space: nowrap;
  text-align: right;
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.38);
}

.details-section {
  padding: 42px 0 52px;
  background: #ffffff;
}

.details-shell {
  width: min(100%, var(--phone-frame-width));
  margin: 0 auto;
  background: #ffffff;
}

.details-card {
  padding: 0 20px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.details-group {
  width: min(100%, 280px);
  text-align: right;
}

.details-group-title {
  margin: 0 0 12px;
  font-family: "Qwitcher Grypen", cursive;
  font-size: clamp(2.7rem, calc(var(--phone-vw) * 12), 4.1rem);
  line-height: 0.82;
  color: #2f2823;
}

.details-group-copy {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.16;
  color: #322a26;
}

.details-mark {
  width: min(100%, 280px);
  margin: 26px 0 30px;
  display: flex;
  justify-content: flex-end;
}

.details-mark::after {
  content: "";
  width: 3.6rem;
  height: 1px;
  background: #2f2823;
}

.details-group-link {
  display: inline-block;
  margin-top: 8px;
  color: #6a6d56;
  font-size: 1rem;
  line-height: 1.16;
  text-decoration: none;
  border-bottom: 1px solid rgba(106, 109, 86, 0.26);
}

.hero-shell,
.hero-copy > *:not(.char-animate),
.hero-content > *:not(.hero-names):not(.char-animate),
.date-divider,
.date-photo-wrap,
.countdown-display,
.countdown-labels,
.details-intro-image-wrap,
.details-group,
.details-mark,
.rsvp-photo-wrap,
.rsvp-description,
.rsvp-choice-card,
.rsvp-form-panel,
.closing-quote-copy,
.closing-quote-photo-wrap {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms ease;
}

body.is-ready .hero-shell,
body.is-ready .hero-copy > *:not(.char-animate),
body.is-ready .hero-content > *:not(.hero-names):not(.char-animate) {
  opacity: 1;
  transform: translateY(0);
}

body.is-ready .hero-shell {
  transition-delay: 80ms;
}

body.is-ready .hero-script-top {
  transition-delay: 220ms;
}

body.is-ready .hero-script-bottom {
  transition-delay: 340ms;
}

body.is-ready .hero-names {
  transition-delay: 460ms;
}

body.is-ready .hero-date {
  transition-delay: 580ms;
}

.date-card.is-visible .date-divider {
  transition-delay: 180ms;
  opacity: 1;
  transform: translateY(0);
}

.date-card.is-visible .date-photo-wrap {
  transition-delay: 540ms;
  opacity: 1;
  transform: translateY(0);
}

.countdown-card.is-visible .countdown-display {
  transition-delay: 380ms;
  opacity: 1;
  transform: translateY(0);
}

.countdown-card.is-visible .countdown-labels {
  transition-delay: 520ms;
  opacity: 1;
  transform: translateY(0);
}

.details-intro-card.is-visible .details-intro-image-wrap {
  transition-delay: 220ms;
  opacity: 1;
  transform: translateY(0);
}

.details-card.is-visible .details-group-1 {
  transition-delay: 320ms;
  opacity: 1;
  transform: translateY(0);
}

.details-card.is-visible .details-mark:nth-of-type(1) {
  transition-delay: 460ms;
  opacity: 1;
  transform: translateY(0);
}

.details-card.is-visible .details-group-2 {
  transition-delay: 560ms;
  opacity: 1;
  transform: translateY(0);
}

.details-card.is-visible .details-mark:nth-of-type(2) {
  transition-delay: 700ms;
  opacity: 1;
  transform: translateY(0);
}

.details-card.is-visible .details-group-3 {
  transition-delay: 800ms;
  opacity: 1;
  transform: translateY(0);
}

.rsvp-section {
  padding: 0 0 88px;
  background: #ffffff;
}

.rsvp-shell {
  width: min(100%, var(--phone-frame-width));
  margin: 0 auto;
  background: #ffffff;
}

.rsvp-card {
  padding: 0 18px 0;
  text-align: center;
  background: #ffffff;
}

.rsvp-photo-wrap {
  position: relative;
  margin: 0 0 28px;
  border-radius: 0 0 30px 30px;
  overflow: hidden;
  background: #ffffff;
}

.rsvp-photo-wrap::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 168px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.92) 22%,
    rgba(255, 255, 255, 0.68) 46%,
    rgba(255, 255, 255, 0.22) 76%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.rsvp-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: clamp(380px, 48vh, 560px);
  object-fit: cover;
  object-position: center 12%;
  filter: saturate(0.9) contrast(0.96) brightness(1.03);
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.46) 8%,
    rgba(0, 0, 0, 0.92) 18%,
    #000000 30%,
    #000000 60%,
    rgba(0, 0, 0, 0.78) 72%,
    rgba(0, 0, 0, 0.28) 84%,
    rgba(0, 0, 0, 0.12) 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.46) 8%,
    rgba(0, 0, 0, 0.92) 18%,
    #000000 30%,
    #000000 60%,
    rgba(0, 0, 0, 0.78) 72%,
    rgba(0, 0, 0, 0.28) 84%,
    rgba(0, 0, 0, 0.12) 94%,
    transparent 100%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.rsvp-copy {
  padding: 12px 4px 0;
}

.rsvp-kicker {
  margin: 0 10px 2px 0;
  font-family: "Qwitcher Grypen", cursive;
  font-size: clamp(2.8rem, calc(var(--phone-vw) * 10), 3.9rem);
  line-height: 0.8;
  text-align: right;
}

.rsvp-title {
  width: min(100%, 290px);
  margin: 0 auto 8px;
}

.rsvp-title-line {
  margin: 0;
  font-size: clamp(6.4rem, calc(var(--phone-vw) * 28), 9rem);
  line-height: 0.74;
  letter-spacing: -0.06em;
}

.rsvp-title-line-top {
  transform: translateX(-8px);
}

.rsvp-title-line-bottom {
  margin-top: -14px;
  transform: translateX(20px);
}

.rsvp-deadline {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  margin: 6px 0 18px;
}

.rsvp-deadline-prefix,
.rsvp-deadline-month {
  margin: 0;
  font-family: "Qwitcher Grypen", cursive;
  line-height: 0.8;
}

.rsvp-deadline-prefix {
  font-size: clamp(2.4rem, calc(var(--phone-vw) * 8), 3.2rem);
  transform: translateY(-10px);
}

.rsvp-deadline-day {
  margin: 0;
  font-size: clamp(4.8rem, calc(var(--phone-vw) * 17), 7.2rem);
  line-height: 0.78;
  letter-spacing: -0.05em;
}

.rsvp-deadline-month {
  font-size: clamp(3rem, calc(var(--phone-vw) * 10), 4rem);
  transform: translateY(-6px);
}

.rsvp-description {
  width: min(100%, 340px);
  margin: 20px auto 28px;
  line-height: 1.08;
  color: #362d29;
}

.rsvp-description-script {
  display: block;
  font-family: "Qwitcher Grypen", cursive;
  font-size: clamp(2.8rem, calc(var(--phone-vw) * 10), 4rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
  text-wrap: balance;
}

.rsvp-description-classic {
  display: block;
  margin-top: 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, calc(var(--phone-vw) * 6.6), 2.45rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
  text-wrap: balance;
}

.rsvp-choice-card,
.rsvp-form-panel {
  width: min(100%, 356px);
  margin: 0 auto;
  padding: 18px 16px 20px;
  border-radius: 16px;
  background: #f5f2f2;
  border: 1px solid rgba(91, 76, 69, 0.08);
  box-shadow: 0 20px 40px rgba(55, 40, 31, 0.06);
}

.rsvp-choice-card.is-required {
  border-color: rgba(255, 157, 160, 0.46);
  box-shadow: 0 0 0 4px rgba(255, 157, 160, 0.14);
}

.rsvp-form {
  width: 100%;
  margin: 0;
}

.rsvp-question {
  margin: 0 0 18px;
  font-size: 1.5rem;
  line-height: 1.08;
  text-align: left;
}

.rsvp-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rsvp-option {
  position: relative;
  padding: 14px 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

.rsvp-option:hover {
  transform: translateY(-2px);
}

.rsvp-option.is-selected {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 26px rgba(72, 53, 43, 0.08);
}

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

.rsvp-option-icon {
  display: block;
  margin-bottom: 10px;
  font-size: 4.5rem;
  line-height: 0.9;
}

.rsvp-option-icon-accept,
.rsvp-option-icon-decline {
  color: #ff9da0;
}

.rsvp-option-title,
.rsvp-option-copy {
  display: block;
}

.rsvp-option-title {
  font-size: 1.26rem;
  line-height: 1;
}

.rsvp-option-copy {
  margin-top: 4px;
  font-size: 1.02rem;
  line-height: 1.04;
}

.rsvp-form-panel {
  margin: 14px auto 0;
  padding: 22px 16px 18px;
}

.rsvp-form-heading {
  margin-bottom: 22px;
}

.rsvp-form-script {
  margin: 0;
  font-family: "Qwitcher Grypen", cursive;
  font-size: clamp(3rem, calc(var(--phone-vw) * 11), 4.8rem);
  line-height: 0.82;
}

.rsvp-form-date {
  margin: 6px 0 0;
  font-size: clamp(3.8rem, calc(var(--phone-vw) * 15), 5.8rem);
  line-height: 0.84;
  letter-spacing: -0.04em;
}

.rsvp-field {
  margin-top: 16px;
  text-align: left;
}

.rsvp-label {
  display: block;
  margin: 0 0 8px;
  color: #7a6f67;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.rsvp-control {
  width: 100%;
  min-height: 58px;
  padding: 16px 18px;
  border: 1px solid rgba(125, 112, 104, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: #2f2823;
  font: inherit;
  font-size: 1.12rem;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.rsvp-control::placeholder {
  color: #b2a8a1;
}

.rsvp-control:focus {
  border-color: rgba(143, 148, 117, 0.92);
  box-shadow: 0 0 0 4px rgba(143, 148, 117, 0.12);
}

.rsvp-select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #302925 50%),
    linear-gradient(135deg, #302925 50%, transparent 50%);
  background-position:
    calc(100% - 24px) calc(50% - 3px),
    calc(100% - 18px) calc(50% - 3px);
  background-repeat: no-repeat;
  background-size: 6px 6px;
  padding-right: 44px;
}

.rsvp-control-notes {
  min-height: 92px;
  resize: vertical;
}

.rsvp-submit {
  width: 100%;
  min-height: 56px;
  margin-top: 20px;
  border: 0;
  border-radius: 18px;
  background: #ff6c72;
  color: #fffaf4;
  font: inherit;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

.rsvp-submit:hover {
  transform: translateY(-1px);
  background: #f15e65;
  box-shadow: 0 14px 24px rgba(255, 108, 114, 0.22);
}

.rsvp-submit:disabled,
.rsvp-form.is-submitting .rsvp-submit {
  transform: none;
  background: #d7a0a3;
  box-shadow: none;
  cursor: wait;
  opacity: 0.82;
  pointer-events: none;
}

.rsvp-form.is-submitted .rsvp-submit {
  background: #e85a61;
}

.rsvp-card.is-visible .rsvp-photo-wrap {
  transition-delay: 180ms;
  opacity: 1;
  transform: translateY(0);
}

.rsvp-card.is-visible .rsvp-description {
  transition-delay: 520ms;
  opacity: 1;
  transform: translateY(0);
}

.rsvp-card.is-visible .rsvp-choice-card {
  transition-delay: 660ms;
  opacity: 1;
  transform: translateY(0);
}

.rsvp-card.is-visible .rsvp-form-panel {
  transition-delay: 780ms;
  opacity: 1;
  transform: translateY(0);
}

.closing-quote-section {
  padding: 0 0 92px;
  background: #ffffff;
}

.closing-quote-shell {
  width: min(100%, var(--phone-frame-width));
  margin: 0 auto;
  background: #ffffff;
}

.closing-quote-card {
  padding: 0 14px;
  background: #ffffff;
}

.closing-quote-copy {
  width: min(100%, 360px);
  margin: 0 auto 18px;
  text-align: center;
}

.closing-quote-text {
  margin: 0;
  font-size: clamp(2.7rem, calc(var(--phone-vw) * 8.5), 4rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
  text-wrap: balance;
  color: #322a26;
}

.closing-quote-photo-wrap {
  position: relative;
  border-radius: 0 0 30px 30px;
  background: #ffffff;
  overflow: hidden;
}

.closing-quote-photo-wrap::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 168px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.92) 22%,
    rgba(255, 255, 255, 0.68) 46%,
    rgba(255, 255, 255, 0.22) 76%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.closing-quote-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: clamp(380px, 48vh, 560px);
  object-fit: cover;
  object-position: center 16%;
  filter: saturate(0.9) contrast(0.96) brightness(1.03);
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.46) 8%,
    rgba(0, 0, 0, 0.92) 18%,
    #000000 30%,
    #000000 60%,
    rgba(0, 0, 0, 0.78) 72%,
    rgba(0, 0, 0, 0.28) 84%,
    rgba(0, 0, 0, 0.12) 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.46) 8%,
    rgba(0, 0, 0, 0.92) 18%,
    #000000 30%,
    #000000 60%,
    rgba(0, 0, 0, 0.78) 72%,
    rgba(0, 0, 0, 0.28) 84%,
    rgba(0, 0, 0, 0.12) 94%,
    transparent 100%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.closing-quote-card.is-visible .closing-quote-copy {
  transition-delay: 180ms;
  opacity: 1;
  transform: translateY(0);
}

.closing-quote-card.is-visible .closing-quote-photo-wrap {
  transition-delay: 320ms;
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 540px) {
  .hero-content {
    padding: 0 22px 34px;
  }

  .hero-copy {
    padding: 14px 14px 22px;
  }

  .hero-script-top {
    font-size: clamp(2.25rem, calc(var(--phone-vw) * 11.3), 3rem);
  }

  .hero-script-bottom {
    font-size: clamp(1.8rem, calc(var(--phone-vw) * 9.1), 2.35rem);
  }

  .hero-image-wrap {
    top: 50px;
    left: 14px;
    right: 14px;
    bottom: 120px;
    border-radius: 28px 28px 0 0;
  }

  .hero-name {
    font-size: clamp(2.8rem, calc(var(--phone-vw) * 12.6), 4rem);
  }

  .hero-name-row {
    gap: 6px;
    padding-left: 10px;
  }

  .hero-name-join {
    font-size: clamp(2rem, calc(var(--phone-vw) * 7.6), 2.45rem);
  }

  .hero-date {
    font-size: 0.9rem;
    letter-spacing: 0.16em;
  }

  .date-month {
    margin-bottom: 12px;
    font-size: 4rem;
  }

  .date-day {
    font-size: clamp(6.35rem, calc(var(--phone-vw) * 27.2), 8.8rem);
  }

  .date-details p {
    font-size: clamp(1rem, calc(var(--phone-vw) * 4.8), 1.28rem);
  }

  .date-photo-wrap {
    border-radius: 0 0 24px 24px;
  }

  .countdown-heading {
    width: min(100%, 300px);
  }

  .countdown-kicker,
  .countdown-title-top,
  .countdown-script,
  .countdown-title-bottom {
    font-size: 1.88rem;
  }

  .details-intro-image-wrap {
    top: 42px;
    left: 14px;
    right: 14px;
    bottom: 112px;
    margin-bottom: 40px;
    border-radius: 28px 28px 0 0;
  }

  .details-intro-content {
    padding: 0 50px 36px;
  }

  .details-intro-label {
    font-size: clamp(4.3rem, calc(var(--phone-vw) * 18), 5.8rem);
  }

  .details-section {
    padding: 32px 0 46px;
  }

  .details-card {
    padding: 0 50px;
  }

  .details-group,
  .details-mark {
    width: min(100%, 300px);
  }

  .details-group-title {
    font-size: clamp(2.4rem, calc(var(--phone-vw) * 12), 3.5rem);
  }

  .details-group-copy {
    font-size: 1.06rem;
    line-height: 1.14;
  }

  .details-mark {
    margin: 22px 0 26px;
  }

  .details-mark::after {
    width: 3.2rem;
  }

  .details-group-link {
    font-size: 0.94rem;
  }

  .rsvp-section {
    padding: 0 0 72px;
  }

  .rsvp-card {
    padding: 0 14px 0;
  }

  .rsvp-photo-wrap {
    margin-bottom: 24px;
    border-radius: 0 0 24px 24px;
  }

  .rsvp-copy {
    padding-top: 16px;
  }

  .rsvp-kicker {
    margin-right: 6px;
    font-size: clamp(2.5rem, calc(var(--phone-vw) * 10), 3.3rem);
  }

  .rsvp-title {
    width: min(100%, 250px);
  }

  .rsvp-title-line {
    font-size: clamp(5.8rem, calc(var(--phone-vw) * 28), 8rem);
  }

  .rsvp-deadline-prefix {
    font-size: clamp(2.2rem, calc(var(--phone-vw) * 8), 2.8rem);
  }

  .rsvp-deadline-day {
    font-size: clamp(4.4rem, calc(var(--phone-vw) * 17), 6.2rem);
  }

  .rsvp-deadline-month {
    font-size: clamp(2.7rem, calc(var(--phone-vw) * 10), 3.5rem);
  }

  .rsvp-description {
    width: min(100%, 300px);
    margin-bottom: 24px;
  }

  .rsvp-description-script {
    font-size: clamp(2.3rem, calc(var(--phone-vw) * 9.2), 3.1rem);
  }

  .rsvp-description-classic {
    font-size: clamp(1.6rem, calc(var(--phone-vw) * 6.1), 2rem);
  }

  .rsvp-choice-card {
    padding: 16px 14px 18px;
    border-radius: 14px;
  }

  .rsvp-form-panel {
    margin-top: 12px;
    padding: 20px 14px 16px;
  }

  .rsvp-form-script {
    font-size: clamp(2.6rem, calc(var(--phone-vw) * 11), 3.8rem);
  }

  .rsvp-form-date {
    font-size: clamp(3.2rem, calc(var(--phone-vw) * 15), 5rem);
  }

  .rsvp-label {
    font-size: 0.76rem;
  }

  .rsvp-control {
    min-height: 54px;
    padding: 14px 16px;
    font-size: 1.04rem;
  }

  .rsvp-control-notes {
    min-height: 84px;
  }

  .rsvp-question {
    font-size: 1.28rem;
  }

  .rsvp-option-icon {
    font-size: 4rem;
  }

  .rsvp-option-title {
    font-size: 1.08rem;
  }

  .rsvp-option-copy {
    font-size: 0.92rem;
  }

  .rsvp-submit {
    min-height: 52px;
    font-size: 1.08rem;
  }

  .closing-quote-section {
    padding: 0 0 78px;
  }

  .closing-quote-card {
    padding: 0 12px;
  }

  .closing-quote-copy {
    width: min(100%, 332px);
    margin-bottom: 16px;
  }

  .closing-quote-text {
    font-size: clamp(2.25rem, calc(var(--phone-vw) * 8.3), 3.2rem);
  }

  .closing-quote-photo-wrap {
    border-radius: 0 0 24px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-shell,
  .hero-copy > *:not(.char-animate),
  .hero-content > *:not(.hero-names):not(.char-animate),
  .date-divider,
  .date-photo-wrap,
  .countdown-display,
  .countdown-labels,
  .details-intro-image-wrap,
  .details-group,
  .details-mark,
  .rsvp-photo-wrap,
  .rsvp-description,
  .rsvp-choice-card,
  .rsvp-form-panel,
  .closing-quote-copy,
  .closing-quote-photo-wrap {
    opacity: 1 !important;
    transform: none !important;
  }

  .char-animate .char {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
