/* Photographic hardware with unmodified real software screens.
   Every selector is scoped to the existing hero artwork. */
.hero-devices { aspect-ratio: 1 / 1.3; max-height: none; perspective: 1800px; perspective-origin: 50% 45%; isolation: isolate; }
.hero-devices .real-device { position: absolute; margin: 0; transform-style: preserve-3d; transform-origin: 50% 55%; transition: transform 550ms cubic-bezier(0.23, 1, 0.32, 1); }
.hero-devices figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hero-devices .device-frame { position: relative; z-index: 1; display: block; width: 100%; height: auto; pointer-events: none; user-select: none; }
.hero-devices .device-display { position: absolute; z-index: 2; overflow: hidden; background: #f7f8fa; backface-visibility: hidden; }
.hero-devices .device-screen { display: block; width: 100%; height: 100%; object-fit: contain; opacity: 1; }
/* Landscape tablet, separate metal frame and precise screen opening. */
.hero-devices .device-tablet { width: 76%; left: 4%; top: 3%; z-index: 1; transform: rotate(-5deg) rotateY(7deg) rotateX(1deg); filter: drop-shadow(0 24px 22px rgb(0 0 0 / 38%)); } /* taste-skill-ignore: owner requested realistic floating hardware depth, not a UI surface. */
.hero-devices .tablet-glass { left: 7.04%; top: 8.47%; width: 85.98%; height: 83.52%; border-radius: 2.1% / 2.8%; }
/* Full laptop: real key rows, speakers, palm rest, trackpad and hinge. */
.hero-devices .device-laptop { width: 96%; left: 2%; top: 42%; z-index: 2; transform: rotate(-2deg) rotateY(3deg); filter: drop-shadow(0 24px 22px rgb(0 0 0 / 36%)); } /* taste-skill-ignore: owner requested realistic floating hardware depth, not a UI surface. */
.hero-devices .laptop-glass { left: 18.36%; top: 7.71%; width: 63.35%; height: 50.98%; border-radius: 0.65%; }
/* Portrait phone, with clear space for the camera and gesture indicator. */
.hero-devices .device-phone { width: 28%; right: 4%; top: 18%; z-index: 3; transform: rotate(5deg) rotateY(-8deg) rotateX(1deg); filter: drop-shadow(0 20px 18px rgb(0 0 0 / 46%)); } /* taste-skill-ignore: owner requested realistic floating hardware depth, not a UI surface. */
.hero-devices .phone-glass { left: 8.8%; top: 4.68%; width: 82.2%; height: 90.75%; border-radius: 17% / 7.5%; padding-block: 10% 5%; }
.hero-devices .phone-island { position: absolute; width: 29.3%; height: 3.65%; left: 35.35%; top: 1.15%; border-radius: 99px; background: #020304; }
.hero-devices .phone-island > i { position: absolute; right: 7.5%; top: 28%; width: 12%; aspect-ratio: 1; border-radius: 50%; background: #14202f; box-shadow: inset 0 0 0 1px #263a4c; } /* taste-skill-ignore: owner requested realistic floating hardware depth, not a UI surface. */
.hero-devices .phone-home { position: absolute; bottom: 1.2%; left: 34%; width: 32%; height: 0.35%; border-radius: 99px; background: #283038; }
/* A restrained response inside the artwork; static on touch and reduced motion. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero-devices:hover .device-tablet { transform: translateY(-4px) rotate(-4deg) rotateY(5deg); }
  .hero-devices:hover .device-laptop { transform: translateY(-2px) rotate(-1deg) rotateY(1deg); }
  .hero-devices:hover .device-phone { transform: translateY(-5px) rotate(4deg) rotateY(-5deg); }
}
@media (max-width: 959px) { .hero-devices { width: 100%; max-width: 680px; margin-inline: auto; aspect-ratio: 1 / 1.3; perspective-origin: 50% 50%; } }
@media (prefers-reduced-motion: reduce) { .hero-devices, .hero-devices * { animation: none; transition: none; } }
