/* ==========================================================================
   NH Design — component styles + WordPress adaptation layer.
   Tokens below are mirrored by theme.json (palette/fonts point at these vars).
   Dark is the default; [data-theme="light"] on <html> switches the palette.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
	--nh-bg: #0b0b12;
	--nh-bg-2: #11111b;
	--nh-bg-3: #1a1a2b;
	--nh-surface: rgba(255, 255, 255, 0.035);
	--nh-surface-2: rgba(255, 255, 255, 0.065);
	--nh-border: rgba(255, 255, 255, 0.08);
	--nh-border-strong: rgba(255, 255, 255, 0.18);
	--nh-text: #f1f5f9;
	--nh-text-dim: #a3adc2;
	--nh-text-muted: #7b879c;
	--nh-accent: #c084fc;
	--nh-accent-2: #22d3ee;
	--nh-accent-3: #f472b6;
	--nh-on-accent: #ffffff;
	--nh-tint: rgba(192, 132, 252, 0.1);
	--nh-tint-strong: rgba(192, 132, 252, 0.2);
	--nh-glow: rgba(192, 132, 252, 0.28);
	--nh-header-bg: rgba(11, 11, 18, 0.72);
	--nh-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
	--nh-grad: linear-gradient(120deg, var(--nh-accent), var(--nh-accent-2) 55%, var(--nh-accent-3));
	--nh-grad-btn: linear-gradient(135deg, #a855f7, #db2777);

	--nh-font-body: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--nh-font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;

	--nh-radius: 22px;
	--nh-radius-sm: 14px;
	--nh-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--nh-wrap: 1160px;
	--nh-narrow: 760px;
	--nh-gutter: clamp(20px, 4vw, 40px);
	--nh-section: clamp(80px, 11vw, 136px);
	--nh-header-h: 76px;
	--nh-admin-bar: var(--wp-admin--admin-bar--height, 0px);

	color-scheme: dark;
}

:root[data-theme="light"] {
	--nh-bg: #faf7f2;
	--nh-bg-2: #f2ede5;
	--nh-bg-3: #e8e1d5;
	--nh-surface: #ffffff;
	--nh-surface-2: #f7f3ed;
	--nh-border: rgba(30, 22, 52, 0.1);
	--nh-border-strong: rgba(30, 22, 52, 0.22);
	--nh-text: #17131f;
	--nh-text-dim: #4b4659;
	--nh-text-muted: #696379;
	--nh-accent: #9333ea;
	--nh-accent-2: #0e7490;
	--nh-accent-3: #db2777;
	--nh-tint: rgba(147, 51, 234, 0.08);
	--nh-tint-strong: rgba(147, 51, 234, 0.16);
	--nh-glow: rgba(147, 51, 234, 0.2);
	--nh-header-bg: rgba(250, 247, 242, 0.82);
	--nh-shadow: 0 24px 60px rgba(40, 24, 80, 0.12);
	--nh-grad: linear-gradient(120deg, #9333ea, #0e7490 55%, #db2777);
	--nh-grad-btn: linear-gradient(135deg, #9333ea, #db2777);

	color-scheme: light;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--nh-header-h) + var(--nh-admin-bar) + 16px);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--nh-bg);
	color: var(--nh-text);
	font-family: var(--nh-font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
	transition: background-color 0.3s ease, color 0.3s ease;
}

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }

a { color: var(--nh-accent); text-underline-offset: 3px; }
a:hover { color: var(--nh-text); }

:focus-visible {
	outline: 2px solid var(--nh-accent-2);
	outline-offset: 3px;
	border-radius: 6px;
}

::selection { background: var(--nh-accent); color: #fff; }

h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.15; font-weight: 600; }
p, ul, ol, figure, dl, blockquote { margin: 0; }

.screen-reader-text, .sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

.icon { flex: none; display: inline-block; vertical-align: middle; }

/* ---------- 3. Layout primitives ---------- */
.wrap {
	width: 100%;
	max-width: calc(var(--nh-wrap) + var(--nh-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--nh-gutter);
}
.wrap--narrow { max-width: calc(var(--nh-narrow) + var(--nh-gutter) * 2); }

.section { position: relative; padding-block: var(--nh-section); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--flush { padding-block: 0; }
.section--alt { background: var(--nh-bg-2); }

.split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(40px, 6vw, 80px);
	align-items: center;
}

.grid-3 {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.site-main { padding-top: calc(var(--nh-header-h) + var(--nh-admin-bar)); }
.site-main--wide { padding-top: 0; }

/* Block wrappers WordPress adds (post-content, template parts) must not add spacing. */
.wp-block-post-content.page-sections > * { margin: 0; }
.wp-site-blocks > * { margin-block: 0; }

/* ---------- 4. Typography helpers ---------- */
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--nh-accent);
	margin-bottom: 14px;
}
.eyebrow::before {
	content: "";
	width: 28px; height: 1px;
	background: currentColor;
}
.center .eyebrow::before, .eyebrow.center::before { display: none; }

