/* ============================================
   MacBook GLB — Three.js viewer
   ============================================ */

.hero__device {
  position: relative;
  overflow: visible;
}

.hero__device::before {
  content: '';
  position: absolute;
  top: 54%;
  left: 50%;
  width: 135%;
  height: 118%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse 46% 40% at 50% 48%,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(201, 169, 110, 0.025) 38%,
    transparent 68%
  );
  filter: blur(42px);
  pointer-events: none;
  z-index: 0;
}

.hero-macbook {
  width: 100%;
  max-width: 480px;
  height: clamp(290px, 32vw, 420px);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  overflow: visible;
  background: transparent;
}

.hero-macbook__canvas {
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
  touch-action: pan-y;
  background: transparent;
  filter:
    drop-shadow(0 26px 44px rgba(0, 0, 0, 0.4))
    drop-shadow(0 10px 18px rgba(0, 0, 0, 0.22));
}

.hero-macbook__loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.35);
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.hero-macbook.is-ready .hero-macbook__loader {
  opacity: 0;
}

@media (max-width: 1024px) {
  .hero-macbook {
    max-width: 420px;
    height: clamp(260px, 48vw, 360px);
  }
}
