.ns-homepage {
	background:
		radial-gradient(circle at left 14rem top 9rem, rgba(var(--color-sky-blue-rgb), 0.08), transparent 22rem),
		linear-gradient(180deg, var(--color-surface) 0%, var(--color-white) 22%, var(--color-surface) 100%);
	overflow-x: hidden;
	padding: 0 1rem 4rem;
}

.ns-homepage-shell {
	display: grid;
	gap: 1.6rem;
	margin: 0 auto;
	max-width: 76rem;
	padding-top: 0.9rem;
}

.ns-home-section {
	display: grid;
	gap: 1rem;
}

.ns-home-section-header {
	align-items: end;
	display: flex;
	gap: 1rem;
}

.ns-home-section-header h2,
.ns-home-final-card h2 {
	color: var(--color-text);
	font-size: clamp(1.8rem, 3.8vw, 2.5rem);
	line-height: 1.05;
	margin: 0;
}

.ns-home-section-header p,
.ns-home-final-card p {
	color: var(--color-muted-text);
	line-height: 1.7;
	margin: 0.55rem 0 0;
	max-width: 44rem;
}

.ns-home-eyebrow,
.ns-home-card-eyebrow {
	color: rgba(var(--color-text-rgb), 0.78);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	margin: 0 0 0.4rem;
	text-transform: uppercase;
}

.ns-home-card-eyebrow {
	color: var(--color-label-text);
}

.ns-home-hero {
	border-radius: 0 0 var(--radius-card) var(--radius-card);
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	min-height: clamp(31rem, 72vw, 43rem);
	overflow: hidden;
	position: relative;
}

.ns-home-hero-shell {
	align-items: end;
	display: grid;
	min-height: inherit;
	padding-inline: 1.4rem;
	position: relative;
	z-index: 3;
}

.ns-home-hero-copy {
	align-content: end;
	display: grid;
	gap: 1rem;
	max-width: 42rem;
	margin-bottom: 2.2rem;
	padding: 0;
}

.ns-home-hero h1 {
	color: var(--color-white);
	text-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
	font-size: clamp(2.9rem, 7vw, 5.2rem);
	line-height: 0.95;
	margin: 0;
	max-width: 8ch;
}

.ns-home-hero-intro {
	color: rgba(var(--color-white-rgb), 0.9);
	font-size: clamp(1rem, 2vw, 1.16rem);
	line-height: 1.8;
	margin: 0;
	max-width: 34rem;
	text-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.ns-home-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	padding-top: 0.4rem;
}

.ns-home-hero-actions .ns-button--secondary {
	background: rgba(var(--color-white-rgb), 0.92);
	border-color: rgba(var(--color-white-rgb), 0.96);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
	color: var(--color-navy);
}

.ns-home-hero-actions .ns-button--secondary:hover,
.ns-home-hero-actions .ns-button--secondary:focus-visible {
	background: var(--color-white);
	border-color: var(--color-white);
	color: var(--color-link-active);
}

