@font-face {
  font-family: "DK Crayon Crumble";
  src:
    local("DK Crayon Crumble"),
    url("assets/DkCrayonCrumble-ddll.ttf") format("truetype");
  font-display: block;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Lora Wedding";
  src: url("assets/Lora-Variable.ttf") format("truetype");
  font-display: block;
  font-style: normal;
  font-weight: 400 700;
}

:root {
  --bg: #fbfaff;
  --bg-soft: #f1edf7;
  --ink: #3d3748;
  --muted: #6e6878;
  --rose: #8e74b3;
  --sage: #718577;
  --sand: #d2b66d;
  --cream: #fffefa;
  --lavender-deep: #6f568f;
  --lavender-soft: #d8cbed;
  --blush: #c88fa7;
  --gold: #c9a45f;
  --line: rgba(61, 55, 72, 0.14);
  --hand-font: "DK Crayon Crumble", "Ink Free", "Segoe Print", "Comic Sans MS", cursive;
  --body-font: "Lora Wedding", Georgia, "Times New Roman", serif;
  --page-parallax: 0px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overscroll-behavior-y: none;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  overscroll-behavior-y: none;
  color: var(--ink);
  background: linear-gradient(180deg, #fffefa 0%, var(--bg) 54%, #f7f3fb 100%);
  font-family: var(--body-font);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 254, 251, 0.4), rgba(255, 254, 251, 0.32)),
    url("assets/lavender-doodles-bg.png") center calc(var(--page-parallax) * 0.55) / min(1040px, 230vw) auto repeat-y;
  opacity: 0.62;
  filter: saturate(0.95) brightness(1.04);
  will-change: background-position;
}

body.is-locked {
  overflow: hidden;
}

.calendar-gate-enabled body:not(.calendar-unlocked) .date-section ~ .section {
  display: none;
}

.form-gate-enabled body:not(.form-submitted) .final {
  display: none;
}

button,
input {
  font: inherit;
}

.start-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-rows: 1fr auto auto auto auto 1fr;
  justify-items: center;
  align-items: center;
  padding: 48px 28px 34px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(225, 216, 239, 0.72), transparent 11rem),
    linear-gradient(180deg, #fffefa 0%, #f1edf7 100%);
  transition: opacity 0.85s ease, visibility 0.85s ease, transform 0.85s ease;
}

.start-screen.is-opened {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-18px);
}

.start-screen h1 {
  grid-row: 3;
  margin: 0;
  font-family: var(--hand-font);
  font-size: clamp(50px, 15vw, 86px);
  font-weight: 400;
  line-height: 0.94;
  text-transform: lowercase;
  text-shadow: 0.3px 0 currentColor, -0.2px 0.25px rgba(52, 49, 63, 0.42);
  animation: start-title 1.15s cubic-bezier(0.2, 0.72, 0.18, 1) both 0.35s;
}

.start-names,
.start-date {
  margin: 0;
  color: var(--muted);
  font-family: var(--hand-font);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  animation: fade-in 1s ease both 0.5s;
}

.start-names {
  grid-row: 4;
  margin-top: 28px;
  color: var(--rose);
  font-size: clamp(30px, 8vw, 46px);
  line-height: 1;
  text-shadow: 0.22px 0 currentColor, -0.12px 0.18px rgba(142, 116, 179, 0.3);
}

.start-date {
  grid-row: 5;
  margin-top: 10px;
  margin-bottom: 0;
  color: var(--rose);
  font-size: clamp(30px, 8vw, 46px);
  line-height: 1;
  text-shadow: 0.22px 0 currentColor, -0.12px 0.18px rgba(142, 116, 179, 0.3);
}

.heart-scene {
  position: relative;
  grid-row: 2;
  width: 168px;
  height: 126px;
  margin-bottom: 34px;
  animation: heart-float 3.4s ease-in-out infinite;
}

.heart {
  position: relative;
  display: block;
  background: #8e74b3;
  transform: rotate(-45deg);
}

.heart::before,
.heart::after {
  position: absolute;
  width: 100%;
  height: 100%;
  content: "";
  background: inherit;
  border-radius: 50%;
}

.heart::before {
  top: -50%;
  left: 0;
}

.heart::after {
  top: 0;
  left: 50%;
}

