/*
Hand motion on the three step illustrations: checklist, puzzle, vision.
The PNGs stay in place. Loops are 6.4s, 6.8s, and 5.6s so the row
does not pulse together. prefers-reduced-motion hides the overlays.
*/

.nv-action {
	position: relative;
	display: inline-block;
	max-width: 100%;
	line-height: 0;
	vertical-align: top;
}

.nv-action > img {
	display: block;
	max-width: 100%;
	width: auto;
	height: auto;
	position: relative;
	z-index: 0;
}

.tp-feature-item-thumb > .nv-action {
	margin-bottom: 62px;
	border-radius: 88.5px;
	overflow: hidden;
	transition: transform 0.2s ease-in;
}

.tp-feature-item-thumb > .nv-action > img.thumb {
	margin-bottom: 0;
	border-radius: 0;
	overflow: visible;
}

.tp-feature-item:hover .tp-feature-item-thumb > .nv-action {
	transform: scale(1.05);
}

.tp-feature-item:hover .tp-feature-item-thumb > .nv-action > img.thumb {
	transform: none;
}

.nv-action > img.nv-step-motion,
.nv-action > img.nv-step-float {
	animation: none !important;
	opacity: 1 !important;
	transform: none !important;
}

.nv-action__stage {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	overflow: hidden;
}

