/* ============================================================
   NEON GOTH — Justin Barrett portfolio
   Design tokens from handoff tokens.css; components bespoke.
   ============================================================ */

:root {
	color-scheme: dark;
	--ng-ink: #080b0a;
	--ng-surface: #101512;
	--ng-raised: #171d19;
	--ng-text: #f4f6f2;
	--ng-muted: #b4bdb6;
	--ng-green: #a5ff43;
	--ng-red: #ff354c;
	--ng-border: #354039;
	--ng-control-border: #78877d;

	--ng-display: 'Space Grotesk', system-ui, sans-serif;
	--ng-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--ng-marker: 'Permanent Marker', cursive;

	--ng-content: 120rem;         /* 1920px — fills wide displays; prose blocks stay constrained below */
	--ng-reading: 70ch;
	--ng-gutter: clamp(1.25rem, 4vw, 5rem);
	--ng-section: clamp(3.5rem, 7vw, 7rem);
	--ng-hero-size: clamp(2.625rem, 6.6vw, 6rem);
	--ng-heading-size: clamp(1.75rem, 3.6vw, 3.25rem);
	--ng-body-size: clamp(1rem, 1.1vw, 1.125rem);
	--ng-radius: 2px;
	--ng-speed: 180ms;
	--ng-glow: 0 0 24px rgba(165, 255, 67, 0.25);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background-color: var(--ng-ink);
	color: var(--ng-text);
	font-family: var(--ng-body);
	font-size: var(--ng-body-size);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	/* Subtle graphite texture — restrained, kept off body text via overlay. */
	background-image:
		radial-gradient(1200px 600px at 85% -10%, rgba(165, 255, 67, 0.06), transparent 60%),
		radial-gradient(900px 500px at -10% 20%, rgba(255, 53, 76, 0.05), transparent 55%);
	background-attachment: fixed;
}

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

a { color: var(--ng-green); text-decoration-thickness: 1px; text-underline-offset: 3px; }

h1, h2, h3, h4 {
	font-family: var(--ng-display);
	font-weight: 700;
	line-height: 1.06;
	letter-spacing: -0.01em;
	margin: 0;
}

p { margin: 0 0 1rem; }

::selection { background: var(--ng-green); color: var(--ng-ink); }

:focus-visible {
	outline: 2px solid var(--ng-green);
	outline-offset: 4px;
	border-radius: 2px;
}

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

.ng-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	background: var(--ng-green);
	color: var(--ng-ink);
	padding: 0.75rem 1.25rem;
	font-weight: 600;
}
.ng-skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Layout shell ---------- */
.ng-shell {
	width: 100%;
	max-width: var(--ng-content);
	margin-inline: auto;
	padding-inline: var(--ng-gutter);
}

.ng-section { padding-block: var(--ng-section); position: relative; }

.ng-section + .ng-section { border-top: 1px solid var(--ng-border); }

.ng-section__head { margin-bottom: clamp(2rem, 4vw, 3.25rem); }

.ng-section__title {
	font-size: var(--ng-heading-size);
	max-width: 22ch;
	line-height: 1.1;
}
/* Keep the acid-green underline from colliding with a following lede. */
.ng-section__title + .ng-lede,
.ng-section__head .ng-lede { margin-top: 1.4rem; }

/* ---------- Shared bits: eyebrow, underline, marker, tag ---------- */
.ng-eyebrow {
	font-family: var(--ng-body);
	font-weight: 600;
	font-size: 0.72rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ng-muted);
	margin: 0 0 0.9rem;
}
.ng-eyebrow__num { color: var(--ng-green); }

.ng-underline {
	color: var(--ng-green);
	position: relative;
	white-space: nowrap;
}
.ng-underline::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: -0.12em;
	height: 3px;
	background: var(--ng-green);
	box-shadow: var(--ng-glow);
}

.ng-marker {
	font-family: var(--ng-marker);
	font-weight: 400;
	letter-spacing: 0.01em;
}

.ng-tag {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 0.35em 0.7em;
	border: 1px solid var(--ng-border);
	border-radius: var(--ng-radius);
	color: var(--ng-muted);
}
.ng-tag--draft { color: var(--ng-red); border-color: rgba(255, 53, 76, 0.4); }