.heart-main {
  position: absolute;
  left: 58px;
  top: 36px;
  width: 50px;
  height: 50px;
  filter: drop-shadow(0 24px 40px rgba(52, 49, 63, 0.1));
  animation: heartbeat 1.35s ease-in-out infinite;
}

.heart-left,
.heart-right,
.heart-spark,
.heart-red {
  position: absolute;
  width: 28px;
  height: 28px;
  animation: float-heart 2.8s ease-in-out infinite;
}

.heart-left {
  left: 20px;
  top: 58px;
  background: #bca5d3;
  animation-delay: 0.22s;
}

.heart-right {
  right: 22px;
  top: 18px;
  width: 32px;
  height: 32px;
  background: #d9cbed;
  animation-delay: 0.45s;
}

.heart-spark {
  width: 14px;
  height: 14px;
  background: #a68bc5;
  animation-duration: 2.5s;
}

.heart-spark-one {
  top: 4px;
  left: 49px;
  animation-delay: 0.8s;
}

.heart-spark-two {
  right: 44px;
  bottom: 6px;
  background: #7d609f;
  animation-delay: 1.1s;
}

.heart-spark-three {
  top: 20px;
  left: 6px;
  width: 16px;
  height: 16px;
  background: #eadff4;
  animation-delay: 1.35s;
}

.heart-spark-four {
  right: 8px;
  bottom: 28px;
  width: 18px;
  height: 18px;
  background: #c2add8;
  animation-delay: 1.65s;
}

.heart-red {
  left: 22px;
  bottom: 10px;
  width: 20px;
  height: 20px;
  background: #674b87;
  animation-delay: 0.55s;
}

.heart-slider {
  grid-row: 6;
  position: relative;
  align-self: end;
  width: min(76vw, 292px);
  height: 58px;
  margin-bottom: 16px;
  overflow: hidden;
  color: var(--ink);
  background: rgba(255, 254, 251, 0.96);
  border: 1px solid rgba(52, 49, 63, 0.18);
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(52, 49, 63, 0.08);
  font-family: var(--body-font);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  animation: rise-in 0.9s ease both 0.55s;
}

.heart-slider.is-dragging {
  border-color: rgba(142, 116, 179, 0.48);
}

.heart-slider.is-complete {
  pointer-events: none;
  border-color: rgba(142, 116, 179, 0.56);
  box-shadow: 0 12px 34px rgba(111, 86, 143, 0.18);
}

.heart-slider.is-complete .slider-text {
  opacity: 0;
}

.slider-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--slider-progress, 0%);
  background: linear-gradient(90deg, rgba(216, 203, 237, 0.36), rgba(142, 116, 179, 0.34));
  transition: width 0.16s ease;
}

.heart-slider.is-dragging .slider-fill {
  transition: none;
}

.slider-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-left: 36px;
  color: rgba(52, 49, 63, 0.72);
  font-style: italic;
  opacity: calc(1 - var(--slider-ratio, 0) * 0.7);
}

.slider-heart {
  position: absolute;
  top: 50%;
  left: calc(7px + var(--slider-x, 0px));
  width: 44px;
  height: 44px;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.95), transparent 30%),
    linear-gradient(145deg, #fffefe, #f1ebf7);
  border: 1px solid rgba(142, 116, 179, 0.24);
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(111, 86, 143, 0.2);
  transform: translateY(-50%);
  transition: left 0.16s ease, transform 0.16s ease;
}

.heart-slider.is-dragging .slider-heart {
  transition: none;
  transform: translateY(-50%) scale(1.04);
}

.slider-heart::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--lavender-deep);
  content: "♥";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  line-height: 1;
  text-shadow: 0 2px 6px rgba(111, 86, 143, 0.2);
}

.invite {
  position: relative;
  z-index: 3;
  width: min(100%, 430px);
  margin: 0 auto;
  overflow: hidden;
  background: rgba(255, 254, 251, 0.5);
  box-shadow: 0 0 90px rgba(52, 49, 63, 0.09);
}

.invite::before,
.invite::after {
  display: none;
}

.invite::before {
  left: 0;
}

.invite::after {
  right: 0;
  transform: scaleX(-1);
}

.section {
  position: relative;
  z-index: 1;
  isolation: isolate;
  min-height: 74svh;
  padding: clamp(54px, 13vw, 92px) clamp(24px, 7vw, 42px);
  text-align: center;
}

