.nm-home {
	overflow-x: clip;
	background: var(--wp--preset--color--studio-white);
	color: var(--wp--preset--color--deep-teal);
}

.nm-home-section {
	border-bottom: 1px solid var(--wp--preset--color--default-border);
}

.nm-home-section__inner {
	width: 100%;
	max-width: var(--wp--style--global--wide-size, 1280px);
	margin-right: auto;
	margin-left: auto;
	padding: clamp(3.5rem, 7vw, 7rem) var(--nm-page-gutter);
}

.nm-home-section__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--40);
	margin-bottom: clamp(2rem, 4vw, 2.5rem);
}

.nm-home-section__eyebrow,
.nm-technical-media__label,
.nm-project-card__number,
.nm-project-card__meta,
.nm-featured-project__meta,
.nm-featured-project__spec-label,
.nm-category-card__number,
.nm-category-card__count,
.nm-home-video__meta,
.nm-technical-media .wp-element-caption {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--technical-xs);
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.nm-home-section__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--workshop-teal);
	margin-bottom: var(--wp--preset--spacing--30);
}

.nm-home-section__eyebrow::before {
	content: "";
	width: 1.5rem;
	height: 1px;
	background: var(--wp--preset--color--soft-brass);
}

.nm-home-section__header .nm-home-section__eyebrow {
	margin-bottom: var(--wp--preset--spacing--30);
}

.nm-home-section__header h2,
.nm-featured-project h2,
.nm-home-video h2,
.nm-home-newsletter h2,
.nm-home-about h2 {
	margin-top: 0;
}

.nm-section-action,
.nm-project-card__action {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	min-height: 44px;
	color: var(--wp--preset--color--workshop-teal);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-decoration-line: underline;
	text-underline-offset: 0.22em;
	white-space: nowrap;
}

.nm-section-action::after,
.nm-project-card__action::after {
	content: "->";
	transition: transform var(--nm-transition-fast) var(--nm-ease-standard);
}

.nm-home-hero__grid,
.nm-featured-project__grid,
.nm-home-video__grid,
.nm-home-newsletter__grid,
.nm-home-about__grid {
	display: grid;
	align-items: center;
	gap: clamp(2rem, 5vw, 4.5rem);
}

.nm-home-hero__grid,
.nm-home-about__grid {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.nm-home-hero__content,
.nm-featured-project__content,
.nm-home-video__content,
.nm-home-about__content {
	min-width: 0;
}

.nm-home .wp-block-buttons,
.nm-home .wp-block-button,
.nm-home .wp-block-button__link {
	max-width: 100%;
}

.nm-home-hero h1 {
	max-width: 14ch;
	margin: 0 0 var(--wp--preset--spacing--50);
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(3rem, 6.4vw, 5.375rem);
	font-weight: 700;
	line-height: 0.98;
}

.nm-home-hero__copy {
	max-width: 48ch;
	margin-bottom: var(--wp--preset--spacing--60);
	color: var(--wp--preset--color--muted-text);
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.6;
}

.nm-home-hero__actions,
.nm-featured-project__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--30);
}

.nm-technical-media {
	position: relative;
	min-width: 0;
	margin: 0;
}

.nm-technical-media .wp-block-image {
	width: 100%;
	margin: 0;
}

.nm-technical-media img {
	width: 100%;
	border: 1px solid var(--wp--preset--color--default-border);
	border-radius: var(--nm-radius-media);
	background: var(--wp--preset--color--subtle-surface);
	transition: transform var(--nm-transition-base) var(--nm-ease-standard),
		border-color var(--nm-transition-base) var(--nm-ease-standard);
}

.nm-technical-media__label {
	position: absolute;
	top: var(--wp--preset--spacing--40);
	left: var(--wp--preset--spacing--40);
	z-index: 1;
	margin: 0;
	border-radius: 4px;
	background: color-mix(in srgb, var(--wp--preset--color--studio-white) 78%, transparent);
	color: var(--wp--preset--color--workshop-teal);
	padding: 0.1875rem 0.4375rem;
}

.nm-technical-media .wp-element-caption {
	margin-top: var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--muted-text);
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.nm-technical-media__material {
	position: absolute;
	right: var(--wp--preset--spacing--40);
	bottom: var(--wp--preset--spacing--40);
	z-index: 1;
	margin: 0;
	color: var(--wp--preset--color--muted-text);
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--technical-xs);
	letter-spacing: 0.06em;
	text-align: right;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.nm-home-hero__media .nm-technical-media__material,
.nm-home-hero__media .nm-dimension-line {
	bottom: calc(var(--wp--preset--spacing--40) + 2.5rem);
}

.nm-dimension-line {
	position: absolute;
	bottom: var(--wp--preset--spacing--40);
	left: var(--wp--preset--spacing--40);
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	margin: 0;
	color: var(--wp--preset--color--soft-brass);
}

