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

/* Hero */
.vamora-contact-hero__whatsapp:hover .vamora-icon,
.vamora-contact-hero__whatsapp:focus-visible .vamora-icon {
	transform: rotate(-10deg) scale(1.12);
}

.vamora-contact-hero__whatsapp-badge {
	position: relative;
}

.vamora-contact-hero__whatsapp-badge::after {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	box-shadow: 0 0 0 0 rgb(30 190 90 / 0.55);
	content: "";
}

/* Channels: the turn, and the light under the pointer. */
.vamora-contact-channel__link {
	transform-style: preserve-3d;
	transition:
		box-shadow var(--motion-ui) var(--motion-out),
		border-color var(--motion-ui) linear;
}

.vamora-contact-channel.is-active .vamora-contact-channel__link {
	border-color: rgb(154 90 245 / 0.65);
	box-shadow: 0 0 0 1px rgb(154 90 245 / 0.25), 0 10px 26px rgb(110 50 225 / 0.2);
}

.vamora-contact-channel__link::after {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: radial-gradient(40% 90% at var(--spot-x, 50%) var(--spot-y, 50%), rgb(190 150 255 / 0.2), transparent 100%);
	opacity: 0;
	transition: opacity var(--motion-ui) linear;
	content: "";
	pointer-events: none;
}

.vamora-contact-channel__link:hover::after {
	opacity: 1;
}

.vamora-contact-channel__tile {
	position: relative;
}

.vamora-contact-channel__tile::after {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: 0 0 0 0 rgb(140 70 240 / 0.55);
	content: "";
	pointer-events: none;
}

.vamora-contact-channel--whatsapp .vamora-contact-channel__tile::after {
	box-shadow: 0 0 0 0 rgb(30 190 90 / 0.55);
}

