.hw-nrn {
	--nrn-blue: var(--primary, #33a6ff);
	--nrn-dark: var(--foreground, #151923);
	display: grid;
	grid-template-columns: minmax(0, 34%) minmax(0, 66%);
	width: 100%;
	min-height: 0;
	overflow: hidden;
	background: var(--background, #fff);
	color: var(--nrn-dark);
	font-family: inherit;
}

.hw-nrn *,
.hw-nrn *::before,
.hw-nrn *::after {
	box-sizing: border-box;
}

.hw-nrn__photo {
	position: relative;
	min-width: 0;
	min-height: 100%;
	overflow: hidden;
	clip-path: polygon(0 0, 100% 0, 94% 100%, 0 100%);
	background: #172333;
}

.hw-nrn__photo::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(to top, rgb(4 10 18 / .72), transparent 47%);
}

.hw-nrn__photo > img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 53% center;
	transition: transform .9s cubic-bezier(.2, .7, .3, 1);
}

.hw-nrn__photo:hover > img {
	transform: scale(1.035);
}

.hw-nrn__quote {
	position: absolute;
	z-index: 1;
	left: clamp(22px, 3vw, 54px);
	bottom: clamp(28px, 4vw, 64px);
	max-width: 235px;
	margin: 0;
	color: #fff;
	font-family: "Segoe Print", "Bradley Hand", Georgia, serif;
	font-size: clamp(17px, 1.55vw, 28px);
	font-style: italic;
	line-height: 1.35;
	text-wrap: balance;
	transform: rotate(-5deg);
	text-shadow: 0 2px 12px rgb(0 0 0 / .24);
}

.hw-nrn__quote::after {
	content: "";
	display: block;
	width: 90px;
	height: 3px;
	margin-top: 15px;
	border-radius: 999px;
	background: var(--nrn-blue);
	transform: rotate(-7deg);
}

.hw-nrn__content {
	display: flex;
	min-width: 0;
	flex-direction: column;
	padding: clamp(28px, 2.4vw, 44px) clamp(24px, 2.6vw, 48px) 28px clamp(28px, 2.8vw, 52px);
}

.hw-nrn__intro {
	margin-bottom: clamp(20px, 1.8vw, 32px);
}

.hw-nrn__title {
	margin: 0;
	color: var(--foreground);
	font-size: 1.875rem;
	font-weight: 700;
	letter-spacing: -.025em;
	line-height: 1.2;
}

@media (min-width: 768px) {
	.hw-nrn__title {
		font-size: 2.25rem;
		line-height: 1.11111;
	}
}

.hw-nrn__title span {
	display: block;
	white-space: nowrap;
}

.hw-nrn__lead {
	margin: 8px 0 0;
	color: var(--muted-foreground, #4b5563);
	font-size: 1rem;
	line-height: 1.5;
}

.hw-nrn__services {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	min-width: 0;
}

.hw-nrn__service {
	display: flex;
	min-width: 0;
	flex-direction: column;
	padding: 0 12px;
}

.hw-nrn__service:first-child {
	padding-left: 0;
}

.hw-nrn__service:last-child {
	padding-right: 0;
}

.hw-nrn__service-image {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 8px;
}

.hw-nrn__service-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
	margin-top: 8px;
	padding: 12px 8px 3px;
	border-right: 1px solid var(--border, #e2e8f0);
}

.hw-nrn__service:last-child .hw-nrn__service-body {
	border-right: 0;
}

.hw-nrn__service-body h3 {
	margin: 0;
	color: var(--nrn-dark);
	font-size: clamp(16px, 1.15vw, 20px);
	font-weight: 700;
	letter-spacing: -.03em;
	line-height: 1.15;
}

.hw-nrn__service-body p {
	margin: 8px 0 16px;
	color: var(--muted-foreground, #4b5563);
	font-size: clamp(13px, .85vw, 15px);
	line-height: 1.45;
}

.hw-nrn__service-body a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	align-self: flex-start;
	margin-top: auto;
	color: var(--nrn-blue);
	font-size: clamp(13px, .85vw, 15px);
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	transition: color .25s ease;
}

.hw-nrn__service-body a:hover {
	color: var(--secondary, #1a8cf0);
}

.hw-nrn__service-body a svg,
.hw-nrn__button svg {
	width: 20px;
	height: 20px;
	flex: none;
	transition: transform .25s ease;
}

.hw-nrn__service-body a:hover svg,
.hw-nrn__button:hover svg {
	transform: translateX(4px);
}

.hw-nrn__footer {
	display: flex;
	justify-content: center;
	margin-top: auto;
	padding-top: 24px;
}

.hw-nrn__button {
	display: inline-flex;
	min-width: 240px;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	gap: 15px;
	padding: 12px 28px;
	border-radius: 10px;
	background: var(--nrn-blue);
	color: var(--primary-foreground, #fff);
	font-size: clamp(15px, 1vw, 17px);
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	transition: background-color .25s ease, transform .25s ease;
}

.hw-nrn__button:hover {
	background: var(--secondary, #1a8cf0);
	color: var(--primary-foreground, #fff);
	transform: translateY(-2px);
}

.hw-nrn a:focus-visible {
	outline: 3px solid var(--nrn-blue);
	outline-offset: 4px;
}

@media (max-width: 1440px) {
	.hw-nrn__service {
		padding-right: 9px;
		padding-left: 9px;
	}
}

@media (max-width: 1199px) {
	.hw-nrn {
		grid-template-columns: minmax(0, 36%) minmax(0, 64%);
	}

	.hw-nrn__content {
		padding: 32px 26px 28px 30px;
	}

	.hw-nrn__title span:last-child {
		white-space: normal;
	}

	.hw-nrn__services {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 0;
	}

	.hw-nrn__service:nth-child(2) .hw-nrn__service-body {
		border-right: 0;
	}

	.hw-nrn__service:nth-child(3) {
		padding-left: 0;
	}

	.hw-nrn__service-image {
		aspect-ratio: 2 / 1;
	}

	.hw-nrn__service-body h3 {
		font-size: 18px;
	}

	.hw-nrn__service-body p {
		font-size: 14px;
	}
}

@media (max-width: 767px) {
	.hw-nrn {
		display: block;
		min-height: 0;
	}

	.hw-nrn__photo {
		height: clamp(200px, 40vw, 300px);
		clip-path: none;
	}

	.hw-nrn__photo > img {
		object-position: center 56%;
	}

	.hw-nrn__quote {
		max-width: 190px;
		font-size: 20px;
	}

	.hw-nrn__content {
		padding: 32px 20px 40px;
	}

	.hw-nrn__title span {
		white-space: normal;
	}

	.hw-nrn__footer {
		margin-top: 0;
	}
}

@media (max-width: 520px) {
	.hw-nrn__content {
		padding: 40px 20px 48px;
	}

	.hw-nrn__services {
		grid-template-columns: minmax(0, 1fr);
		gap: 26px;
	}

	.hw-nrn__service,
	.hw-nrn__service:first-child,
	.hw-nrn__service:nth-child(3),
	.hw-nrn__service:last-child {
		padding: 0;
	}

	.hw-nrn__service-image {
		aspect-ratio: 3 / 2;
	}

	.hw-nrn__service-body,
	.hw-nrn__service:nth-child(2) .hw-nrn__service-body {
		padding: 14px 0 0;
		border-right: 0;
	}

	.hw-nrn__service-body p {
		margin: 8px 0 12px;
	}

	.hw-nrn__button {
		width: 100%;
		min-width: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hw-nrn__photo > img,
	.hw-nrn__service-body a,
	.hw-nrn__service-body a svg,
	.hw-nrn__button,
	.hw-nrn__button svg {
		transition: none;
	}

	.hw-nrn__photo:hover > img,
	.hw-nrn__button:hover,
	.hw-nrn__button:hover svg,
	.hw-nrn__service-body a:hover svg {
		transform: none;
	}
}

/*
 * Home page section rhythm. This file only loads on the Home template, so these
 * override brand.css there and nowhere else: every section gets the same
 * vertical padding, 20% under the site default (4rem / 6rem), and the NRN
 * band's text panel matches it.
 */
.hw-sec { padding-block: 3.2rem; }
.hw-nrn__content { padding-top: 3.2rem; padding-bottom: 3.2rem; }

@media (min-width: 768px) {
	.hw-sec { padding-block: 4.8rem; }
	.hw-nrn__content { padding-top: 4.8rem; padding-bottom: 4.8rem; }
}
