/* ATELIER 69 — staggered grid. Every tile shares one transition; only
   transition-delay differs, and JS writes that per tile. */

.tile {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--gray-5, #e0e0e0);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}
.tile.on { cursor: default; border-color: var(--gray-6, #d5d5d5); }

/* the tile outline stays put; only its content moves, so the grid keeps its
   shape while the wavefront crosses it */
.tile-content {
  opacity: 0;
  transform: translateY(6px) scale(0.97);
  transition:
    opacity var(--dur-state, 240ms) var(--ease-out, cubic-bezier(0.2, 0, 0, 1)),
    transform var(--dur-state, 240ms) var(--ease-out, cubic-bezier(0.2, 0, 0, 1));
}
.tile.on .tile-content { opacity: 1; transform: translateY(0) scale(1); }

/* reduced motion: keep the reveal, drop the wavefront. The delay override
   must be !important because JS sets transition-delay inline per tile. */
.reduced .tile-content {
  transition: opacity var(--dur-micro, 120ms) var(--ease-out, ease) !important;
  transition-delay: 0ms !important;
}
