/**
 * Header + mega menu (Figma "NM Marketing Navbar").
 * Desktop values are taken 1:1 from the 1440px design frames.
 * States:
 *  - Transparent: pages with a hero (body.has-intro) while the page is at the top.
 *  - Solid: after scrolling (#main-header.scrolled), on pages without a hero, or with the mobile menu open.
 */

@font-face {
	font-family: "Napkin Avenir";
	src: url("../fonts/avenir/AvenirLTStd-Roman.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

#main-header.nm-on {
	--nm-grad: linear-gradient(90deg, #7f63e1 0%, #ee2a86 100%);
	--nm-ink: #5b5c64;
	--nm-text: #5b5c64;
	--nm-link: #5b5c64;
	--nm-line: #e4e4e4;
	--nm-shot: #d9d9d9;
	--nm-font: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
	--nm-body: "Napkin Avenir", "Avenir LT W01_45 Book1475508", Avenir, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Bar ---------- */
#main-header.nm-on,
#main-header.nm-on.scrolled,
.has-no-intro #main-header.nm-on,
.menu-opened #main-header.nm-on {
	display: block !important;
	min-height: 0;
	height: auto;
	padding: 0 !important;
	margin: 0;
	border: 0;
	overflow: visible;
	z-index: 1030;
	background: #fff !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

body.has-intro:not(.menu-opened) #main-header.nm-on:not(.scrolled) {
	background: transparent !important;
	box-shadow: none;
}

#main-header.nm-on .header-row1 { display: none !important; }

#main-header.nm-on .nm-bar {
	position: relative;
	display: flex;
	align-items: flex-start;
	width: 100%;
	max-width: 1328px;
	height: 76px;
	margin: 0 auto;
	padding: 0;
}

#main-header.nm-on .nm-bar::before,
#main-header.nm-on .nm-bar::after { display: none; }

/* ---------- Logo ---------- */
#main-header.nm-on #logo {
	position: relative;
	flex: 0 0 auto;
	width: 235px;
	height: 49px;
	margin: 4.5px 0 0 -3px;
	padding: 0;
	float: none;
}

#main-header.nm-on #logo img {
	display: block;
	max-width: none;
	height: auto;
}

#main-header.nm-on #logo .nm-logo--white { width: 235px; }

#main-header.nm-on #logo .nm-logo--color {
	position: absolute;
	top: -5.5px;
	left: 1px;
	width: 239px;
}

#main-header.nm-on #logo .nm-logo--white { display: none; }

body.has-intro:not(.menu-opened) #main-header.nm-on:not(.scrolled) #logo .nm-logo--white { display: block; }
body.has-intro:not(.menu-opened) #main-header.nm-on:not(.scrolled) #logo .nm-logo--color { display: none; }

/* ---------- Top level ---------- */
.nm-nav { margin-left: auto; }

.nm-menu {
	display: flex;
	align-items: flex-start;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nm-item { position: static; }

.nm-top {
	position: relative;
	z-index: 8;
	display: flex;
	align-items: center;
	height: 49px;
	margin-top: 14px;
	padding: 0 15px 2px;
	color: #616161;
	font-family: var(--nm-font);
	font-size: 19px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
}

body.has-intro:not(.menu-opened) #main-header.nm-on:not(.scrolled) .nm-top { color: #fff; }

.nm-top span {
	position: relative;
	z-index: 1;
	display: block;
	transition: transform 0.15s ease;
}

/* Tab behind the active item. */
.nm-top::before {
	content: "";
	position: absolute;
	top: 0;
	right: -1.5px;
	bottom: -9px;
	left: -1.5px;
	border-radius: 8px 8px 0 0;
	background: #fff;
	opacity: 0;
}

.nm-top:hover,
.nm-top:focus { text-decoration: none; }

.nm-item:not(.nm-plain):hover > .nm-top,
.nm-item:not(.nm-plain):has(:focus-visible) > .nm-top,
body.has-intro:not(.menu-opened) #main-header.nm-on:not(.scrolled) .nm-item:not(.nm-plain):hover > .nm-top,
body.has-intro:not(.menu-opened) #main-header.nm-on:not(.scrolled) .nm-item:not(.nm-plain):has(:focus-visible) > .nm-top {
	color: var(--nm-ink);
}

