/* ==========================================================================
   Nalu Media
   Basalt and console. Big Shoulders for headlines, Public Sans for reading,
   marker-on-tape only where a real engineer would write on tape.
   ========================================================================== */

:root {
	--basalt: #1e1c1a;
	--basalt-2: #282521;
	--basalt-3: #33302b;
	--line: #3c3832;
	--bone: #ede8df;
	--ash: #a9a297;
	--tape: #f2ecdd;
	--sharpie: #1b1a19;
	--reef: #0f4c5c;
	--reef-2: #136073;
	--meter: #5bc46a;
	--amber: #f0a830;
	--clip: #e2553f;

	--display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
	--body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--marker: "Mansalva", "Comic Sans MS", cursive;

	--wrap: 1200px;
	--gutter: clamp(20px, 4vw, 40px);
	--pad-x: max(var(--gutter), calc((100% - var(--wrap)) / 2));
	--measure: 66ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; overflow-x: clip; }
body {
	margin: 0;
	background: var(--basalt);
	color: var(--bone);
	font: 400 17px/1.65 var(--body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--bone); text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: #fff; text-decoration-color: var(--bone); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
::selection { background: var(--amber); color: var(--sharpie); }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: .98; letter-spacing: -.005em; margin: 0 0 .5em; color: var(--bone); text-wrap: balance; }
h1 { font-size: clamp(48px, 8.4vw, 116px); }
h2 { font-size: clamp(36px, 5vw, 64px); }
h3 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.05; font-weight: 700; }
p { margin: 0 0 1.1em; }
strong { font-weight: 600; color: #fff; }

.nm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nm-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--amber); color: var(--sharpie); padding: 10px 14px; font-weight: 600; }
.nm-skip:focus { top: 12px; }

/* ---------- Header ---------- */
.nm-header { position: sticky; top: 0; z-index: 50; background: rgba(30, 28, 26, .94); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nm-header.is-scrolled { border-bottom-color: var(--line); }
.nm-header-in { display: flex; align-items: center; gap: 24px; padding: 14px var(--pad-x); }
.nm-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--bone); }
.nm-word { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: .01em; line-height: 1; }
.nm-mark { display: inline-flex; align-items: flex-end; gap: 3px; height: 26px; }
.nm-mark i { width: 5px; border-radius: 1px; background: var(--meter); }
.nm-mark i:nth-child(1) { height: 10px; }
.nm-mark i:nth-child(2) { height: 18px; }
.nm-mark i:nth-child(3) { height: 26px; background: var(--amber); }
.nm-mark i:nth-child(4) { height: 14px; }
.nm-logo-img { max-height: 44px; width: auto; }

.nm-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nm-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nm-menu > li { position: relative; }
.nm-menu a { display: block; padding: 8px 12px; text-decoration: none; color: var(--ash); font-weight: 500; font-size: 15.5px; border-radius: 3px; }
.nm-menu a:hover, .nm-menu .current-menu-item > a, .nm-menu .current-page-ancestor > a { color: var(--bone); }
.nm-menu .nm-menu-book > a { background: var(--amber); color: var(--sharpie); font-weight: 600; padding: 9px 16px; margin-left: 8px; }
.nm-menu .nm-menu-book > a:hover { background: #ffbb48; }
.nm-menu .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; left: 0; top: 100%; min-width: 280px; background: var(--basalt-2); border: 1px solid var(--line); border-radius: 4px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .16s, transform .16s, visibility .16s; }
.nm-menu li:hover > .sub-menu, .nm-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nm-menu .sub-menu a { color: var(--bone); padding: 9px 12px; }
.nm-menu .sub-menu a:hover { background: var(--basalt-3); }
.nm-header-phone { color: var(--bone); text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.nm-navtoggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 4px; padding: 10px; cursor: pointer; color: var(--bone); }
.nm-navtoggle-bars { display: grid; gap: 4px; }
.nm-navtoggle-bars i { display: block; width: 20px; height: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.nm-navtoggle[aria-expanded="true"] .nm-navtoggle-bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nm-navtoggle[aria-expanded="true"] .nm-navtoggle-bars i:nth-child(2) { opacity: 0; }
.nm-navtoggle[aria-expanded="true"] .nm-navtoggle-bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
	.nm-navtoggle { display: block; }
	.nm-nav { position: fixed; inset: 64px 0 0 0; background: var(--basalt); flex-direction: column; align-items: stretch; gap: 0; padding: 20px var(--gutter) 40px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
	.nm-nav.is-open { transform: none; visibility: visible; transition: transform .25s ease, visibility 0s; }
	.nm-menu { flex-direction: column; align-items: stretch; }
	.nm-menu a { font-size: 22px; padding: 12px 0; color: var(--bone); border-bottom: 1px solid var(--line); border-radius: 0; }
	.nm-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: none; border: 0; padding: 0 0 0 16px; min-width: 0; }
	.nm-menu .sub-menu a { font-size: 17px; color: var(--ash); }
	.nm-menu .nm-menu-book > a { margin: 18px 0 0; text-align: center; border: 0; }
	.nm-header-phone { margin-top: 18px; font-size: 20px; }
	body.nm-nav-open { overflow: hidden; }
}