.nm-dimension-line::before,
.nm-dimension-line::after {
	content: "";
	width: 3.4rem;
	height: 1px;
	background: currentColor;
}

.nm-dimension-line span {
	color: var(--wp--preset--color--muted-text);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.625rem;
	letter-spacing: 0.04em;
}

.nm-featured-project__grid {
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}

.nm-featured-project__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--30);
	margin-bottom: var(--wp--preset--spacing--40);
	color: var(--wp--preset--color--muted-text);
}

.nm-featured-project__category,
.nm-project-card__category {
	color: var(--wp--preset--color--signal-red);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.nm-featured-project__description {
	max-width: 46ch;
	color: var(--wp--preset--color--muted-text);
	line-height: 1.6;
}

.nm-featured-project__specs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--60);
	margin: var(--wp--preset--spacing--60) 0;
	border-top: 1px solid var(--wp--preset--color--default-border);
	padding-top: var(--wp--preset--spacing--50);
}

.nm-featured-project__specs .is-wide {
	grid-column: 1 / -1;
}

.nm-featured-project__spec-label {
	display: block;
	margin-bottom: var(--wp--preset--spacing--20);
	color: var(--wp--preset--color--muted-text);
}

.nm-featured-project__spec-value {
	font-weight: 600;
}

.nm-home-categories {
	background: var(--wp--preset--color--subtle-surface);
}

.nm-home-categories__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
	grid-auto-rows: 1fr;
	gap: var(--wp--preset--spacing--40);
}

.nm-category-card {
	min-height: 142px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	border: 1px solid var(--wp--preset--color--default-border);
	border-radius: var(--nm-radius-card);
	background: var(--wp--preset--color--white-surface);
	color: var(--wp--preset--color--deep-teal);
	padding: var(--wp--preset--spacing--50);
	text-decoration: none;
	transition: border-color var(--nm-transition-fast) var(--nm-ease-standard),
		background-color var(--nm-transition-fast) var(--nm-ease-standard);
}

.nm-category-card--featured {
	grid-row: span 2;
	min-height: 300px;
	background: var(--wp--preset--color--deep-teal);
	color: var(--wp--preset--color--studio-white);
	padding: var(--wp--preset--spacing--60);
}

.nm-category-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--30);
	margin-bottom: var(--wp--preset--spacing--50);
}

.nm-category-card__number {
	color: var(--wp--preset--color--workshop-teal);
}

.nm-category-card--featured .nm-category-card__number {
	color: var(--wp--preset--color--soft-brass);
}

.nm-category-card__count {
	color: var(--wp--preset--color--muted-text);
}

.nm-category-card--featured .nm-category-card__count,
.nm-category-card--featured p {
	color: color-mix(in srgb, var(--wp--preset--color--studio-white) 76%, transparent);
}

.nm-category-card h3 {
	margin: 0 0 var(--wp--preset--spacing--20);
}

.nm-category-card p {
	margin: 0;
	color: var(--wp--preset--color--muted-text);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.55;
}

.nm-project-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.75rem 1.5rem;
}

.nm-project-card {
	min-width: 0;
	display: flex;
	flex-direction: column;
	color: var(--wp--preset--color--deep-teal);
	text-decoration: none;
}

.nm-project-card__media {
	position: relative;
	margin-bottom: var(--wp--preset--spacing--40);
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--default-border);
	border-radius: var(--nm-radius-card);
	background: var(--wp--preset--color--subtle-surface);
}

.nm-project-card__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 0;
	transition: transform var(--nm-transition-base) var(--nm-ease-standard);
}

.nm-project-card__number {
	position: absolute;
	top: var(--wp--preset--spacing--30);
	left: var(--wp--preset--spacing--30);
	border-radius: 4px;
	background: color-mix(in srgb, var(--wp--preset--color--studio-white) 78%, transparent);
	color: var(--wp--preset--color--workshop-teal);
	padding: 0.125rem 0.375rem;
}

.nm-project-card__meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--30);
	margin-bottom: var(--wp--preset--spacing--20);
}

.nm-project-card__meta {
	color: var(--wp--preset--color--muted-text);
	text-transform: none;
}

.nm-project-card__title {
	margin: 0 0 var(--wp--preset--spacing--20);
}

.nm-project-card__description {
	margin: 0 0 var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--muted-text);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.55;
}

.nm-project-card__action {
	margin-top: auto;
	color: var(--wp--preset--color--workshop-teal);
}

.nm-home-video {
	border-bottom: 0;
	background: var(--wp--preset--color--deep-teal);
	color: var(--wp--preset--color--studio-white);
}

.nm-home-video .nm-home-section__eyebrow,
.nm-home-video__meta {
	color: var(--wp--preset--color--soft-brass);
}

.nm-home-video h2,
.nm-home-video p {
	color: inherit;
}

.nm-home-video__grid {
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}