.ng-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	font-weight: 600;
	color: var(--ng-green);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color var(--ng-speed) ease;
}
.ng-link:hover,
.ng-link:focus-visible { border-color: var(--ng-green); }

/* ---------- Buttons ---------- */
.ng-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	min-height: 44px;
	padding: 0.7rem 1.4rem;
	font-family: var(--ng-body);
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1;
	text-decoration: none;
	border: 1px solid transparent;
	border-radius: var(--ng-radius);
	cursor: pointer;
	transition: filter var(--ng-speed) ease, background-color var(--ng-speed) ease, color var(--ng-speed) ease, border-color var(--ng-speed) ease;
}
.ng-btn--primary {
	background: var(--ng-green);
	color: var(--ng-ink);
	box-shadow: var(--ng-glow);
}
.ng-btn--primary:hover,
.ng-btn--primary:focus-visible { filter: brightness(1.08); }
.ng-btn--ghost {
	background: transparent;
	color: var(--ng-text);
	border-color: var(--ng-control-border);
}
.ng-btn--ghost:hover,
.ng-btn--ghost:focus-visible { border-color: var(--ng-green); color: var(--ng-green); }
.ng-btn--outline {
	background: transparent;
	color: var(--ng-text);
	border-color: var(--ng-control-border);
	font-size: 0.85rem;
	padding: 0.55rem 1rem;
}
.ng-btn--outline:hover,
.ng-btn--outline:focus-visible { border-color: var(--ng-green); color: var(--ng-green); }
.ng-btn--lg { padding: 0.95rem 2rem; font-size: 1.05rem; }

/* ---------- Header / nav ---------- */
.ng-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(8, 11, 10, 0.82);
	backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--ng-border);
}
.ng-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 76px;
}
.ng-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	text-decoration: none;
	color: var(--ng-text);
}
.ng-brand__mark {
	font-family: var(--ng-display);
	font-weight: 700;
	font-size: 1.15rem;
	line-height: 1;
	padding: 0.4rem 0.5rem;
	border: 1px solid var(--ng-green);
	border-radius: var(--ng-radius);
	color: var(--ng-text);
}
.ng-brand__dot { color: var(--ng-green); }
.ng-brand__name {
	font-family: var(--ng-body);
	font-weight: 600;
	font-size: 0.8rem;
	letter-spacing: 0.16em;
}

.ng-nav { display: flex; align-items: center; gap: 1.75rem; }
.ng-nav__list {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.ng-nav__list a {
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--ng-text);
	text-decoration: none;
	padding: 0.4rem 0;
	border-bottom: 2px solid transparent;
	transition: color var(--ng-speed) ease, border-color var(--ng-speed) ease;
}
.ng-nav__list a:hover,
.ng-nav__list a:focus-visible,
.ng-nav__list .current-menu-item > a { color: var(--ng-green); border-color: var(--ng-green); }

.ng-nav__toggle {
	display: none;
	width: 44px; height: 44px;
	background: transparent;
	border: 1px solid var(--ng-control-border);
	border-radius: var(--ng-radius);
	cursor: pointer;
	position: relative;
}
.ng-nav__toggle-bars,
.ng-nav__toggle-bars::before,
.ng-nav__toggle-bars::after {
	content: "";
	position: absolute;
	left: 50%; top: 50%;
	width: 20px; height: 2px;
	background: var(--ng-text);
	transform: translate(-50%, -50%);
	transition: transform var(--ng-speed) ease, opacity var(--ng-speed) ease;
}
.ng-nav__toggle-bars::before { transform: translate(-50%, -8px); }
.ng-nav__toggle-bars::after { transform: translate(-50%, 6px); }

/* ---------- Hero ---------- */
.ng-hero { padding-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: 0; overflow: hidden; }
.ng-hero__grid {
	display: grid;
	grid-template-columns: 1.08fr 0.92fr;
	align-items: end;
	gap: clamp(1rem, 3vw, 3rem);
}
.ng-hero__copy { padding-bottom: clamp(2.5rem, 6vw, 5.5rem); }
.ng-hero__eyebrow { color: var(--ng-green); letter-spacing: 0.2em; }
.ng-hero__title {
	font-size: var(--ng-hero-size);
	letter-spacing: -0.02em;
	margin-bottom: 1.5rem;
}
.ng-hero__line { display: block; }
.ng-hero__line--accent {
	color: var(--ng-green);
	text-shadow: 0 0 28px rgba(165, 255, 67, 0.35);
}
.ng-hero__lead {
	font-size: clamp(1.05rem, 1.4vw, 1.2rem);
	color: var(--ng-muted);
	max-width: 42ch;
	margin-bottom: 2rem;
}
.ng-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.ng-hero__role {
	font-size: 0.78rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ng-muted);
	margin: 0;
}

