/* Transcrib Si — the "anim" widget.
 *
 * The styles of the three animations:
 *
 *   .anim-reveal  a block that waits below the fold;
 *   .is-revealed  the block arrived;
 *   .anim-count   a number that counts up;
 *   .anim-wave    the canvas of the hero.
 *
 * The hidden state lives in .anim-reveal and not in the markup: a page that
 * does not load this file, or a browser without JavaScript, shows every
 * block at once. Nothing is hidden by CSS alone.
 *
 * The motion itself is transform and opacity only — no layout, no repaint of
 * the page, nothing that scrolls with the reader.
 */
.anim-reveal {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity 520ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--anim-delay, 0ms);
  will-change: opacity, transform;
}

.anim-reveal.is-revealed {
  opacity: 1;
  transform: none;
}

.anim-count {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.anim-wave {
  display: block;
  width: 100%;
  height: 140px;
  max-height: 22vh;
}

.anim-wave-wrap {
  position: relative;
  border-radius: var(--radius-m, 12px);
  background:
    linear-gradient(180deg, rgba(127, 211, 192, 0.12), rgba(127, 211, 192, 0));
  overflow: hidden;
}

/* Less motion: no transition, no shift, no wave. The blocks are simply there. */
@media (prefers-reduced-motion: reduce) {
  .anim-reveal,
  .anim-reveal.is-revealed {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto;
  }
}
