/* AfriAgentic home hero: deep-space layer (paired with aa-space.js). */
.aa-hero.aa-space-on {
	background-color: #030b17 !important;
	isolation: isolate;
}
.aa-hero #aa-space {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	opacity: 1 !important;
	z-index: -1 !important;
	pointer-events: none;
}
.aa-hero .aa-space-neb {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(42% 46% at 74% 42%, rgba(94, 168, 217, .17), rgba(94, 168, 217, 0) 70%),
		radial-gradient(34% 30% at 16% 12%, rgba(217, 164, 65, .09), rgba(217, 164, 65, 0) 70%),
		radial-gradient(30% 26% at 92% 88%, rgba(194, 59, 59, .07), rgba(194, 59, 59, 0) 70%),
		radial-gradient(80% 60% at 50% 115%, rgba(23, 58, 105, .55), rgba(23, 58, 105, 0) 72%);
	opacity: 0;
	animation: aa-neb-in 2.6s ease-out .5s forwards;
}
@keyframes aa-neb-in { to { opacity: 1; } }

/* Keep the copy crisp over the stars. */
.aa-hero.aa-space-on .aa-hero-title .elementor-heading-title,
.aa-hero.aa-space-on .elementor-widget-text-editor p {
	text-shadow: 0 2px 24px rgba(3, 11, 23, .85);
}

@media (max-width: 767px) {
	.aa-hero .aa-space-neb {
		background:
			radial-gradient(70% 40% at 50% 34%, rgba(94, 168, 217, .15), rgba(94, 168, 217, 0) 70%),
			radial-gradient(60% 30% at 10% 8%, rgba(217, 164, 65, .08), rgba(217, 164, 65, 0) 70%),
			radial-gradient(100% 50% at 50% 115%, rgba(23, 58, 105, .55), rgba(23, 58, 105, 0) 72%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.aa-hero .aa-space-neb { animation: none; opacity: 1; }
}

/* AA-RINGS: the profile emblem is square, so the orbit rings open up to circle it
   and the emblem sits inside them, as with the earlier landscape artwork. */
.aa-hero .aa-stage img { width: 100% !important; max-width: 88% !important; height: auto !important; }
.aa-hero .aa-stage .ring.r1 { inset: -6% !important; }
.aa-hero .aa-stage .ring.r2 { inset: 3% !important; }

/* AA-EARTH-SCI: the scientific Earth carries its own night-side shading, so it shows at near full strength. */
.aa-hero #aa-hero-earth { opacity: .85 !important; }
