/* Motion every redesigned page shares: the living art, the hero's opening, the
   buttons and the gradient word. Each page's own sheet builds on these. */

.vamora-home {
	--motion-living: 1;
}

/* Living art: the canvas sits exactly over the image it was drawn from. Once its
   first frame is up the picture steps aside but stays, so the alt text and the
   layout are never the canvas's job. */
.vamora-living__canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.vamora-living.is-living .vamora-living__image {
	opacity: 0;
}

/* A picture moves only as one piece. Its scroll zoom is the separate scale property,
   driven by this variable, so it can never fight a section's own transform. */
.vamora-living {
	scale: var(--living-zoom, 1);
}

/* The opening. These start hidden only behind the head flag, and a timer in the
   stylesheet shows them regardless, so a script that never runs cannot leave the
   hero blank. */
html.vamora-motion:not(.vamora-home-opened) .vamora-home-hero__content > *,
html.vamora-motion:not(.vamora-home-opened) .vamora-home-hero__art,
html.vamora-motion:not(.vamora-home-opened) .vamora-about-hero__content > *,
html.vamora-motion:not(.vamora-home-opened) .vamora-about-hero__art,
html.vamora-motion:not(.vamora-home-opened) .vamora-contact-hero__content > *,
html.vamora-motion:not(.vamora-home-opened) .vamora-contact-hero__art,
html.vamora-motion:not(.vamora-home-opened) .vamora-price-hero__content > *,
html.vamora-motion:not(.vamora-home-opened) .vamora-price-hero__art,
html.vamora-motion:not(.vamora-home-opened) .vamora-serve-hero__content > *,
html.vamora-motion:not(.vamora-home-opened) .vamora-serve-hero__art {
	visibility: hidden;
	animation: vamora-opening-failsafe 0s linear 3.5s forwards;
}

@keyframes vamora-opening-failsafe {
	to {
		visibility: visible;
	}
}

.vamora-home-hero__title,
.vamora-about-hero__title,
.vamora-contact-hero__title,
.vamora-serve-hero__title {
	perspective: 800px;
}

.vamora-home-glyphs {
	display: inline-block;
	white-space: nowrap;
}

.vamora-home-glyph {
	display: inline-block;
	transform-style: preserve-3d;
}

/* The band under a hero, wherever one runs. */
.vamora-home-band::after {
	position: absolute;
	inset: 0;
	background: radial-gradient(14% 180% at 50% 50%, rgb(255 255 255 / 0.62), transparent 100%);
	opacity: 0.8;
	transform: translateX(-60%);
	content: "";
	pointer-events: none;
}

.vamora-home-band__track {
	will-change: transform;
}

/* The arrows point the way, and go when they are told to. */
.vamora-home-button .vamora-icon {
	transition: transform var(--motion-ui) var(--motion-spring);
}

.vamora-home-button {
	isolation: isolate;
	overflow: hidden;
	translate: calc(var(--vamora-pull-x, 0px) * var(--motion-magnet)) calc(var(--vamora-pull-y, 0px) * var(--motion-magnet));
	transition:
		translate var(--motion-reveal) var(--motion-elastic),
		box-shadow var(--motion-ui) var(--motion-out),
		color var(--motion-ui) linear;
}

/* Following the pointer is immediate; only letting go is a spring. */
.vamora-home-button:hover {
	transition:
		translate var(--motion-fast) var(--motion-out),
		box-shadow var(--motion-ui) var(--motion-out),
		color var(--motion-ui) linear;
}

/* A fill that grows from wherever the pointer came in. */
.vamora-home-button::before {
	position: absolute;
	top: var(--btn-y, 50%);
	left: var(--btn-x, 50%);
	z-index: -1;
	width: 240%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--btn-fill, rgb(255 255 255 / 0.22));
	transform: translate(-50%, -50%) scale(0);
	transition: transform var(--motion-reveal) var(--motion-out);
	content: "";
}

.vamora-home-button:hover::before,
.vamora-home-button:focus-visible::before {
	transform: translate(-50%, -50%) scale(1);
}

