/** Compact dark header: one fixed height, vertically centered parts. */
.nvd-header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--header-height);
	min-height: var(--header-height);
	display: flex;
	align-items: center;
	background-color: rgba(0, 0, 0, 0.94);
	backdrop-filter: saturate(140%) blur(8px);
	border-bottom: var(--border-width) solid var(--color-border);
}
.nvd-header__inner {
	display: grid;
	grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
	align-items: center;
	gap: var(--spacing-lg);
	width: 100%;
	max-width: var(--container-max);
	height: 100%;
	margin-inline: auto;
	padding-inline: var(--container-gutter);
}

.nvd-header__brand { display: flex; align-items: center; min-width: 0; }

/* Inline SVG wordmark. Full = mark + site name; compact = mark + hidden name. */
.nvd-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	max-width: 100%;
	color: var(--color-text);
	font-size: 0.9375rem;
	font-weight: var(--font-weight-extra);
	letter-spacing: var(--letter-spacing-caps);
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
}
.nvd-logo:hover { color: var(--color-text); }
.nvd-logo__mark {
	width: 34px;
	height: 34px;
	flex: 0 0 auto;
	overflow: visible;
}
.nvd-logo__frame { fill: none; stroke: var(--color-border-strong); stroke-width: 1.5; }
.nvd-logo__path { fill: none; stroke: var(--color-primary); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.nvd-logo__accent { fill: none; stroke: var(--color-secondary); stroke-width: 1.5; stroke-linecap: round; opacity: 0.85; }
.nvd-logo__dot { fill: var(--color-secondary); }
.nvd-logo__image { display: block; width: auto; height: 34px; max-width: 180px; object-fit: contain; }
.nvd-logo__wordmark { display: inline-block; }

/* Centered nav */
.nvd-header__nav { display: flex; justify-content: center; min-width: 0; }
.nvd-nav { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 28px); }
.nvd-nav li { margin: 0; }
.nvd-nav a {
	position: relative;
	display: inline-block;
	color: var(--color-text-muted);
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-semibold);
	text-transform: uppercase;
	letter-spacing: var(--letter-spacing-wide);
	padding: 10px 0 7px;
	white-space: nowrap;
}
.nvd-nav a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background-color: var(--color-primary);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.2s ease;
}
.nvd-nav a:hover { color: var(--color-text); }
.nvd-nav a:hover::after { transform: scaleX(0.45); }
.nvd-nav a:focus-visible { color: var(--color-text); }
/* Section state is driven by one observer via aria-current="location". */
.nvd-nav a.is-active,
.nvd-nav a[aria-current="location"] { color: var(--color-primary); }
.nvd-nav a.is-active::after,
.nvd-nav a[aria-current="location"]::after { transform: scaleX(1); }

.nvd-header__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: var(--spacing-md);
	min-width: 0;
}
.nvd-header__contact {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	flex: 0 0 auto;
	border-radius: var(--radius-pill);
	border: var(--border-width) solid var(--color-border);
	color: var(--color-primary);
	background-color: var(--color-surface);
}
.nvd-header__contact:hover { border-color: var(--color-primary); color: var(--color-primary-hover); }
.nvd-header__contact svg { width: 1.125rem; height: 1.125rem; }
.nvd-header__cta { white-space: nowrap; }

/* Mobile toggle */
.nvd-nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	flex: 0 0 auto;
	background: transparent;
	border: var(--border-width) solid var(--color-border);
	border-radius: var(--radius-sm);
	color: var(--color-text);
}
.nvd-nav-toggle svg { width: 1.25rem; height: 1.25rem; }