.ng-hero__portrait {
	position: relative;
	align-self: end;
	justify-self: end;
	max-width: 560px;
	width: 100%;
}
.ng-hero__img {
	width: 100%;
	height: auto;
	display: block;
	filter: drop-shadow(0 0 40px rgba(165, 255, 67, 0.12)) drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}
.ng-hero__annotation {
	position: absolute;
	top: 8%;
	right: -0.5rem;
	z-index: 2;
	color: var(--ng-red);
	font-size: clamp(0.95rem, 1.3vw, 1.2rem);
	line-height: 1.1;
	max-width: 7ch;
	transform: rotate(6deg);
	text-shadow: 0 0 18px rgba(255, 53, 76, 0.3);
}

/* angular thin frame fragments around the portrait */
.ng-hero__portrait::before,
.ng-hero__portrait::after {
	content: "";
	position: absolute;
	border: 1px solid var(--ng-green);
	opacity: 0.6;
	pointer-events: none;
}
.ng-hero__portrait::before { width: 60px; height: 60px; border-right: 0; border-bottom: 0; top: 14%; left: -6px; }
.ng-hero__portrait::after { width: 60px; height: 60px; border-left: 0; border-top: 0; bottom: 8%; right: -6px; border-color: var(--ng-red); }

/* ---------- Selected work ---------- */
.ng-work__grid {
	display: grid;
	gap: clamp(1.25rem, 2.5vw, 2rem);
}
.ng-work__grid--1-up { grid-template-columns: minmax(0, 720px); }
.ng-work__grid--2-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ng-work__grid--3-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ng-card {
	position: relative;
	background: var(--ng-surface);
	border: 1px solid var(--ng-border);
	border-radius: var(--ng-radius);
	/* clipped corner notch */
	clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
	display: flex;
	flex-direction: column;
	transition: border-color var(--ng-speed) ease, transform var(--ng-speed) ease;
}
.ng-card:hover { border-color: var(--ng-control-border); }
.ng-card__frame {
	position: relative;
	aspect-ratio: 16 / 10;
	background:
		linear-gradient(135deg, rgba(165, 255, 67, 0.06), transparent 55%),
		linear-gradient(315deg, rgba(255, 53, 76, 0.06), transparent 55%),
		repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 28px),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 28px);
	border-bottom: 1px solid var(--ng-border);
	display: grid;
	place-items: center;
}
.ng-card__index {
	position: absolute;
	top: 0.9rem; left: 1rem;
	font-family: var(--ng-display);
	font-size: 0.85rem;
	color: var(--ng-green);
	letter-spacing: 0.1em;
}
.ng-card__glyph { font-size: 2.5rem; color: var(--ng-border); }
.ng-card__body { padding: clamp(1.25rem, 2vw, 1.75rem); }
.ng-card__title { font-size: clamp(1.25rem, 2vw, 1.6rem); margin-bottom: 0.5rem; }
.ng-card__category { color: var(--ng-muted); font-size: 0.9rem; margin-bottom: 1rem; }