/* ---------- Sections ---------- */
.nm-main { display: block; }
.nm-section, .nm-pagehead, .nm-hero { padding: clamp(64px, 9vw, 112px) var(--pad-x); margin: 0; }
.nm-section + .nm-section { border-top: 1px solid var(--line); }
.nm-section > :last-child { margin-bottom: 0; }
.nm-section-lede { font-size: 19px; color: var(--ash); max-width: var(--measure); margin-bottom: 40px; }

.nm-pagehead { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.nm-pagehead .nm-title { max-width: 16ch; margin-bottom: 24px; }
.nm-lede { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; color: var(--ash); max-width: 46ch; margin: 0; }
.nm-kicker { font-weight: 500; color: var(--amber); margin: 0 0 14px; }
.nm-kicker a { color: inherit; text-decoration: none; }

.nm-prose > * { max-width: var(--measure); }
.nm-prose > h2, .nm-prose > h3 { max-width: 24ch; }
.nm-prose > h2 { margin-top: 0; }
.nm-prose h3 { margin-top: 1.6em; }
.nm-prose > h3:first-child { margin-top: 0; }
.nm-prose ul, .nm-prose ol { padding-left: 1.2em; }
.nm-prose li { margin-bottom: .55em; }
.nm-prose li::marker { color: var(--amber); }
.nm-note { background: var(--basalt-2); }

/* ---------- Buttons ---------- */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.wp-block-button .wp-block-button__link, .nm-btn {
	display: inline-flex; align-items: center; justify-content: center;
	font: 600 16px/1 var(--body); text-decoration: none;
	padding: 16px 24px; border-radius: 3px; border: 2px solid var(--amber);
	background: var(--amber); color: var(--sharpie);
	transition: background .15s, color .15s, border-color .15s;
}
.wp-block-button .wp-block-button__link:hover { background: #ffbb48; border-color: #ffbb48; color: var(--sharpie); }
.wp-block-button.nm-line .wp-block-button__link { background: transparent; color: var(--bone); border-color: var(--line); }
.wp-block-button.nm-line .wp-block-button__link:hover { border-color: var(--bone); color: #fff; background: transparent; }

/* ---------- Hero and console ---------- */
.nm-hero { padding-top: clamp(48px, 7vw, 96px); padding-bottom: 0; overflow: hidden; }
.nm-hero-title { max-width: 13ch; font-size: clamp(54px, 9.4vw, 136px); margin-bottom: 28px; }
.nm-hero .nm-lede { max-width: 52ch; }
.nm-hero .wp-block-buttons { margin-bottom: clamp(48px, 6vw, 72px); }

.nm-console {
	--strip-w: 64px;
	position: relative;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(52px, 1fr);
	gap: 4px;
	padding: 14px 14px 0;
	background: linear-gradient(#2c2925, #23211e);
	border: 1px solid var(--line);
	border-bottom: 0;
	border-radius: 6px 6px 0 0;
	min-height: 360px;
	user-select: none;
}
.nm-console::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); pointer-events: none; }
.nm-strip { min-width: 0; display: grid; grid-template-rows: auto 1fr auto; gap: 10px; padding: 0 0 18px; border-radius: 3px; transition: background .2s, opacity .2s; cursor: default; }
.nm-console.is-soloing .nm-strip { opacity: .38; }
.nm-console.is-soloing .nm-strip.is-solo { opacity: 1; background: rgba(255,255,255,.035); }
.nm-scribble {
	display: block; font-family: var(--marker); font-size: 13px; line-height: 1.1; color: var(--sharpie);
	background: var(--tape); padding: 7px 4px 6px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	border-radius: 1px; box-shadow: 0 1px 0 rgba(0,0,0,.35);
	transform: rotate(var(--tilt, 0deg));
}
.nm-chnum { display: block; text-align: center; font-size: 11px; color: var(--ash); margin-top: 6px; font-variant-numeric: tabular-nums; }
.nm-chan { display: grid; grid-template-columns: 1fr 10px 1fr; gap: 6px; align-items: stretch; justify-items: center; min-height: 200px; }
.nm-meter { position: relative; width: 10px; height: 100%; background: #141311; border-radius: 1px; overflow: hidden; grid-column: 2; }
.nm-meter-fill {
	position: absolute; inset: 0; transform-origin: bottom; transform: scaleY(0);
	background: linear-gradient(to top, var(--meter) 0 68%, var(--amber) 68% 88%, var(--clip) 88% 100%);
	will-change: transform;
}
.nm-meter::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to top, transparent 0 4px, #141311 4px 6px); }
.nm-meter-peak { position: absolute; left: 0; right: 0; height: 2px; bottom: 0; background: #fff; opacity: .8; z-index: 1; will-change: transform; }
.nm-fader { position: relative; width: 4px; height: 100%; background: #111; border-radius: 2px; grid-column: 3; justify-self: start; }
.nm-fader-cap {
	position: absolute; left: 50%; bottom: 0; width: 26px; height: 40px; margin-left: -13px;
	background: linear-gradient(#5c5852, #3f3c37 45%, #2b2925 55%, #4a4741); border-radius: 3px;
	box-shadow: 0 2px 4px rgba(0,0,0,.5);
	transition: transform 1.1s cubic-bezier(.2,.8,.2,1);
}
.nm-fader-cap::after { content: ""; position: absolute; left: 3px; right: 3px; top: 19px; height: 2px; background: var(--bone); opacity: .85; }
.nm-mute { display: block; width: 100%; height: 22px; border-radius: 2px; background: #3a3732; border: 0; }
.nm-strip.is-solo .nm-mute { background: var(--amber); }
@media (max-width: 900px) { .nm-console { grid-auto-columns: minmax(46px, 1fr); min-height: 300px; } .nm-strip:nth-child(n+11) { display: none; } }
@media (max-width: 560px) { .nm-strip:nth-child(n+7) { display: none; } .nm-chan { min-height: 160px; } }

/* ---------- Service rack ---------- */
.nm-rack { display: grid; gap: 3px; background: #121110; border: 3px solid #121110; border-radius: 4px; }
.nm-unit {
	position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; gap: 24px 40px; align-items: baseline;
	padding: 26px 44px; background: linear-gradient(var(--basalt-2), #24211e);
}
.nm-unit::before, .nm-unit::after { content: ""; position: absolute; top: 50%; width: 9px; height: 9px; margin-top: -4px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #77726a, #2b2925 70%); }
.nm-unit::before { left: 16px; } .nm-unit::after { right: 16px; }
.nm-unit-title { margin: 0; font-size: clamp(26px, 2.6vw, 34px); }
.nm-unit p { margin: 0; color: var(--ash); }
.nm-unit-link a { white-space: nowrap; font-weight: 600; color: var(--bone); }
.nm-unit:hover { background: linear-gradient(#2e2b26, #282521); }
@media (max-width: 820px) { .nm-unit { grid-template-columns: 1fr; gap: 10px; padding: 26px 36px; } }

/* ---------- Rooms ---------- */
.nm-quad { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px !important; margin: 0 0 32px; }
.nm-quad .wp-block-column { border-top: 3px solid var(--amber); padding-top: 18px; }
.nm-quad h3 { font-size: 26px; }
.nm-quad p { color: var(--ash); font-size: 16px; }
@media (max-width: 960px) { .nm-quad { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .nm-quad { grid-template-columns: 1fr; } }

/* ---------- Two-up ---------- */
.nm-budgets { background: var(--reef); }
.nm-budgets h2 { max-width: 16ch; }
.nm-split { display: grid !important; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px) !important; margin-top: 16px; }
.nm-split .wp-block-column > p { color: #cfe0e3; }
.nm-budgets .nm-split .wp-block-column > p:last-child a { color: #fff; }
.nm-split.nm-section { padding-top: 0; }
.nm-split.nm-section .wp-block-column p, .nm-split.nm-section li { color: var(--bone); }
@media (max-width: 760px) { .nm-split { grid-template-columns: 1fr; } }

.nm-trio { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 28px !important; }
.nm-trio .wp-block-column { background: var(--basalt-2); padding: 24px; border-radius: 4px; }
.nm-trio p { color: var(--ash); margin: 0; }
@media (max-width: 760px) { .nm-trio { grid-template-columns: 1fr; } }

/* ---------- Review callout ---------- */
.nm-review { background: var(--basalt-2); }
.nm-review > * { max-width: 60ch; }
.nm-review h2 { max-width: none; }

/* ---------- Steps: a real sequence, drawn as a signal path ---------- */
.nm-steps { list-style: none; padding: 0 !important; margin: 24px 0 0; counter-reset: step; display: grid; gap: 0; max-width: 820px; position: relative; }
.nm-steps::before { content: ""; position: absolute; left: 23px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.nm-steps::after { content: ""; position: absolute; left: 23px; top: 10px; width: 2px; height: calc((100% - 20px) * var(--signal, 0)); background: var(--meter); transition: height 1.6s cubic-bezier(.3,.7,.2,1); }
.nm-steps > li { counter-increment: step; position: relative; padding: 0 0 30px 76px; margin: 0 !important; min-height: 48px; }
.nm-steps > li::before {
	content: counter(step); position: absolute; left: 0; top: -4px; width: 48px; height: 48px; z-index: 1;
	display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 26px;
	background: var(--basalt); border: 2px solid var(--line); border-radius: 50%; color: var(--bone);
}
.nm-steps > li:last-child { padding-bottom: 0; }
.nm-steps > li strong { display: block; font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1.1; margin-bottom: 4px; }
.nm-steps > li { color: var(--ash); }
.nm-steps.is-lit > li::before { border-color: var(--meter); }
.nm-prose .nm-steps { padding-left: 0; }

/* ---------- Credits ---------- */
.nm-credits { list-style: none; padding: 0; margin: 0 0 48px; border-top: 1px solid var(--line); max-width: 900px; }
.nm-credits li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 19px; }
.nm-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.nm-quote { margin: 0; padding: 26px; background: var(--basalt-2); border-left: 4px solid var(--amber); }
.nm-quote blockquote { margin: 0; }
.nm-quote p { font-size: 19px; margin: 0 0 12px; }
.nm-quote figcaption { color: var(--ash); font-size: 15px; }

/* ---------- Work ---------- */
.nm-case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px 56px; align-items: start; }
.nm-case h2 { grid-row: span 2; font-size: clamp(32px, 4vw, 52px); margin: 0; }
.nm-case p { color: var(--ash); max-width: 60ch; margin: 0; }
.nm-case .nm-role { color: var(--amber); font-weight: 600; }
@media (max-width: 820px) { .nm-case { grid-template-columns: 1fr; } .nm-case h2 { grid-row: auto; } }

/* ---------- Listing pages (FAQ, pricing, consulting) ---------- */
.nm-listing h3, .nm-faq h3 { font-size: clamp(24px, 2.4vw, 30px); padding-top: 22px; border-top: 1px solid var(--line); }
.nm-listing > h3:first-child, .nm-faq > h3:first-child { border-top: 0; padding-top: 0; }
.nm-listing p, .nm-faq p { color: var(--ash); }

/* ---------- CTA ---------- */
.nm-cta { background: var(--reef); position: relative; overflow: hidden; }
.nm-cta > * { position: relative; max-width: 60ch; }
.nm-cta-title { max-width: 14ch !important; }
.nm-cta p { color: #d4e4e7; font-size: 19px; }
.nm-cta .wp-block-button.nm-line .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.4); }

/* ---------- Venues list (from HQ) ---------- */
.nm-venues-kind { font-size: 28px; margin: 40px 0 12px; }
.nm-venues-kind:first-child { margin-top: 0; }
.nm-venue-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); columns: 2 360px; column-gap: 48px; }
.nm-venue-list li { break-inside: avoid; padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.nm-venue-name { font-weight: 600; }
.nm-venue-where { color: var(--ash); font-size: 15px; }
.nm-venue-note { color: var(--bone); font-size: 15px; margin-top: 4px; }

/* ---------- Forms (HQ quote form) ---------- */
.nm-formsection { background: var(--basalt-2); }
.nm-form-wrap { max-width: 860px; }
.nm-form fieldset { border: 0; padding: 0; margin: 0 0 34px; }
.nm-form legend { font-family: var(--display); font-weight: 700; font-size: 30px; margin-bottom: 16px; padding: 0; }
.nm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-bottom: 16px; }
@media (max-width: 640px) { .nm-row { grid-template-columns: 1fr; } }
.nm-form label { display: grid; gap: 6px; font-weight: 500; font-size: 15px; }
.nm-form input[type=text], .nm-form input[type=email], .nm-form input[type=tel], .nm-form select, .nm-form textarea {
	width: 100%; font: 400 17px/1.4 var(--body); color: var(--bone);
	background: var(--basalt); border: 1px solid var(--line); border-radius: 3px; padding: 13px 14px;
}
.nm-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ash) 50%), linear-gradient(135deg, var(--ash) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.nm-form input:focus, .nm-form select:focus, .nm-form textarea:focus { border-color: var(--amber); outline: none; box-shadow: 0 0 0 3px rgba(240,168,48,.25); }
.nm-form textarea { resize: vertical; min-height: 140px; }
.nm-form input[type=file] { font: inherit; color: var(--ash); }
.nm-checks { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.nm-checks-label { width: 100%; font-weight: 500; font-size: 15px; margin-bottom: 4px; }
.nm-check { display: inline-flex !important; grid-template-columns: none; align-items: center; gap: 8px !important; font-weight: 400 !important; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; background: var(--basalt); }
.nm-check:has(input:checked) { border-color: var(--amber); background: rgba(240,168,48,.12); }
.nm-check input { accent-color: var(--amber); }
.nm-check-solo { margin: 16px 0; }
.nm-file { margin-top: 8px; }
.nm-hp { position: absolute; left: -9999px; }
.nm-btn-solid { border: 0; cursor: pointer; font-size: 17px; padding: 18px 28px; }
.nm-btn-solid:hover { background: #ffbb48; }
.nm-form-note { color: var(--ash); font-size: 14px; margin-top: 14px; }
.nm-form-error { background: rgba(226,85,63,.15); border-left: 4px solid var(--clip); padding: 14px 18px; }
.nm-form-done { background: rgba(91,196,106,.12); border-left: 4px solid var(--meter); padding: 26px 28px; }
.nm-form-done-title { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; margin-bottom: 12px; }
.nm-direct { margin-top: 28px; color: var(--ash); }
.nm-direct a { margin-right: 18px; }

/* ---------- Journal ---------- */
.nm-postlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 900px; }
.nm-postlist a { display: grid; gap: 8px; padding: 30px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.nm-postlist-title { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.02; }
.nm-postlist a:hover .nm-postlist-title { color: var(--amber); }
.nm-postlist-ex { color: var(--ash); max-width: 64ch; }
.nm-postlist-meta { color: var(--ash); font-size: 14px; }
.nm-posthead .nm-title { max-width: 20ch; font-size: clamp(42px, 6vw, 80px); }
.nm-postmeta { color: var(--ash); margin: 0; }
.nm-postimg { margin: 0; padding: 0 var(--pad-x); }
.nm-article { font-size: 18px; }
.nm-article h2 { font-size: clamp(30px, 3.6vw, 44px); margin-top: 1.4em; }
.nav-links { display: flex; gap: 18px; margin-top: 28px; }

/* ---------- Footer ---------- */
.nm-footer { background: #171614; border-top: 1px solid var(--line); }
.nm-footer-in { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 48px; padding: 72px var(--pad-x) 56px; }
.nm-footer p { color: var(--ash); font-size: 15.5px; }
.nm-footer-contact a { color: var(--bone); font-weight: 600; text-decoration: none; }
.nm-footer-h { color: var(--bone) !important; font-weight: 600; margin-bottom: 8px; }
.nm-footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nm-footer-menu a, .nm-social a { color: var(--ash); text-decoration: none; }
.nm-footer-menu a:hover, .nm-social a:hover { color: var(--bone); }
.nm-social a { margin-right: 16px; }
.nm-footer .nm-brand { margin-bottom: 16px; }
.nm-footer-base { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 20px var(--pad-x); border-top: 1px solid var(--line); color: var(--ash); font-size: 14px; }
.nm-footer-base a { color: var(--bone); }
@media (max-width: 860px) { .nm-footer-in { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Core block defaults inside content ---------- */
.wp-block-columns { margin-bottom: 0; }
.wp-block-image img { border-radius: 3px; }
.wp-block-separator { border: 0; border-top: 1px solid var(--line); }
.nm-section .wp-block-columns:not(.nm-quad):not(.nm-split):not(.nm-trio) { gap: 40px; }

/* ---------- Classic-theme block wrappers ----------
   WordPress wraps group blocks in .wp-block-group__inner-container on classic themes.
   display: contents lets each section's layout rules reach the real children. */
.wp-block-group__inner-container { display: contents; }
.nm-prose > .wp-block-group__inner-container > * { max-width: var(--measure); }
.nm-prose > .wp-block-group__inner-container > h2,
.nm-prose > .wp-block-group__inner-container > h3 { max-width: 24ch; }
.nm-review > .wp-block-group__inner-container > * { max-width: 62ch; }
.nm-review > .wp-block-group__inner-container > h2 { max-width: none; }
.nm-cta > .wp-block-group__inner-container > * { max-width: 60ch; }
.nm-section > .wp-block-group__inner-container > :last-child { margin-bottom: 0; }

/* Rack rows: fixed title and link columns so descriptions line up row to row. */
.nm-unit { grid-template-columns: minmax(0, 17rem) minmax(0, 1fr) 11rem; }
.nm-unit-link { justify-self: end; text-align: right; }
@media (max-width: 820px) { .nm-unit { grid-template-columns: 1fr; } .nm-unit-link { justify-self: start; text-align: left; } }

/* Hero: three lines, console in view sooner. */
.nm-hero { padding-top: clamp(40px, 6vw, 80px); }
.nm-hero-title { font-size: clamp(46px, 6.6vw, 96px); max-width: 20ch; }

/* ---------- Photos ---------- */
.nm-main .wp-block-image { margin: 0; }
.nm-main .wp-block-image img { display: block; width: 100%; height: auto; border-radius: 3px; }
.nm-main .wp-block-image:not(.wp-block-gallery .wp-block-image) figcaption { color: var(--ash); font-size: 14px; line-height: 1.45; margin: 10px 0 0; max-width: 70ch; }

/* Full-bleed band between sections. */
.nm-main > .nm-band, .nm-band { margin: 0; position: relative; }
.nm-main .wp-block-image.nm-band img { border-radius: 0; width: 100%; height: clamp(280px, 52vw, 680px); object-fit: cover; }
.nm-main .nm-band figcaption { position: absolute; left: var(--pad-x); bottom: 18px; margin: 0; padding: 8px 12px; border-radius: 3px; background: rgba(20, 19, 17, .78); color: var(--bone); max-width: min(60ch, calc(100% - 2 * var(--gutter))); }

/* Galleries. */
.nm-main .wp-block-gallery.nm-gallery { --wp--style--unstable-gallery-gap: 12px; gap: 12px; margin: 28px 0 0; max-width: none; }
.nm-main .wp-block-gallery.nm-gallery figure.wp-block-image img { border-radius: 3px; }
.nm-main .wp-block-gallery.nm-gallery figure.wp-block-image figcaption { font: 500 13px/1.35 var(--body); padding: 28px 10px 8px; border-radius: 0 0 3px 3px; }
.nm-prose > .wp-block-gallery, .nm-prose > .wp-block-group__inner-container > .wp-block-gallery { max-width: none; }
.nm-photo-narrow { max-width: 560px !important; }
.nm-photo-portrait { max-width: 440px !important; }
.nm-photos h2 { max-width: 20ch; }
.nm-photos > p, .nm-photos > .wp-block-group__inner-container > p { max-width: 64ch; color: var(--ash); }
.nm-credit { color: var(--ash); font-size: 14px; margin-top: 18px; }

/* Work page: photos sit in the right-hand column of each case. */
.nm-case > .wp-block-image, .nm-case > .wp-block-gallery,
.nm-case > .wp-block-group__inner-container > .wp-block-image,
.nm-case > .wp-block-group__inner-container > .wp-block-gallery { grid-column: 2; margin-top: 16px; }
@media (max-width: 820px) {
	.nm-case > .wp-block-image, .nm-case > .wp-block-gallery,
	.nm-case > .wp-block-group__inner-container > .wp-block-image,
	.nm-case > .wp-block-group__inner-container > .wp-block-gallery { grid-column: auto; }
}

.nm-case .wp-block-image:not(.wp-block-gallery .wp-block-image) img { max-height: 560px; object-fit: cover; }

/* Journal featured image. */
.nm-postimg img { width: 100%; max-height: 640px; object-fit: cover; border-radius: 3px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
	html { scroll-behavior: auto; }
}
