/**
 * DPM Particle Sphere - hero stage styles (front page only).
 * Adapted from "Morphing Particle Sphere" by ygnanil,
 * https://codepen.io/ygnanil/pen/zxGErbg - MIT license (CodePen default
 * for public Pens).
 *
 * The stage box (width/height/left/top) is set inline by sphere.js:
 * side = min(hero right column width, hero row height), centered on the
 * column and clamped inside the hero row, so the drawn sphere (78 percent
 * of the stage) never clips and never crosses into the left text column.
 */

.dpm-sphere {
	position: absolute;
	/* Behind the hero text content (headline, tagline, buttons): every
	 * ancestor up to the body has a transparent background, and the body
	 * background (rgb(23, 17, 17)) still paints below negative z-index, so
	 * the particles stay visible behind the copy. */
	z-index: -1;
	pointer-events: none;
	/* No cursor interaction, no scroll choreography: nothing here reacts
	 * to pointer or scroll events; the box itself is sized by sphere.js. */
}

.dpm-sphere canvas {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

/* Static fallback for missing WebGL or a failed renderer init: a subtle
 * radial-gradient disc, shown only when data-particle-mode is no-webgl or
 * error, so the hero never shows a blank void. */
.dpm-sphere-fallback {
	position: absolute;
	inset: 0;
	display: none;
	border-radius: 50%;
	background: radial-gradient(
		circle at 50% 50%,
		rgba(245, 245, 245, 0.2) 0%,
		rgba(245, 245, 245, 0.12) 38%,
		rgba(138, 138, 138, 0.07) 60%,
		rgba(138, 138, 138, 0) 78%
	);
}

.dpm-sphere[data-particle-mode="no-webgl"] .dpm-sphere-fallback,
.dpm-sphere[data-particle-mode="error"] .dpm-sphere-fallback {
	display: block;
}

/* Mobile: the sphere is fully hidden at or below 860px. display:none means
 * the stage contributes no layout height and no gaps. sphere.js also skips
 * init on mobile layout (data-particle-motion="hidden-mobile") and lazily
 * initializes when the viewport crosses back above 860px. */
@media (max-width: 860px) {
	.dpm-sphere {
		display: none;
	}
}
