/* BluMotion 07 — Precision Depth Tool Cards | Homepage only
   Premium tactile depth without glare, moving text gradients or layout changes.
   No interactivity is added on touch or when reduced motion is preferred. */
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  body .homepage-directory #toolGrid > a.tab-btn {
    transform: translate3d(0,0,0);
    transform-origin: center center;
    backface-visibility: hidden;
    transition: transform 260ms cubic-bezier(.19,.75,.21,1),
      box-shadow 260ms cubic-bezier(.19,.75,.21,1),
      border-color 260ms ease !important;
  }
  body .homepage-directory #toolGrid > a.tab-btn:is(:hover,:focus-visible) {
    position:relative;
    z-index:2;
    transform:translate3d(0,-4px,0) scale(1.012);
  }
  body .homepage-directory #toolGrid > a.tab-btn.bt07-active {
    transform:perspective(1000px) rotateX(var(--bt07-tilt-x,0deg))
      rotateY(var(--bt07-tilt-y,0deg)) translate3d(0,-4px,0) scale(1.012);
    transition-duration:110ms !important;
    box-shadow:0 15px 32px rgba(8,28,66,.24),inset 0 1px 0 rgba(230,245,255,.12) !important;
  }
  body.light-theme .homepage-directory #toolGrid > a.tab-btn.bt07-active {
    box-shadow:0 16px 31px rgba(26,84,153,.17),inset 0 1px 0 rgba(255,255,255,.92) !important;
  }
  body .homepage-directory #toolGrid > a.tab-btn.bt07-active > i {
    transform:translate3d(0,-2px,0);
    transition:transform 200ms cubic-bezier(.2,.8,.3,1);
  }
}
/* Preserve explicit keyboard focus. All cards remain ordinary, accessible links. */
body .homepage-directory #toolGrid > a.tab-btn:focus-visible {
  outline:3px solid #9dd7ff !important;
  outline-offset:4px !important;
}
body.light-theme .homepage-directory #toolGrid > a.tab-btn:focus-visible {
  outline-color:#1b67c5 !important;
}
@media (hover:none), (pointer:coarse), (prefers-reduced-motion:reduce) {
  body .homepage-directory #toolGrid > a.tab-btn {
    transform:none !important;
    transition-property:background-color,border-color,color,box-shadow !important;
  }
}
