/* Process Steps — Vertical (hover emphasis). Pure CSS interaction. */

.bd-steps {
	--bd-serif: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--bd-num-w: 150px;
	--bd-slash-w: 72px;
	--bd-slash-angle: 20deg;

	--num-on: #16233b;
	--num-off: #cfd5de;
	--title-on: #16233b;
	--title-off: #aab2be;
	--desc-on: #4a5568;
	--desc-off: #b3bbc6;
	--slash-on: #16233b;
	--slash-off: #dfe3ea;

	display: grid;
	row-gap: 0 !important;
}

.bd-steps__row {
	display: grid;
	grid-template-columns: var(--bd-num-w) var(--bd-slash-w) 1fr;
	align-items: center;
	outline: none;
	gap: 50px;
}

/* Number */
.bd-steps__num {
	font-family: "Didot", "Times New Roman", serif;
	font-weight: 400;
	width: fit-content;
	font-size: 150px;
	line-height: 0.9;
	color: var(--num-off);
	transition: color 0.35s ease;
}

/* Diagonal slash */
.bd-steps__slash {
	position: relative;
	align-self: stretch;
	min-height: 13em;
}

.bd-steps__slash::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 10%;
	bottom: 10%;
	width: 2px;
	background: var(--slash-off);
	transform: translateX(-50%) rotate(var(--bd-slash-angle));
	transform-origin: center;
	transition: background 0.35s ease;
}

/* Content */
.bd-steps__title {
	margin: 0 0 10px;
	font-family: "Didot", "Times New Roman", serif;
	font-weight: 400;
	letter-spacing: 2.25px;
	font-size: 72px;
	line-height: 1.1;
	color: var(--title-off);
	transition: color 0.35s ease;
}

.bd-steps__desc {
	margin: 0;
	font-family: "Inter", "Times New Roman", serif;
	max-width: 34em;
	font-size: 24px;
	line-height: 1.6;
	color: var(--desc-off);
	transition: color 0.35s ease;
}

/* --- Default emphasised step --- */
.bd-steps__row.is-active .bd-steps__num {
	color: var(--num-on);
}

.bd-steps__row.is-active .bd-steps__title {
	color: var(--title-on);
}

.bd-steps__row.is-active .bd-steps__desc {
	color: var(--desc-on);
}

.bd-steps__row.is-active .bd-steps__slash::before {
	background: var(--slash-on);
}

/* --- Hover / focus: emphasis follows the pointer --- */
/* While the list is hovered/focused, fade the default-active step back. */
.bd-steps--hover:hover .bd-steps__row.is-active .bd-steps__num,
.bd-steps--hover:focus-within .bd-steps__row.is-active .bd-steps__num {
	color: var(--num-off);
}

.bd-steps--hover:hover .bd-steps__row.is-active .bd-steps__title,
.bd-steps--hover:focus-within .bd-steps__row.is-active .bd-steps__title {
	color: var(--title-off);
}

.bd-steps--hover:hover .bd-steps__row.is-active .bd-steps__desc,
.bd-steps--hover:focus-within .bd-steps__row.is-active .bd-steps__desc {
	color: var(--desc-off);
}

.bd-steps--hover:hover .bd-steps__row.is-active .bd-steps__slash::before,
.bd-steps--hover:focus-within .bd-steps__row.is-active .bd-steps__slash::before {
	background: var(--slash-off);
}

/* Emphasise whichever step is hovered/focused. */
.bd-steps--hover .bd-steps__row:hover .bd-steps__num,
.bd-steps--hover .bd-steps__row:focus-within .bd-steps__num {
	color: var(--num-on);
}

.bd-steps--hover .bd-steps__row:hover .bd-steps__title,
.bd-steps--hover .bd-steps__row:focus-within .bd-steps__title {
	color: var(--title-on);
}

.bd-steps--hover .bd-steps__row:hover .bd-steps__desc,
.bd-steps--hover .bd-steps__row:focus-within .bd-steps__desc {
	color: var(--desc-on);
}

.bd-steps--hover .bd-steps__row:hover .bd-steps__slash::before,
.bd-steps--hover .bd-steps__row:focus-within .bd-steps__slash::before {
	background: var(--slash-on);
}

@media (max-width: 1024px) {
	.bd-steps__num {
		font-size: 72px;
	}

	.bd-steps__title {
		font-size: 40px;
	}
}

@media (max-width: 600px) {
	.bd-steps__row {
		display: flex;
		flex-direction: column;
		position: relative;
		align-items: flex-start;
	}

	.bd-steps__slash {
		position: absolute;
		align-self: stretch;
		left: 26%;
		bottom: 68%;
		min-height: 6em;
	}

	.bd-steps {
		--bd-num-w: 82px;
		--bd-slash-w: 40px;
		gap: 30px !important;
	}

	.bd-steps__desc {
		max-width: none;
	}
}