/*
 * The space hero's paint (vy-galaxy.js). Shared by the case file hero and the
 * pricing hero. Tokens only.
 *
 * The host (.vy-atmos-host, added by the script) stacks three things under its
 * content: the dither canvas, then the atmosphere layer (.vy-atmos), whose
 * horizon and sparkles are spans, so the host's own ::before and ::after stay
 * free. The horizon runs to the page edges, so the page clips horizontal
 * overflow (clip, not hidden, keeps sticky children working).
 */
.vy-svc-page:has(.vy-atmos) { overflow-x: clip; }

.vy-svc-page .vy-atmos-host {
	position: relative;
	isolation: isolate;
}
.vy-svc-page .vy-atmos-host > .vy-dither {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	pointer-events: none;
}
.vy-svc-page .vy-atmos-host > :not(.vy-dither):not(.vy-atmos) { position: relative; z-index: 1; }
.vy-svc-page .vy-atmos {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

/* The horizon: a lit rim across the host's foot, a glow rising off it and a
   halftone screen over the glow, the same arc the hubs draw in WebGL. In
   from nothing and out to nothing, so the section below picks it up. */
.vy-svc-page .vy-atmos__horizon {
	position: absolute;
	inset: auto calc(var(--svc-pad, 32px) * -1) 0;
	height: 300px;
	background:
		radial-gradient(circle, color-mix(in oklab, var(--accent-bright) 30%, transparent) 0.8px, transparent 1.4px) 0 0 / 9px 9px,
		radial-gradient(75% 150% at 50% 175%, transparent 64%, color-mix(in oklab, var(--accent-bright) 55%, transparent) 64.5%, color-mix(in oklab, var(--accent) 22%, transparent) 65.6%, transparent 74%),
		radial-gradient(45% 70% at 50% 92%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 75%);
	-webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, #000 72%, transparent);
	mask-image: linear-gradient(180deg, transparent, #000 40%, #000 72%, transparent);
}

/* The SEO orbit's four-point sparkles, a few, twinkling. One shape, placed
   at fixed points as mask layers over a foreground fill. */
.vy-svc-page .vy-atmos__sparks {
	--vy-spark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0 L11.2 8.8 L20 10 L11.2 11.2 L10 20 L8.8 11.2 L0 10 L8.8 8.8 Z'/%3E%3C/svg%3E");
	position: absolute;
	inset: 0;
	background: var(--fg-2);
	-webkit-mask-image: var(--vy-spark), var(--vy-spark), var(--vy-spark), var(--vy-spark), var(--vy-spark), var(--vy-spark);
	mask-image: var(--vy-spark), var(--vy-spark), var(--vy-spark), var(--vy-spark), var(--vy-spark), var(--vy-spark);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: 58% 14%, 66% 72%, 79% 6%, 94% 92%, 51% 46%, 99% 34%;
	mask-position: 58% 14%, 66% 72%, 79% 6%, 94% 92%, 51% 46%, 99% 34%;
	-webkit-mask-size: 12px, 8px, 10px, 14px, 7px, 9px;
	mask-size: 12px, 8px, 10px, 14px, 7px, 9px;
	opacity: 0.7;
	animation: vy-atmos-spark 5.5s ease-in-out infinite alternate;
}
@keyframes vy-atmos-spark { from { opacity: 0.35; } to { opacity: 0.8; } }

@media (max-width: 767px), (hover: none) {
	.vy-svc-page .vy-atmos-host > .vy-dither { opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) {
	.vy-svc-page .vy-atmos__sparks { animation: none; }
}
