/* Real estate conversion funnel. Loaded only on the Real Estate page. */
.sp-real-estate-page {
	--sp-re-ivory: #f7f4ed;
	--sp-re-blue: #e5eef3;
	--sp-re-navy: #183447;
	--sp-re-line: rgba(24, 52, 71, 0.18);
	background: var(--sp-re-ivory);
}

.sp-real-estate-page [id] { scroll-margin-top: 124px; }

.sp-real-estate-nav {
	background: rgba(247, 244, 237, 0.96);
	border-bottom: 1px solid var(--sp-re-line);
	position: sticky;
	top: 60px;
	z-index: 900;
}

.sp-real-estate-nav__inner {
	align-items: stretch;
	display: flex;
	justify-content: space-between;
	margin: 0 auto;
	max-width: 1240px;
	min-height: 54px;
	padding: 0 40px;
}

.sp-real-estate-nav__links { align-items: center; display: flex; gap: clamp(18px, 2.2vw, 32px); }
.sp-real-estate-nav a {
	align-items: center;
	color: var(--sp-re-navy);
	display: inline-flex;
	font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
	font-size: 12px;
	font-weight: 650;
	min-height: 44px;
	text-decoration: none;
}
.sp-real-estate-nav__links a { border-bottom: 2px solid transparent; }
.sp-real-estate-nav__links a:hover,
.sp-real-estate-nav__links a:focus-visible { border-bottom-color: var(--sp-re-navy); }
.sp-real-estate-nav .sp-real-estate-nav__cta {
	background: var(--sp-re-navy);
	color: #fff;
	margin-left: 28px;
	padding: 0 20px;
}

.sp-real-estate-nav a:focus-visible,
.sp-real-estate-page .sp-real-estate-text-link:focus-visible,
.sp-real-estate-page .sp-project-tab:focus-visible,
.sp-real-estate-page .sp-button:focus-visible {
	outline: 3px solid #6c94aa;
	outline-offset: 3px;
}

.sp-page .sp-real-estate-hero { background: var(--sp-re-blue); padding: 34px 40px 42px; }
.sp-real-estate-hero__layout {
	background: var(--sp-re-ivory);
	border: 1px solid var(--sp-re-line);
	grid-template-columns: minmax(0, 6.7fr) minmax(360px, 5.3fr);
	max-width: 1200px;
	min-height: 590px;
}
.sp-real-estate-hero__media { border-left: 1px solid var(--sp-re-line); min-height: 590px; }
.sp-real-estate-hero__copy { padding: clamp(48px, 5vw, 74px); }
.sp-real-estate-hero__meta {
	border-bottom: 1px solid var(--sp-re-line);
	color: var(--sp-ink-muted);
	display: flex;
	font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
	font-size: 10px;
	font-weight: 700;
	justify-content: space-between;
	letter-spacing: 0.13em;
	margin-bottom: 44px;
	padding-bottom: 13px;
	text-transform: uppercase;
	width: 100%;
}
.sp-real-estate-page .sp-real-estate-hero h1 { font-size: clamp(2.75rem, 4.2vw, 4rem); line-height: 0.98; max-width: 8ch; }
.sp-real-estate-hero .sp-subhead { font-size: 17px; line-height: 1.55; margin-top: 24px; max-width: 25rem; }
.sp-real-estate-hero .sp-actions { align-items: center; margin-top: 30px; }
.sp-real-estate-hero .sp-button--primary,
.sp-project-panel .sp-button--primary { border-radius: 4px; }
.sp-real-estate-text-link { color: var(--sp-re-navy); font-size: 13px; font-weight: 650; padding: 12px 2px; text-decoration: none; }
.sp-real-estate-text-link span { display: inline-block; margin-left: 7px; }

