@keyframes rc-rise {

	from {
		opacity: 0;
		transform: translateY(48px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes rc-fade {

	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes rc-from-left {

	from {
		opacity: 0;
		transform: translateX(-40px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes rc-from-right {

	from {
		opacity: 0;
		transform: translateX(56px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes rc-lift {

	from {
		opacity: 0;
		transform: translateY(16px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes rc-settle {

	from {
		opacity: 0;
		transform: scale(0.97);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@media screen and (prefers-reduced-motion: no-preference) {

	.ml-motion {
		--ml-motion-time: 1.2s;
		--ml-motion-ease: ease-in-out;
	}

	/* Parts rise into view as they reach the screen (assets/js/motion.js). */
	.ml-motion .is-in {
		animation: rc-rise var(--ml-motion-time) var(--ml-motion-ease) var(--rc-motion-delay, 0ms) backwards;
	}

	/* A newly opened tab, and the How it works photo behind it, fade in. */
	.ml-motion [role="tabpanel"]:not([hidden]),
	.ml-motion .rc-process__background:not([hidden]) {
		animation: rc-fade var(--ml-motion-time) var(--ml-motion-ease);
	}

	/* Cards that open something lift slightly under the pointer. */
	.ml-motion :is(.rc-video, .rc-events__card, .rc-case-listing__card, .ml-feature-cards__card) {
		transition: transform 0.3s ease, box-shadow 0.3s ease;
	}

	.ml-motion :is(.rc-video, .rc-events__card, .rc-case-listing__card, .ml-feature-cards__card):hover {
		box-shadow: 0 16px 40px rgba(1, 6, 68, 0.08);
		transform: translateY(-4px);
	}

	/* Arrows on links nudge towards where they lead. */
	.ml-motion :is(.rc-video__watch, .rc-videos__cta a) svg {
		transition: transform 0.25s ease;
	}

	.ml-motion :is(.rc-video__watch, .rc-videos__cta a):hover svg {
		transform: translateX(3px);
	}

	/*
	 * Tabbed sections play their own entrance once in view, and replay it
	 * each time a visitor opens another item or tab. The section itself
	 * only fades, so the parts inside do the moving.
	 */
	.ml-motion :is(.rc-product-accordion__body, .rc-solution-tabs__body).is-in {
		animation-name: rc-fade;
	}

	/* Business applications: rows from the left, picture from the right. */
	.ml-motion .rc-product-accordion__list > .is-in {
		animation-name: rc-from-left;
	}

	.ml-motion .rc-product-accordion__body.is-in .rc-product-accordion__screens {
		animation: rc-from-right var(--ml-motion-time) var(--ml-motion-ease) 0.2s backwards;
	}

	.ml-motion .rc-product-accordion__body.is-in .rc-product-accordion__panel:not([hidden]) > * {
		animation: rc-lift var(--ml-motion-time) var(--ml-motion-ease) backwards;
	}

	.ml-motion .rc-product-accordion__body.is-in .rc-product-accordion__panel:not([hidden]) > :nth-child(2) {
		animation-delay: 0.08s;
	}

	.ml-motion .rc-product-accordion__body.is-in .rc-product-accordion__panel:not([hidden]) > :nth-child(3) {
		animation-delay: 0.16s;
	}

	.ml-motion .rc-product-accordion__body.is-in .rc-product-accordion__image:not([hidden]) img {
		animation: rc-settle var(--ml-motion-time) var(--ml-motion-ease) backwards;
	}

	/* Solutions: tabs, then text line by line; photo from the right. */
	.ml-motion .rc-solution-tabs__body.is-in .rc-solution-tabs__tabs {
		animation: rc-rise var(--ml-motion-time) var(--ml-motion-ease) backwards;
	}

	.ml-motion .rc-solution-tabs__body.is-in .rc-solution-tabs__panel:not([hidden]) :is(.rc-solution-tabs__text > :not(ul), .rc-solution-tabs__points li) {
		animation: rc-lift var(--ml-motion-time) var(--ml-motion-ease) var(--rc-step, 0s) backwards;
	}

	.ml-motion .rc-solution-tabs__body.is-in .rc-solution-tabs__panel:not([hidden]) .rc-solution-tabs__image {
		animation: rc-from-right var(--ml-motion-time) var(--ml-motion-ease) 0.1s backwards;
	}

	.rc-solution-tabs__intro {
		--rc-step: 0.08s;
	}

	.rc-solution-tabs__points li:nth-child(1) {
		--rc-step: 0.16s;
	}

	.rc-solution-tabs__points li:nth-child(2) {
		--rc-step: 0.22s;
	}

	.rc-solution-tabs__points li:nth-child(3) {
		--rc-step: 0.28s;
	}

	.rc-solution-tabs__points li:nth-child(n + 4) {
		--rc-step: 0.34s;
	}

	.rc-solution-tabs__buttons {
		--rc-step: 0.4s;
	}
}