/* ---------- Human side ---------- */
.ng-human__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(1.5rem, 4vw, 4rem);
	align-items: start;
}
.ng-human__line1 { display: block; }
.ng-human__line2 {
	display: block;
	color: var(--ng-green);
	font-size: 1.35em;
	line-height: 1.1;
	margin-top: 0.2em;
	text-shadow: 0 0 22px rgba(165, 255, 67, 0.3);
}
.ng-human__body { font-size: clamp(1.05rem, 1.3vw, 1.2rem); max-width: 46ch; }
.ng-degrees { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.ng-degrees__item {
	display: grid;
	grid-template-columns: auto auto 1fr;
	align-items: baseline;
	gap: 0.75rem;
	padding-bottom: 0.9rem;
	border-bottom: 1px solid var(--ng-border);
}
.ng-degrees__dot {
	width: 10px; height: 10px;
	border-radius: 50%;
	background: var(--ng-green);
	box-shadow: var(--ng-glow);
	align-self: center;
}
.ng-degrees__degree { font-family: var(--ng-display); font-weight: 600; }
.ng-degrees__field { color: var(--ng-muted); font-size: 0.95rem; }

/* ---------- Experience timeline ---------- */
.ng-timeline {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	counter-reset: step;
	position: relative;
}
.ng-timeline__step {
	position: relative;
	flex: 1 1 200px;
	min-width: 180px;
	padding: 2.25rem 1.25rem 0 0;
}
.ng-timeline__step::before {
	content: "";
	position: absolute;
	top: 7px; left: 0; right: 0;
	height: 1px;
	background: var(--ng-border);
}
.ng-timeline__step:last-child::before { right: auto; width: 16px; }
.ng-timeline__dot {
	position: absolute;
	top: 0; left: 0;
	width: 16px; height: 16px;
	border-radius: 50%;
	background: var(--ng-ink);
	border: 2px solid var(--ng-green);
	box-shadow: var(--ng-glow);
}
.ng-timeline__label { font-family: var(--ng-display); font-weight: 600; font-size: 1.05rem; }
.ng-xp__range {
	color: var(--ng-muted);
	font-size: 0.85rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 1.25rem;
}

/* ---------- Contact band ---------- */
.ng-contact {
	padding-block: clamp(3rem, 6vw, 5.5rem);
	border-top: 1px solid var(--ng-border);
	background:
		radial-gradient(700px 300px at 20% 120%, rgba(165, 255, 67, 0.08), transparent 70%),
		var(--ng-surface);
}
.ng-contact__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1.5rem;
}
.ng-contact__title { font-size: var(--ng-heading-size); max-width: 18ch; }

/* ---------- Footer ---------- */
.ng-footer {
	border-top: 1px solid var(--ng-border);
	padding-block: 2.5rem;
	background: var(--ng-ink);
}
.ng-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1.25rem;
}
.ng-footer__brand { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.ng-footer__name { font-family: var(--ng-display); font-weight: 700; letter-spacing: 0.08em; }
.ng-footer__marker { font-family: var(--ng-marker); color: var(--ng-red); font-size: 0.95rem; }
.ng-footer__links { display: flex; gap: 1.5rem; }
.ng-footer__links a { color: var(--ng-text); text-decoration: none; font-size: 0.9rem; }
.ng-footer__links a:hover,
.ng-footer__links a:focus-visible { color: var(--ng-green); }
.ng-footer__legal { color: var(--ng-muted); font-size: 0.8rem; margin: 0; width: 100%; }

/* ---------- Generic prose (index fallback, inner pages) ---------- */
.ng-prose { max-width: var(--ng-reading); }
.ng-entry { padding-block: 1.5rem; border-bottom: 1px solid var(--ng-border); }
.ng-entry__title { font-size: 1.4rem; }
.ng-entry__title a { color: var(--ng-text); text-decoration: none; }
.ng-entry__title a:hover { color: var(--ng-green); }

/* ============================================================
   Phase 2 — inner pages
   ============================================================ */

.ng-lede {
	font-size: clamp(1.1rem, 1.5vw, 1.35rem);
	color: var(--ng-muted);
	max-width: 52ch;
	line-height: 1.5;
}
.ng-muted { color: var(--ng-muted); }

/* Prose / reading column */
.ng-prose { max-width: var(--ng-reading); }
.ng-prose p { margin: 0 0 1.25rem; }
.ng-prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 2.5rem 0 1rem; }
.ng-prose h3 { font-size: 1.3rem; margin: 2rem 0 0.75rem; }
.ng-prose a { color: var(--ng-green); }
.ng-prose ul, .ng-prose ol { padding-left: 1.25rem; margin: 0 0 1.25rem; }
.ng-prose li { margin-bottom: 0.5rem; }
.ng-prose blockquote {
	margin: 1.75rem 0;
	padding-left: 1.25rem;
	border-left: 2px solid var(--ng-green);
	color: var(--ng-muted);
	font-style: italic;
}
.ng-prose img { border-radius: var(--ng-radius); margin: 1.5rem 0; }
.ng-prose code {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	background: var(--ng-raised);
	padding: 0.15em 0.4em;
	border-radius: 3px;
	font-size: 0.9em;
}
.ng-prose pre {
	background: var(--ng-raised);
	border: 1px solid var(--ng-border);
	border-radius: var(--ng-radius);
	padding: 1rem 1.25rem;
	overflow: auto;
}
.ng-prose pre code { background: none; padding: 0; }