.section::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(
      90deg,
      rgba(255, 254, 251, 0.2) 0%,
      rgba(255, 254, 251, 0.44) 22%,
      rgba(255, 254, 251, 0.62) 50%,
      rgba(255, 254, 251, 0.44) 78%,
      rgba(255, 254, 251, 0.2) 100%
    );
  opacity: 1;
}

.first {
  --section-doodles-position: center -24px;
  --section-doodles-size: 620px auto;
  --section-doodles-opacity: 0.5;
}

.message,
.place,
.wishes,
.final {
  --section-doodles-position: center -170px;
}

.date-section,
.dress {
  --section-doodles-position: center -340px;
}

.program,
.questionnaire {
  --section-doodles-position: center -520px;
}

.first {
  min-height: 100svh;
  display: grid;
  align-content: center;
  gap: 18px;
}

.section::after {
  position: absolute;
  right: 34px;
  bottom: 24px;
  left: 34px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

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

h2 {
  margin-bottom: 18px;
  font-family: var(--hand-font);
  font-size: clamp(40px, 11vw, 58px);
  font-weight: 400;
  line-height: 0.98;
  text-shadow: 0.3px 0 currentColor, -0.2px 0.25px rgba(52, 49, 63, 0.36);
}

h3 {
  margin-bottom: 14px;
  font-family: var(--hand-font);
  font-size: clamp(27px, 7vw, 38px);
  font-weight: 400;
  line-height: 1.04;
  text-shadow: 0.25px 0 currentColor, -0.15px 0.2px rgba(52, 49, 63, 0.34);
}

.names-block h2,
.section > h2,
.section > h3,
.place-text h2 {
  position: relative;
  display: inline-block;
}

.names-block h2::after,
.section > h2::after,
.section > h3::after,
.place-text h2::after {
  position: absolute;
  right: 8%;
  bottom: -9px;
  left: 8%;
  height: 11px;
  pointer-events: none;
  content: "";
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 18'%3E%3Cpath d='M5 11c28-5 55-6 83-4 41 3 79 7 147-2' fill='none' stroke='%238e74b3' stroke-width='3' stroke-linecap='round' stroke-dasharray='10 4 5 6' opacity='.72'/%3E%3Cpath d='M9 13c48-6 100 1 224-8' fill='none' stroke='%23718577' stroke-width='1.5' stroke-linecap='round' stroke-dasharray='6 5' opacity='.38'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  opacity: 0;
  transform: scaleX(0.3) rotate(-1deg);
  transform-origin: left center;
}

.section.reveal.is-visible .names-block h2::after,
.section.reveal.is-visible > h2::after,
.section.reveal.is-visible > h3::after,
.section.reveal.is-visible .place-text h2::after {
  animation: chalk-underline 0.95s cubic-bezier(0.2, 0.72, 0.18, 1) both 0.46s;
}

p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: clamp(18px, 4.8vw, 24px);
  line-height: 1.36;
}