.section-title, .page-title, .wp-block-post-title.page-title {
	font-family: var(--nh-font-display);
	font-weight: 700;
	font-size: clamp(2.1rem, 5vw, 3.4rem);
	line-height: 1.08;
	letter-spacing: -0.01em;
	margin-bottom: 18px;
}
.section-title em, .page-title em { font-style: italic; font-weight: 400; }

.lead, .section-desc {
	color: var(--nh-text-dim);
	font-size: clamp(1.05rem, 1.4vw, 1.2rem);
	max-width: 620px;
}

.grad {
	background: var(--nh-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}

.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { text-align: center; }
.section-head.center .lead, .section-head.center .section-desc { margin-inline: auto; }

.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { margin-top: 1.8em; font-family: var(--nh-font-display); }
.prose h2 { font-size: 1.9rem; }
.prose h3 { font-size: 1.4rem; }
.prose p, .prose li { color: var(--nh-text-dim); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 0.35em; }
.prose li::marker { color: var(--nh-accent); }
.prose .wp-block-image img, .prose .wp-block-gallery img { border-radius: var(--nh-radius-sm); }
.prose figcaption { color: var(--nh-text-muted); font-size: 0.875rem; margin-top: 8px; text-align: center; }

/* ---------- 5. Buttons (core button + PHP-rendered .btn) ---------- */
.wp-block-buttons, .actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}
.wp-block-buttons.center { justify-content: center; }

.wp-block-button__link, .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 30px;
	border-radius: 999px;
	border: 1px solid transparent;
	background: var(--nh-grad-btn) border-box; /* size the gradient to the border edge so it doesn't repeat into the 1px border */
	color: var(--nh-on-accent);
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 6px 28px var(--nh-glow);
	transition: transform 0.35s var(--nh-ease), box-shadow 0.35s var(--nh-ease), border-color 0.35s, background-color 0.35s, color 0.35s;
}
.wp-block-button__link:hover, .btn:hover {
	color: var(--nh-on-accent);
	transform: translateY(-3px);
	box-shadow: 0 12px 40px var(--nh-glow);
}

.wp-block-button.is-style-outline > .wp-block-button__link,
.btn--outline {
	background: var(--nh-surface);
	border-color: var(--nh-border-strong);
	color: var(--nh-text);
	box-shadow: none;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.btn--outline:hover {
	border-color: var(--nh-accent);
	background: var(--nh-tint);
	color: var(--nh-text);
	box-shadow: none;
}

.btn--sm { padding: 10px 22px; font-size: 0.875rem; }

/* Arrow on primary buttons (CSS only, so the editor text stays plain). */
.wp-block-button:not(.is-style-outline) > .wp-block-button__link::after {
	content: "";
	width: 16px; height: 16px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.35s var(--nh-ease);
}
.wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover::after { transform: translateX(3px); }

/* ---------- 6. Header ---------- */
.site-header {
	position: fixed;
	top: var(--nh-admin-bar);
	left: 0; right: 0;
	z-index: 100;
	height: var(--nh-header-h);
	display: flex;
	align-items: center;
	background: transparent;
	border-bottom: 1px solid transparent;
	transition: background-color 0.35s, border-color 0.35s, height 0.35s var(--nh-ease);
}
.site-header.is-scrolled, .site-header.is-open {
	--nh-header-h: 64px;
	background: var(--nh-header-bg);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	backdrop-filter: blur(18px) saturate(140%);
	border-bottom-color: var(--nh-border);
}
.site-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--nh-text);
	margin-right: auto;
}
.brand:hover { color: var(--nh-text); }
.brand__mark {
	display: grid;
	place-items: center;
	width: 40px; height: 40px;
	border-radius: 12px;
	background: var(--nh-grad-btn);
	color: #fff;
	font-family: var(--nh-font-display);
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.02em;
	box-shadow: 0 6px 22px var(--nh-glow);
}
.brand__name { font-weight: 600; font-size: 1.1rem; letter-spacing: 0.01em; }