.nm-item:not(.nm-plain):hover > .nm-top span,
.nm-item:not(.nm-plain):has(:focus-visible) > .nm-top span {
	transform: translateY(1px) scale(1.0526);
	font-weight: 600;
}

/* Reserves the semibold width so the bar does not shift on hover. */
.nm-top span::after {
	content: attr(data-label);
	display: block;
	height: 0;
	overflow: hidden;
	visibility: hidden;
	font-weight: 600;
}

.nm-item:not(.nm-plain):hover > .nm-top::before,
.nm-item:not(.nm-plain):has(:focus-visible) > .nm-top::before { opacity: 1; }

/* Solid header: the tab continues the panel gradient and the label turns white. */
#main-header.nm-on.scrolled .nm-item:not(.nm-plain):hover > .nm-top,
#main-header.nm-on.scrolled .nm-item:not(.nm-plain):has(:focus-visible) > .nm-top,
.has-no-intro #main-header.nm-on .nm-item:not(.nm-plain):hover > .nm-top,
.has-no-intro #main-header.nm-on .nm-item:not(.nm-plain):has(:focus-visible) > .nm-top { color: #fff; }

#main-header.nm-on.scrolled .nm-top::before,
.has-no-intro #main-header.nm-on .nm-top::before {
	background: var(--nm-grad) no-repeat;
	background-size: 1324px 100%;
	background-position: var(--nm-tab-x, 0) 0;
}

/* Plain links (Let's Connect): pink text, no tab. */
#main-header.nm-on .nm-plain .nm-top:hover,
#main-header.nm-on .nm-plain .nm-top:focus-visible,
body.has-intro:not(.menu-opened) #main-header.nm-on:not(.scrolled) .nm-plain .nm-top:hover {
	color: #e23e7e;
}

.nm-plain .nm-top:hover span { font-weight: 600; }

.nm-acc { display: none; }

/* CTA */
.nm-cta { margin: 15px 2px 0 13px; }

.nm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 45px;
	padding: 0 16px;
	border: 0;
	border-radius: 999px;
	background: var(--nm-grad);
	color: #fff !important;
	-webkit-text-fill-color: #fff;
	font-family: var(--nm-font);
	font-size: 16.5px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0;
	text-transform: uppercase;
	text-decoration: none !important;
	white-space: nowrap;
	transition: filter 0.2s ease, box-shadow 0.2s ease;
}

.nm-btn:hover,
.nm-btn:focus { filter: brightness(1.06); box-shadow: 0 4px 12px rgba(127, 99, 225, 0.3); }

.nm-cta .nm-btn {
	height: 43px;
	padding: 0 22px 0 22px;
	font-size: 17.2px;
	font-weight: 700;
}

/* ---------- Panel ---------- */
.nm-mega {
	position: absolute;
	top: 63px;
	left: -2px;
	z-index: 5;
	display: none;
	width: 1324px;
	padding: 33px 25px 21px 46px;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
	text-align: left;
}

.nm-mega::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 8px;
	border-radius: 10px 10px 0 0;
	background: var(--nm-grad);
}

.nm-item:hover > .nm-mega,
.nm-item:has(:focus-visible) > .nm-mega { display: block; }

/* While the mouse is on the menu, only the hovered item is active. */
@media (min-width: 992px) {
	.nm-menu:hover > .nm-item:not(:hover) > .nm-mega { display: none; }
	.nm-menu:hover > .nm-item:not(:hover) > .nm-top::before { opacity: 0; }
}

/* Reset theme typography inside the panel. */
#main-header .nm-mega h3,
#main-header .nm-mega p,
#main-header .nm-mega a:not(.nm-btn) {
	letter-spacing: 0;
	text-align: left;
	text-transform: none;
}

#main-header .nm-mega .nm-kicker {
	margin: 0;
	color: var(--nm-ink);
	font-family: var(--nm-font);
	font-size: 20.5px;
	font-weight: 500;
	line-height: 26px;
	text-transform: uppercase;
}