.tiny {
  margin-bottom: 18px;
  color: var(--sage);
  font-family: var(--body-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.script,
.accent {
  color: var(--rose);
  font-style: italic;
}

.arch-photo {
  position: relative;
  width: min(76vw, 318px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid rgba(255, 247, 239, 0.9);
  box-shadow: 0 18px 42px rgba(52, 49, 63, 0.12);
}

.polaroid-photo {
  position: relative;
  width: min(74vw, 310px);
  margin: 0 auto;
  padding: 14px 14px 26px;
  background: #fffefb;
  border: 1px solid rgba(52, 49, 63, 0.12);
  box-shadow: 0 18px 26px rgba(52, 49, 63, 0.16);
  transform: translateY(-18px) rotate(-7deg);
  animation: polaroid-sway 4.2s ease-in-out infinite;
}

.polaroid-photo::before {
  position: absolute;
  inset: 8px;
  z-index: -1;
  content: "";
  background: rgba(52, 49, 63, 0.08);
  filter: blur(12px);
  transform: translate(12px, 14px);
}

.polaroid-photo::after {
  position: absolute;
  top: -18px;
  right: -48px;
  width: 44px;
  height: 44px;
  content: "";
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M31 3c3 18 7 25 25 28-18 3-25 7-28 25-3-18-7-25-25-28 18-3 25-7 28-25Z' fill='none' stroke='%23c9a45f' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.75;
  animation: sparkle-pulse 2.6s ease-in-out infinite;
}

.polaroid-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: grayscale(0.08) contrast(0.96) saturate(0.9);
}

.polaroid-photo p {
  margin: 18px 0 0;
  color: var(--ink);
  font-family: var(--hand-font);
  font-size: clamp(18px, 5vw, 25px);
  line-height: 1;
  text-align: center;
  transform: rotate(-2deg);
}

.main-photo {
  aspect-ratio: 4 / 5.18;
  border-radius: 46% 46% 6px 6px;
}

.arch-photo img,
.final-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.names-block h2 {
  margin-bottom: 20px;
}

.name-plus {
  display: inline-block;
  margin: 0 0.08em;
  color: var(--lavender-deep);
  font-family: var(--body-font);
  font-size: 0.72em;
  font-weight: 500;
  line-height: 1;
  transform: translateY(-0.04em);
}

.first .names-block p {
  max-width: 340px;
  margin-right: auto;
  margin-left: auto;
}

.message {
  display: grid;
  align-content: center;
  background: linear-gradient(180deg, rgba(113, 133, 119, 0.045), rgba(142, 116, 179, 0.05));
}

.message h3 {
  margin-top: 18px;
}

.flower-doodle {
  display: block;
  width: 92px;
  height: auto;
  margin: 16px auto 24px;
  animation: flower-sway 3.8s ease-in-out infinite;
  transform-origin: 48% 90%;
}

.hand-line {
  width: min(82%, 300px);
  height: 26px;
  margin: 24px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 32'%3E%3Cpath d='M8 18c46-5 92-8 139-6 45 2 92 4 165-6' fill='none' stroke='%23d2b66d' stroke-width='3.2' stroke-linecap='round' stroke-dasharray='6 3 18 5 7 4' opacity='.9'/%3E%3Cpath d='M10 20c78-7 168 1 300-11' fill='none' stroke='%238e74b3' stroke-width='1.2' stroke-linecap='round' stroke-dasharray='12 8 4 6' opacity='.35'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.date-section {
  display: grid;
  align-content: center;
  min-height: 100svh;
  padding-top: clamp(32px, 7vw, 54px);
  padding-bottom: clamp(32px, 7vw, 54px);
  box-sizing: border-box;
  overscroll-behavior: contain;
}

.calendar-card {
  width: min(100%, 340px);
  margin: 18px auto 0;
  padding: 28px 22px 30px;
  background: rgba(255, 254, 251, 0.86);
  border: 1px solid rgba(52, 49, 63, 0.08);
  border-radius: 6px;
  box-shadow: 0 20px 48px rgba(52, 49, 63, 0.08);
}

.date-section.is-visible .calendar-card {
  animation: calendar-arrive 0.95s cubic-bezier(0.2, 0.72, 0.18, 1) both 0.16s;
}

.calendar-hint {
  width: min(100%, 330px);
  margin: 18px auto 0;
  color: var(--rose);
  font-family: var(--body-font);
  font-size: clamp(15px, 4.2vw, 18px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
}

.date-section.is-visible .calendar-hint {
  animation: hint-breathe 2.4s ease-in-out infinite 1.1s;
}

.calendar-card h2 {
  margin-bottom: 26px;
  font-size: clamp(34px, 9vw, 48px);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-weekdays {
  margin-bottom: 12px;
  color: var(--rose);
  font-family: var(--body-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.calendar-days span,
.wedding-day {
  display: grid;
  min-height: 36px;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-family: var(--hand-font);
  font-size: 24px;
  line-height: 1;
}

.calendar-days .empty {
  min-height: 36px;
}

.wedding-day {
  position: relative;
  color: var(--cream);
  cursor: pointer;
  isolation: isolate;
}

.wedding-day::before {
  position: absolute;
  inset: 1px 4px 5px;
  z-index: -1;
  content: "";
  background: linear-gradient(135deg, #c8b5df, var(--rose));
  clip-path: polygon(50% 100%, 8% 58%, 0 30%, 10% 9%, 31% 0, 50% 17%, 69% 0, 90% 9%, 100% 30%, 92% 58%);
  filter: drop-shadow(0 0 14px rgba(142, 116, 179, 0.58));
  animation: calendar-heart-pulse 1.35s ease-in-out infinite;
}

.wedding-day::after {
  position: absolute;
  inset: -9px -6px -5px;
  z-index: -2;
  content: "";
  background: radial-gradient(circle, rgba(142, 116, 179, 0.34), transparent 65%);
  border-radius: 50%;
  animation: calendar-heart-glow 1.35s ease-in-out infinite;
}

.date-section.is-visible .wedding-day::after {
  animation: calendar-heart-glow 1.35s ease-in-out infinite, calendar-ring 2.6s ease-out infinite;
}

.wedding-day span {
  color: var(--cream);
  text-shadow: 0 1px 6px rgba(52, 49, 63, 0.18);
}

.program {
  display: grid;
  align-content: center;
  background: rgba(237, 232, 245, 0.52);
}

.program-grid {
  position: relative;
  display: grid;
  gap: 10px;
}

.program-grid::before {
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 18px;
  width: 2px;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(142, 116, 179, 0.46), rgba(113, 133, 119, 0.36), transparent);
  border-radius: 999px;
  opacity: 0;
  transform: scaleY(0.2);
  transform-origin: top;
}

.program.is-visible .program-grid::before {
  animation: timeline-draw 1.15s ease both 0.42s;
}

.program-item {
  position: relative;
  padding: 22px 18px 22px 52px;
}

.program-item::before {
  position: absolute;
  top: 32px;
  left: 10px;
  width: 18px;
  height: 18px;
  content: "";
  background:
    radial-gradient(circle, var(--cream) 0 34%, transparent 36%),
    radial-gradient(circle, rgba(142, 116, 179, 0.38), transparent 68%);
  border: 1px solid rgba(142, 116, 179, 0.46);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.35);
}

.program-item.reveal.is-visible::before {
  animation: timeline-dot 0.7s cubic-bezier(0.2, 0.72, 0.18, 1) both calc(0.2s + var(--item-index, 0) * 0.12s);
}

.program-item > * {
  position: relative;
  z-index: 1;
}

time {
  display: block;
  margin-bottom: 8px;
  color: var(--rose);
  font-family: var(--body-font);
  font-size: clamp(30px, 8vw, 40px);
  font-weight: 700;
}

.program-item p {
  margin-bottom: 0;
  font-size: clamp(18px, 4.6vw, 23px);
}

.place {
  display: grid;
  align-content: center;
  gap: 34px;
}

.place a,
.contacts a,
form button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  color: var(--cream);
  background: var(--sage);
  border: 0;
  border-radius: 999px;
  font-family: var(--body-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.venue-illustration {
  position: relative;
  width: min(100%, 330px);
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  overflow: hidden;
  background: var(--cream);
  border: 7px solid rgba(255, 253, 249, 0.96);
  border-radius: 8px;
  box-shadow: 0 20px 44px rgba(52, 49, 63, 0.14);
}

.venue-illustration img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dress,
.wishes,
.contacts {
  display: grid;
  align-content: center;
}

.free-style {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 28px 0 20px;
}

.free-style span {
  width: 56px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--cream);
  box-shadow: inset 0 0 0 12px rgba(113, 133, 119, 0.08);
}

.free-style span:nth-child(2) {
  background: #e4d9f0;
  box-shadow: inset 0 0 0 12px rgba(142, 116, 179, 0.12);
}

.free-style span:nth-child(3) {
  background: #dce5dd;
}

.questionnaire {
  background: rgba(142, 116, 179, 0.065);
}

form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  text-align: left;
}

form label span,
legend {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 16px;
  font-weight: 700;
}

input[type="text"] {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(250, 248, 253, 0.92);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--body-font);
  font-size: 17px;
}

fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

fieldset label {
  color: var(--muted);
  font-family: var(--body-font);
  font-size: 16px;
}

form button {
  justify-self: center;
  min-width: 172px;
  background: var(--lavender-deep);
  cursor: pointer;
}

.policy {
  margin: 0;
  text-align: center;
  font-family: var(--body-font);
  font-size: 12px;
  line-height: 1.4;
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--sage);
  font-size: 14px;
  line-height: 1.45;
}

.form-status:empty {
  min-height: 0;
  margin-top: 0;
}

.form-status.is-error {
  color: #9a4f67;
}

.final {
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding-bottom: 110px;
  text-align: center;
}

.final > p,
.final > h2 {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.final-collage {
  position: relative;
  width: min(90vw, 390px);
  aspect-ratio: 3 / 4;
  margin: 0 auto 28px;
  overflow: visible;
  border-radius: 0;
  box-shadow: none;
}

.final-collage .final-layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(61, 55, 72, 0.12));
}

.final-collage .final-decor {
  z-index: 1;
}

.final-collage .final-face {
  z-index: 2;
  will-change: transform;
}

.final.is-visible .final-face-man {
  transform-origin: 27% 25%;
  animation: face-float-a 3.4s ease-in-out 1.3s infinite;
}

.final.is-visible .final-face-woman {
  transform-origin: 75% 25%;
  animation: face-float-b 3.8s ease-in-out 1.55s infinite;
}

.final.is-visible .final-face-dog {
  transform-origin: 28% 70%;
  animation: face-float-b 3.1s ease-in-out 1.8s infinite reverse;
}

.final.is-visible .final-face-cat {
  transform-origin: 76% 70%;
  animation: face-float-a 4s ease-in-out 2s infinite reverse;
}

.final.is-visible .final-collage {
  animation: final-photo-bloom 1.25s cubic-bezier(0.2, 0.72, 0.18, 1) both 0.16s;
}

.music-button {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--cream);
  background: rgba(79, 63, 101, 0.92);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 16px 34px rgba(52, 49, 63, 0.2);
  cursor: pointer;
}