.vamora-contact-channel__value {
	background: linear-gradient(90deg, #5a0fd6 0%, #5a0fd6 40%, #c026f0 50%, #5a0fd6 60%, #5a0fd6 100%);
	background-size: 300% 100%;
	background-position: 100% 0;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* India: the canvas takes over from the printed dots once it is drawing. */
.vamora-contact-india__canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.vamora-contact-india.is-drawn .vamora-contact-india__dots {
	visibility: hidden;
}

.vamora-contact-india__svg {
	position: relative;
}

/* Form: a ring that runs round the field in use. */
.vamora-contact-field__box::after {
	position: absolute;
	inset: -1px;
	padding: 1.5px;
	border-radius: calc(14 * var(--k));
	background: conic-gradient(from var(--vamora-angle), #6a1fe0, #c026f0, #e9d5ff, #6a1fe0);
	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-contact-field:focus-within .vamora-contact-field__box::after {
	opacity: 1;
}

.vamora-contact-field__control {
	transition:
		box-shadow var(--motion-ui) var(--motion-out),
		background-color var(--motion-ui) linear,
		border-color var(--motion-ui) linear;
}

.vamora-contact-field:focus-within .vamora-contact-field__control {
	background-color: #fff;
	box-shadow: 0 8px 24px rgb(110 50 225 / 0.18);
}

.vamora-contact-field__icon {
	transition: color var(--motion-ui) linear;
}

.vamora-contact-field:focus-within .vamora-contact-field__icon {
	color: #6a1fe0;
}

/* A field answered correctly says so, once, at its right-hand end. */
.vamora-contact-field__box::before {
	position: absolute;
	top: 50%;
	right: calc(14 * var(--k));
	z-index: 1;
	width: calc(9 * var(--k));
	height: calc(5 * var(--k));
	border-bottom: calc(2 * var(--k)) solid #12a84a;
	border-left: calc(2 * var(--k)) solid #12a84a;
	opacity: 0;
	transform: translateY(-70%) rotate(-45deg) scale(0.4);
	transition: opacity var(--motion-fast) linear, transform var(--motion-reveal) var(--motion-spring);
	content: "";
	pointer-events: none;
}

.vamora-contact-field.is-done .vamora-contact-field__box::before {
	opacity: 1;
	transform: translateY(-70%) rotate(-45deg) scale(1);
}

.vamora-contact-field--business .vamora-contact-field__box::before {
	right: calc(38 * var(--k));
}

.vamora-contact-field--message .vamora-contact-field__box::before {
	top: calc(22 * var(--k));
}

.vamora-contact-field__chevron {
	transition: rotate var(--motion-reveal) var(--motion-spring);
}

.vamora-contact-field:focus-within .vamora-contact-field__chevron {
	rotate: 180deg;
}

/* The button fills as the form does, and lights from wherever the pointer is. */
.vamora-contact-form__fill {
	background: linear-gradient(90deg, #6a1fe0 0%, #a53cf5 72%, #c95cfa 100%);
}

.vamora-contact-form__submit::after {
	position: absolute;
	top: var(--send-y, 50%);
	left: var(--send-x, 50%);
	z-index: 0;
	width: 34%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgb(255 255 255 / 0.34), transparent 100%);
	opacity: 0;
	transform: translate(-50%, -50%);
	transition: opacity var(--motion-ui) linear;
	content: "";
	pointer-events: none;
}

.vamora-contact-form__submit:hover::after {
	opacity: 1;
}

.vamora-contact-form__submit {
	transition: box-shadow var(--motion-ui) var(--motion-out), translate var(--motion-ui) var(--motion-spring);
}

.vamora-contact-form__submit:hover {
	translate: 0 calc(-1 * var(--motion-lift) / 3);
	box-shadow: 0 14px 30px rgb(100 30 215 / 0.48), inset 0 1px 0 rgb(255 255 255 / 0.3);
}

.vamora-contact-form__plane {
	transition: translate var(--motion-reveal) var(--motion-spring), rotate var(--motion-reveal) var(--motion-spring);
}

.vamora-contact-form__submit:hover .vamora-contact-form__plane {
	translate: 0.2em -0.2em;
	rotate: 8deg;
}

.vamora-contact-form__flap {
	transform-box: fill-box;
}

/* Support: the light that runs along each wave's crest. */
html.vamora-motion .vamora-contact-support__lights {
	filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 9px rgb(140 50 250 / 0.95));
}

html.vamora-motion .vamora-contact-support__lights path {
	stroke: #fff;
	opacity: 0;
}

html.vamora-motion .vamora-contact-support__light {
	stroke-width: 3.2;
}

html.vamora-motion .vamora-contact-support__trail {
	stroke-width: 2;
}

@media (prefers-reduced-motion: no-preference) {
	.vamora-contact-hero.is-live .vamora-contact-hero__whatsapp-badge::after {
		animation: vamora-contact-call var(--motion-pulse-cycle) var(--motion-out) infinite;
	}

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

	.vamora-contact-channel.is-active .vamora-contact-channel__tile::after {
		animation: vamora-contact-ring var(--motion-ripple-cycle) var(--motion-out) infinite;
	}

	.vamora-contact-channel.is-active .vamora-contact-channel__value {
		animation: vamora-contact-sweep 1.3s var(--motion-inout) both;
	}

	.vamora-contact-form.is-live .vamora-contact-form__envelope {
		animation: vamora-contact-float var(--motion-float-cycle) var(--motion-inout) infinite alternate;
	}

	.vamora-contact-form.is-live .vamora-contact-form__tile .vamora-icon {
		animation: vamora-contact-glide 5.5s var(--motion-inout) infinite;
	}

	.vamora-contact-field:focus-within .vamora-contact-field__box::after {
		animation: vamora-turn var(--motion-ring-cycle) linear infinite;
	}

	.vamora-contact-field--name:focus-within .vamora-contact-field__icon,
	.vamora-contact-field--business:focus-within .vamora-contact-field__icon,
	.vamora-contact-field--message:focus-within .vamora-contact-field__icon {
		animation: vamora-contact-hop 0.7s var(--motion-spring) both;
	}

	.vamora-contact-field--phone:focus-within .vamora-contact-field__icon {
		animation: vamora-contact-buzz 0.7s linear both;
	}

	.vamora-contact-field--email:focus-within .vamora-contact-field__icon path {
		animation: vamora-contact-open 0.8s var(--motion-spring) both;
		transform-box: fill-box;
		transform-origin: 50% 0%;
	}

	.vamora-contact-form__submit.is-ready {
		animation: vamora-contact-ready var(--motion-pulse-cycle) var(--motion-inout) infinite;
	}

	.vamora-contact-form.is-live .vamora-contact-form__lock path:first-of-type {
		animation: vamora-contact-shackle 4.4s var(--motion-inout) infinite;
	}
}

@keyframes vamora-contact-call {
	0% {
		box-shadow: 0 0 0 0 rgb(30 190 90 / 0.55);
	}

	70%,
	100% {
		box-shadow: 0 0 0 0.6em rgb(30 190 90 / 0);
	}
}

@keyframes vamora-contact-listen {
	0%,
	100% {
		rotate: -6deg;
	}

	50% {
		rotate: 6deg;
	}
}

@keyframes vamora-contact-ring {
	0% {
		box-shadow: 0 0 0 0 rgb(140 70 240 / 0.55);
	}

	100% {
		box-shadow: 0 0 0 0.9em rgb(140 70 240 / 0);
	}
}

@keyframes vamora-contact-sweep {
	from {
		background-position: 100% 0;
	}

	to {
		background-position: 0% 0;
	}
}

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

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

@keyframes vamora-contact-glide {
	0%,
	100% {
		translate: 0 0;
		rotate: 0deg;
	}

	35% {
		translate: 6% -7%;
		rotate: 6deg;
	}

	70% {
		translate: -4% 3%;
		rotate: -4deg;
	}
}

@keyframes vamora-contact-hop {
	0% {
		translate: 0 0;
	}

	40% {
		translate: 0 -28%;
		scale: 1.14;
	}

	100% {
		translate: 0 0;
		scale: 1;
	}
}

@keyframes vamora-contact-buzz {
	0%,
	100% {
		rotate: 0deg;
	}

	15%,
	45%,
	75% {
		rotate: -14deg;
	}

	30%,
	60%,
	90% {
		rotate: 14deg;
	}
}

@keyframes vamora-contact-open {
	0%,
	100% {
		scale: 1 1;
	}

	40% {
		scale: 1 -1;
	}
}

@keyframes vamora-contact-ready {
	50% {
		box-shadow: 0 10px 34px rgb(150 50 245 / 0.7), inset 0 1px 0 rgb(255 255 255 / 0.3);
	}
}

@keyframes vamora-contact-shackle {
	0%,
	78%,
	100% {
		translate: 0 0;
	}

	84% {
		translate: 0 -8%;
	}

	90% {
		translate: 0 0;
	}
}
