/**
 * Employer talent-panel motion.
 *
 * Lightweight CSS-only animation keeps the panel lively without delaying the
 * page or requiring JavaScript. Reduced-motion visitors receive a static view.
 */

.employer-section__visual {
	overflow: hidden;
}

.talent-live-status {
	align-items: center;
	color: rgba(255, 255, 255, 0.82);
	display: flex;
	font-size: 0.64rem;
	font-weight: 750;
	justify-content: space-between;
	left: 44px;
	letter-spacing: 0.025em;
	position: absolute;
	right: 44px;
	top: 24px;
	z-index: 2;
}

.talent-live-status > span {
	align-items: center;
	display: inline-flex;
	gap: 8px;
}

.talent-live-status i {
	animation: talent-live-pulse 2.2s ease-out infinite;
	background: #68e3b5;
	border: 2px solid rgba(255, 255, 255, 0.58);
	border-radius: 50%;
	box-shadow: 0 0 0 0 rgba(104, 227, 181, 0.5);
	display: block;
	height: 10px;
	width: 10px;
}

.talent-live-status small {
	color: rgba(222, 240, 253, 0.64);
	font-size: 0.6rem;
	font-weight: 650;
}

.talent-stack {
	position: relative;
	z-index: 1;
}

.talent-stack > div {
	--talent-delay: 0s;
	animation: talent-card-focus 6s ease-in-out var(--talent-delay) infinite;
	overflow: hidden;
	position: relative;
	transform-origin: center;
	will-change: transform;
}

.talent-stack > div:nth-child(2) {
	--talent-delay: 2s;
}

.talent-stack > div:nth-child(3) {
	--talent-delay: 4s;
}

.talent-stack > div > * {
	position: relative;
	z-index: 1;
}

.talent-stack > div::after {
	animation: talent-card-scan 6s ease-in-out var(--talent-delay) infinite;
	background: linear-gradient(90deg, transparent, rgba(120, 205, 255, 0.28), transparent);
	content: "";
	inset-block: -35%;
	left: 0;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	transform: translateX(-190%) skewX(-16deg);
	width: 38%;
}

.talent-stack b {
	animation: talent-check-pulse 6s ease-in-out var(--talent-delay) infinite;
}

.talent-screening {
	align-items: center;
	bottom: 82px;
	color: rgba(231, 245, 255, 0.8);
	display: grid;
	font-size: 0.62rem;
	font-weight: 750;
	gap: 12px;
	grid-template-columns: auto minmax(80px, 1fr);
	left: 44px;
	letter-spacing: 0.02em;
	position: absolute;
	right: 44px;
	z-index: 2;
}

.talent-screening > span:first-child {
	white-space: nowrap;
}

.talent-screening__track {
	background: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	height: 6px;
	overflow: hidden;
	position: relative;
}

.talent-screening__track i {
	animation: talent-screening-sweep 2.8s ease-in-out infinite;
	background: linear-gradient(90deg, transparent, var(--gold-400), #fff0b8, transparent);
	border-radius: inherit;
	display: block;
	height: 100%;
	transform: translateX(-125%);
	width: 52%;
}

.employer-section__label {
	z-index: 2;
}

@keyframes talent-live-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(104, 227, 181, 0.48);
	}

	70%,
	100% {
		box-shadow: 0 0 0 8px rgba(104, 227, 181, 0);
	}
}

@keyframes talent-card-focus {
	0%,
	4%,
	24%,
	100% {
		box-shadow: var(--shadow-sm);
		transform: translateY(0) scale(1);
	}

	10%,
	17% {
		box-shadow: 0 16px 34px rgba(3, 27, 50, 0.2);
		transform: translateY(-3px) scale(1.012);
	}
}

@keyframes talent-card-scan {
	0%,
	4%,
	24%,
	100% {
		opacity: 0;
		transform: translateX(-190%) skewX(-16deg);
	}

	9% {
		opacity: 0.9;
	}

	20% {
		opacity: 0;
		transform: translateX(430%) skewX(-16deg);
	}
}

@keyframes talent-check-pulse {
	0%,
	5%,
	24%,
	100% {
		box-shadow: 0 0 0 0 rgba(12, 157, 104, 0);
		transform: scale(1);
	}

	13% {
		box-shadow: 0 0 0 7px rgba(12, 157, 104, 0.13);
		transform: scale(1.09);
	}
}

@keyframes talent-screening-sweep {
	0% {
		transform: translateX(-125%);
	}

	55%,
	70% {
		transform: translateX(145%);
	}

	100% {
		transform: translateX(245%);
	}
}

@media (max-width: 640px) {
	.employer-section__visual {
		min-height: 420px;
		padding: 54px 19px;
	}

	.talent-live-status {
		left: 19px;
		right: 19px;
		top: 19px;
	}

	.talent-live-status small {
		display: none;
	}

	.talent-screening {
		bottom: 72px;
		gap: 9px;
		grid-template-columns: auto minmax(52px, 1fr);
		left: 19px;
		right: 19px;
	}

	.talent-screening > span:first-child {
		font-size: 0.58rem;
	}

	.employer-section__label {
		bottom: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.talent-live-status i,
	.talent-stack > div,
	.talent-stack > div::after,
	.talent-stack b,
	.talent-screening__track i {
		animation: none !important;
	}

	.talent-stack > div {
		transform: none !important;
	}

	.talent-stack > div::after {
		display: none;
	}

	.talent-screening__track i {
		opacity: 0.78;
		transform: none;
		width: 100%;
	}
}
