/* The flow from order to table. Stacked, each step is a card of its own. From
   desktop the three images overlap into one composition, so their ribbons join
   up, and the text sits in its own row beneath. */
.vamora-home-flow {
	position: relative;
	padding: 3rem 1.25rem;
	overflow: clip;
	background:
		radial-gradient(40% 50% at 0% 30%, #f5ebfd 0%, transparent 100%),
		var(--home-page);
}

.vamora-home-flow__title {
	font-size: clamp(2.125rem, 9vw, 3rem);
	line-height: 1.04;
	letter-spacing: var(--home-track-tight);
}

.vamora-home-flow__lead {
	margin-top: 1.5rem;
	color: var(--home-text);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.32;
}

.vamora-home-flow__wire {
	display: none;
}

.vamora-home-flow__steps {
	display: grid;
	gap: 2.25rem;
	margin-top: 2rem;
}

.vamora-home-flow__art {
	position: relative;
}

.vamora-home-flow__image {
	width: 100%;
	height: auto;
}

.vamora-home-flow__live {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
}

.vamora-home-flow__row,
.vamora-home-flow__ping,
.vamora-home-flow__beam,
.vamora-home-flow__steam,
.vamora-home-flow__glint,
.vamora-home-flow__brackets {
	opacity: 0;
}

.vamora-home-flow__row {
	fill: rgb(122 40 235 / 0.16);
	stroke: rgb(122 40 235 / 0.7);
	stroke-width: 4;
}

.vamora-home-flow__ping {
	fill: none;
	stroke: #7a22f0;
	stroke-width: 6;
}

.vamora-home-flow__copy {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 0.625rem;
	margin-top: 0.75rem;
}

.vamora-home-flow__number {
	display: grid;
	grid-row: span 2;
	place-items: center;
	width: 2.125rem;
	height: 2.125rem;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 25%, #9a42f2 0%, #5f18cf 62%, #4f10b8 100%);
	color: var(--home-white);
	font-size: 0.8125rem;
	font-weight: 800;
	line-height: 1;
}

.vamora-home-flow__step-title {
	align-self: center;
	font-size: 1.125rem;
	line-height: 1.2;
	letter-spacing: var(--home-track-snug);
}

.vamora-home-flow__text {
	margin-top: 0.375rem;
	color: var(--home-soft);
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.32;
}

@media (min-width: 37.5em) {
	.vamora-home-flow {
		padding-inline: 2.5rem;
	}

	.vamora-home-flow__steps {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1rem;
	}

	.vamora-home-flow__text br {
		display: none;
	}
}

@media (min-width: 64em) {
	.vamora-home-flow {
		height: calc(238 * var(--u));
		padding: 0;
		background:
			radial-gradient(calc(420 * var(--u)) calc(180 * var(--u)) at 0% 40%, #f5ebfd 0%, transparent 100%),
			var(--home-page);
	}

	.vamora-home-flow__head,
	.vamora-home-flow__steps {
		position: absolute;
		top: 0;
		left: 50%;
		width: calc(1024 * var(--u));
		height: 100%;
		margin: 0;
		transform: translateX(-50%);
	}

	.vamora-home-flow__steps {
		display: block;
	}

	.vamora-home-flow__step {
		position: static;
	}

	.vamora-home-flow__title {
		position: absolute;
		top: calc(24 * var(--u));
		left: calc(44 * var(--u));
		font-size: calc(35 * var(--u));
		line-height: calc(31.4 * var(--u));
		white-space: nowrap;
	}

	.vamora-home-flow__title .vamora-home-line:nth-child(2) {
		font-size: calc(36.8 * var(--u));
	}

	.vamora-home-flow__accent {
		font-size: calc(41.4 * var(--u));
		line-height: calc(37 * var(--u));
	}

	.vamora-home-flow__accent .vamora-home-stroke {
		top: calc(100% - 0.1em);
		width: 72%;
	}

	.vamora-home-flow__lead {
		position: absolute;
		top: calc(150 * var(--u));
		left: calc(48 * var(--u));
		margin: 0;
		font-size: calc(12.5 * var(--u));
		line-height: calc(16 * var(--u));
		white-space: nowrap;
	}

	.vamora-home-flow__wire {
		position: absolute;
		top: 0;
		left: 50%;
		z-index: 1;
		display: block;
		width: calc(1024 * var(--u));
		height: 100%;
		overflow: visible;
		transform: translateX(-50%);
		pointer-events: none;
	}

	.vamora-home-flow__wire-path {
		fill: none;
		stroke: none;
	}

	/* The two images meet in a small gap, and this carries the ribbon across it. */
	.vamora-home-flow__bridge {
		fill: none;
		stroke: url(#vamora-flow-bridge);
		stroke-width: 8;
		stroke-linecap: round;
	}

	.vamora-home-flow__art {
		position: absolute;
	}

	.vamora-home-flow__step--scan .vamora-home-flow__art {
		top: calc(15 * var(--u));
		left: calc(274 * var(--u));
		width: calc(234.5 * var(--u));
	}

	.vamora-home-flow__step--kitchen .vamora-home-flow__art {
		top: calc(14 * var(--u));
		left: calc(513 * var(--u));
		width: calc(235 * var(--u));
	}

	.vamora-home-flow__step--serve .vamora-home-flow__art {
		top: calc(7 * var(--u));
		left: calc(730 * var(--u));
		width: calc(264 * var(--u));
	}

	.vamora-home-flow__copy {
		position: absolute;
		top: calc(159.5 * var(--u));
		display: block;
		width: calc(180 * var(--u));
		margin: 0;
	}

	.vamora-home-flow__step--scan .vamora-home-flow__copy {
		left: calc(346 * var(--u));
	}

	.vamora-home-flow__step--kitchen .vamora-home-flow__copy {
		left: calc(585 * var(--u));
	}

	.vamora-home-flow__step--serve .vamora-home-flow__copy {
		left: calc(824 * var(--u));
	}

	.vamora-home-flow__number {
		position: absolute;
		top: 0;
		left: calc(-32 * var(--u));
		width: calc(23.5 * var(--u));
		height: calc(23.5 * var(--u));
		font-size: calc(10.4 * var(--u));
	}

	.vamora-home-flow__step-title {
		font-size: calc(12.8 * var(--u));
		line-height: calc(23.5 * var(--u));
		letter-spacing: -0.028em;
	}

	.vamora-home-flow__text {
		margin-top: calc(1 * var(--u));
		font-size: max(calc(9.9 * var(--u)), 0.6875rem);
		line-height: calc(12.5 * var(--u));
		white-space: nowrap;
	}

	.vamora-home-flow__text br {
		display: inline;
	}
}
