.ba-visitor-view {
  position: absolute;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  pointer-events: none;
  background: #3d382d;
  opacity: 0;
  transition: opacity 360ms ease;
}
.ba-visitor-view.is-visible { opacity: 1; }
.ba-visitor-haze {
  position: absolute;
  inset: -28px;
  background: center / cover no-repeat;
  filter: blur(20px) brightness(.70);
}
.ba-visitor-frame {
  position: absolute;
  inset: 0;
  margin: auto;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  max-height: 100%;
}
.ba-visitor-set {
  position: absolute;
  inset: 0;
  background: center / 100% 100% no-repeat;
  transform-origin: 41% 34%;
  transition: transform 650ms cubic-bezier(.17,.68,.19,1);
}
.ba-visitor-view.is-speaking .ba-visitor-set {
  transform: translate(9%, 13%) scale(var(--visitor-zoom, 2.45));
}
.ba-visitor-chair,
.ba-visitor-figure {
  position: absolute;
  bottom: 7.8%;
  background-repeat: no-repeat;
}
.ba-visitor-chair {
  height: 40%;
  aspect-ratio: 300 / 315;
  left: 31.4%;
  background-size: contain;
  background-position: bottom left;
  transition: opacity 230ms;
  filter: brightness(.93) sepia(.05) drop-shadow(1px 3px 2px rgba(41,30,17,.24));
}
.ba-visitor-figure {
  left: 29.4%;
  height: 63%;
  aspect-ratio: 440 / 500;
  background-size: 200% 200%;
  background-position: 0% 100%;
  filter: brightness(.96) saturate(.94) drop-shadow(0 1px 1px rgba(40,29,18,.20));
  transform-origin: 46% 100%;
}
.ba-visitor-mouth {
  position: absolute;
  inset: 0;
  background: inherit;
  background-position: 100% 100%;
  opacity: 0;
}
.ba-visitor-floor-shadow {
  position: absolute;
  left: 33.3%;
  bottom: 7%;
  width: 25%;
  height: 2.8%;
  border-radius: 50%;
  background: #372c23;
  opacity: .28;
  filter: blur(4px);
}
.ba-visitor-view.is-walking .ba-visitor-figure {
  left: 30.5%;
  height: 85%;
  animation:
    ba-visitor-approach 1750ms cubic-bezier(.28,.57,.48,.94) both,
    ba-visitor-stride 480ms steps(1,end) infinite;
}
.ba-visitor-view.is-walking .ba-visitor-mouth { display: none; }
.ba-visitor-view.is-seating .ba-visitor-figure { animation: ba-visitor-settle 410ms ease-out both; }
.ba-visitor-view.is-seating .ba-visitor-chair,
.ba-visitor-view.is-seated .ba-visitor-chair { opacity: 0; }
@keyframes ba-visitor-approach {
  0% { transform: translateX(-210%) translateY(1%) scale(1.02); }
  23% { transform: translateX(-132%) translateY(-.8%) scale(1.015); }
  52% { transform: translateX(-66%) translateY(0%) scale(1.008); }
  77% { transform: translateX(-29%) translateY(-.8%); }
  100% { transform: translateX(-3%) translateY(0); }
}
@keyframes ba-visitor-stride {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
}
@keyframes ba-visitor-settle {
  0% { transform: translate(-.8%, -8%) scaleY(1.10); }
  64% { transform: translateY(1%) scaleY(.992); }
  100% { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ba-visitor-view, .ba-visitor-set, .ba-visitor-chair { transition-duration: 1ms; }
  .ba-visitor-view.is-walking .ba-visitor-figure, .ba-visitor-view.is-seating .ba-visitor-figure { animation: none; }
}
