.residential-commercial {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	gap: 4.25rem;
	min-height: 100%;
}

.residential-commercial__intro {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.2rem;
	max-width: 72rem;
	margin: 0 auto;
	text-align: center;
}

.residential-commercial__title {
	margin: 0;
	font-family: var(--ldg-font-display);
	font-size: clamp(2.35rem, 4.4vw, 4.8rem);
	line-height: 0.94;
	color: var(--ldg-brand-white);
}

.residential-commercial__copy {
	margin: 0;
	max-width: 72rem;
	font-family: var(--ldg-font-body);
	font-size: clamp(1rem, 1.5vw, 1.3rem);
	line-height: 1.55;
	color: rgba(241, 242, 244, 0.88);
}

.residential-commercial__feature {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: 3.5rem;
}

.residential-commercial__feature--reverse {
	margin-top: 3rem;
}

.residential-commercial__media {
	position: relative;
	width: 100%;
	max-width: 34rem;
	aspect-ratio: 1 / 1;
	justify-self: start;
}

.residential-commercial__media.ldg-reveal {
	transform: translate3d(-3rem, 0, 0) rotate(-1.8deg);
	transition: opacity 820ms ease, transform 980ms cubic-bezier(0.16, 1, 0.3, 1);
}

.residential-commercial__media.ldg-reveal.is-visible {
	transform: translate3d(0, 0, 0) rotate(0deg);
}

.residential-commercial__media--reverse.ldg-reveal {
	transform: translate3d(3rem, 0, 0) rotate(1.8deg);
}

.residential-commercial__media--reverse.ldg-reveal.is-visible {
	transform: translate3d(0, 0, 0) rotate(0deg);
}

.residential-commercial__frame {
	position: absolute;
	inset: 0;
	transform: translate3d(1.35rem, 1.35rem, 0);
	border: 1px solid rgba(241, 242, 244, 0.28);
	border-radius: 0.3rem;
	background: linear-gradient(180deg, rgba(241, 242, 244, 0.28) 0%, rgba(241, 242, 244, 0.18) 100%);
	backdrop-filter: blur(14px);
	box-shadow: 0 1.2rem 2.6rem rgba(5, 12, 24, 0.16);
	opacity: 0.55;
	transition: transform 950ms cubic-bezier(0.22, 1, 0.36, 1), opacity 950ms ease;
}

.residential-commercial__frame--reverse {
	transform: translate3d(-1.35rem, 1.35rem, 0);
}