#main-header .nm-mega h3 {
	margin: 0;
	color: var(--nm-ink);
	font-family: var(--nm-font);
	font-size: 22.5px;
	font-weight: 400;
	line-height: 28px;
}

#main-header .nm-mega p {
	margin: 0;
	color: var(--nm-text);
	font-family: var(--nm-body);
	font-size: 16.25px;
	font-weight: 400;
	line-height: 22.75px;
}

/* Columns grid (About, Services, Our Work) */
.nm-cols {
	display: grid;
	align-items: stretch;
	margin-top: 14px;
}

.nm-services { grid-template-columns: 358px 398px 1fr; }

.nm-col {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.nm-col-1 { padding-right: 23px; }
.nm-col-2 { padding: 0 39px 0 23px; }

/* Vertical dividers stop above the "more" links. */
.nm-col-2::before,
.nm-services .nm-col-2::after,
.nm-work .nm-promo::before,
.nm-slider::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	bottom: 34px;
	width: 1px;
	background: var(--nm-line);
}

.nm-services .nm-col-2::after { left: auto; right: 0; }

.nm-intro { margin-top: 12px; }
#main-header .nm-intro h3 + p { margin-top: 9px; }
#main-header .nm-intro p { max-width: 300px; }

.nm-links {
	display: grid;
	row-gap: 24.67px;
	margin-top: 11px;
}

.nm-intro + .nm-links { margin-top: 17px; }

#main-header .nm-links a {
	display: flex;
	align-items: center;
	min-height: 39px;
	color: var(--nm-link);
	font-family: var(--nm-font);
	font-size: 14.25px;
	font-weight: 400;
	line-height: 18px;
	text-decoration: none;
}

.nm-links a > span:not(.nm-chev) { flex: 1 1 auto; padding: 0 12px 0 18px; }

.nm-ico {
	display: block;
	flex: 0 0 39px;
	width: 39px;
	height: 39px;
	object-fit: contain;
	fill: none;
	stroke: #ea6aa3;
	stroke-width: 1.4;
	stroke-linejoin: round;
	stroke-linecap: round;
}

.nm-chev {
	flex: 0 0 auto;
	color: var(--nm-link);
	font-family: var(--nm-font);
	font-size: 16px;
	line-height: 1;
}

#main-header .nm-links a:hover,
#main-header .nm-links a:focus { color: #e23e7e; }
#main-header .nm-links a:hover .nm-chev { color: #e23e7e; }

#main-header .nm-more {
	display: inline-block;
	align-self: flex-start;
	margin-top: auto;
	padding-top: 25px;
	color: var(--nm-text);
	font-family: var(--nm-font);
	font-size: 19px;
	font-weight: 400;
	line-height: 23px;
	text-decoration: none;
}

#main-header .nm-more:hover,
#main-header .nm-more:focus { color: #e23e7e; }

/* Promo column */
.nm-promo {
	position: relative;
	display: grid;
	grid-template-columns: 260px 200px;
	grid-template-rows: auto auto 1fr;
	column-gap: 14px;
	align-self: start;
	min-height: 258px;
	padding-left: 23px;
}

.nm-promo .nm-shot {
	grid-column: 2;
	grid-row: 1 / 4;
	width: 200px;
	height: 273px;
	margin-top: -15px;
	background: var(--nm-shot);
	object-fit: cover;
}

#main-header .nm-promo h3 {
	grid-column: 1;
	font-size: 22.75px;
	font-weight: 500;
	text-transform: uppercase;
}

#main-header .nm-promo p { grid-column: 1; margin-top: 11px; }
#main-header .nm-promo h3 { margin-top: 2px; }
#main-header .nm-promo p a { color: inherit; text-decoration: none; }
#main-header .nm-promo p a:hover { color: #e23e7e; }

.nm-promo .nm-btn {
	grid-column: 1;
	grid-row: 3;
	justify-self: start;
	align-self: end;
	margin: 20px 0 1px;
}

/* Our Work */
.nm-mega--projects { padding-top: 32px; padding-bottom: 23px; }
.nm-mega--projects .nm-cols { margin-top: 0; }
.nm-work { grid-template-columns: 360px 519px 1fr; }
.nm-work .nm-col-1 { padding-right: 26px; }

