/* HM Motion - scroll-reveal animations (Health Marketing theme). Replaces ACTUS Motion Live. */

/* Starting state of everything that animates */
.hm-anim-t {
	opacity: var(--hm-op, 0);
	transform: translate3d(var(--hm-x, 0px), var(--hm-y, 0px), 0);
	will-change: opacity, transform;
}

/* In view: move to the final place */
.hm-anim.is-in .hm-anim-t,
.hm-anim.is-in.hm-anim-t {
	opacity: 1;
	transform: none;
	transition:
		opacity var(--hm-dur, 1s) ease var(--hm-delay, 0s),
		transform var(--hm-dur, 1s) ease var(--hm-delay, 0s);
}

.hm-anim.is-done .hm-anim-t,
.hm-anim.is-done.hm-anim-t {
	will-change: auto;
}

/* Letters mode: words never break in the middle */
.hm-word {
	display: inline-block;
	white-space: nowrap;
}
.hm-letter {
	display: inline-block;
}

/* Visitors who asked for less motion see everything in place */
@media (prefers-reduced-motion: reduce) {
	.hm-anim-t {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}
