/*
	Home page - holding splash

	One full-height dark panel with the wordmark centred. The texture is drawn entirely in CSS
	(a graded charcoal base, a soft brand-blue glow behind the mark, a fine diagonal hatch and a
	vignette) so the page carries no image weight beyond the logo itself.
*/

.splash-body {
	margin: 0;
	padding: 0;
	background-color: #14171b;
}


.splash {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	min-height: 100vh;

	/* svh is the viewport with the mobile browser chrome showing - vh alone leaves the panel taller
	   than the screen on phones, which is enough to make a static page scroll */
	min-height: 100svh;

	background-color: #14171b;
	background-image:
		radial-gradient(ellipse 120% 90% at 50% 42%, rgba(33, 150, 243, 0.13) 0%, rgba(33, 150, 243, 0) 60%),
		linear-gradient(160deg, #212730 0%, #14171b 55%, #0f1216 100%);
}


/* Texture - a fine diagonal hatch, low enough in contrast to read as grain rather than as stripes */
.splash:before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.028) 0 1px, rgba(255, 255, 255, 0) 1px 7px);
	pointer-events: none;
}


/* Vignette - pulls the eye to the centre of the panel */
.splash:after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.58) 100%);
	pointer-events: none;
}


.splash-inner {
	position: relative;
	z-index: 1;
	padding: 24px;
	text-align: center;
}


/* The wordmark is 240x80 on disk, so it is shown at its own size and only ever scaled down */
.splash-logo {
	display: block;
	width: 240px;
	max-width: 62vw;
	height: auto;
	margin: 0 auto;
	filter: drop-shadow(0 6px 26px rgba(0, 0, 0, 0.45));
	animation: splash-fade-in 900ms ease-out both;
}


/* Text fallback for an install whose branding layers hold no logo file at all */
.splash-wordmark {
	margin: 0;
	color: #ffffff;
	font-size: clamp(32px, 7vw, 54px);
	font-weight: 700;
	letter-spacing: -0.02em;
	animation: splash-fade-in 900ms ease-out both;
}

.splash-wordmark span {
	color: #2196f3;
}


@keyframes splash-fade-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}


@media (prefers-reduced-motion: reduce) {

	.splash-logo,
	.splash-wordmark {
		animation: none;
	}
}
