/* kv-anim.css — overlay intro: gradient slide-in → copy fade-up → fade-out */
:root {
	--kv-y: 24px;
	--kv-ease: cubic-bezier(0.3, 0.8, 0.2, 1);
}

/* Overlay covers the viewport; sits on top */
.kv-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999; /* above site header etc. */
	background: #fff; /* fallback bg behind gradient */
	display: grid;
	place-items: center;
	opacity: 1;
	pointer-events: none; /* avoid trapping clicks after fadeout; JS toggles as needed */
	height: 100vh;
}

/* Background gradient that slides in from left */
.kv-bg {
	position: absolute;
	inset: 0;
	overflow: hidden;
}
.kv-grad {
	position: absolute;
	inset: -10%;
	background: linear-gradient(
		135deg,
		rgba(40, 178, 230, 1) 0%,
		rgba(56, 187, 224, 1) 40%,
		rgba(194, 235, 80, 1) 100%
	);
	transform: translateX(-100%);
	width: 150vw;
	opacity: 0;
	border-radius: 0 70vh 0 0;
}

.kv {
	position: relative;
	z-index: 1;
	width: min(92vw, 603px);
	overflow: visible;
}
.catch {
	display: block;
	width: 100%;
	height: auto;
	will-change: transform, opacity;
}

html.no-anim .kv-overlay {
	display: none;
}

/* reduced motion users: no animation, overlay hidden */
@media (prefers-reduced-motion: reduce) {
	.kv-overlay {
		display: none !important;
	}
	.catch .line {
		opacity: 1 !important;
		transform: none !important;
		filter: none !important;
	}
}

@media (max-width: 767px) {
	.kv-grad {
		width: 200vw;
	}
}