.music-note {
  font-size: 24px;
  line-height: 1;
}

.music-button.is-playing {
  animation: music-pulse 1.5s ease-in-out infinite;
}

.floating-hearts {
  position: fixed;
  inset: 0;
  z-index: 18;
  pointer-events: none;
  overflow: hidden;
}

.float-heart-burst {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 55%);
  width: var(--size, 18px);
  height: var(--size, 18px);
  opacity: 0;
  background: var(--color, rgba(142, 116, 179, 0.58));
  clip-path: polygon(50% 100%, 7% 60%, 0 31%, 11% 10%, 31% 0, 50% 17%, 69% 0, 89% 10%, 100% 31%, 93% 60%);
  filter: drop-shadow(0 8px 14px rgba(111, 86, 143, 0.16));
  transform: translate3d(0, 0, 0) rotate(var(--rotate, -8deg)) scale(0.78);
  animation: float-heart-burst 1.9s ease-out forwards;
}

.scroll-doodles {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: none;
  pointer-events: none;
  overflow: hidden;
}

.doodle {
  position: absolute;
  width: var(--size, 64px);
  height: var(--size, 64px);
  opacity: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 8px 16px rgba(52, 49, 63, 0.08));
  transform: translateX(var(--hidden-x)) translateY(20px) rotate(var(--rotate, 0deg)) scale(0.92);
  transition: opacity 0.85s ease, transform 0.85s cubic-bezier(0.2, 0.72, 0.18, 1);
}

