@font-face {
  font-family: "Anastasia Script 502";
  src: url("assets/fonts/anastasia-script-502.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Anastasia Script 522";
  src: url("assets/fonts/anastasia-script-522.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Anastasia Script 526";
  src: url("assets/fonts/anastasia-script-526.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Anastasia Script 527";
  src: url("assets/fonts/anastasia-script-527.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Anastasia Script 528";
  src: url("assets/fonts/anastasia-script-528.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Anastasia Script 529";
  src: url("assets/fonts/anastasia-script-529.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Anastasia Script 531";
  src: url("assets/fonts/anastasia-script-531.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Anastasia Script 532";
  src: url("assets/fonts/anastasia-script-532.ttf") format("truetype");
  font-display: swap;
}

:root {
  --paper: #eef0e7;
  --paper-warm: #f4f0e6;
  --ink: #3f4919;
  --ink-soft: #556038;
  --muted: #cfd3c3;
  --mist: rgba(213, 217, 201, 0.68);
  --cream: #f9f7f1;
  --shadow: 0 24px 80px rgba(63, 73, 25, 0.14);
  --display: "Anastasia Script 502", "Anastasia Script 522", "Anastasia Script 526",
    "Anastasia Script 527", "Anastasia Script 528", "Anastasia Script 529",
    "Anastasia Script 531", "Anastasia Script 532", "Cormorant Garamond", Georgia,
    serif;
  --script: "Cormorant Garamond", Georgia, serif;
  --body: "Cormorant Garamond", Georgia, serif;
  --serif: "Cormorant Garamond", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.7), transparent 34rem),
    linear-gradient(180deg, #f7f4ea, #ecefe4 46%, #f8f4eb);
  font-family: var(--body);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url("assets/paper-texture.jpg");
  background-size: 840px 840px;
  opacity: 0.34;
  pointer-events: none;
}

a {
  color: inherit;
}

.invitation {
  position: relative;
  overflow: hidden;
}

.paper-section {
  position: relative;
  min-height: min(1180px, 125vh);
  display: grid;
  place-items: center;
  padding: clamp(5.8rem, 11vw, 9rem) 1.25rem;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(247, 246, 239, 0.16), rgba(226, 231, 218, 0.28)),
    radial-gradient(circle at 52% 42%, rgba(255, 255, 255, 0.4), transparent 29rem);
}

.paper-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("assets/paper-texture.jpg");
  background-size: 1120px 1120px;
  background-position: center top;
  opacity: 0.54;
}

.paper-section::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 22rem;
  z-index: -2;
  background: linear-gradient(180deg, rgba(238, 240, 231, 0), rgba(248, 246, 239, 0.72));
  pointer-events: none;
}

.section-inner {
  position: relative;
  z-index: 3;
  width: min(100%, 920px);
  margin: 0 auto;
  text-align: center;
}

.paper-rip {
  position: absolute;
  left: 50%;
  z-index: 4;
  width: min(1240px, 132vw);
  height: clamp(5.2rem, 11vw, 8.8rem);
  transform: translateX(-50%);
  opacity: 0.98;
  pointer-events: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.paper-rip::before {
  content: none;
  position: absolute;
  inset: 0;
  background-image: url("assets/paper-texture.jpg");
  background-size: 520px 520px;
  opacity: 0.4;
}

.paper-rip-top {
  top: -0.5rem;
  background-image: url("assets/paper-rip-top.svg?v=smooth-20260607");
}

.paper-rip-bottom {
  bottom: -0.8rem;
  background-image: url("assets/paper-rip-bottom.svg?v=smooth-20260607");
}

.corner-mark {
  position: absolute;
  top: clamp(4rem, 9vw, 7.5rem);
  left: clamp(1.4rem, 8vw, 7.6rem);
  width: clamp(4.4rem, 14vw, 9rem);
  height: clamp(4.4rem, 14vw, 9rem);
  z-index: 3;
  border-top: 4px solid rgba(63, 73, 25, 0.48);
  border-left: 4px solid rgba(63, 73, 25, 0.48);
}

.flower-line,
.cake-line,
.table-line,
.couple-line,
.couple-small {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.flower-line {
  width: clamp(13rem, 38vw, 28rem);
  aspect-ratio: 0.85;
  opacity: 0.92;
  color: var(--ink);
  background-image: url("assets/hero-flower-top.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.5));
  transform-origin: center;
  animation: botanicalDrift 8s ease-in-out infinite;
}

.flower-line::before,
.flower-line::after {
  content: none;
}

.flower-line-top {
  top: -5rem;
  right: -7rem;
}

.flower-line-left {
  left: -9rem;
  bottom: clamp(2.8rem, 9vw, 7rem);
  aspect-ratio: 0.64;
  background-image: url("assets/hero-flower-left.png?v=trim-20260607");
  transform: rotate(-8deg);
  animation-name: botanicalDriftLeft;
  animation-duration: 9.5s;
}

.cake-line {
  right: clamp(0rem, 10vw, 7rem);
  bottom: clamp(3.2rem, 11vw, 7rem);
  width: clamp(8rem, 21vw, 15rem);
  height: clamp(10rem, 25vw, 18rem);
  opacity: 0.82;
  background: url("assets/hero-cake.png") center / contain no-repeat;
  transform-origin: 50% 75%;
  animation: cakeFloat 7.5s ease-in-out infinite;
}

.hero {
  min-height: 100svh;
  padding-top: clamp(4rem, 10vw, 7rem);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(247, 246, 239, 0.12), rgba(226, 231, 218, 0.2)),
    radial-gradient(circle at 52% 42%, rgba(255, 255, 255, 0.34), transparent 30rem);
}

.hero::after {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(100%, 680px);
  transform: translateY(-3.2rem);
}

.hero .paper-rip-bottom {
  bottom: -0.8rem;
}

.hero .corner-mark {
  top: clamp(4.8rem, 8vw, 7.4rem);
  left: clamp(1.75rem, 9vw, 7.2rem);
  width: clamp(4rem, 13vw, 8rem);
  height: clamp(4rem, 13vw, 8rem);
  animation: cornerTrace 1.3s ease-out both;
}

.hero .flower-line-top {
  top: clamp(-7rem, -7vw, -4rem);
  right: clamp(-9rem, -8vw, -3rem);
  width: clamp(16rem, 42vw, 31rem);
  opacity: 0;
  animation:
    heroFlowerTopIn 2.25s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both,
    botanicalDrift 8s ease-in-out 2.35s infinite;
}

.hero .flower-line-left {
  left: clamp(-13rem, -10vw, -6rem);
  bottom: clamp(5rem, 10vw, 8rem);
  width: clamp(17rem, 42vw, 30rem);
  opacity: 0;
  animation:
    heroFlowerLeftIn 2.35s cubic-bezier(0.22, 1, 0.36, 1) 0.72s both,
    botanicalDriftLeft 9.5s ease-in-out 3.05s infinite;
}

.hero .cake-line {
  right: clamp(-1.5rem, 8vw, 8rem);
  bottom: clamp(1.4rem, 4vw, 3.4rem);
  width: clamp(9.5rem, 19vw, 14.5rem);
  height: clamp(10rem, 20vw, 15.2rem);
  opacity: 0;
  animation:
    heroCakeIn 2.15s cubic-bezier(0.22, 1, 0.36, 1) 1.1s both,
    cakeFloat 7.5s ease-in-out 3.15s infinite;
}

.names {
  margin: 0;
  display: grid;
  gap: clamp(0.4rem, 2.4vw, 1.4rem);
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(5.4rem, 19vw, 9.2rem);
  font-style: italic;
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: 0;
  text-align: center;
}

.names span:first-child {
  transform: translateX(-4%);
}

.names span:last-child {
  transform: translateX(7%);
}

.amp {
  font-size: 0.84em;
  font-weight: 400;
}

.hero-date {
  display: block;
  margin-top: clamp(4.8rem, 12vw, 8rem);
  margin-left: auto;
  width: fit-content;
  color: var(--ink);
  font-family: var(--script);
  font-size: clamp(2.8rem, 8vw, 4.25rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1;
}

.scroll-indicator {
  display: none;
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  z-index: 6;
  width: 2rem;
  height: 3.4rem;
  border: 1px solid rgba(63, 73, 25, 0.38);
  border-radius: 999px;
  transform: translateX(-50%);
}

.scroll-indicator span {
  position: absolute;
  top: 0.65rem;
  left: 50%;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--ink);
  transform: translateX(-50%);
  animation: scrollDot 1.9s ease-in-out infinite;
}

.script-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(4rem, 15vw, 8.8rem);
  font-style: italic;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0;
}

.invitation-text {
  max-width: 760px;
  margin: clamp(3rem, 7vw, 5.4rem) auto 0;
  font-family: var(--script);
  font-size: clamp(1.65rem, 5.4vw, 3.1rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.55;
}

.invite-inner {
  display: grid;
  align-content: center;
  gap: clamp(4.5rem, 10vw, 7rem);
}

.calendar-card {
  width: min(100%, 660px);
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 34px;
  background: rgba(246, 244, 235, 0.38);
  box-shadow: inset 0 0 0 1px rgba(63, 73, 25, 0.08);
  backdrop-filter: blur(2px);
}

.calendar-month {
  margin: 0 0 1.3rem;
  font-family: var(--script);
  font-size: clamp(2rem, 6vw, 3.8rem);
  font-style: italic;
  font-weight: 600;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(0.52rem, 2vw, 1.08rem) clamp(0.36rem, 1.6vw, 0.9rem);
  align-items: center;
  color: var(--ink);
  font-family: var(--script);
  font-size: clamp(1.6rem, 6.4vw, 3rem);
  font-style: italic;
  line-height: 1;
}

.calendar-grid span {
  display: grid;
  place-items: center;
  min-width: 0;
  aspect-ratio: 1;
  border-radius: 999px;
}

.calendar-grid span:nth-child(-n + 7) {
  font-family: var(--body);
  font-size: clamp(0.62rem, 2vw, 0.82rem);
  font-style: normal;
  font-weight: 500;
  text-transform: uppercase;
  opacity: 0.54;
}

.calendar-grid .muted {
  opacity: 0.26;
}

.wedding-day {
  position: relative;
  color: var(--ink);
}

.wedding-day::before {
  content: "";
  position: absolute;
  inset: -8%;
  border: 3px solid var(--ink);
  border-radius: 45% 55% 50% 48%;
  transform: rotate(-13deg);
}

.wedding-day::after {
  content: "";
  position: absolute;
  top: -34%;
  left: 50%;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--ink);
  border-right: 0;
  border-bottom: 0;
  transform: translateX(-50%) rotate(45deg);
}

.timeline-section .section-inner {
  width: min(100%, 960px);
}

.timeline {
  position: relative;
  display: grid;
  gap: clamp(3.2rem, 8vw, 5rem);
  margin: clamp(5rem, 10vw, 7rem) auto 0;
  padding: 0 0 0 clamp(2rem, 7vw, 3rem);
  text-align: left;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.8rem;
  left: 0.72rem;
  width: 5px;
  border-radius: 999px;
  background: var(--ink);
}

.timeline-item {
  position: relative;
  width: min(100%, 28rem);
  min-height: 8.5rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 2.1rem;
  left: calc(-1 * clamp(2rem, 7vw, 3rem));
  width: clamp(2.2rem, 8vw, 4.2rem);
  height: 5px;
  border-radius: 999px;
  background: var(--ink);
}

.timeline-item time {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--body);
  font-size: clamp(1.35rem, 5.2vw, 2.15rem);
  font-weight: 700;
  letter-spacing: 0.13em;
}

.timeline-item h3 {
  margin: 0;
  max-width: 18rem;
  font-family: var(--script);
  font-size: clamp(2.1rem, 8vw, 3.7rem);
  font-style: italic;
  font-weight: 700;
  line-height: 0.93;
  text-transform: none;
}

.timeline-item p {
  max-width: 15rem;
  margin: 0.7rem 0 0;
  font-family: var(--script);
  font-size: clamp(1.1rem, 3.7vw, 1.45rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.08;
}

.event-icon {
  float: right;
  width: clamp(4.2rem, 17vw, 7.2rem);
  height: clamp(4.2rem, 17vw, 7.2rem);
  margin: 0 0 0.7rem 0.8rem;
  opacity: 0.86;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.45));
  transform-origin: center;
  animation: iconBreathe 4.8s ease-in-out infinite;
}

.timeline-item:nth-child(2n) .event-icon {
  animation-delay: 0.8s;
}

.timeline-item:nth-child(3n) .event-icon {
  animation-delay: 1.35s;
}

.glasses {
  background-image: url("assets/plan-glasses.png?v=pdf-20260607");
}

.rings {
  background-image: url("assets/plan-rings.png?v=pdf-20260607");
}

.plate {
  background-image: url("assets/plan-plate.png?v=pdf-20260607");
}

.sparks {
  background-image: url("assets/plan-sparks.png?v=pdf-20260607");
}

.location-inner {
  display: grid;
  align-content: center;
  justify-items: center;
}

.location-section .script-title {
  font-family: "Anastasia Script 531", var(--display);
  font-weight: 400;
}

.location-copy {
  margin-top: clamp(5rem, 14vw, 9rem);
  font-family: var(--script);
  font-size: clamp(1.7rem, 5.8vw, 3rem);
  font-weight: 700;
  line-height: 1.28;
}

.location-copy h3 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: inherit;
}

.location-copy address {
  max-width: 760px;
  font-style: normal;
}

.table-line {
  position: relative;
  width: min(88vw, 460px);
  aspect-ratio: 735 / 610;
  height: auto;
  margin-top: clamp(2.6rem, 7vw, 4rem);
  opacity: 0.82;
  background: url("assets/location-table.png?v=location-pdf-20260607") center / contain no-repeat;
  animation: iconBreathe 5.6s ease-in-out infinite;
}

.map-shell {
  width: min(100%, 680px);
  height: clamp(15rem, 52vw, 22rem);
  margin: clamp(2.2rem, 5vw, 3.2rem) auto 0;
  overflow: hidden;
  border: 1px solid rgba(63, 73, 25, 0.13);
  border-radius: 30px;
  box-shadow: var(--shadow);
  filter: saturate(0.7) contrast(0.96);
}

.map-shell iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.primary-button {
  display: inline-grid;
  place-items: center;
  min-width: min(100%, 22rem);
  min-height: 4.8rem;
  margin-top: clamp(2rem, 6vw, 3.3rem);
  padding: 1rem 2.8rem;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(205, 211, 195, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
  font-family: var(--script);
  font-size: clamp(1.8rem, 5.4vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.45s ease, background 0.45s ease, box-shadow 0.45s ease;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: rgba(218, 222, 210, 0.92);
  box-shadow: 0 16px 42px rgba(63, 73, 25, 0.13);
  transform: translateY(-3px);
}

.dress-inner {
  display: grid;
  justify-items: center;
}

.dress-section .script-title {
  max-width: min(100%, 42rem);
  padding-inline: clamp(1.4rem, 5vw, 2.4rem);
  line-height: 1.02;
  overflow: visible;
}

.palette {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.75rem, 2.4vw, 1.4rem);
  margin-top: clamp(4rem, 8vw, 6rem);
}

.palette span {
  display: block;
  width: clamp(3.85rem, 12vw, 6.4rem);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: var(--color);
  box-shadow: 0 10px 28px rgba(63, 73, 25, 0.12);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.palette span:hover {
  transform: translateY(-0.45rem) scale(1.04);
  box-shadow: 0 18px 38px rgba(63, 73, 25, 0.17);
}

.couple-small {
  position: relative;
  width: clamp(8rem, 24vw, 13rem);
  aspect-ratio: 1;
  margin-top: clamp(9rem, 18vw, 15rem);
  opacity: 0.82;
  background: url("data:image/svg+xml,%3Csvg width='220' height='220' viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%233f4919' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M82 78c-10 2-19 10-25 22-10 22-7 56 10 77 19 13 42 12 58-2'/%3E%3Cpath d='M69 109c16 19 32 34 57 50M58 163c24 10 48 14 78 11M93 78c8 15 17 30 31 43M130 73c11-2 25 4 31 17 10 23 6 54-4 85M139 92c-3 28-1 55 9 82M125 119c-18 1-38-7-57-25M100 58c6-12 19-15 29-9 11 8 9 24-3 30-10 5-22 0-26-11Z'/%3E%3Cpath d='M125 50c17-8 31-5 42 7M128 79c11 13 25 21 43 24M133 109c7 8 14 14 23 17M86 69c-9-7-19-8-30-2M78 78c-14 12-23 27-28 45'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  animation: iconBreathe 5.2s ease-in-out infinite;
}

.rsvp-section {
  min-height: min(1260px, 136vh);
  padding-bottom: clamp(8rem, 16vw, 12rem);
}

.rsvp-inner {
  display: grid;
  justify-items: start;
  text-align: left;
}

.rsvp-inner .script-title {
  justify-self: center;
}

.rsvp-form {
  width: min(100%, 690px);
  margin-top: clamp(3rem, 6vw, 4.6rem);
}

.form-field,
.rsvp-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.form-field + fieldset {
  margin-top: clamp(2.6rem, 6vw, 4rem);
}

.rsvp-form label,
.rsvp-form legend {
  display: block;
  color: var(--ink);
  font-family: var(--script);
  font-size: clamp(1.55rem, 5.2vw, 2.25rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.15;
}

.rsvp-form input[type="text"] {
  width: 100%;
  min-height: 4.9rem;
  margin-top: 1rem;
  padding: 0.7rem 1.35rem;
  border: 1px solid rgba(63, 73, 25, 0.05);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(205, 211, 195, 0.74);
  font: 500 1.2rem / 1.2 var(--body);
  outline: none;
  transition: border 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.rsvp-form input[type="text"]:focus {
  border-color: rgba(63, 73, 25, 0.32);
  background: rgba(230, 233, 221, 0.82);
  box-shadow: 0 0 0 5px rgba(63, 73, 25, 0.08);
}

.radio-line {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.3rem;
  cursor: pointer;
}

.radio-line input {
  appearance: none;
  flex: 0 0 auto;
  width: clamp(1.6rem, 5vw, 2.25rem);
  aspect-ratio: 1;
  margin: 0;
  border: 0.35rem solid rgba(205, 211, 195, 0.92);
  border-radius: 50%;
  background: rgba(205, 211, 195, 0.92);
  box-shadow: inset 0 0 0 0.26rem rgba(205, 211, 195, 0.92);
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.radio-line input:checked {
  background: var(--ink);
  box-shadow: inset 0 0 0 0.26rem rgba(205, 211, 195, 0.92);
  transform: scale(1.02);
}

.radio-line span {
  min-width: 0;
}

.field-error,
.form-status {
  min-height: 1.35rem;
  margin: 0.65rem 0 0;
  color: #8c483f;
  font: 500 0.9rem / 1.35 var(--body);
}

.form-status {
  color: var(--ink-soft);
}

.rsvp-form .primary-button {
  display: grid;
  width: min(100%, 29rem);
  margin: clamp(2.4rem, 7vw, 4.2rem) auto 0;
}

.contacts {
  width: min(100%, 560px);
  margin: clamp(4.4rem, 10vw, 6.4rem) auto 0;
  text-align: center;
  font-family: var(--script);
  font-size: clamp(1.05rem, 3.6vw, 1.36rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.45;
}

.contacts p {
  margin: 0.24rem 0;
}

.contacts p + p:nth-last-child(1) {
  margin-top: 2.1rem;
}

.contacts a {
  text-decoration: none;
}

.final-sign {
  width: min(100%, 760px);
  margin: clamp(5.2rem, 12vw, 8rem) auto 0;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(3.6rem, 14vw, 7.8rem);
  font-style: italic;
  font-weight: 400;
  line-height: 0.95;
}

.couple-line {
  right: -3.6rem;
  bottom: 5rem;
  width: clamp(12rem, 32vw, 23rem);
  aspect-ratio: 0.75;
  opacity: 0.68;
  background: url("data:image/svg+xml,%3Csvg width='360' height='480' viewBox='0 0 360 480' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%233f4919' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M129 88c14-16 39-14 51 3 14 20 3 48-21 53-23 5-43-13-42-36'/%3E%3Cpath d='M180 118c23 3 43 17 54 41 18 42 16 111 4 177M143 144c-26 17-47 48-62 91-24 71-30 151-42 228M94 239c27 19 71 30 133 31M125 179c21 35 52 61 94 80M207 151c22 39 36 91 45 157M102 283c41 42 89 66 145 70M91 332c35 17 84 22 148 13'/%3E%3Cpath d='M252 77c15-16 42-11 52 9 10 21-4 44-27 46-20 2-36-13-36-32'/%3E%3Cpath d='M280 133c27 16 41 48 46 93 6 57 0 129 7 222M238 170c20 16 48 25 83 27M247 209c21 13 46 19 76 19M268 132c-13 46-18 94-14 143M282 239c12 51 18 110 18 210M260 300c26 18 50 25 75 22'/%3E%3Cpath d='M111 83c-20-9-38-7-55 7M120 74c-22-22-50-26-82-13M158 55c18-17 41-18 67-3'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  animation: botanicalDrift 8.5s ease-in-out infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition:
    opacity 0.95s ease,
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0ms);
}

.reveal-scale {
  transform: translateY(1.4rem) scale(0.985);
}

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

@keyframes scrollDot {
  0%,
  100% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  35% {
    opacity: 1;
  }
  70% {
    opacity: 0;
    transform: translate(-50%, 1.35rem);
  }
}

@keyframes heroFlowerTopIn {
  0% {
    opacity: 0;
    transform: translate3d(2.8rem, -2.4rem, 0) rotate(2.5deg) scale(0.965);
    filter: blur(1.2px) drop-shadow(0 1px 0 rgba(255, 255, 255, 0.5));
  }
  58% {
    opacity: 0.9;
  }
  100% {
    opacity: 0.92;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    filter: blur(0) drop-shadow(0 1px 0 rgba(255, 255, 255, 0.5));
  }
}

@keyframes heroFlowerLeftIn {
  0% {
    opacity: 0;
    transform: translate3d(-2.8rem, 2.2rem, 0) rotate(-10.5deg) scale(0.965);
    filter: blur(1.2px) drop-shadow(0 1px 0 rgba(255, 255, 255, 0.5));
  }
  60% {
    opacity: 0.9;
  }
  100% {
    opacity: 0.92;
    transform: translate3d(0, 0, 0) rotate(-8deg) scale(1);
    filter: blur(0) drop-shadow(0 1px 0 rgba(255, 255, 255, 0.5));
  }
}

@keyframes heroCakeIn {
  0% {
    opacity: 0;
    transform: translate3d(1.5rem, 2.4rem, 0) rotate(1.8deg) scale(0.94);
    filter: blur(1px) drop-shadow(0 1px 0 rgba(255, 255, 255, 0.5));
  }
  62% {
    opacity: 0.86;
  }
  100% {
    opacity: 0.9;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    filter: blur(0) drop-shadow(0 1px 0 rgba(255, 255, 255, 0.5));
  }
}

@keyframes botanicalDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  50% {
    transform: translate3d(-0.45rem, 0.35rem, 0) rotate(-1.4deg) scale(1.015);
  }
}

@keyframes botanicalDriftLeft {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-8deg) scale(1);
  }
  50% {
    transform: translate3d(0.45rem, -0.35rem, 0) rotate(-6.5deg) scale(1.015);
  }
}

@keyframes cakeFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -0.55rem, 0) rotate(1.2deg);
  }
}

@keyframes iconBreathe {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(1) rotate(0deg);
  }
  50% {
    opacity: 0.96;
    transform: scale(1.045) rotate(-1.2deg);
  }
}

@keyframes cornerTrace {
  0% {
    clip-path: inset(0 100% 100% 0);
    opacity: 0;
  }
  45% {
    clip-path: inset(0 0 100% 0);
    opacity: 1;
  }
  100% {
    clip-path: inset(0);
    opacity: 1;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 720px) {
  .paper-section {
    min-height: min(1120px, 118vh);
    padding-inline: clamp(2rem, 5vw, 4rem);
  }

  .hero {
    min-height: 98vh;
  }

  .timeline {
    grid-template-columns: 1fr 6px 1fr;
    gap: 3.4rem clamp(2rem, 6vw, 4.6rem);
    padding: 0;
  }

  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline-item {
    width: 100%;
  }

  .timeline-left {
    grid-column: 1;
    text-align: right;
    justify-self: end;
  }

  .timeline-right {
    grid-column: 3;
    text-align: left;
    justify-self: start;
  }

  .timeline-left::before {
    left: auto;
    right: calc(-1 * (clamp(2rem, 6vw, 4.6rem) + 0.18rem));
  }

  .timeline-right::before {
    left: calc(-1 * (clamp(2rem, 6vw, 4.6rem) + 0.18rem));
  }

  .timeline-left .event-icon {
    float: right;
  }

  .timeline-right .event-icon {
    float: left;
    margin: 0 1rem 0.7rem 0;
  }

  .timeline-item p,
  .timeline-item h3 {
    margin-left: auto;
  }

  .timeline-right p,
  .timeline-right h3 {
    margin-left: 0;
    margin-right: auto;
  }

  .rsvp-inner {
    padding-left: min(4vw, 3rem);
  }
}

@media (min-width: 1024px) {
  .flower-line-top {
    right: -4rem;
  }

  .flower-line-left {
    left: -6rem;
  }

  .rsvp-form {
    margin-left: 0;
  }

  .rsvp-section .section-inner {
    width: min(100%, 1050px);
  }

  .contacts {
    transform: translateX(6rem);
  }
}

@media (max-width: 520px) {
  .paper-section {
    overflow: hidden;
  }

  .dress-section .script-title {
    width: min(100%, 23rem);
    padding-inline: 1.7rem;
    font-size: clamp(4.2rem, 14vw, 5.2rem);
    line-height: 1.08;
    text-align: center;
  }

  .flower-line-top {
    right: -8.5rem;
  }

  .flower-line-left {
    left: -9.8rem;
  }

  .cake-line {
    right: -2.5rem;
    opacity: 0.55;
  }

  .hero .flower-line-top {
    top: -1.2rem;
    right: -7rem;
    width: 17rem;
  }

  .hero .flower-line-left {
    left: -12rem;
    bottom: -0.4rem;
    width: 18rem;
  }

  .hero .cake-line {
    right: -2.2rem;
    bottom: 1.8rem;
    width: 11rem;
    height: 11.6rem;
    opacity: 0.82;
  }

  .names span:first-child,
  .names span:last-child {
    transform: none;
  }

  .couple-line {
    right: -8rem;
    opacity: 0.42;
  }

  .map-shell {
    border-radius: 24px;
  }
}
