/* Home page motion. Three layers, as everywhere: what arrives, what keeps
   playing while it is on screen, and what follows the pointer and the scroll. The
   design sheets never animate, so all of it lives here and all of it can go. What
   every redesigned page shares is in brand.css. */

.vamora-home {
	--motion-band-speed: 26;
	--motion-parallax-px: 18;
}

/* What plays over the art has to clear the canvas, which is added last. */
.vamora-home-card__steam,
.vamora-home-connected__chart {
	z-index: 1;
}

/* Hero: the three doors */
.vamora-home-hero__cat-link {
	transition: color var(--motion-ui) linear, translate var(--motion-ui) var(--motion-spring);
}

.vamora-home-hero__cat-icon {
	transition: transform var(--motion-reveal) var(--motion-spring), color var(--motion-ui) linear;
}

.vamora-home-hero__cat-link:hover,
.vamora-home-hero__cat-link:focus-visible {
	color: var(--home-violet);
	translate: 0 calc(-1 * var(--motion-lift) / 2);
}

.vamora-home-hero__cat-link:hover .vamora-home-hero__cat-icon {
	transform: scale(1.22) rotate(-8deg);
}

/* Flow: what is lit while the order is at this step */
.vamora-home-flow__number {
	transition: scale var(--motion-ui) var(--motion-spring), box-shadow var(--motion-ui) var(--motion-out);
}

.vamora-home-flow__step-title {
	transition: color var(--motion-ui) linear;
}

.vamora-home-flow__art {
	transform-style: preserve-3d;
}

.vamora-home-flow__image {
	transition: filter var(--motion-slow) var(--motion-out);
}

.vamora-home-flow__step.is-active .vamora-home-flow__number {
	scale: 1.12;
	box-shadow: 0 0 0 0.25em rgb(122 40 235 / 0.16), 0 0.35em 1em rgb(122 40 235 / 0.42);
}

.vamora-home-flow__step.is-active .vamora-home-flow__step-title {
	color: var(--home-violet);
}

.vamora-home-flow__step.is-active .vamora-home-flow__image {
	filter: drop-shadow(0 0.5em 1.2em rgb(122 40 235 / 0.28)) saturate(1.08);
}