.nav > ul {
	display: flex;
	align-items: center;
	gap: 6px;
	list-style: none;
	margin: 0; padding: 0;
}
.nav > ul > li > a {
	position: relative;
	display: block;
	padding: 8px 14px;
	color: var(--nh-text-dim);
	font-size: 0.9rem;
	font-weight: 500;
	text-decoration: none;
	border-radius: 999px;
	transition: color 0.3s, background-color 0.3s;
}
.nav > ul > li > a:hover,
.nav > ul > li > a[aria-current="true"] {
	color: var(--nh-text);
	background: var(--nh-surface-2);
}
.nav__cta-mobile { display: none; }

.site-header__tools { display: flex; align-items: center; gap: 10px; }

.theme-toggle, .nav-toggle {
	display: inline-grid;
	place-items: center;
	width: 42px; height: 42px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid var(--nh-border);
	background: var(--nh-surface);
	color: var(--nh-text);
	cursor: pointer;
	transition: border-color 0.3s, transform 0.3s var(--nh-ease);
}
.theme-toggle:hover, .nav-toggle:hover { border-color: var(--nh-accent); }
.theme-toggle .icon--moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon--sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon--moon { display: inline-block; }
.theme-toggle:active { transform: rotate(-25deg) scale(0.94); }

.nav-toggle { display: none; }
.nav-toggle .icon--close { display: none; }
.site-header.is-open .nav-toggle .icon--menu { display: none; }
.site-header.is-open .nav-toggle .icon--close { display: inline-block; }

/* ---------- 7. Hero ---------- */
.hero {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	align-items: center;
	padding-block: calc(var(--nh-header-h) + var(--nh-admin-bar) + 48px) 96px;
	overflow: hidden;
	isolation: isolate;
	text-align: center;
}
.hero::before {
	content: "";
	position: absolute;
	inset: -20% -10% auto;
	height: 120%;
	z-index: -2;
	background:
		radial-gradient(40% 45% at 20% 25%, color-mix(in srgb, var(--nh-accent) 22%, transparent), transparent 70%),
		radial-gradient(35% 40% at 82% 30%, color-mix(in srgb, var(--nh-accent-2) 16%, transparent), transparent 70%),
		radial-gradient(40% 40% at 60% 85%, color-mix(in srgb, var(--nh-accent-3) 14%, transparent), transparent 70%);
	filter: blur(10px);
}
.hero__canvas {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%; height: 100%;
	pointer-events: none;
}
.hero .wrap { display: flex; flex-direction: column; align-items: center; }

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 18px;
	border-radius: 999px;
	border: 1px solid var(--nh-tint-strong);
	background: var(--nh-tint);
	color: var(--nh-accent);
	font-size: 0.82rem;
	font-weight: 500;
	margin-bottom: 28px;
}
.hero-badge::before {
	content: "";
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--nh-accent-2);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--nh-accent-2) 22%, transparent);
}