.doodle.is-visible {
  opacity: 0.9;
  transform: translateX(0) translateY(0) rotate(var(--rotate, 0deg)) scale(1);
}

.d-left {
  --hidden-x: -145px;
}

.d-right {
  --hidden-x: 145px;
}

.chalk-heart-big {
  background-image: url("assets/user-doodle-heart-filled.png");
}

.chalk-flower-white {
  background-image: url("assets/user-doodle-flower-blue.png");
}

.chalk-tulip {
  background-image: url("assets/user-doodle-tulip.png");
}

.chalk-heart-outline {
  background-image: url("assets/user-doodle-heart-outline.png");
}

.chalk-leaves-right {
  background-image: url("assets/user-doodle-leaves-green.png");
}

.chalk-rose {
  background-image: url("assets/user-doodle-rose.png");
}

.chalk-flower-pink {
  background-image: url("assets/user-doodle-flower-yellow.png");
}

.chalk-heart-small {
  background-image: url("assets/user-doodle-heart-small.png");
}

.chalk-hearts-double {
  background-image: url("assets/user-doodle-heart-rays.png");
}

.chalk-flower-beige {
  background-image: url("assets/user-doodle-sprig.png");
}

.chalk-star {
  background-image: url("assets/user-doodle-star.png");
}

.d-1 {
  --size: 104px;
  --rotate: -14deg;
  top: 12vh;
  left: max(-32px, calc(50vw - 376px));
}

.d-2 {
  --size: 108px;
  --rotate: 9deg;
  top: 30vh;
  right: max(-40px, calc(50vw - 390px));
}

.d-3 {
  --size: 116px;
  --rotate: 8deg;
  top: 66vh;
  left: max(-46px, calc(50vw - 398px));
}

