/**
 * Process timeline.
 */

.ss-process__steps {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
	list-style: none;
}

.ss-process__step {
	position: relative;
	display: grid;
	grid-template-columns: 4.5rem minmax(0, 1fr);
	grid-template-areas:
		"num title"
		"num text";
	column-gap: 1.25rem;
	padding: 0 0 2.75rem;
}

/* Vertical line (mobile / tablet). */
.ss-process__step::before {
	content: "";
	position: absolute;
	left: 2.25rem;
	top: 3.6rem;
	bottom: .5rem;
	width: 1px;
	background: var(--ss-rule);
}

.ss-process__step:last-child::before {
	display: none;
}

.ss-process__num {
	grid-area: num;
	font-family: var(--ss-font-display);
	font-size: 3.25rem;
	font-style: italic;
	line-height: 1;
	text-align: center;
	color: transparent;
	-webkit-text-stroke: 1px var(--ss-accent-strong);
}

.ss-process__dot {
	display: none;
}

.ss-process__title {
	grid-area: title;
	align-self: end;
	margin-bottom: .75rem;
	font-size: var(--ss-fs-4);
	line-height: 1.1;
}

.ss-process__text {
	grid-area: text;
	margin: 0;
	font-size: .9375rem;
	color: var(--ss-muted);
}

@supports not (-webkit-text-stroke: 1px black) {
	.ss-process__num {
		color: var(--ss-accent-strong);
	}
}

@media (min-width: 1024px) {
	.ss-process__steps {
		grid-template-columns: repeat(var(--ss-steps, 5), minmax(0, 1fr));
		gap: clamp(1.5rem, 2.5vw, 3rem);
	}

	/* Horizontal line through the dots. */
	.ss-process__steps::before {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		top: calc(clamp(4.5rem, 3rem + 3vw, 7rem) + 1.9rem);
		height: 1px;
		background: var(--ss-rule);
	}

	.ss-process__step {
		display: block;
		padding: 0;
	}

	.ss-process__step::before {
		display: none;
	}

	.ss-process__num {
		display: block;
		font-size: clamp(4.5rem, 3rem + 3vw, 7rem);
		text-align: left;
	}

	.ss-process__dot {
		position: relative;
		z-index: 1;
		display: block;
		width: .8rem;
		height: .8rem;
		margin: 1.5rem 0 2.25rem;
		border: 1px solid var(--ss-accent-strong);
		border-radius: 50%;
		background: var(--ss-ivory-deep);
		transition: background-color .5s var(--ss-ease), transform .5s var(--ss-ease);
	}

	.ss-dark .ss-process__dot {
		background: var(--ss-ink);
	}

	.ss-paper .ss-process__dot {
		background: var(--ss-paper);
	}

	.ss-light .ss-process__dot {
		background: var(--ss-ivory);
	}

	.ss-process__step:hover .ss-process__dot {
		background: var(--ss-accent-strong);
		transform: scale(1.3);
	}

	.ss-process__title {
		margin-bottom: 1rem;
	}
}