/* Card links / thumbnails (Work archive) */
.ng-card__link { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.ng-card__thumb { width: 100%; height: 100%; object-fit: cover; }
.ng-card__excerpt { color: var(--ng-muted); font-size: 0.95rem; margin-bottom: 1rem; }
.ng-card__link:hover .ng-card__title { color: var(--ng-green); }

/* Case study */
.ng-case__head { padding-top: var(--ng-section); }
.ng-breadcrumb { color: var(--ng-green); text-decoration: none; }
.ng-case__title { font-size: clamp(2rem, 4vw, 3.5rem); margin: 0.5rem 0 1rem; max-width: 20ch; }
.ng-case__result { font-size: clamp(1.1rem, 1.6vw, 1.4rem); color: var(--ng-muted); max-width: 48ch; }
.ng-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0 clamp(1.5rem, 4vw, 3.5rem);
	margin: 2rem 0 0;
	padding-top: 1.5rem;
	border-top: 1px solid var(--ng-border);
}
.ng-facts__row { margin: 0 0 1rem; }
.ng-facts__label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ng-muted); margin: 0 0 0.25rem; }
.ng-facts__value { margin: 0; font-family: var(--ng-display); font-weight: 600; }
.ng-case__hero { margin-block: clamp(2rem, 4vw, 3.5rem); }
.ng-case__hero-img { width: 100%; border: 1px solid var(--ng-border); border-radius: var(--ng-radius); }
.ng-case__next {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: var(--ng-section);
	padding-top: 2rem;
	border-top: 1px solid var(--ng-border);
}

/* Notes index */
.ng-notes { border-top: 1px solid var(--ng-border); }
.ng-note {
	display: grid;
	grid-template-columns: 160px 1fr auto;
	gap: 1.5rem;
	align-items: baseline;
	padding: 1.75rem 0;
	border-bottom: 1px solid var(--ng-border);
	transition: background-color var(--ng-speed) ease;
}
.ng-note:hover { background: linear-gradient(90deg, rgba(165,255,67,0.03), transparent 40%); }
.ng-note__date { color: var(--ng-muted); font-size: 0.85rem; letter-spacing: 0.06em; }
.ng-note__title { font-size: clamp(1.25rem, 2vw, 1.6rem); margin: 0 0 0.35rem; }
.ng-note__title a { color: var(--ng-text); text-decoration: none; }
.ng-note__title a:hover { color: var(--ng-green); }
.ng-note__cat { display: inline-block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ng-green); margin: 0 0 0.4rem; }
.ng-note__desc { color: var(--ng-muted); margin: 0; max-width: 62ch; }
.ng-note__arrow { color: var(--ng-green); text-decoration: none; font-size: 1.25rem; }

/* Article */
.ng-article__head { max-width: var(--ng-reading); }
.ng-article__meta { display: flex; gap: 0.6rem; align-items: center; }
.ng-article__title { font-size: clamp(2rem, 4vw, 3.25rem); margin: 0.5rem 0; }
.ng-article__updated { color: var(--ng-red); font-size: 0.85rem; }
.ng-article__hero { max-width: var(--ng-content); margin-block: 2rem; }
.ng-article__hero img { width: 100%; border-radius: var(--ng-radius); }
.ng-article__foot { max-width: var(--ng-reading); margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--ng-border); }
.ng-pagelinks { display: flex; gap: 0.5rem; margin-top: 1.5rem; }

/* Pagination */
.pagination, .nav-links {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-top: 2.5rem;
}
.nav-links .page-numbers {
	display: inline-flex;
	min-width: 44px;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 0 0.75rem;
	border: 1px solid var(--ng-border);
	border-radius: var(--ng-radius);
	color: var(--ng-text);
	text-decoration: none;
}
.nav-links .page-numbers.current { background: var(--ng-green); color: var(--ng-ink); border-color: var(--ng-green); }
.nav-links a.page-numbers:hover { border-color: var(--ng-green); color: var(--ng-green); }

