/* Local motion system. Images and readable content remain usable without JS. */
.sp-motion-backdrop {
	position: fixed;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
	contain: strict;
	background: var(--sp-space-background, var(--sp-bg));
}
.sp-motion-backdrop::before,
.sp-motion-backdrop::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	background: radial-gradient(circle at 30% 25%, rgba(168, 194, 233, .65), rgba(67, 91, 134, .45) 38%, rgba(14, 25, 44, .16) 72%);
	box-shadow: inset -4px -3px 7px rgba(3, 10, 21, .55), 0 0 20px rgba(103, 143, 201, .04);
}
.sp-motion-backdrop::before { width: 24px; height: 24px; right: 7%; top: 23%; opacity: .32; }
.sp-motion-backdrop::after { width: 13px; height: 13px; left: 4%; bottom: 18%; opacity: .24; }
.sp-main, .sp-site-footer { position: relative; z-index: 1; }
.sp-motion-stars {
	position: absolute;
	inset: -70px;
	background-repeat: repeat;
	animation: sp-star-drift 64s ease-in-out infinite alternate paused;
}
.sp-motion-stars--far {
	opacity: .24;
	background-image: radial-gradient(circle at 19px 42px, var(--sp-muted) 0 1px, transparent 1.5px), radial-gradient(circle at 183px 113px, var(--sp-muted) 0 .8px, transparent 1.4px), radial-gradient(circle at 321px 238px, var(--sp-gold) 0 .8px, transparent 1.5px);
	background-size: 397px 307px;
}
.sp-motion-stars--near {
	opacity: .34;
	background-image: radial-gradient(circle at 79px 196px, rgba(202, 222, 255, .9) 0 .8px, rgba(123, 167, 255, .25) 1.5px, transparent 4px), radial-gradient(circle at 294px 72px, rgba(202, 222, 255, .8) 0 .7px, rgba(123, 167, 255, .18) 1.3px, transparent 3px), radial-gradient(circle at 471px 342px, var(--sp-gold) 0 1px, transparent 1.8px);
	background-size: 569px 433px;
	animation-duration: 42s;
	animation-direction: alternate-reverse;
}
.sp-motion-aurora {
	position: absolute;
	inset: -14%;
	opacity: .35;
	background: radial-gradient(ellipse at 17% 28%, rgba(var(--sp-accent-rgb),.16), transparent 37%), radial-gradient(ellipse at 88% 66%, rgba(var(--sp-accent-rgb),.1), transparent 35%);
	animation: sp-aurora-drift 32s ease-in-out infinite alternate paused;
}
html.sp-motion-running .sp-motion-backdrop > * { animation-play-state: running; }
.sp-hero-stars { animation: sp-hero-star-drift 55s ease-in-out infinite alternate paused; }
html.sp-motion-running .sp-hero-stars { animation-play-state: running; }
html.sp-motion-paused .sp-hero-stars { animation-play-state: paused; }

