/* A single sheet turns on its vertical axis; its reverse stays readable. */
.flip-card { transition: transform .96s cubic-bezier(.4,.08,.16,1); }
.flip-card.is-rotating { transition: transform .96s cubic-bezier(.4,.08,.16,1), height .96s cubic-bezier(.4,.08,.16,1); will-change: transform; }
.cover-sheen, .stage-aura { transition: opacity .6s ease; }
.cover-sheen { opacity: .45; }
.cover-light { opacity: 0; background: linear-gradient(112deg, transparent 34%, #ac35430a 44%, #f5f2e929 49%, #4569a00d 54%, transparent 64%); }
.invitation-cover.is-touched .cover-sheen { opacity: 1; }
.flip-card.is-rotating .cover-light { animation: turn-light .96s ease both; }
@keyframes turn-light { 0% { transform: translateX(-60%); opacity: 0; } 35% { opacity: .65; } 65%,100% { transform: translateX(65%); opacity: 0; } }
.artist, .artist img { transition: filter .4s, transform .4s cubic-bezier(.22,.7,.2,1); }
.artist-name { transition: opacity .3s; }
.open-button, .reply-button { transition: background-color .25s, color .25s, border-color .25s, transform .25s; }
.disclosure-mark::after { transition: transform .3s ease; }
.artist-berlex { --light-offset: -5px; --artist-light: rgba(193,55,64,.46); }
.artist-ness { --artist-light: rgba(68,110,178,.5); }
.artist.is-pulsing img { animation: portrait-light .75s cubic-bezier(.2,.7,.2,1); }
@keyframes portrait-light { 0% { transform: translateY(0); filter: drop-shadow(0 0 0 transparent); } 40% { transform: translateY(-3px); filter: drop-shadow(var(--light-offset, 0px) 0 10px var(--artist-light)); } 100% { transform: translateY(0); filter: drop-shadow(var(--light-offset, 0px) 0 6px var(--artist-light)); } }
.reply-button.copy-confirmed { animation: reply-feedback .55s ease; }
@keyframes reply-feedback { 0%,100% { transform: scale(1); } 40% { transform: scale(.98); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .flip-card, .flip-card.is-rotating, .artist, .artist img, .artist-name, .cover-sheen, .stage-aura, .open-button, .reply-button, .disclosure-mark::after { animation: none !important; transition: none !important; }
  .cover-light { display: none; }
  .artist img { transform: none !important; }
}

/* The scene stays visible through card flips, so the name reveal runs once. */
@property --name-reveal {
  syntax: "<number>";
  inherits: true;
  initial-value: 1;
}
.artist-name { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .perspective-wrap {
    --name-reveal: 1;
    animation: introduce-artists 950ms ease-out;
  }
  @keyframes introduce-artists {
    from { --name-reveal: 0; }
    to { --name-reveal: 1; }
  }
  .artist-berlex { --label-opacity: clamp(0, calc(1.6 * var(--name-reveal)), 1); }
  .artist-ness { --label-opacity: clamp(0, calc(1.6 * var(--name-reveal) - .6), 1); }
  .artist-name {
    opacity: var(--label-opacity);
    transform: translateY(calc(5px - 5px * var(--label-opacity)));
    transition: none;
  }
}
