.hero {
	position: relative;
}

.hero-copy {
	position: relative;
	z-index: 1;
}

.cube-hero {
	position: absolute;
	top: 50%;
	right: 0;
	transform: translateY(-50%);
	width: min(58%, 640px);
	height: clamp(300px, 32vw, 450px);
	overflow: visible;
	isolation: isolate;
	pointer-events: none;
	z-index: 0;
}

.cube-hero__canvas {
	max-width: none;
	position: absolute;
	inset: auto;
	width: 100%;
	height: 100%;
	display: block;
	background: transparent;
}

.cube-hero__fallback {
	position: absolute;
	inset: 0;
	margin: 0;
	display: grid;
	place-items: center;
	color: var(--orange);
	font-size: 2rem;
	font-weight: 800;
}

.cube-hero__fallback[hidden] {
	display: none;
}

@media (max-width: 900px) {
	.cube-hero {
		position: relative;
		inset: auto;
		top: auto;
		right: auto;
		transform: none;
		width: 100%;
		max-width: 420px;
		height: 300px;
		margin: 8px auto 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cube-hero__canvas {
		animation: none;
	}
}
