:root {
  color-scheme: dark;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* The page has no selectable content — suppress text selection everywhere so
     a tap-and-hold can't drag a selection across the canvas. */
  -webkit-user-select: none;
  user-select: none;
}

html,
body {
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
}

body {
  position: fixed;
  inset: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

/* WebGL canvas — full bleed. Hidden until the scene is ready, then fades in
   behind the logo. */
#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 1.1s ease;
}

#scene.dragging {
  cursor: grabbing;
}

body.scene-ready #scene {
  opacity: 1;
}

/* The Autonomy wordmark — centered, always visible, above the scene. */
.logo {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

/* Logo width: ~44vw on phones (a prominent hero size), capped at 300px so it
   holds a steady size on desktop without ballooning on very large screens. */
.logo img {
  width: clamp(160px, 44vw, 300px);
  height: auto;
  filter: drop-shadow(0 3px 14px rgba(0, 0, 0, 0.6));
  user-select: none;
  -webkit-user-drag: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  #scene {
    transition: none;
  }
}