.nm-slider {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 0 24px 0 28px;
}

.nm-work .nm-col-2::before,
.nm-work .nm-promo::before,
.nm-slider::before { top: 40px; bottom: 37px; }
#main-header .nm-slider .nm-more { padding-top: 21px; }

.nm-work .nm-intro { margin-top: 16px; }
#main-header .nm-work .nm-intro h3 + p { margin-top: 10px; }
.nm-work .nm-intro + .nm-links { margin-top: 27px; }

.nm-slides { display: grid; overflow: hidden; }

/* Slides are stacked in the same cell and cross-fade. */
.nm-slide {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}

.nm-slide.is-on {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.6s ease, visibility 0s linear 0s;
}

.nm-shot-wide {
	cursor: grab;
	touch-action: pan-y;
	-webkit-user-select: none;
	user-select: none;
	-webkit-user-drag: none;
	transition: transform 0.25s ease;
}

.nm-shot-wide.is-dragging { cursor: grabbing; transition: none; }

@media (prefers-reduced-motion: reduce) {
	.nm-slide,
	.nm-slide.is-on { transition: none; }
}


.nm-feature { display: block; margin-top: 15px; text-decoration: none !important; }
#main-header .nm-feature strong { transition: color .2s; }
#main-header .nm-feature:hover strong,
#main-header .nm-feature:focus-visible strong { color: #e23e7e; }

.nm-feature strong {
	display: block;
	color: var(--nm-ink);
	font-family: var(--nm-font);
	font-size: 22.5px;
	font-weight: 400;
	line-height: 28px;
}

.nm-feature span {
	display: block;
	margin-top: 8px;
	color: var(--nm-text);
	font-family: var(--nm-body);
	font-size: 16.25px;
	line-height: 22.75px;
}

.nm-shot-wide {
	display: block;
	width: 467px;
	height: 202px;
	margin-top: 17px;
	background: var(--nm-shot);
	object-fit: cover;
}

.nm-dots {
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	gap: 8.3px;
	margin-top: 16px;
}

.nm-dots button {
	height: 13px;
	padding: 0;
	border: 1.5px solid #ebebeb;
	border-radius: 99px;
	background: #fff;
	cursor: pointer;
}

.nm-dots button.is-on { border-color: transparent; background: var(--nm-grad); }

.nm-work .nm-promo {
	align-self: stretch;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 0 29px 0 23px;
}

.nm-work .nm-promo h3 { order: 1; }
.nm-work .nm-promo p { order: 2; margin-top: 10px; }

.nm-work .nm-promo .nm-shot {
	order: 3;
	width: 324px;
	height: 120px;
	margin: 19px 0 0;
}

.nm-work .nm-promo .nm-btn { order: 4; align-self: flex-start; margin-top: 24px; }

/* Resources (cards) */
.nm-mega--cards { padding: 37px 44px 19px 47px; }

.nm-cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: auto;
	column-gap: 25.5px;
	margin-top: 14px;
}

/* Subgrid keeps title, text, image and button on the same rows across all cards. */
.nm-cards article {
	display: grid;
	grid-row: span 4;
	grid-template-rows: subgrid;
	row-gap: 0;
	align-items: start;
	justify-items: start;
}

.nm-cards article > h3 { grid-row: 1; }
.nm-cards article > p { grid-row: 2; }
.nm-cards article > .nm-shot { grid-row: 3; }
.nm-cards article > .nm-btn { grid-row: 4; }

#main-header .nm-cards h3 a { color: inherit; text-decoration: none; }
#main-header .nm-cards h3 a:hover { color: #e23e7e; }
#main-header .nm-cards p { margin-top: 11px; }

.nm-cards .nm-shot {
	width: 100%;
	height: 121px;
	margin-top: 12.5px;
	background: var(--nm-shot);
	object-fit: cover;
}

/* Preserve complete card artwork and let transparent images use the panel background. */
.nm-cards img.nm-shot {
	background: transparent;
	object-fit: contain;
	object-position: center;
}

/* Per-image fit selected in the mega-menu fields. */
#main-header img.nm-shot.nm-shot--cover { object-fit: cover; }
#main-header img.nm-shot.nm-shot--contain { object-fit: contain; }

