/**
 * ch-motion — the Checknaut motion framework (0.46.0).
 *
 * Reverse-engineered from production motion vocabularies (700ms ease-out
 * fade-ups with 120ms stagger, spring-eased card lifts, micro-nudges) and
 * generalised for any Checknaut site: enable with the "Motion framework"
 * switch — ch-motion.js auto-tags revealable modules, this file animates them.
 *
 * Guarantees:
 *  - prefers-reduced-motion: reduce  → no motion at all, ever.
 *  - No JavaScript                   → no .ch-rv class → content fully visible.
 *  - hover:hover guard               → no sticky hover states on touch.
 */

@media (prefers-reduced-motion: no-preference) {
	.ch-rv {
		opacity: 0;
		transform: translateY(24px);
		transition:
			opacity .7s cubic-bezier(.16, 1, .3, 1),
			transform .7s cubic-bezier(.16, 1, .3, 1);
	}
	.ch-rv.ch-in {
		opacity: 1;
		transform: none;
	}
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	/* Groups are this system's cards. */
	.et_pb_group {
		transition:
			transform .5s cubic-bezier(.16, 1, .3, 1),
			box-shadow .5s ease,
			filter .5s ease;
	}
	.et_pb_group:hover {
		transform: translateY(-6px);
		box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
		filter: brightness(1.06);
	}

	/* "Learn more →" pattern links nudge toward their destination. */
	.ch-more a {
		display: inline-block;
		transition: transform .3s ease, color .2s ease;
	}
	.ch-more a:hover {
		transform: translateX(4px);
	}

	/* Buttons lift, whatever styles them. */
	.et_pb_button {
		transition:
			transform .3s ease,
			background-color .3s ease,
			border-color .3s ease,
			box-shadow .3s ease,
			color .3s ease;
	}
	.et_pb_button:hover {
		transform: translateY(-2px);
		box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
	}
}