.ns-home-hero-location {
	color: rgba(var(--color-white-rgb), 0.84);
	font-size: 0.95rem;
	font-weight: 600;
	margin: 0;
	text-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

.ns-home-hero-media {
	background:
		radial-gradient(circle at 24% 24%, rgba(var(--color-white-rgb), 0.2), transparent 30%),
		linear-gradient(145deg, rgba(var(--color-sky-blue-rgb), 0.26), rgba(var(--color-navy-rgb), 0.22)),
		linear-gradient(180deg, rgba(var(--color-white-rgb), 0.12), rgba(var(--color-white-rgb), 0.02));
	inset: 0;
	position: relative;
	position: absolute;
}

.ns-home-hero-media::before,
.ns-home-hero-media::after {
	border-radius: 999px;
	content: "";
	position: absolute;
}

.ns-home-hero-media::before {
	background: rgba(var(--color-white-rgb), 0.16);
	height: 17rem;
	right: -2rem;
	top: -2rem;
	width: 17rem;
}

.ns-home-hero-media::after {
	background: rgba(var(--color-sky-blue-rgb), 0.18);
	bottom: 1rem;
	height: 12rem;
	left: -1.5rem;
	width: 12rem;
}

.ns-home-hero--with-image .ns-home-hero-media::before,
.ns-home-hero--with-image .ns-home-hero-media::after {
	display: none;
}

.ns-home-hero-overlay {
	background:
		linear-gradient(90deg, rgba(var(--color-overlay-rgb), 0.68) 0%, rgba(var(--color-overlay-rgb), 0.48) 34%, rgba(var(--color-overlay-rgb), 0.18) 66%, rgba(var(--color-overlay-rgb), 0.02) 100%),
		linear-gradient(180deg, rgba(var(--color-overlay-rgb), 0.1) 0%, rgba(var(--color-overlay-rgb), 0.38) 100%);
	inset: 0;
	position: absolute;
	z-index: 2;
}

.ns-home-hero-media img,
.ns-home-featured-media img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.ns-home-hero-media-fallback {
	display: grid;
	height: 100%;
	padding: 1.5rem;
	place-items: end start;
	position: relative;
	z-index: 1;
}

.ns-home-hero-fallback-card {
	backdrop-filter: blur(8px);
	background: rgba(var(--color-white-rgb), 0.72);
	border: 1px solid rgba(var(--color-white-rgb), 0.55);
	border-radius: 1.4rem;
	box-shadow: var(--shadow-soft);
	max-width: 18rem;
	padding: 1rem 1.1rem;
}

.ns-home-hero-fallback-card p {
	color: var(--color-text);
	font-size: 0.98rem;
	line-height: 1.65;
	margin: 0;
}

.ns-home-path-grid,
.ns-home-trust-grid,
.ns-home-resource-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ns-home-trust {
	background:
		linear-gradient(135deg, rgba(var(--color-navy-rgb), 0.96) 0%, rgba(20, 42, 96, 0.96) 58%, rgba(var(--color-sky-blue-rgb), 0.82) 100%);
	border-radius: calc(var(--radius-card) + 0.25rem);
	box-shadow: var(--shadow-soft-lifted);
	margin-top: 0.35rem;
	overflow: hidden;
	padding: 1.4rem 1.4rem 3rem;
	position: relative;
}

.ns-home-trust::before {
	background:
		radial-gradient(circle at top right, rgba(var(--color-white-rgb), 0.16), transparent 36%),
		radial-gradient(circle at bottom left, rgba(var(--color-sky-blue-rgb), 0.16), transparent 30%);
	content: "";
	inset: 0;
	position: absolute;
}

.ns-home-trust .ns-home-section-header,
.ns-home-trust-grid {
	position: relative;
	z-index: 1;
}

.ns-home-trust .ns-home-section-header h2 {
	color: var(--color-white);
	max-width: 14ch;
}

.ns-home-trust-card {
	background: rgba(var(--color-white-rgb), 0.92);
	border-color: rgba(var(--color-white-rgb), 0.24);
	box-shadow: 0 18px 28px rgba(0, 0, 0, 0.12);
}

.ns-home-trust-card:nth-child(2) {
	margin-top: 1rem;
}

.ns-home-trust-card:nth-child(3) {
	margin-top: 2rem;
}

.ns-home-trust-card h3 {
	max-width: 12ch;
}

.ns-home-resources {
	align-items: start;
	grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
}

.ns-home-resources .ns-home-section-header {
	border-right: 1px solid rgba(var(--color-sky-blue-rgb), 0.16);
	padding: 0.45rem 1.35rem 0.45rem 0;
	position: sticky;
	top: 6.5rem;
}

.ns-home-resources .ns-home-section-header h2 {
	max-width: 12ch;
}

.ns-home-resource-grid {
	grid-template-columns: 1fr;
}

.ns-home-resource-card {
	align-items: center;
	background:
		linear-gradient(90deg, rgba(var(--color-white-rgb), 0.96) 0%, rgba(var(--color-surface-accent-rgb, 242, 247, 252), 0.96) 100%);
	border-radius: 1.6rem;
	display: grid;
	gap: 1rem 1.2rem;
	grid-template-columns: minmax(11rem, 0.95fr) minmax(14rem, 1.25fr) auto;
	padding: 1.15rem 1.2rem;
}

.ns-home-resource-card h3,
.ns-home-resource-card p {
	margin: 0;
	min-width: 0;
}

.ns-home-resource-card .ns-button {
	justify-self: end;
	margin-top: 0;
	white-space: nowrap;
}

.ns-home-path-card,
.ns-home-trust-card,
.ns-home-resource-card {
	display: grid;
	gap: 0.9rem;
	padding: 1.35rem;
}

.ns-home-path-card h2,
.ns-home-trust-card h3,
.ns-home-resource-card h3,
.ns-home-featured-copy h3 {
	color: var(--color-text);
	font-size: clamp(1.3rem, 2vw, 1.65rem);
	line-height: 1.12;
	margin: 0;
}

.ns-home-path-card p,
.ns-home-trust-card p,
.ns-home-resource-card p,
.ns-home-featured-copy p {
	color: var(--color-muted-text);
	line-height: 1.72;
	margin: 0;
}

.ns-home-path-card .ns-button,
.ns-home-resource-card .ns-button {
	justify-self: start;
	margin-top: auto;
}

.ns-home-featured-card {
	display: grid;
	grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
	overflow: hidden;
	position: relative;
}

.ns-home-featured-card::before {
	background: rgba(var(--color-sky-blue-rgb), 0.86);
	content: "";
	height: 4px;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
	z-index: 3;
}

.ns-home-featured-media {
	background: linear-gradient(180deg, var(--color-surface-muted), var(--color-surface-accent));
	display: block;
	min-height: 25rem;
	position: relative;
}

.ns-home-featured-empty {
	align-items: center;
	color: var(--color-muted-text);
	display: flex;
	height: 100%;
	justify-content: center;
	padding: 2rem;
	text-align: center;
}

.ns-home-featured-copy {
	display: grid;
	gap: 1rem;
	padding: 1.55rem;
}

.ns-home-featured-badge {
	align-items: center;
	border-radius: 999px;
	display: inline-flex;
	font-size: 0.86rem;
	font-weight: 700;
	justify-self: start;
	line-height: 1;
	margin: 0;
	padding: 0.5rem 0.8rem;
}

.ns-home-featured-badge--priority {
	background: rgba(196, 110, 39, 0.14);
	color: var(--color-primary-cta-active);
}

.ns-home-featured-badge--display {
	background: rgba(var(--color-sky-blue-rgb), 0.14);
	color: var(--color-navy);
}

.ns-home-featured-badge--available {
	background: rgba(29, 115, 70, 0.12);
	color: #16603b;
}

.ns-home-featured-badge--coming {
	background: rgba(116, 86, 174, 0.12);
	color: #5e3fa5;
}

.ns-home-featured-badge--pending {
	background: rgba(180, 97, 36, 0.14);
	color: #8a4718;
}

.ns-home-featured-badge--sold {
	background: rgba(95, 107, 122, 0.14);
	color: var(--color-muted-text);
}

.ns-home-featured-kicker {
	color: var(--color-label-text);
	font-size: 0.88rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin: 0;
	text-transform: uppercase;
}

.ns-home-featured-copy h3 a {
	color: inherit;
	text-decoration: none;
}

.ns-home-featured-specs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 0.9rem;
}