.nm-cards .nm-btn { margin-top: 23px; padding: 0 19px; }

.nm-card-footers {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	column-gap: 25.5px;
}

@media (min-width: 992px) {
	.nm-cards article,
	.nm-cards .nm-card-promo {
		justify-items: center;
		text-align: center;
	}

	#main-header .nm-mega--cards .nm-cards article > h3,
	#main-header .nm-mega--cards .nm-cards article > p,
	#main-header .nm-mega--cards .nm-card-promo > h3,
	#main-header .nm-mega--cards .nm-card-promo > p { text-align: center; }

	.nm-card-footers > div { text-align: center; }
}

#main-header .nm-mega--cards .nm-card-footers .nm-more { padding-top: 20px; }

/* Industries: cards with a promo as the last column, text links instead of buttons. */
.nm-cards--promo { margin-top: 0; }
#main-header .nm-mega .nm-cards--promo > .nm-kicker { grid-column: 1 / 4; grid-row: 1; margin: 0 0 14px; }
.nm-cards--promo article { grid-row: 2 / span 4; }
.nm-cards--promo .nm-shot { height: 142px; }

.nm-card-promo {
	display: grid;
	grid-column: 4;
	grid-row: 1 / span 5;
	grid-template-rows: subgrid;
	align-items: start;
	justify-items: start;
}

#main-header .nm-card-promo h3 {
	grid-row: 1 / span 2;
	width: calc(100% + 24px);
	margin: -3px 0 0;
	font-size: 22.75px;
	font-weight: 500;
	line-height: 27px;
	text-transform: uppercase;
}

#main-header .nm-card-promo p { grid-row: 3; margin-top: 9px; }
.nm-card-promo .nm-shot { grid-row: 4; }
.nm-card-promo .nm-btn { grid-row: 5; margin-top: 25px; padding: 0 19px; }

#main-header .nm-cards .nm-card-link { margin: 0; padding-top: 16px; }
#main-header .nm-mega--cards .nm-cards--promo + .nm-card-footers .nm-more { padding-top: 7px; }

/* Focus: no ring on mouse click, brand ring for keyboard users only. */
#main-header.nm-on a:focus,
#main-header.nm-on button:focus { outline: none; box-shadow: none; }
#main-header.nm-on .nm-btn:focus:not(:focus-visible) { box-shadow: none; filter: none; }
#main-header.nm-on .nm-top:focus-visible,
#main-header.nm-on .nm-btn:focus-visible,
#main-header.nm-on .nm-links a:focus-visible,
#main-header.nm-on .nm-more:focus-visible,
#main-header.nm-on .nm-cards h3 a:focus-visible,
#main-header.nm-on .nm-dots button:focus-visible,
#main-header.nm-on .nm-acc:focus-visible,
#main-header.nm-on .nm-burger:focus-visible {
	outline: 2px solid #7f63e1;
	outline-offset: 2px;
}

.nm-burger {
	display: none;
	width: 44px;
	height: 44px;
	margin: 16px 0 0 auto;
	padding: 10px;
	border: 0;
	background: transparent;
}

.nm-burger span:not(.sr-only) {
	display: block;
	height: 2px;
	margin: 5px 0;
	border-radius: 2px;
	background: #2a2a2a;
	transition: transform 0.15s linear, opacity 0.15s linear;
}

body.has-intro:not(.menu-opened) #main-header.nm-on:not(.scrolled) .nm-burger span:not(.sr-only) { background: #fff; }

#main-header.nm-open .nm-burger span:nth-child(2) { transform: translateY(7px) rotate(45deg); }
#main-header.nm-open .nm-burger span:nth-child(3) { opacity: 0; }
#main-header.nm-open .nm-burger span:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Narrower desktops ---------- */
@media (max-width: 1399px) {
	#main-header.nm-on .nm-bar { max-width: none; padding: 0 24px; }
	.nm-mega { left: 22px; right: 22px; width: auto; }
	#main-header.nm-on.scrolled .nm-top::before,
	.has-no-intro #main-header.nm-on .nm-top::before { background-size: calc(100vw - 44px) 100%; }
	.nm-services { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1.3fr); }
	.nm-work { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.1fr); }
	.nm-promo { grid-template-columns: minmax(0, 1fr) minmax(120px, 0.75fr); }
	.nm-promo .nm-shot { width: 100%; }
	.nm-shot-wide, .nm-work .nm-promo .nm-shot { width: 100%; }
}

