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

.voxel-copy {
  position: relative;
  z-index: 2;
}

.voxel-lab {
  display: grid;
  min-height: clamp(380px, 52vw, 620px);
  place-items: center;
  perspective: 1200px;
}

.voxel-grid {
  display: grid;
  width: min(72vw, 560px);
  aspect-ratio: 1;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: repeat(7, minmax(0, 1fr));
  gap: clamp(6px, 1vw, 12px);
  transform-style: preserve-3d;
}

.voxel {
  position: relative;
  border: 1px solid rgba(17, 19, 21, 0.16);
  border-radius: 7px;
  background: linear-gradient(135deg, var(--a), var(--b));
  box-shadow: 0 20px 38px rgba(17, 19, 21, 0.18);
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.voxel::before,
.voxel::after {
  position: absolute;
  content: "";
  border-radius: inherit;
  pointer-events: none;
}

.voxel::before {
  right: -10px;
  bottom: 0;
  width: 10px;
  height: 100%;
  background: rgba(17, 19, 21, 0.16);
  transform: rotateY(90deg);
  transform-origin: left center;
}

.voxel::after {
  right: 0;
  bottom: -10px;
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.28);
  transform: rotateX(-90deg);
  transform-origin: center top;
}

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

  .voxel-lab {
    min-height: 420px;
  }

  .voxel-grid {
    width: min(86vw, 430px);
  }
}