.sp-motion-scene {
	--sp-tilt-x: 0deg;
	--sp-tilt-y: 0deg;
	--sp-shift-x: 0px;
	--sp-shift-y: 0px;
	isolation: isolate;
	perspective: 1100px;
}
.sp-motion-media {
	position: relative;
	z-index: 0;
	width: 100%;
	transform: perspective(1100px) translate3d(var(--sp-shift-x), var(--sp-shift-y), 0) rotateX(var(--sp-tilt-x)) rotateY(var(--sp-tilt-y));
	transform-origin: 50% 50%;
	transition: transform .55s cubic-bezier(.2,.65,.2,1);
}
.sp-motion-float {
	position: relative;
	width: 100%;
	animation: sp-art-float 8.8s ease-in-out infinite paused;
}
.sp-motion-scene[data-sp-motion="hero"] .sp-motion-media,
.sp-motion-scene[data-sp-motion="hero"] .sp-motion-float { position: absolute; inset: 0; }
.sp-motion-scene[data-sp-motion="hero"] .sp-hero-image { z-index: 0; }
.sp-motion-scene[data-sp-motion="context"] .sp-motion-float { animation-duration: 10.4s; animation-delay: -2.6s; }
.sp-motion-scene[data-sp-motion="security"] .sp-motion-float { animation-duration: 12s; animation-delay: -5s; }
.sp-motion-scene .sp-visual-caption { z-index: 3; }
.sp-motion-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	color: var(--sp-accent);
	pointer-events: none;
	overflow: hidden;
	border-radius: 32px;
}
.sp-motion-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sp-motion-overlay--hero { inset: -1%; }
.sp-motion-overlay--context { color: var(--sp-accent); }
.sp-motion-overlay--security { color: var(--sp-mint, var(--sp-accent)); }
.sp-motion-halo {
	position: absolute;
	left: 24%; top: 21%; width: 52%; height: 58%;
	border-radius: 50%;
	background: radial-gradient(ellipse, rgba(var(--sp-accent-rgb),.14), rgba(var(--sp-accent-rgb),.035) 50%, transparent 72%);
	opacity: .36;
	animation: sp-halo-breathe 6s ease-in-out infinite paused;
}
.sp-motion-overlay--security .sp-motion-halo { background: radial-gradient(ellipse, rgba(73,224,169,.1), transparent 72%); animation-duration: 8s; }
.sp-motion-orbit-track { opacity: .23; }
.sp-motion-point { fill: currentColor; }
.sp-motion-point--gold { fill: var(--sp-gold); }
.sp-motion-point--soft { fill: var(--sp-heading); opacity: .65; }
.sp-motion-arc { opacity: .7; }
.sp-motion-spin { transform-box: view-box; transform-origin: 50% 50%; animation: sp-orbit-spin 26s linear infinite paused; }
.sp-motion-spin--reverse { animation-duration: 38s; animation-direction: reverse; opacity: .8; }
.sp-motion-sparkles { opacity: .5; animation: sp-sparkle-breathe 5.2s ease-in-out infinite alternate paused; }
.sp-motion-data-paths { opacity: .18; }
.sp-motion-data-flow { opacity: .75; animation: sp-data-flow 7s linear infinite paused; }
.sp-motion-data-flow--gold { color: var(--sp-gold); animation-duration: 8.4s; animation-delay: -3.5s; }
.sp-motion-core-ring { opacity: .27; transform-box: view-box; transform-origin: 50% 50%; animation: sp-core-expand 5s ease-out infinite paused; }
.sp-motion-core-ring--outer { animation-delay: -2.5s; }
.sp-motion-shield-scan { opacity: .6; animation: sp-shield-flow 12s linear infinite paused; }
.sp-motion-security-mark { opacity: .32; animation: sp-sparkle-breathe 7s ease-in-out infinite alternate paused; }
.sp-motion-dust { position: absolute; display: block; width: 3px; height: 3px; border-radius: 50%; background: var(--sp-accent); opacity: .45; animation: sp-dust-rise 9s ease-in-out infinite paused; }
.sp-motion-dust--one { left: 18%; top: 62%; }
.sp-motion-dust--two { left: 77%; top: 70%; animation-delay: -3s; animation-duration: 12s; background: var(--sp-gold); }
.sp-motion-dust--three { left: 60%; top: 24%; animation-delay: -7s; animation-duration: 11s; }
.sp-motion-scene .sp-orbit { animation: sp-legacy-orbit 36s linear infinite paused; }
.sp-motion-scene .sp-orbit--two { animation-duration: 48s; animation-direction: reverse; }
html.sp-motion-running .sp-motion-scene.is-in-view .sp-motion-animated,
html.sp-motion-running .sp-motion-scene.is-in-view .sp-motion-float,
html.sp-motion-running .sp-motion-scene.is-in-view .sp-orbit { animation-play-state: running; }
html.sp-motion-running .sp-motion-scene.is-in-view .sp-motion-media { will-change: transform; }
html.sp-motion-paused .sp-motion-animated,
html.sp-motion-paused .sp-motion-float,
html.sp-motion-paused .sp-motion-scene .sp-orbit,
html.sp-motion-paused .sp-motion-backdrop > * { animation-play-state: paused; }

