/* Product cube inspector */
.cube-stage {
  display: grid;
  min-height: 76vh;
  grid-template-columns: minmax(280px, 0.62fr) minmax(320px, 1fr);
  gap: clamp(24px, 6vw, 78px);
  align-items: center;
  overflow: hidden;
  padding: 32px max(16px, calc((100vw - 1180px) / 2));
  perspective: 1200px;
}

.cube-lab {
  display: grid;
  min-height: clamp(430px, 56vw, 640px);
  place-items: center;
  perspective: 1200px;
}

.cube-scene {
  position: relative;
  width: min(70vw, 360px);
  aspect-ratio: 1;
  transform-style: preserve-3d;
  will-change: transform;
}

.cube-face {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: space-between;
  border: 1px solid rgba(17, 19, 21, 0.15);
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--tone), rgba(255, 255, 255, 0.64)),
    var(--paper);
  box-shadow: 0 28px 72px rgba(17, 19, 21, 0.18);
  color: #111315;
  padding: clamp(18px, 4vw, 30px);
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.cube-face small {
  color: rgba(17, 19, 21, 0.62);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.cube-face h2 {
  margin: 0;
  font-size: clamp(34px, 7vw, 72px);
  line-height: 0.9;
}

.cube-face p {
  max-width: 25ch;
  color: rgba(17, 19, 21, 0.68);
}

@media (max-width: 840px) {
  .cube-stage {
    grid-template-columns: 1fr;
  }

  .cube-scene {
    width: min(76vw, 300px);
  }
}