.nm-home-video__thumbnail {
	position: relative;
	overflow: hidden;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--soft-brass) 28%, transparent);
	border-radius: var(--nm-radius-media);
	background: var(--wp--preset--color--deep-teal);
}

.nm-home-video__thumbnail img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 0;
}

.nm-home-video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	width: 4.625rem;
	height: 4.625rem;
	place-items: center;
	border-radius: 50%;
	background: var(--wp--preset--color--signal-red);
	color: var(--wp--preset--color--white-surface);
	transform: translate(-50%, -50%);
	transition: background-color var(--nm-transition-fast) var(--nm-ease-standard);
}

.nm-home-video__play::before {
	content: "";
	display: block;
	width: 0;
	height: 0;
	margin-left: 0.25rem;
	border-top: 0.75rem solid transparent;
	border-bottom: 0.75rem solid transparent;
	border-left: 1.1rem solid currentColor;
}

.nm-home-video__duration {
	position: absolute;
	right: var(--wp--preset--spacing--30);
	bottom: var(--wp--preset--spacing--30);
	border-radius: 4px;
	background: color-mix(in srgb, var(--wp--preset--color--deep-teal) 72%, transparent);
	color: var(--wp--preset--color--studio-white);
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--technical-xs);
	padding: 0.1875rem 0.5rem;
}

.nm-home-video__description {
	color: color-mix(in srgb, var(--wp--preset--color--studio-white) 76%, transparent);
	line-height: 1.6;
}

.nm-home-newsletter {
	background: var(--wp--preset--color--subtle-surface);
}

.nm-home-newsletter__grid {
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.nm-newsletter-shell {
	border: 1px solid var(--wp--preset--color--default-border);
	border-radius: var(--nm-radius-card);
	background: var(--wp--preset--color--white-surface);
	padding: var(--wp--preset--spacing--50);
}

.nm-newsletter-shell__form {
	margin: 0;
}

.nm-newsletter-shell .wpcf7-form {
	margin: 0;
}

.nm-newsletter-shell .wpcf7-form p {
	margin: 0 0 var(--wp--preset--spacing--30);
}

.nm-newsletter-shell .wpcf7-form p:last-child {
	margin-bottom: 0;
}

.nm-newsletter-shell button,
.nm-newsletter-shell input[type="submit"] {
	flex: 0 0 auto;
	background: var(--wp--preset--color--signal-red);
	color: var(--wp--preset--color--white-surface);
	padding: 0.625rem 1.25rem;
}

.nm-newsletter-shell__status {
	margin-top: var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--muted-text);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
}

.nm-home-about__media img {
	aspect-ratio: 5 / 4;
	object-fit: cover;
}

@media (hover: hover) and (pointer: fine) {
	.nm-section-action:hover::after,
	.nm-project-card:hover .nm-project-card__action::after {
		transform: translateX(3px);
	}

	.nm-technical-media:hover img,
	.nm-project-card:hover .nm-project-card__media img {
		transform: scale(1.015);
	}

	.nm-category-card:hover,
	.nm-project-card:hover .nm-project-card__media,
	.nm-technical-media:hover img {
		border-color: var(--wp--preset--color--workshop-teal);
	}

	.nm-home-video__thumbnail:hover .nm-home-video__play {
		background: var(--wp--preset--color--primary-hover);
	}
}

@media (max-width: 960px) {
	.nm-home-hero__grid,
	.nm-featured-project__grid,
	.nm-home-video__grid,
	.nm-home-newsletter__grid,
	.nm-home-about__grid {
		grid-template-columns: 1fr;
	}

	.nm-home-categories__grid,
	.nm-project-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nm-category-card--featured {
		grid-row: auto;
	}
}

@media (max-width: 560px) {
	.nm-home-section__header {
		display: block;
	}

	.nm-home-section__header .nm-section-action {
		margin-top: var(--wp--preset--spacing--30);
	}

	.nm-home-categories__grid,
	.nm-project-grid {
		grid-template-columns: 1fr;
	}

	.nm-featured-project__specs {
		grid-template-columns: 1fr;
	}

	.nm-featured-project__specs .is-wide {
		grid-column: auto;
	}

	.nm-newsletter-shell button,
	.nm-newsletter-shell input[type="submit"] {
		width: 100%;
	}

	.nm-dimension-line,
	.nm-technical-media__material {
		position: static;
		margin-top: var(--wp--preset--spacing--20);
	}

	.nm-technical-media__material {
		text-align: left;
	}

	.nm-dimension-line::before,
	.nm-dimension-line::after {
		width: 2.25rem;
	}
}

@media (max-width: 390px) {
	.nm-home-hero h1 {
		font-size: clamp(2.75rem, 13vw, 3.25rem);
	}
}

@media (prefers-reduced-motion: reduce) {
	.nm-section-action::after,
	.nm-project-card__action::after,
	.nm-technical-media img,
	.nm-project-card__media img {
		transition-duration: 0.01ms !important;
		transform: none !important;
	}
}