@keyframes sp-hero-star-drift { from { transform: translate3d(-8px,-6px,0); } to { transform: translate3d(14px,10px,0); } }
@keyframes sp-star-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-53px, 58px, 0); } }
@keyframes sp-aurora-drift { 0% { transform: translate3d(-2%, -1%, 0); opacity: .25; } 100% { transform: translate3d(3%, 2%, 0); opacity: .5; } }
@keyframes sp-art-float { 0%, 100% { transform: translate3d(0, 4px, 0) rotate(-.22deg); } 50% { transform: translate3d(0, -8px, 0) rotate(.22deg); } }
@keyframes sp-halo-breathe { 0%, 100% { transform: scale(.94); opacity: .3; } 50% { transform: scale(1.06); opacity: .68; } }
@keyframes sp-orbit-spin { to { transform: rotate(360deg); } }
@keyframes sp-legacy-orbit { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes sp-sparkle-breathe { from { opacity: .35; } to { opacity: .75; } }
@keyframes sp-data-flow { from { stroke-dashoffset: 444; } to { stroke-dashoffset: 0; } }
@keyframes sp-shield-flow { from { stroke-dashoffset: 746; } to { stroke-dashoffset: 0; } }
@keyframes sp-core-expand { 0% { transform: scale(.88); opacity: 0; } 20% { opacity: .4; } 100% { transform: scale(1.18); opacity: 0; } }
@keyframes sp-dust-rise { 0%,100% { transform: translate3d(0,10px,0); opacity: .2; } 50% { transform: translate3d(7px,-15px,0); opacity: .65; } }

@media (max-width: 700px), (pointer: coarse) {
	.sp-motion-backdrop::before, .sp-motion-backdrop::after { display: none; }
	.sp-motion-stars--near { opacity: .16; animation-duration: 70s; }
	.sp-motion-stars--far { display: none; }
	.sp-motion-aurora { opacity: .22; }
	.sp-motion-scene .sp-motion-media { transform: none; }
	.sp-motion-dust--three, .sp-motion-spin--reverse { display: none; }
	.sp-motion-overlay { opacity: .72; }
	.sp-motion-float { animation-duration: 12s; }
}
@media (prefers-reduced-motion: reduce) {
	.sp-motion-backdrop > *, .sp-hero-stars, .sp-motion-animated, .sp-motion-float,
	.sp-motion-scene .sp-orbit { animation: none !important; }
	.sp-motion-media { transform: none !important; transition: none !important; }
	.sp-motion-dust, .sp-motion-core-ring { display: none; }
	.sp-motion-halo { opacity: .25; }
}
@media print {
	.sp-motion-backdrop, .sp-motion-overlay { display: none !important; }
	.sp-motion-media, .sp-motion-float { transform: none !important; animation: none !important; }
}

/* RGBA cutouts sit directly on the page: no circular mask or painted backdrop. */
.sp-motion-scene .sp-motion-media img { -webkit-mask-image: none; mask-image: none; border-radius: 0; }
.sp-motion-scene::before, .sp-motion-scene .sp-motion-halo,
.sp-motion-scene .sp-orbit, .sp-motion-scene .sp-motion-orbit-track { display: none; }
html[data-sp-theme="obsidian"] .sp-motion-scene img { filter: saturate(.82) drop-shadow(0 18px 25px rgba(0,0,0,.2)); }

/* Small diagram accents share the same visibility and reduced-motion settings. */
[data-sp-motion-detail] { --sp-detail-play-state: paused; }
html.sp-motion-running [data-sp-motion-detail].is-in-view { --sp-detail-play-state: running; }
html.sp-motion-paused [data-sp-motion-detail] { --sp-detail-play-state: paused !important; }

/* Connection paths move around the fixed, readable platform and product nodes. */
[data-sp-motion-detail="connections"] .sp-compat-orbit { pointer-events: none; }
[data-sp-motion-detail="connections"] .sp-compat-orbit i {
	animation: sp-detail-orbit 32s linear infinite;
	animation-play-state: var(--sp-detail-play-state);
}
[data-sp-motion-detail="connections"] .sp-compat-orbit i:nth-child(2) { animation-duration: 46s; animation-direction: reverse; }
[data-sp-motion-detail="connections"] .sp-compat-orbit i:nth-child(3) { animation-duration: 62s; animation-delay: -21s; }
[data-sp-motion-detail="connections"] .sp-compat-orbit i::before {
	content: "";
	position: absolute;
	top: -3px;
	left: calc(50% - 3px);
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--sp-accent);
	box-shadow: 0 0 0 5px rgba(var(--sp-accent-rgb), .06), 0 0 14px rgba(var(--sp-accent-rgb), .28);
	opacity: .8;
}
[data-sp-motion-detail="connections"] .sp-compat-orbit i:nth-child(2)::before { background: var(--sp-gold); width: 5px; height: 5px; opacity: .7; }
[data-sp-motion-detail="connections"] .sp-compat-orbit i:nth-child(3)::before { width: 4px; height: 4px; opacity: .5; }
[data-sp-motion-detail="connections"] .sp-compat-node--pilot > span { position: relative; }
[data-sp-motion-detail="connections"] .sp-compat-node--pilot > span::after {
	content: "";
	position: absolute;
	inset: -4px;
	border: 1px solid currentColor;
	border-radius: 14px;
	opacity: .15;
	pointer-events: none;
	animation: sp-detail-icon-halo 9s ease-in-out infinite;
	animation-play-state: var(--sp-detail-play-state);
}