.hero-title {
	font-family: var(--nh-font-display);
	font-size: clamp(3rem, 9vw, 7rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
	margin-bottom: 18px;
}
.hero-sub {
	font-family: var(--nh-font-display);
	font-style: italic;
	font-size: clamp(1.3rem, 2.6vw, 1.9rem);
	color: var(--nh-text-dim);
	margin-bottom: 14px;
}
.hero-phrases {
	list-style: none;
	padding: 0;
	color: var(--nh-text-muted);
	font-size: 1.05rem;
	min-height: 1.8em;
	margin-bottom: 36px;
}
.hero-phrases li + li { display: none; }
.hero-phrases.is-typing li { display: block; }
.hero-typed { color: var(--nh-text-muted); }
.hero-typed::after {
	content: "";
	display: inline-block;
	width: 2px; height: 1.1em;
	margin-left: 3px;
	vertical-align: -0.2em;
	background: var(--nh-accent-2);
	animation: nh-blink 1s steps(1) infinite;
}
.hero .wp-block-buttons { justify-content: center; }

.scroll-cue {
	position: absolute;
	left: 50%; bottom: 28px;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	color: var(--nh-text-muted);
	font-size: 0.7rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
}
.scroll-cue::after {
	content: "";
	width: 1px; height: 42px;
	background: linear-gradient(var(--nh-accent), transparent);
	animation: nh-drip 2s var(--nh-ease) infinite;
	transform-origin: top;
}

/* Ticker under the hero */
.ticker {
	border-block: 1px solid var(--nh-border);
	background: var(--nh-bg-2);
	overflow: hidden;
	padding-block: 18px;
	-webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px 40px;
	list-style: none;
	margin: 0; padding: 0 var(--nh-gutter);
	font-family: var(--nh-font-display);
	font-size: clamp(1.1rem, 2vw, 1.5rem);
	font-style: italic;
	color: var(--nh-text-dim);
	white-space: nowrap;
}
.ticker li { display: inline-flex; align-items: center; gap: 40px; }
.ticker li::after { content: "✦"; font-style: normal; font-size: 0.7em; color: var(--nh-accent); }
.js .ticker.is-running ul {
	flex-wrap: nowrap;
	justify-content: flex-start;
	width: max-content;
	padding: 0;
	animation: nh-marquee var(--nh-ticker-time, 40s) linear infinite;
}
.js .ticker.is-running ul > li { padding-right: 40px; }
.ticker:hover ul { animation-play-state: paused; }

/* ---------- 8. About ---------- */
.about-visual {
	position: relative;
	aspect-ratio: 4 / 5;
	border-radius: var(--nh-radius);
	overflow: hidden;
	background:
		radial-gradient(60% 50% at 30% 20%, color-mix(in srgb, var(--nh-accent) 30%, transparent), transparent 70%),
		radial-gradient(50% 50% at 80% 80%, color-mix(in srgb, var(--nh-accent-2) 22%, transparent), transparent 70%),
		var(--nh-bg-3);
	border: 1px solid var(--nh-border);
	display: flex;
	align-items: center;
	justify-content: center;
}
.about-visual::before, .about-visual::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	animation: nh-float 7s ease-in-out infinite;
}
.about-visual::before {
	width: 90px; height: 90px; top: 12%; right: 14%;
	background: radial-gradient(circle, var(--nh-accent-3), transparent 70%);
}
.about-visual::after {
	width: 60px; height: 60px; bottom: 18%; left: 12%;
	background: radial-gradient(circle, var(--nh-accent-2), transparent 70%);
	animation-delay: -3s;
}
.about-visual .wp-block-image, .about-visual > figure {
	position: absolute; inset: 0;
}
.about-visual .wp-block-image img, .about-visual > figure img {
	width: 100%; height: 100%; object-fit: cover;
}
.about-monogram {
	font-family: var(--nh-font-display);
	font-size: clamp(7rem, 16vw, 12rem);
	font-weight: 700;
	line-height: 1;
	background: var(--nh-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
	opacity: 0.55;
}
.about-chip {
	position: absolute;
	left: 20px; bottom: 20px;
	z-index: 2;
	padding: 10px 16px;
	border-radius: 999px;
	background: var(--nh-header-bg);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border: 1px solid var(--nh-border);
	font-size: 0.85rem;
	color: var(--nh-text);
}
.about-text .section-title { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.about-text > p:not(.eyebrow) { color: var(--nh-text-dim); margin-bottom: 18px; }

.stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-block: 32px;
}
.stat {
	padding: 22px 16px;
	border-radius: var(--nh-radius-sm);
	border: 1px solid var(--nh-border);
	background: var(--nh-surface);
	text-align: center;
	transition: border-color 0.35s, transform 0.35s var(--nh-ease);
}
.stat:hover { border-color: var(--nh-accent); transform: translateY(-4px); }
.stat-num {
	font-family: var(--nh-font-display);
	font-size: clamp(2rem, 4vw, 2.6rem);
	font-weight: 700;
	line-height: 1.1;
	background: var(--nh-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}
.stat-label { font-size: 0.8rem; color: var(--nh-text-muted); margin-top: 4px; }

/* ---------- 9. Skills ---------- */
.skill-card {
	position: relative;
	padding: 32px 28px;
	border-radius: var(--nh-radius);
	border: 1px solid var(--nh-border);
	background: var(--nh-surface);
	transition: border-color 0.35s, transform 0.35s var(--nh-ease), box-shadow 0.35s;
}
.skill-card:hover { border-color: var(--nh-tint-strong); transform: translateY(-6px); box-shadow: var(--nh-shadow); }
.skill-card .ic {
	display: grid;
	place-items: center;
	width: 52px; height: 52px;
	border-radius: 16px;
	background: var(--nh-tint);
	color: var(--nh-accent);
	margin-bottom: 22px;
}
.skill-card .ic svg { width: 24px; height: 24px; }
.skill-card h3 { font-size: 1.2rem; margin-bottom: 18px; }

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	padding: 0;
}
.chips li {
	padding: 7px 14px;
	border-radius: 999px;
	border: 1px solid var(--nh-border);
	background: var(--nh-surface-2);
	color: var(--nh-text-dim);
	font-size: 0.85rem;
	transition: border-color 0.3s, color 0.3s;
}
.chips li:hover { border-color: var(--nh-accent); color: var(--nh-text); }

/* ---------- 10. Projects (nh/project-grid) ---------- */
.project-grid .filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 40px;
}
.project-grid .filter {
	padding: 9px 20px;
	border-radius: 999px;
	border: 1px solid var(--nh-border);
	background: var(--nh-surface);
	color: var(--nh-text-dim);
	font: 500 0.875rem/1.2 var(--nh-font-body);
	cursor: pointer;
	transition: all 0.3s var(--nh-ease);
}
.project-grid .filter:hover { border-color: var(--nh-accent); color: var(--nh-text); }
.project-grid .filter[aria-pressed="true"] {
	background: var(--nh-grad-btn) border-box;
	border-color: transparent;
	color: #fff;
}
.project-grid .projects {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	list-style: none;
	margin: 0; padding: 0;
}
.project-grid .projects > li[hidden] { display: none !important; }

