/* ============ 3D SCENE CONTAINERS ============
   Shared concerns for the two Three.js mounts (#heroThree, #dimensionThree):
   a soft placeholder glow shown until the canvas paints its first frame,
   and a clean no-WebGL fallback so a canvas-less browser never shows an
   empty box. Sizing/positioning for each mount lives with its section in
   style.css — this file is just the 3D layer itself. */
.hero-three,
.dimension-three {
  background: radial-gradient(60% 60% at 50% 55%, rgba(143, 211, 176, .28), transparent 70%);
  border-radius: 24px
}

.hero-three canvas,
.dimension-three canvas {
  opacity: 0;
  animation: sceneFadeIn .8s ease forwards;
  animation-delay: .15s
}

@keyframes sceneFadeIn {
  to {
    opacity: 1
  }
}

/* shown by a tiny inline check in each scene script if THREE/WebGL never
   initializes, so the section still reads as intentional rather than blank */
.no-webgl-fallback {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-soft);
  opacity: .5
}

@media(prefers-reduced-motion: reduce) {

  .hero-three canvas,
  .dimension-three canvas {
    animation: none;
    opacity: 1
  }
}
