/*
Typewriter for the "We've Been Thriving In 6 Years" heading only.
The script adds nv-thrive-type while that sentence is typing. Other
headings never get the class. The gold "6 Years" span and the teal
underline stay in the heading; the underline draws on after the type.
*/

.nv-thrive-type {
	position: relative;
}

.nv-thrive-type .nv-thrive-clip {
	display: inline-block;
	max-width: 100%;
	font: inherit;
	letter-spacing: inherit;
	line-height: inherit;
	color: inherit;
	vertical-align: baseline;
	clip-path: inset(0 100% 0 0);
	-webkit-clip-path: inset(0 100% 0 0);
}

.nv-thrive-type .title-right-shape {
	clip-path: inset(0 100% 0 0) !important;
	-webkit-clip-path: inset(0 100% 0 0) !important;
	transition: none !important;
}

.nv-thrive-type.is-armed .title-right-shape {
	transition: clip-path 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), -webkit-clip-path 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
}

.nv-thrive-type.is-done .title-right-shape {
	clip-path: inset(0 0% 0 0) !important;
	-webkit-clip-path: inset(0 0% 0 0) !important;
}

.nv-thrive-caret {
	position: absolute;
	display: block;
	width: 2px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 1px;
	background: currentColor;
	pointer-events: none;
	user-select: none;
	z-index: 2;
	animation: nv-thrive-blink 0.8s steps(1, end) infinite;
}

@keyframes nv-thrive-blink {
	0%,
	45% {
		opacity: 1;
	}

	45.01%,
	100% {
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nv-thrive-type .nv-thrive-clip {
		clip-path: none !important;
		-webkit-clip-path: none !important;
	}

	.nv-thrive-type .title-right-shape,
	.nv-thrive-type.is-armed .title-right-shape,
	.nv-thrive-type.is-done .title-right-shape {
		clip-path: none !important;
		-webkit-clip-path: none !important;
		transition: none !important;
	}

	.nv-thrive-caret {
		display: none !important;
		animation: none !important;
	}
}

@media print {
	.nv-thrive-type .nv-thrive-clip,
	.nv-thrive-type .title-right-shape {
		clip-path: none !important;
		-webkit-clip-path: none !important;
		transition: none !important;
	}

	.nv-thrive-caret {
		display: none !important;
		animation: none !important;
	}
}