/* About */
.ng-about__marker { color: var(--ng-green); font-size: 1.1em; }
.ng-about__intro { max-width: 60ch; }
.ng-principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
.ng-principle { padding: 1.5rem; background: var(--ng-surface); border: 1px solid var(--ng-border); border-radius: var(--ng-radius); }
.ng-principle__title { color: var(--ng-green); font-size: 1.2rem; margin-bottom: 0.5rem; }
.ng-principle__body { color: var(--ng-muted); margin: 0; }
.ng-about__degrees { margin-top: 1.5rem; max-width: 46rem; }

/* Experience */
.ng-xp__current { margin-bottom: 2.5rem; }
.ng-xp__now { color: var(--ng-green); }
.ng-xp__role { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.ng-xp__employer { color: var(--ng-muted); letter-spacing: 0.04em; margin-bottom: 1rem; }
.ng-xp__list { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--ng-border); }
.ng-xp__item { position: relative; padding: 0 0 1.5rem 1.75rem; }
.ng-xp__dot { position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--ng-ink); border: 2px solid var(--ng-green); box-shadow: var(--ng-glow); }
.ng-xp__stage { font-family: var(--ng-display); font-weight: 600; font-size: 1.15rem; }
.ng-xp__caveat { font-size: 0.9rem; margin-top: 1rem; }

/* Contact page */
.ng-contactpage__methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); margin-top: 1rem; }
.ng-contact-card {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	padding: 1.5rem;
	background: var(--ng-surface);
	border: 1px solid var(--ng-border);
	border-radius: var(--ng-radius);
	text-decoration: none;
	color: var(--ng-text);
	position: relative;
	transition: border-color var(--ng-speed) ease, transform var(--ng-speed) ease;
}
.ng-contact-card:hover,
.ng-contact-card:focus-visible { border-color: var(--ng-green); }
.ng-contact-card__label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ng-muted); }
.ng-contact-card__value { font-family: var(--ng-display); font-weight: 600; font-size: 1.1rem; word-break: break-word; }
.ng-contact-card__go { position: absolute; top: 1.25rem; right: 1.25rem; color: var(--ng-green); }

/* 404 */
.ng-404__title { max-width: 16ch; margin-bottom: 1.75rem; line-height: 1.1; }
.ng-404__links { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
	.ng-hero__grid { grid-template-columns: 1.1fr 0.9fr; }
	/* 3-up work steps down to 2 columns on tablet */
	.ng-work__grid--3-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
	/* Collapse nav into a toggle menu */
	.ng-nav__toggle { display: block; }
	.ng-nav { gap: 0.75rem; }
	.ng-nav__list {
		position: absolute;
		left: 0; right: 0;
		top: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: var(--ng-surface);
		border-bottom: 1px solid var(--ng-border);
		padding: 0.5rem var(--ng-gutter) 1rem;
		display: none;
	}
	.ng-nav.is-open .ng-nav__list { display: flex; }
	.ng-nav__list a { padding: 0.9rem 0; border-bottom: 1px solid var(--ng-border); }
	.ng-nav__cta { display: none; }
	.ng-nav.is-open .ng-nav__cta { display: inline-flex; margin-top: 0.75rem; }

	/* Text-first hero: headline + actions before portrait */
	.ng-hero__grid { grid-template-columns: 1fr; align-items: start; }
	.ng-hero__copy { order: 1; padding-bottom: 2rem; }
	.ng-hero__portrait { order: 2; margin-inline: auto; max-width: 420px; }
	.ng-hero__annotation { right: 0.5rem; }

	.ng-work__grid,
	.ng-work__grid--1-up,
	.ng-work__grid--2-up,
	.ng-work__grid--3-up,
	.ng-human__grid { grid-template-columns: 1fr; }
	.ng-section__title { max-width: none; }
	.ng-principles,
	.ng-contactpage__methods { grid-template-columns: 1fr; }
	.ng-note { grid-template-columns: 1fr auto; }
	.ng-note__date { grid-column: 1 / -1; order: -1; }
}

@media (max-width: 520px) {
	.ng-header__inner { min-height: 64px; }
	.ng-brand__name { display: none; }
	.ng-hero__actions .ng-btn { width: 100%; justify-content: center; }
	.ng-timeline__step { flex-basis: 100%; }
	.ng-contact__inner { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Motion preferences
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
	:root { --ng-speed: 0ms; }
	html { scroll-behavior: auto; }
	* { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