@media (max-width: 1239px) {
	#main-header.nm-on #logo { width: 190px; height: 40px; margin-top: 10px; }
	#main-header.nm-on #logo .nm-logo--white { width: 190px; }
	#main-header.nm-on #logo .nm-logo--color { width: 193px; top: -4.5px; }
	.nm-top { padding: 0 9px 5px; font-size: 16px; }
	.nm-cta { margin-left: 8px; }
	.nm-cta .nm-btn { padding: 0 16px; font-size: 15px; }
	.nm-mega { padding: 28px 22px 20px 30px; }
	#main-header .nm-mega h3, #main-header .nm-promo h3 { font-size: 20px; line-height: 26px; }
	#main-header .nm-mega .nm-kicker { font-size: 18px; }
	.nm-promo { grid-template-columns: minmax(0, 1fr); }
	.nm-promo .nm-shot { display: none; }
	.nm-work .nm-promo .nm-shot { display: block; }
}

/* ---------- Mobile / tablet ---------- */
@media (max-width: 991px) {
	#main-header.nm-on .nm-bar { height: 76px; padding: 0 20px; align-items: flex-start; }
	#main-header.nm-on #logo { width: 170px; height: 35px; margin: 20px 0 0 -2px; }
	#main-header.nm-on #logo .nm-logo--white { width: 170px; }
	#main-header.nm-on #logo .nm-logo--color { width: 173px; top: -4px; left: 1px; }

	.nm-burger { display: block; }

	.nm-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		max-height: calc(100vh - 76px);
		margin: 0;
		overflow: auto;
		background: #fff;
		box-shadow: 0 16px 40px rgba(20, 16, 40, 0.12);
	}

	#main-header.nm-open .nm-nav { display: block; }

	.nm-menu { flex-direction: column; align-items: stretch; padding: 6px 0 20px; }

	.nm-item {
		display: grid;
		grid-template-columns: 1fr 52px;
		border-top: 1px solid #f0f0f0;
	}

	.nm-plain { grid-template-columns: 1fr; }

	.nm-top,
	body.has-intro:not(.menu-opened) #main-header.nm-on:not(.scrolled) .nm-top {
		height: auto;
		margin: 0;
		padding: 17px 8px 17px 20px;
		color: var(--nm-ink);
		font-size: 16px;
	}

	.nm-top::before { display: none; }

	.nm-item:not(.nm-plain):hover > .nm-top span,
	.nm-item:not(.nm-plain):has(:focus-visible) > .nm-top span { transform: none; font-weight: 400; }

	#main-header.nm-on.scrolled .nm-item:not(.nm-plain):hover > .nm-top,
	.has-no-intro #main-header.nm-on .nm-item:not(.nm-plain):hover > .nm-top,
	.nm-item:not(.nm-plain):hover > .nm-top { color: var(--nm-ink); }

	.nm-item.is-open > .nm-top,
	#main-header.nm-on.scrolled .nm-item.is-open > .nm-top { color: #e23e7e; }

	.nm-item:hover > .nm-mega,
	.nm-item:has(:focus-visible) > .nm-mega { display: none; }
	.nm-item.is-open > .nm-mega { display: block; }

	.nm-acc { position: relative; display: block; border: 0; background: transparent; }

	.nm-acc::before,
	.nm-acc::after {
		content: "";
		position: absolute;
		top: 50%;
		left: 18px;
		width: 14px;
		height: 2px;
		background: var(--nm-ink);
	}

	.nm-acc::after { transform: rotate(90deg); transition: transform 0.15s ease; }
	.nm-item.is-open .nm-acc::after { transform: rotate(0); }

	.nm-mega {
		position: static;
		grid-column: 1 / -1;
		width: auto;
		padding: 4px 20px 22px;
		border-radius: 0;
		box-shadow: none;
	}

	.nm-mega::before { display: none; }

	.nm-mega--cards { padding: 4px 20px 22px; }

	.nm-cols,
	.nm-services,
	.nm-work,
	.nm-cards { grid-template-columns: 1fr; row-gap: 26px; margin-top: 12px; }

	.nm-col-1,
	.nm-col-2,
	.nm-slider,
	.nm-promo,
	.nm-work .nm-promo { padding: 0; }

	.nm-col-2::before,
	.nm-services .nm-col-2::after,
	.nm-work .nm-promo::before,
	.nm-slider::before { display: none; }

	#main-header .nm-more { margin-top: 0; padding-top: 16px; }

	.nm-links { row-gap: 10px; }

	.nm-promo {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		padding-top: 22px;
		border-top: 1px solid var(--nm-line);
	}

	/* Room between the divider and the promo heading (Our Work included). */
	#main-header .nm-mega .nm-promo { padding-top: 26px; }

	.nm-promo h3 { order: 1; }
	.nm-promo p { order: 2; }
	.nm-promo .nm-shot,
	.nm-work .nm-promo .nm-shot { display: none; }
	.nm-promo .nm-btn { order: 4; align-self: flex-start; margin: 18px 0 0; }
	#main-header .nm-more { font-size: 16px; line-height: 21px; }

	.nm-shot-wide { width: 100%; max-width: 420px; height: 170px; margin-top: 12px; }

	/* Compact cards: thumbnail on the left, text and button on the right. */
	.nm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; row-gap: 22px; }
	.nm-card-footers { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
	.nm-cards article {
		grid-row: auto;
		grid-template-rows: none;
		grid-template-columns: 104px minmax(0, 1fr);
		column-gap: 14px;
		align-content: start;
	}
	.nm-cards article > h3 { grid-column: 2; grid-row: 1; }
	#main-header .nm-cards article > h3 { font-size: 17px; line-height: 22px; }
	#main-header .nm-cards article > p { grid-column: 2; grid-row: 2; margin-top: 4px; font-size: 14.5px; line-height: 20px; }
	.nm-cards article > .nm-shot {
		grid-column: 1;
		grid-row: 1 / span 3;
		width: 104px;
		height: 72px;
		margin: 2px 0 0;
		border-radius: 4px;
	}
	.nm-cards article > .nm-btn { grid-column: 2; grid-row: 3; margin-top: 10px; }
	#main-header .nm-cards article > .nm-card-link { grid-column: 2; grid-row: 3; padding-top: 6px; }

	#main-header .nm-mega .nm-cards--promo > .nm-kicker { grid-column: 1 / -1; grid-row: auto; margin: 0; }
	.nm-cards--promo article { grid-row: auto; }
	.nm-cards--promo .nm-shot { height: 72px; }
	.nm-card-promo {
		display: flex;
		flex-direction: column;
		grid-column: 1 / -1;
		grid-row: auto;
		padding-top: 26px;
		border-top: 1px solid var(--nm-line);
	}
	#main-header .nm-card-promo h3 { margin: 0; }
	.nm-card-promo .nm-shot { display: none; }
	.nm-card-promo .nm-btn { margin-top: 18px; }
	#main-header .nm-mega--cards .nm-cards--promo + .nm-card-footers .nm-more { padding-top: 16px; }

	.nm-cta { margin: 18px 20px 0; }
	.nm-cta .nm-btn { width: 100%; height: 50px; font-size: 16px; }
	#main-header .nm-cards .nm-btn { width: auto; height: 36px; padding: 0 14px; font-size: 12.5px; }
}

@media (max-width: 575px) {
	.nm-cards { grid-template-columns: 1fr; }
	.nm-card-footers { grid-template-columns: 1fr; }
	.nm-shot-wide { max-width: none; height: 150px; }
	#main-header.nm-on .nm-bar { padding: 0 16px; }
	#main-header .nm-mega h3,
	#main-header .nm-promo h3,
	.nm-feature strong { font-size: 19px; line-height: 25px; }
	#main-header .nm-mega .nm-kicker { font-size: 16px; line-height: 22px; }
}
