/* ==========================================================================
   HARDWARE PAGE — scoped layout/hover effects only.
   Loaded only on hardware.html so nothing here leaks onto shared components
   (.bento-tiles, .bento-tile, .icon) reused on other pages.
   ========================================================================== */

/* ---- Hero: 12px top margin on the page title ---- */
body.page-hardware .page-hero-title { margin-top: 12px; }

/* ---- Who It's For: all 4 cards in a single row on desktop ---- */
#hardware-who-its-for {
  grid-template-columns: repeat(2, 1fr);
  perspective: 1000px;
}
@media (min-width: 900px) {
  #hardware-who-its-for { grid-template-columns: repeat(4, 1fr); }
}

/* ---- Who It's For: bigger icons ---- */
#hardware-who-its-for .icon {
  height: 4rem;
  width: 4rem;
  font-size: 2rem;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- Who It's For: 3D tilt + hover pop on cards ---- */
#hardware-who-its-for .bento-tile {
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, border-color 0.45s ease;
}
#hardware-who-its-for .bento-tile:hover {
  transform: translateY(-10px) rotateX(6deg) rotateY(-4deg) scale(1.03);
  box-shadow: 0 30px 55px -18px rgba(220, 38, 38, 0.35), 0 10px 25px -8px rgba(0, 0, 0, 0.15);
  border-color: rgba(220, 38, 38, 0.3);
}
#hardware-who-its-for .bento-tile:hover .icon {
  transform: scale(1.15) translateZ(25px);
}

@media (prefers-reduced-motion: reduce) {
  #hardware-who-its-for .bento-tile,
  #hardware-who-its-for .icon {
    transition: none !important;
  }
  #hardware-who-its-for .bento-tile:hover {
    transform: none !important;
  }
  #hardware-who-its-for .bento-tile:hover .icon {
    transform: none !important;
  }
}
