/* ============ visitors — idle creatures sampled from noise (js/gl/visitors.js) ============
   Above the page, under the grain (90) and the nav (100). Exists only while a visitor is alive. */

.visitors {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 80;
  pointer-events: none;
  display: none;
}
.visitors.is-on { display: block; }

/* x₀ = paper crane · step 32/50 — the sampler's readout, following its sample */
.visitor-cap {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 81;
  margin: 0;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: rgba(236, 232, 225, 0.5);
  opacity: 0;
  transition: opacity 700ms var(--ease-out), color 400ms var(--ease-ui);
  will-change: transform, opacity;
}
.visitor-cap.is-on { opacity: 1; transition-duration: 300ms, 400ms; }
.visitor-cap__x { color: rgba(236, 232, 225, 0.36); }
.visitor-cap__x sub { font-size: 0.78em; line-height: 0; vertical-align: -0.28em; }
.visitor-cap__name { color: rgba(236, 232, 225, 0.72); }

html.on-light .visitor-cap { color: rgba(11, 11, 12, 0.56); }
html.on-light .visitor-cap__x { color: rgba(11, 11, 12, 0.42); }
html.on-light .visitor-cap__name { color: rgba(11, 11, 12, 0.8); }

@media (prefers-reduced-motion: reduce) {
  .visitors, .visitor-cap { display: none !important; }
}
