/* The original art stays in its original coordinates; each paper/photo gets a
   small independent stage so its controls and typography move together. */
.story-piece { position: absolute; pointer-events: none; }
.story-piece :is(.art-control, video, .placed) { pointer-events: auto; }
.story-piece.story-pending { opacity: 0; }
.story-depth { overflow: hidden; }
.story-depth > img { transform: scale(1.075); }
.story-seal::after {
  content: '';
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, #fff6d89c 48%, transparent 66%);
  clip-path: circle(47% at 50% 50%);
}
.story-seal.is-told::after { animation: seal-light 1000ms 650ms both; }
@keyframes seal-light {
  0% { opacity: 0; transform: translateX(-35%) rotate(-12deg) scale(.8); }
  38% { opacity: .75; }
  100% { opacity: 0; transform: translateX(35%) rotate(12deg) scale(1.04); }
}
.rsvp-modal[open] { animation: letter-arrives 550ms cubic-bezier(.2,.8,.25,1) both; transform-origin: 50% 75%; }
.rsvp-modal[open]::backdrop { animation: letter-backdrop 350ms ease-out both; }
@keyframes letter-arrives {
  from { opacity: 0; transform: translateY(22px) rotate(-1.2deg) scale(.94); }
  to { opacity: 1; transform: none; }
}
@keyframes letter-backdrop { from { opacity: 0; } to { opacity: 1; } }
@media (hover: hover) and (pointer: fine) {
  .art-control img { transition: transform 220ms ease; }
  .art-control:hover img { transform: translateY(-2px); }
}
.art-control:active img { transform: scale(.975); }
@media (prefers-reduced-motion: reduce) {
  .story-piece.story-pending { opacity: 1; }
  .story-piece, .story-depth > img { transform: none !important; translate: none !important; }
  .story-seal::after, .rsvp-modal[open], .rsvp-modal[open]::backdrop { animation: none !important; }
  .art-control img { transition: none; }
  .art-control:hover img, .art-control:active img { transform: none; }
}