.residential-commercial__image {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 0.3rem;
	object-fit: cover;
	transform: scale(1.035);
	transform-origin: center center;
	transition: transform 1200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.residential-commercial__card {
	width: 100%;
	max-width: 44rem;
	justify-self: end;
	padding: 2rem 2.15rem;
	border: 1px solid rgba(241, 242, 244, 0.16);
	border-radius: 1.2rem;
	background: rgba(241, 242, 244, 0.08);
	backdrop-filter: blur(18px);
	box-shadow: 0 1.6rem 4rem rgba(5, 12, 24, 0.22);
	transform-origin: left center;
	transition: box-shadow 360ms ease, border-color 360ms ease;
}

.residential-commercial__card.ldg-reveal {
	transform: translate3d(3.4rem, 0, 0) rotate(1.4deg);
	transition: opacity 860ms ease, transform 1040ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 360ms ease, border-color 360ms ease;
}

.residential-commercial__card.ldg-reveal.is-visible {
	transform: translate3d(0, 0, 0) rotate(0deg);
}

.residential-commercial__card--commercial.ldg-reveal {
	transform: translate3d(-3.4rem, 0, 0) rotate(-1.4deg);
	transform-origin: right center;
}

.residential-commercial__feature--reverse .residential-commercial__card {
	justify-self: start;
}

.residential-commercial__feature--reverse .residential-commercial__media {
	justify-self: end;
	margin-left: auto;
}

.residential-commercial__card--commercial.ldg-reveal.is-visible {
	transform: translate3d(0, 0, 0) rotate(0deg);
}

.residential-commercial__media.is-visible .residential-commercial__frame {
	transform: translate3d(2rem, 1.85rem, 0);
	opacity: 1;
}

.residential-commercial__media--reverse.is-visible .residential-commercial__frame--reverse {
	transform: translate3d(-2rem, 1.85rem, 0);
	opacity: 1;
}

.residential-commercial__media.is-visible .residential-commercial__image {
	transform: scale(1);
}

.residential-commercial__card.is-visible {
	box-shadow: 0 2rem 4.8rem rgba(5, 12, 24, 0.28);
	border-color: rgba(241, 242, 244, 0.24);
}

.residential-commercial__eyebrow {
	margin: 0 0 0.85rem;
	font-family: "Playfair Display", Georgia, serif;
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	color: var(--ldg-brand-gold);
}

.residential-commercial__headline {
	margin: 0;
	font-family: var(--ldg-font-display);
	font-size: clamp(2rem, 3vw, 3rem);
	font-weight: 400;
	line-height: 0.98;
	color: var(--ldg-brand-white);
}

.residential-commercial__options {
	display: flex;
	flex-direction: column;
	margin-top: 1.65rem;
}

.residential-commercial-option {
	display: block;
	padding: 1.15rem 0;
	cursor: pointer;
	text-decoration: none;
	transition: transform 240ms ease, opacity 240ms ease;
}

.residential-commercial-option + .residential-commercial-option {
	border-top: 1px solid rgba(241, 242, 244, 0.18);
}

.residential-commercial-option__head {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	margin-bottom: 0.85rem;
}

.residential-commercial-option__icon {
	display: inline-block;
	width: 1.5rem;
	height: 1.5rem;
	flex: 0 0 auto;
	background-color: var(--ldg-brand-gold);
	mask: var(--residential-commercial-icon) center / contain no-repeat;
	-webkit-mask: var(--residential-commercial-icon) center / contain no-repeat;
	transition: transform 240ms ease, filter 240ms ease;
}

.residential-commercial-option__title {
	margin: 0;
	font-family: var(--ldg-font-display);
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1.2;
	color: var(--ldg-brand-white);
	transition: color 240ms ease, transform 240ms ease;
}

.residential-commercial-option__arrow {
	display: inline-block;
	width: 1.5rem;
	height: 1.5rem;
	margin-left: auto;
	flex: 0 0 auto;
	background-color: var(--ldg-brand-gold);
	mask: url("../../../icons/arrow.svg") center / contain no-repeat;
	-webkit-mask: url("../../../icons/arrow.svg") center / contain no-repeat;
	transition: transform 240ms ease, filter 240ms ease;
}

.residential-commercial-option__description {
	margin: 0;
	max-width: none;
	width: 100%;
	font-family: var(--ldg-font-body);
	font-size: 0.98rem;
	line-height: 1.6;
	color: rgba(241, 242, 244, 0.76);
	transition: color 240ms ease;
}

.residential-commercial-option:hover,
.residential-commercial-option:focus-within {
	transform: translateX(0.35rem);
}

.residential-commercial-option:hover .residential-commercial-option__icon,
.residential-commercial-option:focus-within .residential-commercial-option__icon {
	transform: scale(1.08);
	filter: brightness(1.08);
}

.residential-commercial-option:hover .residential-commercial-option__arrow,
.residential-commercial-option:focus-within .residential-commercial-option__arrow {
	transform: translateX(0.2rem);
	filter: brightness(1.08);
}

.residential-commercial-option:hover .residential-commercial-option__title,
.residential-commercial-option:focus-within .residential-commercial-option__title {
	color: #ffffff;
	transform: translateX(0.12rem);
}

.residential-commercial-option:hover .residential-commercial-option__description,
.residential-commercial-option:focus-within .residential-commercial-option__description {
	color: rgba(241, 242, 244, 0.92);
}

@media (max-width: 780px) {
	.residential-commercial {
		gap: 2.6rem;
		overflow-x: clip;
	}

	.residential-commercial__feature {
		grid-template-columns: 1fr;
		gap: 2.4rem;
		overflow-x: clip;
	}

	.residential-commercial__feature--reverse {
		margin-top: 0;
	}

	.residential-commercial__media {
		max-width: none;
		justify-self: stretch;
	}

	.residential-commercial__frame {
		transform: translate3d(0.8rem, 0.8rem, 0);
	}

	.residential-commercial__frame--reverse {
		transform: translate3d(-0.8rem, 0.8rem, 0);
	}

	.residential-commercial__media.is-visible .residential-commercial__frame {
		transform: translate3d(1.2rem, 1.1rem, 0);
	}

	.residential-commercial__media--reverse.is-visible .residential-commercial__frame--reverse {
		transform: translate3d(-1.2rem, 1.1rem, 0);
	}

	.residential-commercial__media.ldg-reveal {
		transform: translate3d(0, 1.1rem, 0);
	}

	.residential-commercial__media--reverse.ldg-reveal {
		transform: translate3d(0, 1.1rem, 0);
	}

	.residential-commercial__card.ldg-reveal {
		transform: translate3d(0, 1.1rem, 0);
	}

	.residential-commercial__card--commercial.ldg-reveal {
		transform: translate3d(0, 1.1rem, 0);
	}

	.residential-commercial__card {
		max-width: none;
		justify-self: stretch;
		padding: 1.5rem 1.3rem;
	}

	.residential-commercial__eyebrow {
		font-size: 0.92rem;
	}

	.residential-commercial__headline {
		font-size: clamp(1.75rem, 8vw, 2.4rem);
	}

	.residential-commercial__options {
		margin-top: 1.35rem;
	}

	.residential-commercial-option {
		padding: 1rem 0;
	}

	.residential-commercial-option__title {
		font-size: 1.65rem;
	}

	.residential-commercial-option__description {
		font-size: 0.94rem;
	}
}
