/* "What people say" entrance
   Each card is hinged at its top edge and flips down into place,
   one after another, with a small settle at the end. */
.tr-ready .tr-card {
  opacity: 0;
  transform: perspective(1000px) rotateX(-95deg);
  transform-origin: 50% 0;
  backface-visibility: hidden;
}
.tr-ready .tr-card.tr-in {
  animation: tr-flip .9s cubic-bezier(.3,.7,.3,1) var(--tr-delay, 0ms) both;
}
@keyframes tr-flip {
  0%   { opacity: 0; transform: perspective(1000px) rotateX(-95deg); filter: brightness(.45); }
  15%  { opacity: 1; }
  60%  { transform: perspective(1000px) rotateX(9deg);  filter: brightness(1.04); }
  80%  { transform: perspective(1000px) rotateX(-3deg); }
  100% { opacity: 1; transform: none; filter: none; }
}

/* after the flip lands, hand control to the hover swing */
.tr-ready .tr-card.tr-done { opacity: 1; transform: none; animation: none; }

/* hover: the card swings on its top hinge like a hanging sign, then settles */
.tr-ready .tr-card.tr-done.tr-swing {
  animation: tr-swing 1.6s linear both;
}
@keyframes tr-swing {
  0%   { transform: perspective(1000px) rotateX(0deg);   animation-timing-function: ease-out; }
  14%  { transform: perspective(1000px) rotateX(16deg);  animation-timing-function: ease-in-out; }
  34%  { transform: perspective(1000px) rotateX(-11deg); animation-timing-function: ease-in-out; }
  52%  { transform: perspective(1000px) rotateX(7deg);   animation-timing-function: ease-in-out; }
  68%  { transform: perspective(1000px) rotateX(-4deg);  animation-timing-function: ease-in-out; }
  82%  { transform: perspective(1000px) rotateX(2deg);   animation-timing-function: ease-in-out; }
  92%  { transform: perspective(1000px) rotateX(-.8deg); animation-timing-function: ease-out; }
  100% { transform: perspective(1000px) rotateX(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .tr-ready .tr-card { opacity: 1; transform: none; animation: none !important; }
}
