/* Quixo AI robot — decorative only; never blocks or dims content */

.qm-robot-runner {
  position: fixed;
  left: 0;
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  z-index: 3;
  width: 56px;
  height: 66px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: none !important;
  user-select: none;
  -webkit-user-select: none;
  opacity: 0.38;
  will-change: transform;
  transform: translate3d(-80px, 0, 0);
  transition: opacity 0.3s ease;
  contain: layout style paint;
}
.qm-robot-runner img,
.qm-robot-runner svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(8, 66, 160, 0.14));
}
.qm-robot-runner.is-hidden {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .qm-robot-runner { display: none !important; }
}
@media (max-width: 640px) {
  .qm-robot-runner {
    width: 44px;
    height: 52px;
    opacity: 0.28;
    bottom: max(72px, calc(env(safe-area-inset-bottom, 0px) + 64px));
  }
}

/* Hero photo framing (video removed) */
.hero-photo-img {
  object-position: 62% center;
}

.qm-hero-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none !important;
  opacity: 0;
  transition: opacity 0.55s ease;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(244, 247, 252, 0.92) 50%, rgba(255, 255, 255, 0.96) 100%),
    url("/assets/home/hero-bg.jpg") center / cover no-repeat;
}
body.qm-scrolled .qm-hero-ambient {
  opacity: 1;
}

/* Soften hero photo once scrolled */
body.qm-robot-bg-on.qm-scrolled .hero.hero-agent.hero-photo {
  background: #FFFFFF !important;
}
body.qm-robot-bg-on.qm-scrolled .hero-photo-plane {
  opacity: 0.2;
  transition: opacity 0.45s ease;
}
body.qm-robot-bg-on.qm-scrolled .hero-photo-scrim {
  background: rgba(255, 255, 255, 0.78) !important;
}
/* Keep header (and its mobile drawer) above main. Putting .top at the same
   z-index as main trapped #nav.open inside a lower stacking context so the
   hero painted over the menu — burger toggled open but looked broken. */
body.qm-robot-bg-on .top {
  position: relative;
  z-index: 80;
}
body.qm-robot-bg-on main {
  position: relative;
  z-index: 1;
}
body.qm-robot-bg-on.nav-open .top {
  z-index: 200;
}

.qm-chat-fab,
#qm-chat,
.chat-fab,
[data-qm-chat] {
  z-index: 40;
}
/* photo hero deploy 20260807 */
