/* The unchanged, selectable heading sits between two copies of one fox. */
.afr-stage {
  position: relative;
  isolation: isolate;
  display: block;
  --afr-size: 52px;
}
.afr-stage > .afr-headline { position: relative; z-index: 1; }
.afr-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
  visibility: hidden;
  /* Room for gentle hops and entrances, without reaching the header. */
  clip-path: inset(-56px -48px -24px);
}
.afr-layer-back { z-index: 0; }
.afr-layer-front { z-index: 2; }
.afr-stage[data-afr-active="true"] > .afr-layer { visibility: visible; }
.afr-actor {
  position: absolute;
  inset: 0 auto auto 0;
  width: var(--afr-size);
  height: calc(var(--afr-size) * 2 / 3);
  will-change: transform, opacity;
  transform-origin: 0 0;
  pointer-events: none;
}
.afr-presence,
.afr-facing,
.afr-bob { width: 100%; height: 100%; }
.afr-facing { transform-origin: 50% 50%; }
.afr-svg { display: block; width: 100%; height: 100%; overflow: visible; image-rendering: pixelated; }
.afr-bob { transform-origin: 50% 94%; }
.afr-leg { transform-box: fill-box; transform-origin: 50% 0; }
.afr-head { transform-box: fill-box; transform-origin: 45% 85%; }
.afr-tail {
  transform-box: fill-box;
  transform-origin: 88% 70%;
}
/* Pausing freezes the current gait and route; reducing motion hides the fox. */
.motion-paused .afr-stage * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .afr-stage > .afr-layer { visibility: hidden !important; }
  .afr-stage * { animation: none !important; }
}
