/* Motion for the primitives the shop pages share: the product card, the price
   tile and the closing CTA band. Mirrors pages/layout.css, which owns how they
   look. Ambient loops wait for .is-live, so nothing turns off screen. */

.vamora-motion .vamora-product-card::before,
.vamora-motion .vamora-price-tile::before {
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform var(--motion-slow) var(--motion-out) var(--motion-stagger);
}

.vamora-motion .is-inview .vamora-product-card::before,
.vamora-motion .is-inview.vamora-price-tile::before {
	transform: scaleX(1);
}

.vamora-motion .vamora-product-card__image {
	transition: transform var(--motion-slow) var(--motion-out);
}

.vamora-motion .vamora-product-card:hover .vamora-product-card__image {
	transform: scale(var(--motion-zoom));
}

.vamora-motion .vamora-product-card__point .vamora-icon {
	transition: transform var(--motion-fast) var(--motion-spring);
}

.vamora-motion .vamora-product-card:hover .vamora-product-card__point .vamora-icon {
	transform: scale(1.18);
}

.vamora-motion .vamora-product-card__link {
	transition: color var(--motion-fast) linear;
}

.vamora-motion .vamora-product-card__link .vamora-icon {
	transition: transform var(--motion-fast) var(--motion-out);
}

.vamora-motion .vamora-product-card__link:hover .vamora-icon {
	transform: translateX(4px);
}

/* The closing band: a drifting glow, a ring that draws itself and then turns
   once a minute, and a logo that breathes. */
.vamora-motion .vamora-cta-band__arc ellipse {
	transform-box: view-box;
	transform-origin: 300px 150px;
	transform: rotate(calc(-18deg + var(--vamora-angle)));
}

@media (prefers-reduced-motion: no-preference) {
	.vamora-motion .vamora-cta-band.is-live::before {
		animation: vamora-glow var(--motion-drift-cycle) var(--motion-inout) infinite alternate;
	}

	.vamora-motion .vamora-cta-band.is-live .vamora-cta-band__arc ellipse {
		animation: vamora-turn var(--motion-spin-cycle) linear infinite;
	}

	.vamora-motion .vamora-cta-band.is-live .vamora-cta-band__brand {
		animation: vamora-float var(--motion-float-cycle) var(--motion-inout) infinite alternate;
	}
}

.vamora-motion .vamora-cta-band__brand {
	transform: translate3d(0, var(--vamora-float), 0);
}