.project-card {
	border-radius: var(--nh-radius);
	border: 1px solid var(--nh-border);
	background: var(--nh-surface);
	overflow: hidden;
	transition: transform 0.45s var(--nh-ease), border-color 0.35s, box-shadow 0.45s;
}
.project-card:hover { transform: translateY(-8px); border-color: var(--nh-tint-strong); box-shadow: var(--nh-shadow); }
.project-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.project-card__link:hover { color: inherit; }
.project-card__media {
	position: relative;
	aspect-ratio: 800 / 564;
	overflow: hidden;
	background: var(--nh-bg-3);
}
.project-card__media img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 0.8s var(--nh-ease);
}
.project-card:hover .project-card__media img { transform: scale(1.05); }
.project-card__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 26px; flex: 1; }
.project-card__body h3 { font-size: 1.15rem; }
.project-card__body p { color: var(--nh-text-dim); font-size: 0.92rem; line-height: 1.6; }
.project-card__more {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding-top: 6px;
	color: var(--nh-accent);
	font-size: 0.875rem;
	font-weight: 600;
}
.project-card__more::after { content: "→"; transition: transform 0.35s var(--nh-ease); }
.project-card:hover .project-card__more::after { transform: translateX(4px); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--nh-tint);
	color: var(--nh-accent);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.04em;
}
.project-grid__more { margin-top: 44px; text-align: center; }
.project-grid__empty { text-align: center; color: var(--nh-text-muted); }

/* ---------- 11. Single project ---------- */
.project-head { padding-bottom: clamp(32px, 5vw, 56px); }
.project-head__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: end;
}
.project-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 22px; }
.back-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--nh-text-dim);
	font-size: 0.875rem;
	text-decoration: none;
}
.back-link::before { content: "←"; transition: transform 0.3s var(--nh-ease); }
.back-link:hover { color: var(--nh-text); }
.back-link:hover::before { transform: translateX(-3px); }

