/* ==========================================================================
   splash.css – 2-second intro screen (see inc/splash.php)
   Timeline: 0–1.6s intro animations · 1.6–2.0s fade out.
   Works even without JavaScript (the fade-out is pure CSS).
   ========================================================================== */

.dp-splash { display: none; }

html.dp-splash-on { overflow: hidden; }
html.dp-splash-on .dp-splash {
	position: fixed; inset: 0; z-index: 2147483000;
	display: grid; place-items: center;
	overflow: hidden; cursor: pointer;
	background:
		radial-gradient(ellipse at 50% 40%, #2e3470 0%, #1e2248 45%, #111430 100%);
	color: var(--dp-white);
	animation: dp-splash-out .45s cubic-bezier(.7, 0, .3, 1) 1.6s forwards;
}
html.dp-splash-seen .dp-splash,
.dp-splash.is-done { display: none !important; }

/* ---------- Background: soft glow + expanding rings ---------- */
.dp-splash__glow {
	position: absolute; left: 50%; top: calc(50% - 90px); width: 620px; height: 620px;
	transform: translate(-50%, -50%);
	background: radial-gradient(circle, rgba(224, 146, 47, .28), transparent 62%);
	filter: blur(10px);
	animation: dp-splash-glow 2s ease-in-out both;
}
.dp-splash__rings { position: absolute; inset: 0; pointer-events: none; }
.dp-splash__rings span {
	position: absolute; left: 50%; top: calc(50% - 90px);
	width: 180px; height: 180px; margin: -90px 0 0 -90px;
	border: 1px solid rgba(242, 184, 97, .35); border-radius: 50%;
	opacity: 0;
	animation: dp-splash-ripple 1.8s cubic-bezier(.2, .7, .2, 1) forwards;
}
.dp-splash__rings span:nth-child(2) { animation-delay: .25s; }
.dp-splash__rings span:nth-child(3) { animation-delay: .5s; }

/* ---------- Centre ---------- */
.dp-splash__inner { position: relative; text-align: center; padding: 0 20px; }

.dp-splash__mark {
	position: relative; width: 132px; height: 132px; margin: 0 auto 26px;
	display: grid; place-items: center;
	animation: dp-splash-pop .7s cubic-bezier(.2, 1.3, .4, 1) both;
}
.dp-splash__ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.dp-splash__ring circle { fill: none; stroke-width: 3; }
.dp-splash__ring-track { stroke: rgba(255, 255, 255, .12); }
.dp-splash__ring-draw {
	stroke: var(--dp-accent); stroke-linecap: round;
	stroke-dasharray: 340; stroke-dashoffset: 340;
	animation: dp-splash-draw 1.2s cubic-bezier(.6, 0, .2, 1) .15s forwards;
}
.dp-splash__orbit {
	position: absolute; inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px);
	animation: dp-splash-spin 6s linear infinite;
}
.dp-splash__orbit circle { fill: none; stroke: rgba(242, 184, 97, .5); stroke-width: 1.2; stroke-dasharray: 2 9; }
.dp-splash__monogram {
	position: relative;
	display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%;
	background: linear-gradient(145deg, #2a2f63, #171a3d);
	box-shadow: inset 0 0 0 2px rgba(242, 184, 97, .55), 0 18px 40px -12px rgba(0, 0, 0, .6);
	font-family: var(--dp-font-head); font-size: 40px; font-weight: 700; letter-spacing: .04em;
	color: var(--dp-accent-2);
}

.dp-splash__name {
	margin: 0 0 10px;
	font-family: var(--dp-font-head); font-weight: 600;
	font-size: clamp(38px, 7vw, 64px); line-height: 1.05; letter-spacing: .01em;
	color: var(--dp-white);
}
.dp-splash__name span {
	display: inline-block; opacity: 0; transform: translateY(18px);
	animation: dp-splash-letter .5s cubic-bezier(.2, .7, .2, 1) forwards;
	animation-delay: calc(.35s + var(--i) * .045s);
}
.dp-splash__name .dp-splash__space { width: .28em; animation: none; opacity: 1; transform: none; }

.dp-splash__tagline {
	margin: 0 0 26px;
	font-size: 12.5px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase;
	color: var(--dp-accent-2);
	opacity: 0; animation: dp-splash-fade .6s ease .85s forwards;
}

.dp-splash__companies { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.dp-splash__companies li {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 5px 14px 5px 5px; border-radius: 999px;
	background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
	font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .88);
	opacity: 0; transform: translateY(10px);
	animation: dp-splash-letter .45s ease forwards;
	animation-delay: calc(1s + var(--n) * .12s);
}
.dp-splash__companies img { width: 28px; height: 28px; border-radius: 50%; object-fit: contain; background: #fff; padding: 2px; }

/* ---------- Progress bar ---------- */
.dp-splash__bar {
	position: absolute; left: 50%; bottom: 48px; width: min(220px, 60vw); height: 3px;
	transform: translateX(-50%); border-radius: 3px; overflow: hidden;
	background: rgba(255, 255, 255, .12);
}
.dp-splash__bar span {
	display: block; height: 100%; width: 100%; border-radius: 3px;
	background: linear-gradient(90deg, var(--dp-accent), var(--dp-accent-2));
	transform: scaleX(0); transform-origin: left;
	animation: dp-splash-bar 1.6s cubic-bezier(.4, 0, .2, 1) forwards;
}

/* ---------- Keyframes ---------- */
@keyframes dp-splash-out {
	0% { opacity: 1; visibility: visible; transform: scale(1); }
	100% { opacity: 0; visibility: hidden; transform: scale(1.04); }
}
@keyframes dp-splash-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@keyframes dp-splash-draw { to { stroke-dashoffset: 0; } }
@keyframes dp-splash-spin { to { transform: rotate(360deg); } }
@keyframes dp-splash-letter { to { opacity: 1; transform: none; } }
@keyframes dp-splash-fade { to { opacity: 1; } }
@keyframes dp-splash-bar { to { transform: scaleX(1); } }
@keyframes dp-splash-ripple {
	0% { opacity: .9; transform: scale(.6); }
	100% { opacity: 0; transform: scale(3.4); }
}
@keyframes dp-splash-glow {
	0% { opacity: 0; transform: translate(-50%, -50%) scale(.7); }
	60% { opacity: 1; }
	100% { opacity: .8; transform: translate(-50%, -50%) scale(1.05); }
}

/* ---------- Phones ---------- */
@media (max-width: 600px) {
	.dp-splash__mark { width: 112px; height: 112px; margin-bottom: 22px; }
	.dp-splash__monogram { width: 82px; height: 82px; font-size: 34px; }
	.dp-splash__tagline { font-size: 11px; letter-spacing: .24em; }
	.dp-splash__glow { width: 420px; height: 420px; }
	.dp-splash__bar { bottom: 36px; }
}

/* ---------- Reduced motion: simple, calm version ---------- */
@media (prefers-reduced-motion: reduce) {
	html.dp-splash-on .dp-splash { animation: dp-splash-out .3s ease 1.2s forwards !important; }
	.dp-splash *, .dp-splash *::before { animation: none !important; opacity: 1 !important; transform: none !important; }
	.dp-splash__ring-draw { stroke-dashoffset: 0; }
	.dp-splash__rings { display: none; }
}
