/* Process steps: the approach as stacking cards. Each step is a card that
   sticks as you scroll and the next slides over it, so the five read as a
   sequence rather than a row of columns. The station dot takes the swatch
   colour in order. */

.blk-steps__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px 48px;
	margin-bottom: clamp(40px, 5vw, 72px);
}

.blk-steps__head .section-heading {
	margin-bottom: 0;
}

.steps {
	list-style: none;
	counter-reset: step;
	display: grid;
	gap: 20px;
}

.step {
	position: relative;
	counter-increment: step;
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 24px clamp(32px, 5vw, 96px);
	align-items: start;
	padding: clamp(32px, 4vw, 56px);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: 0 1px 0 var(--line), var(--shadow);
	--station: var(--oms-colour-one, #1EA8E8);
}

.blk--white .step {
	background: var(--tint);
	box-shadow: none;
}

.blk--dark .step {
	background: var(--ink-2);
	box-shadow: none;
}

.step:nth-child(5n + 2) { --station: var(--oms-colour-four, #FF8800); }
.step:nth-child(5n + 3) { --station: var(--oms-colour-five, #9A3CAF); }
.step:nth-child(5n + 4) { --station: var(--oms-colour-three, #8DCD39); }
.step:nth-child(5n + 5) { --station: var(--oms-colour-two, #00B5AA); }

/* Number as a station: dot plus the big numeral. */
.step__num {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-bottom: 18px;
}

.step__num::before {
	content: '';
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--station);
	box-shadow: 0 0 0 6px color-mix(in srgb, var(--station) 18%, transparent);
}

.step__num::after {
	content: counter(step, decimal-leading-zero);
	font-family: var(--font-head);
	font-size: clamp(2.5rem, 2rem + 2vw, 4rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.04em;
	color: var(--station);
}

.step__title {
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
	letter-spacing: -.02em;
}

.step__text {
	grid-column: 2;
	grid-row: 1 / span 2;
	align-self: center;
	font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
	line-height: 1.6;
	color: var(--text);
	max-width: 560px;
}

.blk--dark .step__text {
	color: var(--on-dark-muted);
}

@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
	.steps {
		gap: 0;
	}

	.step {
		position: sticky;
		top: calc(var(--header-h) + 32px);
		margin-bottom: 20px;
		min-height: 260px;
	}

	.step:nth-child(2) { top: calc(var(--header-h) + 52px); }
	.step:nth-child(3) { top: calc(var(--header-h) + 72px); }
	.step:nth-child(4) { top: calc(var(--header-h) + 92px); }
	.step:nth-child(5) { top: calc(var(--header-h) + 112px); }
	.step:nth-child(6) { top: calc(var(--header-h) + 132px); }
}

@media (max-width: 767px) {
	.step {
		grid-template-columns: 1fr;
	}

	.step__text {
		grid-column: 1;
		grid-row: auto;
	}
}

.blk-steps__foot {
	display: flex;
	justify-content: center;
	margin-top: clamp(40px, 5vw, 56px);
}