.project-facts {
	padding: 26px 28px;
	border-radius: var(--nh-radius);
	border: 1px solid var(--nh-border);
	background: var(--nh-surface);
}
.project-facts dl { display: grid; gap: 14px; margin-bottom: 0; }
.project-facts dl > div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; }
.project-facts dt { color: var(--nh-text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; padding-top: 2px; }
.project-facts dd { margin: 0; color: var(--nh-text); font-size: 0.95rem; }
.project-facts .btn { margin-top: 22px; width: 100%; }

.project-cover img, .wp-block-post-featured-image.project-cover img {
	width: 100%;
	border-radius: var(--nh-radius);
	border: 1px solid var(--nh-border);
	box-shadow: var(--nh-shadow);
}

.project-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: clamp(48px, 6vw, 72px);
	padding-top: 32px;
	border-top: 1px solid var(--nh-border);
}
.project-nav a {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px 22px;
	border-radius: var(--nh-radius-sm);
	border: 1px solid var(--nh-border);
	background: var(--nh-surface);
	color: var(--nh-text);
	text-decoration: none;
	transition: border-color 0.3s;
}
.project-nav a:hover { border-color: var(--nh-accent); color: var(--nh-text); }
.project-nav small { color: var(--nh-text-muted); font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; }
.project-nav .is-next { text-align: right; grid-column: 2; }

/* ---------- 12. Experience (nh/timeline) ---------- */
.split--timeline { align-items: start; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.col-title {
	font-size: 0.8rem;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--nh-text-muted);
	font-weight: 600;
	margin-bottom: 26px;
}
.timeline {
	position: relative;
	list-style: none;
	margin: 0;
	padding: 0 0 0 34px;
}
.timeline::before {
	content: "";
	position: absolute;
	left: 7px; top: 8px; bottom: 8px;
	width: 1px;
	background: linear-gradient(var(--nh-accent), color-mix(in srgb, var(--nh-accent-2) 40%, transparent) 70%, transparent);
}
.timeline__item { position: relative; padding-bottom: 36px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
	content: "";
	position: absolute;
	left: -34px; top: 6px;
	width: 15px; height: 15px;
	border-radius: 50%;
	background: var(--nh-bg-2);
	border: 2px solid var(--nh-accent);
	box-shadow: 0 0 0 5px var(--nh-tint);
}
.timeline__date { font-size: 0.8rem; color: var(--nh-text-muted); letter-spacing: 0.06em; margin-bottom: 6px; }
.timeline__item h3 { font-size: 1.15rem; margin-bottom: 4px; }
.timeline__org { color: var(--nh-accent); font-size: 0.92rem; font-weight: 500; margin-bottom: 12px; }
.timeline__item ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.timeline__item ul li {
	position: relative;
	padding-left: 18px;
	color: var(--nh-text-dim);
	font-size: 0.93rem;
	line-height: 1.6;
}
.timeline__item ul li::before {
	content: "";
	position: absolute;
	left: 0; top: 0.7em;
	width: 7px; height: 1px;
	background: var(--nh-accent-2);
}
.timeline--education .timeline__item {
	padding: 24px;
	margin-bottom: 16px;
	border-radius: var(--nh-radius-sm);
	border: 1px solid var(--nh-border);
	background: var(--nh-surface);
}
.timeline--education { padding-left: 0; }
.timeline--education::before, .timeline--education .timeline__item::before { display: none; }

/* ---------- 13. Contact ---------- */
.split--contact { align-items: stretch; }
.contact-info > p:not(.eyebrow) { color: var(--nh-text-dim); margin-bottom: 32px; max-width: 520px; }
.contact-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-link {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 18px;
	border-radius: var(--nh-radius-sm);
	border: 1px solid var(--nh-border);
	background: var(--nh-surface);
	color: var(--nh-text);
	text-decoration: none;
	transition: border-color 0.3s, transform 0.35s var(--nh-ease);
}
.contact-link:hover { border-color: var(--nh-accent); transform: translateX(6px); color: var(--nh-text); }
.contact-link__icon {
	display: grid; place-items: center;
	width: 44px; height: 44px;
	border-radius: 12px;
	background: var(--nh-tint);
	color: var(--nh-accent);
	flex: none;
}
.contact-link__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.contact-link__value { font-weight: 500; overflow-wrap: anywhere; }
.contact-link__label { font-size: 0.78rem; color: var(--nh-text-muted); }
.contact-link > .icon:last-child { color: var(--nh-text-muted); }