.d-4 {
  --size: 100px;
  --rotate: -10deg;
  top: 17vh;
  right: max(-34px, calc(50vw - 380px));
}

.d-5 {
  --size: 114px;
  --rotate: -18deg;
  top: 43vh;
  left: max(-36px, calc(50vw - 384px));
}

.d-6 {
  --size: 112px;
  --rotate: 12deg;
  top: 72vh;
  right: max(-48px, calc(50vw - 404px));
}

.d-7 {
  --size: 98px;
  --rotate: 12deg;
  top: 25vh;
  left: max(-42px, calc(50vw - 392px));
}

.d-8 {
  --size: 104px;
  --rotate: -13deg;
  top: 52vh;
  right: max(-50px, calc(50vw - 410px));
}

.d-9 {
  --size: 104px;
  --rotate: -6deg;
  top: 78vh;
  left: max(-30px, calc(50vw - 366px));
}

.d-10 {
  --size: 72px;
  --rotate: 15deg;
  top: 39vh;
  right: max(-12px, calc(50vw - 346px));
}

.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.95s ease, transform 0.95s cubic-bezier(0.2, 0.72, 0.18, 1);
}

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

.section.reveal > :where(.names-block, .tiny, h2, h3, p, .flower-doodle, .calendar-card, .calendar-hint, .program-grid, .venue-illustration, .dress-note, form, .final-collage) {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition:
    opacity 0.8s ease,
    transform 0.9s cubic-bezier(0.2, 0.72, 0.18, 1);
}

.section.reveal > .polaroid-photo {
  opacity: 0;
  filter: saturate(0.8) contrast(0.96);
  transition:
    opacity 0.9s ease,
    filter 0.9s ease;
}

.section.reveal.is-visible > :where(.names-block, .tiny, h2, h3, p, .flower-doodle, .calendar-card, .calendar-hint, .program-grid, .venue-illustration, .dress-note, form, .final-collage) {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.section.reveal.is-visible > .polaroid-photo {
  opacity: 1;
  filter: saturate(0.9) contrast(0.96);
}

.section.reveal.is-visible > :nth-child(1) {
  transition-delay: 0.05s;
}

.section.reveal.is-visible > :nth-child(2) {
  transition-delay: 0.14s;
}

.section.reveal.is-visible > :nth-child(3) {
  transition-delay: 0.23s;
}

.section.reveal.is-visible > :nth-child(4) {
  transition-delay: 0.32s;
}

.program-item.reveal.is-visible {
  transition-delay: calc(0.08s + var(--item-index, 0) * 0.1s);
}

.program-item.reveal > * {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.65s ease,
    transform 0.7s cubic-bezier(0.2, 0.72, 0.18, 1);
}

.program-item.reveal.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.program-item.reveal.is-visible > :nth-child(1) {
  transition-delay: 0.08s;
}

.program-item.reveal.is-visible > :nth-child(2) {
  transition-delay: 0.17s;
}

.program-item.reveal.is-visible > :nth-child(3) {
  transition-delay: 0.26s;
}

.place.is-visible .venue-illustration {
  animation: venue-sketch-in 1.15s cubic-bezier(0.2, 0.72, 0.18, 1) both 0.18s;
}

.venue-illustration::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.72) 48%, transparent 76%);
  opacity: 0;
  transform: translateX(-80%) skewX(-16deg);
}

.place.is-visible .venue-illustration::after {
  animation: venue-shine 2.8s ease-in-out infinite 1.1s;
}

.program-item.reveal {
  transition-delay: 0.12s;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: rotate(-45deg) scale(0.82);
  }
  42% {
    transform: rotate(-45deg) scale(0.94);
  }
  58% {
    transform: rotate(-45deg) scale(0.85);
  }
}

@keyframes heart-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes start-title {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes float-heart {
  0%,
  100% {
    transform: translateY(0) rotate(-45deg) scale(1);
  }
  48% {
    transform: translateY(-18px) rotate(-45deg) scale(1.12);
  }
}

@keyframes outline-heart {
  0%,
  100% {
    opacity: 0.42;
    transform: rotate(-45deg) scale(0.96);
  }
  50% {
    opacity: 0.88;
    transform: rotate(-45deg) scale(1.03);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes music-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}

@keyframes polaroid-sway {
  0%,
  100% {
    transform: translate(0, -18px) rotate(-7deg);
  }
  35% {
    transform: translate(-7px, -20px) rotate(-9deg);
  }
  70% {
    transform: translate(7px, -16px) rotate(-5deg);
  }
}

@keyframes sparkle-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.92) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.08) rotate(8deg);
  }
}

