/**
 * HAE logo splash / preloader
 */

html.hae-splash-active,
html.hae-splash-active body {
	overflow: hidden;
}

.hae-splash {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(160deg, #071228 0%, #0d1c3d 32%, #162848 55%, #0b1830 78%, #071228 100%);
	transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
}

.hae-splash::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(ellipse at 30% 40%, rgba(76, 161, 231, 0.2) 0%, transparent 52%),
		radial-gradient(ellipse at 70% 60%, rgba(60, 113, 194, 0.14) 0%, transparent 48%);
	pointer-events: none;
}

.hae-splash__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem;
	text-align: center;
	padding: 2rem;
	animation: hae-splash-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hae-splash__logo {
	width: min(220px, 58vw);
	height: auto;
	object-fit: contain;
	filter: brightness(0) invert(1);
	animation: hae-splash-pulse 2s ease-in-out infinite;
}

.hae-splash__tagline {
	margin: 0;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.45);
}

.hae-splash--hide {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.hae-splash--done {
	display: none;
}

@keyframes hae-splash-in {
	from {
		opacity: 0;
		transform: scale(0.94) translateY(12px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

@keyframes hae-splash-pulse {
	0%,
	100% {
		opacity: 1;
		transform: scale(1);
	}
	50% {
		opacity: 0.88;
		transform: scale(0.98);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hae-splash {
		transition-duration: 0.01ms;
	}

	.hae-splash__inner,
	.hae-splash__logo {
		animation: none;
	}
}