.sp-page .sp-project-selector-section { background: var(--sp-re-ivory); padding: 72px 0 80px; }
.sp-project-selector { border: 1px solid var(--sp-re-line); display: grid; grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr); }
.sp-project-selector__intro { background: var(--sp-re-navy); color: #fff; padding: clamp(38px, 5vw, 64px); }
.sp-project-selector__intro .sp-eyebrow,
.sp-project-selector__intro h2,
.sp-project-selector__intro p { color: #fff; text-align: left; }
.sp-project-selector__intro h2,
.sp-real-estate-page .sp-section-heading h2,
.sp-real-estate-final__copy h2 {
	font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
	font-size: clamp(1.9rem, 3vw, 2.7rem);
	font-weight: 650;
	letter-spacing: -0.04em;
	line-height: 1.03;
}
.sp-project-selector__intro p:last-child { font-size: 15px; line-height: 1.65; margin: 24px 0 0; max-width: 26rem; opacity: 0.78; }
.sp-project-selector__interface { background: #fff; display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.sp-project-tabs { border-bottom: 1px solid var(--sp-re-line); display: grid; grid-template-columns: 0.72fr 1fr 1.35fr; padding: 8px; }
.sp-project-tab {
	background: transparent;
	border: 0;
	border-radius: 4px;
	color: var(--sp-ink-soft);
	cursor: pointer;
	font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
	font-size: 12px;
	font-weight: 650;
	line-height: 1.25;
	min-height: 48px;
	padding: 10px 14px;
}
.sp-project-tab[aria-selected="true"] { background: var(--sp-re-blue); color: var(--sp-re-navy); }
.sp-project-panels { display: flex; }
.sp-project-panel { align-items: start; display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: clamp(30px, 4vw, 52px); width: 100%; }
.sp-project-panel[hidden] { display: none; }
.sp-project-panel__label {
	color: var(--sp-ink-muted);
	font-size: 10px;
	font-weight: 700;
	grid-column: 1 / -1;
	letter-spacing: 0.13em;
	margin: 0 0 8px;
	text-transform: uppercase;
}
.sp-project-panel h3 {
	color: var(--sp-re-navy);
	font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
	font-size: clamp(1.3rem, 2vw, 1.65rem);
	font-weight: 650;
	grid-column: 1 / -1;
	letter-spacing: -0.025em;
	margin: 0 0 24px;
}
.sp-project-panel ul { display: grid; gap: 0; list-style: none; margin: 0; padding: 0 28px 0 0; }
.sp-project-panel li { border-top: 1px solid var(--sp-re-line); font-size: 13px; font-weight: 550; padding: 10px 0 10px 24px; position: relative; }
.sp-project-panel li::before,
.sp-real-estate-final__checklist li::before { content: "✓"; font-size: 11px; font-weight: 800; left: 1px; position: absolute; top: 11px; }
.sp-project-panel .sp-button { align-self: end; font-size: 12px; white-space: nowrap; }

.sp-page .sp-real-estate-work,
.sp-page .sp-property-galleries,
.sp-page .sp-real-estate-process-section { padding: 78px 0 86px; }
.sp-real-estate-page .sp-section-heading {
	border-top: 1px solid var(--sp-re-line);
	display: grid;
	grid-template-columns: minmax(160px, 0.42fr) minmax(0, 1fr);
	margin-bottom: 34px;
	padding-top: 20px;
}
.sp-real-estate-page .sp-section-heading .sp-eyebrow { grid-column: 1; margin: 0; }
.sp-real-estate-page .sp-section-heading h2,
.sp-real-estate-page .sp-section-heading .sp-section-note { grid-column: 2; }
.sp-real-estate-page .sp-section-heading h2 { max-width: 20ch; }
.sp-real-estate-page .sp-section-note { font-size: 13px; margin: 12px 0 0; max-width: 35rem; }

.sp-real-estate-gallery { gap: 10px; }
.sp-property-image:nth-child(n) { margin-top: 0; }
.sp-property-image:nth-child(1) { grid-column: 1 / span 8; }
.sp-property-image:nth-child(2) { grid-column: 9 / span 4; }
.sp-property-image:nth-child(3), .sp-property-image:nth-child(4), .sp-property-image:nth-child(5),
.sp-property-image:nth-child(6), .sp-property-image:nth-child(7), .sp-property-image:nth-child(8) { grid-column: span 4; }
.sp-property-image img,
.sp-property-image:nth-child(2) img,
.sp-property-image:nth-child(4) img,
.sp-property-image:nth-child(5) img,
.sp-property-image:nth-child(6) img { aspect-ratio: 4 / 3; }
.sp-property-image:nth-child(1) img { aspect-ratio: 2 / 1; }
.sp-property-image a { display: block; }
.sp-property-image a:focus-visible { outline: 3px solid var(--sp-re-navy); outline-offset: -3px; }

.sp-property-galleries { background: var(--sp-re-blue); }
.sp-property-projects { gap: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sp-property-project:nth-child(n) { background: var(--sp-re-ivory); border: 1px solid var(--sp-re-line); gap: 0; grid-column: auto; margin-top: 0; }
.sp-property-project__cover { border-bottom: 1px solid var(--sp-re-line); border-radius: 0; position: relative; }
.sp-property-project__cover img,
.sp-property-project:nth-child(2) .sp-property-project__cover img,
.sp-property-project:nth-child(3) .sp-property-project__cover img { aspect-ratio: 16 / 9; }
.sp-property-project__cover::after { background: rgba(24, 52, 71, 0.16); content: ""; inset: 0; opacity: 0; position: absolute; transition: opacity 0.24s ease; }
.sp-property-project__action {
	background: var(--sp-re-ivory);
	border-radius: 4px;
	bottom: 16px;
	color: var(--sp-re-navy);
	font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
	font-size: 12px;
	font-weight: 700;
	left: 16px;
	padding: 11px 14px;
	position: absolute;
	z-index: 1;
}
.sp-property-project__action span { margin-left: 8px; }
.sp-property-project__cover:hover::after,
.sp-property-project__cover:focus-visible::after { opacity: 1; }
.sp-property-project__meta { gap: 8px; padding: 22px 24px 24px; }
.sp-property-project__meta h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }

.sp-real-estate-process-section { background: var(--sp-re-ivory); }
.sp-real-estate-process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.sp-real-estate-process li {
	border-bottom: 1px solid var(--sp-re-line);
	border-top: 1px solid var(--sp-re-line);
	display: grid;
	gap: 36px;
	min-height: 180px;
	padding: 20px 22px 24px;
}
.sp-real-estate-process li + li { border-left: 1px solid var(--sp-re-line); }
.sp-real-estate-process span { color: var(--sp-ink-muted); font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.13em; }
.sp-real-estate-process strong { align-self: end; color: var(--sp-re-navy); font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif; font-size: 16px; line-height: 1.35; }

.sp-page .sp-real-estate-final { background: var(--sp-re-blue); padding: 64px 0; }
.sp-real-estate-final__panel { background: var(--sp-re-navy); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr); min-height: 430px; }
.sp-real-estate-final__copy { align-items: start; display: flex; flex-direction: column; justify-content: center; padding: clamp(44px, 6vw, 76px); }
.sp-real-estate-final__copy .sp-eyebrow,
.sp-real-estate-final__copy h2,
.sp-real-estate-final__copy p { color: #fff; text-align: left; }
.sp-real-estate-final__copy p:not(.sp-eyebrow) { font-size: 16px; line-height: 1.6; margin: 20px 0 28px; max-width: 30rem; opacity: 0.76; }
.sp-button--light { background: var(--sp-re-ivory); border-color: var(--sp-re-ivory); border-radius: 4px; color: var(--sp-re-navy); }
.sp-button--light:hover { background: #fff; color: var(--sp-re-navy); }
.sp-real-estate-final__checklist { align-self: center; border-left: 1px solid rgba(255, 255, 255, 0.2); margin: 40px 0; padding: 24px clamp(34px, 5vw, 64px); }
.sp-real-estate-final__checklist p { color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; margin: 0 0 20px; text-transform: uppercase; }
.sp-real-estate-final__checklist ul { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; }
.sp-real-estate-final__checklist li { border-top: 1px solid rgba(255, 255, 255, 0.16); color: rgba(255, 255, 255, 0.82); font-size: 13px; line-height: 1.45; padding: 13px 0 13px 25px; position: relative; }
.sp-real-estate-final__checklist li::before { top: 14px; }

@media (max-width: 980px) {
	.sp-real-estate-nav__inner { padding: 0 24px; }
	.sp-real-estate-nav__links { gap: 16px; }
	.sp-real-estate-nav__links a { font-size: 11px; }
	.sp-page .sp-real-estate-hero { padding-left: 24px; padding-right: 24px; }
	.sp-real-estate-hero__layout { grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr); }
	.sp-project-selector { grid-template-columns: 1fr; }
	.sp-project-selector__intro { padding: 42px; }
}

@media (max-width: 768px) {
	.sp-real-estate-page [id] { scroll-margin-top: 112px; }
	.sp-real-estate-nav { top: 57px; }
	.sp-real-estate-nav__inner { min-height: 52px; overflow-x: auto; padding: 0 18px; scrollbar-width: none; }
	.sp-real-estate-nav__inner::-webkit-scrollbar { display: none; }
	.sp-real-estate-nav__links { gap: 22px; }
	.sp-real-estate-nav__links a { font-size: 11px; white-space: nowrap; }
	.sp-real-estate-nav__links a:nth-child(1),
	.sp-real-estate-nav__links a:nth-child(3),
	.sp-real-estate-nav__links a:nth-child(4) { display: none; }
	.sp-real-estate-nav .sp-real-estate-nav__cta { flex: 0 0 auto; margin-left: 22px; padding: 0 14px; white-space: nowrap; }
	.sp-page .sp-real-estate-hero { padding: 16px 18px 22px; }
	.sp-real-estate-hero__layout { grid-template-columns: 1fr; min-height: 0; }
	.sp-real-estate-hero__media { aspect-ratio: 16 / 10; border-bottom: 1px solid var(--sp-re-line); border-left: 0; grid-column: 1; grid-row: 1; min-height: 0; }
	.sp-real-estate-hero__copy { grid-column: 1; grid-row: 2; padding: 28px 24px 30px; }
	.sp-real-estate-hero__meta { margin-bottom: 24px; }
	.sp-real-estate-page .sp-real-estate-hero h1 { font-size: clamp(2.25rem, 11vw, 3rem); }
	.sp-real-estate-hero .sp-subhead { font-size: 15px; margin-top: 16px; }
	.sp-real-estate-hero .sp-actions { align-items: flex-start; flex-direction: column; gap: 4px; margin-top: 20px; }
	.sp-real-estate-hero .sp-actions .sp-button { width: 100%; }
	.sp-page .sp-project-selector-section,
	.sp-page .sp-real-estate-work,
	.sp-page .sp-property-galleries,
	.sp-page .sp-real-estate-process-section { padding: 52px 0 58px; }
	.sp-project-selector__intro { padding: 32px 26px; }
	.sp-project-selector__intro p:last-child { font-size: 14px; margin-top: 18px; }
	.sp-project-tabs { gap: 4px; grid-template-columns: 1fr; }
	.sp-project-tab { justify-content: flex-start; text-align: left; }
	.sp-project-panel { grid-template-columns: 1fr; padding: 28px 24px 30px; }
	.sp-project-panel ul { padding: 0 0 24px; }
	.sp-project-panel .sp-button { width: 100%; }
	.sp-real-estate-page .sp-section-heading { grid-template-columns: 1fr; margin-bottom: 24px; }
	.sp-real-estate-page .sp-section-heading .sp-eyebrow,
	.sp-real-estate-page .sp-section-heading h2,
	.sp-real-estate-page .sp-section-heading .sp-section-note { grid-column: 1; }
	.sp-real-estate-page .sp-section-heading .sp-eyebrow { margin-bottom: 14px; }
	.sp-real-estate-gallery { gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sp-property-image:nth-child(n) { grid-column: span 1; }
	.sp-property-image:nth-child(1) { grid-column: 1 / -1; }
	.sp-property-image:nth-child(8) { grid-column: 1 / -1; }
	.sp-property-image img,
	.sp-property-image:nth-child(1) img,
	.sp-property-image:nth-child(2) img,
	.sp-property-image:nth-child(3) img,
	.sp-property-image:nth-child(4) img,
	.sp-property-image:nth-child(5) img,
	.sp-property-image:nth-child(6) img,
	.sp-property-image:nth-child(7) img { aspect-ratio: 4 / 3; }
	.sp-property-image:nth-child(8) img { aspect-ratio: 16 / 9; }
	.sp-property-projects { gap: 16px; grid-template-columns: 1fr; }
	.sp-property-project__meta { padding: 18px 18px 20px; }
	.sp-real-estate-process { grid-template-columns: 1fr; }
	.sp-real-estate-process li { align-items: center; border-bottom: 1px solid var(--sp-re-line); border-top: 0; gap: 16px; grid-template-columns: 30px 1fr; min-height: 0; padding: 18px 4px; }
	.sp-real-estate-process li:first-child { border-top: 1px solid var(--sp-re-line); }
	.sp-real-estate-process li + li { border-left: 0; }
	.sp-page .sp-real-estate-final { padding: 18px; }
	.sp-real-estate-final__panel { grid-template-columns: 1fr; min-height: 0; }
	.sp-real-estate-final .sp-wrap { padding: 0; }
	.sp-real-estate-final__copy { padding: 38px 28px 32px; }
	.sp-real-estate-final__copy .sp-button { width: 100%; }
	.sp-real-estate-final__checklist { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.2); margin: 0 28px; padding: 28px 0 32px; }
}

@media (max-width: 480px) {
	.sp-real-estate-nav__inner { padding: 0 10px; }
	.sp-real-estate-nav__links { gap: 8px; }
	.sp-real-estate-nav .sp-real-estate-nav__cta {
		font-size: 10px;
		margin-left: 8px;
		padding: 0 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sp-real-estate-page *,
	.sp-real-estate-page *::before,
	.sp-real-estate-page *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
