/* Local draft only: cursors assemble the existing homepage. Tim's type and colors stay in tim.css. */

body.swarm-building [data-swarm]:not(.swarm-placed) {
  opacity: 0 !important;
  pointer-events: none;
}

/* Don't let the usual fade-up fight the build. */
body.swarm-building .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

body.swarm-building [data-swarm]:not(.swarm-placed) {
  opacity: 0 !important;
}

body.swarm-building [data-swarm].swarm-placed {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.28s ease;
}

#swarm-layer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  overflow: hidden;
}

.swarm-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 24px;
  height: 28px;
  transform: translate(-40px, -40px);
  transform-origin: 0 0;
  will-change: transform, opacity;
  opacity: 0;
  transition: opacity 0.15s ease;
  filter: drop-shadow(1px 2px 1.5px rgba(0, 0, 0, 0.38));
}

.swarm-cursor svg {
  display: block;
  overflow: visible;
}

.swarm-cursor.is-pointer svg {
  width: 22px;
  height: 26px;
}

.swarm-cursor.is-text svg {
  width: 14px;
  height: 22px;
}

.swarm-outline {
  position: fixed;
  border: 1.5px solid #4c9aff;
  background: rgba(76, 154, 255, 0.08);
  box-sizing: border-box;
  pointer-events: none;
}

.swarm-guide {
  position: fixed;
  pointer-events: none;
  opacity: 0.8;
}

.swarm-guide-v { width: 1px; }
.swarm-guide-h { height: 1px; }

.swarm-size {
  position: fixed;
  background: #4c9aff;
  color: #fff;
  font-family: var(--sans), "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 3px;
  white-space: nowrap;
  pointer-events: none;
}

.swarm-caret {
  display: inline-block;
  width: 1.5px;
  height: 0.92em;
  margin: 0 1px -2px;
  background: currentColor;
  vertical-align: -1px;
  animation: swarm-caret 0.8s steps(1) infinite;
}

@keyframes swarm-caret {
  50% { opacity: 0; }
}


@media (prefers-reduced-motion: reduce) {
  body.swarm-building [data-swarm]:not(.swarm-placed) {
    opacity: 1 !important;
    pointer-events: auto;
  }
  #swarm-layer { display: none !important; }
}

@media (max-width: 640px) {
  body.swarm-building [data-swarm]:not(.swarm-placed) {
    opacity: 1 !important;
    pointer-events: auto;
  }
  #swarm-layer { display: none !important; }
}