@keyframes calendar-heart-pulse {
  0%,
  100% {
    transform: scale(0.96);
  }
  45% {
    transform: scale(1.12);
  }
  62% {
    transform: scale(1.03);
  }
}

@keyframes calendar-heart-glow {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.92);
  }
  45% {
    opacity: 0.9;
    transform: scale(1.16);
  }
}

@keyframes flower-sway {
  0%,
  100% {
    transform: rotate(-2deg) translateY(0);
  }
  50% {
    transform: rotate(3deg) translateY(-4px);
  }
}

@keyframes calendar-arrive {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.965) rotate(-0.7deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes hint-breathe {
  0%,
  100% {
    opacity: 0.82;
    transform: rotate(-1deg) translateY(0);
  }
  50% {
    opacity: 1;
    transform: rotate(-1deg) translateY(-3px);
  }
}

@keyframes chalk-underline {
  0% {
    opacity: 0;
    transform: scaleX(0.18) rotate(-1deg);
  }
  45% {
    opacity: 0.82;
  }
  100% {
    opacity: 0.72;
    transform: scaleX(1) rotate(-1deg);
  }
}

@keyframes timeline-draw {
  from {
    opacity: 0;
    transform: scaleY(0.16);
  }
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes timeline-dot {
  0% {
    opacity: 0;
    transform: scale(0.35);
  }
  68% {
    opacity: 1;
    transform: scale(1.18);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float-heart-burst {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0) rotate(var(--rotate, -8deg)) scale(0.65);
  }
  18% {
    opacity: 0.68;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift, 20px), -96px, 0) rotate(calc(var(--rotate, -8deg) + 18deg)) scale(1.16);
  }
}

@keyframes venue-sketch-in {
  from {
    opacity: 0;
    filter: saturate(0.55) contrast(0.9) blur(1px);
    transform: translateY(22px) scale(0.96);
  }
  to {
    opacity: 1;
    filter: saturate(1) contrast(1) blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes venue-shine {
  0%,
  100% {
    opacity: 0;
    transform: translateX(-80%) skewX(-16deg);
  }
  45%,
  55% {
    opacity: 0.18;
  }
  80% {
    opacity: 0;
    transform: translateX(80%) skewX(-16deg);
  }
}

@keyframes final-photo-bloom {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.965);
    filter: saturate(0.82) contrast(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: saturate(1) contrast(1);
  }
}

@keyframes face-float-a {
  0%,
  100% {
    transform: translate3d(-2px, 2px, 0) rotate(-1deg) scale(0.995);
  }
  50% {
    transform: translate3d(5px, -8px, 0) rotate(1.25deg) scale(1.012);
  }
}

@keyframes face-float-b {
  0%,
  100% {
    transform: translate3d(2px, 1px, 0) rotate(0.9deg) scale(0.998);
  }
  50% {
    transform: translate3d(-5px, -7px, 0) rotate(-1.2deg) scale(1.014);
  }
}

@keyframes calendar-ring {
  0%,
  70%,
  100% {
    box-shadow: 0 0 0 0 rgba(142, 116, 179, 0);
  }
  28% {
    box-shadow: 0 0 0 9px rgba(142, 116, 179, 0.16);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 520px) {
  body::before {
    background:
      linear-gradient(90deg, rgba(255, 254, 251, 0.1), rgba(255, 254, 251, 0.24), rgba(255, 254, 251, 0.1)),
      url("assets/lavender-doodles-bg.png") top center / 780px auto repeat-y;
    opacity: 0.72;
  }

  .invite {
    width: calc(100% - 34px);
    background: rgba(255, 254, 251, 0.46);
  }

  .section {
    padding-right: 22px;
    padding-left: 22px;
  }

  .section::before {
    background:
      linear-gradient(
        90deg,
        rgba(255, 254, 251, 0.14) 0%,
        rgba(255, 254, 251, 0.34) 22%,
        rgba(255, 254, 251, 0.54) 50%,
        rgba(255, 254, 251, 0.34) 78%,
        rgba(255, 254, 251, 0.14) 100%
      );
    opacity: 1;
  }

  .music-button {
    right: 12px;
    bottom: 12px;
  }
}