.contact-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 18px;
	padding: clamp(32px, 4vw, 52px);
	border-radius: var(--nh-radius);
	overflow: hidden;
	isolation: isolate;
	background: var(--nh-bg-3);
	border: 1px solid var(--nh-border);
	min-height: 380px;
}
.contact-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(70% 60% at 100% 0%, color-mix(in srgb, var(--nh-accent) 45%, transparent), transparent 70%),
		radial-gradient(60% 60% at 0% 100%, color-mix(in srgb, var(--nh-accent-3) 30%, transparent), transparent 70%);
}
.contact-card__kicker { font-size: 0.8rem; color: var(--nh-text-dim); letter-spacing: 0.12em; text-transform: uppercase; }
.contact-card h3 {
	font-family: var(--nh-font-display);
	font-size: clamp(1.9rem, 3.6vw, 2.8rem);
	line-height: 1.1;
}

/* Fluent Forms, if embedded in the contact card or a page */
.fluentform .ff-el-form-control {
	background: var(--nh-surface);
	border: 1px solid var(--nh-border-strong);
	color: var(--nh-text);
	border-radius: 12px;
}
.fluentform .ff-btn-submit { background: var(--nh-grad-btn) !important; border-radius: 999px !important; }

/* ---------- 14. CTA band ---------- */
.cta-card {
	position: relative;
	text-align: center;
	padding: clamp(48px, 7vw, 88px) clamp(24px, 5vw, 64px);
	border-radius: calc(var(--nh-radius) + 8px);
	border: 1px solid var(--nh-border);
	background: var(--nh-bg-2);
	overflow: hidden;
	isolation: isolate;
}
.cta-card::before {
	content: "";
	position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(50% 80% at 50% 0%, color-mix(in srgb, var(--nh-accent) 25%, transparent), transparent 70%),
		radial-gradient(40% 60% at 90% 100%, color-mix(in srgb, var(--nh-accent-2) 15%, transparent), transparent 70%);
}
.cta-card .lead { margin: 0 auto 30px; }
.cta-card .wp-block-buttons { justify-content: center; }

/* ---------- 15. Footer ---------- */
.site-footer {
	border-top: 1px solid var(--nh-border);
	padding-block: 48px 32px;
	background: var(--nh-bg);
}
.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-bottom: 28px;
}
.site-footer__brand p { color: var(--nh-text-muted); font-size: 0.875rem; margin-top: 10px; }
.social-links { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.social-links a {
	display: grid; place-items: center;
	width: 44px; height: 44px;
	border-radius: 50%;
	border: 1px solid var(--nh-border);
	background: var(--nh-surface);
	color: var(--nh-text-dim);
	transition: all 0.3s var(--nh-ease);
}
.social-links a:hover { border-color: var(--nh-accent); color: var(--nh-accent); transform: translateY(-3px); }
.site-footer__base {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	position: relative;
	padding-top: 24px;
	font-size: 0.82rem;
	color: var(--nh-text-muted);
}
.site-footer__base::before {
	content: "";
	position: absolute;
	top: 0; left: var(--nh-gutter); right: var(--nh-gutter);
	height: 1px;
	background: var(--nh-border);
}
.to-top { display: inline-flex; align-items: center; gap: 6px; color: var(--nh-text-muted); text-decoration: none; }
.to-top:hover { color: var(--nh-accent); }

/* ---------- 16. Posts / pages ---------- */
.page-head { padding-bottom: clamp(24px, 4vw, 48px); }
.page-head + .section--tight { padding-top: 0; }
.not-found { min-height: 70vh; display: flex; align-items: center; }
.not-found .lead { margin-bottom: 32px; }
.card {
	border-radius: var(--nh-radius);
	border: 1px solid var(--nh-border);
	background: var(--nh-surface);
	overflow: hidden;
}
.post-card { padding-bottom: 24px; }
.post-card > * { margin-inline: 24px; }
.post-card > .wp-block-post-featured-image { margin: 0 0 20px; }
.post-card .wp-block-post-title { font-size: 1.2rem; margin-bottom: 10px; }
.post-card .wp-block-post-title a { color: var(--nh-text); text-decoration: none; }
.post-card .wp-block-post-excerpt { color: var(--nh-text-dim); font-size: 0.93rem; }
.post-card .eyebrow::before { display: none; }
.wp-block-post-template.grid-3 { list-style: none; margin: 0; padding: 0; }
.wp-block-query-pagination { display: flex; gap: 12px; justify-content: center; margin-top: 48px; }
.wp-block-query-pagination a, .wp-block-query-pagination .current { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--nh-border); text-decoration: none; color: var(--nh-text); }
.post-hero-image img { border-radius: var(--nh-radius); margin-block: 32px; }

