/* ==========================================================================
   Ztrauen — Brick Wall Mouse Trail
   A ghost grid of construction bricks that lights up under the cursor
   and slowly fades back to dark. Zero dependencies, ~2 KB minified.

   Apply the class  .brick-trail  to any element (hero, header, section).
   ========================================================================== */

.brick-trail {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* Canvas behind all content */
.brick-trail > canvas.brick-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  display: block;
}

/* Lift your existing content above the canvas */
.brick-trail > .brick-content,
.brick-trail > .container,
.brick-trail > .inner,
.brick-trail > nav,
.brick-trail > section {
  position: relative;
  z-index: 1;
}

/* Optional: respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .brick-trail > canvas.brick-canvas { display: none; }
}