.nv-action__plate,
.nv-action__sprite,
.nv-action__svg,
.nv-act-limb {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.nv-action__plate {
	z-index: 1;
}

.nv-action__svg {
	z-index: 2;
	overflow: visible;
}

.nv-action__svg--fx {
	z-index: 4;
}

.nv-action__sprite,
.nv-act-limb {
	z-index: 3;
}

.nv-act-tick {
	fill: none;
	stroke: #f0c000;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 18;
	stroke-dashoffset: 18;
}

.nv-act-tick--2 {
	animation: nv-act-tick-2 6.4s linear infinite;
}

.nv-act-tick--3 {
	animation: nv-act-tick-3 6.4s linear infinite;
}

.nv-act-tick--4 {
	animation: nv-act-tick-4 6.4s linear infinite;
}

@keyframes nv-act-tick-2 {
	0%,
	26% {
		stroke-dashoffset: 18;
		opacity: 0;
	}

	36%,
	88% {
		stroke-dashoffset: 0;
		opacity: 1;
	}

	96%,
	100% {
		stroke-dashoffset: 0;
		opacity: 0;
	}
}

@keyframes nv-act-tick-3 {
	0%,
	50% {
		stroke-dashoffset: 18;
		opacity: 0;
	}

	60%,
	88% {
		stroke-dashoffset: 0;
		opacity: 1;
	}

	96%,
	100% {
		stroke-dashoffset: 0;
		opacity: 0;
	}
}

@keyframes nv-act-tick-4 {
	0%,
	74% {
		stroke-dashoffset: 18;
		opacity: 0;
	}

	84%,
	92% {
		stroke-dashoffset: 0;
		opacity: 1;
	}

	96%,
	100% {
		stroke-dashoffset: 0;
		opacity: 0;
	}
}

.nv-action__sprite--arm {
	transform-origin: 12.4% 43.6%;
	animation: nv-act-arm 6.4s cubic-bezier(0.42, 0.02, 0.22, 1) infinite;
}

@keyframes nv-act-arm {
	0%,
	14% {
		transform: rotate(-16deg);
	}

	28%,
	42% {
		transform: rotate(0deg);
	}

	54%,
	68% {
		transform: rotate(18deg);
	}

	78%,
	90% {
		transform: rotate(34deg);
	}

	100% {
		transform: rotate(-16deg);
	}
}

.nv-action__sprite--tap-l,
.nv-action__sprite--tap-r {
	animation: nv-act-tap 6.4s ease-in-out infinite;
}

.nv-action__sprite--tap-r {
	animation-delay: -3.2s;
}

@keyframes nv-act-tap {
	0%,
	8%,
	42%,
	58%,
	100% {
		transform: translate3d(0, 0, 0);
	}

	18%,
	28% {
		transform: translate3d(0.4%, 2.5%, 0);
	}

	70%,
	80% {
		transform: translate3d(-0.3%, 2.2%, 0);
	}
}

.nv-action--puzzle .nv-action__sprite--press {
	animation: nv-act-press 6.8s ease-in-out infinite;
	animation-delay: -2.3s;
}

.nv-action--puzzle .nv-action__sprite--piece {
	animation: nv-act-seat 6.8s ease-in-out infinite;
	animation-delay: -2.3s;
}

.nv-action--puzzle .nv-action__sprite--fingers {
	z-index: 4;
	animation: nv-act-seat 6.8s ease-in-out infinite;
	animation-delay: -2.3s;
}

@keyframes nv-act-press {
	0%,
	8% {
		transform: translate3d(0, 0, 0);
	}

	20%,
	34% {
		transform: translate3d(3.6%, 0.4%, 0);
	}

	50%,
	100% {
		transform: translate3d(0, 0, 0);
	}
}

@keyframes nv-act-seat {
	0%,
	12% {
		transform: translate3d(0, 0, 0);
	}

	44%,
	62% {
		transform: translate3d(-5.6%, 0.3%, 0);
	}

	86%,
	100% {
		transform: translate3d(0, 0, 0);
	}
}

.nv-act-flash {
	position: absolute;
	z-index: 4;
	border-radius: 50%;
	pointer-events: none;
	opacity: 0;
	background: radial-gradient(circle, rgba(255, 230, 130, 0.95) 0%, rgba(240, 193, 12, 0.45) 42%, rgba(240, 193, 12, 0) 72%);
}

.nv-act-flash--press {
	left: 20%;
	top: 28%;
	width: 16%;
	height: 14%;
	animation: nv-act-flash-press 6.8s ease-in-out infinite;
	animation-delay: -2.3s;
}

.nv-act-flash--piece {
	left: 48%;
	top: 24%;
	width: 22%;
	height: 18%;
	animation: nv-act-flash-piece 6.8s ease-in-out infinite;
	animation-delay: -2.3s;
}

@keyframes nv-act-flash-press {
	0%,
	14% {
		opacity: 0;
		transform: scale(0.7);
	}

	22%,
	32% {
		opacity: 0.9;
		transform: scale(1);
	}

	44%,
	100% {
		opacity: 0;
		transform: scale(1.15);
	}
}

@keyframes nv-act-flash-piece {
	0%,
	36% {
		opacity: 0;
		transform: scale(0.75);
	}

	48%,
	58% {
		opacity: 0.92;
		transform: scale(1);
	}

	72%,
	100% {
		opacity: 0;
		transform: scale(1.2);
	}
}

.nv-action__sprite--glass {
	transform-origin: 11% 33%;
	animation: nv-act-look 5.6s ease-in-out infinite;
	animation-delay: -3.7s;
}

@keyframes nv-act-look {
	0%,
	100% {
		transform: rotate(0deg);
	}

	38% {
		transform: rotate(-6deg);
	}

	72% {
		transform: rotate(5deg);
	}
}

.nv-action__sprite--scope {
	transform-origin: 76% 19%;
	animation: nv-act-tilt 5.6s ease-in-out infinite;
	animation-delay: -3.7s;
}

@keyframes nv-act-tilt {
	0%,
	100% {
		transform: rotate(0deg);
	}

	34% {
		transform: rotate(-7deg);
	}

	68% {
		transform: rotate(6deg);
	}
}

.nv-act-q {
	transform-box: fill-box;
	transform-origin: center;
	animation: nv-act-q 5.6s ease-in-out infinite;
	animation-delay: -3.7s;
}

@keyframes nv-act-q {
	0%,
	8% {
		opacity: 0;
		transform: scale(0.4);
	}

	18%,
	44% {
		opacity: 1;
		transform: scale(1);
	}

	60%,
	100% {
		opacity: 0;
		transform: scale(0.72);
	}
}

@media (prefers-reduced-motion: reduce) {
	.nv-action__stage {
		display: none !important;
	}

	.tp-feature-item:hover .tp-feature-item-thumb > .nv-action {
		transform: none;
	}

	.nv-action__sprite--arm,
	.nv-action__sprite--tap-l,
	.nv-action__sprite--tap-r,
	.nv-action__sprite--press,
	.nv-action__sprite--piece,
	.nv-action__sprite--fingers,
	.nv-action__sprite--glass,
	.nv-action__sprite--scope,
	.nv-act-tick,
	.nv-act-flash,
	.nv-act-q {
		animation: none !important;
	}
}