/* Core lightbox overlay follows the active palette */
.wp-lightbox-overlay .scrim { background-color: var(--nh-bg) !important; }

/* ---------- 17. Motion ---------- */
.js .reveal {
	opacity: 0;
	transform: translateY(32px);
	transition: opacity 0.9s var(--nh-ease), transform 0.9s var(--nh-ease);
	transition-delay: var(--nh-delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

.js .hero .hero-badge, .js .hero .hero-title, .js .hero .hero-sub, .js .hero .hero-phrases, .js .hero .wp-block-buttons {
	animation: nh-rise 0.9s var(--nh-ease) both;
}
.js .hero .hero-title { animation-delay: 0.08s; }
.js .hero .hero-sub { animation-delay: 0.16s; }
.js .hero .hero-phrases { animation-delay: 0.24s; }
.js .hero .wp-block-buttons { animation-delay: 0.32s; }

@keyframes nh-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes nh-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-18px) rotate(6deg); } }
@keyframes nh-blink { 50% { opacity: 0; } }
@keyframes nh-drip { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes nh-marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* ---------- 18. Responsive ---------- */
@media (max-width: 1024px) {
	.grid-3, .project-grid .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.project-head__grid { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 860px) {
	.nav-toggle { display: inline-grid; }
	.site-header__cta { display: none; }
	.nav {
		position: fixed;
		top: calc(var(--nh-header-h) + var(--nh-admin-bar));
		left: 0; right: 0;
		max-height: calc(100vh - var(--nh-header-h) - var(--nh-admin-bar));
		overflow-y: auto;
		padding: 16px var(--nh-gutter) 28px;
		background: var(--nh-header-bg);
		-webkit-backdrop-filter: blur(18px);
		backdrop-filter: blur(18px);
		border-bottom: 1px solid var(--nh-border);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity 0.3s, transform 0.3s var(--nh-ease), visibility 0.3s;
	}
	.site-header.is-open .nav { opacity: 1; visibility: visible; transform: none; }
	.nav > ul { flex-direction: column; align-items: stretch; gap: 4px; }
	.nav > ul > li > a { padding: 14px 16px; font-size: 1.05rem; border-radius: 12px; }
	.nav__cta-mobile { display: block; margin-top: 12px; }
	.nav__cta-mobile .btn { width: 100%; }

	.split, .split--timeline { grid-template-columns: 1fr; }
	.about-visual { aspect-ratio: 16 / 11; }
}

@media (max-width: 640px) {
	body { font-size: 1rem; }
	.grid-3, .project-grid .projects { grid-template-columns: 1fr; }
	.stats { gap: 10px; }
	.stat { padding: 18px 8px; }
	.hero .wp-block-buttons { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; }
	.hero .wp-block-button__link { width: 100%; }
	.hero { text-align: center; }
	.scroll-cue { display: none; }
	.project-nav { grid-template-columns: 1fr; }
	.project-nav .is-next { grid-column: auto; }
	.project-facts dl > div { grid-template-columns: 80px 1fr; }
	.brand__name { display: none; }
	.contact-card { min-height: 0; }
}

/* ---------- 19. Editor ---------- */
.editor-styles-wrapper { background: var(--nh-bg); color: var(--nh-text); font-family: var(--nh-font-body); }
.editor-styles-wrapper .hero { min-height: 0; padding-block: 96px; }
.editor-styles-wrapper .hero-phrases li + li { display: list-item; }
.editor-styles-wrapper .hero-phrases { list-style: disc; display: inline-block; text-align: left; }
.editor-styles-wrapper .site-header { position: relative; top: 0; }