html.vamora-motion .vamora-home-flow__wire-path {
	opacity: 0;
	stroke: #fff;
	stroke-width: 4.5;
	stroke-linecap: round;
	filter: drop-shadow(0 0 3px #d9b8ff) drop-shadow(0 0 7px #a040ff);
}

.vamora-home-flow__beam-line {
	fill: none;
	stroke: #fff;
	stroke-width: 11;
	stroke-linecap: round;
	filter: drop-shadow(0 0 7px #fff) drop-shadow(0 0 16px #a040ff);
}

.vamora-home-flow__steam {
	filter: blur(5px);
}

.vamora-home-flow__glint {
	filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 14px #ffd27a);
}

/* Cards */
.vamora-home-card {
	transform-style: preserve-3d;
	will-change: transform;
}

.vamora-home-card__brand,
.vamora-home-card__title,
.vamora-home-card__text,
.vamora-home-card__button {
	transform: translateZ(0);
}

/* The light under the pointer, and a ring of it around the edge. */
.vamora-home-card::after {
	position: absolute;
	inset: 0;
	z-index: 3;
	border-radius: inherit;
	background: radial-gradient(38% 58% at var(--spot-x, 50%) var(--spot-y, 50%), rgb(255 255 255 / 0.32), transparent 100%);
	opacity: 0;
	transition: opacity var(--motion-ui) linear;
	content: "";
	pointer-events: none;
	mix-blend-mode: soft-light;
}

.vamora-home-card:hover::after {
	opacity: 1;
}

.vamora-home-card::before {
	position: absolute;
	inset: 0;
	z-index: 4;
	padding: 1.5px;
	border-radius: inherit;
	background: conic-gradient(from var(--vamora-angle), transparent 0 62%, #fff 76%, #d7a8ff 84%, transparent 96%);
	opacity: 0;
	transition: opacity var(--motion-ui) linear;
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	mask-composite: exclude;
	-webkit-mask-composite: xor;
	content: "";
	pointer-events: none;
}

.vamora-home-card:hover::before {
	opacity: 1;
}

.vamora-home-card__brand-icon {
	transition: transform var(--motion-reveal) var(--motion-spring);
}

.vamora-home-card:hover .vamora-home-card__brand-icon {
	transform: rotate(-14deg) scale(1.16);
}

/* Connected */
.vamora-home-pill {
	transition:
		box-shadow var(--motion-ui) var(--motion-out),
		background-color var(--motion-ui) linear;
}

.vamora-home-pill__icon {
	transition: color var(--motion-ui) linear, filter var(--motion-ui) linear;
}

.vamora-home-pill.is-sending,
.vamora-home-pill:hover {
	background-color: rgb(255 255 255 / 0.82);
	box-shadow:
		0 0 0 calc(1.5 * var(--u, 1px)) rgb(160 90 245 / 0.42),
		0 calc(6 * var(--u, 1px)) calc(22 * var(--u, 1px)) rgb(122 40 235 / 0.34);
}

.vamora-home-pill.is-sending .vamora-home-pill__icon,
.vamora-home-pill:hover .vamora-home-pill__icon {
	filter: drop-shadow(0 0 calc(5 * var(--u, 1px)) rgb(160 90 245 / 0.75));
}

html.vamora-motion .vamora-home-connected__wire,
html.vamora-motion .vamora-home-connected__chart-line {
	opacity: 0;
	stroke: #fff;
	stroke-linecap: round;
	filter: drop-shadow(0 0 3px #d9b8ff) drop-shadow(0 0 8px #a040ff);
}

html.vamora-motion .vamora-home-connected__wire {
	stroke-width: 3;
}

html.vamora-motion .vamora-home-connected__chart-line {
	stroke-width: 7;
}

/* The steam off the service bell. */
.vamora-home-card__steam {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
}

.vamora-home-card__steam path {
	fill: none;
	stroke: #fff;
	stroke-width: 15;
	stroke-linecap: round;
	opacity: 0;
	filter: blur(7px);
}

/* People */
.vamora-home-word--momentum {
	transform-origin: 0 100%;
	will-change: transform;
}

.vamora-home-people__icon {
	transition: transform var(--motion-reveal) var(--motion-spring);
}

.vamora-home-people__point:hover .vamora-home-people__icon {
	transform: scale(1.25) rotate(-8deg);
}

.vamora-home-people__icon.vamora-icon--bars rect {
	transform-box: fill-box;
	transform-origin: 50% 100%;
}

@media (prefers-reduced-motion: no-preference) {
	.vamora-home-hero.is-live .vamora-home-hero__eyebrow-icon {
		animation: vamora-eyebrow-spark var(--motion-pulse-cycle) var(--motion-inout) infinite;
	}

	.vamora-home-cards.is-live .vamora-home-card__steam path {
		animation: vamora-steam 5.4s var(--motion-out) infinite;
	}

	.vamora-home-cards.is-live .vamora-home-card__steam path:nth-child(2) {
		animation-delay: -1.8s;
	}

	.vamora-home-cards.is-live .vamora-home-card__steam path:nth-child(3) {
		animation-delay: -3.6s;
	}

	.vamora-home-card:hover::before {
		animation: vamora-turn var(--motion-ring-cycle) linear infinite;
	}

	.vamora-home-connected.is-live .vamora-home-pill {
		animation: vamora-pill-float calc(var(--motion-float-cycle) - 1s) var(--motion-inout) infinite alternate;
	}

	.vamora-home-connected.is-live .vamora-home-pill--inventory {
		animation-delay: -1.4s;
		animation-duration: calc(var(--motion-float-cycle) + 0.6s);
	}

	.vamora-home-connected.is-live .vamora-home-pill--reports {
		animation-delay: -2.8s;
	}

	.vamora-home-connected.is-live .vamora-home-pill--billing {
		animation-delay: -0.8s;
		animation-duration: calc(var(--motion-float-cycle) + 1.4s);
	}

	.vamora-home-connected.is-live .vamora-home-pill--members {
		animation-delay: -3.6s;
	}

	.vamora-home-people.is-live .vamora-home-people__icon.vamora-icon--zap {
		animation: vamora-zap 4.2s steps(1) infinite;
	}

	.vamora-home-people.is-live .vamora-home-people__icon.vamora-icon--bars rect {
		animation: vamora-bar 2.4s var(--motion-inout) infinite;
	}

	.vamora-home-people.is-live .vamora-home-people__icon.vamora-icon--bars rect:nth-child(2) {
		animation-delay: 0.16s;
	}

	.vamora-home-people.is-live .vamora-home-people__icon.vamora-icon--bars rect:nth-child(3) {
		animation-delay: 0.32s;
	}

	.vamora-home-people.is-live .vamora-home-people__icon.vamora-icon--users-three {
		animation: vamora-team 3.6s var(--motion-spring) infinite;
	}
}

@keyframes vamora-eyebrow-spark {
	50% {
		transform: scale(1.18) rotate(10deg);
		filter: drop-shadow(0 0 4px rgb(160 90 245 / 0.8));
	}
}

@keyframes vamora-pill-float {
	from {
		translate: 0 calc(-1 * var(--motion-float-travel) / 2);
	}

	to {
		translate: 0 calc(var(--motion-float-travel) / 2);
	}
}

@keyframes vamora-zap {
	0%,
	86%,
	90%,
	100% {
		opacity: 1;
	}

	88%,
	92% {
		opacity: 0.35;
	}
}

@keyframes vamora-bar {
	0%,
	100% {
		transform: scaleY(1);
	}

	50% {
		transform: scaleY(0.55);
	}
}

@keyframes vamora-team {
	0%,
	70%,
	100% {
		transform: scale(1);
	}

	80% {
		transform: scale(1.18);
	}
}
