/* ============================================
   Anchors — Drawing rotator (hero SVG carousel)
   Grid stacking: all slides occupy the same grid cell,
   crossfade between them with subtle scale.
   ============================================ */

.tech-drawing {
  position: relative;
  display: grid;
}

.tech-drawing > .drawing-slide {
  /* All slides occupy the SAME grid cell — they stack */
  grid-column: 1;
  grid-row: 1;

  opacity: 0;
  transform: scale(0.965);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);

  pointer-events: none;
  will-change: opacity, transform;
}

.tech-drawing > .drawing-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 2;
}

/* ===== Navigation dots (top-center of frame) ===== */
.drawing-dots {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

.drawing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
  border: none;
  cursor: pointer;
  padding: 0;
  transition:
    background 0.3s ease,
    width 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.4s ease;
}

.drawing-dot:hover { background: var(--muted); }

.drawing-dot.active {
  background: var(--ink);
  width: 22px;
  border-radius: 3px;
}

/* ===== Respect reduced-motion users ===== */
@media (prefers-reduced-motion: reduce) {
  .tech-drawing > .drawing-slide {
    transition: opacity 0.2s ease;
    transform: scale(1);
  }
  .tech-drawing > .drawing-slide.active {
    transform: scale(1);
  }
}
