/* About page motion. The design sheets never animate, so all of it lives here and
   all of it can go. */

/* Hero: what plays over the art has to clear the canvas, which is added last. */
.vamora-about-hero__eyebrow-icon {
	transform-origin: 50% 50%;
}

/* Band: a light that goes round the strip's own edge. */
.vamora-about-band__list::after {
	position: absolute;
	inset: -1px;
	padding: 1.5px;
	border-radius: inherit;
	background: conic-gradient(from var(--vamora-angle), transparent 0 70%, #fff 82%, #c79bf8 90%, transparent 98%);
	opacity: 0;
	transition: opacity var(--motion-slow) 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-about-band.is-live .vamora-about-band__list::after {
	opacity: 1;
}

.vamora-about-band__label {
	transition: color var(--motion-ui) linear;
}

.vamora-about-band__item.is-active .vamora-about-band__label {
	color: #6a1fe0;
}

.vamora-about-band__icon {
	transition: filter var(--motion-ui) linear;
}

.vamora-about-band__item.is-active .vamora-about-band__icon {
	filter: drop-shadow(0 0 5px rgb(150 80 245 / 0.65));
}

.vamora-about-band__ship,
.vamora-about-band__layer,
.vamora-about-band__head {
	will-change: transform;
}

.vamora-about-band .vamora-home-glyphs {
	white-space: nowrap;
}

/* Why */
.vamora-about-why__line,
.vamora-about-why__title .vamora-home-word {
	will-change: clip-path, transform;
}

/* Cards: the light under the pointer, and a ring of it around the edge. */
.vamora-about-card {
	transform-style: preserve-3d;
	will-change: transform;
}

.vamora-about-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-about-card:hover::after {
	opacity: 1;
}

.vamora-about-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-about-card:hover::before {
	opacity: 1;
}

.vamora-about-card__badge {
	transition: rotate var(--motion-reveal) var(--motion-spring), scale var(--motion-reveal) var(--motion-spring);
}

.vamora-about-card:hover .vamora-about-card__badge {
	rotate: -16deg;
	scale: 1.14;
}

/* Approach: which step the light has reached. */
.vamora-about-step__orb::before {
	position: absolute;
	inset: 6%;
	z-index: -1;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgb(176 96 250 / 0.5), transparent 100%);
	opacity: 0;
	transform: scale(0.7);
	transition: opacity var(--motion-reveal) var(--motion-out), transform var(--motion-reveal) var(--motion-out);
	content: "";
}

.vamora-about-step.is-lit .vamora-about-step__orb::before {
	opacity: 1;
	transform: scale(1.15);
}

.vamora-about-step__title {
	transition: color var(--motion-ui) linear;
}

.vamora-about-step.is-lit .vamora-about-step__title {
	color: #6a1fe0;
}

html.vamora-motion .vamora-about-approach__shine path {
	stroke-width: 2.4;
	filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 5px #a040ff);
}

/* Believe */
.vamora-about-believe__line {
	transition: opacity var(--motion-reveal) var(--motion-out);
}

.vamora-about-believe__line.is-dim {
	opacity: 0.34;
}

/* CTA */
.vamora-about-cta__title {
	perspective: 800px;
}

.vamora-about-cta__ribbon {
	will-change: transform;
}

/* A ring that goes round the closing button, so it is the last thing that moves. */
.vamora-about-cta__button::after {
	position: absolute;
	inset: 0;
	padding: 1.5px;
	border-radius: inherit;
	background: conic-gradient(from var(--vamora-angle), transparent 0 58%, #f3dcff 76%, #fff 84%, transparent 96%);
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	mask-composite: exclude;
	-webkit-mask-composite: xor;
	content: "";
	pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
	.vamora-about-band.is-live .vamora-about-band__list::after {
		animation: vamora-turn calc(var(--motion-ring-cycle) * 2) linear infinite;
	}

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

	.vamora-about-cta.is-live .vamora-about-cta__button::after {
		animation: vamora-turn var(--motion-ring-cycle) linear infinite;
	}

	.vamora-about-hero.is-live .vamora-about-hero__eyebrow-icon {
		animation: vamora-about-code var(--motion-pulse-cycle) var(--motion-inout) infinite;
	}

	.vamora-about-why.is-live .vamora-about-why__steam path,
	.vamora-about-card.is-live .vamora-about-card__steam path {
		animation: vamora-steam 5.4s var(--motion-out) infinite;
	}

	.vamora-about-why.is-live .vamora-about-why__steam path:nth-child(2),
	.vamora-about-card.is-live .vamora-about-card__steam path:nth-child(2) {
		animation-delay: -1.8s;
	}

	.vamora-about-why.is-live .vamora-about-why__steam path:nth-child(3),
	.vamora-about-card.is-live .vamora-about-card__steam path:nth-child(3) {
		animation-delay: -3.6s;
	}

	.vamora-about-why.is-live .vamora-about-why__quote {
		animation: vamora-about-quote var(--motion-float-cycle) var(--motion-inout) infinite alternate;
	}
}

@keyframes vamora-about-code {
	50% {
		scale: 1.16;
		filter: drop-shadow(0 0 4px rgb(160 90 245 / 0.8));
	}
}

@keyframes vamora-about-quote {
	from {
		translate: 0 -2px;
		rotate: -2deg;
	}

	to {
		translate: 0 3px;
		rotate: 2deg;
	}
}
