@font-face {
  font-family: Forum;
  src: url('fonts/Forum-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Jura;
  src: url('fonts/Jura-Variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: 'Stick Numerals';
  src: url('fonts/Stick-Numerals.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0030-003A;
}

@font-face {
  font-family: 'Kashima RUS by Cop';
  src: url('fonts/Kashima-RUS-by-Cop.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --prose: 'MM9 Prose Antique Cyr', Forum, Georgia, serif;
  --serif: Forum, Georgia, 'Times New Roman', serif;
  --display: Jura, 'Trebuchet MS', sans-serif;
  --numerals: 'Stick Numerals', var(--display);
  --olive: #535b3d;
}

@font-face {
  font-family: 'MM9 Prose Antique Cyr';
  src: url('fonts/MM9-Prose-Antique-Cyr.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

h1, .eyebrow, .guest-message h2, .section-heading {
  font-family: var(--display);
}

.cover h1 {
  color: #241d16;
  font-family: 'Kashima RUS by Cop', var(--display);
  font-size: clamp(2.75rem, 15.4vw, 5.1rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.cover h1 .conjunction {
  font-size: 0.37em;
  font-style: normal;
  margin-block: 0.22em;
}

.cover-subtitle {
  margin: 0.2rem 0 0;
  color: #241d16;
  font: 400 clamp(1.2rem, 5.2vw, 1.5rem)/1.15 var(--serif);
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.eyebrow { font-weight: 600; }

.guest-message p,
.venue,
.dress-layout p,
.timeline li span,
.rsvp-intro,
.rsvp legend,
.rsvp form label,
.closing-copy > p,
.organizer > p {
  text-transform: uppercase;
}

.cover {
  background: var(--paper);
}

.cover-scene {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: clip;
  pointer-events: none;
  mask-image: linear-gradient(#000 89%, transparent);
}

.cover-flock {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: clip;
  pointer-events: none;
}

.cover-copy { z-index: 1; }

.cover-still,
.cover-paper,
.cover-lantern,
.cover-wind {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cover-lantern {
  z-index: 1;
  transform-origin: var(--pivot);
  translate: var(--shift, 0) 0;
  animation: lantern-pendulum var(--period) var(--phase) ease-in-out infinite alternate;
}

@keyframes lantern-pendulum {
  from { rotate: calc(-1 * var(--sway)); }
  to { rotate: var(--sway); }
}

.cover-lantern-gold {
  --pivot: 31.45% 1.14%; --sway: 1.4deg; --period: 3.9s; --phase: -1.4s;
  clip-path: polygon(
    30.82% 1.02%, 31.77% 1.14%, 31.77% 4.90%, 32.52% 5.32%, 32.52% 5.62%,
    33.90% 5.80%, 34.22% 6.22%, 34.22% 6.52%, 36.03% 6.88%, 37.41% 7.54%,
    38.47% 8.37%, 39.21% 9.39%, 39.11% 10.47%, 38.15% 11.54%, 36.88% 12.20%,
    34.96% 12.74%, 33.79% 12.86%, 33.90% 13.46%, 33.16% 13.88%, 32.62% 14.06%,
    32.41% 14.53%, 32.94% 15.19%, 32.41% 16.27%, 31.99% 16.63%, 32.52% 17.52%,
    32.73% 19.62%, 32.52% 21.77%, 30.50% 21.83%, 30.39% 19.38%, 30.92% 17.11%,
    31.14% 16.57%, 30.50% 16.15%, 30.29% 15.01%, 30.71% 14.35%, 30.71% 13.94%,
    29.54% 13.70%, 29.12% 13.10%, 28.27% 12.86%, 27.84% 12.14%, 25.72% 11.54%,
    24.55% 10.41%, 24.23% 9.15%, 24.44% 8.25%, 25.50% 7.12%, 27.42% 6.52%,
    29.12% 6.28%, 29.01% 5.80%, 30.39% 5.62%, 30.61% 5.14%, 31.14% 4.96%
  );
}

.cover-lantern-red {
  --pivot: 12.2% 0.8%; --sway: 1.1deg; --period: 4.8s; --phase: -0.6s; --shift: -0.5%;
  clip-path: polygon(
    0.00% 8.19%, 3.93% 6.94%, 7.55% 6.40%, 7.55% 5.92%, 8.61% 5.56%,
    10.95% 5.32%, 10.95% 4.67%, 11.48% 4.07%, 11.48% 0.78%, 12.43% 0.48%,
    12.96% 0.84%, 12.75% 4.07%, 13.60% 4.55%, 13.71% 5.26%, 16.68% 5.32%,
    17.53% 5.68%, 17.64% 6.52%, 19.77% 6.82%, 22.32% 7.78%, 24.23% 8.85%,
    25.93% 10.11%, 27.21% 11.66%, 28.06% 13.28%, 28.16% 15.13%, 27.10% 16.69%,
    25.40% 18.06%, 22.64% 19.38%, 20.09% 20.22%, 17.96% 20.69%, 18.38% 20.99%,
    18.07% 21.83%, 16.68% 22.19%, 14.56% 22.43%, 14.98% 22.91%, 14.77% 23.80%,
    15.52% 24.28%, 16.15% 25.12%, 15.73% 26.20%, 14.98% 26.91%, 15.20% 27.69%,
    15.94% 29.07%, 16.37% 32.48%, 15.94% 34.69%, 16.05% 35.65%, 12.54% 35.94%,
    12.22% 34.69%, 12.65% 33.13%, 13.07% 29.43%, 13.39% 27.69%, 13.18% 26.97%,
    11.90% 26.14%, 11.90% 25.18%, 12.86% 24.40%, 13.07% 23.86%, 12.65% 23.21%,
    12.86% 22.49%, 10.52% 22.19%, 9.56% 21.83%, 9.14% 20.99%, 7.01% 20.63%,
    4.78% 19.98%, 2.55% 18.96%, 1.06% 18.18%, 0.00% 17.58%
  );
}

.cover-lantern-green {
  --pivot: 91.6% 0.32%; --sway: 1.35deg; --period: 4.45s; --phase: -1.9s;
  clip-path: polygon(
    91.18% 0.00%, 92.14% 0.00%, 92.35% 2.81%, 93.09% 3.23%, 93.30% 3.71%,
    94.79% 3.83%, 95.32% 4.19%, 95.64% 4.61%, 96.81% 5.26%, 97.87% 6.34%,
    98.72% 7.60%, 99.15% 9.15%, 99.36% 12.26%, 98.94% 15.13%, 98.09% 16.81%,
    97.02% 18.06%, 95.75% 18.90%, 94.26% 19.32%, 94.47% 19.80%, 93.62% 20.39%,
    92.45% 20.69%, 93.41% 21.23%, 93.20% 22.31%, 94.05% 22.79%, 93.73% 23.92%,
    92.67% 24.64%, 93.52% 25.66%, 93.30% 26.85%, 93.52% 29.43%, 93.62% 32.24%,
    90.01% 32.42%, 90.33% 30.02%, 90.65% 27.75%, 91.07% 26.20%, 90.97% 25.72%,
    90.22% 24.88%, 90.54% 24.28%, 90.01% 23.44%, 90.33% 22.73%, 91.29% 22.31%,
    90.75% 21.59%, 91.18% 20.69%, 89.37% 20.33%, 88.52% 19.92%, 88.42% 19.32%,
    86.82% 18.84%, 85.55% 17.88%, 84.80% 16.69%, 84.17% 15.19%, 83.95% 12.80%,
    83.95% 9.99%, 84.27% 8.13%, 85.33% 6.70%, 86.40% 5.62%, 87.99% 4.84%,
    88.20% 4.25%, 88.84% 3.83%, 90.44% 3.59%, 90.44% 3.23%, 91.18% 2.75%
  );
}

.cover-crane,
.landscape-crane {
  top: var(--height);
  left: 0;
  width: var(--size);
  animation: crane-flight var(--flight-cycle, 45s) var(--delay) cubic-bezier(0.42, 0.05, 0.65, 1) infinite backwards;
}

.cover-crane { z-index: 1; filter: drop-shadow(0 0.12rem 0.12rem #6b493b45); }

.cover-crane-near {
  --height: 60%;
  --size: 30%;
  --entry: 344%;
  --still: 61%;
  --rise: -47%;
  --delay: -3s;
}

.cover-crane-rising {
  --height: 69%;
  --size: 23%;
  --entry: 450%;
  --still: 16%;
  --rise: -64%;
  --delay: 12.3s;
}

.cover-crane-distant {
  --height: 64%;
  --size: 17%;
  --entry: 610%;
  --still: 49%;
  --rise: -48%;
  --delay: 26.7s;
}

@keyframes crane-flight {
  0% { transform: translate(var(--entry), 20%) rotate(5deg); }
  28%, 100% { transform: translate(-120%, var(--rise)) rotate(1deg); }
}

.guest-message {
  position: relative;
  z-index: 1;
  isolation: isolate;
  margin-top: calc(-1 * clamp(4.5rem, 27vw, 10rem));
  padding-top: 1rem;
}

.invitation { overflow-x: clip; }

.guest-message-card {
  z-index: 1;
  opacity: var(--message-opacity, 1);
  scale: var(--message-scale, 1);
  transform-origin: 50% 9%;
}

.guest-message-card > * { opacity: var(--message-text-opacity, 1); }

.guest-message-card h2,
.guest-message-card p {
  font-family: var(--prose);
  font-weight: 400;
}

.guest-message-card p { line-height: 1.35; }

.message-bamboo,
.message-sakura,
.message-petals,
.message-stroke {
  position: absolute;
  height: auto;
  pointer-events: none;
}

.message-bamboo {
  z-index: 2;
  top: calc(clamp(-7.5rem, -26vw, -5.2rem) + 1.2rem);
  left: -5%;
  width: 46%;
  opacity: 0.84;
  transform: rotate(-8deg);
  transform-origin: 18% 91%;
  mask-image: linear-gradient(transparent, #000 14% 73%, transparent 100%),
    linear-gradient(103deg, #000 74%, transparent 100%);
  mask-composite: intersect;
}

.message-sakura {
  z-index: 2;
  top: clamp(-0.5rem, -1.5vw, -0.2rem);
  right: -3%;
  width: 32%;
  transform: rotate(-19deg);
  transform-origin: 90% 35%;
}

.message-petals {
  z-index: 2;
  right: clamp(1.9rem, 12%, 3.5rem);
  bottom: clamp(0.75rem, 4vw, 1.4rem);
  width: 5.2rem;
  height: 3.65rem;
}

.message-petals span {
  position: absolute;
  width: var(--petal-size);
  aspect-ratio: 1.55;
  border-radius: 75% 38% 68% 24%;
  background: radial-gradient(ellipse at 67% 22%, #fff2dffc, #efb4a4 58%, #cc725e);
  box-shadow: inset 0 0 0.06rem #974d3b80;
  rotate: var(--petal-angle);
  animation: petal-sway 5.6s var(--petal-delay) ease-in-out infinite alternate;
}

.message-petals span:nth-child(1) {
  top: 3%; right: 15%; --petal-size: 0.8rem; --petal-angle: -30deg; --petal-delay: -1.2s;
}

.message-petals span:nth-child(2) {
  top: 45%; right: 0; --petal-size: 0.64rem; --petal-angle: 37deg; --petal-delay: -3.7s;
}

.message-petals span:nth-child(3) {
  top: 47%; left: 24%; --petal-size: 0.65rem; --petal-angle: 17deg; --petal-delay: -2.6s;
}

.message-petals span:nth-child(4) {
  bottom: 3%; left: 3%; --petal-size: 0.53rem; --petal-angle: -39deg; --petal-delay: -4.9s;
}

.message-petals-air {
  top: -5.65rem;
  right: 34%;
  bottom: auto;
  width: 3.3rem;
  height: 2.25rem;
  opacity: 0.65;
}

.message-petals-air span:nth-child(1) {
  right: 66%; --petal-size: 0.52rem; --petal-angle: 22deg; --petal-delay: -5s;
}

.message-petals-air span:nth-child(2) {
  top: 48%; right: 3%; --petal-size: 0.46rem; --petal-angle: -29deg; --petal-delay: -3s;
}

@keyframes petal-sway {
  from { translate: 0 0; }
  to { translate: 0.2rem -0.24rem; }
}

.message-stroke {
  z-index: 0;
  top: max(-0.75rem, -2vw);
  left: -3%;
  width: 104%;
  rotate: -0.5deg;
  mask-image: repeating-linear-gradient(179.45deg, #000 0 2.8px, #0006 3.15px, #000 3.9px 6.7px);
}

.wind-fallback .cover-still {
  animation: cover-still-breeze 7s ease-in-out infinite alternate;
}

@keyframes cover-still-breeze {
  from { transform: scale(1.01) rotate(-0.12deg); }
  to { transform: scale(1.018) rotate(0.15deg); }
}
.landscape {
  position: relative;
  isolation: isolate;
  overflow: clip;
  aspect-ratio: 1.04;
  margin: calc(-1 * clamp(2.5rem, 15vw, 5.2rem)) 0 0;
  border-radius: 0 0 42% 13% / 0 0 8% 4%;
}

.dress::after {
  position: absolute;
  inset: auto -14% 0;
  height: 37%;
  border-bottom: 0.34rem double #a447357d;
  border-radius: 50%;
  content: '';
  pointer-events: none;
}

.dress::after { transform: rotate(-10deg) translateY(-0.4rem); }

.landscape-art {
  object-position: center 58%;
  mask-image: linear-gradient(transparent, #000 16% 86%, transparent);
  animation: mountain-breeze 18s ease-in-out infinite alternate;
}

.landscape-inscriptions,
.date-inscription {
  position: absolute;
  z-index: 0;
  color: #4f5836;
  font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'Noto Serif CJK JP', serif;
  font-size: clamp(1rem, 4.4vw, 1.65rem);
  font-weight: 600;
  letter-spacing: 0.15em;
  writing-mode: vertical-rl;
}

.landscape-inscriptions {
  top: 15%;
  left: 5%;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.55rem;
  opacity: 0.86;
}

.date-inscription { top: 2%; right: 5%; opacity: 0.74; }

.landscape-crane {
  z-index: 1;
  --flight-cycle: 35s;
  --height: 54%;
  --size: 39%;
  --entry: 268%;
  --still: 35%;
  --rise: -43%;
  --delay: -2.8s;
}

.crane-distant {
  --height: 32%;
  --size: 22%;
  --entry: 468%;
  --still: 66%;
  --rise: -57%;
  --delay: 12.8s;
}

.wedding-date {
  align-items: start;
  min-height: 34rem;
  padding-top: clamp(2.8rem, 14vw, 4.5rem);
  aspect-ratio: 941 / 1580;
}

.date-bamboo {
  position: absolute;
  top: 8%;
  left: -15%;
  width: 52%;
  height: auto;
  opacity: 0.65;
  pointer-events: none;
  mask-image: linear-gradient(#000 55%, transparent);
}

.date-copy {
  position: relative;
  z-index: 0;
  padding: 1rem 1.25rem;
  background: radial-gradient(ellipse, #fff5df8a, #fff5df3d 50%, transparent 76%);
}

.date-copy #date-title {
  color: var(--ink);
  font-family: var(--prose);
  font-size: clamp(1.17rem, 5.3vw, 1.6rem);
  font-weight: 400;
  letter-spacing: 0.06em;
}

.date-value {
  gap: 0;
  margin-block: 0.55rem 1.5rem;
  font-family: var(--prose);
  font-size: clamp(4.8rem, 24vw, 8.5rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.89;
}

.music-toggle {
  position: fixed;
  z-index: 2;
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  left: max(0.75rem, calc((100% - 33rem) / 2 + 0.75rem));
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff3deed;
  color: var(--ink);
  font: 1.11rem/1 system-ui, sans-serif;
  cursor: pointer;
}

.music-toggle:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.arrival {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  margin: 0;
}

.arrival time { font: 400 2.15rem/1 var(--numerals); }

.pond-motion {
  position: absolute;
  inset: 0;
  overflow: clip;
  pointer-events: none;
}

.koi {
  position: absolute;
  width: 27%;
  height: auto;
}

.koi-first {
  right: 0;
  bottom: 5%;
  transform: rotate(-14deg);
  animation: koi-right 18s -3s ease-in-out infinite;
}

.koi-second {
  top: 12%;
  left: 3%;
  width: 19%;
  filter: saturate(0.73);
  transform: rotate(156deg);
  animation: koi-left 21s -6s ease-in-out infinite;
}

.koi-third {
  bottom: 9%;
  left: 6%;
  width: 33%;
  opacity: 0.86;
  transform: rotate(27deg);
  animation: koi-left 24s -13s ease-in-out infinite reverse;
}

.invitation-panel { padding: 2.5rem clamp(1rem, 6vw, 2.3rem); }

.section-heading {
  margin: 0 0 1.2rem;
  color: var(--red);
  font-size: clamp(2.3rem, 13.2vw, 4.2rem);
  font-weight: 400;
  letter-spacing: 0.075em;
  line-height: 1.07;
  text-transform: uppercase;
}

.location { text-align: center; }

.venue {
  max-width: 18rem;
  margin: 0 auto 1.35rem;
  font: 400 clamp(1.45rem, 6.5vw, 2rem)/1.2 var(--display);
  text-transform: uppercase;
}

.action {
  display: inline-grid;
  min-height: 2.9rem;
  place-items: center;
  padding: 0.7rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  background: var(--olive);
  color: #fbf0db;
  font: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.action:hover { background: #434b30; }
.action:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.dress {
  position: relative;
  overflow: clip;
  padding-bottom: 2rem;
  border-radius: 0 0 39% 0 / 0 0 9% 0;
  background: linear-gradient(155deg, #ead5b363, transparent 70%);
}

.dress .section-heading { text-align: right; }
.dress .section-heading span { display: block; }
.dress .section-heading span + span { font-size: 0.72em; }

.dress-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
}

.dress-layout p { margin: 0; line-height: 1.55; }

.kimono {
  width: 115%;
  max-height: 22rem;
  object-fit: contain;
  margin-left: -15%;
}

.dress-layout span { white-space: nowrap; }
.schedule .section-heading { text-align: center; }

.timeline {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: minmax(3.8rem, 25%) 1fr;
  align-items: center;
  text-align: left;
}

.timeline time {
  color: var(--red);
  font-family: var(--numerals);
  font-size: clamp(1.1rem, 5vw, 1.55rem);
  font-variant-numeric: tabular-nums;
}

.timeline li span {
  padding: 0.7rem 0 0.7rem 1rem;
  border-left: 1px solid var(--line);
  line-height: 1.4;
}

.rsvp-card {
  padding: clamp(1rem, 6vw, 2rem);
  border: 1px solid #b59b6e77;
  border-radius: 1.15rem;
  background: linear-gradient(#e2d4b5, #f3e8cd 45%, #f3e8cd);
  box-shadow: 0 0.55rem 0.95rem #47331818;
}

.rsvp-card h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.1rem, 5.2vw, 1.85rem);
  text-align: center;
}

.rsvp-intro { margin: 0 0 1.5rem; text-align: center; }

.rsvp form,
.rsvp fieldset { display: grid; }

.rsvp legend,
.rsvp form > label { line-height: 1.4; }

.rsvp form > input {
  width: 100%;
  min-height: 2.75rem;
  margin-bottom: 1.25rem;
  padding: 0 0.35rem;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.rsvp fieldset {
  min-width: 0;
  gap: 0.25rem;
  margin: 0 0 1.2rem;
  padding: 0;
  border: 0;
}

.rsvp fieldset label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.25rem;
}

.rsvp input[type='radio'] { width: 1.2rem; height: 1.2rem; margin: 0; accent-color: var(--olive); }
.rsvp input:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.rsvp small { display: block; margin-top: 0.4rem; font-size: 0.85rem; line-height: 1.35; }
.form-note, .form-status { text-align: center; }
.form-status { margin: 0.45rem 0 0; }
.form-status:empty { display: none; }

.final-details {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
  gap: 0.6rem;
  overflow: clip;
  padding-bottom: 4.8rem;
}

.closing-copy { z-index: 0; line-height: 1.55; }
.closing-copy > p { margin: 0; }
.organizer { margin-top: 2.5rem; }
.organizer p { margin: 0 0 0.65rem; }
.organizer-name { color: var(--red); font-size: 1.25rem; }
.contact summary { list-style: none; }
.contact summary::-webkit-details-marker { display: none; }
.contact p { margin: 0.65rem 0 0; font-size: 0.9rem; }

.closing-art { position: relative; align-self: center; min-width: 0; }
.closing-art img { display: block; width: 113%; height: auto; margin-left: -2%; }

.lotus {
  position: absolute;
  right: 0;
  bottom: 1%;
  width: clamp(5rem, 28vw, 9rem);
  aspect-ratio: 1.55;
  filter: drop-shadow(0 0.22rem 0.25rem #5747253f);
}

.lotus i,
.lotus b {
  position: absolute;
  left: 50%;
  bottom: 14%;
}

.lotus i {
  width: 25%;
  height: 85%;
  border-radius: 60% 60% 45% 45% / 78% 78% 28% 28%;
  background: linear-gradient(105deg, #c89c75, #fff8e6 55%, #ecd6bd);
  transform-origin: 50% 91%;
  transform: translateX(-50%) rotate(var(--open));
  animation: lotus-bloom 8s ease-in-out infinite;
}

.lotus b {
  width: 24%;
  height: 20%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 43% 25%, #ffd570, #bd781d 80%);
  transform: translateX(-50%);
  animation: lotus-heart 8s ease-in-out infinite;
}

.pond-lotus {
  right: auto;
  bottom: 4%;
  left: 4%;
  width: clamp(4rem, 24vw, 8rem);
}

.pond-lotus :is(i, b) { animation-delay: -2s; }

.dragonfly {
  position: absolute;
  top: 55%;
  left: -13%;
  width: 1.05rem;
  height: 0.13rem;
  border-radius: 60%;
  background: #3d4738c9;
  transform: rotate(-38deg);
  animation: dragonfly-hover 4.8s ease-in-out infinite alternate;
}

.dragonfly::before,
.dragonfly::after {
  position: absolute;
  left: 22%;
  width: 64%;
  height: 0.22rem;
  border: 1px solid #71808788;
  border-radius: 70%;
  background: #e9efeaa3;
  content: '';
}

.dragonfly::before { transform: rotate(58deg); }
.dragonfly::after { transform: rotate(-58deg); }

@keyframes dragonfly-hover {
  0%, 12% { transform: translate(0, 0) rotate(-37deg); }
  43% { transform: translate(1.7rem, -0.8rem) rotate(-50deg); }
  68%, 100% { transform: translate(2.65rem, -1.8rem) rotate(-7deg); }
}

@keyframes mountain-breeze {
  from { transform: scale(1); }
  to { transform: scale(1.05) translate(-1%, 0); }
}

@keyframes koi-right {
  0%, 100% { transform: translate(25%, 117%) rotate(-17deg); }
  28% { transform: translate(-23%, 5%) rotate(-30deg); }
  62% { transform: translate(12%, -151%) rotate(16deg); }
  88% { transform: translate(74%, -264%) rotate(23deg); }
  89% { transform: translate(115%, 140%) rotate(-17deg); }
}

@keyframes koi-left {
  0%, 100% { transform: translate(-120%, -115%) rotate(146deg); }
  38% { transform: translate(59%, 56%) rotate(174deg); }
  71% { transform: translate(7%, 211%) rotate(201deg); }
  95% { transform: translate(-121%, 325%) rotate(210deg); }
  96% { transform: translate(-190%, -180%) rotate(146deg); }
}

@keyframes lotus-bloom {
  0%, 100% { transform: translateX(-50%) rotate(var(--closed)); }
  37%, 70% { transform: translateX(-50%) rotate(var(--open)); }
}

@keyframes lotus-heart {
  0%, 100% { opacity: 0; scale: 0.7; }
  39%, 69% { opacity: 1; scale: 1; }
}

@keyframes page-reveal {
  from { opacity: 0.72; translate: 0 0.7rem; }
  to { opacity: 1; translate: 0 0; }
}

.entered { animation: page-reveal 650ms ease-out both; }

.invitation:has(.flight-toggle input:checked) :is(.cover-still, .cover-lantern, .crane, .landscape-art, .koi, .lotus i, .lotus b, .dragonfly, .message-petals span) {
  animation-play-state: paused;
}

.invitation:has(.flight-toggle input:checked) .entered { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .cover-wind { display: none; }
  :is(.cover-crane, .landscape-crane) { left: var(--still); }
  .cover-flock .cover-crane:not(.cover-crane-near) { display: none; }
  :is(.wind-fallback .cover-still, .cover-lantern, .crane, .landscape-art, .koi, .lotus i, .lotus b, .dragonfly, .message-petals span, .entered) { animation: none; }
}
