/*
Repeating pass on the homepage years badge (.tp-hero-experince).

The gold square is the existing ::after on the label. These rules do not
move that square, recolor it, or change the white type. The sheen is a
separate layer clipped to the same rectangle. The words fade on their own
span so the gold behind them stays put. Each pass sweeps once; the script
starts the next pass. Reduced motion shows the printed year and the words,
with no sweep.
*/

.tp-hero-experince .nv-years-sheen {
	position: absolute;
	left: -18px;
	bottom: -30px;
	width: 190px;
	height: 160px;
	overflow: hidden;
	pointer-events: none;
	z-index: -1;
}

.tp-hero-experince .nv-years-sheen > span {
	position: absolute;
	top: -35%;
	left: 0;
	width: 42%;
	height: 170%;
	background: linear-gradient(
		100deg,
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, 0.08) 36%,
		rgba(255, 255, 255, 0.55) 50%,
		rgba(255, 255, 255, 0.08) 64%,
		rgba(255, 255, 255, 0) 100%
	);
	transform: translate3d(-220%, 0, 0) skewX(-18deg);
}

.tp-hero-experince.nv-years-sweep .nv-years-sheen > span {
	animation: nv-years-sheen 0.9s ease-in-out 1 forwards;
}

.tp-hero-experince.nv-years-wait .nv-years-words {
	opacity: 0;
}

.tp-hero-experince.nv-years-in .nv-years-words {
	opacity: 1;
	transition: opacity 0.42s ease;
}

@keyframes nv-years-sheen {
	0% {
		transform: translate3d(-220%, 0, 0) skewX(-18deg);
	}

	100% {
		transform: translate3d(340%, 0, 0) skewX(-18deg);
	}
}

@media (max-width: 767px) {
	body.home .tp-hero-area .tp-hero-experince .nv-years-sheen {
		left: -12px;
		bottom: -16px;
		width: 148px;
		height: 104px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tp-hero-experince.nv-years-wait .nv-years-words,
	.tp-hero-experince.nv-years-in .nv-years-words {
		opacity: 1 !important;
		transition: none !important;
	}

	.tp-hero-experince .nv-years-sheen,
	.tp-hero-experince .nv-years-sheen > span {
		display: none !important;
		animation: none !important;
	}
}
