.infinite-spiral {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}

.infinite-spiral__stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform-style: preserve-3d;
}

.infinite-spiral__stage--back { z-index: 1; }
.infinite-spiral__stage--front { z-index: 3; }

.infinite-spiral__item {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity, filter;
}

.infinite-spiral__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-position: center;
  filter: drop-shadow(0 5px 7px rgba(5, 22, 51, .24));
  user-select: none;
}

.hero-3d #capsule-canvas {
  position: relative;
  z-index: 2;
}

.hero-3d .hero-caption { z-index: 5; }
.hero-3d.webgl-pending .infinite-spiral { opacity: 0; }
.hero-3d.webgl-failed .infinite-spiral { display: none; }

@media (max-width: 640px) {
  .infinite-spiral__image { filter: drop-shadow(0 3px 5px rgba(5, 22, 51, .2)); }
}

@media (prefers-reduced-motion: reduce) {
  .infinite-spiral__item { will-change: auto; }
}
