.residential-process-overview {
	position: relative;
	padding: 4.3rem 0 5rem;
	background: transparent;
}

.residential-process-overview__header {
	display: grid;
	gap: 0.75rem;
	margin-bottom: 2.4rem;
}

.residential-process-overview__eyebrow {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ldg-brand-gold);
}

.residential-process-overview__title {
	margin: 0;
	max-width: 18ch;
	font-family: var(--ldg-font-display);
	font-size: clamp(2.45rem, 4.3vw, 4.5rem);
	line-height: 0.94;
	color: #f1f2f4;
}

.residential-process-overview__timeline {
	position: relative;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 1rem;
	padding-top: 3.2rem;
}

.residential-process-overview__rail {
	position: absolute;
	top: 2.35rem;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, rgba(166, 132, 74, 0.18) 0%, rgba(166, 132, 74, 0.72) 18%, rgba(241, 242, 244, 0.22) 52%, rgba(166, 132, 74, 0.6) 84%, rgba(166, 132, 74, 0.16) 100%);
}

.residential-process-overview__rail.ldg-reveal {
	transform: scaleX(0.16);
	transform-origin: left center;
	transition:
		opacity 720ms ease,
		transform 1100ms cubic-bezier(0.22, 1, 0.36, 1);
}

.residential-process-overview__rail.ldg-reveal.is-visible {
	transform: scaleX(1);
}

.residential-process-overview__step {
	position: relative;
	display: grid;
	align-content: start;
	min-height: 18.5rem;
	padding: 1.35rem 1.15rem 1.4rem;
	border: 1px solid rgba(241, 242, 244, 0.1);
	border-radius: 1.2rem;
	background:
		linear-gradient(180deg, rgba(166, 132, 74, 0.08) 0%, rgba(166, 132, 74, 0) 36%),
		rgba(9, 16, 27, 0.9);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.residential-process-overview__step.ldg-reveal {
	transform: translate3d(0, 2.6rem, 0) scale(0.978);
	transition:
		opacity 760ms ease,
		transform 880ms cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 880ms ease;
}

.residential-process-overview__step.ldg-reveal.is-visible {
	transform: translate3d(0, 0, 0) scale(1);
	box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
}

.residential-process-overview__step.ldg-reveal:nth-child(2) {
	transition-delay: 120ms;
}

.residential-process-overview__step.ldg-reveal:nth-child(3) {
	transition-delay: 240ms;
}

.residential-process-overview__step.ldg-reveal:nth-child(4) {
	transition-delay: 360ms;
}

.residential-process-overview__step.ldg-reveal:nth-child(5) {
	transition-delay: 480ms;
}

.residential-process-overview__step.ldg-reveal:nth-child(6) {
	transition-delay: 600ms;
}

.residential-process-overview__step:nth-child(2) {
	margin-top: 2.6rem;
}

.residential-process-overview__step:nth-child(3) {
	margin-top: 0.8rem;
}

.residential-process-overview__step:nth-child(4) {
	margin-top: 3.4rem;
}

.residential-process-overview__step:nth-child(5) {
	margin-top: 1.2rem;
}

.residential-process-overview__step::before {
	content: "";
	position: absolute;
	top: -1.55rem;
	left: 1.15rem;
	width: 0.85rem;
	height: 0.85rem;
	border-radius: 999px;
	background: var(--ldg-brand-gold);
	box-shadow: 0 0 0 0.45rem rgba(166, 132, 74, 0.12);
}

.residential-process-overview__step::after {
	content: "";
	position: absolute;
	top: -0.72rem;
	left: 1.55rem;
	width: 1px;
	height: 1.1rem;
	background: rgba(166, 132, 74, 0.55);
}

.residential-process-overview__step-topline {
	display: grid;
	gap: 0.7rem;
	margin-bottom: 0.95rem;
}

.residential-process-overview__number {
	font-family: var(--ldg-font-display);
	font-size: clamp(2.8rem, 4vw, 4rem);
	line-height: 0.82;
	letter-spacing: -0.04em;
	color: rgba(166, 132, 74, 0.92);
}

.residential-process-overview__step-title {
	margin: 0;
	max-width: 10ch;
	font-family: var(--ldg-font-serif);
	font-size: clamp(1.3rem, 1.7vw, 1.7rem);
	line-height: 1.04;
	color: #f1f2f4;
}

.residential-process-overview__step-copy {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.62;
	color: rgba(241, 242, 244, 0.76);
}

@media (max-width: 1200px) {
	.residential-process-overview__timeline {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.residential-process-overview__rail {
		right: 33.5%;
	}

	.residential-process-overview__step:nth-child(2),
	.residential-process-overview__step:nth-child(3),
	.residential-process-overview__step:nth-child(4),
	.residential-process-overview__step:nth-child(5) {
		margin-top: 0;
	}

	.residential-process-overview__step:nth-child(2) {
		margin-top: 2.4rem;
	}

	.residential-process-overview__step:nth-child(5) {
		grid-column: span 2;
		max-width: 26rem;
	}
}

@media (max-width: 780px) {
	.residential-process-overview {
		padding: 3.2rem 0 3.5rem;
	}

	.residential-process-overview__header {
		margin-bottom: 1.7rem;
	}

	.residential-process-overview__title {
		max-width: 14ch;
		font-size: clamp(2rem, 8.8vw, 3.1rem);
	}

	.residential-process-overview__timeline {
		grid-template-columns: 1fr;
		gap: 1rem;
		padding-top: 0;
	}

	.residential-process-overview__rail {
		left: 1.55rem;
		right: auto;
		top: 0;
		bottom: 0;
		width: 1px;
		height: auto;
		background: linear-gradient(180deg, rgba(166, 132, 74, 0.18) 0%, rgba(166, 132, 74, 0.72) 18%, rgba(241, 242, 244, 0.22) 52%, rgba(166, 132, 74, 0.6) 84%, rgba(166, 132, 74, 0.16) 100%);
	}

	.residential-process-overview__step,
	.residential-process-overview__step:nth-child(2),
	.residential-process-overview__step:nth-child(3),
	.residential-process-overview__step:nth-child(4),
	.residential-process-overview__step:nth-child(5) {
		min-height: 0;
		margin-top: 0;
		margin-left: 1.7rem;
	}

	.residential-process-overview__step:nth-child(5) {
		grid-column: auto;
		max-width: none;
	}

	.residential-process-overview__step::before {
		top: 1.35rem;
		left: -1.7rem;
		width: 0.8rem;
		height: 0.8rem;
	}

	.residential-process-overview__step::after {
		display: none;
	}

	.residential-process-overview__step-topline {
		gap: 0.55rem;
		margin-bottom: 0.8rem;
	}

	.residential-process-overview__number {
		font-size: clamp(2.25rem, 9vw, 3.1rem);
	}

	.residential-process-overview__step-title {
		font-size: clamp(1.2rem, 5.8vw, 1.55rem);
	}

	.residential-process-overview__step-copy {
		font-size: 0.9rem;
	}
}