.vamora-home-button--outline {
	--btn-fill: linear-gradient(180deg, #a03ff8 0%, #5a09c6 100%);
}

.vamora-home-button--outline:hover,
.vamora-home-button--outline:focus-visible {
	color: var(--home-white);
}

.vamora-home-button--outline:hover .vamora-icon,
.vamora-home-button--outline:focus-visible .vamora-icon {
	color: var(--home-white);
	transform: rotate(120deg) scale(1.1);
}

.vamora-home-button--light {
	--btn-fill: linear-gradient(180deg, #a03ff8 0%, #5a09c6 100%);
}

.vamora-home-button--light:hover, .vamora-home-button--light:focus-visible, a.vamora-home-button.vamora-home-button--light.vamora-price-offer__button:hover .vamora-icon {
    color: var(--home-white);
}

.vamora-home-button--primary:hover,
.vamora-home-button--primary:focus-visible {
	box-shadow: 0 0.7em 1.8em rgb(122 40 235 / 0.55), inset 0 0.08em 0 var(--home-button-edge), 0 0 0 0.06em var(--home-button-rim);
}

.vamora-home-button:hover .vamora-icon--arrow-right,
.vamora-home-button:focus-visible .vamora-icon--arrow-right {
	transform: translateX(0.28em);
}

.vamora-home-button:hover .vamora-icon--calendar-days {
	transform: rotate(-10deg) scale(1.14);
}

@media (prefers-reduced-motion: no-preference) {
	/* The gradient word keeps shifting, slowly, while it is on screen. It moves
	   through hue rather than position, so at any moment it still spans the
	   reference's full range from blue-violet to magenta. */
	.is-live .vamora-home-word {
		animation: vamora-word-drift var(--motion-gradient-cycle) var(--motion-inout) infinite alternate;
	}

	.vamora-home-band.is-live::after {
		animation: vamora-band-light 11s var(--motion-inout) infinite alternate;
	}

	.vamora-home-band.is-live .vamora-home-band__chevrons .vamora-icon path {
		animation: vamora-chevron 1.6s var(--motion-inout) infinite;
	}

	.vamora-home-band.is-live .vamora-home-band__chevrons--left .vamora-icon path:first-child,
	.vamora-home-band.is-live .vamora-home-band__chevrons--right .vamora-icon path:last-child {
		animation-delay: 0.25s;
	}
}

@keyframes vamora-band-light {
	to {
		transform: translateX(60%);
	}
}

@keyframes vamora-chevron {
	0%,
	100% {
		opacity: 1;
	}

	50% {
		opacity: 0.3;
	}
}

@keyframes vamora-word-drift {
	from {
		filter: hue-rotate(-9deg) saturate(1);
	}

	to {
		filter: hue-rotate(11deg) saturate(1.12);
	}
}

@keyframes vamora-steam {
	0% {
		opacity: 0;
		transform: translateY(40px) scaleX(0.7);
		stroke-dashoffset: 0.6;
	}

	30% {
		opacity: 0.55;
	}

	70% {
		opacity: 0.32;
	}

	100% {
		opacity: 0;
		transform: translateY(-70px) scaleX(1.25);
		stroke-dashoffset: 0;
	}
}

@media print {
	.vamora-living__canvas {
		display: none;
	}

	.vamora-living.is-living .vamora-living__image {
		opacity: 1;
	}

	html.vamora-motion .vamora-home-hero__content > *,
	html.vamora-motion .vamora-home-hero__art,
	html.vamora-motion .vamora-about-hero__content > *,
	html.vamora-motion .vamora-about-hero__art,
	html.vamora-motion .vamora-contact-hero__content > *,
	html.vamora-motion .vamora-contact-hero__art,
	html.vamora-motion .vamora-price-hero__content > *,
	html.vamora-motion .vamora-price-hero__art,
	html.vamora-motion .vamora-serve-hero__content > *,
	html.vamora-motion .vamora-serve-hero__art {
		visibility: visible;
	}
}