/* A soft sequential emphasis explains the flow without shifting its labels. */
[data-sp-motion-detail="workflow"] > div > span { position: relative; }
[data-sp-motion-detail="workflow"] > div > span::before {
	content: "";
	position: absolute;
	inset: -5px;
	border: 1px solid var(--sp-accent);
	border-radius: 18px;
	background: rgba(var(--sp-accent-rgb), .06);
	opacity: .15;
	pointer-events: none;
	animation: sp-detail-workflow-halo 12s ease-in-out infinite;
	animation-play-state: var(--sp-detail-play-state);
}
[data-sp-motion-detail="workflow"] > div:nth-child(3) > span::before { animation-delay: 4s; }
[data-sp-motion-detail="workflow"] > div:nth-child(5) > span::before { animation-delay: 8s; }
[data-sp-motion-detail="workflow"] > i {
	opacity: .5;
	animation: sp-detail-workflow-arrow 12s ease-in-out infinite;
	animation-delay: 2s;
	animation-play-state: var(--sp-detail-play-state);
}
[data-sp-motion-detail="workflow"] > i:nth-child(4) { animation-delay: 6s; }

@keyframes sp-detail-orbit { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes sp-detail-icon-halo { 0%, 100% { transform: scale(.96); opacity: .12; } 50% { transform: scale(1.08); opacity: .4; } }
@keyframes sp-detail-workflow-halo { 0%, 55%, 100% { transform: scale(.96); opacity: .12; } 16%, 25% { transform: scale(1.08); opacity: .58; } }
@keyframes sp-detail-workflow-arrow { 0%, 55%, 100% { opacity: .38; } 16%, 25% { opacity: .95; } }

@media (max-width: 700px), (pointer: coarse) {
	[data-sp-motion-detail="connections"] .sp-compat-orbit i { animation-duration: 42s; }
	[data-sp-motion-detail="connections"] .sp-compat-orbit i:nth-child(2) { animation-duration: 56s; }
	[data-sp-motion-detail="connections"] .sp-compat-orbit i:nth-child(3) { animation: none; }
	[data-sp-motion-detail="connections"] .sp-compat-orbit i:nth-child(3)::before { display: none; }
}
@media (prefers-reduced-motion: reduce), print {
	[data-sp-motion-detail] *,
	[data-sp-motion-detail] *::before,
	[data-sp-motion-detail] *::after { animation: none !important; }
}
