.figma-text {
  font-family: Caveat, cursive;
  line-height: 1.26;
}
.figma-line {
  position: absolute;
  white-space: pre;
  line-height: 1.26;
}
.image-crop, .couple-half, .calendar-ink { position: absolute; inset: 0; }
.image-crop { overflow: hidden; }
.couple-half--groom { clip-path: polygon(64% 0,100% 0,100% 100%,45% 100%,51% 62%,56% 39%); }
.couple-half--bride { clip-path: polygon(0 0,64% 0,56% 39%,51% 62%,45% 100%,0 100%); }
.calendar-ink img {
  clip-path: inset(54.6% 29.7% 17% 54.5%);
  filter: url(#calendar-heart-ink);
}
.calendar-ink span {
  position: absolute;
  translate: -50% -50%;
  color: #d9aeb3;
  font: 700 6.2cqw/.9 "Times New Roman", Georgia, serif;
  -webkit-text-stroke: .07cqw #9e6a72;
  paint-order: stroke fill;
}
.calendar-ink { user-select: text; }
.countdown-value { text-align: center; line-height: 10cqw; white-space: nowrap; }
#rsvp:not(:has([data-other-drink]:checked)) [data-node-id="36:1233"] { visibility: hidden; }

/* Reveal the animated artwork only after the gate finishes opening. */
.has-envelope #intro :is(.couple-half, .groom-label, .bride-label, .doodle-motion, .butterfly-wings, .swipe-hint) {
  visibility: hidden;
}
[data-node-id="10:539"] { --wing-hinge: 48% 62%; }
[data-node-id="10:542"] { --wing-hinge: 55% 58%; --wing-delay: -.72s; }
[data-node-id="21:819"] { --wing-hinge: 27% 68%; --wing-delay: -.26s; }

@media (prefers-reduced-motion: no-preference) {
  .is-ready #programme:not(.has-entered) .timeline-entry { opacity: 0; }
  .is-ready #programme:not(.has-entered) .stream-fine { clip-path: inset(-4cqw -6cqw 100% -6cqw); }
  .has-entered .couple-half--groom, .has-entered .groom-label { animation: appear-paper .38s .25s ease-out both; }
  .has-entered .couple-half--bride, .has-entered .bride-label { animation: appear-paper .44s .81s ease-out both; }
  .has-entered .doodle-motion > * { animation: pencil-boil .69s steps(1,end) infinite; transform-origin: center; }
  .has-entered .butterfly-wings .image-crop {
    animation: butterfly-wings 2.75s var(--wing-delay, 0s) ease-in-out infinite;
    transform-origin: var(--wing-hinge, 63% 57%);
  }
  .has-entered .flight-butterfly .image-crop { animation: butterfly-rise 3.4s calc(.12s + var(--flight-delay)) steps(10,end) infinite alternate; }
  .has-entered .stream-fine { animation: pour-champagne 5s .2s linear both; }
  .has-entered .timeline-entry { animation: appear-paper .38s var(--event-delay) ease-out both; }
  .has-entered:not(.is-current) :is(.doodle-motion > *, .butterfly-wings .image-crop, .flight-butterfly .image-crop) {
    animation-play-state: paused;
  }
}

@keyframes appear-paper { from { opacity: 0; } to { opacity: 1; } }
@keyframes pencil-boil {
  0%,100% { transform: rotate(-1.25deg) scale(.985,1.017); }
  25% { transform: rotate(1.35deg) scale(1.025,.984); }
  50% { transform: rotate(-.4deg) scale(1.01,.975); }
  75% { transform: rotate(.84deg) scale(.979,1.015); }
}
@keyframes butterfly-wings {
  0%,35%,68%,100% { transform: scaleX(1); }
  18%,49% { transform: scaleX(.85) skewY(1.9deg); }
}
@keyframes butterfly-rise {
  0% { translate: 0 0; transform: scaleX(1); }
  28% { translate: -1.5cqw -3cqw; transform: scaleX(.85); }
  60% { translate: 1.16cqw -6.4cqw; transform: scaleX(.97); }
  100% { translate: -.46cqw -9.1cqw; transform: scaleX(.88); }
}
@keyframes pour-champagne {
  from { clip-path: inset(-4cqw -6cqw 100% -6cqw); }
  to { clip-path: inset(-4cqw -6cqw -4cqw -6cqw); }
}