.ns-home-featured-specs span {
	color: var(--color-text);
	font-size: 0.95rem;
	font-weight: 600;
}

.ns-home-featured-price {
	color: var(--color-navy);
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 700;
	line-height: 1.05;
}

.ns-home-featured-actions,
.ns-home-final-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
}

.ns-home-final-card {
	display: grid;
	gap: 1rem;
	padding: 1.75rem;
	text-align: center;
}

.ns-home-final-card p {
	justify-self: center;
	max-width: 40rem;
}

.ns-home-final-actions {
	justify-content: center;
}

@media (max-width: 960px) {
	.ns-home-featured-card {
		grid-template-columns: 1fr;
	}

	.ns-home-path-grid,
	.ns-home-trust-grid,
	.ns-home-resource-grid {
		grid-template-columns: 1fr;
	}

	.ns-home-trust-card:nth-child(2),
	.ns-home-trust-card:nth-child(3) {
		margin-top: 0;
	}

	.ns-home-resources {
		grid-template-columns: 1fr;
	}

	.ns-home-resources .ns-home-section-header {
		border-right: 0;
		padding: 0;
		position: static;
	}

	.ns-home-resource-card {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.ns-homepage {
		padding: 0 0.8rem 3rem;
	}

	.ns-homepage-shell {
		gap: 1.2rem;
	}

	.ns-home-hero-copy,
	.ns-home-featured-copy,
	.ns-home-path-card,
	.ns-home-trust-card,
	.ns-home-resource-card,
	.ns-home-final-card {
		padding: 1.2rem;
	}

	.ns-home-hero h1 {
		font-size: clamp(2.35rem, 13vw, 3.35rem);
		max-width: none;
	}

	.ns-home-hero-shell {
		align-items: end;
	}

	.ns-home-hero-copy {
		margin-bottom: 1.1rem;
		padding: 0;
	}

	.ns-home-hero-shell {
		padding-inline: 0.95rem;
	}

	.ns-home-hero-actions,
	.ns-home-featured-actions,
	.ns-home-final-actions {
		flex-direction: column;
	}

	.ns-home-hero-actions .ns-button,
	.ns-home-featured-actions .ns-button,
	.ns-home-final-actions .ns-button,
	.ns-home-path-card .ns-button,
	.ns-home-resource-card .ns-button {
		width: 100%;
	}
}
